summaryrefslogtreecommitdiff
path: root/gfx/models/mesh.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-20 15:00:43 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-20 15:00:43 +0000
commit9afd53a3295b36b6799324e0e4ba8c37c9f2e376 (patch)
treefe3372be6381c790a1d0143e918f16ededb91dad /gfx/models/mesh.h
parentAdd a non-threaded worker (diff)
downloadilt-9afd53a3295b36b6799324e0e4ba8c37c9f2e376.tar.bz2
ilt-9afd53a3295b36b6799324e0e4ba8c37c9f2e376.tar.xz
ilt-9afd53a3295b36b6799324e0e4ba8c37c9f2e376.zip
Fix constness of Mesh constructor params
Diffstat (limited to 'gfx/models/mesh.h')
-rw-r--r--gfx/models/mesh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/models/mesh.h b/gfx/models/mesh.h
index 1e53407..8825aa2 100644
--- a/gfx/models/mesh.h
+++ b/gfx/models/mesh.h
@@ -14,7 +14,7 @@ enum MeshBufferPositions { POSITION_VB, TEXCOORD_VB, NORMAL_VB, INDEX_VB };
class Mesh {
public:
- Mesh(std::span<Vertex> vertices, std::span<unsigned int> indices, GLenum = GL_TRIANGLES);
+ Mesh(const std::span<const Vertex> vertices, const std::span<const unsigned int> indices, GLenum = GL_TRIANGLES);
virtual ~Mesh();
NO_COPY(Mesh);