summaryrefslogtreecommitdiff
path: root/terrain_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'terrain_cache.h')
-rw-r--r--terrain_cache.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/terrain_cache.h b/terrain_cache.h
index dcc4f34..e8101fa 100644
--- a/terrain_cache.h
+++ b/terrain_cache.h
@@ -2,6 +2,7 @@
#define TERRAIN_CACHE_H
#include "terrain_loader.h"
+#include "vector.h"
#include <boost/shared_ptr.hpp>
@@ -15,10 +16,13 @@ struct TerrainCacheObject {
TerrainCache *cache;
float *heights;
+ // FIXME: Support other object types.
+ std::list<Vector3> objects;
int64_t x, y;
unsigned int width, height;
- TerrainCacheObject(TerrainCache *cache, int64_t x, int64_t y, unsigned int width, unsigned int height, float *heights = NULL);
+ TerrainCacheObject(TerrainCache *cache, int64_t x, int64_t y, unsigned int width, unsigned int height,
+ float *heights = NULL, std::list<Vector3> *objects = NULL);
virtual ~TerrainCacheObject();
};