]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture2d.h
Allow texture mipmap levels to be specified in datafiles
[libs/gl.git] / source / texture2d.h
index 2a49eca572ee06e25a7a770488b0639d6fd07fc9..092f12ba47aaa77167aaf8ee67648045dc0f8328 100644 (file)
@@ -26,6 +26,7 @@ public:
 
                void raw_data(const std::string &);
                void storage(PixelFormat, unsigned, unsigned);
+               void storage_levels(PixelFormat, unsigned, unsigned, unsigned);
        };
 
 private:
@@ -68,10 +69,12 @@ public:
 
        If srgb is true and storage is determined by this call, then an sRGB pixel
        format will be used. */
-       virtual void image(const Graphics::Image &, bool srgb = false);
+       virtual void image(const Graphics::Image &, unsigned lv, bool srgb = false);
+
+       using Texture::image;
 
 private:
-       void image(const Graphics::Image &, bool, bool);
+       void image(const Graphics::Image &, unsigned, bool, bool);
 
 public:
        unsigned get_width() const { return width; }