# include <windows.h>
#endif
-#include <GL/glu.h>
+#include <simgear/compiler.h>
+
+#include SG_GLU_H
#include <stdlib.h>
#include <stdio.h>
#include <Aircraft/aircraft.hxx>
#include <Include/general.hxx>
-#include <FDM/ADA.hxx>
+#ifdef ENABLE_SP_FMDS
+#include <FDM/SP/ADA.hxx>
+#endif
#include <Main/globals.hxx>
#include <Main/fg_props.hxx>
#include <Main/viewmgr.hxx>
return anzg;
}
+#ifdef ENABLE_SP_FMDS
int get_iaux1 (void)
{
FGADA *fdm = (FGADA *)current_aircraft.fdm_state;
FGADA *fdm = (FGADA *)current_aircraft.fdm_state;
return fdm->get_faux(10);
}
-// #endif
+#endif
// $$$ end - added, VS Renganathan 13 Oct 2K
// This will check the global hud linked list pointer.
// If these is anything to draw it will.
fgUpdateHUD();
- } else if ( fgGetBool( "/sim/hud/draw-fps-when-off", false ) ) {
+ }
+
+ if ( fgGetBool( "/sim/hud/draw-fps", false ) ) {
char buf[64];
- float fps = get_frame_rate();
-// float tris = fps * get_vfc_tris_drawn();
-// float culled = fps * get_vfc_tris_culled();
-// sprintf(buf,"%-4.1f %7.0f %7.0f", fps, tris, culled);
+ float fps = get_frame_rate();
sprintf(buf,"%-5.1f", fps);
glMatrixMode( GL_PROJECTION );