Added StateSetManipulator to osglogo.

This commit is contained in:
Robert Osfield
2017-02-27 10:47:14 +00:00
parent 8adbf322a0
commit 0ec204f6e4

View File

@@ -33,6 +33,7 @@
#include <osgText/Text>
#include <osgGA/TrackballManipulator>
#include <osgGA/StateSetManipulator>
#include <osgViewer/Viewer>
@@ -464,6 +465,9 @@ int main( int argc, char **argv )
// construct the viewer.
osgViewer::Viewer viewer;
// add the state manipulator
viewer.addEventHandler( new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()) );
// if user request help write it out to cout.
if (arguments.read("-h") || arguments.read("--help"))
{