X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pages%2FSDL-GFX-FPSManager.html-inc;h=80221dc152ab9657b69c6bd6199ea92de2d896a3;hb=1dbe16975541da864f8bfa5169c89a2ab8893bf2;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 @@

Index

-
+ +
-

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/

+

NAME

Top

+
+

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

+ +
+

CATEGORY

Top

+
+

GFX, Structure

+ +
+

METHODS

Top

+
+ +
+

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.

+
+

AUTHORS

Top

+
+

See /SDL.html#AUTHORS.

+
\ No newline at end of file