From 627aa88ad2559f41d5be62d36cdbf536a97e4246 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 18 Jan 2021 02:08:01 +0000 Subject: Factor to support worlds, objects, windows etc --- gfx/models/mesh.cpp | 2 +- gfx/models/mesh.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gfx/models') diff --git a/gfx/models/mesh.cpp b/gfx/models/mesh.cpp index 8c304b3..df48e8d 100644 --- a/gfx/models/mesh.cpp +++ b/gfx/models/mesh.cpp @@ -65,7 +65,7 @@ Mesh::~Mesh() } void -Mesh::Draw() +Mesh::Draw() const { glBindVertexArray(m_vertexArrayObject); diff --git a/gfx/models/mesh.h b/gfx/models/mesh.h index 453e54a..6dc5c32 100644 --- a/gfx/models/mesh.h +++ b/gfx/models/mesh.h @@ -22,7 +22,7 @@ public: NO_COPY(Mesh); NO_MOVE(Mesh); - void Draw(); + void Draw() const; private: static constexpr unsigned int NUM_BUFFERS {4}; -- cgit v1.2.3