Surface.fillRects - multiple declarations

Function Surface.fillRects

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

void fillRects (
  const(Rect[]) rects,
  uint pixel
) @trusted;

Parameters

NameDescription
rects an array of dsdl2.Rects specifying the drawn rectangles' positions and sizes
pixel pixel value of the color to fill the rectangles

Throws

dsdl2.SDLException if the rectangles failed to draw

Function Surface.fillRects

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

void fillRects (
  const(Rect[]) rects,
  Color color
) @trusted;

Parameters

NameDescription
rects an array of dsdl2.Rects specifying the drawn rectangles' positions and sizes
color dsdl2.Color of the color to fill the rectangles

Throws

dsdl2.SDLException if the rectangles failed to draw