logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL::GFX::FPSManager - data structure used by SDL::GFX::Framerate

Authors

       See "AUTHORS" in SDL.

perl v5.40.0                                       2024-10-20                    pods::SDL::GFX::FPSManager(3pm)

Category

       GFX, Structure

Methods

new
        use SDL;
        use SDL::GFX::Framerate;
        use SDL::GFX::FPSManager;

        my $fps = SDL::GFX::FPSManager->new(0, 0, 0, 0);

       Initialize the framerate manager object. Arguments: framecount, rateticks, lastticks, rate.

   framecount
        my $fc = $fps->framecount;

       Returns the "framecount".

   rateticks
        my $rt = $fps->rateticks;

       Returns the "rateticks".

   lastticks
        my $lt = $fps->lastticks;

       Returns the "lastticks".

   rate
        my $r = $fps->rate;

       Returns the "rate".

Name

       SDL::GFX::FPSManager - data structure used by SDL::GFX::Framerate

See Also