3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GL_BATCH_H_
9 #define MSP_GL_BATCH_H_
12 #include <msp/datafile/loader.h>
13 #include "primitivetype.h"
22 class Loader: public DataFile::Loader
29 void indices(const std::vector<uint> &);
34 std::vector<uint> indices;
39 Batch(PrimitiveType t);
41 void append(const std::vector<uint> &);
42 unsigned size() const { return indices.size(); }
43 const std::vector<uint> &get_indices() const { return indices; }
45 void draw_with_buffer(unsigned) const;