From b39a4169e3fe94f3b7c63ed820f299396add571a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 7 Mar 2026 12:56:33 +0000 Subject: Fix naming violations in Mesh They've existed and been annoying since the day I first created it from online examples. --- gfx/models/mesh.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gfx/models/mesh.cpp') diff --git a/gfx/models/mesh.cpp b/gfx/models/mesh.cpp index 2eae160..88314ae 100644 --- a/gfx/models/mesh.cpp +++ b/gfx/models/mesh.cpp @@ -1,7 +1,7 @@ #include "mesh.h" MeshBase::MeshBase(GLsizei m_numIndices, GLenum mode, const std::vector & positions) : - m_numIndices {m_numIndices}, mode {mode}, dimensions {positions} + numIndices {m_numIndices}, mode {mode}, dimensions {positions} { } @@ -29,21 +29,21 @@ MeshBase::Dimensions::extents(const std::span position } void -MeshBase::Draw() const +MeshBase::draw() const { - glBindVertexArray(m_vertexArrayObject); + glBindVertexArray(vertexArrayObject); - glDrawElements(mode, m_numIndices, GL_UNSIGNED_INT, nullptr); + glDrawElements(mode, numIndices, GL_UNSIGNED_INT, nullptr); glBindVertexArray(0); } void -MeshBase::DrawInstanced(GLuint vao, GLsizei count, GLuint base) const +MeshBase::drawInstanced(GLuint vao, GLsizei count, GLuint base) const { glBindVertexArray(vao); - glDrawElementsInstancedBaseInstance(mode, m_numIndices, GL_UNSIGNED_INT, nullptr, count, base); + glDrawElementsInstancedBaseInstance(mode, numIndices, GL_UNSIGNED_INT, nullptr, count, base); glBindVertexArray(0); } -- cgit v1.3