]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexbuilder.h
Use libmspmath to provide vector and matrix operations
[libs/gl.git] / source / vertexbuilder.h
index 7a1c943c9ed18b7f6f2330cdc67b0ebb76bc4197..998f7a6cea4d001c20d41f3529c72aac4ccc8763 100644 (file)
@@ -45,6 +45,9 @@ public:
        void vertex(float x, float y, float z, float w)
        { vertex(Vector4(x, y, z, w)); }
 
+       void vertex(const Vector3 &v)
+       { vertex(Vector4(v.x, v.y, v.z, 1)); }
+
        void vertex(const Vector4 &v)
        { vertex_(mtx.top()*v); }