]> git.tdb.fi Git - libs/gl.git/blobdiff - source/batch.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / batch.h
diff --git a/source/batch.h b/source/batch.h
deleted file mode 100644 (file)
index 6950af8..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-/* $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/loader.h>
-#include "primitivetype.h"
-#include "types.h"
-
-namespace Msp {
-namespace GL {
-
-class Batch
-{
-public:
-       class Loader: public DataFile::Loader
-       {
-       public:
-               Loader(Batch &);
-       private:
-               Batch &batch;
-
-               void indices(const std::vector<uint> &);
-       };
-
-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> &);
-       PrimitiveType get_type() const { return type; }
-       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
-} // namespace Msp
-
-#endif