X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FScenery%2Ftilemgr.hxx;h=766513d019053ae7f8b900fa9bbf17eca95b8130;hb=3d4806adbe6705f785fd950bd4b4afde1cb4f8d2;hp=9f9473d1a219154a56f53fa7ad9bc22f2867d999;hpb=d683d39e8552be5fadedd996c648dd7e16af17ee;p=flightgear.git diff --git a/src/Scenery/tilemgr.hxx b/src/Scenery/tilemgr.hxx index 9f9473d1a..766513d01 100644 --- a/src/Scenery/tilemgr.hxx +++ b/src/Scenery/tilemgr.hxx @@ -78,36 +78,34 @@ private: TileCache tile_cache; simgear::SGTerraSync* _terra_sync; - // Update the various queues maintained by the tilemagr (private - // internal function, do not call directly.) + // update various queues internal queues void update_queues(); + // schedule tiles for the viewer bucket + void schedule_tiles_at(const SGGeod& location, double rangeM); + static void refresh_tile(void* tileMgr, long tileIndex); SGPropertyNode_ptr _visibilityMeters; SGPropertyNode_ptr _maxTileRangeM, _disableNasalHooks; + SGPropertyNode_ptr _scenery_loaded, _scenery_override; osg::ref_ptr _pager; public: FGTileMgr(); - ~FGTileMgr(); // Initialize the Tile Manager virtual void init(); virtual void reinit(); - virtual void update(double dt); - int schedule_tiles_at(const SGGeod& location, double rangeM); - - const SGBucket& get_current_bucket () const { return current_bucket; } - /// Returns true if scenery is available for the given lat, lon position - /// within a range of range_m. - /// lat and lon are expected to be in degrees. + // Returns true if scenery is available for the given lat, lon position + // within a range of range_m. + // lat and lon are expected to be in degrees. bool schedule_scenery(const SGGeod& position, double range_m, double duration=0.0); // Returns true if tiles around current view position have been loaded