Added stats handler
This commit is contained in:
parent
8f658fbc32
commit
c8bd6fd100
@ -44,6 +44,7 @@
|
||||
#include <osgGA/TrackballManipulator>
|
||||
|
||||
#include <osgViewer/Viewer>
|
||||
#include <osgViewer/ViewerEventHandlers>
|
||||
|
||||
#include <osgDB/ReadFile>
|
||||
#include <osgDB/FileUtils>
|
||||
@ -424,6 +425,9 @@ int main( int argc, char **argv )
|
||||
// add the handler for doing the picking
|
||||
viewer.addEventHandler(new PickHandler(&viewer,updateText.get()));
|
||||
|
||||
// add the stats handler
|
||||
viewer.addEventHandler(new osgViewer::StatsHandler);
|
||||
|
||||
osg::Group* root = new osg::Group();
|
||||
|
||||
root->addChild( setupGraph() );
|
||||
|
Loading…
Reference in New Issue
Block a user