]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scenery/newcache.hxx
- adjusted for no-value constructor for FGPanel
[flightgear.git] / src / Scenery / newcache.hxx
index 4eb92388e8c5afc99731a0885c3595b721969791..91b43c6baa0d47e185c035b227ab56f7df196362 100644 (file)
@@ -46,7 +46,6 @@
 #include <simgear/math/point3d.hxx>
 
 #include "tileentry.hxx"
-#include "FGTileLoader.hxx"
 
 SG_USING_STD(map);
 
@@ -69,11 +68,6 @@ class FGNewCache {
     // Free a tile cache entry
     void entry_free( long cache_index );
 
-    /**
-     * Queue tiles for loading.
-     */
-    FGTileLoader loader;
-
 public:
 
     // Constructor
@@ -91,6 +85,9 @@ public:
     // Ensure at least one entry is free in the cache
     void make_space();
 
+    // Clear all completely loaded tiles (ignores partially loaded tiles)
+    void clear_cache();
+
     // Fill in a tile cache entry with real data for the specified bucket 
     // void fill_in( const SGBucket& b );
 
@@ -128,7 +125,7 @@ public:
      * Create a new tile and enqueue it for loading.
      * @param b 
      */
-    void load_tile( const SGBucket& b );
+    void insert_tile( FGTileEntry* e );
 };