the viewer code do not require most of FlightGear to be rebuilt.
Added some now-required includes to environment.cxx.
#include <math.h>
+#include <plib/sg.h>
+
+#include <simgear/constants.h>
#include <simgear/debug/logstream.hxx>
#include <Main/fg_props.hxx>
#include <Environment/environment_mgr.hxx>
#include "globals.hxx"
+#include "viewmgr.hxx"
+
#include "fg_props.hxx"
return environment_mgr->getEnvironment(lat, lon, alt);
}
+FGViewer *
+FGGlobals::get_current_view () const
+{
+ return viewmgr->get_current_view();
+}
// end of globals.cxx
#include <vector>
#include STL_STRING
-#include "viewmgr.hxx"
-
SG_USING_STD( vector );
SG_USING_STD( string );
class FGSoundMgr;
class FGAutopilot;
class FGFX;
+class FGViewMgr;
class FGViewer;
class FGATCMgr;
class FGATCDisplay;
inline FGViewMgr *get_viewmgr() const { return viewmgr; }
inline void set_viewmgr( FGViewMgr *vm ) { viewmgr = vm; }
- inline FGViewer *get_current_view() const {
- return viewmgr->get_current_view();
- }
+ FGViewer *get_current_view() const;
inline SGPropertyNode *get_props () { return props; }
inline void set_props( SGPropertyNode *n ) { props = n; }