diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-05 00:30:13 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-05 00:30:13 +0000 |
commit | c1ea14d1c96de18448c0c3779d30b7e1e4451f61 (patch) | |
tree | b97edc04e70495caf49545dc30ed9936d1986d07 /gfx/models/mesh.h | |
parent | Create terrain as collection of meshes (diff) | |
download | ilt-c1ea14d1c96de18448c0c3779d30b7e1e4451f61.tar.bz2 ilt-c1ea14d1c96de18448c0c3779d30b7e1e4451f61.tar.xz ilt-c1ea14d1c96de18448c0c3779d30b7e1e4451f61.zip |
Initial commit generating some basic rail network
Diffstat (limited to 'gfx/models/mesh.h')
-rw-r--r-- | gfx/models/mesh.h | 3 |
1 files changed, 2 insertions, 1 deletions
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<Vertex> vertices, std::span<unsigned int> indices);
+ Mesh(std::span<Vertex> vertices, std::span<unsigned int> indices, GLenum = GL_TRIANGLES);
virtual ~Mesh();
NO_COPY(Mesh);
@@ -31,6 +31,7 @@ private: GLuint m_vertexArrayObject;
std::array<GLuint, NUM_BUFFERS> m_vertexArrayBuffers;
size_t m_numIndices;
+ GLenum mode;
};
#endif
|