X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fbatch.h;h=9b2072de1f13d6f56e819a759fa3a1f6b3623491;hb=287985a83e42e1e0af0c1522272d97d96fce00f9;hp=237995dcd7698b60061836336524e9ce8181cdc0;hpb=cea3c333797cadd9629aefaa5b82243173a02d16;p=libs%2Fgl.git diff --git a/source/batch.h b/source/batch.h index 237995dc..9b2072de 100644 --- a/source/batch.h +++ b/source/batch.h @@ -9,7 +9,6 @@ Distributed under the LGPL #define MSP_GL_BATCH_H_ #include -#include #include #include "primitivetype.h" #include "types.h" @@ -30,15 +29,20 @@ public: void indices(const std::vector &); }; - Batch(PrimitiveType t); - Batch &append(uint); - void append(const std::vector &); - void draw() const; private: PrimitiveType type; std::vector indices; uint min_index; uint max_index; + +public: + Batch(PrimitiveType t); + Batch &append(uint); + void append(const std::vector &); + 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