]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/renderer.hxx
Tim MOORE: addCamera() method (needed by og_gauge)
[flightgear.git] / src / Main / renderer.hxx
index 7bc54bfe94caa1f984847dc8e46ef19ac9bfc3f7..3fb7e0f83da8a35fe00c8ab7521ea52d0e0b02d5 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"
@@ -54,7 +55,8 @@ public:
     /** Just pick into the scene and return the pick callbacks on the way ...
      */
     static bool pick( unsigned x, unsigned y,
-                      std::vector<SGSceneryPick>& pickList );
+                      std::vector<SGSceneryPick>& pickList,
+                      const osgGA::GUIEventAdapter* ea );
 
     /** Get and set the OSG Viewer object, if any.
      */
@@ -65,13 +67,19 @@ 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);
+
 #endif