X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fmesh.h;h=ba2aebc76c1fd35254f66429f5035e4370d587b5;hb=e70662d7812464159f2e47f4bebb69d88f89ae93;hp=f8e1b6c1fa20f2148e582976b817109ca8e4f86c;hpb=5fa69268fa051ce8d74d30bb3d7eecc1b00cff15;p=libs%2Fgl.git diff --git a/source/core/mesh.h b/source/core/mesh.h index f8e1b6c1..ba2aebc7 100644 --- a/source/core/mesh.h +++ b/source/core/mesh.h @@ -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 &get_batches() const { return batches; }