Added stats handler
This commit is contained in:
parent
23cfcb423f
commit
9382800576
@ -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();
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user