]> git.mxchange.org Git - flightgear.git/commitdiff
Frederic Bouvier:
authorehofman <ehofman>
Fri, 2 Apr 2004 14:43:31 +0000 (14:43 +0000)
committerehofman <ehofman>
Fri, 2 Apr 2004 14:43:31 +0000 (14:43 +0000)
  Add a select method to FGAircraftModel to draw the aircraft
  or not when calling ssgCullAndDraw on the whole scene.

src/Model/acmodel.hxx

index cf337bd5e20e100ce2a5c0aa99636aa996317f0b..a59bd954a111a0b131a26fa710b4bd64102919ed 100644 (file)
@@ -37,6 +37,7 @@ public:
   virtual void update (double dt);
   virtual void draw ();
   virtual SGModelPlacement * get3DModel() { return _aircraft; }
+  void select( bool s ) { _selector->select( s ? 0xffffffff : 0 ); }
 
 private: