From e95b3cb3e1a054a9d6bd766d4904e569ac2b2a68 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sun, 3 Jul 2011 15:26:40 +0200 Subject: Added terrain objects. --- terrain_cache.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'terrain_cache.h') 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 @@ -15,10 +16,13 @@ struct TerrainCacheObject { TerrainCache *cache; float *heights; + // FIXME: Support other object types. + std::list 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 *objects = NULL); virtual ~TerrainCacheObject(); }; -- cgit v1.2.3