# include <math.h>
#endif
-#ifdef HAVE_WINDOWS_H
-# include <windows.h>
-#endif
-
-#include GLUT_H
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h> // strcmp()
#ifdef FG_USE_CLOUDS_3D
# include <simgear/scene/sky/clouds3d/SkySceneLoader.hpp>
# include <simgear/scene/sky/clouds3d/SkyUtil.hpp>
+# include <simgear/screen/texture.hxx>
#endif
#include <simgear/timing/sg_time.hxx>
#include <simgear/timing/lowleveltime.h>
#include <Navaids/ilslist.hxx>
#include <Navaids/mkrbeacons.hxx>
#include <Navaids/navlist.hxx>
+#include <Replay/replay.hxx>
#include <Scenery/scenery.hxx>
#include <Scenery/tilemgr.hxx>
#if defined(HAVE_PLIB_PSL)
= fgGetNode("/sim/presets/altitude-ft");
SGPath cloud_path(globals->get_fg_root());
- cloud_path.append("large.sky");
+#if 0
+ cloud_path.append("Textures/Sky/scattered.rgba");
SG_LOG(SG_GENERAL, SG_INFO, "Loading CLOUDS3d from: " << cloud_path.c_str());
+
+ SGTexture tx;
+ tx.read_rgba_texture(cloud_path.c_str());
+ if ( !sgCloud3d->Load( tx.texture(), tx.width(),
+#else
+ cloud_path.append("large.sky");
if ( !sgCloud3d->Load( cloud_path.str(),
+#endif
latitude->getDoubleValue(),
longitude->getDoubleValue()) )
{
globals->add_subsystem("input", new FGInput);
+ ////////////////////////////////////////////////////////////////////
+ // Initialize the replay subsystem
+ ////////////////////////////////////////////////////////////////////
+ globals->add_subsystem("replay", new FGReplay);
+
////////////////////////////////////////////////////////////////////
// Bind and initialize subsystems.
////////////////////////////////////////////////////////////////////