From c1ea14d1c96de18448c0c3779d30b7e1e4451f61 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 5 Feb 2021 00:30:13 +0000 Subject: Initial commit generating some basic rail network --- gfx/models/mesh.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gfx/models/mesh.h') diff --git a/gfx/models/mesh.h b/gfx/models/mesh.h index e955644..ebd300b 100644 --- a/gfx/models/mesh.h +++ b/gfx/models/mesh.h @@ -17,7 +17,7 @@ class Mesh { public: explicit Mesh(const std::string & fileName); explicit Mesh(const IndexedModel & model); - Mesh(std::span vertices, std::span indices); + Mesh(std::span vertices, std::span indices, GLenum = GL_TRIANGLES); virtual ~Mesh(); NO_COPY(Mesh); @@ -31,6 +31,7 @@ private: GLuint m_vertexArrayObject; std::array m_vertexArrayBuffers; size_t m_numIndices; + GLenum mode; }; #endif -- cgit v1.2.3