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:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user