Renderer.drawRect

Wraps SDL_RenderDrawRectF (from SDL 2.0.10) which draws a rectangle's edges with the renderer's draw color

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

Parameters

rect FRect

dsdl2.FRect of the rectangle

Throws

dsdl2.SDLException if rectangle failed to draw

Meta