]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/texture2d_backend.h
Move the Resource function override of Texture classes into backend
[libs/gl.git] / source / backends / opengl / texture2d_backend.h
index 595c51f51ea38e76233f1617f37ea4398095a190..af9f482cbf039c47e6bb17190bfdf7966701032a 100644 (file)
@@ -19,8 +19,10 @@ protected:
        void sub_image(unsigned, int, int, unsigned, unsigned, const void *);
        void sub_image(unsigned, int, int, unsigned, unsigned, const Buffer &, unsigned);
 
-       Resource::AsyncLoader *create_async_loader(IO::Seekable &);
-       void unload();
+public:
+       virtual Resource::AsyncLoader *load(IO::Seekable &, const Resources * = 0);
+       virtual std::size_t get_data_size() const;
+       virtual void unload();
 };
 
 using Texture2DBackend = OpenGLTexture2D;