X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmesh.cpp;h=cba1bf57fdbcd8737183c90d06fb1d9c7a511d51;hp=8d039977e0ff2532992adce536a9a73a20f2256f;hb=e92458a4a0e6191bff549a8b316dbbbd7c56e90f;hpb=0bea04fdbb08596dcf57210164d5dbb10308b4d7 diff --git a/source/mesh.cpp b/source/mesh.cpp index 8d039977..cba1bf57 100644 --- a/source/mesh.cpp +++ b/source/mesh.cpp @@ -24,6 +24,11 @@ Mesh::Mesh(VertexFormat f): vertices.use_vertex_buffer(); } +RefPtr Mesh::modify() +{ + return new MeshBuilder(*this); +} + void Mesh::add_batch(const Batch &b) { batches.push_back(b);