3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
11 #include <msp/datafile/loader.h>
13 #include "meshbuilder.h"
14 #include "vertexarray.h"
21 friend class MeshBuilder;
24 class Loader: public DataFile::Loader
31 void vertices(VertexFormat);
32 void batch(PrimitiveType);
37 std::list<Batch> batches;
43 void use_vertex_buffer(bool);
44 RefPtr<MeshBuilder> modify();
45 const VertexArray &get_vertices() const { return vertices; }
46 void add_batch(const Batch &b);
47 const std::list<Batch> &get_batches() { return batches; }