Show
Ignore:
Timestamp:
08/19/14 18:58:02 (16 hours ago)
Author:
robert
Message:

Added toggling on/off of the VolumeSettings? ui via the 'E' key.

Files:
1 modified

Legend:

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

    r13923 r13930  
    5050#include <osgGA/FlightManipulator> 
    5151#include <osgGA/KeySwitchMatrixManipulator> 
     52#include <osgGA/StateSetManipulator> 
    5253 
    5354#include <osgUtil/CullVisitor> 
     
    491492    viewer.addEventHandler(new osgViewer::StatsHandler); 
    492493 
     494    // add stateset manipulator 
     495    viewer.addEventHandler(new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet())); 
     496 
    493497    viewer.getCamera()->setClearColor(osg::Vec4(0.0f,0.0f,0.0f,0.0f)); 
    494498 
     
    12261230 
    12271231 
     1232 
     1233 
    12281234        // set the scene to render 
    12291235        viewer.setSceneData(loadedModel.get());