BufferType type;
BufferUsage usage;
unsigned id;
+ unsigned size;
static const Buffer *bound[4];
not be changed with this call. */
void sub_data(unsigned, unsigned, const void *);
+ unsigned get_size() const { return size; }
+
/** Binds the buffer in its default slot. */
void bind() const { bind_to(type); }