Added StateSetManipulator to assist with QA.

This commit is contained in:
Robert Osfield 2017-03-28 16:15:57 +01:00
parent 58c52a4cd4
commit 0b844bc72b

View File

@ -23,6 +23,7 @@
#include <osgUtil/ShaderGen>
#include <osgViewer/Viewer>
#include <osgGA/StateSetManipulator>
#include <osgDB/ReadFile>
#include <osgDB/WriteFile>
@ -116,5 +117,8 @@ int main(int, char **)
// add model to viewer.
viewer.setSceneData( createShapes() );
// add the state manipulator
viewer.addEventHandler( new osgGA::StateSetManipulator(viewer.getCamera()->getOrCreateStateSet()) );
return viewer.run();
}