Added argument parsing to viewer constructor
This commit is contained in:
parent
63e833a398
commit
c36e47188b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user