sdl.RenderCopy(display, tex[, src, dst, angle, center, flip])
tex to the display specified
by display, optionally rotating it by angle around the given center point and also flipping it top-bottom
and/or left-right. The tex argument must simply be the identifier of a hardware brush.
If specified, src and dst must be tables containing the following fields:
x
y
w
h
Alternatively, you can also set src and/or dst to Nil. Passing Nil in src and/or dst means to
use the entire size of the source or destination, respectively. If source and destination sizes
do not match, sdl.RenderCopy() will automatically stretch the texture to fit to the destination
rectangle.
If specified, center must be a table containing the following fields:
x
y
Alternatively, you can also set center to Nil. In that case, the center point will be set to
the center of the destination rectangle.
If specified, flip must be a combination of the following predefined constants:
#SDL_FLIP_NONE#SDL_FLIP_HORIZONTAL#SDL_FLIP_VERTICALThe texture is blended with the destination based on its blend mode set with sdl.SetTextureBlendMode().
The texture color is affected based on its color modulation set by sdl.SetTextureColorMod().
The texture alpha is affected based on its alpha modulation set by sdl.SetTextureAlphaMod().
Nil which means use the whole texture)Nil which means fill the entire display)Nil which means destination rectangle center)#SDL_FLIP_NONE)