|
IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
|
A custom clock allows to control the "speed" of calculated time. More...
#include <ice/clock.hxx>
Public Attributes | |
| ice::Clock const * | _clock_base |
| ice::f32 | modifier |
| Public Attributes inherited from ice::Clock | |
| ice::Timestamp | _ts_previous |
| ice::Timestamp | _ts_latest |
A custom clock allows to control the "speed" of calculated time.
This works by calculating the update values from the parent clock. The parents current time difference is taken, and a modifier is applied. The result of this operation is the stored under the inherited Clock::latest_timestamp member. This moves the previous Clock::latest_timestamp value to the Clock::previous_timestamp member.
| ice::Clock const* ice::CustomClock::_clock_base |
| ice::f32 ice::CustomClock::modifier |