fillRects method
Fill some number of rectangles on the current rendering target with the drawing color at subpixel precision.
\param renderer the renderer which should fill multiple rectangles. \param rects a pointer to an array of destination rectangles. \param count the number of rectangles. \returns true on success or false on failure; call SDL_GetError() for more information.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.1.3.
\sa SDL_RenderFillRect
extern SDL_DECLSPEC bool SDLCALL SDL_RenderFillRects(SDL_Renderer *renderer, const SDL_FRect *rects, int count)
Implementation
bool fillRects(List<math.Rectangle<double>> rects) {
var rectsPointer = rects.calloc();
var result = sdlRenderFillRects(this, rectsPointer, rects.length);
calloc.free(rectsPointer);
return result;
}