Surface.fillRect - multiple declarations

Function Surface.fillRect

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

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

Parameters

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

Throws

dsdl.SDLException if rectangle failed to draw

Function Surface.fillRect

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

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

Parameters

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

Throws

dsdl.SDLException if rectangle failed to draw