]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture1d.h
Require texture data to be uploaded in a format matching the storage
[libs/gl.git] / source / texture1d.h
index b0a9c681e2c4917d05d3a108289d9515a308515b..2b2a6b19cceec1236ee2d416d99bf08762328887 100644 (file)
@@ -36,8 +36,10 @@ public:
        { storage(make_pixelformat(c, UNSIGNED_BYTE), w, l); }
 
        void allocate(unsigned);
-       void image(unsigned, PixelComponents, DataType, const void *);
-       void sub_image(unsigned, int, unsigned, PixelComponents, DataType, const void *);
+       void image(unsigned, const void *);
+       DEPRECATED void image(unsigned, PixelComponents, DataType, const void *);
+       void sub_image(unsigned, int, unsigned, const void *);
+       DEPRECATED void sub_image(unsigned, int, unsigned, PixelComponents, DataType, const void *);
        virtual void image(const Graphics::Image &, unsigned, bool = false);
        using Texture::image;
        unsigned get_width() const { return width; }