This class encapsulates the SDL_AddTimer, SDL_RemoveTimer functions.
Public Member Functions | |
PG_TimerObject () | |
Constructor of the PG_TimerObject class. | |
virtual | ~PG_TimerObject () |
PG_TimerID | AddTimer (Uint32 interval) |
Add a timer to the object. | |
bool | RemoveTimer (PG_TimerID id) |
Remove a timer. | |
int | SetTimer (Uint32 interval) |
void | StopTimer () |
virtual Uint32 | eventTimer (PG_TimerID id, Uint32 interval) |
timer event handler | |
virtual Uint32 | eventTimer (Uint32 interval) |
Public Attributes | |
SignalTimer | sigTimer |
|
Constructor of the PG_TimerObject class. The constructor also calls SDL_InitSubSystem(SDL_Timer) to enable the SDL timer subsystem. |
|
|
|
Add a timer to the object.
|
|
|
|
timer event handler
|
|
Remove a timer.
|
|
|
|
|
|
|