Added parsing of parameters to Viewer constructor.
This commit is contained in:
parent
fddcebd479
commit
998ba32501
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user