virtual bool Update(const UpdateDesc* updates, unsigned count = 1, unsigned mipLevel = 0);
Update updates a texture region based on the specified image data. The first method updates texture by copying the provided data into it, only one mip-level can be updated at a time. The second method performs a full image update by calling the associated Image::Decode.
Texture update proceeds in four (optional) steps:
1. Image::Decode - Done unless rescaling directly from RawImage.
2. Rescale - Done if non-power of two textures are not supported as necessary.
3. Convert - Needed if conversion wasn't applied in Decode.
4. SWF Mipmap generation - Loop to generate SWF mipmaps, may also have a convert step.
Parameters |
Description |
const UpdateDesc* updates |
Pointer to the structure containing texture update data. |
unsigned count = 1 |
The number of items in updates. |
unsigned mipLevel = 0 |
The mipmap level to update, with 0 indicating the top level texture. |
A Boolean value of true if updates are done, otherwise false.