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