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)
  2. void updateFromWindow(RenderWindow window, uint x, uint y)
    class Texture
    deprecated("Use update function.")
    void
    updateFromWindow
    ()

Parameters

window

Window to copy to the texture

x
Type: uint

X offset in the texture where to copy the source window

y
Type: uint

Y offset in the texture where to copy the source window

Meta