home *** CD-ROM | disk | FTP | other *** search
- <!-- manual page source format generated by PolyglotMan v3.0.8+X.Org, -->
- <!-- available at http://polyglotman.sourceforge.net/ -->
-
- <html>
- <head>
- <title>"SDL_FillRect"("3") manual page</title>
- </head>
- <body bgcolor='#efefef' text='black' link='blue' vlink='#551A8B' alink='red'>
- <a href='#toc'>Table of Contents</a><p>
-
- <h2><a name='sect0' href='#toc0'>Name</a></h2>
- SDL_FillRect- This function performs a fast fill of the given rectangle
- with some color
- <h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
- <p>
- <b>#include "SDL.h" <p>
- </b><b>int <b>SDL_FillRect</b></b>(<b>SDL_Surface *dst,
- SDL_Rect *dstrect, Uint32 color</b>);
- <h2><a name='sect2' href='#toc2'>Description</a></h2>
- <p>
- This function performs a fast
- fill of the given rectangle with <b>color</b>. If <b>dstrect</b> is <b>NULL</b>, the whole surface
- will be filled with <b>color</b>. <p>
- The color should be a pixel of the format used
- by the surface, and can be generated by the <i>SDL_MapRGB</i> or <i>SDL_MapRGBA</i> functions.
- If the color value contains an alpha value then the destination is simply
- "filled" with that alpha information, no blending takes place. <p>
- If there
- is a clip rectangle set on the destination (set via <i>SDL_SetClipRect</i>) then
- this function will clip based on the intersection of the clip rectangle
- and the <b>dstrect</b> rectangle and the dstrect rectangle will be modified to
- represent the area actually filled.
- <h2><a name='sect3' href='#toc3'>Return Value</a></h2>
- <p>
- This function returns <b>0</b>
- on success, or <b>-1</b> on error.
- <h2><a name='sect4' href='#toc4'>See Also</a></h2>
- <p>
- <i><b>SDL_MapRGB</b></i>, <i><b>SDL_MapRGBA</b></i>, <i><b>SDL_BlitSurface</b></i>,
- <i><b>SDL_Rect</b></i>
- <!--
-
- <p>
-
- <hr><p>
- <a name='toc'><b>Table of Contents</b></a><p>
- <ul>
- <li><a name='toc0' href='#sect0'>Name</a></li>
- <li><a name='toc1' href='#sect1'>Synopsis</a></li>
- <li><a name='toc2' href='#sect2'>Description</a></li>
- <li><a name='toc3' href='#sect3'>Return Value</a></li>
- <li><a name='toc4' href='#sect4'>See Also</a></li>
- </ul>
- </body>
- </html>
-