3 This file is part of libmspgl
4 Copyright © 2007-2010 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
11 #include <msp/datafile/objectloader.h>
13 #include "vertexarray.h"
22 friend class MeshBuilder;
25 class Loader: public DataFile::ObjectLoader<Mesh>
30 void vertices(VertexFormat);
31 void batch(PrimitiveType);
36 std::list<Batch> batches;
42 Mesh(const VertexFormat &f);
46 void use_buffers(bool);
48 const VertexArray &get_vertices() const { return vertices; }
49 unsigned get_n_vertices() const;
50 float *modify_vertex(unsigned);
52 void add_batch(const Batch &b);
53 const std::list<Batch> &get_batches() { return batches; }