]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture3d.h
Implement manual loading policy and async flag
[libs/gl.git] / source / texture3d.h
index 0a03cd5d9e61e1a06d0c41ec3376ca91f4cc0436..6c087a2d099f5ed2bdc0e46b320b026e6dcab6a7 100644 (file)
@@ -32,7 +32,7 @@ public:
        /** Allocates storage for the texture.  The contents are initially
        undefined.  If storage has already been allocated, does nothing. */
        void allocate(unsigned level);
-       
+
        /** Uploads an image to the texture.  Storage must be defined beforehand.
        The image data must have dimensions and format compatible with the defined
        storage. */
@@ -60,6 +60,10 @@ public:
        unsigned get_depth() const { return depth; }
 private:
        void get_level_size(unsigned, unsigned &, unsigned &, unsigned &);
+
+public:
+       virtual AsyncLoader *load(IO::Seekable &) { return 0; }
+       virtual void unload() { }
 };
 
 } // namespace GL