pods::SDL::GFX::Framerate man page on OpenSuSE

Man page or keyword search:  
man Server   25941 pages
apropos Keyword Search (all sections)
Output format
OpenSuSE logo
[printable version]

pods::SDL::GFX::FramerUser3Contributed Perl Documepods::SDL::GFX::Framerate(3)

NAME
       SDL::GFX::Framerate - framerate calculating functions

CATEGORY
       GFX

DESCRIPTION
       The framerate functions are used to insert delays into the graphics
       loop to maintain a constant framerate.

METHODS
   init
	use SDL;
	use SDL::GFX::Framerate;
	use SDL::GFX::FPSManager;

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

	SDL::GFX::Framerate::init($fps);

       Initialize the framerate manager, set default framerate of 30Hz and
       reset delay interpolation.

   set
	SDL::GFX::Framerate::set($fps, 60);

       Sets the new desired framerate to 60 frames per second.

   get
	my $rate = SDL::GFX::Framerate::get($fps);

       Get the currently set framerate of the manager.

   delay
	SDL::GFX::Framerate::delay($fps);

       Generate a delay to accommodate the currently set framerate. Call once
       in the graphics/rendering loop.	If the computer cannot keep up with
       the rate (i.e. drawing too slow), the delay is zero and the delay
       interpolation is reset.

AUTHORS
       See "AUTHORS" in SDL.

perl v5.18.1			  2013-09-28	  pods::SDL::GFX::Framerate(3)
[top]

List of man pages available for OpenSuSE

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net