|
openTRI 0.1
|
Data Structures | |
| struct | triTimer |
| A timer struct. More... | |
Functions | |
| triTimer * | triTimerCreate () |
| Create a timer. | |
| triVoid | triTimerUpdate (triTimer *timer) |
| Update a timer. | |
| triFloat | triTimerGetDeltaTime (triTimer *timer) |
| Get the delta time of a timer. | |
| triFloat | triTimerPeekDeltaTime (triTimer *timer) |
| Get the delta time of a timer without changing its status. | |
| triVoid | triTimerFree (triTimer *timer) |
| Free a timer. | |
| 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 |