Show
Ignore:
Timestamp:
01/25/07 13:02:51 (8 years ago)
Author:
robert
Message:

Added osg::FrameStamp::set/getSimulationTime().

Added setting of osg_SimulationTime and osg_DeltaSimulationTime to the uniforms set by SceneView?

Added frame(double simulationTime) and advance(double simulationTime) parameters to
osgViewer::SimpleViewer?, Vewer and CompositeViewer?.

Updated various examples and Nodes to use SimulationTime? where appropriate.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgprerender/osgprerender.cpp

    r5954 r6051  
    5050        { 
    5151            const osg::FrameStamp* fs = nv->getFrameStamp(); 
    52             double referenceTime = fs->getReferenceTime(); 
     52            double simulationTime = fs->getSimulationTime(); 
    5353            if (_firstCall) 
    5454            { 
    5555                _firstCall = false; 
    56                 _startTime = referenceTime; 
     56                _startTime = simulationTime; 
    5757            } 
    5858             
    59             _time = referenceTime-_startTime; 
     59            _time = simulationTime-_startTime; 
    6060             
    6161            drawable->accept(*this);