Renderer.drawRects - multiple declarations

Function Renderer.drawRects

Wraps SDL_RenderDrawRects which draws multiple rectangles' edges with the renderer's draw color

void drawRects (
  const(Rect[]) rects
) @trusted;

Parameters

NameDescription
rects array of dsdl2.Rect of the rectangles

Throws

dsdl2.SDLException if rectangles failed to draw

Function Renderer.drawRects

Wraps SDL_RenderDrawRectsF (from SDL 2.0.10) which draws multiple rectangles' edges with the renderer's draw color

void drawRects (
  const(FRect[]) rects
) @trusted;

Parameters

NameDescription
rects array of dsdl2.FRect of the rectangles

Throws

dsdl2.SDLException if rectangles failed to draw