Mercurial > sdl-ios-xcode
comparison docs/html/guidebasicsinit.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 >Initializing SDL</TITLE | 4 >Initializing SDL</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="guidethebasics.html" | 48 HREF="guidethebasics.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="guidevideo.html" | 62 HREF="guidevideo.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 |
69 CLASS="SECT1" | 72 CLASS="SECT1" |
70 ><H1 | 73 ><H1 |
71 CLASS="SECT1" | 74 CLASS="SECT1" |
72 ><A | 75 ><A |
73 NAME="GUIDEBASICSINIT" | 76 NAME="GUIDEBASICSINIT" |
74 >Initializing SDL</A | 77 ></A |
75 ></H1 | 78 >Initializing SDL</H1 |
76 ><P | 79 ><P |
77 >SDL is composed of eight subsystems - Audio, CDROM, Event Handling, File I/O, Joystick Handling, Threading, Timers and Video. Before you can use any of these subsystems they must be initialized by calling <A | 80 >SDL is composed of eight subsystems - Audio, CDROM, Event Handling, File I/O, Joystick Handling, Threading, Timers and Video. Before you can use any of these subsystems they must be initialized by calling <A |
78 HREF="sdlinit.html" | 81 HREF="sdlinit.html" |
79 ><TT | 82 ><TT |
80 CLASS="FUNCTION" | 83 CLASS="FUNCTION" |
145 ><PRE | 148 ><PRE |
146 CLASS="PROGRAMLISTING" | 149 CLASS="PROGRAMLISTING" |
147 >#include "SDL.h" /* All SDL App's need this */ | 150 >#include "SDL.h" /* All SDL App's need this */ |
148 #include <stdio.h> | 151 #include <stdio.h> |
149 | 152 |
150 int main() { | 153 int main(int argc, char *argv[]) { |
151 | 154 |
152 printf("Initializing SDL.\n"); | 155 printf("Initializing SDL.\n"); |
153 | 156 |
154 /* Initialize defaults, Video and Audio */ | 157 /* Initialize defaults, Video and Audio */ |
155 if((SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO)==-1)) { | 158 if((SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO)==-1)) { |
173 ><DIV | 176 ><DIV |
174 CLASS="NAVFOOTER" | 177 CLASS="NAVFOOTER" |
175 ><HR | 178 ><HR |
176 ALIGN="LEFT" | 179 ALIGN="LEFT" |
177 WIDTH="100%"><TABLE | 180 WIDTH="100%"><TABLE |
181 SUMMARY="Footer navigation table" | |
178 WIDTH="100%" | 182 WIDTH="100%" |
179 BORDER="0" | 183 BORDER="0" |
180 CELLPADDING="0" | 184 CELLPADDING="0" |
181 CELLSPACING="0" | 185 CELLSPACING="0" |
182 ><TR | 186 ><TR |
184 WIDTH="33%" | 188 WIDTH="33%" |
185 ALIGN="left" | 189 ALIGN="left" |
186 VALIGN="top" | 190 VALIGN="top" |
187 ><A | 191 ><A |
188 HREF="guidethebasics.html" | 192 HREF="guidethebasics.html" |
193 ACCESSKEY="P" | |
189 >Prev</A | 194 >Prev</A |
190 ></TD | 195 ></TD |
191 ><TD | 196 ><TD |
192 WIDTH="34%" | 197 WIDTH="34%" |
193 ALIGN="center" | 198 ALIGN="center" |
194 VALIGN="top" | 199 VALIGN="top" |
195 ><A | 200 ><A |
196 HREF="index.html" | 201 HREF="index.html" |
202 ACCESSKEY="H" | |
197 >Home</A | 203 >Home</A |
198 ></TD | 204 ></TD |
199 ><TD | 205 ><TD |
200 WIDTH="33%" | 206 WIDTH="33%" |
201 ALIGN="right" | 207 ALIGN="right" |
202 VALIGN="top" | 208 VALIGN="top" |
203 ><A | 209 ><A |
204 HREF="guidevideo.html" | 210 HREF="guidevideo.html" |
211 ACCESSKEY="N" | |
205 >Next</A | 212 >Next</A |
206 ></TD | 213 ></TD |
207 ></TR | 214 ></TR |
208 ><TR | 215 ><TR |
209 ><TD | 216 ><TD |
215 WIDTH="34%" | 222 WIDTH="34%" |
216 ALIGN="center" | 223 ALIGN="center" |
217 VALIGN="top" | 224 VALIGN="top" |
218 ><A | 225 ><A |
219 HREF="guidethebasics.html" | 226 HREF="guidethebasics.html" |
227 ACCESSKEY="U" | |
220 >Up</A | 228 >Up</A |
221 ></TD | 229 ></TD |
222 ><TD | 230 ><TD |
223 WIDTH="33%" | 231 WIDTH="33%" |
224 ALIGN="right" | 232 ALIGN="right" |