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::vertex_(const Vector4 &v)
20 PrimitiveBuilder::vertex_(v);
21 mesh.check_buffers(Mesh::VERTEX_BUFFER);
24 void MeshBuilder::begin_()
26 batch = new Batch(type);
29 void MeshBuilder::end_()
31 mesh.add_batch(*batch);
36 void MeshBuilder::element_(unsigned i)