summaryrefslogtreecommitdiff
path: root/game/terrain.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-28 19:48:19 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-01-28 20:26:28 +0000
commit69a3b65fd17149d2c984188953c0749437e0744b (patch)
tree9b4e64ab732b3f0444e259f752b502e3731e17f1 /game/terrain.h
parentMonkey has outlived his usefullness, bye monkey (diff)
downloadilt-69a3b65fd17149d2c984188953c0749437e0744b.tar.bz2
ilt-69a3b65fd17149d2c984188953c0749437e0744b.tar.xz
ilt-69a3b65fd17149d2c984188953c0749437e0744b.zip
Split common terrain code out
Diffstat (limited to 'game/terrain.h')
-rw-r--r--game/terrain.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/game/terrain.h b/game/terrain.h
index c039730..0edf4bd 100644
--- a/game/terrain.h
+++ b/game/terrain.h
@@ -27,7 +27,9 @@ public:
private:
static constexpr unsigned int NUM_BUFFERS {4};
- Vertex & v(unsigned int, unsigned int);
+ void finish(unsigned int width, unsigned int height, unsigned int resolution);
+
+ Vertex & v(unsigned int width, unsigned int x, unsigned int z);
GLuint m_vertexArrayObject;
std::array<GLuint, NUM_BUFFERS> m_vertexArrayBuffers;