]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/hud.hxx
Updates to vacuum system model from Alex Perry.
[flightgear.git] / src / Cockpit / hud.hxx
index 9a9ac7ba78e98e95162c501df46ce20e78c4aef4..f060bd69b9719ef40a4074f8c14352bdbb03a42e 100644 (file)
 #include <vector>       // STL vector
 #include <deque>        // STL double ended queue
 
+#include <simgear/constants.h>
+
 #include <fg_typedefs.h>
-#include <fg_constants.h>
 #include <Aircraft/aircraft.hxx>
 #include <FDM/flight.hxx>
 #include <Controls/controls.hxx>
 #include <GUI/gui.h>
-#include <Math/mat3.h>
+
+#include "hud_opts.hxx"
 
 FG_USING_STD(deque);
 FG_USING_STD(vector);
 FG_USING_NAMESPACE(std);
 
 
+// some of Norman's crazy optimizations. :-)
+
 #ifndef WIN32
   typedef struct {
       int x, y;
@@ -180,6 +184,7 @@ extern float get_vfc_ratio   ( void );
 extern float get_vfc_tris_drawn   ( void );
 extern float get_vfc_tris_culled   ( void );
 extern float get_climb_rate  ( void );
+extern float get_mach( void );
 extern char *coord_format_lat(float);
 extern char *coord_format_lon(float);
 //extern char *coord_format_latlon(float latitude, float longitude);  // cockpit.cxx
@@ -741,6 +746,7 @@ class HudLadder : public dual_instr_item {
     UINT   minor_div;
     UINT   label_pos;
     UINT   scr_hole;
+    UINT   minimal;
     float vmax;
     float vmin;
     float factor;
@@ -754,6 +760,7 @@ class HudLadder : public dual_instr_item {
                int       y,
                UINT      width,
                UINT      height,
+               UINT      minimal        =    0,
                FLTFNPTR  ptch_source    = get_roll,
                FLTFNPTR  roll_source    = get_pitch,
                float     span_units     = 45.0,