Surface.fillRect

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

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

Parameters

rect Rect

dsdl2.Rect specifying the position and size

pixel uint

pixel value of the color to fill the rectangle

Throws

dsdl2.SDLException if rectangle failed to draw

Meta