]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/buffer_backend.h
Add an asynchronous version of Texture2D::sub_image
[libs/gl.git] / source / backends / opengl / buffer_backend.h
index 5db516fb85b0a4cee8de181ee9ea7224206c8337..06c128af15ddbab4f5b3479eab6548a36268be96 100644 (file)
@@ -15,14 +15,16 @@ class OpenGLBuffer: public NonCopyable
 protected:
        unsigned id = 0;
 
-       static OpenGLBuffer *scratch_binding;
-
        OpenGLBuffer();
+       OpenGLBuffer(OpenGLBuffer &&);
        ~OpenGLBuffer();
 
        void allocate();
-       void sub_data(unsigned, unsigned, const void *);
+       void sub_data(size_t, size_t, const void *);
+
+       unsigned get_multiplicity() const { return 1; }
 
+       bool can_map() const { return true; }
        void *map();
        bool unmap();