From c8bd6fd1006b16c4ea64a8d1e3912ac2d01532d7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 24 Oct 2017 16:04:14 +0100 Subject: [PATCH] Added stats handler --- examples/osglauncher/osglauncher.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/osglauncher/osglauncher.cpp b/examples/osglauncher/osglauncher.cpp index 00c98b42c..ce7e4c553 100644 --- a/examples/osglauncher/osglauncher.cpp +++ b/examples/osglauncher/osglauncher.cpp @@ -44,6 +44,7 @@ #include #include +#include #include #include @@ -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() );