]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/texture.h
Remove support for array size specialization from the engine as well
[libs/gl.git] / source / core / texture.h
index 13ff5bc9f73095094a0800cd1efbd5aaa3a4246a..639b15f5b711c820e8ff448f6d634078e2040ded 100644 (file)
@@ -49,12 +49,12 @@ protected:
                void load_external_image(Graphics::Image &, const std::string &);
 
        private:
-               void external_image(const std::string &);
-               void external_image_srgb(const std::string &);
-               void external_image_common(const std::string &);
+               void external_data(const std::string &);
+               void external_image(bool, const std::string &);
                void generate_mipmap(bool);
                void image_data(const std::string &);
                void mipmap_levels(unsigned);
+               void raw_data(const std::string &);
        };
 
 public:
@@ -93,6 +93,11 @@ public:
 
        using TextureBackend::generate_mipmap;
 
+       /** Replaces contents of an entire mipmap level.  Allocated storage must
+       exist.  The image data is interpreted according to the storage format and
+       must have size matching the selected mipmap level. */
+       virtual void image(unsigned level, const void *) = 0;
+
        /** Loads an image into the texture from a file. */
        virtual void load_image(const std::string &, unsigned = 0);