sdlRenderFillRects function

int sdlRenderFillRects(
  1. Pointer<SdlRenderer> renderer,
  2. Pointer<SdlRect> rects,
  3. int count
)

Fill some number of rectangles on the current rendering target with the drawing color.

\param renderer the rendering context \param rects an array of SDL_Rect structures representing the rectangles to be filled \param count the number of rectangles \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_RenderDrawLine \sa SDL_RenderDrawLines \sa SDL_RenderDrawPoint \sa SDL_RenderDrawPoints \sa SDL_RenderDrawRect \sa SDL_RenderDrawRects \sa SDL_RenderFillRect \sa SDL_RenderPresent

extern DECLSPEC int SDLCALL SDL_RenderFillRects(SDL_Renderer * renderer, const SDL_Rect * rects, int count)

Implementation

int sdlRenderFillRects(
    Pointer<SdlRenderer> renderer, Pointer<SdlRect> rects, int count) {
  final sdlRenderFillRectsLookupFunction = libSdl2.lookupFunction<
      Int32 Function(
          Pointer<SdlRenderer> renderer, Pointer<SdlRect> rects, Int32 count),
      int Function(Pointer<SdlRenderer> renderer, Pointer<SdlRect> rects,
          int count)>('SDL_RenderFillRects');
  return sdlRenderFillRectsLookupFunction(renderer, rects, count);
}