]> git.tdb.fi Git - libs/gl.git/blobdiff - source/batch.h
Move Batch members around
[libs/gl.git] / source / batch.h
index 4d2520a19629e830609d555163c4eca836e67443..dcc2168b312f7c6323442b7e2b52296639156ff7 100644 (file)
@@ -53,30 +53,22 @@ public:
        void set_data_type(DataType);
        DataType get_data_type() const { return data_type; }
        void use_index_buffer(Buffer *, Batch * = 0);
+private:
+       void unlink_from_ibuf();
+       void update_ibuf_offsets();
+
+public:
        Batch &append(unsigned);
        void append(const std::vector<unsigned> &);
        void append(const Batch &);
-       unsigned size() const { return data.size()/get_index_size(); }
-       unsigned get_index(unsigned) const;
-       void draw() const;
-
 private:
        unsigned get_index_size() const;
+public:
+       unsigned size() const { return data.size()/get_index_size(); }
 
-       template<typename T>
-       void append_index(T);
-
-       template<typename T, typename U>
-       void expand_data();
-
-       template<typename T, typename U>
-       void shrink_data();
-
-       template<typename T, typename U>
-       U convert(T) const;
+       unsigned get_index(unsigned) const;
 
-       void unlink_from_ibuf();
-       void update_ibuf_offsets();
+       void draw() const;
 };
 
 } // namespace GL