X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmesh.cpp;h=fec753d0d3938d157b93403cd47716539f30551c;hb=dc1d1159a61f378bda11e5989ad694a86b9a3c77;hp=44005514d97a74deb54fdb339d42436b5f74ed0a;hpb=99b656a7c44859a038156b82365122a5e336b1e8;p=libs%2Fgl.git diff --git a/source/mesh.cpp b/source/mesh.cpp index 44005514..fec753d0 100644 --- a/source/mesh.cpp +++ b/source/mesh.cpp @@ -28,14 +28,15 @@ void Mesh::use_vertex_buffer(bool b) vertices.use_vertex_buffer(0); } -RefPtr Mesh::modify() +void Mesh::add_batch(const Batch &b) { - return new MeshBuilder(*this); + batches.push_back(b); } -void Mesh::add_batch(const Batch &b) +void Mesh::clear() { - batches.push_back(b); + vertices.clear(); + batches.clear(); } void Mesh::draw() const