]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture2d.h
Add a function to set depth clip of EnvironmentMap
[libs/gl.git] / source / texture2d.h
index 221fbd7b76a28aee38d95382a2b797e34fd5d24c..1f8b5f7ea557e94abcded7d8f7fd423b7fea7cdd 100644 (file)
@@ -31,7 +31,6 @@ public:
 private:
        class AsyncLoader;
 
-       PixelFormat ifmt;
        unsigned width;
        unsigned height;
        unsigned allocated;
@@ -75,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);