summaryrefslogtreecommitdiff
path: root/terrain.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-05-07 16:06:08 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-05-07 16:06:08 +0200
commitf0eb6a7b101afba52f33c5286e15a862ee68c64e (patch)
tree7de0b92e167b25d5ffe0e4843f213e5ad108df4a /terrain.h
parent6d5df2a42e09f4561f976c6f994471c1d5dba7ce (diff)
Replace static heightmap with perlin noise using libnoise and noiseutils.
Diffstat (limited to 'terrain.h')
-rw-r--r--terrain.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/terrain.h b/terrain.h
new file mode 100644
index 0000000..88b2277
--- /dev/null
+++ b/terrain.h
@@ -0,0 +1,9 @@
+#ifndef TERRAIN_H
+#define TERRAIN_H
+
+class Terrain {
+ public:
+ static float *generate_heights(int x, int y, int width, int height);
+};
+
+#endif