]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/globals.cxx
Bernie Bright:
[flightgear.git] / src / Main / globals.cxx
index 9de7fdb4382d6f8c8b878aa3d1032273eddc3e67..6d1a7bf340a80f22870f444cdc88fc61798e742c 100644 (file)
 // $Id$
 
 
+#include <simgear/misc/commands.hxx>
+
+#include <Environment/environment_mgr.hxx>
+
 #include "globals.hxx"
-#include "fg_props.hxx"
+#include "viewmgr.hxx"
 
+#include "fg_props.hxx"
+#include "fg_io.hxx"
 
 \f
 ////////////////////////////////////////////////////////////////////////
@@ -36,12 +42,17 @@ FGGlobals *globals;
 
 // Constructor
 FGGlobals::FGGlobals() :
-    freeze( false ),
+    sim_time_sec(0.0),
+#if defined(FX) && defined(XMESA)
+    fullscreen( true ),
+#endif
     warp( 0 ),
     warp_delta( 0 ),
+    logger(0),
     props(new SGPropertyNode),
     initial_state(0),
-    commands(new SGCommandMgr)
+    commands(new SGCommandMgr),
+    io(new FGIO)
 {
 }
 
@@ -52,6 +63,7 @@ FGGlobals::~FGGlobals()
   delete initial_state;
   delete props;
   delete commands;
+  delete io;
 }
 
 
@@ -80,5 +92,10 @@ FGGlobals::restoreInitialState ()
   }
 }
 
+FGViewer *
+FGGlobals::get_current_view () const
+{
+  return viewmgr->get_current_view();
+}
 
 // end of globals.cxx