Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2010-03-08 02:24:20
Size: 1362
Editor: SheenaSmith
Comment: create page, add content (Rev 5559)
Revision 2 as of 2010-03-08 02:45:15
Size: 1330
Editor: SheenaSmith
Comment: minor correction
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
int SDLCALL SDL_FillRects(SDL_Surface* dst,
         const SDL_Rect** rects,
                          int count,
                          Uint32 color)
int SDL_FillRects(SDL_Surface* dst,
                  const SDL_Rect** rects,
                  int count,
                  Uint32 color)

DRAFT

SDL_FillRects

Use this function to perform a fast fill of the given rectangles with color.

Syntax

int SDL_FillRects(SDL_Surface*     dst,
                  const SDL_Rect** rects,
                  int              count,
                  Uint32           color)

Function Parameters

dst

a pointer to the destination surface / SDL_Surface containing the rectangles

rects

a pointer to a pointer containing the rectangles / SDL_Rects to fill

count

the number of rectangles to fill

color

the color to fill the rectangles with

Return Value

Returns 0 on success, or -1 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.


CategoryAPI, CategorySurface

None: SDL_FillRects (last edited 2011-03-12 19:48:37 by SheenaSmith)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit