X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftexture2d.h;h=030fe408ad0a2b08bcdc448fe1f305703c3d8dce;hb=1ef3f6df6d85627190e311b4b09f56a4983ec797;hp=a37e2a4d7fd746eeb732d23483d8896115377338;hpb=9d696772b2194b67d8e3e4da11169900eab58c0d;p=libs%2Fgl.git diff --git a/source/texture2d.h b/source/texture2d.h index a37e2a4d..030fe408 100644 --- a/source/texture2d.h +++ b/source/texture2d.h @@ -3,8 +3,6 @@ #include #include -#include "datatype.h" -#include "pixelformat.h" #include "resource.h" #include "texture.h" @@ -43,6 +41,7 @@ private: public: Texture2D(ResourceManager * = 0); + virtual ~Texture2D(); /** Defines storage structure for the texture. Must be called before an image can be uploaded. Once storage is defined, it can't be changed. */ @@ -85,7 +84,8 @@ private: void get_level_size(unsigned, unsigned &, unsigned &); public: - virtual Resource::AsyncLoader *load(IO::Seekable &); + virtual Resource::AsyncLoader *load(IO::Seekable &, const Resources * = 0); + virtual UInt64 get_data_size() const; virtual void unload(); };