- and allocated beforehand. The update region must be fully inside the
- texture. */
- void sub_image(unsigned level, int x, int y, unsigned wd, unsigned ht,
- PixelFormat fmt, DataType type, const void *data);
+ beforehand. The image data must be in a format mathing the defined storage
+ and the update region must be fully inside the texture. */
+ void sub_image(unsigned level, int x, int y, unsigned wd, unsigned ht, const void *data);
+
+ DEPRECATED void sub_image(unsigned level, int x, int y, unsigned wd, unsigned ht,
+ PixelComponents fmt, DataType type, const void *data);
+
+ /** Updates the contents of the entire texture from an image. If storage
+ has not been defined, it will be set to match the image. Otherwise the
+ image must match the defined storage. */
+ virtual void image(const Graphics::Image &, unsigned lv = 0);