Renderer.drawLine

Wraps SDL_RenderDrawLineF (from SDL 2.0.10) which draws a line between two points with the renderer's draw color

  1. void drawLine(Point[2] line)
  2. void drawLine(FPoint[2] line)
    class Renderer
    @trusted
    static if(sdlSupport >= SDLSupport.v2_0_10)
    void
    drawLine

Parameters

line FPoint[2]

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

Throws

dsdl2.SDLException if line failed to draw

Meta