Changeset 7020

Show
Ignore:
Timestamp:
06/23/07 13:24:00 (7 years ago)
Author:
robert
Message:

Reorder the setProjectionMatrix.. mathod

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgviewerQT/osgviewerQT.cpp

    r7019 r7020  
    147147        { 
    148148            getCamera()->setViewport(new osg::Viewport(0,0,width(),height())); 
     149            getCamera()->setProjectionMatrixAsPerspective(30.0f, static_cast<double>(width())/static_cast<double>(height()), 1.0f, 10000.0f); 
    149150            getCamera()->setGraphicsContext(getGraphicsWindow()); 
    150             getCamera()->setProjectionMatrixAsPerspective(30.0f, static_cast<double>(width())/static_cast<double>(height()), 1.0f, 10000.0f); 
    151151 
    152152            setThreadingModel(osgViewer::Viewer::SingleThreaded);