Renderer.drawRect - multiple declarations

Function Renderer.drawRect

Wraps SDL_RenderDrawRect which draws a rectangle's edges with the renderer's draw color

void drawRect (
  Rect rect
) @trusted;

Parameters

NameDescription
rect dsdl2.Rect of the rectangle

Throws

dsdl2.SDLException if rectangle failed to draw

Function Renderer.drawRect

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

void drawRect (
  FRect rect
) @trusted;

Parameters

NameDescription
rect dsdl2.FRect of the rectangle

Throws

dsdl2.SDLException if rectangle failed to draw