]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/location.hxx
Move the texture loader to SimGear
[flightgear.git] / src / Main / location.hxx
index 44b2f12357389f39ba55e7745bd8d73dc641dbfd..f7f60c782c11dc5e41bad60cdf6cefae83d50f7f 100644 (file)
@@ -31,6 +31,7 @@
 
 #include <simgear/compiler.h>
 #include <simgear/constants.h>
+#include <simgear/math/point3d.hxx>
 
 #include <plib/sg.h>           // plib include
 
@@ -106,6 +107,12 @@ public:
     virtual float *get_surface_east() {        return _surface_east; }
     // Get surface south vector
     virtual float *get_surface_south() { return _surface_south; }
+    // Elevation of ground under location (based on scenery output)...
+    void set_cur_elev_m ( double elev ) { _cur_elev_m = elev; }
+    inline double get_cur_elev_m () { return _cur_elev_m; }
+    // Interface to current buckets for use with tilemgr...
+    void set_tile_center ( Point3D tile_center ) { _tile_center = tile_center; }
+    inline Point3D get_tile_center () { return _tile_center; }
 
     // Matrices...
     virtual const sgVec4 * getTransformMatrix() { if ( _dirty ) { recalc(); }  return TRANS; }
@@ -135,6 +142,10 @@ private:
     double _pitch_deg;
     double _heading_deg;
 
+    // elevation of ground under this location...
+    double _cur_elev_m;
+    Point3D _tile_center;
+
     // surface vector heading south
     sgVec3 _surface_south;
 
@@ -163,17 +174,3 @@ private:
 
 
 #endif // _LOCATION_HXX
-
-
-
-
-
-
-
-
-
-
-
-
-
-