Texture.update

Update a part of the texture from the contents of a window.

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

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

Parameters

window const(T)

Window to copy to the texture

x uint

X offset in the texture where to copy the source window

y uint

Y offset in the texture where to copy the source window

Meta