Synch with 20010921
This commit is contained in:
@@ -72,14 +72,14 @@ class OSGGLUT_EXPORT Viewer : public osgUtil::GUIActionAdapter
|
||||
// initialize the clock.
|
||||
long initClock();
|
||||
// time since initClock() in seconds.
|
||||
float clockSeconds() { return _timer.delta_s(_initialTick,clockTick()); }
|
||||
double clockSeconds() { return _timer.delta_s(_initialTick,clockTick()); }
|
||||
|
||||
// update the number of ticks since the last frame update.
|
||||
osg::Timer_t updateFrameTick();
|
||||
|
||||
// time from the current frame update and the previous one in seconds.
|
||||
float frameSeconds() { return _timer.delta_s(_lastFrameTick,_frameTick); }
|
||||
float frameRate() { return 1.0f/frameSeconds(); }
|
||||
double frameSeconds() { return _timer.delta_s(_lastFrameTick,_frameTick); }
|
||||
double frameRate() { return 1.0/frameSeconds(); }
|
||||
|
||||
void help(ostream& fout);
|
||||
|
||||
@@ -176,6 +176,10 @@ class OSGGLUT_EXPORT Viewer : public osgUtil::GUIActionAdapter
|
||||
osg::Timer_t frameTick();
|
||||
|
||||
|
||||
osg::ref_ptr<osg::FrameStamp> _frameStamp;
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user