Name
sdl.RenderDrawRect -- draw rectangle outline
Synopsis
sdl.RenderDrawRect(display[, x, y, w, h])
Function
Use this function to draw a rectangle on the current rendering target. If you leave out the optional arguments, the whole rendering target will be outlined.

The current drawing color is set by sdl.SetRenderDrawColor(), and the color's alpha value is ignored unless blending is enabled with the appropriate call to sdl.SetRenderDrawBlendMode().

Inputs
display
identifier of display whose renderer should be used
x
optional: the x coordinate of the upper left corner
y
optional: the y coordinate of the upper left corner
w
optional: the rectangle width
h
optional: the rectangle height

Show TOC