X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture3d.h;h=c55a3c1ae3bffd40be72d97183e0fbbebe86bd7e;hb=b345b919f572b35042d7c50291422f2f917e5a08;hp=0a03cd5d9e61e1a06d0c41ec3376ca91f4cc0436;hpb=e003d7a1497dad3b13e4e88e681f8fa2afc40c83;p=libs%2Fgl.git diff --git a/source/texture3d.h b/source/texture3d.h index 0a03cd5d..c55a3c1a 100644 --- a/source/texture3d.h +++ b/source/texture3d.h @@ -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,11 @@ public: unsigned get_depth() const { return depth; } private: void get_level_size(unsigned, unsigned &, unsigned &, unsigned &); + +public: + virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; } + virtual UInt64 get_data_size() const; + virtual void unload() { } }; } // namespace GL