docs/html/sdlpalette.html
changeset 3352 6dc250ebdd80
parent 3351 8e0182c236d8
child 3353 6b14223dd5c7
     1.1 --- a/docs/html/sdlpalette.html	Wed Oct 07 06:11:53 2009 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,301 +0,0 @@
     1.4 -<HTML
     1.5 -><HEAD
     1.6 -><TITLE
     1.7 ->SDL_Palette</TITLE
     1.8 -><META
     1.9 -NAME="GENERATOR"
    1.10 -CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
    1.11 -"><LINK
    1.12 -REL="HOME"
    1.13 -TITLE="SDL Library Documentation"
    1.14 -HREF="index.html"><LINK
    1.15 -REL="UP"
    1.16 -TITLE="Video"
    1.17 -HREF="video.html"><LINK
    1.18 -REL="PREVIOUS"
    1.19 -TITLE="SDL_Color"
    1.20 -HREF="sdlcolor.html"><LINK
    1.21 -REL="NEXT"
    1.22 -TITLE="SDL_PixelFormat"
    1.23 -HREF="sdlpixelformat.html"></HEAD
    1.24 -><BODY
    1.25 -CLASS="REFENTRY"
    1.26 -BGCOLOR="#FFF8DC"
    1.27 -TEXT="#000000"
    1.28 -LINK="#0000ee"
    1.29 -VLINK="#551a8b"
    1.30 -ALINK="#ff0000"
    1.31 -><DIV
    1.32 -CLASS="NAVHEADER"
    1.33 -><TABLE
    1.34 -SUMMARY="Header navigation table"
    1.35 -WIDTH="100%"
    1.36 -BORDER="0"
    1.37 -CELLPADDING="0"
    1.38 -CELLSPACING="0"
    1.39 -><TR
    1.40 -><TH
    1.41 -COLSPAN="3"
    1.42 -ALIGN="center"
    1.43 ->SDL Library Documentation</TH
    1.44 -></TR
    1.45 -><TR
    1.46 -><TD
    1.47 -WIDTH="10%"
    1.48 -ALIGN="left"
    1.49 -VALIGN="bottom"
    1.50 -><A
    1.51 -HREF="sdlcolor.html"
    1.52 -ACCESSKEY="P"
    1.53 ->Prev</A
    1.54 -></TD
    1.55 -><TD
    1.56 -WIDTH="80%"
    1.57 -ALIGN="center"
    1.58 -VALIGN="bottom"
    1.59 -></TD
    1.60 -><TD
    1.61 -WIDTH="10%"
    1.62 -ALIGN="right"
    1.63 -VALIGN="bottom"
    1.64 -><A
    1.65 -HREF="sdlpixelformat.html"
    1.66 -ACCESSKEY="N"
    1.67 ->Next</A
    1.68 -></TD
    1.69 -></TR
    1.70 -></TABLE
    1.71 -><HR
    1.72 -ALIGN="LEFT"
    1.73 -WIDTH="100%"></DIV
    1.74 -><H1
    1.75 -><A
    1.76 -NAME="SDLPALETTE"
    1.77 -></A
    1.78 ->SDL_Palette</H1
    1.79 -><DIV
    1.80 -CLASS="REFNAMEDIV"
    1.81 -><A
    1.82 -NAME="AEN3129"
    1.83 -></A
    1.84 -><H2
    1.85 ->Name</H2
    1.86 ->SDL_Palette&nbsp;--&nbsp;Color palette for 8-bit pixel formats</DIV
    1.87 -><DIV
    1.88 -CLASS="REFSECT1"
    1.89 -><A
    1.90 -NAME="AEN3132"
    1.91 -></A
    1.92 -><H2
    1.93 ->Structure Definition</H2
    1.94 -><PRE
    1.95 -CLASS="PROGRAMLISTING"
    1.96 ->typedef struct{
    1.97 -  int ncolors;
    1.98 -  SDL_Color *colors;
    1.99 -} SDL_Palette;</PRE
   1.100 -></DIV
   1.101 -><DIV
   1.102 -CLASS="REFSECT1"
   1.103 -><A
   1.104 -NAME="AEN3135"
   1.105 -></A
   1.106 -><H2
   1.107 ->Structure Data</H2
   1.108 -><DIV
   1.109 -CLASS="INFORMALTABLE"
   1.110 -><A
   1.111 -NAME="AEN3137"
   1.112 -></A
   1.113 -><P
   1.114 -></P
   1.115 -><TABLE
   1.116 -BORDER="0"
   1.117 -CLASS="CALSTABLE"
   1.118 -><TBODY
   1.119 -><TR
   1.120 -><TD
   1.121 -ALIGN="LEFT"
   1.122 -VALIGN="TOP"
   1.123 -><TT
   1.124 -CLASS="STRUCTFIELD"
   1.125 -><I
   1.126 ->ncolors</I
   1.127 -></TT
   1.128 -></TD
   1.129 -><TD
   1.130 -ALIGN="LEFT"
   1.131 -VALIGN="TOP"
   1.132 ->Number of colors used in this palette</TD
   1.133 -></TR
   1.134 -><TR
   1.135 -><TD
   1.136 -ALIGN="LEFT"
   1.137 -VALIGN="TOP"
   1.138 -><TT
   1.139 -CLASS="STRUCTFIELD"
   1.140 -><I
   1.141 ->colors</I
   1.142 -></TT
   1.143 -></TD
   1.144 -><TD
   1.145 -ALIGN="LEFT"
   1.146 -VALIGN="TOP"
   1.147 ->Pointer to <A
   1.148 -HREF="sdlcolor.html"
   1.149 -><SPAN
   1.150 -CLASS="STRUCTNAME"
   1.151 ->SDL_Color</SPAN
   1.152 -></A
   1.153 -> structures that make up the palette.</TD
   1.154 -></TR
   1.155 -></TBODY
   1.156 -></TABLE
   1.157 -><P
   1.158 -></P
   1.159 -></DIV
   1.160 -></DIV
   1.161 -><DIV
   1.162 -CLASS="REFSECT1"
   1.163 -><A
   1.164 -NAME="AEN3150"
   1.165 -></A
   1.166 -><H2
   1.167 ->Description</H2
   1.168 -><P
   1.169 ->Each pixel in an 8-bit surface is an index into the <TT
   1.170 -CLASS="STRUCTFIELD"
   1.171 -><I
   1.172 ->colors</I
   1.173 -></TT
   1.174 -> field of the <SPAN
   1.175 -CLASS="STRUCTNAME"
   1.176 ->SDL_Palette</SPAN
   1.177 -> structure store in <A
   1.178 -HREF="sdlpixelformat.html"
   1.179 -><SPAN
   1.180 -CLASS="STRUCTNAME"
   1.181 ->SDL_PixelFormat</SPAN
   1.182 -></A
   1.183 ->. A <SPAN
   1.184 -CLASS="STRUCTNAME"
   1.185 ->SDL_Palette</SPAN
   1.186 -> should never need to be created manually. It is automatically created when SDL allocates a <SPAN
   1.187 -CLASS="STRUCTNAME"
   1.188 ->SDL_PixelFormat</SPAN
   1.189 -> for a surface. The colors values of a <A
   1.190 -HREF="sdlsurface.html"
   1.191 -><SPAN
   1.192 -CLASS="STRUCTNAME"
   1.193 ->SDL_Surface</SPAN
   1.194 -></A
   1.195 ->s palette can be set with the <A
   1.196 -HREF="sdlsetcolors.html"
   1.197 -><TT
   1.198 -CLASS="FUNCTION"
   1.199 ->SDL_SetColors</TT
   1.200 -></A
   1.201 ->.</P
   1.202 -></DIV
   1.203 -><DIV
   1.204 -CLASS="REFSECT1"
   1.205 -><A
   1.206 -NAME="AEN3163"
   1.207 -></A
   1.208 -><H2
   1.209 ->See Also</H2
   1.210 -><P
   1.211 -><A
   1.212 -HREF="sdlcolor.html"
   1.213 -><SPAN
   1.214 -CLASS="STRUCTNAME"
   1.215 ->SDL_Color</SPAN
   1.216 -></A
   1.217 ->,
   1.218 -<A
   1.219 -HREF="sdlsurface.html"
   1.220 -><SPAN
   1.221 -CLASS="STRUCTNAME"
   1.222 ->SDL_Surface</SPAN
   1.223 -></A
   1.224 ->,
   1.225 -<A
   1.226 -HREF="sdlsetcolors.html"
   1.227 -><TT
   1.228 -CLASS="FUNCTION"
   1.229 ->SDL_SetColors</TT
   1.230 -></A
   1.231 ->
   1.232 -<A
   1.233 -HREF="sdlsetpalette.html"
   1.234 -><TT
   1.235 -CLASS="FUNCTION"
   1.236 ->SDL_SetPalette</TT
   1.237 -></A
   1.238 -></P
   1.239 -></DIV
   1.240 -><DIV
   1.241 -CLASS="NAVFOOTER"
   1.242 -><HR
   1.243 -ALIGN="LEFT"
   1.244 -WIDTH="100%"><TABLE
   1.245 -SUMMARY="Footer navigation table"
   1.246 -WIDTH="100%"
   1.247 -BORDER="0"
   1.248 -CELLPADDING="0"
   1.249 -CELLSPACING="0"
   1.250 -><TR
   1.251 -><TD
   1.252 -WIDTH="33%"
   1.253 -ALIGN="left"
   1.254 -VALIGN="top"
   1.255 -><A
   1.256 -HREF="sdlcolor.html"
   1.257 -ACCESSKEY="P"
   1.258 ->Prev</A
   1.259 -></TD
   1.260 -><TD
   1.261 -WIDTH="34%"
   1.262 -ALIGN="center"
   1.263 -VALIGN="top"
   1.264 -><A
   1.265 -HREF="index.html"
   1.266 -ACCESSKEY="H"
   1.267 ->Home</A
   1.268 -></TD
   1.269 -><TD
   1.270 -WIDTH="33%"
   1.271 -ALIGN="right"
   1.272 -VALIGN="top"
   1.273 -><A
   1.274 -HREF="sdlpixelformat.html"
   1.275 -ACCESSKEY="N"
   1.276 ->Next</A
   1.277 -></TD
   1.278 -></TR
   1.279 -><TR
   1.280 -><TD
   1.281 -WIDTH="33%"
   1.282 -ALIGN="left"
   1.283 -VALIGN="top"
   1.284 ->SDL_Color</TD
   1.285 -><TD
   1.286 -WIDTH="34%"
   1.287 -ALIGN="center"
   1.288 -VALIGN="top"
   1.289 -><A
   1.290 -HREF="video.html"
   1.291 -ACCESSKEY="U"
   1.292 ->Up</A
   1.293 -></TD
   1.294 -><TD
   1.295 -WIDTH="33%"
   1.296 -ALIGN="right"
   1.297 -VALIGN="top"
   1.298 ->SDL_PixelFormat</TD
   1.299 -></TR
   1.300 -></TABLE
   1.301 -></DIV
   1.302 -></BODY
   1.303 -></HTML
   1.304 ->
   1.305 \ No newline at end of file