#include <Include/fg_constants.h>
#include <Include/general.h>
#include <Main/options.hxx>
+#include <Main/views.hxx>
#include <Math/fg_random.h>
#include <Math/mat3.h>
#include <Math/polar3d.h>
return o->fov;
}
+double get_vfc_ratio( void )
+{
+ fgVIEW *v;
+
+ v = ¤t_view;
+
+ return v->vfc_ratio;
+}
+
bool fgCockpitInit( fgAIRCRAFT *cur_aircraft )
{
fgPrintf( FG_COCKPIT, FG_INFO, "Initializing cockpit subsystem\n");
}
/* $Log$
-/* Revision 1.7 1998/05/16 13:04:13 curt
-/* New updates from Charlie Hotchkiss.
+/* Revision 1.8 1998/05/17 16:58:12 curt
+/* Added a View Frustum Culling ratio display to the hud.
/*
+ * Revision 1.7 1998/05/16 13:04:13 curt
+ * New updates from Charlie Hotchkiss.
+ *
* Revision 1.6 1998/05/13 18:27:53 curt
* Added an fov to hud display.
*
// mustange and the engine readouts of a B36!
//
-#define INSTRDEFS 16
+#define INSTRDEFS 17
int fgHUDInit( fgAIRCRAFT * /* current_aircraft */ )
{
loc.top = 100; // Ignore
loc.right = 500; // Ignore
loc.bottom = 25;
+ HIptr = (instr_item *) new instr_label( loc, get_vfc_ratio,
+ "%.2f",
+ "VFC Ratio = ",
+ NULL,
+ ReadTOP,
+ RIGHT_JUST,
+ SMALL,
+ 0,
+ TRUE );
+ break;
+
+ case 17:
+ loc.left = 10;
+ loc.top = 100; // Ignore
+ loc.right = 500; // Ignore
+ loc.bottom = 40;
HIptr = (instr_item *) new instr_label( loc, get_fov,
"%.1f",
"FOV = ",
}
/* $Log$
-/* Revision 1.9 1998/05/16 13:04:14 curt
-/* New updates from Charlie Hotchkiss.
+/* Revision 1.10 1998/05/17 16:58:12 curt
+/* Added a View Frustum Culling ratio display to the hud.
/*
+ * Revision 1.9 1998/05/16 13:04:14 curt
+ * New updates from Charlie Hotchkiss.
+ *
* Revision 1.8 1998/05/13 18:27:54 curt
* Added an fov to hud display.
*
extern double get_longitude ( void );
extern double get_long_min ( void );
extern double get_fov ( void );
+extern double get_vfc_ratio ( void );
enum hudinstype{ HUDno_instr,
HUDscale,
#endif // _HUD_H
/* $Log$
-/* Revision 1.4 1998/05/16 13:04:15 curt
-/* New updates from Charlie Hotchkiss.
+/* Revision 1.5 1998/05/17 16:58:13 curt
+/* Added a View Frustum Culling ratio display to the hud.
/*
+ * Revision 1.4 1998/05/16 13:04:15 curt
+ * New updates from Charlie Hotchkiss.
+ *
* Revision 1.3 1998/05/13 18:27:55 curt
* Added an fov to hud display.
*