Surface.fillRects - multiple declarations

Function Surface.fillRects

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

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

Parameters

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

Throws

dsdl.SDLException if the rectangles failed to draw

Function Surface.fillRects

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

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

Parameters

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

Throws

dsdl.SDLException if the rectangles failed to draw