removed some of the hard coded options in the main funct.
This commit is contained in:
parent
7b3fc0925c
commit
cfaf72bc56
@ -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,11 +588,8 @@ 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;
|
||||
viewer.getCamera()->getGraphicsContext()->getState()->setUseModelViewAndProjectionUniforms(true);
|
||||
|
||||
return viewer.run();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user