Added arguments to viwer construction to allow better command line control

OpenSceneGraph-3.6
Robert Osfield 5 years ago
parent a827840baf
commit cdbec116fa

@ -128,7 +128,7 @@ int main( int argc, char **argv )
osg::ArgumentParser arguments(&argc,argv);
// construct the viewer.
osgViewer::Viewer viewer;
osgViewer::Viewer viewer(arguments);
// add the state manipulator
viewer.addEventHandler( new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()) );

Loading…
Cancel
Save