public:
Mesh() = default;
Mesh(const VertexFormat &);
+ Mesh(Mesh &&);
~Mesh();
/** Sets the vertex format for the mesh. It cannot be changed once set. */
/** 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; }