AnimEngine
Public Member Functions | Protected Attributes | List of all members
Timeline Class Reference

Public Member Functions

 Timeline (bool aStartPaused=false)
 
double getTime () const
 
double get () const
 
 operator double () const
 
double elapsed ()
 
double peekElapsed ()
 
void reset ()
 
void pause ()
 
void unpause ()
 
void togglePause ()
 
bool isPaused () const
 

Protected Attributes

bool mPaused = false
 
chrono::high_resolution_clock::time_point mLastTime
 
chrono::high_resolution_clock::time_point mStartTime
 
chrono::high_resolution_clock::time_point mPauseTime
 
double mAccumulatedPauseTime = 0.0
 

The documentation for this class was generated from the following files: