]> git.tdb.fi Git - libs/gl.git/blobdiff - source/mesh.cpp
Use RAII checks for extensions and versions
[libs/gl.git] / source / mesh.cpp
index 3a275e5b0731a3332e08fdbfb5e9e76f14be0339..fec753d0d3938d157b93403cd47716539f30551c 100644 (file)
@@ -33,6 +33,12 @@ void Mesh::add_batch(const Batch &b)
        batches.push_back(b);
 }
 
+void Mesh::clear()
+{
+       vertices.clear();
+       batches.clear();
+}
+
 void Mesh::draw() const
 {
        vertices.apply();