DRAFT |
SDL_FillRects
Use this function to perform a fast fill of the given rectangles with color.
Contents
Syntax
int SDL_FillRects(SDL_Surface* dst,
const SDL_Rect** rects,
int count,
Uint32 color)
Function Parameters
dst |
the destination SDL_Surface structure containing the rectangles |
rects |
an array of SDL_Rect structures representing the rectangles to fill , or NULL to fill the entire render target |
count |
the number of rectangles in the array |
color |
the color to fill the rectangles with; see Remarks for details |
Return Value
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
If rects is NULL, the whole surface will be filled with color. green
The color should be a pixel of the format used by the surface, and can be generated by the SDL_MapRGB() function.
