Show
Ignore:
Timestamp:
06/07/07 22:22:45 (7 years ago)
Author:
robert
Message:

From Martin Lavery, StatsHandler? added to the ViewerCocoa? example

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgviewerCocoa/ViewerCocoa.mm

    r6886 r6892  
    270270        Viewer = new osgViewer::Viewer; 
    271271        graphicsWindow = Viewer->setUpViewerAsEmbeddedInWindow(0,0,800,800); 
    272  
     272        // Builts in Stats handler 
     273        Viewer->addEventHandler(new osgViewer::StatsHandler); 
    273274#ifdef VIEWER_USE_SHARED_CONTEXTS 
    274275        // Workaround: osgViewer::Viewer automatically increments its context ID values. 
     
    283284        // Use a trackball manipulator...matches nicely with the Mighty Mouse Scrollball. 
    284285        Viewer->setCameraManipulator(new osgGA::TrackballManipulator); 
     286         
    285287} 
    286288