From 93828005765aed15e6a5724d75e0b62c1857b24d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 21 Oct 2009 14:14:22 +0000 Subject: [PATCH] Added stats handler --- examples/osgvertexattributes/osgvertexattributes.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/osgvertexattributes/osgvertexattributes.cpp b/examples/osgvertexattributes/osgvertexattributes.cpp index 38616aa0e..1cea2014e 100644 --- a/examples/osgvertexattributes/osgvertexattributes.cpp +++ b/examples/osgvertexattributes/osgvertexattributes.cpp @@ -20,6 +20,7 @@ #include #include #include +#include #include class ConvertToVertexAttibArrays : public osg::NodeVisitor @@ -335,6 +336,9 @@ int main(int argc, char *argv[]) viewer.setCameraManipulator(new osgGA::TrackballManipulator()); + // add the stats handler + viewer.addEventHandler(new osgViewer::StatsHandler); + viewer.realize();