From ef00fc9ae1323b64d5e167d04a987887c60c6ec0 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 10 May 2023 00:02:50 +0100 Subject: Make Mesh into a template to support any vertex type Customisation point VertexArrayObject to define the layout for the type --- gfx/gl/vertexArrayObject.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gfx/gl') diff --git a/gfx/gl/vertexArrayObject.h b/gfx/gl/vertexArrayObject.h index 085cba6..1d27588 100644 --- a/gfx/gl/vertexArrayObject.h +++ b/gfx/gl/vertexArrayObject.h @@ -46,6 +46,9 @@ public: return *this; } + // Customisation point + template VertexArrayObject & addAttribsFor(const GLuint arrayBuffer, const GLuint divisor = 0); + template VertexArrayObject & addIndices(const GLuint arrayBuffer, const Indices & indices) -- cgit v1.2.3