X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.h;h=82d8fbcada662440e5374ec8504cb3106c4104ee;hb=refs%2Fheads%2Fmaster;hp=bca541392832c3285b78ce97c8ea44cd75342e90;hpb=927a1aa0a3a27e463ec0efc08bd08e7c4e969909;p=libs%2Fgl.git diff --git a/source/batch.h b/source/batch.h deleted file mode 100644 index bca54139..00000000 --- a/source/batch.h +++ /dev/null @@ -1,50 +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 -#include -#include "primitivetype.h" -#include "types.h" - -namespace Msp { -namespace GL { - -class Batch -{ -public: - class Loader: public DataFile::ObjectLoader - { - public: - Loader(Batch &); - private: - void indices(const std::vector &); - }; - -private: - PrimitiveType type; - std::vector indices; - uint min_index; - uint max_index; - -public: - Batch(PrimitiveType t); - Batch &append(uint); - void append(const std::vector &); - PrimitiveType get_type() const { return type; } - unsigned size() const { return indices.size(); } - const std::vector &get_indices() const { return indices; } - void draw() const; - void draw_with_buffer(unsigned) const; -}; - -} // namespace GL -} // namespace Msp - -#endif