SDL::GFX::FPSManager - data structure used by SDL::GFX::Framerate
GFX, Structure
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.
my $fc = $fps->framecount;
Returns the framecount.
framecount
my $rt = $fps->rateticks;
Returns the rateticks.
rateticks
my $lt = $fps->lastticks;
Returns the lastticks.
lastticks
my $r = $fps->rate;
Returns the rate.
rate
See "AUTHORS" in SDL.
To install SDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL
CPAN shell
perl -MCPAN -e shell install SDL
For more information on module installation, please visit the detailed CPAN module installation guide.