comparison docs/html/sdlsetpalette.html @ 55:55f1f1b3e27d

Added new docs for SDL 1.2.1
author Sam Lantinga <slouken@lokigames.com>
date Sun, 10 Jun 2001 19:31:57 +0000
parents 74212992fb08
children e5bc29de3f0a
comparison
equal deleted inserted replaced
54:028447a8a758 55:55f1f1b3e27d
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.61 7 CONTENT="Modular DocBook HTML Stylesheet Version 1.64
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"
71 >SDL_SetPalette</A 71 >SDL_SetPalette</A
72 ></H1 72 ></H1
73 ><DIV 73 ><DIV
74 CLASS="REFNAMEDIV" 74 CLASS="REFNAMEDIV"
75 ><A 75 ><A
76 NAME="AEN1060" 76 NAME="AEN1102"
77 ></A 77 ></A
78 ><H2 78 ><H2
79 >Name</H2 79 >Name</H2
80 >SDL_SetPalette&nbsp;--&nbsp;Sets the colors in the palette of an 8-bit surface.</DIV 80 >SDL_SetPalette&nbsp;--&nbsp;Sets the colors in the palette of an 8-bit surface.</DIV
81 ><DIV 81 ><DIV
82 CLASS="REFSYNOPSISDIV" 82 CLASS="REFSYNOPSISDIV"
83 ><A 83 ><A
84 NAME="AEN1063" 84 NAME="AEN1105"
85 ></A 85 ></A
86 ><H2 86 ><H2
87 >Synopsis</H2 87 >Synopsis</H2
88 ><DIV 88 ><DIV
89 CLASS="FUNCSYNOPSIS" 89 CLASS="FUNCSYNOPSIS"
90 ><A 90 ><A
91 NAME="AEN1064" 91 NAME="AEN1106"
92 ></A 92 ></A
93 ><P 93 ><P
94 ></P 94 ></P
95 ><PRE 95 ><PRE
96 CLASS="FUNCSYNOPSISINFO" 96 CLASS="FUNCSYNOPSISINFO"
101 CLASS="FUNCDEF" 101 CLASS="FUNCDEF"
102 >int <B 102 >int <B
103 CLASS="FSFUNC" 103 CLASS="FSFUNC"
104 >SDL_SetPalette</B 104 >SDL_SetPalette</B
105 ></CODE 105 ></CODE
106 >(SDL_Surface *surface, int flags, int SDL_Color *colors, int firstcolor, int ncolors);</CODE 106 >(SDL_Surface *surface, int flags, SDL_Color *colors, int firstcolor, int ncolors);</CODE
107 ></P 107 ></P
108 ><P 108 ><P
109 ></P 109 ></P
110 ></DIV 110 ></DIV
111 ></DIV 111 ></DIV
112 ><DIV 112 ><DIV
113 CLASS="REFSECT1" 113 CLASS="REFSECT1"
114 ><A 114 ><A
115 NAME="AEN1070" 115 NAME="AEN1112"
116 ></A 116 ></A
117 ><H2 117 ><H2
118 >Description</H2 118 >Description</H2
119 ><P 119 ><P
120 >Sets a portion of the palette for the given 8-bit surface.</P 120 >Sets a portion of the palette for the given 8-bit surface.</P
189 >=16777216 colors.</P 189 >=16777216 colors.</P
190 ></DIV 190 ></DIV
191 ><DIV 191 ><DIV
192 CLASS="REFSECT1" 192 CLASS="REFSECT1"
193 ><A 193 ><A
194 NAME="AEN1090" 194 NAME="AEN1132"
195 ></A 195 ></A
196 ><H2 196 ><H2
197 >Return Value</H2 197 >Return Value</H2
198 ><P 198 ><P
199 >If <TT 199 >If <TT
221 surface palette to determine the actual color palette.</P 221 surface palette to determine the actual color palette.</P
222 ></DIV 222 ></DIV
223 ><DIV 223 ><DIV
224 CLASS="REFSECT1" 224 CLASS="REFSECT1"
225 ><A 225 ><A
226 NAME="AEN1098" 226 NAME="AEN1140"
227 ></A 227 ></A
228 ><H2 228 ><H2
229 >Example</H2 229 >Example</H2
230 ><PRE 230 ><PRE
231 CLASS="PROGRAMLISTING" 231 CLASS="PROGRAMLISTING"
258 .</PRE 258 .</PRE
259 ></DIV 259 ></DIV
260 ><DIV 260 ><DIV
261 CLASS="REFSECT1" 261 CLASS="REFSECT1"
262 ><A 262 ><A
263 NAME="AEN1101" 263 NAME="AEN1143"
264 ></A 264 ></A
265 ><H2 265 ><H2
266 >See Also</H2 266 >See Also</H2
267 ><P 267 ><P
268 ><A 268 ><A