]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/globals.hxx
Moved some of the low level scene graph construction code over to simgear.
[flightgear.git] / src / Main / globals.hxx
index c9bcf3b30c16df0b576f1642892bbc5045ad3474..905752c6dfe092ab9662e0d70581ddbeb7e031a9 100644 (file)
@@ -52,9 +52,12 @@ class SGEphemeris;
 
 class SGCommandMgr;
 class SGMagVar;
+class SGMaterialLib;
+class SGModelLoader;
 class SGPropertyNode;
 class SGRoute;
 class SGTime;
+class SGSoundMgr;
 
 class FGAIMgr;
 class FGATCMgr;
@@ -65,7 +68,6 @@ class FGControls;
 class FGEnvironment;
 class FGEnvironmentMgr;
 class FGIO;
-class FGModelLoader;
 class FGModelMgr;
 class FGScenery;
 #ifdef FG_MPLAYER_AS
@@ -73,7 +75,6 @@ class FGMultiplayRxMgr;
 class FGMultiplayTxMgr;
 #endif
 class FGPanel;
-class FGSoundMgr;
 class FGTileMgr;
 class FGViewMgr;
 class FGViewer;
@@ -120,6 +121,9 @@ private:
     // Magnetic Variation
     SGMagVar *mag;
 
+    // Material properties library
+    SGMaterialLib *matlib;
+
     // Current autopilot
     FGAutopilot *autopilot;
 
@@ -130,7 +134,7 @@ private:
     FGPanel *current_panel;
 
     // sound manager
-    FGSoundMgr *soundmgr;
+    SGSoundMgr *soundmgr;
 
     // environment information
     FGEnvironmentMgr * environment_mgr;
@@ -159,7 +163,7 @@ private:
 
     SGCommandMgr *commands;
 
-    FGModelLoader * model_loader;
+    SGModelLoader * model_loader;
 
     FGAircraftModel *acmodel;
 
@@ -232,6 +236,9 @@ public:
     inline SGMagVar *get_mag() const { return mag; }
     inline void set_mag( SGMagVar *m ) { mag = m; }
 
+    inline SGMaterialLib *get_matlib() const { return matlib; }
+    inline void set_matlib( SGMaterialLib *m ) { matlib = m; }
+
     inline FGAutopilot *get_autopilot() const { return autopilot; }
     inline void set_autopilot( FGAutopilot *ap) { autopilot = ap; }
 
@@ -257,8 +264,8 @@ public:
     inline FGPanel *get_current_panel() const { return current_panel; }
     inline void set_current_panel( FGPanel *cp ) { current_panel = cp; }
 
-    inline FGSoundMgr *get_soundmgr() const { return soundmgr; }
-    inline void set_soundmgr( FGSoundMgr *sm ) { soundmgr = sm; }
+    inline SGSoundMgr *get_soundmgr() const { return soundmgr; }
+    inline void set_soundmgr( SGSoundMgr *sm ) { soundmgr = sm; }
 
     inline FGControls *get_controls() const { return controls; }
     inline void set_controls( FGControls *c ) { controls = c; }
@@ -275,9 +282,9 @@ public:
 
     inline SGCommandMgr *get_commands () { return commands; }
 
-    inline FGModelLoader * get_model_loader () { return model_loader; }
+    inline SGModelLoader * get_model_loader () { return model_loader; }
 
-    inline void set_model_loader (FGModelLoader * loader) {
+    inline void set_model_loader (SGModelLoader * loader) {
         model_loader = loader;
     }