X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture2d.h;h=1f8b5f7ea557e94abcded7d8f7fd423b7fea7cdd;hp=674c778f9782116dce94ef4c663e1dda89931953;hb=698e78ecfa30cc3580050996bc236c3ebe65aa2a;hpb=d2efbd8a32efa2a3ee8542efc846277af19d63e0 diff --git a/source/texture2d.h b/source/texture2d.h index 674c778f..1f8b5f7e 100644 --- a/source/texture2d.h +++ b/source/texture2d.h @@ -3,7 +3,6 @@ #include #include -#include "resource.h" #include "texture.h" namespace Msp { @@ -27,13 +26,11 @@ public: void raw_data(const std::string &); void storage(PixelFormat, unsigned, unsigned); - void storage_b(PixelFormat, unsigned, unsigned, unsigned); }; private: class AsyncLoader; - PixelFormat ifmt; unsigned width; unsigned height; unsigned allocated; @@ -77,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);