2 #include "meshbuilder.h"
7 MeshBuilder::MeshBuilder(Mesh &m):
8 PrimitiveBuilder(m.vertices),
13 void MeshBuilder::auto_offset()
15 offset(mesh.get_vertices().size());
18 void MeshBuilder::begin_()
20 batch = new Batch(type);
23 void MeshBuilder::end_()
25 mesh.add_batch(*batch);
30 void MeshBuilder::element_(unsigned i)