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