5131 |
clevermous |
1 |
|
|
|
2 |
> |
|
|
3 |
> |
|
|
4 |
> |
|
|
5 |
> |
|
|
6 |
NAME="GENERATOR" |
|
|
7 |
CONTENT="Modular DocBook HTML Stylesheet Version 1.64 |
|
|
8 |
"> |
|
|
9 |
REL="NEXT" |
|
|
10 |
TITLE="SDL Guide" |
|
|
11 |
HREF="guide.html"> |
|
|
12 |
> |
|
|
13 |
CLASS="BOOK" |
|
|
14 |
BGCOLOR="#FFF8DC" |
|
|
15 |
TEXT="#000000" |
|
|
16 |
LINK="#0000ee" |
|
|
17 |
VLINK="#551a8b" |
|
|
18 |
ALINK="#ff0000" |
|
|
19 |
> |
|
|
20 |
CLASS="BOOK" |
|
|
21 |
> |
|
|
22 |
NAME="AEN1" |
|
|
23 |
> |
|
|
24 |
> |
|
|
25 |
CLASS="TOC" |
|
|
26 |
>
|
|
|
27 |
> |
|
|
28 |
> |
|
|
29 |
>Table of Contents |
|
|
30 |
> |
|
|
31 |
> |
|
|
32 |
>I. |
|
|
33 |
HREF="guide.html" |
|
|
34 |
>SDL Guide |
|
|
35 |
> |
|
|
36 |
> |
|
|
37 |
>
|
|
|
38 |
> |
|
|
39 |
> |
|
|
40 |
HREF="guidepreface.html" |
|
|
41 |
>Preface |
|
|
42 |
> |
|
|
43 |
> |
|
|
44 |
>
|
|
|
45 |
> |
|
|
46 |
> |
|
|
47 |
HREF="guidepreface.html#GUIDEABOUTSDL" |
|
|
48 |
>About SDL |
|
|
49 |
> |
|
|
50 |
> |
|
|
51 |
> |
|
|
52 |
HREF="guideaboutsdldoc.html" |
|
|
53 |
>About SDLdoc |
|
|
54 |
> |
|
|
55 |
> |
|
|
56 |
> |
|
|
57 |
HREF="guidecredits.html" |
|
|
58 |
>Credits |
|
|
59 |
> |
|
|
60 |
> |
|
|
61 |
> |
|
|
62 |
> |
|
|
63 |
>1. |
|
|
64 |
HREF="guidethebasics.html" |
|
|
65 |
>The Basics |
|
|
66 |
> |
|
|
67 |
> |
|
|
68 |
>
|
|
|
69 |
> |
|
|
70 |
> |
|
|
71 |
HREF="guidethebasics.html#GUIDEINTRODUCTION" |
|
|
72 |
>Introduction |
|
|
73 |
> |
|
|
74 |
> |
|
|
75 |
> |
|
|
76 |
HREF="guidebasicsinit.html" |
|
|
77 |
>Initializing SDL |
|
|
78 |
> |
|
|
79 |
> |
|
|
80 |
> |
|
|
81 |
> |
|
|
82 |
>2. |
|
|
83 |
HREF="guidevideo.html" |
|
|
84 |
>Graphics and Video |
|
|
85 |
> |
|
|
86 |
> |
|
|
87 |
>
|
|
|
88 |
> |
|
|
89 |
> |
|
|
90 |
HREF="guidevideo.html#GUIDEVIDEOINTRO" |
|
|
91 |
>Introduction to SDL Video |
|
|
92 |
> |
|
|
93 |
> |
|
|
94 |
> |
|
|
95 |
HREF="guidevideoopengl.html" |
|
|
96 |
>Using OpenGL With SDL |
|
|
97 |
> |
|
|
98 |
> |
|
|
99 |
> |
|
|
100 |
> |
|
|
101 |
>3. |
|
|
102 |
HREF="guideinput.html" |
|
|
103 |
>Input handling |
|
|
104 |
> |
|
|
105 |
> |
|
|
106 |
>
|
|
|
107 |
> |
|
|
108 |
> |
|
|
109 |
HREF="guideinput.html#GUIDEINPUTJOYSTICK" |
|
|
110 |
>Handling Joysticks |
|
|
111 |
> |
|
|
112 |
> |
|
|
113 |
> |
|
|
114 |
HREF="guideinputkeyboard.html" |
|
|
115 |
>Handling the Keyboard |
|
|
116 |
> |
|
|
117 |
> |
|
|
118 |
> |
|
|
119 |
> |
|
|
120 |
>4. |
|
|
121 |
HREF="guideexamples.html" |
|
|
122 |
>Examples |
|
|
123 |
> |
|
|
124 |
> |
|
|
125 |
>
|
|
|
126 |
> |
|
|
127 |
> |
|
|
128 |
HREF="guideexamples.html#AEN369" |
|
|
129 |
>Introduction |
|
|
130 |
> |
|
|
131 |
> |
|
|
132 |
> |
|
|
133 |
HREF="guideeventexamples.html" |
|
|
134 |
>Event Examples |
|
|
135 |
> |
|
|
136 |
> |
|
|
137 |
> |
|
|
138 |
HREF="guideaudioexamples.html" |
|
|
139 |
>Audio Examples |
|
|
140 |
> |
|
|
141 |
> |
|
|
142 |
> |
|
|
143 |
HREF="guidecdromexamples.html" |
|
|
144 |
>CDROM Examples |
|
|
145 |
> |
|
|
146 |
> |
|
|
147 |
> |
|
|
148 |
HREF="guidetimeexamples.html" |
|
|
149 |
>Time Examples |
|
|
150 |
> |
|
|
151 |
> |
|
|
152 |
> |
|
|
153 |
> |
|
|
154 |
> |
|
|
155 |
> |
|
|
156 |
>II. |
|
|
157 |
HREF="reference.html" |
|
|
158 |
>SDL Reference |
|
|
159 |
> |
|
|
160 |
> |
|
|
161 |
>
|
|
|
162 |
> |
|
|
163 |
>5. |
|
|
164 |
HREF="general.html" |
|
|
165 |
>General |
|
|
166 |
> |
|
|
167 |
> |
|
|
168 |
>
|
|
|
169 |
> |
|
|
170 |
> |
|
|
171 |
HREF="sdlinit.html" |
|
|
172 |
>SDL_Init |
|
|
173 |
> — Initializes SDL |
|
|
174 |
> |
|
|
175 |
> |
|
|
176 |
HREF="sdlinitsubsystem.html" |
|
|
177 |
>SDL_InitSubSystem |
|
|
178 |
> — Initialize subsystems |
|
|
179 |
> |
|
|
180 |
> |
|
|
181 |
HREF="sdlquitsubsystem.html" |
|
|
182 |
>SDL_QuitSubSystem |
|
|
183 |
> — Shut down a subsystem |
|
|
184 |
> |
|
|
185 |
> |
|
|
186 |
HREF="sdlquit.html" |
|
|
187 |
>SDL_Quit |
|
|
188 |
> — Shut down SDL |
|
|
189 |
> |
|
|
190 |
> |
|
|
191 |
HREF="sdlwasinit.html" |
|
|
192 |
>SDL_WasInit |
|
|
193 |
> — Check which subsystems are initialized |
|
|
194 |
> |
|
|
195 |
> |
|
|
196 |
> |
|
|
197 |
>6. |
|
|
198 |
HREF="video.html" |
|
|
199 |
>Video |
|
|
200 |
> |
|
|
201 |
> |
|
|
202 |
>
|
|
|
203 |
> |
|
|
204 |
> |
|
|
205 |
HREF="sdlgetvideosurface.html" |
|
|
206 |
>SDL_GetVideoSurface |
|
|
207 |
> — returns a pointer to the current display surface |
|
|
208 |
> |
|
|
209 |
> |
|
|
210 |
HREF="sdlgetvideoinfo.html" |
|
|
211 |
>SDL_GetVideoInfo |
|
|
212 |
> — returns a pointer to information about the video hardware |
|
|
213 |
> |
|
|
214 |
> |
|
|
215 |
HREF="sdlvideodrivername.html" |
|
|
216 |
>SDL_VideoDriverName |
|
|
217 |
> — Obtain the name of the video driver |
|
|
218 |
> |
|
|
219 |
> |
|
|
220 |
HREF="sdllistmodes.html" |
|
|
221 |
>SDL_ListModes |
|
|
222 |
> — Returns a pointer to an array of available screen dimensions for |
|
|
223 |
the given format and video flags |
|
|
224 |
> |
|
|
225 |
> |
|
|
226 |
HREF="sdlvideomodeok.html" |
|
|
227 |
>SDL_VideoModeOK |
|
|
228 |
> — Check to see if a particular video mode is supported. |
|
|
229 |
> |
|
|
230 |
> |
|
|
231 |
HREF="sdlsetvideomode.html" |
|
|
232 |
>SDL_SetVideoMode |
|
|
233 |
> — Set up a video mode with the specified width, height and bits-per-pixel. |
|
|
234 |
> |
|
|
235 |
> |
|
|
236 |
HREF="sdlupdaterect.html" |
|
|
237 |
>SDL_UpdateRect |
|
|
238 |
> — Makes sure the given area is updated on the given screen. |
|
|
239 |
> |
|
|
240 |
> |
|
|
241 |
HREF="sdlupdaterects.html" |
|
|
242 |
>SDL_UpdateRects |
|
|
243 |
> — Makes sure the given list of rectangles is updated on the given screen. |
|
|
244 |
> |
|
|
245 |
> |
|
|
246 |
HREF="sdlflip.html" |
|
|
247 |
>SDL_Flip |
|
|
248 |
> — Swaps screen buffers |
|
|
249 |
> |
|
|
250 |
> |
|
|
251 |
HREF="sdlsetcolors.html" |
|
|
252 |
>SDL_SetColors |
|
|
253 |
> — Sets a portion of the colormap for the given 8-bit surface. |
|
|
254 |
> |
|
|
255 |
> |
|
|
256 |
HREF="sdlsetpalette.html" |
|
|
257 |
>SDL_SetPalette |
|
|
258 |
> — Sets the colors in the palette of an 8-bit surface. |
|
|
259 |
> |
|
|
260 |
> |
|
|
261 |
HREF="sdlsetgamma.html" |
|
|
262 |
>SDL_SetGamma |
|
|
263 |
> — Sets the color gamma function for the display |
|
|
264 |
> |
|
|
265 |
> |
|
|
266 |
HREF="sdlgetgammaramp.html" |
|
|
267 |
>SDL_GetGammaRamp |
|
|
268 |
> — Gets the color gamma lookup tables for the display |
|
|
269 |
> |
|
|
270 |
> |
|
|
271 |
HREF="sdlsetgammaramp.html" |
|
|
272 |
>SDL_SetGammaRamp |
|
|
273 |
> — Sets the color gamma lookup tables for the display |
|
|
274 |
> |
|
|
275 |
> |
|
|
276 |
HREF="sdlmaprgb.html" |
|
|
277 |
>SDL_MapRGB |
|
|
278 |
> — Map a RGB color value to a pixel format. |
|
|
279 |
> |
|
|
280 |
> |
|
|
281 |
HREF="sdlmaprgba.html" |
|
|
282 |
>SDL_MapRGBA |
|
|
283 |
> — Map a RGBA color value to a pixel format. |
|
|
284 |
> |
|
|
285 |
> |
|
|
286 |
HREF="sdlgetrgb.html" |
|
|
287 |
>SDL_GetRGB |
|
|
288 |
> — Get RGB values from a pixel in the specified pixel format. |
|
|
289 |
> |
|
|
290 |
> |
|
|
291 |
HREF="sdlgetrgba.html" |
|
|
292 |
>SDL_GetRGBA |
|
|
293 |
> — Get RGBA values from a pixel in the specified pixel format. |
|
|
294 |
> |
|
|
295 |
> |
|
|
296 |
HREF="sdlcreatergbsurface.html" |
|
|
297 |
>SDL_CreateRGBSurface |
|
|
298 |
> — Create an empty SDL_Surface |
|
|
299 |
> |
|
|
300 |
> |
|
|
301 |
HREF="sdlcreatergbsurfacefrom.html" |
|
|
302 |
>SDL_CreateRGBSurfaceFrom |
|
|
303 |
> — Create an SDL_Surface from pixel data |
|
|
304 |
> |
|
|
305 |
> |
|
|
306 |
HREF="sdlfreesurface.html" |
|
|
307 |
>SDL_FreeSurface |
|
|
308 |
> — Frees (deletes) a SDL_Surface |
|
|
309 |
> |
|
|
310 |
> |
|
|
311 |
HREF="sdllocksurface.html" |
|
|
312 |
>SDL_LockSurface |
|
|
313 |
> — Lock a surface for directly access. |
|
|
314 |
> |
|
|
315 |
> |
|
|
316 |
HREF="sdlunlocksurface.html" |
|
|
317 |
>SDL_UnlockSurface |
|
|
318 |
> — Unlocks a previously locked surface. |
|
|
319 |
> |
|
|
320 |
> |
|
|
321 |
HREF="sdlloadbmp.html" |
|
|
322 |
>SDL_LoadBMP |
|
|
323 |
> — Load a Windows BMP file into an SDL_Surface. |
|
|
324 |
> |
|
|
325 |
> |
|
|
326 |
HREF="sdlsavebmp.html" |
|
|
327 |
>SDL_SaveBMP |
|
|
328 |
> — Save an SDL_Surface as a Windows BMP file. |
|
|
329 |
> |
|
|
330 |
> |
|
|
331 |
HREF="sdlsetcolorkey.html" |
|
|
332 |
>SDL_SetColorKey |
|
|
333 |
> — Sets the color key (transparent pixel) in a blittable surface and |
|
|
334 |
RLE acceleration. |
|
|
335 |
> |
|
|
336 |
> |
|
|
337 |
HREF="sdlsetalpha.html" |
|
|
338 |
>SDL_SetAlpha |
|
|
339 |
> — Adjust the alpha properties of a surface |
|
|
340 |
> |
|
|
341 |
> |
|
|
342 |
HREF="sdlsetcliprect.html" |
|
|
343 |
>SDL_SetClipRect |
|
|
344 |
> — Sets the clipping rectangle for a surface. |
|
|
345 |
> |
|
|
346 |
> |
|
|
347 |
HREF="sdlgetcliprect.html" |
|
|
348 |
>SDL_GetClipRect |
|
|
349 |
> — Gets the clipping rectangle for a surface. |
|
|
350 |
> |
|
|
351 |
> |
|
|
352 |
HREF="sdlconvertsurface.html" |
|
|
353 |
>SDL_ConvertSurface |
|
|
354 |
> — Converts a surface to the same format as another surface. |
|
|
355 |
> |
|
|
356 |
> |
|
|
357 |
HREF="sdlblitsurface.html" |
|
|
358 |
>SDL_BlitSurface |
|
|
359 |
> — This performs a fast blit from the source surface to the destination surface. |
|
|
360 |
> |
|
|
361 |
> |
|
|
362 |
HREF="sdlfillrect.html" |
|
|
363 |
>SDL_FillRect |
|
|
364 |
> — This function performs a fast fill of the given rectangle with some color |
|
|
365 |
> |
|
|
366 |
> |
|
|
367 |
HREF="sdldisplayformat.html" |
|
|
368 |
>SDL_DisplayFormat |
|
|
369 |
> — Convert a surface to the display format |
|
|
370 |
> |
|
|
371 |
> |
|
|
372 |
HREF="sdldisplayformatalpha.html" |
|
|
373 |
>SDL_DisplayFormatAlpha |
|
|
374 |
> — Convert a surface to the display format |
|
|
375 |
> |
|
|
376 |
> |
|
|
377 |
HREF="sdlwarpmouse.html" |
|
|
378 |
>SDL_WarpMouse |
|
|
379 |
> — Set the position of the mouse cursor. |
|
|
380 |
> |
|
|
381 |
> |
|
|
382 |
HREF="sdlcreatecursor.html" |
|
|
383 |
>SDL_CreateCursor |
|
|
384 |
> — Creates a new mouse cursor. |
|
|
385 |
> |
|
|
386 |
> |
|
|
387 |
HREF="sdlfreecursor.html" |
|
|
388 |
>SDL_FreeCursor |
|
|
389 |
> — Frees a cursor created with SDL_CreateCursor. |
|
|
390 |
> |
|
|
391 |
> |
|
|
392 |
HREF="sdlsetcursor.html" |
|
|
393 |
>SDL_SetCursor |
|
|
394 |
> — Set the currently active mouse cursor. |
|
|
395 |
> |
|
|
396 |
> |
|
|
397 |
HREF="sdlgetcursor.html" |
|
|
398 |
>SDL_GetCursor |
|
|
399 |
> — Get the currently active mouse cursor. |
|
|
400 |
> |
|
|
401 |
> |
|
|
402 |
HREF="sdlshowcursor.html" |
|
|
403 |
>SDL_ShowCursor |
|
|
404 |
> — Toggle whether or not the cursor is shown on the screen. |
|
|
405 |
> |
|
|
406 |
> |
|
|
407 |
HREF="sdlglloadlibrary.html" |
|
|
408 |
>SDL_GL_LoadLibrary |
|
|
409 |
> — Specify an OpenGL library |
|
|
410 |
> |
|
|
411 |
> |
|
|
412 |
HREF="sdlglgetprocaddress.html" |
|
|
413 |
>SDL_GL_GetProcAddress |
|
|
414 |
> — Get the address of a GL function |
|
|
415 |
> |
|
|
416 |
> |
|
|
417 |
HREF="sdlglgetattribute.html" |
|
|
418 |
>SDL_GL_GetAttribute |
|
|
419 |
> — Get the value of a special SDL/OpenGL attribute |
|
|
420 |
> |
|
|
421 |
> |
|
|
422 |
HREF="sdlglsetattribute.html" |
|
|
423 |
>SDL_GL_SetAttribute |
|
|
424 |
> — Set a special SDL/OpenGL attribute |
|
|
425 |
> |
|
|
426 |
> |
|
|
427 |
HREF="sdlglswapbuffers.html" |
|
|
428 |
>SDL_GL_SwapBuffers |
|
|
429 |
> — Swap OpenGL framebuffers/Update Display |
|
|
430 |
> |
|
|
431 |
> |
|
|
432 |
HREF="sdlcreateyuvoverlay.html" |
|
|
433 |
>SDL_CreateYUVOverlay |
|
|
434 |
> — Create a YUV video overlay |
|
|
435 |
> |
|
|
436 |
> |
|
|
437 |
HREF="sdllockyuvoverlay.html" |
|
|
438 |
>SDL_LockYUVOverlay |
|
|
439 |
> — Lock an overlay |
|
|
440 |
> |
|
|
441 |
> |
|
|
442 |
HREF="sdlunlockyuvoverlay.html" |
|
|
443 |
>SDL_UnlockYUVOverlay |
|
|
444 |
> — Unlock an overlay |
|
|
445 |
> |
|
|
446 |
> |
|
|
447 |
HREF="sdldisplayyuvoverlay.html" |
|
|
448 |
>SDL_DisplayYUVOverlay |
|
|
449 |
> — Blit the overlay to the display |
|
|
450 |
> |
|
|
451 |
> |
|
|
452 |
HREF="sdlfreeyuvoverlay.html" |
|
|
453 |
>SDL_FreeYUVOverlay |
|
|
454 |
> — Free a YUV video overlay |
|
|
455 |
> |
|
|
456 |
> |
|
|
457 |
HREF="sdlglattr.html" |
|
|
458 |
>SDL_GLattr |
|
|
459 |
> — SDL GL Attributes |
|
|
460 |
> |
|
|
461 |
> |
|
|
462 |
HREF="sdlrect.html" |
|
|
463 |
>SDL_Rect |
|
|
464 |
> — Defines a rectangular area |
|
|
465 |
> |
|
|
466 |
> |
|
|
467 |
HREF="sdlcolor.html" |
|
|
468 |
>SDL_Color |
|
|
469 |
> — Format independent color description |
|
|
470 |
> |
|
|
471 |
> |
|
|
472 |
HREF="sdlpalette.html" |
|
|
473 |
>SDL_Palette |
|
|
474 |
> — Color palette for 8-bit pixel formats |
|
|
475 |
> |
|
|
476 |
> |
|
|
477 |
HREF="sdlpixelformat.html" |
|
|
478 |
>SDL_PixelFormat |
|
|
479 |
> — Stores surface format information |
|
|
480 |
> |
|
|
481 |
> |
|
|
482 |
HREF="sdlsurface.html" |
|
|
483 |
>SDL_Surface |
|
|
484 |
> — Graphical Surface Structure |
|
|
485 |
> |
|
|
486 |
> |
|
|
487 |
HREF="sdlvideoinfo.html" |
|
|
488 |
>SDL_VideoInfo |
|
|
489 |
> — Video Target information |
|
|
490 |
> |
|
|
491 |
> |
|
|
492 |
HREF="sdloverlay.html" |
|
|
493 |
>SDL_Overlay |
|
|
494 |
> — YUV video overlay |
|
|
495 |
> |
|
|
496 |
> |
|
|
497 |
> |
|
|
498 |
>7. |
|
|
499 |
HREF="wm.html" |
|
|
500 |
>Window Management |
|
|
501 |
> |
|
|
502 |
> |
|
|
503 |
>
|
|
|
504 |
> |
|
|
505 |
> |
|
|
506 |
HREF="sdlwmsetcaption.html" |
|
|
507 |
>SDL_WM_SetCaption |
|
|
508 |
> — Sets the window tile and icon name. |
|
|
509 |
> |
|
|
510 |
> |
|
|
511 |
HREF="sdlwmgetcaption.html" |
|
|
512 |
>SDL_WM_GetCaption |
|
|
513 |
> — Gets the window title and icon name. |
|
|
514 |
> |
|
|
515 |
> |
|
|
516 |
HREF="sdlwmseticon.html" |
|
|
517 |
>SDL_WM_SetIcon |
|
|
518 |
> — Sets the icon for the display window. |
|
|
519 |
> |
|
|
520 |
> |
|
|
521 |
HREF="sdlwmiconifywindow.html" |
|
|
522 |
>SDL_WM_IconifyWindow |
|
|
523 |
> — Iconify/Minimise the window |
|
|
524 |
> |
|
|
525 |
> |
|
|
526 |
HREF="sdlwmtogglefullscreen.html" |
|
|
527 |
>SDL_WM_ToggleFullScreen |
|
|
528 |
> — Toggles fullscreen mode |
|
|
529 |
> |
|
|
530 |
> |
|
|
531 |
HREF="sdlwmgrabinput.html" |
|
|
532 |
>SDL_WM_GrabInput |
|
|
533 |
> — Grabs mouse and keyboard input. |
|
|
534 |
> |
|
|
535 |
> |
|
|
536 |
> |
|
|
537 |
>8. |
|
|
538 |
HREF="event.html" |
|
|
539 |
>Events |
|
|
540 |
> |
|
|
541 |
> |
|
|
542 |
>
|
|
|
543 |
> |
|
|
544 |
> |
|
|
545 |
HREF="event.html#AEN3269" |
|
|
546 |
>Introduction |
|
|
547 |
> |
|
|
548 |
> |
|
|
549 |
> |
|
|
550 |
HREF="eventstructures.html" |
|
|
551 |
>SDL Event Structures. |
|
|
552 |
> |
|
|
553 |
> |
|
|
554 |
> |
|
|
555 |
HREF="eventfunctions.html" |
|
|
556 |
>Event Functions. |
|
|
557 |
> |
|
|
558 |
> |
|
|
559 |
> |
|
|
560 |
> |
|
|
561 |
>9. |
|
|
562 |
HREF="joystick.html" |
|
|
563 |
>Joystick |
|
|
564 |
> |
|
|
565 |
> |
|
|
566 |
>
|
|
|
567 |
> |
|
|
568 |
> |
|
|
569 |
HREF="sdlnumjoysticks.html" |
|
|
570 |
>SDL_NumJoysticks |
|
|
571 |
> — Count available joysticks. |
|
|
572 |
> |
|
|
573 |
> |
|
|
574 |
HREF="sdljoystickname.html" |
|
|
575 |
>SDL_JoystickName |
|
|
576 |
> — Get joystick name. |
|
|
577 |
> |
|
|
578 |
> |
|
|
579 |
HREF="sdljoystickopen.html" |
|
|
580 |
>SDL_JoystickOpen |
|
|
581 |
> — Opens a joystick for use. |
|
|
582 |
> |
|
|
583 |
> |
|
|
584 |
HREF="sdljoystickopened.html" |
|
|
585 |
>SDL_JoystickOpened |
|
|
586 |
> — Determine if a joystick has been opened |
|
|
587 |
> |
|
|
588 |
> |
|
|
589 |
HREF="sdljoystickindex.html" |
|
|
590 |
>SDL_JoystickIndex |
|
|
591 |
> — Get the index of an SDL_Joystick. |
|
|
592 |
> |
|
|
593 |
> |
|
|
594 |
HREF="sdljoysticknumaxes.html" |
|
|
595 |
>SDL_JoystickNumAxes |
|
|
596 |
> — Get the number of joystick axes |
|
|
597 |
> |
|
|
598 |
> |
|
|
599 |
HREF="sdljoysticknumballs.html" |
|
|
600 |
>SDL_JoystickNumBalls |
|
|
601 |
> — Get the number of joystick trackballs |
|
|
602 |
> |
|
|
603 |
> |
|
|
604 |
HREF="sdljoysticknumhats.html" |
|
|
605 |
>SDL_JoystickNumHats |
|
|
606 |
> — Get the number of joystick hats |
|
|
607 |
> |
|
|
608 |
> |
|
|
609 |
HREF="sdljoysticknumbuttons.html" |
|
|
610 |
>SDL_JoystickNumButtons |
|
|
611 |
> — Get the number of joysitck buttons |
|
|
612 |
> |
|
|
613 |
> |
|
|
614 |
HREF="sdljoystickupdate.html" |
|
|
615 |
>SDL_JoystickUpdate |
|
|
616 |
> — Updates the state of all joysticks |
|
|
617 |
> |
|
|
618 |
> |
|
|
619 |
HREF="sdljoystickgetaxis.html" |
|
|
620 |
>SDL_JoystickGetAxis |
|
|
621 |
> — Get the current state of an axis |
|
|
622 |
> |
|
|
623 |
> |
|
|
624 |
HREF="sdljoystickgethat.html" |
|
|
625 |
>SDL_JoystickGetHat |
|
|
626 |
> — Get the current state of a joystick hat |
|
|
627 |
> |
|
|
628 |
> |
|
|
629 |
HREF="sdljoystickgetbutton.html" |
|
|
630 |
>SDL_JoystickGetButton |
|
|
631 |
> — Get the current state of a given button on a given joystick |
|
|
632 |
> |
|
|
633 |
> |
|
|
634 |
HREF="sdljoystickgetball.html" |
|
|
635 |
>SDL_JoystickGetBall |
|
|
636 |
> — Get relative trackball motion |
|
|
637 |
> |
|
|
638 |
> |
|
|
639 |
HREF="sdljoystickclose.html" |
|
|
640 |
>SDL_JoystickClose |
|
|
641 |
> — Closes a previously opened joystick |
|
|
642 |
> |
|
|
643 |
> |
|
|
644 |
> |
|
|
645 |
>10. |
|
|
646 |
HREF="audio.html" |
|
|
647 |
>Audio |
|
|
648 |
> |
|
|
649 |
> |
|
|
650 |
>
|
|
|
651 |
> |
|
|
652 |
> |
|
|
653 |
HREF="sdlaudiospec.html" |
|
|
654 |
>SDL_AudioSpec |
|
|
655 |
> — Audio Specification Structure |
|
|
656 |
> |
|
|
657 |
> |
|
|
658 |
HREF="sdlopenaudio.html" |
|
|
659 |
>SDL_OpenAudio |
|
|
660 |
> — Opens the audio device with the desired parameters. |
|
|
661 |
> |
|
|
662 |
> |
|
|
663 |
HREF="sdlpauseaudio.html" |
|
|
664 |
>SDL_PauseAudio |
|
|
665 |
> — Pauses and unpauses the audio callback processing |
|
|
666 |
> |
|
|
667 |
> |
|
|
668 |
HREF="sdlgetaudiostatus.html" |
|
|
669 |
>SDL_GetAudioStatus |
|
|
670 |
> — Get the current audio state |
|
|
671 |
> |
|
|
672 |
> |
|
|
673 |
HREF="sdlloadwav.html" |
|
|
674 |
>SDL_LoadWAV |
|
|
675 |
> — Load a WAVE file |
|
|
676 |
> |
|
|
677 |
> |
|
|
678 |
HREF="sdlfreewav.html" |
|
|
679 |
>SDL_FreeWAV |
|
|
680 |
> — Frees previously opened WAV data |
|
|
681 |
> |
|
|
682 |
> |
|
|
683 |
HREF="sdlaudiocvt.html" |
|
|
684 |
>SDL_AudioCVT |
|
|
685 |
> — Audio Conversion Structure |
|
|
686 |
> |
|
|
687 |
> |
|
|
688 |
HREF="sdlbuildaudiocvt.html" |
|
|
689 |
>SDL_BuildAudioCVT |
|
|
690 |
> — Initializes a SDL_AudioCVT structure for conversion |
|
|
691 |
> |
|
|
692 |
> |
|
|
693 |
HREF="sdlconvertaudio.html" |
|
|
694 |
>SDL_ConvertAudio |
|
|
695 |
> — Convert audio data to a desired audio format. |
|
|
696 |
> |
|
|
697 |
> |
|
|
698 |
HREF="sdlmixaudio.html" |
|
|
699 |
>SDL_MixAudio |
|
|
700 |
> — Mix audio data |
|
|
701 |
> |
|
|
702 |
> |
|
|
703 |
HREF="sdllockaudio.html" |
|
|
704 |
>SDL_LockAudio |
|
|
705 |
> — Lock out the callback function |
|
|
706 |
> |
|
|
707 |
> |
|
|
708 |
HREF="sdlunlockaudio.html" |
|
|
709 |
>SDL_UnlockAudio |
|
|
710 |
> — Unlock the callback function |
|
|
711 |
> |
|
|
712 |
> |
|
|
713 |
HREF="sdlcloseaudio.html" |
|
|
714 |
>SDL_CloseAudio |
|
|
715 |
> — Shuts down audio processing and closes the audio device. |
|
|
716 |
> |
|
|
717 |
> |
|
|
718 |
> |
|
|
719 |
>11. |
|
|
720 |
HREF="cdrom.html" |
|
|
721 |
>CD-ROM |
|
|
722 |
> |
|
|
723 |
> |
|
|
724 |
>
|
|
|
725 |
> |
|
|
726 |
> |
|
|
727 |
HREF="sdlcdnumdrives.html" |
|
|
728 |
>SDL_CDNumDrives |
|
|
729 |
> — Returns the number of CD-ROM drives on the system. |
|
|
730 |
> |
|
|
731 |
> |
|
|
732 |
HREF="sdlcdname.html" |
|
|
733 |
>SDL_CDName |
|
|
734 |
> — Returns a human-readable, system-dependent identifier for the CD-ROM. |
|
|
735 |
> |
|
|
736 |
> |
|
|
737 |
HREF="sdlcdopen.html" |
|
|
738 |
>SDL_CDOpen |
|
|
739 |
> — Opens a CD-ROM drive for access. |
|
|
740 |
> |
|
|
741 |
> |
|
|
742 |
HREF="sdlcdstatus.html" |
|
|
743 |
>SDL_CDStatus |
|
|
744 |
> — Returns the current status of the given drive. |
|
|
745 |
> |
|
|
746 |
> |
|
|
747 |
HREF="sdlcdplay.html" |
|
|
748 |
>SDL_CDPlay |
|
|
749 |
> — Play a CD |
|
|
750 |
> |
|
|
751 |
> |
|
|
752 |
HREF="sdlcdplaytracks.html" |
|
|
753 |
>SDL_CDPlayTracks |
|
|
754 |
> — Play the given CD track(s) |
|
|
755 |
> |
|
|
756 |
> |
|
|
757 |
HREF="sdlcdpause.html" |
|
|
758 |
>SDL_CDPause |
|
|
759 |
> — Pauses a CDROM |
|
|
760 |
> |
|
|
761 |
> |
|
|
762 |
HREF="sdlcdresume.html" |
|
|
763 |
>SDL_CDResume |
|
|
764 |
> — Resumes a CDROM |
|
|
765 |
> |
|
|
766 |
> |
|
|
767 |
HREF="sdlcdstop.html" |
|
|
768 |
>SDL_CDStop |
|
|
769 |
> — Stops a CDROM |
|
|
770 |
> |
|
|
771 |
> |
|
|
772 |
HREF="sdlcdeject.html" |
|
|
773 |
>SDL_CDEject |
|
|
774 |
> — Ejects a CDROM |
|
|
775 |
> |
|
|
776 |
> |
|
|
777 |
HREF="sdlcdclose.html" |
|
|
778 |
>SDL_CDClose |
|
|
779 |
> — Closes a SDL_CD handle |
|
|
780 |
> |
|
|
781 |
> |
|
|
782 |
HREF="sdlcd.html" |
|
|
783 |
>SDL_CD |
|
|
784 |
> — CDROM Drive Information |
|
|
785 |
> |
|
|
786 |
> |
|
|
787 |
HREF="sdlcdtrack.html" |
|
|
788 |
>SDL_CDtrack |
|
|
789 |
> — CD Track Information Structure |
|
|
790 |
> |
|
|
791 |
> |
|
|
792 |
> |
|
|
793 |
>12. |
|
|
794 |
HREF="thread.html" |
|
|
795 |
>Multi-threaded Programming |
|
|
796 |
> |
|
|
797 |
> |
|
|
798 |
>
|
|
|
799 |
> |
|
|
800 |
> |
|
|
801 |
HREF="sdlcreatethread.html" |
|
|
802 |
>SDL_CreateThread |
|
|
803 |
> — Creates a new thread of execution that shares its parent's properties. |
|
|
804 |
> |
|
|
805 |
> |
|
|
806 |
HREF="sdlthreadid.html" |
|
|
807 |
>SDL_ThreadID |
|
|
808 |
> — Get the 32-bit thread identifier for the current thread. |
|
|
809 |
> |
|
|
810 |
> |
|
|
811 |
HREF="sdlgetthreadid.html" |
|
|
812 |
>SDL_GetThreadID |
|
|
813 |
> — Get the SDL thread ID of a SDL_Thread |
|
|
814 |
> |
|
|
815 |
> |
|
|
816 |
HREF="sdlwaitthread.html" |
|
|
817 |
>SDL_WaitThread |
|
|
818 |
> — Wait for a thread to finish. |
|
|
819 |
> |
|
|
820 |
> |
|
|
821 |
HREF="sdlkillthread.html" |
|
|
822 |
>SDL_KillThread |
|
|
823 |
> — Gracelessly terminates the thread. |
|
|
824 |
> |
|
|
825 |
> |
|
|
826 |
HREF="sdlcreatemutex.html" |
|
|
827 |
>SDL_CreateMutex |
|
|
828 |
> — Create a mutex |
|
|
829 |
> |
|
|
830 |
> |
|
|
831 |
HREF="sdldestroymutex.html" |
|
|
832 |
>SDL_DestroyMutex |
|
|
833 |
> — Destroy a mutex |
|
|
834 |
> |
|
|
835 |
> |
|
|
836 |
HREF="sdlmutexp.html" |
|
|
837 |
>SDL_mutexP |
|
|
838 |
> — Lock a mutex |
|
|
839 |
> |
|
|
840 |
> |
|
|
841 |
HREF="sdlmutexv.html" |
|
|
842 |
>SDL_mutexV |
|
|
843 |
> — Unlock a mutex |
|
|
844 |
> |
|
|
845 |
> |
|
|
846 |
HREF="sdlcreatesemaphore.html" |
|
|
847 |
>SDL_CreateSemaphore |
|
|
848 |
> — Creates a new semaphore and assigns an initial value to it. |
|
|
849 |
> |
|
|
850 |
> |
|
|
851 |
HREF="sdldestroysemaphore.html" |
|
|
852 |
>SDL_DestroySemaphore |
|
|
853 |
> — Destroys a semaphore that was created by |
|
|
854 |
HREF="sdlcreatesemaphore.html" |
|
|
855 |
>SDL_CreateSemaphore |
|
|
856 |
>. |
|
|
857 |
> |
|
|
858 |
> |
|
|
859 |
HREF="sdlsemwait.html" |
|
|
860 |
>SDL_SemWait |
|
|
861 |
> — Lock a semaphore and suspend the thread if the semaphore value is zero. |
|
|
862 |
> |
|
|
863 |
> |
|
|
864 |
HREF="sdlsemtrywait.html" |
|
|
865 |
>SDL_SemTryWait |
|
|
866 |
> — Attempt to lock a semaphore but don't suspend the thread. |
|
|
867 |
> |
|
|
868 |
> |
|
|
869 |
HREF="sdlsemwaittimeout.html" |
|
|
870 |
>SDL_SemWaitTimeout |
|
|
871 |
> — Lock a semaphore, but only wait up to a specified maximum time. |
|
|
872 |
> |
|
|
873 |
> |
|
|
874 |
HREF="sdlsempost.html" |
|
|
875 |
>SDL_SemPost |
|
|
876 |
> — Unlock a semaphore. |
|
|
877 |
> |
|
|
878 |
> |
|
|
879 |
HREF="sdlsemvalue.html" |
|
|
880 |
>SDL_SemValue |
|
|
881 |
> — Return the current value of a semaphore. |
|
|
882 |
> |
|
|
883 |
> |
|
|
884 |
HREF="sdlcreatecond.html" |
|
|
885 |
>SDL_CreateCond |
|
|
886 |
> — Create a condition variable |
|
|
887 |
> |
|
|
888 |
> |
|
|
889 |
HREF="sdldestroycond.html" |
|
|
890 |
>SDL_DestroyCond |
|
|
891 |
> — Destroy a condition variable |
|
|
892 |
> |
|
|
893 |
> |
|
|
894 |
HREF="sdlcondsignal.html" |
|
|
895 |
>SDL_CondSignal |
|
|
896 |
> — Restart a thread wait on a condition variable |
|
|
897 |
> |
|
|
898 |
> |
|
|
899 |
HREF="sdlcondbroadcast.html" |
|
|
900 |
>SDL_CondBroadcast |
|
|
901 |
> — Restart all threads waiting on a condition variable |
|
|
902 |
> |
|
|
903 |
> |
|
|
904 |
HREF="sdlcondwait.html" |
|
|
905 |
>SDL_CondWait |
|
|
906 |
> — Wait on a condition variable |
|
|
907 |
> |
|
|
908 |
> |
|
|
909 |
HREF="sdlcondwaittimeout.html" |
|
|
910 |
>SDL_CondWaitTimeout |
|
|
911 |
> — Wait on a condition variable, with timeout |
|
|
912 |
> |
|
|
913 |
> |
|
|
914 |
> |
|
|
915 |
>13. |
|
|
916 |
HREF="time.html" |
|
|
917 |
>Time |
|
|
918 |
> |
|
|
919 |
> |
|
|
920 |
>
|
|
|
921 |
> |
|
|
922 |
> |
|
|
923 |
HREF="sdlgetticks.html" |
|
|
924 |
>SDL_GetTicks |
|
|
925 |
> — Get the number of milliseconds since the SDL library initialization. |
|
|
926 |
> |
|
|
927 |
> |
|
|
928 |
HREF="sdldelay.html" |
|
|
929 |
>SDL_Delay |
|
|
930 |
> — Wait a specified number of milliseconds before returning. |
|
|
931 |
> |
|
|
932 |
> |
|
|
933 |
HREF="sdladdtimer.html" |
|
|
934 |
>SDL_AddTimer |
|
|
935 |
> — Add a timer which will call a callback after the specified number of milliseconds has |
|
|
936 |
elapsed. |
|
|
937 |
> |
|
|
938 |
> |
|
|
939 |
HREF="sdlremovetimer.html" |
|
|
940 |
>SDL_RemoveTimer |
|
|
941 |
> — Remove a timer which was added with |
|
|
942 |
|
|
|
943 |
HREF="sdladdtimer.html" |
|
|
944 |
>SDL_AddTimer |
|
|
945 |
>. |
|
|
946 |
> |
|
|
947 |
> |
|
|
948 |
HREF="sdlsettimer.html" |
|
|
949 |
>SDL_SetTimer |
|
|
950 |
> — Set a callback to run after the specified number of milliseconds has |
|
|
951 |
elapsed. |
|
|
952 |
> |
|
|
953 |
> |
|
|
954 |
> |
|
|
955 |
> |
|
|
956 |
> |
|
|
957 |
> |
|
|
958 |
> |
|
|
959 |
CLASS="LOT" |
|
|
960 |
>
|
|
|
961 |
CLASS="LOT" |
|
|
962 |
> |
|
|
963 |
> |
|
|
964 |
>List of Tables |
|
|
965 |
> |
|
|
966 |
> |
|
|
967 |
>8-1. |
|
|
968 |
HREF="sdlkey.html#AEN4252" |
|
|
969 |
>SDL Keysym definitions |
|
|
970 |
> |
|
|
971 |
> |
|
|
972 |
>8-2. |
|
|
973 |
HREF="sdlkey.html#SDLMOD" |
|
|
974 |
>SDL modifier definitions |
|
|
975 |
> |
|
|
976 |
> |
|
|
977 |
> |
|
|
978 |
> |
|
|
979 |
CLASS="LOT" |
|
|
980 |
>
|
|
|
981 |
CLASS="LOT" |
|
|
982 |
> |
|
|
983 |
> |
|
|
984 |
>List of Examples |
|
|
985 |
> |
|
|
986 |
> |
|
|
987 |
>1-1. |
|
|
988 |
HREF="guidebasicsinit.html#AEN60" |
|
|
989 |
>Initializing SDL |
|
|
990 |
> |
|
|
991 |
> |
|
|
992 |
>2-1. |
|
|
993 |
HREF="guidevideo.html#AEN71" |
|
|
994 |
>Initializing the Video Display |
|
|
995 |
> |
|
|
996 |
> |
|
|
997 |
>2-2. |
|
|
998 |
HREF="guidevideo.html#AEN77" |
|
|
999 |
>Initializing the Best Video Mode |
|
|
1000 |
> |
|
|
1001 |
> |
|
|
1002 |
>2-3. |
|
|
1003 |
HREF="guidevideo.html#AEN83" |
|
|
1004 |
>Loading and Displaying a BMP File |
|
|
1005 |
> |
|
|
1006 |
> |
|
|
1007 |
>2-4. |
|
|
1008 |
HREF="guidevideo.html#AEN90" |
|
|
1009 |
>getpixel() |
|
|
1010 |
> |
|
|
1011 |
> |
|
|
1012 |
>2-5. |
|
|
1013 |
HREF="guidevideo.html#AEN93" |
|
|
1014 |
>putpixel() |
|
|
1015 |
> |
|
|
1016 |
> |
|
|
1017 |
>2-6. |
|
|
1018 |
HREF="guidevideo.html#AEN97" |
|
|
1019 |
>Using putpixel() |
|
|
1020 |
> |
|
|
1021 |
> |
|
|
1022 |
>2-7. |
|
|
1023 |
HREF="guidevideoopengl.html#AEN114" |
|
|
1024 |
>Initializing SDL with OpenGL |
|
|
1025 |
> |
|
|
1026 |
> |
|
|
1027 |
>2-8. |
|
|
1028 |
HREF="guidevideoopengl.html#AEN128" |
|
|
1029 |
>SDL and OpenGL |
|
|
1030 |
> |
|
|
1031 |
> |
|
|
1032 |
>3-1. |
|
|
1033 |
HREF="guideinput.html#AEN141" |
|
|
1034 |
>Initializing SDL with Joystick Support |
|
|
1035 |
> |
|
|
1036 |
> |
|
|
1037 |
>3-2. |
|
|
1038 |
HREF="guideinput.html#AEN154" |
|
|
1039 |
>Querying the Number of Available Joysticks |
|
|
1040 |
> |
|
|
1041 |
> |
|
|
1042 |
>3-3. |
|
|
1043 |
HREF="guideinput.html#AEN183" |
|
|
1044 |
>Opening a Joystick |
|
|
1045 |
> |
|
|
1046 |
> |
|
|
1047 |
>3-4. |
|
|
1048 |
HREF="guideinput.html#AEN191" |
|
|
1049 |
>Joystick Axis Events |
|
|
1050 |
> |
|
|
1051 |
> |
|
|
1052 |
>3-5. |
|
|
1053 |
HREF="guideinput.html#AEN195" |
|
|
1054 |
>More Joystick Axis Events |
|
|
1055 |
> |
|
|
1056 |
> |
|
|
1057 |
>3-6. |
|
|
1058 |
HREF="guideinput.html#AEN203" |
|
|
1059 |
>Joystick Button Events |
|
|
1060 |
> |
|
|
1061 |
> |
|
|
1062 |
>3-7. |
|
|
1063 |
HREF="guideinput.html#AEN217" |
|
|
1064 |
>Joystick Ball Events |
|
|
1065 |
> |
|
|
1066 |
> |
|
|
1067 |
>3-8. |
|
|
1068 |
HREF="guideinput.html#AEN244" |
|
|
1069 |
>Joystick Hat Events |
|
|
1070 |
> |
|
|
1071 |
> |
|
|
1072 |
>3-9. |
|
|
1073 |
HREF="guideinput.html#AEN265" |
|
|
1074 |
>Querying Joystick Characteristics |
|
|
1075 |
> |
|
|
1076 |
> |
|
|
1077 |
>3-10. |
|
|
1078 |
HREF="guideinputkeyboard.html#AEN334" |
|
|
1079 |
>Reading Keyboard Events |
|
|
1080 |
> |
|
|
1081 |
> |
|
|
1082 |
>3-11. |
|
|
1083 |
HREF="guideinputkeyboard.html#AEN351" |
|
|
1084 |
>Interpreting Key Event Information |
|
|
1085 |
> |
|
|
1086 |
> |
|
|
1087 |
>3-12. |
|
|
1088 |
HREF="guideinputkeyboard.html#AEN363" |
|
|
1089 |
>Proper Game Movement |
|
|
1090 |
> |
|
|
1091 |
> |
|
|
1092 |
> |
|
|
1093 |
> |
|
|
1094 |
> |
|
|
1095 |
CLASS="NAVFOOTER" |
|
|
1096 |
>
|
|
|
1097 |
ALIGN="LEFT" |
|
|
1098 |
WIDTH="100%"> |
|
|
1141 |
> |
|
|
1142 |
> |
|
|
1143 |
> |
|
|
1144 |
> |