SDLGameEngine

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Defines | Functions

# include/sgecontrol.h File Reference

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.

## Detailed Description

Low level control functions.

Definition in file sgecontrol.h.

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines