From Romano José Magacho da Silva, added 'p' toggle to animation path

manipulator to allow animations to be paused and resumed.

Added frame rate stats which are output on each repetition of the path.
This commit is contained in:
Robert Osfield
2003-04-08 20:06:37 +00:00
parent 06e773cefb
commit c3fd384eb1
2 changed files with 84 additions and 24 deletions

View File

@@ -66,8 +66,14 @@ class OSGGA_EXPORT AnimationPathManipulator : public CameraManipulator
osg::ref_ptr<osg::AnimationPath> _animationPath;
double _timeOffset;
double _timeScale;
double _timeOffset;
double _timeScale;
double _pauseTime;
bool _isPaused;
double _realStartOfTimedPeriod;
double _animStartOfTimedPeriod;
int _numOfFramesSinceStartOfTimedPeriod;
};