Added arguments to viwer construction to allow better command line control

This commit is contained in:
Robert Osfield 2020-03-13 08:33:52 +00:00
parent 9ee206f1c5
commit b2f17aa38e

View File

@ -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()) );