Replaces the texture's data with a new Image.
Note: The texture has to be initialized first with the createFromImage method before it can be updated. The new image dimensions, format, and mipmaps configuration should match the existing texture's image configuration, otherwise it has to be re-created with the createFromImage method.
Use this method over createFromImage if you need to update the texture frequently, which is faster than allocating additional memory for a new texture each time.
Replaces the texture's data with a new Image. Note: The texture has to be initialized first with the createFromImage method before it can be updated. The new image dimensions, format, and mipmaps configuration should match the existing texture's image configuration, otherwise it has to be re-created with the createFromImage method. Use this method over createFromImage if you need to update the texture frequently, which is faster than allocating additional memory for a new texture each time.