X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture2d.h;h=1f8b5f7ea557e94abcded7d8f7fd423b7fea7cdd;hp=92dafc7142e31b980493cc20013725f73d29f3c3;hb=7af837734a28a14b3e24a421187d12ecd16572d0;hpb=3a9ee749fbde41695d1b1a0804bbf63d76427b27 diff --git a/source/texture2d.h b/source/texture2d.h index 92dafc71..1f8b5f7e 100644 --- a/source/texture2d.h +++ b/source/texture2d.h @@ -3,7 +3,6 @@ #include #include -#include "resource.h" #include "texture.h" namespace Msp { @@ -32,7 +31,6 @@ public: private: class AsyncLoader; - PixelFormat ifmt; unsigned width; unsigned height; unsigned allocated; @@ -76,7 +74,8 @@ public: unsigned get_height() const { return height; } private: - void get_level_size(unsigned, unsigned &, unsigned &); + unsigned get_n_levels() const; + void get_level_size(unsigned, unsigned &, unsigned &) const; public: virtual Resource::AsyncLoader *load(IO::Seekable &, const Resources * = 0);