SDL_FillRect

Name

SDL_FillRect -- This function performs a fast fill of the given rectangle with some color

Synopsis

uses 
SDL;

function SDL_FillRect( dst : PSDL_Surface; dstrect : PSDL_Rect; color : UInt32 ) : Integer;

Description

This function performs a fast fill of the given rectangle with color. If dstrect is NULL, the whole surface will be filled with color.

The color should be a pixel of the format used by the surface, and can be generated by the SDL_MapRGB function.

If there is a clip rectangle set on the destination (set via SDL_SetClipRect) then this function will clip based on the intersection of the clip rectangle and the dstrect rectangle.

Return Value

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

See Also

SDL_MapRGB, SDL_BlitSurface, TSDL_Rect