Name
sdl.RenderDrawLine -- draw line
Synopsis
sdl.RenderDrawLine(display, x1, y1, x2, y2)
Function
Use this function to draw a line on the current rendering target.

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
x1
the x coordinate of the start point
y1
the y coordinate of the start point
x2
the x coordinate of the end point
y2
the y coordinate of the end point

Show TOC