X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvertexbuilder.cpp;h=3d3ec79b650b9821d0f0346198a354930e43f9f6;hb=7e9e15a12fb398798f2719545cc8553354c1e389;hp=0b1d3f302fc41cff0cbdb8bc76279d09e2201f53;hpb=85facfb688035b5bbc9a3a87d080582fbf34930b;p=libs%2Fgl.git diff --git a/source/vertexbuilder.cpp b/source/vertexbuilder.cpp index 0b1d3f30..3d3ec79b 100644 --- a/source/vertexbuilder.cpp +++ b/source/vertexbuilder.cpp @@ -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