]> git.tdb.fi Git - libs/gl.git/blobdiff - source/batch.h
Remove support for UInt8 indices from Batch
[libs/gl.git] / source / batch.h
index 7212383e01a2e973ac39185592f39c69f3ac76cc..d42a8629d1a47df3be7ba8a5ea0eeefa68fad52b 100644 (file)
@@ -34,7 +34,7 @@ public:
 private:
        PrimitiveType prim_type;
        DataType data_type;
-       std::vector<unsigned char> data;
+       std::vector<UInt8> 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);