Texture.update

Update the texture from an image.

No additional check is performed on the size of the image, passing an invalid combination of image size and offset will lead to an undefined behavior.

This function does nothing if the texture was not previously created.

Parameters

image const(Image)

Image to copy to the texture.

y uint

Y offset in the texture where to copy the source image.

x uint

X offset in the texture where to copy the source image.

Meta