1 #ifndef MSP_GL_TEXTURE2D_BACKEND_H_
2 #define MSP_GL_TEXTURE2D_BACKEND_H_
11 class OpenGLTexture2D: public Texture
14 class AsyncTransfer: public NonCopyable
17 Buffer *pixel_buffer = 0;
19 AsyncTransfer() = default;
20 AsyncTransfer(AsyncTransfer &&);
21 AsyncTransfer &operator=(AsyncTransfer &&);
31 void sub_image(unsigned, int, int, unsigned, unsigned, const void *);
34 virtual std::size_t get_data_size() const;
35 virtual void unload();
38 using Texture2DBackend = OpenGLTexture2D;