Surface.fillRects

Wraps SDL_FillRects which draws multiple filled rectangles in the dsdl2.Surface with specifying a dsdl2.Color value

  1. void fillRects(Rect[] rects, uint pixel)
  2. void fillRects(Rect[] rects, Color color)
    class Surface
    @trusted
    void
    fillRects
    (
    const Rect[] rects
    ,)

Parameters

rects Rect[]

an array of dsdl2.Rects specifying the drawn rectangles' positions and sizes

color Color

dsdl2.Color of the color to fill the rectangles

Throws

dsdl2.SDLException if the rectangles failed to draw

Meta