X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.h;h=dcc2168b312f7c6323442b7e2b52296639156ff7;hb=50175b88e2f189e80881d292dcc32523c5b272fc;hp=696891ba3047ce1a557c9f36ddeee64b82c17882;hpb=c48cb5362edb16c33ed5f6862a908bb9a754c85a;p=libs%2Fgl.git diff --git a/source/batch.h b/source/batch.h index 696891ba..dcc2168b 100644 --- a/source/batch.h +++ b/source/batch.h @@ -1,10 +1,3 @@ -/* $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_ @@ -60,30 +53,22 @@ public: void set_data_type(DataType); DataType get_data_type() const { return data_type; } void use_index_buffer(Buffer *, Batch * = 0); +private: + void unlink_from_ibuf(); + void update_ibuf_offsets(); + +public: Batch &append(unsigned); void append(const std::vector &); void append(const Batch &); - unsigned size() const { return data.size()/get_index_size(); } - unsigned get_index(unsigned) const; - void draw() const; - private: unsigned get_index_size() const; +public: + unsigned size() const { return data.size()/get_index_size(); } - template - void append_index(T); - - template - void expand_data(); - - template - void shrink_data(); - - template - U convert(T) const; + unsigned get_index(unsigned) const; - void unlink_from_ibuf(); - void update_ibuf_offsets(); + void draw() const; }; } // namespace GL