/* $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
*/
batch(0)
{ }
+void MeshBuilder::auto_offset()
+{
+ offset(mesh.get_vertices().size());
+}
+
void MeshBuilder::begin_()
{
- batch=new Batch(type);
+ batch = new Batch(type);
}
void MeshBuilder::end_()
{
mesh.add_batch(*batch);
delete batch;
- batch=0;
+ batch = 0;
}
void MeshBuilder::element_(unsigned i)