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_Palette"("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_Palette- Color palette for 8-bit pixel formats
- <h2><a name='sect1' href='#toc1'>Structure Definition</a></h2>
- <p>
- <br>
- <pre>CWtypedef struct{
- int ncolors;
- SDL_Color *colors;
- } SDL_Palette;
- </pre><p>
-
- <h2><a name='sect2' href='#toc2'>Structure Data</a></h2>
-
- <dl>
-
- <dt><b>ncolors</b> </dt>
- <dd>Number of colors used in this palette </dd>
-
- <dt><b>colors</b> </dt>
- <dd>Pointer
- to <i><b>SDL_Color</b></i> structures that make up the palette. </dd>
- </dl>
-
- <h2><a name='sect3' href='#toc3'>Description</a></h2>
- <p>
- Each pixel
- in an 8-bit surface is an index into the <b>colors</b> field of the <b>SDL_Palette</b>
- structure store in <i><b>SDL_PixelFormat</b></i>. A <b>SDL_Palette</b> should never need to be
- created manually. It is automatically created when SDL allocates a <b>SDL_PixelFormat</b>
- for a surface. The colors values of a <i><b>SDL_Surface</b></i>s palette can be set with
- the <i><b>SDL_SetColors</b></i>.
- <h2><a name='sect4' href='#toc4'>See Also</a></h2>
- <p>
- <i><b>SDL_Color</b></i>, <i><b>SDL_Surface</b></i>, <i><b>SDL_SetColors</b></i> <i><b>SDL_SetPalette</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'>Structure Definition</a></li>
- <li><a name='toc2' href='#sect2'>Structure Data</a></li>
- <li><a name='toc3' href='#sect3'>Description</a></li>
- <li><a name='toc4' href='#sect4'>See Also</a></li>
- </ul>
- </body>
- </html>
-