#include <GameClock.hpp>
Definition at line 23 of file GameClock.hpp.
§ drawGame()
void gk::GameClock::drawGame |
( |
std::function< void(void)> |
drawFunc | ) |
|
§ getTicks()
u32 gk::GameClock::getTicks |
( |
bool |
realTime = false | ) |
|
|
static |
§ measureLastFrameDuration()
void gk::GameClock::measureLastFrameDuration |
( |
| ) |
|
§ setTimestep()
void gk::GameClock::setTimestep |
( |
u8 |
timestep | ) |
|
|
inline |
§ updateGame()
void gk::GameClock::updateGame |
( |
std::function< void(void)> |
updateFunc | ) |
|
§ waitForNextFrame()
void gk::GameClock::waitForNextFrame |
( |
| ) |
|
§ m_lag
u32 gk::GameClock::m_lag = 0 |
|
private |
§ m_lastFrameDate
u32 gk::GameClock::m_lastFrameDate = 0 |
|
private |
§ m_numUpdates
u8 gk::GameClock::m_numUpdates = 0 |
|
private |
§ m_timeDropped
u32 gk::GameClock::m_timeDropped = 0 |
|
private |
§ m_timestep
u8 gk::GameClock::m_timestep = 6 |
|
private |
§ ticks
u32 gk::GameClock::ticks = 0 |
|
staticprivate |
The documentation for this class was generated from the following files: