1SDL_FillRect(3)                SDL API Reference               SDL_FillRect(3)
2
3
4

NAME

6       SDL_FillRect  - This function performs a fast fill of the given rectan‐
7       gle with some color
8

SYNOPSIS

10       #include "SDL.h"
11
12       int SDL_FillRect(SDL_Surface *dst, SDL_Rect *dstrect, Uint32 color);
13

DESCRIPTION

15       This function performs a fast fill of the given rectangle  with  color.
16       If dstrect is NULL, the whole surface will be filled with color.
17
18       The  color should be a pixel of the format used by the surface, and can
19       be generated by the SDL_MapRGB or SDL_MapRGBA functions. If  the  color
20       value  contains  an alpha value then the destination is simply "filled"
21       with that alpha information, no blending takes place.
22
23       If there is a clip rectangle set on the destination (set  via  SDL_Set‐
24       ClipRect) then this function will clip based on the intersection of the
25       clip rectangle and the dstrect rectangle and the dstrect rectangle will
26       be modified to represent the area actually filled.
27

RETURN VALUE

29       This function returns 0 on success, or -1 on error.
30

SEE ALSO

32       SDL_MapRGB, SDL_MapRGBA, SDL_BlitSurface, SDL_Rect
33
34
35
36SDL                         Tue 11 Sep 2001, 23:01             SDL_FillRect(3)
Impressum