Renderer.fillRect

Wraps SDL_RenderFillRectF (from SDL 2.0.10) which fills a rectangle with the renderer's draw color

  1. void fillRect(Rect rect)
  2. void fillRect(FRect rect)
    class Renderer
    @trusted
    static if(sdlSupport >= SDLSupport.v2_0_10)
    void
    fillRect

Parameters

rect FRect

dsdl2.FRect of the rectangle

Throws

dsdl2.SDLException if rectangle failed to fill

Meta