From e3d42befda7ee1f309d1a67797db492561fd8e52 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 28 Jun 2024 20:23:57 +0100 Subject: Allow passing start index for instanced draw First stage of culling support --- gfx/models/mesh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gfx/models/mesh.h') diff --git a/gfx/models/mesh.h b/gfx/models/mesh.h index d790d16..248cb8f 100644 --- a/gfx/models/mesh.h +++ b/gfx/models/mesh.h @@ -11,7 +11,7 @@ class Vertex; class MeshBase { public: void Draw() const; - void DrawInstanced(GLuint vao, GLsizei count) const; + void DrawInstanced(GLuint vao, GLsizei count, GLuint base = 0) const; protected: MeshBase(GLsizei m_numIndices, GLenum mode); -- cgit v1.2.3