From cfaf72bc56e750cc832389e0653ca393811a209b Mon Sep 17 00:00:00 2001 From: d-a-heitbrink Date: Wed, 1 Mar 2017 18:12:46 -0600 Subject: [PATCH] removed some of the hard coded options in the main funct. --- examples/osgbindlesstext/osgbindlesstext.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/examples/osgbindlesstext/osgbindlesstext.cpp b/examples/osgbindlesstext/osgbindlesstext.cpp index a5555ed66..aae24f6db 100644 --- a/examples/osgbindlesstext/osgbindlesstext.cpp +++ b/examples/osgbindlesstext/osgbindlesstext.cpp @@ -577,7 +577,7 @@ osg::Group* CreateScene(){ } int main(int argc, char** argv) { - // construct the viewer + // set command line options osg::ArgumentParser arguments(&argc,argv); // construct the viewer. @@ -588,12 +588,9 @@ int main(int argc, char** argv) // add model to viewer. viewer.setSceneData( CreateScene() ); - viewer.setUpViewOnSingleScreen(2); + viewer.getCamera()->getGraphicsContext()->getState()->setUseModelViewAndProjectionUniforms(true); - double fovy;double aspectRatio; - double zNear;double zFar; - return viewer.run(); }