summaryrefslogtreecommitdiff
path: root/terrain.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-05-08 15:02:30 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-05-08 15:02:30 +0200
commit7d5c1adf8e581599848b3fec54e0af88eb469046 (patch)
tree824d398dc14b7044b49d15b35d0c3501264e10fd /terrain.h
parent17715403aff8ba1889c9e1ef473fe9319b87d1d2 (diff)
Working dynamic generation of terrain.
Diffstat (limited to 'terrain.h')
-rw-r--r--terrain.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/terrain.h b/terrain.h
index 88b2277..3ce4402 100644
--- a/terrain.h
+++ b/terrain.h
@@ -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