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