X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-GFX-FPSManager.html-inc;h=80221dc152ab9657b69c6bd6199ea92de2d896a3;hb=de2054346dd8a2b86dda8c323c59943fa4cbfbfa;hp=502c763ddb66c61e056d3fced4ef1d312fdd280a;hpb=c256636b7bb9431b6605429e3f793859c6983842;p=sdlgit%2FSDL-Site.git diff --git a/pages/SDL-GFX-FPSManager.html-inc b/pages/SDL-GFX-FPSManager.html-inc index 502c763..80221dc 100644 --- a/pages/SDL-GFX-FPSManager.html-inc +++ b/pages/SDL-GFX-FPSManager.html-inc @@ -1,18 +1,83 @@
The Following are XS bindings to the SDL_gfx Library
-typedef struct { - Uint32 framecount; - float rateticks; - Uint32 lastticks; - Uint32 rate; - } FPSmanager;
-Described here:
-See: http://www.ferzkopp.net/joomla/content/view/19/14/
+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
.
my $rt = $fps->rateticks; + ++
Returns the rateticks
.
my $lt = $fps->lastticks; + ++
Returns the lastticks
.
my $r = $fps->rate; + ++
Returns the rate
.
See /SDL.html#AUTHORS.
+