X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture2d.h;h=b13b8b3ca3bd8c274c04056d00999bbd26707b4e;hp=02cdade57e30e1b19cc771b2a0df4030d3b0a3fe;hb=225dbd7ba2dde73bb28e54e03ae960e88e708f57;hpb=3054756d04a94ec9471448970421de4a7aa7b247 diff --git a/source/core/texture2d.h b/source/core/texture2d.h index 02cdade5..b13b8b3c 100644 --- a/source/core/texture2d.h +++ b/source/core/texture2d.h @@ -61,6 +61,8 @@ public: }; private: + class AsyncLoader; + unsigned width = 0; unsigned height = 0; @@ -91,6 +93,9 @@ public: private: unsigned get_n_levels() const; LinAl::Vector get_level_size(unsigned) const; + +public: + virtual Resource::AsyncLoader *load(IO::Seekable &, const Resources * = 0); }; } // namespace GL