summaryrefslogtreecommitdiff
path: root/terrain_cache.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-07-03 15:26:40 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-07-03 15:26:40 +0200
commite95b3cb3e1a054a9d6bd766d4904e569ac2b2a68 (patch)
tree2c2c0dea65fa57232c5d9377d4e53bf7001fbe06 /terrain_cache.h
parent6e746716d6a5c72fbd42539c6d5d92da8830cb9e (diff)
Added terrain objects.HEADmaster
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();
};