X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture3d.h;h=cf336e52b0227fb859d2125cb686f07d70db46b3;hp=75ae0fe902acb1eb8974591df86b67c9505e5fb3;hb=4cb33c263a00787a57531dfc41a4128bf34d7bee;hpb=d2efbd8a32efa2a3ee8542efc846277af19d63e0 diff --git a/source/texture3d.h b/source/texture3d.h index 75ae0fe9..cf336e52 100644 --- a/source/texture3d.h +++ b/source/texture3d.h @@ -27,12 +27,13 @@ public: }; private: - PixelFormat ifmt; unsigned width; unsigned height; unsigned depth; unsigned allocated; +protected: + Texture3D(GLenum); public: Texture3D(); @@ -82,8 +83,9 @@ public: unsigned get_width() const { return width; } unsigned get_height() const { return height; } unsigned get_depth() const { return depth; } -private: - void get_level_size(unsigned, unsigned &, unsigned &, unsigned &); +protected: + unsigned get_n_levels() const; + void get_level_size(unsigned, unsigned &, unsigned &, unsigned &) const; public: virtual AsyncLoader *load(IO::Seekable &, const Resources * = 0) { return 0; }