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
This commit is contained in:
Robert Osfield 2015-04-13 08:55:08 +00:00
parent 16b19a0c30
commit 0335ea3760

View File

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