X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.h;h=d42a8629d1a47df3be7ba8a5ea0eeefa68fad52b;hb=66181b3f47322ffc9b8aebf04a8c222abe1a75a2;hp=7212383e01a2e973ac39185592f39c69f3ac76cc;hpb=f50822b9e73a6ecdacbc4af4c4d9aba435a72386;p=libs%2Fgl.git diff --git a/source/batch.h b/source/batch.h index 7212383e..d42a8629 100644 --- a/source/batch.h +++ b/source/batch.h @@ -34,7 +34,7 @@ public: private: PrimitiveType prim_type; DataType data_type; - std::vector data; + std::vector data; unsigned min_index; unsigned max_index; bool restart; @@ -65,6 +65,7 @@ public: unsigned get_index(unsigned) const; void draw() const; + void draw_instanced(unsigned) const; private: const void *setup_draw() const; static void set_restart_index(unsigned);