From 0335ea3760be873cbbefb76faa68eed1e8746fc5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 13 Apr 2015 08:55:08 +0000 Subject: [PATCH] Added passing of command line arguments to viewer construction to allow one to specify extra controls for the viewer such as window size etc. git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14829 16af8721-9629-0410-8352-f15c8da7e697 --- examples/osgmanipulator/osgmanipulator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/osgmanipulator/osgmanipulator.cpp b/examples/osgmanipulator/osgmanipulator.cpp index 6dafc170e..b26ddb438 100644 --- a/examples/osgmanipulator/osgmanipulator.cpp +++ b/examples/osgmanipulator/osgmanipulator.cpp @@ -397,8 +397,9 @@ int main( int argc, char **argv ) bool fixedSizeInScreen = false; while (arguments.read("--fixedDraggerSize")) { fixedSizeInScreen = true; } + // construct the viewer. - osgViewer::Viewer viewer; + osgViewer::Viewer viewer(arguments); // add the window size toggle handler viewer.addEventHandler(new osgViewer::WindowSizeHandler);