chickadee » sdl2 » render-draw-lines!

render-draw-line! renderer x1 y1 x2 y2procedure
render-draw-lines! renderer pointsprocedure

Draw a line segment or multiple line segments, using the renderer's current draw color and blend mode. See SDL_RenderDrawLine and SDL_RenderDrawLines. These procedures are available in sdl2 egg version 0.2.0 and higher.

  • render-draw-line! draws a single line segment.
  • render-draw-lines! draws multiple line segments (from point 0 to point 1, point 1 to point 2, etc.). points must be a list or vector of sdl2:point instances.