Reset: TimeManager can be unbound.
This commit is contained in:
parent
06db85f42b
commit
ad7a3e854d
2 changed files with 16 additions and 0 deletions
|
@ -108,6 +108,20 @@ void TimeManager::init()
|
||||||
_frameCount = 0;
|
_frameCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TimeManager::unbind()
|
||||||
|
{
|
||||||
|
_maxDtPerFrame.clear();
|
||||||
|
_clockFreeze.clear();
|
||||||
|
_timeOverride.clear();
|
||||||
|
_warp.clear();
|
||||||
|
_warpDelta.clear();
|
||||||
|
_frameRate.clear();
|
||||||
|
_frameLatency.clear();
|
||||||
|
_frameRateWorst.clear();
|
||||||
|
|
||||||
|
// and the property objects too
|
||||||
|
}
|
||||||
|
|
||||||
void TimeManager::postinit()
|
void TimeManager::postinit()
|
||||||
{
|
{
|
||||||
initTimeOffset();
|
initTimeOffset();
|
||||||
|
|
|
@ -40,6 +40,8 @@ public:
|
||||||
virtual void postinit();
|
virtual void postinit();
|
||||||
virtual void shutdown();
|
virtual void shutdown();
|
||||||
|
|
||||||
|
virtual void unbind();
|
||||||
|
|
||||||
void update(double dt);
|
void update(double dt);
|
||||||
|
|
||||||
// SGPropertyChangeListener overrides
|
// SGPropertyChangeListener overrides
|
||||||
|
|
Loading…
Add table
Reference in a new issue