]> git.mxchange.org Git - flightgear.git/blobdiff - src/Model/acmodel.hxx
I have added Aaron Wilson's virtual 3d runway projection to the HUD.
[flightgear.git] / src / Model / acmodel.hxx
index 4e691ca0a12244ea43895b45ce8e86aa61375edb..a59bd954a111a0b131a26fa710b4bd64102919ed 100644 (file)
 SG_USING_STD(string);
 SG_USING_STD(vector);
 
-#include <Main/fgfs.hxx>       // for FGSubsystem
+#include <simgear/structure/subsystem_mgr.hxx> // for SGSubsystem
 
 
 // Don't pull in the headers, since we don't need them here.
 class ssgRoot;
 class ssgSelector;
-class FG3DModel;
+class SGModelPlacement;
 
 
-class FGAircraftModel : public FGSubsystem
+class FGAircraftModel : public SGSubsystem
 {
 public:
 
@@ -36,11 +36,12 @@ public:
   virtual void unbind ();
   virtual void update (double dt);
   virtual void draw ();
-  virtual FG3DModel * get3DModel() { return _aircraft; }
+  virtual SGModelPlacement * get3DModel() { return _aircraft; }
+  void select( bool s ) { _selector->select( s ? 0xffffffff : 0 ); }
 
 private:
 
-  FG3DModel * _aircraft;
+  SGModelPlacement * _aircraft;
   ssgSelector * _selector;
   ssgRoot * _scene;
   float _nearplane;