#define _TILEMGR_HXX
#include <simgear/compiler.h>
-#include <simgear/math/point3d.hxx>
-#include <simgear/scene/model/location.hxx>
#include <simgear/bucket/newbucket.hxx>
#include <simgear/scene/tgdb/TileEntry.hxx>
// current longitude latitude
double longitude;
double latitude;
- double altitude_m;
/**
* tile cache
// local chunks. If the chunk isn't already in the cache, then
// read it from disk.
int update( double visibility_meters );
- int update( SGLocation *location, double visibility_meters);
+ int update( const SGGeod& location, double visibility_meters);
// Prepare the ssg nodes corresponding to each tile. For each
// tile, set the ssg transform and update it's range selector
/// Returns true if scenery is avaliable for the given lat, lon position
/// within a range of range_m.
/// lat and lon are expected to be in degrees.
- bool scenery_available(double lat, double lon, double range_m);
+ bool scenery_available(const SGGeod& position, double range_m);
// Load a model for a tile
osg::Node* loadTileModel(const string& modelPath, bool cacheModel);