Texture.updateFromImage

Update the texture from an image. * Although the source image can be smaller than the texture, this function is usually used for updating the whole texture. The other overload, which has (x, y) additional arguments, is more convenient for updating a sub-area of the texture. * No additional check is performed on the size of the image, passing an image bigger than the texture will lead to an undefined behaviour. * This function does nothing if the texture was not previously created. *

class Texture
deprecated("Use update function.")
void
updateFromImage
(
,
uint x
,
uint y
)

Parameters

image
Type: Image

Image to copy to the texture.

Meta