Added StateSetManipulator to assist with QA.
This commit is contained in:
parent
58c52a4cd4
commit
0b844bc72b
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user