

This class encapsulates the SDL_AddTimer, SDL_RemoveTimer functions.
Public Types | |
| typedef unsigned long | ID |
Public Member Functions | |
| PG_TimerObject () | |
| Constructor of the PG_TimerObject class. | |
| virtual | ~PG_TimerObject () |
| PG_TimerObject::ID | AddTimer (Uint32 interval) |
| Add a timer to the object. | |
| bool | RemoveTimer (PG_TimerObject::ID id) |
| Remove a timer. | |
| int | SetTimer (Uint32 interval) |
| void | StopTimer () |
| virtual Uint32 | eventTimer (PG_TimerObject::ID 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.
|
|
|
|
|
|
|
|
|
|