summaryrefslogtreecommitdiff
path: root/gfx/models/vertex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/models/vertex.cpp')
-rw-r--r--gfx/models/vertex.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gfx/models/vertex.cpp b/gfx/models/vertex.cpp
new file mode 100644
index 0000000..c144db3
--- /dev/null
+++ b/gfx/models/vertex.cpp
@@ -0,0 +1,10 @@
+#include "vertex.h"
+#include "gfx/gl/vertexArrayObject.h"
+
+template<>
+VertexArrayObject &
+VertexArrayObject::addAttribsFor<Vertex>(const GLuint arrayBuffer, const GLuint divisor)
+{
+ return addAttribs<Vertex, &Vertex::pos, &Vertex::texCoord, &Vertex::normal, &Vertex::colour, &Vertex::material>(
+ arrayBuffer, divisor);
+}