X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbatch.h;h=82d8fbcada662440e5374ec8504cb3106c4104ee;hp=6950af894898b93bc576df783a7c9cb857635ac4;hb=HEAD;hpb=c6c4fc39952e372eba1f44f2bc504428140f3d0e diff --git a/source/batch.h b/source/batch.h deleted file mode 100644 index 6950af89..00000000 --- a/source/batch.h +++ /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 -#include -#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 &); - }; - -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