- /** Updates a rectangular region of the texture. Storage must be defined
- 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);
-
-private:
- void sub_image(unsigned, int, int, unsigned, unsigned, const Buffer &, unsigned);
-
-public:
- /** 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);
+ /** Replaces a rectangular region of the texture. Allocated storage must
+ exist. The image data is interpreted according to the storage format and
+ the region must be fully inside the selected mipmap level. */
+ void sub_image(unsigned level, unsigned x, unsigned y, unsigned wd, unsigned ht, const void *);