X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmeshbuilder.cpp;h=57e85fc640ab1a66dc6d5a26187045507d479e1f;hp=025bced159fc999c748e244efdb1a87df12fd3f3;hb=HEAD;hpb=0f3ae7cf6aed59f07895dfbef6740be3b666fc20 diff --git a/source/meshbuilder.cpp b/source/meshbuilder.cpp deleted file mode 100644 index 025bced1..00000000 --- a/source/meshbuilder.cpp +++ /dev/null @@ -1,38 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 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::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