]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/mesh.h
Add correct copy and move semantics to most classes
[libs/gl.git] / source / core / mesh.h
index f8e1b6c1fa20f2148e582976b817109ca8e4f86c..ba2aebc76c1fd35254f66429f5035e4370d587b5 100644 (file)
@@ -83,6 +83,7 @@ private:
 public:
        Mesh() = default;
        Mesh(const VertexFormat &);
+       Mesh(Mesh &&);
        ~Mesh();
 
        /** Sets the vertex format for the mesh.  It cannot be changed once set. */
@@ -105,7 +106,7 @@ public:
 
        /** Adds a batch to the mesh.  It may be combined with the last existing
        batch if the primitive types are compatible. */
-       void add_batch(const Batch &b);
+       void add_batch(Batch &&b);
 
        const std::vector<Batch> &get_batches() const { return batches; }