Mercurial > sdl-ios-xcode
comparison docs/html/sdllistmodes.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_ListModes</TITLE | 4 >SDL_ListModes</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="sdlvideodrivername.html" | 48 HREF="sdlvideodrivername.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="sdlvideomodeok.html" | 62 HREF="sdlvideomodeok.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="SDLLISTMODES" | 73 NAME="SDLLISTMODES" |
71 >SDL_ListModes</A | 74 ></A |
72 ></H1 | 75 >SDL_ListModes</H1 |
73 ><DIV | 76 ><DIV |
74 CLASS="REFNAMEDIV" | 77 CLASS="REFNAMEDIV" |
75 ><A | 78 ><A |
76 NAME="AEN776" | 79 NAME="AEN1159" |
77 ></A | 80 ></A |
78 ><H2 | 81 ><H2 |
79 >Name</H2 | 82 >Name</H2 |
80 >SDL_ListModes -- Returns a pointer to an array of available screen dimensions for | 83 >SDL_ListModes -- Returns a pointer to an array of available screen dimensions for |
81 the given format and video flags</DIV | 84 the given format and video flags</DIV |
82 ><DIV | 85 ><DIV |
83 CLASS="REFSYNOPSISDIV" | 86 CLASS="REFSYNOPSISDIV" |
84 ><A | 87 ><A |
85 NAME="AEN779" | 88 NAME="AEN1162" |
86 ></A | 89 ></A |
87 ><H2 | 90 ><H2 |
88 >Synopsis</H2 | 91 >Synopsis</H2 |
89 ><DIV | 92 ><DIV |
90 CLASS="FUNCSYNOPSIS" | 93 CLASS="FUNCSYNOPSIS" |
91 ><A | 94 ><A |
92 NAME="AEN780" | 95 NAME="AEN1163" |
93 ></A | 96 ></A |
94 ><P | 97 ><P |
95 ></P | 98 ></P |
96 ><PRE | 99 ><PRE |
97 CLASS="FUNCSYNOPSISINFO" | 100 CLASS="FUNCSYNOPSISINFO" |
111 ></DIV | 114 ></DIV |
112 ></DIV | 115 ></DIV |
113 ><DIV | 116 ><DIV |
114 CLASS="REFSECT1" | 117 CLASS="REFSECT1" |
115 ><A | 118 ><A |
116 NAME="AEN786" | 119 NAME="AEN1169" |
117 ></A | 120 ></A |
118 ><H2 | 121 ><H2 |
119 >Description</H2 | 122 >Description</H2 |
120 ><P | 123 ><P |
121 >Return a pointer to an array of available screen dimensions for the given | 124 >Return a pointer to an array of available screen dimensions for the given |
167 > as a flag only modes that support hardware video surfaces will be returned.</P | 170 > as a flag only modes that support hardware video surfaces will be returned.</P |
168 ></DIV | 171 ></DIV |
169 ><DIV | 172 ><DIV |
170 CLASS="REFSECT1" | 173 CLASS="REFSECT1" |
171 ><A | 174 ><A |
172 NAME="AEN801" | 175 NAME="AEN1184" |
173 ></A | 176 ></A |
174 ><H2 | 177 ><H2 |
175 >Example</H2 | 178 >Example</H2 |
176 ><PRE | 179 ><PRE |
177 CLASS="PROGRAMLISTING" | 180 CLASS="PROGRAMLISTING" |
188 if(modes == (SDL_Rect **)0){ | 191 if(modes == (SDL_Rect **)0){ |
189 printf("No modes available!\n"); | 192 printf("No modes available!\n"); |
190 exit(-1); | 193 exit(-1); |
191 } | 194 } |
192 | 195 |
193 /* Check if or resolution is restricted */ | 196 /* Check if our resolution is restricted */ |
194 if(modes == (SDL_Rect **)-1){ | 197 if(modes == (SDL_Rect **)-1){ |
195 printf("All resolutions available.\n"); | 198 printf("All resolutions available.\n"); |
196 } | 199 } |
197 else{ | 200 else{ |
198 /* Print valid modes */ | 201 /* Print valid modes */ |
204 .</PRE | 207 .</PRE |
205 ></DIV | 208 ></DIV |
206 ><DIV | 209 ><DIV |
207 CLASS="REFSECT1" | 210 CLASS="REFSECT1" |
208 ><A | 211 ><A |
209 NAME="AEN804" | 212 NAME="AEN1187" |
210 ></A | 213 ></A |
211 ><H2 | 214 ><H2 |
212 >See Also</H2 | 215 >See Also</H2 |
213 ><P | 216 ><P |
214 ><A | 217 ><A |
243 ><DIV | 246 ><DIV |
244 CLASS="NAVFOOTER" | 247 CLASS="NAVFOOTER" |
245 ><HR | 248 ><HR |
246 ALIGN="LEFT" | 249 ALIGN="LEFT" |
247 WIDTH="100%"><TABLE | 250 WIDTH="100%"><TABLE |
251 SUMMARY="Footer navigation table" | |
248 WIDTH="100%" | 252 WIDTH="100%" |
249 BORDER="0" | 253 BORDER="0" |
250 CELLPADDING="0" | 254 CELLPADDING="0" |
251 CELLSPACING="0" | 255 CELLSPACING="0" |
252 ><TR | 256 ><TR |
254 WIDTH="33%" | 258 WIDTH="33%" |
255 ALIGN="left" | 259 ALIGN="left" |
256 VALIGN="top" | 260 VALIGN="top" |
257 ><A | 261 ><A |
258 HREF="sdlvideodrivername.html" | 262 HREF="sdlvideodrivername.html" |
263 ACCESSKEY="P" | |
259 >Prev</A | 264 >Prev</A |
260 ></TD | 265 ></TD |
261 ><TD | 266 ><TD |
262 WIDTH="34%" | 267 WIDTH="34%" |
263 ALIGN="center" | 268 ALIGN="center" |
264 VALIGN="top" | 269 VALIGN="top" |
265 ><A | 270 ><A |
266 HREF="index.html" | 271 HREF="index.html" |
272 ACCESSKEY="H" | |
267 >Home</A | 273 >Home</A |
268 ></TD | 274 ></TD |
269 ><TD | 275 ><TD |
270 WIDTH="33%" | 276 WIDTH="33%" |
271 ALIGN="right" | 277 ALIGN="right" |
272 VALIGN="top" | 278 VALIGN="top" |
273 ><A | 279 ><A |
274 HREF="sdlvideomodeok.html" | 280 HREF="sdlvideomodeok.html" |
281 ACCESSKEY="N" | |
275 >Next</A | 282 >Next</A |
276 ></TD | 283 ></TD |
277 ></TR | 284 ></TR |
278 ><TR | 285 ><TR |
279 ><TD | 286 ><TD |
285 WIDTH="34%" | 292 WIDTH="34%" |
286 ALIGN="center" | 293 ALIGN="center" |
287 VALIGN="top" | 294 VALIGN="top" |
288 ><A | 295 ><A |
289 HREF="video.html" | 296 HREF="video.html" |
297 ACCESSKEY="U" | |
290 >Up</A | 298 >Up</A |
291 ></TD | 299 ></TD |
292 ><TD | 300 ><TD |
293 WIDTH="33%" | 301 WIDTH="33%" |
294 ALIGN="right" | 302 ALIGN="right" |