diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-05-08 15:02:30 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-05-08 15:02:30 +0200 |
commit | 7d5c1adf8e581599848b3fec54e0af88eb469046 (patch) | |
tree | 824d398dc14b7044b49d15b35d0c3501264e10fd /terrain.h | |
parent | 17715403aff8ba1889c9e1ef473fe9319b87d1d2 (diff) |
Working dynamic generation of terrain.
Diffstat (limited to 'terrain.h')
-rw-r--r-- | terrain.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,9 +1,15 @@ #ifndef TERRAIN_H #define TERRAIN_H +#include <set> + class Terrain { + private: + std::set<std::pair<int, int> > chunk_indices; public: - static float *generate_heights(int x, int y, int width, int height); + float *generate_heights(int x, int y, int width, int height); + float *get_chunk(int x, int y, int width, int height); + bool has_chunk(int x, int y); }; #endif |