#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/misc/sg_path.hxx>
+#include <simgear/props/props_io.hxx>
+
+#include <osg/GLU>
#include <Aircraft/aircraft.hxx>
//#include <Autopilot/xmlauto.hxx>
#include <GUI/new_gui.hxx> // FGFontCache
#include <Main/globals.hxx>
#include <Scenery/scenery.hxx>
+#include <Airports/runways.hxx>
#include "hud.hxx"
-#include SG_GLU_H
-
static HUD_Properties *HUDprop = 0;
}
FGFontCache *fc = globals->get_fontcache();
- HUD_Font = fc->getTexFont(fgGetString("/sim/hud/font/name", "Helvetica.txf"));
+ const char* fileName = fgGetString("/sim/hud/font/name", "Helvetica.txf");
+ HUD_Font = fc->getTexFont(fileName);
if (!HUD_Font)
- throw sg_throwable(string("/sim/hud/font/name is not a texture font"));
+ throw sg_io_exception("/sim/hud/font/name is not a texture font",
+ sg_location(fileName));
HUD_TextSize = fgGetFloat("/sim/hud/font/size", 10);