Reorder the setProjectionMatrix.. mathod

This commit is contained in:
Robert Osfield 2007-06-23 11:24:00 +00:00
parent 581b1c322e
commit 6c154441e2

View File

@ -146,8 +146,8 @@ class ViewerQT : public osgViewer::Viewer, public AdapterWidget
AdapterWidget( parent, name, shareWidget, f )
{
getCamera()->setViewport(new osg::Viewport(0,0,width(),height()));
getCamera()->setGraphicsContext(getGraphicsWindow());
getCamera()->setProjectionMatrixAsPerspective(30.0f, static_cast<double>(width())/static_cast<double>(height()), 1.0f, 10000.0f);
getCamera()->setGraphicsContext(getGraphicsWindow());
setThreadingModel(osgViewer::Viewer::SingleThreaded);