~Buffer();
private:
- const Buffer *maybe_bind() const;
+ static void require_buffer_type(BufferType);
public:
/** Sets the usage hint of the buffer. It will take effect the next time
static void unbind_from(BufferType);
private:
static const Buffer *&binding(BufferType);
+ static bool set_current(BufferType, const Buffer *);
static void restore(const Buffer *, BufferType);
};