From 7f528bbd314a7bc369e791f9f5d12a71504a2cc2 Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Fri, 16 Dec 2011 21:45:09 +0100 Subject: [PATCH] fgviewer: add StateSetManipulator. --- utils/fgviewer/fgviewer.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/fgviewer/fgviewer.cxx b/utils/fgviewer/fgviewer.cxx index fa39f7879..a94f90c55 100644 --- a/utils/fgviewer/fgviewer.cxx +++ b/utils/fgviewer/fgviewer.cxx @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -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);