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