2 #include "meshbuilder.h"
9 MeshBuilder::MeshBuilder(Mesh &m):
10 PrimitiveBuilder(m.vertices),
15 MeshBuilder::~MeshBuilder()
17 mesh.check_buffers(Mesh::VERTEX_BUFFER);
20 void MeshBuilder::auto_offset()
22 offset(mesh.get_vertices().size());
25 void MeshBuilder::begin_()
27 batch = new Batch(type);
30 void MeshBuilder::end_()
32 mesh.add_batch(move(*batch));
37 void MeshBuilder::element_(unsigned i)