X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fmeshbuilder.cpp;h=57e85fc640ab1a66dc6d5a26187045507d479e1f;hb=HEAD;hp=6f90f67de40cd9940dd381727b9a592b0876582b;hpb=df6f8f1f26b1f230dcb1d626d278c43fd48d468d;p=libs%2Fgl.git diff --git a/source/meshbuilder.cpp b/source/meshbuilder.cpp deleted file mode 100644 index 6f90f67d..00000000 --- a/source/meshbuilder.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/* $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" - -namespace Msp { -namespace GL { - -MeshBuilder::MeshBuilder(Mesh &m): - PrimitiveBuilder(m.vertices), - mesh(m), - batch(0) -{ } - -void MeshBuilder::auto_offset() -{ - offset(mesh.get_vertices().size()); -} - -void MeshBuilder::begin_() -{ - batch = new Batch(type); -} - -void MeshBuilder::end_() -{ - mesh.add_batch(*batch); - delete batch; - batch = 0; -} - -void MeshBuilder::element_(unsigned i) -{ - batch->append(i); -} - -} // namespace GL -} // namespace Msp