X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.h;fp=source%2Fbatch.h;h=dcc2168b312f7c6323442b7e2b52296639156ff7;hb=50175b88e2f189e80881d292dcc32523c5b272fc;hp=4d2520a19629e830609d555163c4eca836e67443;hpb=83bfb4bc26cf20cada1fcda47064b75d8e49fa08;p=libs%2Fgl.git diff --git a/source/batch.h b/source/batch.h index 4d2520a1..dcc2168b 100644 --- a/source/batch.h +++ b/source/batch.h @@ -53,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