]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/renderer.hxx
Add a command to dump just the terrain portion of the scene graph to a .osg
[flightgear.git] / src / Main / renderer.hxx
index ea14d353405173aeb3e87bc5a9b92b7bcb452874..de21b932e3c501657b48b23539a8fef1c41cc0f2 100644 (file)
@@ -6,6 +6,7 @@
 #include <simgear/scene/sky/sky.hxx>
 #include <simgear/scene/util/SGPickCallback.hxx>
 
+#include <osg/Camera>
 #include <osgViewer/Viewer>
 
 #include "FGManipulator.hxx"
@@ -66,15 +67,20 @@ public:
      */
     FGManipulator* getManipulator() { return manipulator.get(); }
     const FGManipulator* getManipulator() const { return manipulator.get(); }
-    void setManipulator(FGManipulator* manipulator)
-       {
-           this->manipulator = manipulator;
-       }
+    void setManipulator(FGManipulator* manipulator) {
+        this->manipulator = manipulator;
+    }
+
+    /** Add a top level camera.
+    */
+    void addCamera(osg::Camera* camera, bool useSceneData);
+
 protected:
     osg::ref_ptr<osgViewer::Viewer> viewer;
     osg::ref_ptr<FGManipulator> manipulator;
 };
 
 bool fgDumpSceneGraphToFile(const char* filename);
+bool fgDumpTerrainBranchToFile(const char* filename);
 
 #endif