openTRI 0.1
|
Data Structures | |
struct | triTimer |
A timer struct. More... | |
Functions | |
triTimer * | triTimerCreate () |
Create a timer. More... | |
triVoid | triTimerUpdate (triTimer *timer) |
Update a timer. More... | |
triFloat | triTimerGetDeltaTime (triTimer *timer) |
Get the delta time of a timer. More... | |
triFloat | triTimerPeekDeltaTime (triTimer *timer) |
Get the delta time of a timer without changing its status. More... | |
triVoid | triTimerFree (triTimer *timer) |
Free a timer. More... | |
triVoid triTimerUpdate | ( | triTimer * | timer | ) |
Update a timer.
Should be called once at the start of each iteration of the loop
timer | - A pointer to a valid triTimer struct |
triFloat triTimerGetDeltaTime | ( | triTimer * | timer | ) |
Get the delta time of a timer.
timer | - A pointer to a valid triTimer struct |
triFloat triTimerPeekDeltaTime | ( | triTimer * | timer | ) |
Get the delta time of a timer without changing its status.
timer | - A pointer to a valid triTimer struct |