X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fmeshbuilder.cpp;h=57e85fc640ab1a66dc6d5a26187045507d479e1f;hb=HEAD;hp=b238ae63b9a76a608d968bb5b36e44af0cf62445;hpb=b617c5d7b5283ad260a77f01e42e6170cabbc03d;p=libs%2Fgl.git diff --git a/source/meshbuilder.cpp b/source/meshbuilder.cpp deleted file mode 100644 index b238ae63..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