X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fglobals.hxx;h=97f07307adb119231396c4679f160d5b5d9b4284;hb=44ffdcd7d00a6bf31c6f0526e9021fa2910980e7;hp=40c2b697ee838bd34a260668c55cbaf8e0466cc9;hpb=029012b8b94f0719fc824f2b6afff43afe2cb9c2;p=flightgear.git diff --git a/src/Main/globals.hxx b/src/Main/globals.hxx index 40c2b697e..97f07307a 100644 --- a/src/Main/globals.hxx +++ b/src/Main/globals.hxx @@ -148,6 +148,7 @@ private: bool haveUserSettings; SGPropertyNode_ptr positionLon, positionLat, positionAlt; + SGPropertyNode_ptr viewLon, viewLat, viewAlt; SGPropertyNode_ptr orientHeading, orientPitch, orientRoll; public: @@ -210,7 +211,7 @@ public: * 2. All aircraft directories if branch starts with Aircraft/ * 3. fg_data directory */ - SGPath resolve_ressource_path(const std::string& branch) const; + SGPath resolve_resource_path(const std::string& branch) const; inline const std::string &get_browser () const { return browser; } void set_browser (const std::string &b) { browser = b; } @@ -249,10 +250,14 @@ public: SGGeod get_aircraft_position() const; - SGVec3d get_aircraft_positon_cart() const; + SGVec3d get_aircraft_position_cart() const; void get_aircraft_orientation(double& heading, double& pitch, double& roll); + SGGeod get_view_position() const; + + SGVec3d get_view_position_cart() const; + inline string_list *get_channel_options_list () { return channel_options_list; }