25 #ifndef WGEANIMATIONFRAMETIMER_H
26 #define WGEANIMATIONFRAMETIMER_H
31 #include "../../common/WTimer.h"
44 typedef std::shared_ptr< WGEAnimationFrameTimer >
SPtr;
49 typedef std::shared_ptr< const WGEAnimationFrameTimer >
ConstSPtr;
Frame-based animation timing.
virtual void tick()
Increments frame count.
size_t m_tick
The current tick value.
virtual double elapsed() const
Returns the elapsed time since the last reset in seconds with milliseconds precision.
std::shared_ptr< WGEAnimationFrameTimer > SPtr
Convenience typedef for a shared_ptr.
virtual void reset()
Resets the start-tick.
virtual ~WGEAnimationFrameTimer()
Destructor.
double m_framesPerSecond
The number of frames per second.
WGEAnimationFrameTimer(float framesPerSecond=24.0)
Constructs a frame based animation timer.
std::shared_ptr< const WGEAnimationFrameTimer > ConstSPtr
Convenience typedef for a const shared_ptr.