X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftexture3d.h;h=fa4c050f039c38f9a0734b0f6ec11ec21082e92b;hb=922fac753e31d97fc88daa166e93e4c5572bd2ba;hp=0a03cd5d9e61e1a06d0c41ec3376ca91f4cc0436;hpb=e003d7a1497dad3b13e4e88e681f8fa2afc40c83;p=libs%2Fgl.git diff --git a/source/texture3d.h b/source/texture3d.h index 0a03cd5d..fa4c050f 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 &) { return 0; } + virtual UInt64 get_data_size() const; + virtual void unload() { } }; } // namespace GL