protected:
unsigned id = 0;
- static OpenGLBuffer *scratch_binding;
-
OpenGLBuffer();
OpenGLBuffer(OpenGLBuffer &&);
~OpenGLBuffer();
void allocate();
void sub_data(size_t, size_t, const void *);
+ bool can_map() const { return true; }
void *map();
bool unmap();