From 69a3b65fd17149d2c984188953c0749437e0744b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 28 Jan 2021 19:48:19 +0000 Subject: Split common terrain code out --- game/terrain.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'game/terrain.h') 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 m_vertexArrayBuffers; -- cgit v1.2.3