Show
Ignore:
Timestamp:
01/25/07 13:02:51 (7 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/osgcluster/osgcluster.cpp

    r5962 r6051  
    237237            writeUInt(fs.getFrameNumber()); 
    238238            writeDouble(fs.getReferenceTime()); 
     239            writeDouble(fs.getSimulationTime()); 
    239240        } 
    240241 
     
    243244            fs.setFrameNumber(readUInt()); 
    244245            fs.setReferenceTime(readDouble()); 
     246            fs.setSimulationTime(readDouble()); 
    245247 
    246248            osg::notify(osg::NOTICE)<<"readFramestamp = "<<fs.getFrameNumber()<<" "<<fs.getReferenceTime()<<std::endl;