]> 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 10c61a289e2e5afb71e94c6049126ee4fcbfe877..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,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);
 };