]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexbuilder.cpp
Rewrite VertexFormat to support an arbitary amount of components
[libs/gl.git] / source / vertexbuilder.cpp
index 0b1d3f302fc41cff0cbdb8bc76279d09e2201f53..d6759d7e85be93d873f44b3c873b0cc2e4006fda 100644 (file)
@@ -16,5 +16,14 @@ VertexBuilder::VertexBuilder():
        nx(0), ny(0), nz(1)
 { }
 
+void VertexBuilder::attrib(unsigned i, float x, float y, float z, float w)
+{
+       Attrib &a=av[i];
+       a.x=x;
+       a.y=y;
+       a.z=z;
+       a.w=w;
+}
+
 } // namespace GL
 } // namespace Msp