]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture3d.h
Prefer explicit mipmap generation with glGenerateMipmap
[libs/gl.git] / source / texture3d.h
index 75ae0fe902acb1eb8974591df86b67c9505e5fb3..57f3a6f8589e9d1ea9c986785b477524880b0a76 100644 (file)
@@ -33,6 +33,8 @@ private:
        unsigned depth;
        unsigned allocated;
 
+protected:
+       Texture3D(GLenum);
 public:
        Texture3D();
 
@@ -82,8 +84,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; }