]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/renderer.hxx
- Added ultra-light traffic is now a separate traffic class that can have its
[flightgear.git] / src / Main / renderer.hxx
index ea14d353405173aeb3e87bc5a9b92b7bcb452874..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"
@@ -66,10 +67,14 @@ 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;