Added stats handler

This commit is contained in:
Robert Osfield 2009-10-21 14:14:22 +00:00
parent 23cfcb423f
commit 9382800576

View File

@ -20,6 +20,7 @@
#include <osgDB/ReadFile>
#include <osgDB/WriteFile>
#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>
#include <osgGA/TrackballManipulator>
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();