From f3343e1cc8a56f039888d4d375a6d5a088a68494 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 19 Apr 2023 01:52:46 +0100 Subject: Export mesh size and primitive type --- gfx/models/mesh.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gfx/models/mesh.cpp') diff --git a/gfx/models/mesh.cpp b/gfx/models/mesh.cpp index 2c849e7..55759cb 100644 --- a/gfx/models/mesh.cpp +++ b/gfx/models/mesh.cpp @@ -21,6 +21,18 @@ Mesh::configureVAO(VertexArrayObject && vao) const .addIndices(m_vertexArrayBuffers[1]); } +GLsizei +Mesh::count() const +{ + return m_numIndices; +} + +GLenum +Mesh::type() const +{ + return mode; +} + void Mesh::Draw() const { -- cgit v1.2.3