#include <VSTGLTimer.h>
Public Member Functions | |
void | registerTimer (Timer *timer, int timerId) |
Timer calls this to register a timerId and Timer instance with us. | |
void | unRegisterTimer (int timerId) |
Removes the timerId for a specific instance of Timer. | |
Timer * | getTimer (int timerId) const |
Called from Timer::timerProc() to determine which Timer::timerCallback() to call. | |
~TimerSingleton () | |
Stupid MSVC6 not letting me use a private destructor!!!! | |
Static Public Member Functions | |
static TimerSingleton & | getInstance () |
Returns the single instance of TimerSingleton. | |
Private Member Functions | |
TimerSingleton () | |
Constructor. | |
Private Attributes | |
std::map< int, Timer * > | timers |
map holding all the currently running timers. |
|
Called from Timer::timerProc() to determine which Timer::timerCallback() to call.
|
|
Timer calls this to register a timerId and Timer instance with us.
|