Added stats handler

This commit is contained in:
Robert Osfield 2008-09-22 15:56:22 +00:00
parent 976df65bcc
commit 260334e4fe

View File

@ -31,6 +31,7 @@
#include <osgDB/WriteFile>
#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>
#include <iostream>
@ -302,6 +303,7 @@ int main(int argc, char **argv)
meh->set( viewer.getSceneData() );
viewer.addEventHandler( meh );
viewer.addEventHandler( new osgViewer::StatsHandler());
if (!filename.empty())
{