]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture1d.h
Allow texture mipmap levels to be specified in datafiles
[libs/gl.git] / source / texture1d.h
index 506356c77676d98cea1a01d52d8a8f373a71f024..eb16696f988811ca237d7c0bebd2e158622c6cbb 100644 (file)
@@ -19,6 +19,7 @@ public:
 
                void raw_data(const std::string &);
                void storage(PixelFormat, unsigned);
+               void storage_levels(PixelFormat, unsigned, unsigned);
        };
 
 private:
@@ -33,7 +34,8 @@ public:
        void allocate(unsigned);
        void image(unsigned, PixelFormat, DataType, const void *);
        void sub_image(unsigned, int, unsigned, PixelFormat, DataType, const void *);
-       virtual void image(const Graphics::Image &, bool = false);
+       virtual void image(const Graphics::Image &, unsigned, bool = false);
+       using Texture::image;
        unsigned get_width() const { return width; }
 
 private: