X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.h;h=9b2072de1f13d6f56e819a759fa3a1f6b3623491;hb=76e338af116120d93d082ad247591ec9adad9233;hp=4a2e4b340501a57c222eff7c44b8fb95750fe7dc;hpb=a4ec5410595ddf37bfbc0e85ad87d31a9cbf94f1;p=libs%2Fgl.git diff --git a/source/batch.h b/source/batch.h index 4a2e4b34..9b2072de 100644 --- a/source/batch.h +++ b/source/batch.h @@ -29,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