#define MSP_GL_BATCH_H_
#include <vector>
-#include <GL/gl.h>
#include <msp/datafile/loader.h>
#include "primitivetype.h"
#include "types.h"
void indices(const std::vector<uint> &);
};
- Batch(PrimitiveType t);
- Batch &append(uint);
- void append(const std::vector<uint> &);
- void draw() const;
private:
PrimitiveType type;
std::vector<uint> indices;
uint min_index;
uint max_index;
+
+public:
+ Batch(PrimitiveType t);
+ Batch &append(uint);
+ void append(const std::vector<uint> &);
+ unsigned size() const { return indices.size(); }
+ const std::vector<uint> &get_indices() const { return indices; }
+ void draw() const;
+ void draw_with_buffer(unsigned) const;
};
} // namespace GL