Show
Ignore:
Timestamp:
09/30/07 21:27:31 (7 years ago)
Author:
robert
Message:

Added support for CompositeViewer? to WindowSizeHandler?, ThreadingHandler?, RecordCameraPathManipulator? and HelpHandler?.

Files:
1 modified

Legend:

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

    r7515 r7516  
    149149            view->setSceneData(osgDB::readNodeFile("fountain.osg")); 
    150150             
    151             osg::ref_ptr<osgViewer::StatsHandler> statsHandler = new osgViewer::StatsHandler; 
    152             view->addEventHandler( statsHandler.get() ); 
    153              
     151            view->addEventHandler( new osgViewer::StatsHandler ); 
    154152             
    155153            view->setUpViewAcrossAllScreens(); 
     
    187185            view->setCameraManipulator(new osgGA::TrackballManipulator); 
    188186             
    189             osg::ref_ptr<osgViewer::StatsHandler> statsHandler = new osgViewer::StatsHandler; 
    190             view->addEventHandler( statsHandler.get() ); 
     187            view->addEventHandler( new osgViewer::StatsHandler ); 
    191188 
    192189             
     
    252249            view->addEventHandler( new osgViewer::StatsHandler ); 
    253250            view->addEventHandler( new osgViewer::HelpHandler ); 
     251            view->addEventHandler( new osgViewer::WindowSizeHandler ); 
     252            view->addEventHandler( new osgViewer::ThreadingHandler ); 
     253            view->addEventHandler( new osgViewer::RecordCameraPathHandler ); 
    254254        } 
    255255