public:
Batch(PrimitiveType);
- ~Batch();
PrimitiveType get_type() const { return prim_type; }
virtual std::size_t get_data_size() const { return data.size(); }
virtual const void *get_data_pointer() const { return &data[0]; }
virtual std::size_t get_alignment() const { return get_index_size(); }
- std::size_t get_index_size() const;
public:
+ std::size_t get_index_size() const { return get_type_size(index_type); }
std::size_t size() const { return data.size()/get_index_size(); }
unsigned get_index(std::size_t) const;