Added argument parsing to viewer constructor

This commit is contained in:
Robert Osfield 2017-08-29 12:21:14 +01:00
parent 63e833a398
commit c36e47188b

View File

@ -84,8 +84,8 @@ typedef std::list<unsigned int> Sizes;
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
osgViewer::Viewer viewer;
osg::ArgumentParser args(&argc, argv); osg::ArgumentParser args(&argc, argv);
osgViewer::Viewer viewer(args);
// Make sure we have the minimum args... // Make sure we have the minimum args...
if(argc <= 2) if(argc <= 2)