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

Changed HelpHandler? so it supports use with CompositeViewer? and Viewer

Files:
1 modified

Legend:

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

    r7505 r7515  
    250250            view->addEventHandler( statesetManipulator.get() ); 
    251251             
    252             osg::ref_ptr<osgViewer::StatsHandler> statsHandler = new osgViewer::StatsHandler; 
    253             view->addEventHandler( statsHandler.get() ); 
     252            view->addEventHandler( new osgViewer::StatsHandler ); 
     253            view->addEventHandler( new osgViewer::HelpHandler ); 
    254254        } 
    255255 
     
    283283 
    284284    } 
     285 
    285286     
    286287    while (arguments.read("-s")) { viewer.setThreadingModel(osgViewer::CompositeViewer::SingleThreaded); }