pygame2.sdlgfx.base
The pygame2.sdlgfx.base C API contains objects for managing
constant frame rates and update steps for SDL based screen surfaces.
Import
Include headers:
-
int import_pygame2_sdlgfx_base(void)
- Imports the pygame2.sdlgfx.base module. This returns 0 on
success and -1 on failure.
PyFPSManager
-
PyFPSManager
-
PyFPSManager_Type
The PyFPSManager object features a high resolution timer support for
accurate and fixed frame rate support using SDL.
Members
-
FPSmanager* PyFPSManager.fps
- The FPSmanager pointer to access the underlying fps management object.
Functions
-
int PyFPSManager_Check(PyObject *obj)
- Returns true, if the argument is a PyFPSManager or a subclass of
PyFPSManager.
-
PyObject* PyFPSManager_New(void)
- Creates a new PyFPSManager object. On failure, this returns
NULL.
-
FPSmanager* PyFPSManager_AsFPSmanager(PyObject *obj)
- Macro for accessing the fps member of the PyFPSManager. This
does not perform any type or argument checks.