.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL's wiki page for SDL_FillSurfaceRects: .\" https://wiki.libsdl.org/SDL_FillSurfaceRects .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision SDL-3.1.0 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20SDL_FillSurfaceRects .\" SDL can be found at https://libsdl.org/ .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH SDL_FillSurfaceRects 3 "SDL 3.1.0" "SDL" "SDL3 FUNCTIONS" .SH NAME SDL_FillSurfaceRects \- Perform a fast fill of a set of rectangles with a specific color\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3/SDL.h\(dq .PP .BI "int SDL_FillSurfaceRects(SDL_Surface *dst, const SDL_Rect *rects, int count, Uint32 color); .fi .SH DESCRIPTION .BR color should be a pixel of the format used by the surface, and can be generated by .BR SDL_MapRGB () or .BR SDL_MapRGBA ()\[char46] If the color value contains an alpha component then the destination is simply filled with that alpha information, no blending takes place\[char46] If there is a clip rectangle set on the destination (set via .BR SDL_SetSurfaceClipRect ()), then this function will fill based on the intersection of the clip rectangle and .BR rect \[char46] .SH FUNCTION PARAMETERS .TP .I dst the .BR SDL_Surface structure that is the drawing target .TP .I rects an array of .BR SDL_Rects representing the rectangles to fill\[char46] .TP .I count the number of rectangles in the array .TP .I color the color to fill with .SH RETURN VALUE Returns 0 on success or a negative error code on failure; call .BR SDL_GetError () for more information\[char46] .SH AVAILABILITY This function is available since SDL 3\[char46]0\[char46]0\[char46] .SH SEE ALSO .BR SDL_FillSurfaceRect (3)