Surface.fillRect - multiple declarations

Function Surface.fillRect

Wraps SDL_FillRect which draws a filled rectangle in the dsdl2.Surface with specifying a pixel color value

void fillRect (
  Rect rect,
  uint pixel
) @trusted;

Parameters

NameDescription
rect dsdl2.Rect specifying the position and size
pixel pixel value of the color to fill the rectangle

Throws

dsdl2.SDLException if rectangle failed to draw

Function Surface.fillRect

Wraps SDL_FillRect which draws a filled rectangle in the dsdl2.Surface with specifying a dsdl2.Color value

void fillRect (
  Rect rect,
  Color color
) @trusted;

Parameters

NameDescription
rect dsdl2.Rect specifying the position and size
color dsdl2.Color of the color to fill the rectangle

Throws

dsdl2.SDLException if rectangle failed to draw