Show
Ignore:
Timestamp:
01/08/07 17:20:10 (8 years ago)
Author:
robert
Message:

Added GraphicsContext::ResizedCallback? and GraphicsContext::resizedImplementation.
Added message on non implementation of GraphicsContext::valid().
Added prelimary GraphicsContext? clean up support.

Files:
1 modified

Legend:

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

    r5916 r5933  
    158158    viewer.setSceneData(loadedModel.get()); 
    159159 
    160     // viewer.realize(); 
     160    // viewer.setThreadingModel(osgViewer::Viewer::SingleThreaded); 
     161 
     162    viewer.realize(); 
    161163 
    162164    unsigned int numFrames = 0; 
     
    173175#include <osgViewer/Viewer> 
    174176#include <osgDB/ReadFile> 
     177#include <osgDB/WriteFile> 
    175178 
    176179int main( int, char **) 
    177180{ 
    178     osgViewer::Viewer viewer; 
    179     viewer.setSceneData(osgDB::readNodeFile("cow.osg")); 
    180     viewer.run(); 
     181    osg::ref_ptr<osg::Node> model = osgDB::readNodeFile("town.ive"); 
     182 
     183    for(unsigned int i=0; i<5; ++i) 
     184    { 
     185        osgViewer::Viewer viewer; 
     186        viewer.setSceneData(model.get()); 
     187        viewer.run(); 
     188    } 
    181189} 
     190 
    182191#endif