]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture2d.h
Move Texture2D::AsyncLoader back to the common part
[libs/gl.git] / source / core / texture2d.h
index 02cdade57e30e1b19cc771b2a0df4030d3b0a3fe..b13b8b3ca3bd8c274c04056d00999bbd26707b4e 100644 (file)
@@ -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<unsigned, 2> get_level_size(unsigned) const;
+
+public:
+       virtual Resource::AsyncLoader *load(IO::Seekable &, const Resources * = 0);
 };
 
 } // namespace GL