Show
Ignore:
Timestamp:
06/03/07 11:34:28 (7 years ago)
Author:
robert
Message:

Added Viewer::setUpViewerAsEmbeddedInWindow convinience method

Files:
1 modified

Legend:

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

    r6815 r6821  
    9292    glutKeyboardFunc( keyboard ); 
    9393 
    94     window = new osgViewer::GraphicsWindowEmbedded(100,100,800,600); 
    95  
    9694    // create the view of the scene. 
    9795    viewer = new osgViewer::Viewer; 
    98     viewer->getCamera()->setGraphicsContext(window.get()); 
    99     viewer->getCamera()->setViewport(new osg::Viewport(0,0,800,600)); 
    100     viewer->setThreadingModel(osgViewer::Viewer::SingleThreaded); 
    101  
     96    window = viewer->setUpViewerAsEmbeddedInWindow(100,100,800,600); 
    10297    viewer->setSceneData(loadedModel.get()); 
    10398    viewer->setCameraManipulator(new osgGA::TrackballManipulator);