summaryrefslogtreecommitdiff
path: root/game/terrain.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-01-26 21:17:37 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-01-26 21:17:37 +0000
commit664d7c6700ccc4f71a2df9a5af4bee5591fb2d20 (patch)
treeb875bc84b450dada66fa08d272955153b643ea9d /game/terrain.h
parentUse vector sizes when passing terrain to opengl (diff)
downloadilt-664d7c6700ccc4f71a2df9a5af4bee5591fb2d20.tar.bz2
ilt-664d7c6700ccc4f71a2df9a5af4bee5591fb2d20.tar.xz
ilt-664d7c6700ccc4f71a2df9a5af4bee5591fb2d20.zip
Generate some random terrain with a water layer
Diffstat (limited to 'game/terrain.h')
-rw-r--r--game/terrain.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/terrain.h b/game/terrain.h
index 4db99c5..c039730 100644
--- a/game/terrain.h
+++ b/game/terrain.h
@@ -27,6 +27,8 @@ public:
private:
static constexpr unsigned int NUM_BUFFERS {4};
+ Vertex & v(unsigned int, unsigned int);
+
GLuint m_vertexArrayObject;
std::array<GLuint, NUM_BUFFERS> m_vertexArrayBuffers;
std::vector<Vertex> vertices;