|
SDLGameEngine
|
Low level control functions. More...
Go to the source code of this file.
Defines | |
| #define | SGEREDRAW 0xf00 |
| #define | SGETIMER SDL_TimerID |
| #define | sgeRemoveTimer(timer) SDL_RemoveTimer(timer) |
| Remove a timer from the event system. | |
| #define | sgeGameLoop(event, quitvar) while ((SDL_WaitEvent(&event)&&(!quit))) |
| The actual game loop. | |
| #define | sgeStartGame(function, fps) |
| A shortcut to start a game. | |
Functions | |
| SGETIMER | sgeAddTimer (int ms, void *function) |
| Add a function which is called in a regular time interval. | |
| SGETIMER | sgeStartRedrawTimer (int fps) |
| Start the timer system. | |
| void | sgeStopRedrawTimer (SGETIMER sgetimer) |
| Stop the timer. | |
| Uint32 | sgeGetFPS (void) |
| Check the frames per second the game is currently running. | |
Low level control functions.
Definition in file sgecontrol.h.