X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmeshbuilder.cpp;h=57e85fc640ab1a66dc6d5a26187045507d479e1f;hp=b238ae63b9a76a608d968bb5b36e44af0cf62445;hb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;hpb=b617c5d7b5283ad260a77f01e42e6170cabbc03d diff --git a/source/meshbuilder.cpp b/source/meshbuilder.cpp index b238ae63..57e85fc6 100644 --- a/source/meshbuilder.cpp +++ b/source/meshbuilder.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include "mesh.h" #include "meshbuilder.h" @@ -17,6 +10,11 @@ MeshBuilder::MeshBuilder(Mesh &m): batch(0) { } +void MeshBuilder::auto_offset() +{ + offset(mesh.get_vertices().size()); +} + void MeshBuilder::begin_() { batch = new Batch(type);