]> 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 743f162ea6a87a6f36ae672e60d6066ed21005b7..a59bd954a111a0b131a26fa710b4bd64102919ed 100644 (file)
 SG_USING_STD(string);
 SG_USING_STD(vector);
 
-#include <simgear/misc/props.hxx>
+#include <simgear/structure/subsystem_mgr.hxx> // for SGSubsystem
 
-#include <Main/fgfs.hxx>
 
-#include "model.hxx"
+// Don't pull in the headers, since we don't need them here.
+class ssgRoot;
+class ssgSelector;
+class SGModelPlacement;
 
 
-class FGAircraftModel : public FGSubsystem
+class FGAircraftModel : public SGSubsystem
 {
 public:
 
@@ -32,13 +34,15 @@ public:
   virtual void init ();
   virtual void bind ();
   virtual void unbind ();
-  virtual void update (int dt);
+  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;
   float _farplane;
@@ -46,5 +50,3 @@ private:
 };
 
 #endif // __ACMODEL_HXX
-
-