X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.h;h=d42a8629d1a47df3be7ba8a5ea0eeefa68fad52b;hb=9be04243c92f024327e74ad8d48861581d83b7ed;hp=10c61a289e2e5afb71e94c6049126ee4fcbfe877;hpb=3ba81ebaaec0c271d68cc12afbea86c394c3403d;p=libs%2Fgl.git diff --git a/source/batch.h b/source/batch.h index 10c61a28..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,7 +65,9 @@ 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); };