Texture.updateFromWindow

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 behaviour.

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

  1. void updateFromWindow(Window window, uint x, uint y)
    class Texture
    void
    updateFromWindow
    (,
    uint x
    ,
    uint y
    )
  2. void updateFromWindow(RenderWindow window, uint x, uint y)

Parameters

window Window

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