Renderer.drawLine

Wraps SDL_RenderDrawLine which draws a line between two points with the renderer's draw color

  1. void drawLine(Point[2] line)
    class Renderer
    @trusted
    void
    drawLine
    ()
  2. void drawLine(FPoint[2] line)

Parameters

line Point[2]

array of two dsdl2.Points indicating the line's start and end

Throws

dsdl2.SDLException if line failed to draw

Meta