+++ /dev/null
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007, 2009-2010 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#ifndef MSP_GL_BATCH_H_
-#define MSP_GL_BATCH_H_
-
-#include <vector>
-#include <msp/datafile/objectloader.h>
-#include "primitivetype.h"
-
-namespace Msp {
-namespace GL {
-
-class Batch
-{
-public:
- class Loader: public DataFile::ObjectLoader<Batch>
- {
- public:
- Loader(Batch &);
- private:
- void indices(const std::vector<unsigned> &);
- };
-
-private:
- PrimitiveType type;
- std::vector<unsigned> indices;
- unsigned min_index;
- unsigned max_index;
-
-public:
- Batch(PrimitiveType t);
-
- Batch &append(unsigned);
- void append(const std::vector<unsigned> &);
- PrimitiveType get_type() const { return type; }
- unsigned size() const { return indices.size(); }
- const std::vector<unsigned> &get_indices() const { return indices; }
- void draw() const;
- void draw_with_buffer(unsigned) const;
-};
-
-} // namespace GL
-} // namespace Msp
-
-#endif