]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texturecube.h
Remove the deprecated form of Texture3D::load_image
[libs/gl.git] / source / texturecube.h
index 0882a5e31004c3cef3e129b65ff24a2671e88fc0..7659917dadec259a27281c8774679d85175aba68 100644 (file)
@@ -46,11 +46,14 @@ public:
                void image_data(TextureCubeFace, const std::string &);
                void raw_data(TextureCubeFace, const std::string &);
                void storage(PixelFormat, unsigned);
+               void storage_levels(PixelFormat, unsigned, unsigned);
        };
 
 private:
        unsigned size;
        unsigned levels;
+       /* Lowest six bits track allocation status of faces on the base level.  Bit
+       seven is set if the entire base level is allocated. */
        unsigned allocated;
 
        static TextureCubeFace face_order[6];
@@ -86,7 +89,8 @@ public:
 
        void image(TextureCubeFace, const Graphics::Image &, bool = false);
 
-       virtual void image(const Graphics::Image &, bool = false);
+       virtual void image(const Graphics::Image &, unsigned, bool = false);
+       using Texture::image;
 
        unsigned get_size() const { return size; }
 private: