diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-28 19:48:19 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-01-28 20:26:28 +0000 |
commit | 69a3b65fd17149d2c984188953c0749437e0744b (patch) | |
tree | 9b4e64ab732b3f0444e259f752b502e3731e17f1 /game/terrain.h | |
parent | Monkey has outlived his usefullness, bye monkey (diff) | |
download | ilt-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.h | 4 |
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; |