X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fmeshbuilder.cpp;h=6f90f67de40cd9940dd381727b9a592b0876582b;hb=df6f8f1f26b1f230dcb1d626d278c43fd48d468d;hp=b238ae63b9a76a608d968bb5b36e44af0cf62445;hpb=50247d85f6bca72b9a53fd97ff8f31e006e8582d;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);