Added passing of arguments into constructor.

This commit is contained in:
Robert Osfield
2007-06-19 16:19:34 +00:00
parent 5b4a7424f0
commit 2f293ed60a

View File

@@ -404,7 +404,7 @@ int main( int argc, char **argv )
arguments.getApplicationUsage()->addCommandLineOption("--texture-rectangle","Use osg::TextureRectangle for doing the render to texure to.");
// construct the viewer.
osgViewer::Viewer viewer;
osgViewer::Viewer viewer(arguments);
// if user request help write it out to cout.
if (arguments.read("-h") || arguments.read("--help"))