comparison docs/html/sdlsetpalette.html @ 803:355632dca928

Updated SDL HTML documentation
author Sam Lantinga <slouken@libsdl.org>
date Tue, 10 Feb 2004 15:15:40 +0000
parents e5bc29de3f0a
children
comparison
equal deleted inserted replaced
802:3c609d54f100 803:355632dca928
2 ><HEAD 2 ><HEAD
3 ><TITLE 3 ><TITLE
4 >SDL_SetPalette</TITLE 4 >SDL_SetPalette</TITLE
5 ><META 5 ><META
6 NAME="GENERATOR" 6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64 7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
8 "><LINK 8 "><LINK
9 REL="HOME" 9 REL="HOME"
10 TITLE="SDL Library Documentation" 10 TITLE="SDL Library Documentation"
11 HREF="index.html"><LINK 11 HREF="index.html"><LINK
12 REL="UP" 12 REL="UP"
26 VLINK="#551a8b" 26 VLINK="#551a8b"
27 ALINK="#ff0000" 27 ALINK="#ff0000"
28 ><DIV 28 ><DIV
29 CLASS="NAVHEADER" 29 CLASS="NAVHEADER"
30 ><TABLE 30 ><TABLE
31 SUMMARY="Header navigation table"
31 WIDTH="100%" 32 WIDTH="100%"
32 BORDER="0" 33 BORDER="0"
33 CELLPADDING="0" 34 CELLPADDING="0"
34 CELLSPACING="0" 35 CELLSPACING="0"
35 ><TR 36 ><TR
43 WIDTH="10%" 44 WIDTH="10%"
44 ALIGN="left" 45 ALIGN="left"
45 VALIGN="bottom" 46 VALIGN="bottom"
46 ><A 47 ><A
47 HREF="sdlsetcolors.html" 48 HREF="sdlsetcolors.html"
49 ACCESSKEY="P"
48 >Prev</A 50 >Prev</A
49 ></TD 51 ></TD
50 ><TD 52 ><TD
51 WIDTH="80%" 53 WIDTH="80%"
52 ALIGN="center" 54 ALIGN="center"
56 WIDTH="10%" 58 WIDTH="10%"
57 ALIGN="right" 59 ALIGN="right"
58 VALIGN="bottom" 60 VALIGN="bottom"
59 ><A 61 ><A
60 HREF="sdlsetgamma.html" 62 HREF="sdlsetgamma.html"
63 ACCESSKEY="N"
61 >Next</A 64 >Next</A
62 ></TD 65 ></TD
63 ></TR 66 ></TR
64 ></TABLE 67 ></TABLE
65 ><HR 68 ><HR
66 ALIGN="LEFT" 69 ALIGN="LEFT"
67 WIDTH="100%"></DIV 70 WIDTH="100%"></DIV
68 ><H1 71 ><H1
69 ><A 72 ><A
70 NAME="SDLSETPALETTE" 73 NAME="SDLSETPALETTE"
71 >SDL_SetPalette</A 74 ></A
72 ></H1 75 >SDL_SetPalette</H1
73 ><DIV 76 ><DIV
74 CLASS="REFNAMEDIV" 77 CLASS="REFNAMEDIV"
75 ><A 78 ><A
76 NAME="AEN1133" 79 NAME="AEN1517"
77 ></A 80 ></A
78 ><H2 81 ><H2
79 >Name</H2 82 >Name</H2
80 >SDL_SetPalette&nbsp;--&nbsp;Sets the colors in the palette of an 8-bit surface.</DIV 83 >SDL_SetPalette&nbsp;--&nbsp;Sets the colors in the palette of an 8-bit surface.</DIV
81 ><DIV 84 ><DIV
82 CLASS="REFSYNOPSISDIV" 85 CLASS="REFSYNOPSISDIV"
83 ><A 86 ><A
84 NAME="AEN1136" 87 NAME="AEN1520"
85 ></A 88 ></A
86 ><H2 89 ><H2
87 >Synopsis</H2 90 >Synopsis</H2
88 ><DIV 91 ><DIV
89 CLASS="FUNCSYNOPSIS" 92 CLASS="FUNCSYNOPSIS"
90 ><A 93 ><A
91 NAME="AEN1137" 94 NAME="AEN1521"
92 ></A 95 ></A
93 ><P 96 ><P
94 ></P 97 ></P
95 ><PRE 98 ><PRE
96 CLASS="FUNCSYNOPSISINFO" 99 CLASS="FUNCSYNOPSISINFO"
110 ></DIV 113 ></DIV
111 ></DIV 114 ></DIV
112 ><DIV 115 ><DIV
113 CLASS="REFSECT1" 116 CLASS="REFSECT1"
114 ><A 117 ><A
115 NAME="AEN1143" 118 NAME="AEN1527"
116 ></A 119 ></A
117 ><H2 120 ><H2
118 >Description</H2 121 >Description</H2
119 ><P 122 ><P
120 >Sets a portion of the palette for the given 8-bit surface.</P 123 >Sets a portion of the palette for the given 8-bit surface.</P
189 >=16777216 colors.</P 192 >=16777216 colors.</P
190 ></DIV 193 ></DIV
191 ><DIV 194 ><DIV
192 CLASS="REFSECT1" 195 CLASS="REFSECT1"
193 ><A 196 ><A
194 NAME="AEN1163" 197 NAME="AEN1547"
195 ></A 198 ></A
196 ><H2 199 ><H2
197 >Return Value</H2 200 >Return Value</H2
198 ><P 201 ><P
199 >If <TT 202 >If <TT
221 surface palette to determine the actual color palette.</P 224 surface palette to determine the actual color palette.</P
222 ></DIV 225 ></DIV
223 ><DIV 226 ><DIV
224 CLASS="REFSECT1" 227 CLASS="REFSECT1"
225 ><A 228 ><A
226 NAME="AEN1171" 229 NAME="AEN1555"
227 ></A 230 ></A
228 ><H2 231 ><H2
229 >Example</H2 232 >Example</H2
230 ><PRE 233 ><PRE
231 CLASS="PROGRAMLISTING" 234 CLASS="PROGRAMLISTING"
258 .</PRE 261 .</PRE
259 ></DIV 262 ></DIV
260 ><DIV 263 ><DIV
261 CLASS="REFSECT1" 264 CLASS="REFSECT1"
262 ><A 265 ><A
263 NAME="AEN1174" 266 NAME="AEN1558"
264 ></A 267 ></A
265 ><H2 268 ><H2
266 >See Also</H2 269 >See Also</H2
267 ><P 270 ><P
268 ><A 271 ><A
285 ><DIV 288 ><DIV
286 CLASS="NAVFOOTER" 289 CLASS="NAVFOOTER"
287 ><HR 290 ><HR
288 ALIGN="LEFT" 291 ALIGN="LEFT"
289 WIDTH="100%"><TABLE 292 WIDTH="100%"><TABLE
293 SUMMARY="Footer navigation table"
290 WIDTH="100%" 294 WIDTH="100%"
291 BORDER="0" 295 BORDER="0"
292 CELLPADDING="0" 296 CELLPADDING="0"
293 CELLSPACING="0" 297 CELLSPACING="0"
294 ><TR 298 ><TR
296 WIDTH="33%" 300 WIDTH="33%"
297 ALIGN="left" 301 ALIGN="left"
298 VALIGN="top" 302 VALIGN="top"
299 ><A 303 ><A
300 HREF="sdlsetcolors.html" 304 HREF="sdlsetcolors.html"
305 ACCESSKEY="P"
301 >Prev</A 306 >Prev</A
302 ></TD 307 ></TD
303 ><TD 308 ><TD
304 WIDTH="34%" 309 WIDTH="34%"
305 ALIGN="center" 310 ALIGN="center"
306 VALIGN="top" 311 VALIGN="top"
307 ><A 312 ><A
308 HREF="index.html" 313 HREF="index.html"
314 ACCESSKEY="H"
309 >Home</A 315 >Home</A
310 ></TD 316 ></TD
311 ><TD 317 ><TD
312 WIDTH="33%" 318 WIDTH="33%"
313 ALIGN="right" 319 ALIGN="right"
314 VALIGN="top" 320 VALIGN="top"
315 ><A 321 ><A
316 HREF="sdlsetgamma.html" 322 HREF="sdlsetgamma.html"
323 ACCESSKEY="N"
317 >Next</A 324 >Next</A
318 ></TD 325 ></TD
319 ></TR 326 ></TR
320 ><TR 327 ><TR
321 ><TD 328 ><TD
327 WIDTH="34%" 334 WIDTH="34%"
328 ALIGN="center" 335 ALIGN="center"
329 VALIGN="top" 336 VALIGN="top"
330 ><A 337 ><A
331 HREF="video.html" 338 HREF="video.html"
339 ACCESSKEY="U"
332 >Up</A 340 >Up</A
333 ></TD 341 ></TD
334 ><TD 342 ><TD
335 WIDTH="33%" 343 WIDTH="33%"
336 ALIGN="right" 344 ALIGN="right"