#include <Debug/fg_debug.h>
#include <Include/fg_constants.h>
#include <Include/general.h>
+#include <Main/options.hxx>
#include <Math/fg_random.h>
#include <Math/mat3.h>
#include <Math/polar3d.h>
return g->frame_rate;
}
+double get_fov( void )
+{
+ fgOPTIONS *o;
+
+ o = ¤t_options;
+
+ return o->fov;
+}
+
bool fgCockpitInit( fgAIRCRAFT *cur_aircraft )
{
fgPrintf( FG_COCKPIT, FG_INFO, "Initializing cockpit subsystem\n");
}
/* $Log$
-/* Revision 1.5 1998/05/11 18:13:10 curt
-/* Complete C++ rewrite of all cockpit code by Charlie Hotchkiss.
+/* Revision 1.6 1998/05/13 18:27:53 curt
+/* Added an fov to hud display.
/*
+ * Revision 1.5 1998/05/11 18:13:10 curt
+ * Complete C++ rewrite of all cockpit code by Charlie Hotchkiss.
+ *
* Revision 1.4 1998/05/03 00:46:45 curt
* polar.h -> polar3d.h
*
// mustange and the engine readouts of a B36!
//
-#define INSTRDEFS 15
+#define INSTRDEFS 16
int fgHUDInit( fgAIRCRAFT * /* current_aircraft */ )
{
TRUE );
break;
+ case 16:
+ loc.left = 10;
+ loc.top = 100; // Ignore
+ loc.right = 500; // Ignore
+ loc.bottom = 25;
+ HIptr = (instr_item *) new instr_label( loc, get_fov,
+ "%.1f",
+ "FOV = ",
+ NULL,
+ ReadTOP,
+ RIGHT_JUST,
+ SMALL,
+ 0,
+ TRUE );
+ break;
+
// fgHUDAddControlSurfaces( hud, 10, 10, NULL );
// loc.left = 250;
// loc.top = 190;
}
/* $Log$
-/* Revision 1.7 1998/05/11 18:13:11 curt
-/* Complete C++ rewrite of all cockpit code by Charlie Hotchkiss.
+/* Revision 1.8 1998/05/13 18:27:54 curt
+/* Added an fov to hud display.
/*
+ * Revision 1.7 1998/05/11 18:13:11 curt
+ * Complete C++ rewrite of all cockpit code by Charlie Hotchkiss.
+ *
* Revision 1.22 1998/04/18 04:14:02 curt
* Moved fg_debug.c to it's own library.
*
extern double get_altitude ( void );
extern double get_sideslip ( void );
extern double get_frame_rate ( void );
+extern double get_fov ( void );
enum hudinstype{ HUDno_instr,
HUDscale,
#endif // _HUD_H
/* $Log$
-/* Revision 1.2 1998/05/11 18:13:12 curt
-/* Complete C++ rewrite of all cockpit code by Charlie Hotchkiss.
+/* Revision 1.3 1998/05/13 18:27:55 curt
+/* Added an fov to hud display.
/*
+ * Revision 1.2 1998/05/11 18:13:12 curt
+ * Complete C++ rewrite of all cockpit code by Charlie Hotchkiss.
+ *
* Revision 1.15 1998/02/23 19:07:57 curt
* Incorporated Durk's Astro/ tweaks. Includes unifying the sun position
* calculation code between sun display, and other FG sections that use this