NAME

SDL::GFX::FPSManager - blitting functions

CATEGORY

TODO, GFX, FPSManager

METHODS

new

 FPSmanager *
 gfx_fps_new (CLASS, framecount, rateticks, lastticks, rate)
 	char *CLASS
 	Uint32 framecount
 	float rateticks
 	Uint32 lastticks
	Uint32 rate
 	CODE:
 		RETVAL = (FPSmanager *) safemalloc(sizeof(FPSmanager));
 		RETVAL->framecount = framecount;
 		RETVAL->rateticks  = rateticks;
 		RETVAL->lastticks  = lastticks;
 		RETVAL->rate       = rate;
 	OUTPUT:
 		RETVAL

framecount

Uint32
gfx_fps_framecount ( fps, ... )
	FPSmanager *fps
	CODE:
		if (items > 1 ) fps->framecount = SvIV(ST(1)); 
		RETVAL = fps->framecount;
	OUTPUT:
		RETVAL

rateticks

float
gfx_fps_rateticks ( fps, ... )
	FPSmanager *fps
	CODE:
		if (items > 1 ) fps->rateticks = SvNV(ST(1)); 
		RETVAL = fps->rateticks;
	OUTPUT:
		RETVAL

lastticks

Uint32
gfx_fps_lastticks ( fps, ... )
	FPSmanager *fps
	CODE:
		if (items > 1 ) fps->lastticks = SvIV(ST(1)); 
		RETVAL = fps->lastticks;
	OUTPUT:
		RETVAL

rate

Uint32
gfx_fps_rate ( fps, ... )
	FPSmanager *fps
	CODE:
		if (items > 1 ) fps->rate = SvIV(ST(1)); 
		RETVAL = fps->rate;
	OUTPUT:
		RETVAL