]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/hud_dnst.cxx
Set the key SGModelLib callback to make aircraft-dir OSG loading work.
[flightgear.git] / src / Cockpit / hud_dnst.cxx
index 6bbc61bf6adf5d87e098df5ee18b6e5007e558ae..9dbb190f4c72ccd23cfba6bdab85384ac2ed9d26 100644 (file)
@@ -1,59 +1,19 @@
-#ifdef HAVE_CONFIG_H
-#  include <config.h>
-#endif
-
-#ifdef HAVE_WINDOWS_H
-#  include <windows.h>
-#endif
-
-#include <stdlib.h>
-#include <string.h>
-
-#include <simgear/constants.h>
-#include <simgear/math/fg_random.h>
-#include <simgear/math/mat3.h>
-#include <simgear/math/polar3d.hxx>
-
-#include <Aircraft/aircraft.hxx>
-#include <Scenery/scenery.hxx>
-#include <Time/fg_timer.hxx>
-
 #include "hud.hxx"
 
-     
-//============ Top of dual_instr_item class member definitions ============
-
-dual_instr_item ::
-  dual_instr_item ( int          x,
-                    int          y,
-                    UINT         width,
-                    UINT         height,
-                    FLTFNPTR     chn1_source,
-                    FLTFNPTR     chn2_source,
-                    bool         working,
-                    UINT         options ):
-                  instr_item( x, y, width, height,
-                              chn1_source, options, working),
-                  alt_data_source( chn2_source )
-{
-}
-
-dual_instr_item ::
-  dual_instr_item( const dual_instr_item & image) :
-                 instr_item ((instr_item &) image ),
-                 alt_data_source( image.alt_data_source)
-{
-}
 
-dual_instr_item & dual_instr_item ::
-  operator = (const dual_instr_item & rhs )
+dual_instr_item::dual_instr_item(
+        int          x,
+        int          y,
+        UINT         width,
+        UINT         height,
+        FLTFNPTR     chn1_source,
+        FLTFNPTR     chn2_source,
+        bool         working,
+        UINT         options) :
+    instr_item(x, y, width, height,
+                chn1_source, 1, options, working),
+                alt_data_source(chn2_source)
 {
-  if( !(this == &rhs)) {
-    instr_item::operator = (rhs);
-    alt_data_source = rhs.alt_data_source;
-    }
-  return *this;
 }
 
-// End of hud_dnst.cxx