From 5213856929b110ee80dfba6aa7f63a9f70e8e611 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 13 Jun 2007 15:32:17 +0000 Subject: [PATCH] Added passing of arugments into viewer constructor --- examples/osgsimulation/osgsimulation.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/osgsimulation/osgsimulation.cpp b/examples/osgsimulation/osgsimulation.cpp index 9bf1445d9..93a736caf 100644 --- a/examples/osgsimulation/osgsimulation.cpp +++ b/examples/osgsimulation/osgsimulation.cpp @@ -198,7 +198,7 @@ int main(int argc, char **argv) // construct the viewer. - osgViewer::Viewer viewer; + osgViewer::Viewer viewer(arguments); // add the state manipulator viewer.addEventHandler( new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()) ); @@ -290,9 +290,6 @@ int main(int argc, char **argv) while (arguments.read("--ortho") || arguments.read("--orthographic")) technique = osgSim::OverlayNode::VIEW_DEPENDENT_WITH_ORTHOGRAPHIC_OVERLAY; while (arguments.read("--persp") || arguments.read("--perspective")) technique = osgSim::OverlayNode::VIEW_DEPENDENT_WITH_PERSPECTIVE_OVERLAY; - unsigned int screenNum = 0; - while (arguments.read("--screen", screenNum) || arguments.read("-s", screenNum)) viewer.setUpViewOnSingleScreen(screenNum); - std::string pathfile; while (arguments.read("-p",pathfile)) {}