1 #ifndef MSP_GL_BUFFER_BACKEND_H_
2 #define MSP_GL_BUFFER_BACKEND_H_
4 #include <msp/core/noncopyable.h>
9 class OpenGLBuffer: public NonCopyable
11 friend class OpenGLPipelineState;
12 friend class OpenGLTexture2D;
13 friend class OpenGLVertexSetup;
19 OpenGLBuffer(OpenGLBuffer &&);
23 void sub_data(std::size_t, std::size_t, const void *);
25 unsigned get_multiplicity() const { return 1; }
27 bool can_map() const { return true; }
31 void set_debug_name(const std::string &);
34 static void unbind_scratch();
37 using BufferBackend = OpenGLBuffer;