#include <simgear/math/point3d.hxx>
#include "tileentry.hxx"
-#include "FGTileLoader.hxx"
SG_USING_STD(map);
// Free a tile cache entry
void entry_free( long cache_index );
- /**
- * Queue tiles for loading.
- */
- FGTileLoader loader;
-
public:
// Constructor
bool exists( const SGBucket& b ) const;
// Ensure at least one entry is free in the cache
- void make_space();
+ bool 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 );
/**
* Create a new tile and enqueue it for loading.
* @param b
+ * @return success/failure
*/
- void load_tile( const SGBucket& b );
+ bool insert_tile( FGTileEntry* e );
};