X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture3d.h;h=93cae7e84e573ff40b0e5685210a9ab6c3ca990c;hb=a480d4cc323db7cc77388f5af0094dd593dc66e9;hp=0a03cd5d9e61e1a06d0c41ec3376ca91f4cc0436;hpb=e003d7a1497dad3b13e4e88e681f8fa2afc40c83;p=libs%2Fgl.git diff --git a/source/texture3d.h b/source/texture3d.h index 0a03cd5d..93cae7e8 100644 --- a/source/texture3d.h +++ b/source/texture3d.h @@ -2,8 +2,6 @@ #define MSP_GL_TEXTURE3D_H_ #include -#include "datatype.h" -#include "pixelformat.h" #include "texture.h" namespace Msp { @@ -32,7 +30,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 +58,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