Surface.fillRect

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

  1. void fillRect(Rect rect, uint pixel)
  2. void fillRect(Rect rect, Color color)
    class Surface
    @trusted
    void
    fillRect

Parameters

rect Rect

dsdl2.Rect specifying the position and size

color Color

dsdl2.Color of the color to fill the rectangle

Throws

dsdl2.SDLException if rectangle failed to draw

Meta