Renderer.drawRects

Wraps SDL_RenderDrawRectsF (from SDL 2.0.10) which draws multiple rectangles' edges with the renderer's draw color

  1. void drawRects(Rect[] rects)
  2. void drawRects(FRect[] rects)
    class Renderer
    @trusted
    static if(sdlSupport >= SDLSupport.v2_0_10)
    void
    drawRects
    (
    const FRect[] rects
    )

Parameters

rects FRect[]

array of dsdl2.FRect of the rectangles

Throws

dsdl2.SDLException if rectangles failed to draw

Meta