Added parsing of parameters to Viewer constructor.

This commit is contained in:
Robert Osfield 2007-12-16 13:29:02 +00:00
parent fddcebd479
commit 998ba32501

View File

@ -1092,7 +1092,7 @@ int main( int argc, char **argv )
osg::ArgumentParser arguments(&argc,argv);
// construct the viewer.
osgViewer::Viewer viewer;
osgViewer::Viewer viewer(arguments);
float numTreesToCreates = 10000;
arguments.read("--trees",numTreesToCreates);