30#ifndef _SDL2_framerate_h
31#define _SDL2_framerate_h
47#define FPS_UPPER_LIMIT 200
52#define FPS_LOWER_LIMIT 1
73# if defined(DLL_EXPORT) && !defined(LIBSDL2_GFX_DLL_IMPORT)
74# define SDL2_FRAMERATE_SCOPE __declspec(dllexport)
76# ifdef LIBSDL2_GFX_DLL_IMPORT
77# define SDL2_FRAMERATE_SCOPE __declspec(dllimport)
81#ifndef SDL2_FRAMERATE_SCOPE
82# define SDL2_FRAMERATE_SCOPE extern
SDL2_FRAMERATE_SCOPE int SDL_getFramecount(FPSmanager *manager)
Return the current framecount.
SDL2_FRAMERATE_SCOPE void SDL_initFramerate(FPSmanager *manager)
Initialize the framerate manager.
SDL2_FRAMERATE_SCOPE int SDL_setFramerate(FPSmanager *manager, Uint32 rate)
Set the framerate in Hz.
SDL2_FRAMERATE_SCOPE int SDL_getFramerate(FPSmanager *manager)
Return the current target framerate in Hz.
#define SDL2_FRAMERATE_SCOPE
SDL2_FRAMERATE_SCOPE Uint32 SDL_framerateDelay(FPSmanager *manager)
Delay execution to maintain a constant framerate and calculate fps.
Structure holding the state and timing information of the framerate controller.