1
0
Fork 0

fgviewer: add StateSetManipulator.

This commit is contained in:
Mathias Froehlich 2011-12-16 21:45:09 +01:00
parent ff4c771759
commit 7f528bbd31

View file

@ -30,6 +30,7 @@
#include <osgViewer/ViewerEventHandlers>
#include <osgViewer/Renderer>
#include <osgGA/KeySwitchMatrixManipulator>
#include <osgGA/StateSetManipulator>
#include <osgGA/TrackballManipulator>
#include <osgGA/FlightManipulator>
#include <osgGA/DriveManipulator>
@ -91,6 +92,7 @@ main(int argc, char** argv)
viewer.setCameraManipulator(keyswitchManipulator);
// Usefull stats
viewer.addEventHandler(new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()));
viewer.addEventHandler(new osgViewer::HelpHandler);
viewer.addEventHandler(new osgViewer::StatsHandler);
viewer.addEventHandler(new osgViewer::ThreadingHandler);