#include <Input/input.hxx>
// #include <Joystick/joystick.hxx>
#include <Objects/matlib.hxx>
+#include <Model/acmodel.hxx>
#include <Navaids/fixlist.hxx>
#include <Navaids/ilslist.hxx>
#include <Navaids/mkrbeacons.hxx>
globals->get_logger()->init();
globals->get_logger()->bind();
+
////////////////////////////////////////////////////////////////////
// Initialize the local time subsystem.
////////////////////////////////////////////////////////////////////
}
- ////////////////////////////////////////////////////////////////////
- // Initialize the joystick subsystem.
- ////////////////////////////////////////////////////////////////////
-
- // if ( ! fgJoystickInit() ) {
- // SG_LOG( SG_GENERAL, SG_ALERT, "Error in Joystick initialization!" );
- // }
-
-
////////////////////////////////////////////////////////////////////
// Initialize the autopilot subsystem.
////////////////////////////////////////////////////////////////////
current_input.bind();
+ ////////////////////////////////////////////////////////////////////
+ // Initialize the 3D aircraft model subsystem.
+ ////////////////////////////////////////////////////////////////////
+
+ globals->set_aircraft_model(new FGAircraftModel);
+ globals->get_aircraft_model()->init();
+ globals->get_aircraft_model()->bind();
+
+
////////////////////////////////////////////////////////////////////////
// End of subsystem initialization.
////////////////////////////////////////////////////////////////////
class FGATCMgr;
class FGATCDisplay;
class FGAIMgr;
+class FGAircraftModel;
/**
SGCommandMgr *commands;
+ FGAircraftModel *acmodel;
+
// list of serial port-like configurations
string_list *channel_options_list;
inline SGCommandMgr *get_commands () { return commands; }
+ inline FGAircraftModel *get_aircraft_model () { return acmodel; }
+
+ inline void set_aircraft_model (FGAircraftModel * model)
+ {
+ acmodel = model;
+ }
+
inline string_list *get_channel_options_list () {
return channel_options_list;
}
ssgSetNearFar( scene_nearplane, scene_farplane );
- current_model.update(dt_ms);
+ globals->get_aircraft_model()->update(dt_ms);
// $$$ begin - added VS Renganthan 17 Oct 2K
if(objc)
fgLoadDCS();
// ADA
- // temporary visible aircraft "own ship"
- current_model.init();
-
#ifdef FG_NETWORK_OLK
// Do the network intialization
if ( fgGetBool("/sim/networking/network-olk") ) {