X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmeshbuilder.cpp;h=9e71536a52a3ef121fafa5d7ab99ef73f64cc2bf;hb=5f78db03b3285c977760a41da1e3927720e50352;hp=6f90f67de40cd9940dd381727b9a592b0876582b;hpb=df6f8f1f26b1f230dcb1d626d278c43fd48d468d;p=libs%2Fgl.git diff --git a/source/meshbuilder.cpp b/source/meshbuilder.cpp index 6f90f67d..9e71536a 100644 --- a/source/meshbuilder.cpp +++ b/source/meshbuilder.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2008, 2010-2011 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include "mesh.h" #include "meshbuilder.h" @@ -22,6 +15,12 @@ void MeshBuilder::auto_offset() offset(mesh.get_vertices().size()); } +void MeshBuilder::vertex_(const Vector4 &v) +{ + PrimitiveBuilder::vertex_(v); + mesh.check_buffers(Mesh::VERTEX_BUFFER); +} + void MeshBuilder::begin_() { batch = new Batch(type);