]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/texture2d_backend.h
Add support for padding in vertex formats
[libs/gl.git] / source / backends / opengl / texture2d_backend.h
index 8f2fec594f65733840dc8ede27fdd5d48a615ef7..af9f482cbf039c47e6bb17190bfdf7966701032a 100644 (file)
@@ -13,14 +13,16 @@ class OpenGLTexture2D: public Texture
 protected:
        class AsyncLoader;
 
-       OpenGLTexture2D(ResourceManager *);
+       OpenGLTexture2D();
 
        void allocate();
        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;