#endif /* not WIN32 */
#include "hud.h"
-#include "../constants.h"
+#include "../Include/constants.h"
#include "../Aircraft/aircraft.h"
#include "../Scenery/mesh.h"
{
int x_inc1, y_inc1;
int x_inc2, y_inc2;
- struct FLIGHT *f;
+ struct fgFLIGHT *f;
double sin_bank, cos_bank;
double bank_angle;
double get_speed()
{
- struct FLIGHT *f;
+ struct fgFLIGHT *f;
f = ¤t_aircraft.flight;
return( FG_V_equiv_kts );
double get_aoa()
{
- struct FLIGHT *f;
+ struct fgFLIGHT *f;
f = ¤t_aircraft.flight;
return( FG_Gamma_vert_rad*RAD_TO_DEG );
double get_roll()
{
- struct FLIGHT *f;
+ struct fgFLIGHT *f;
f = ¤t_aircraft.flight;
return( FG_Phi );
double get_pitch()
{
- struct FLIGHT *f;
+ struct fgFLIGHT *f;
f = ¤t_aircraft.flight;
return( FG_Theta );
double get_heading()
{
- struct FLIGHT *f;
+ struct fgFLIGHT *f;
f = ¤t_aircraft.flight;
return( FG_Psi*RAD_TO_DEG );
double get_altitude()
{
- struct FLIGHT *f;
+ struct fgFLIGHT *f;
double rough_elev;
f = ¤t_aircraft.flight;
// while( ++instruments
}
-Hptr fgHUDInit( struct AIRCRAFT current_aircraft, int color )
+Hptr fgHUDInit( struct fgAIRCRAFT current_aircraft, int color )
{
Hptr hud;
Hptr fgHUDAddHorizon( Hptr hud, int x_pos, int y_pos, int length, \
int hole_len, double (*load_value)() )
{
+#ifndef WIN32
struct HUD_horizon *horizon;
struct HUD_instr *instrument;
HIptr tmp_first, tmp_next;
hud->instruments = instrument;
return( hud );
+#endif
}
Hptr fgHUDAddScale( Hptr hud, int type, int scr_pos, int scr_min, int scr_max, int div_min, int div_max, \
int orientation, int with_min, int min_value, int width_units, double (*load_value)() )
{
+#ifndef WIN32
struct HUD_scale *scale;
struct HUD_instr *instrument;
HIptr tmp_first, tmp_next;
hud->instruments = instrument;
return( hud );
+#endif
}
Hptr fgHUDAddLabel( Hptr hud, int x_pos, int y_pos, int size, int blink, int justify, \
char *pre_str, char *post_str, char *format, double (*load_value)() )
{
+#ifndef WIN32
struct HUD_label *label;
struct HUD_instr *instrument;
HIptr tmp_first, tmp_next;
hud->instruments = instrument;
return( hud );
+#endif
}
Hptr fgHUDAddLadder( Hptr hud, int x_pos, int y_pos, int scr_width, int scr_height, \
int hole_len, int div_units, int label_pos, int width_units, \
double (*load_roll)(), double (*load_pitch)() )
{
+#ifndef WIN32
struct HUD_ladder *ladder;
struct HUD_instr *instrument;
HIptr tmp_first, tmp_next;
hud->instruments = instrument;
return( hud );
+#endif
}
/*
/* $Log$
-/* Revision 1.3 1997/09/05 14:17:26 curt
-/* More tweaking with stars.
+/* Revision 1.6 1997/12/15 23:54:34 curt
+/* Add xgl wrappers for debugging.
+/* Generate terrain normals on the fly.
/*
+ * Revision 1.5 1997/12/10 22:37:39 curt
+ * Prepended "fg" on the name of all global structures that didn't have it yet.
+ * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
+ *
+ * Revision 1.4 1997/09/23 00:29:32 curt
+ * Tweaks to get things to compile with gcc-win32.
+ *
+ * Revision 1.3 1997/09/05 14:17:26 curt
+ * More tweaking with stars.
+ *
* Revision 1.2 1997/09/04 02:17:30 curt
* Shufflin' stuff.
*