]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/scenery.hxx
Check for the plib version when using display lists, just to be sure.
[flightgear.git] / src / Scenery / scenery.hxx
index 4d506e4b709b1ea4877c2216197ecc9a6e1e0c27..5584f94564761158c28342ae2cd963585b72a682 100644 (file)
 
 
 #include <plib/sg.h>
-#include <plib/ssg.h>
 
+#include <simgear/structure/subsystem_mgr.hxx>
 #include <simgear/math/point3d.hxx>
 
-#include <Main/fgfs.hxx>
+
+class ssgRoot;
+class ssgBranch;
 
 
 // Define a structure containing global scenery parameters
-class FGScenery : public FGSubsystem {
+class FGScenery : public SGSubsystem {
     // center of current scenery chunk
     Point3D center;
 
@@ -64,6 +66,7 @@ class FGScenery : public FGSubsystem {
     ssgRoot *scene_graph;
     ssgBranch *terrain_branch;
     ssgRoot *gnd_lights_root;
+    ssgRoot *vasi_lights_root;
     ssgRoot *rwy_lights_root;
     ssgRoot *taxi_lights_root;
     ssgBranch *models_branch;
@@ -74,7 +77,7 @@ public:
     FGScenery();
     ~FGScenery();
 
-    // Implementation of FGSubsystem.
+    // Implementation of SGSubsystem.
     void init ();
     void bind ();
     void unbind ();
@@ -105,6 +108,13 @@ public:
         gnd_lights_root = r;
     }
 
+    inline ssgRoot *get_vasi_lights_root () const {
+        return vasi_lights_root;
+    }
+    inline void set_vasi_lights_root (ssgRoot *r) {
+        vasi_lights_root = r;
+    }
+
     inline ssgRoot *get_rwy_lights_root () const {
         return rwy_lights_root;
     }