Surface.fillRects

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

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

Parameters

rects Rect[]

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

pixel uint

pixel value of the color to fill the rectangles

Throws

dsdl2.SDLException if the rectangles failed to draw

Meta