aboutsummaryrefslogtreecommitdiffstats
path: root/distrib/sdl-1.2.15/docs/man3
diff options
context:
space:
mode:
Diffstat (limited to 'distrib/sdl-1.2.15/docs/man3')
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDLKey.3161
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_ActiveEvent.338
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_AddTimer.338
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_AudioCVT.368
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_AudioSpec.370
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_BlitSurface.360
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_BuildAudioCVT.323
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CD.357
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CDClose.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CDEject.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CDName.323
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CDNumDrives.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CDOpen.358
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CDPause.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CDPlay.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CDPlayTracks.347
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CDResume.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CDStatus.359
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CDStop.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CDtrack.340
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CloseAudio.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_Color.334
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CondBroadcast.316
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CondSignal.316
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CondWait.316
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CondWaitTimeout.316
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_ConvertAudio.395
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_ConvertSurface.324
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CreateCond.331
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CreateCursor.3120
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CreateMutex.343
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CreateRGBSurface.369
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CreateRGBSurfaceFrom.322
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CreateSemaphore.332
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CreateThread.316
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_CreateYUVOverlay.317
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_Delay.321
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_DestroyCond.316
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_DestroyMutex.316
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_DestroySemaphore.326
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_DisplayFormat.322
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_DisplayFormatAlpha.322
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_DisplayYUVOverlay.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_EnableKeyRepeat.317
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_EnableUNICODE.324
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_Event.3182
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_EventState.323
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_ExposeEvent.324
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_FillRect.322
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_Flip.320
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_FreeCursor.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_FreeSurface.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_FreeWAV.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_FreeYUVOverlay.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GL_GetAttribute.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GL_GetProcAddress.348
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GL_LoadLibrary.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GL_SetAttribute.340
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GL_SwapBuffers.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GLattr.347
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetAppState.324
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetAudioStatus.324
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetClipRect.317
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetCursor.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetError.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetEventFilter.323
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetGamma.321
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetGammaRamp.320
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetKeyName.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetKeyState.330
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetModState.354
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetMouseState.324
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetRGB.317
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetRGBA.319
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetRelativeMouseState.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetThreadID.316
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetTicks.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetVideoInfo.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_GetVideoSurface.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_Init.341
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_InitSubSystem.341
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoyAxisEvent.336
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoyBallEvent.336
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoyButtonEvent.336
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoyHatEvent.356
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickClose.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickEventState.324
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetAxis.332
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetBall.337
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetButton.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetHat.336
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickIndex.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickName.332
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumAxes.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumBalls.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumButtons.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumHats.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickOpen.351
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickOpened.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_JoystickUpdate.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_KeyboardEvent.338
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_KillThread.316
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_ListModes.353
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_LoadBMP.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_LoadWAV.342
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_LockAudio.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_LockSurface.348
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_LockYUVOverlay.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_MapRGB.322
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_MapRGBA.322
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_MixAudio.321
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_MouseButtonEvent.336
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_MouseMotionEvent.338
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_NumJoysticks.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_OpenAudio.397
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_Overlay.352
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_Palette.326
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_PauseAudio.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_PeepEvents.326
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_PixelFormat.3140
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_PollEvent.344
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_PumpEvents.323
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_PushEvent.327
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_Quit.329
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_QuitEvent.330
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_QuitSubSystem.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_RWFromFile.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_Rect.326
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_RemoveTimer.325
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_ResizeEvent.328
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SaveBMP.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SemPost.328
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SemTryWait.341
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SemValue.326
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SemWait.334
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SemWaitTimeout.341
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SetAlpha.366
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SetClipRect.319
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SetColorKey.326
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SetColors.357
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SetCursor.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SetEventFilter.335
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SetGamma.322
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SetGammaRamp.322
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SetModState.335
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SetPalette.359
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SetTimer.339
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SetVideoMode.367
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_ShowCursor.320
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_Surface.396
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_SysWMEvent.321
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_ThreadID.313
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_UnlockAudio.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_UnlockSurface.317
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_UnlockYUVOverlay.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_UpdateRect.319
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_UpdateRects.325
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_UserEvent.347
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_VideoDriverName.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_VideoInfo.362
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_VideoModeOK.344
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_WM_GetCaption.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_WM_GrabInput.328
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_WM_IconifyWindow.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_WM_SetCaption.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_WM_SetIcon.327
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_WM_ToggleFullScreen.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_WaitEvent.317
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_WaitThread.319
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_WarpMouse.315
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_WasInit.363
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_keysym.369
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_mutexP.318
-rw-r--r--distrib/sdl-1.2.15/docs/man3/SDL_mutexV.318
174 files changed, 5570 insertions, 0 deletions
diff --git a/distrib/sdl-1.2.15/docs/man3/SDLKey.3 b/distrib/sdl-1.2.15/docs/man3/SDLKey.3
new file mode 100644
index 0000000..dc74dfa
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDLKey.3
@@ -0,0 +1,161 @@
+.TH "SDLKey" "3" "Wed 11 Oct 2000, 22:28" "SDL" "SDL API Reference"
+.SH "NAME"
+SDLKey \- SDL Keysym Definitions
+.SH "SDL Keysym definitions"
+.PP
+\fBSDLKey ASCII value Common Name\fR
+.nf
+\f(CWSDLK_BACKSPACE '\\b' backspace
+SDLK_TAB '\\t' tab
+SDLK_CLEAR clear
+SDLK_RETURN '\\r' return
+SDLK_PAUSE pause
+SDLK_ESCAPE '^[' escape
+SDLK_SPACE ' ' space
+SDLK_EXCLAIM '!' exclaim
+SDLK_QUOTEDBL '"' quotedbl
+SDLK_HASH '#' hash
+SDLK_DOLLAR '$' dollar
+SDLK_AMPERSAND '&' ampersand
+SDLK_QUOTE ''' quote
+SDLK_LEFTPAREN '(' left parenthesis
+SDLK_RIGHTPAREN ')' right parenthesis
+SDLK_ASTERISK '*' asterisk
+SDLK_PLUS '+' plus sign
+SDLK_COMMA ',' comma
+SDLK_MINUS '-' minus sign
+SDLK_PERIOD '.' period
+SDLK_SLASH '/' forward slash
+SDLK_0 '0' 0
+SDLK_1 '1' 1
+SDLK_2 '2' 2
+SDLK_3 '3' 3
+SDLK_4 '4' 4
+SDLK_5 '5' 5
+SDLK_6 '6' 6
+SDLK_7 '7' 7
+SDLK_8 '8' 8
+SDLK_9 '9' 9
+SDLK_COLON ':' colon
+SDLK_SEMICOLON ';' semicolon
+SDLK_LESS '<' less-than sign
+SDLK_EQUALS '=' equals sign
+SDLK_GREATER '>' greater-than sign
+SDLK_QUESTION '?' question mark
+SDLK_AT '@' at
+SDLK_LEFTBRACKET '[' left bracket
+SDLK_BACKSLASH '\\' backslash
+SDLK_RIGHTBRACKET ']' right bracket
+SDLK_CARET '^' caret
+SDLK_UNDERSCORE '_' underscore
+SDLK_BACKQUOTE '`' grave
+SDLK_a 'a' a
+SDLK_b 'b' b
+SDLK_c 'c' c
+SDLK_d 'd' d
+SDLK_e 'e' e
+SDLK_f 'f' f
+SDLK_g 'g' g
+SDLK_h 'h' h
+SDLK_i 'i' i
+SDLK_j 'j' j
+SDLK_k 'k' k
+SDLK_l 'l' l
+SDLK_m 'm' m
+SDLK_n 'n' n
+SDLK_o 'o' o
+SDLK_p 'p' p
+SDLK_q 'q' q
+SDLK_r 'r' r
+SDLK_s 's' s
+SDLK_t 't' t
+SDLK_u 'u' u
+SDLK_v 'v' v
+SDLK_w 'w' w
+SDLK_x 'x' x
+SDLK_y 'y' y
+SDLK_z 'z' z
+SDLK_DELETE '^?' delete
+SDLK_KP0 keypad 0
+SDLK_KP1 keypad 1
+SDLK_KP2 keypad 2
+SDLK_KP3 keypad 3
+SDLK_KP4 keypad 4
+SDLK_KP5 keypad 5
+SDLK_KP6 keypad 6
+SDLK_KP7 keypad 7
+SDLK_KP8 keypad 8
+SDLK_KP9 keypad 9
+SDLK_KP_PERIOD '.' keypad period
+SDLK_KP_DIVIDE '/' keypad divide
+SDLK_KP_MULTIPLY '*' keypad multiply
+SDLK_KP_MINUS '-' keypad minus
+SDLK_KP_PLUS '+' keypad plus
+SDLK_KP_ENTER '\\r' keypad enter
+SDLK_KP_EQUALS '=' keypad equals
+SDLK_UP up arrow
+SDLK_DOWN down arrow
+SDLK_RIGHT right arrow
+SDLK_LEFT left arrow
+SDLK_INSERT insert
+SDLK_HOME home
+SDLK_END end
+SDLK_PAGEUP page up
+SDLK_PAGEDOWN page down
+SDLK_F1 F1
+SDLK_F2 F2
+SDLK_F3 F3
+SDLK_F4 F4
+SDLK_F5 F5
+SDLK_F6 F6
+SDLK_F7 F7
+SDLK_F8 F8
+SDLK_F9 F9
+SDLK_F10 F10
+SDLK_F11 F11
+SDLK_F12 F12
+SDLK_F13 F13
+SDLK_F14 F14
+SDLK_F15 F15
+SDLK_NUMLOCK numlock
+SDLK_CAPSLOCK capslock
+SDLK_SCROLLOCK scrollock
+SDLK_RSHIFT right shift
+SDLK_LSHIFT left shift
+SDLK_RCTRL right ctrl
+SDLK_LCTRL left ctrl
+SDLK_RALT right alt
+SDLK_LALT left alt
+SDLK_RMETA right meta
+SDLK_LMETA left meta
+SDLK_LSUPER left windows key
+SDLK_RSUPER right windows key
+SDLK_MODE mode shift
+SDLK_HELP help
+SDLK_PRINT print-screen
+SDLK_SYSREQ SysRq
+SDLK_BREAK break
+SDLK_MENU menu
+SDLK_POWER power
+SDLK_EURO euro\fR
+.fi
+
+
+.SH "SDL modifier definitions"
+.PP
+\fBSDL Modifier Meaning\fR
+.nf
+\f(CWKMOD_NONE No modifiers applicable
+KMOD_NUM Numlock is down
+KMOD_CAPS Capslock is down
+KMOD_LCTRL Left Control is down
+KMOD_RCTRL Right Control is down
+KMOD_RSHIFT Right Shift is down
+KMOD_LSHIFT Left Shift is down
+KMOD_RALT Right Alt is down
+KMOD_LALT Left Alt is down
+KMOD_CTRL A Control key is down
+KMOD_SHIFT A Shift key is down
+KMOD_ALT An Alt key is down\fR
+.fi
+
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_ActiveEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_ActiveEvent.3
new file mode 100644
index 0000000..068e7c0
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_ActiveEvent.3
@@ -0,0 +1,38 @@
+.TH "SDL_ActiveEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_ActiveEvent \- Application visibility event structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 type;
+ Uint8 gain;
+ Uint8 state;
+} SDL_ActiveEvent;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBtype\fR
+\fBSDL_ACTIVEEVENT\&.\fP
+.TP 20
+\fBgain\fR
+0 if the event is a loss or 1 if it is a gain\&.
+.TP 20
+\fBstate\fR
+\fBSDL_APPMOUSEFOCUS\fP if mouse focus was gained or lost, \fBSDL_APPINPUTFOCUS\fP if input focus was gained or lost, or \fBSDL_APPACTIVE\fP if the application was iconified (\fBgain\fR=0) or restored(\fBgain\fR=1)\&.
+.SH "DESCRIPTION"
+.PP
+\fBSDL_ActiveEvent\fR is a member of the \fI\fBSDL_Event\fR\fR union and is used when an event of type \fBSDL_ACTIVEEVENT\fP is reported\&.
+.PP
+When the mouse leaves or enters the window area a \fBSDL_APPMOUSEFOCUS\fP type activation event occurs, if the mouse entered the window then \fBgain\fR will be 1, otherwise \fBgain\fR will be 0\&. A \fBSDL_APPINPUTFOCUS\fP type activation event occurs when the application loses or gains keyboard focus\&. This usually occurs when another application is made active\&. Finally, a \fBSDL_APPACTIVE\fP type event occurs when the application is either minimised/iconified (\fBgain\fR=0) or restored\&.
+.PP
+.RS
+\fBNote:
+.PP
+This event does not occur when an application window is first created\&.
+.RE
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fI\fBSDL_GetAppState\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_AddTimer.3 b/distrib/sdl-1.2.15/docs/man3/SDL_AddTimer.3
new file mode 100644
index 0000000..bc494ed
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_AddTimer.3
@@ -0,0 +1,38 @@
+.TH "SDL_AddTimer" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_AddTimer \- Add a timer which will call a callback after the specified number of milliseconds has elapsed\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_TimerID \fBSDL_AddTimer\fP\fR(\fBUint32 interval, SDL_NewTimerCallback callback, void *param\fR);
+.SH "CALLBACK"
+.PP
+.nf
+\f(CW/* type definition for the "new" timer callback function */
+typedef Uint32 (*SDL_NewTimerCallback)(Uint32 interval, void *param);\fR
+.fi
+.PP
+.SH "DESCRIPTION"
+.PP
+Adds a callback function to be run after the specified number of milliseconds has elapsed\&. The callback function is passed the current timer interval and the user supplied parameter from the \fBSDL_AddTimer\fP call and returns the next timer interval\&. If the returned value from the callback is the same as the one passed in, the periodic alarm continues, otherwise a new alarm is scheduled\&.
+.PP
+To cancel a currently running timer call \fISDL_RemoveTimer\fR with the timer ID returned from \fBSDL_AddTimer\fP\&.
+.PP
+The timer callback function may run in a different thread than your main program, and so shouldn\&'t call any functions from within itself\&. You may always call \fISDL_PushEvent\fR, however\&.
+.PP
+The granularity of the timer is platform-dependent, but you should count on it being at least 10 ms as this is the most common number\&. This means that if you request a 16 ms timer, your callback will run approximately 20 ms later on an unloaded system\&. If you wanted to set a flag signaling a frame update at 30 frames per second (every 33 ms), you might set a timer for 30 ms (see example below)\&. If you use this function, you need to pass \fBSDL_INIT_TIMER\fP to \fISDL_Init\fR\&.
+.SH "RETURN VALUE"
+.PP
+Returns an ID value for the added timer or \fBNULL\fR if there was an error\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWmy_timer_id = SDL_AddTimer((33/10)*10, my_callbackfunc, my_callback_param);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_RemoveTimer\fP\fR, \fI\fBSDL_PushEvent\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_AudioCVT.3 b/distrib/sdl-1.2.15/docs/man3/SDL_AudioCVT.3
new file mode 100644
index 0000000..f5e3489
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_AudioCVT.3
@@ -0,0 +1,68 @@
+.TH "SDL_AudioCVT" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_AudioCVT \- Audio Conversion Structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ int needed;
+ Uint16 src_format;
+ Uint16 dest_format;
+ double rate_incr;
+ Uint8 *buf;
+ int len;
+ int len_cvt;
+ int len_mult;
+ double len_ratio;
+ void (*filters[10])(struct SDL_AudioCVT *cvt, Uint16 format);
+ int filter_index;
+} SDL_AudioCVT;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBneeded\fR
+Set to one if the conversion is possible
+.TP 20
+\fBsrc_format\fR
+Audio format of the source
+.TP 20
+\fBdest_format\fR
+Audio format of the destination
+.TP 20
+\fBrate_incr\fR
+Rate conversion increment
+.TP 20
+\fBbuf\fR
+Audio buffer
+.TP 20
+\fBlen\fR
+Length of the original audio buffer in bytes
+.TP 20
+\fBlen_cvt\fR
+Length of converted audio buffer in bytes (calculated)
+.TP 20
+\fBlen_mult\fR
+\fBbuf\fR must be \fBlen\fR*\fBlen_mult\fR bytes in size(calculated)
+.TP 20
+\fBlen_ratio\fR
+Final audio size is \fBlen\fR*\fBlen_ratio\fR
+.TP 20
+\fBfilters[10](\&.\&.)\fR
+Pointers to functions needed for this conversion
+.TP 20
+\fBfilter_index\fR
+Current conversion function
+.SH "DESCRIPTION"
+.PP
+The \fBSDL_AudioCVT\fR is used to convert audio data between different formats\&. A \fBSDL_AudioCVT\fR structure is created with the \fI\fBSDL_BuildAudioCVT\fP\fR function, while the actual conversion is done by the \fI\fBSDL_ConvertAudio\fP\fR function\&.
+.PP
+Many of the fields in the \fBSDL_AudioCVT\fR structure should be considered private and their function will not be discussed here\&.
+.IP "\fBUint8 *\fP\fBbuf\fR" 10This points to the audio data that will be used in the conversion\&. It is both the source and the destination, which means the converted audio data overwrites the original data\&. It also means that the converted data may be larger than the original data (if you were converting from 8-bit to 16-bit, for instance), so you must ensure \fBbuf\fR is large enough\&. See below\&.
+.IP "\fBint\fP \fBlen\fR" 10This is the length of the original audio data in bytes\&.
+.IP "\fBint\fP \fBlen_mult\fR" 10As explained above, the audio buffer needs to be big enough to store the converted data, which may be bigger than the original audio data\&. The length of \fBbuf\fR should be \fBlen\fR*\fBlen_mult\fR\&.
+.IP "\fBdouble\fP \fBlen_ratio\fR" 10When you have finished converting your audio data, you need to know how much of your audio buffer is valid\&. \fBlen\fR*\fBlen_ratio\fR is the size of the converted audio data in bytes\&. This is very similar to \fBlen_mult\fR, however when the convert audio data is shorter than the original \fBlen_mult\fR would be 1\&. \fBlen_ratio\fR, on the other hand, would be a fractional number between 0 and 1\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_BuildAudioCVT\fP\fR, \fI\fBSDL_ConvertAudio\fP\fR, \fI\fBSDL_AudioSpec\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_AudioSpec.3 b/distrib/sdl-1.2.15/docs/man3/SDL_AudioSpec.3
new file mode 100644
index 0000000..c70ffd1
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_AudioSpec.3
@@ -0,0 +1,70 @@
+.TH "SDL_AudioSpec" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_AudioSpec \- Audio Specification Structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ int freq;
+ Uint16 format;
+ Uint8 channels;
+ Uint8 silence;
+ Uint16 samples;
+ Uint32 size;
+ void (*callback)(void *userdata, Uint8 *stream, int len);
+ void *userdata;
+} SDL_AudioSpec;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBfreq\fR
+Audio frequency in samples per second
+.TP 20
+\fBformat\fR
+Audio data format
+.TP 20
+\fBchannels\fR
+Number of channels: 1 mono, 2 stereo
+.TP 20
+\fBsilence\fR
+Audio buffer silence value (calculated)
+.TP 20
+\fBsamples\fR
+Audio buffer size in samples
+.TP 20
+\fBsize\fR
+Audio buffer size in bytes (calculated)
+.TP 20
+\fBcallback(\&.\&.)\fR
+Callback function for filling the audio buffer
+.TP 20
+\fBuserdata\fR
+Pointer the user data which is passed to the callback function
+.SH "DESCRIPTION"
+.PP
+The \fBSDL_AudioSpec\fR structure is used to describe the format of some audio data\&. This structure is used by \fI\fBSDL_OpenAudio\fP\fR and \fI\fBSDL_LoadWAV\fP\fR\&. While all fields are used by \fBSDL_OpenAudio\fP only \fBfreq\fR, \fBformat\fR, \fBsamples\fR and \fBchannels\fR are used by \fBSDL_LoadWAV\fP\&. We will detail these common members here\&.
+.TP 20
+\fBfreq\fR
+The number of samples sent to the sound device every second\&. Common values are 11025, 22050 and 44100\&. The higher the better\&.
+.TP 20
+\fBformat\fR
+Specifies the size and type of each sample element
+.IP "\fBAUDIO_U8\fP" 10Unsigned 8-bit samples
+.IP "\fBAUDIO_S8\fP" 10Signed 8-bit samples
+.IP "\fBAUDIO_U16\fP or \fBAUDIO_U16LSB\fP" 10Unsigned 16-bit little-endian samples
+.IP "\fBAUDIO_S16\fP or \fBAUDIO_S16LSB\fP" 10Signed 16-bit little-endian samples
+.IP "\fBAUDIO_U16MSB\fP" 10Unsigned 16-bit big-endian samples
+.IP "\fBAUDIO_S16MSB\fP" 10Signed 16-bit big-endian samples
+.IP "\fBAUDIO_U16SYS\fP" 10Either \fBAUDIO_U16LSB\fP or \fBAUDIO_U16MSB\fP depending on you systems endianness
+.IP "\fBAUDIO_S16SYS\fP" 10Either \fBAUDIO_S16LSB\fP or \fBAUDIO_S16MSB\fP depending on you systems endianness
+.TP 20
+\fBchannels\fR
+The number of seperate sound channels\&. 1 is mono (single channel), 2 is stereo (dual channel)\&.
+.TP 20
+\fBsamples\fR
+When used with \fI\fBSDL_OpenAudio\fP\fR this refers to the size of the audio buffer in samples\&. A sample a chunk of audio data of the size specified in \fBformat\fR mulitplied by the number of channels\&. When the \fBSDL_AudioSpec\fR is used with \fI\fBSDL_LoadWAV\fP\fR \fBsamples\fR is set to 4096\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_OpenAudio\fP\fR, \fI\fBSDL_LoadWAV\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_BlitSurface.3 b/distrib/sdl-1.2.15/docs/man3/SDL_BlitSurface.3
new file mode 100644
index 0000000..5f62ffb
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_BlitSurface.3
@@ -0,0 +1,60 @@
+.TH "SDL_BlitSurface" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_BlitSurface \- This performs a fast blit from the source surface to the destination surface\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_BlitSurface\fP\fR(\fBSDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect\fR);
+.SH "DESCRIPTION"
+.PP
+This performs a fast blit from the source surface to the destination surface\&.
+.PP
+Only the position is used in the \fBdstrect\fR (the width and height are ignored)\&.
+.PP
+If either \fBsrcrect\fR or \fBdstrect\fR are \fBNULL\fP, the entire surface (\fBsrc\fR or \fBdst\fR) is copied\&.
+.PP
+The final blit rectangle is saved in \fBdstrect\fR after all clipping is performed (\fBsrcrect\fR is not modified)\&.
+.PP
+The blit function should not be called on a locked surface\&.
+.PP
+The results of blitting operations vary greatly depending on whether \fBSDL_SRCAPLHA\fP is set or not\&. See \fISDL_SetAlpha\fR for an explaination of how this affects your results\&. Colorkeying and alpha attributes also interact with surface blitting, as the following pseudo-code should hopefully explain\&.
+.PP
+.nf
+\f(CWif (source surface has SDL_SRCALPHA set) {
+ if (source surface has alpha channel (that is, format->Amask != 0))
+ blit using per-pixel alpha, ignoring any colour key
+ else {
+ if (source surface has SDL_SRCCOLORKEY set)
+ blit using the colour key AND the per-surface alpha value
+ else
+ blit using the per-surface alpha value
+ }
+} else {
+ if (source surface has SDL_SRCCOLORKEY set)
+ blit using the colour key
+ else
+ ordinary opaque rectangular blit
+}\fR
+.fi
+.PP
+.SH "RETURN VALUE"
+.PP
+If the blit is successful, it returns \fB0\fR, otherwise it returns \fB-1\fR\&.
+.PP
+If either of the surfaces were in video memory, and the blit returns \fB-2\fR, the video memory was lost, so it should be reloaded with artwork and re-blitted:
+.PP
+.nf
+\f(CW while ( SDL_BlitSurface(image, imgrect, screen, dstrect) == -2 ) {
+ while ( SDL_LockSurface(image)) < 0 )
+ Sleep(10);
+ -- Write image pixels to image->pixels --
+ SDL_UnlockSurface(image);
+ }\fR
+.fi
+.PP
+ This happens under DirectX 5\&.0 when the system switches away from your fullscreen application\&. Locking the surface will also fail until you have access to the video memory again\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_LockSurface\fP\fR, \fI\fBSDL_FillRect\fP\fR, \fI\fBSDL_Surface\fR\fR, \fI\fBSDL_Rect\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_BuildAudioCVT.3 b/distrib/sdl-1.2.15/docs/man3/SDL_BuildAudioCVT.3
new file mode 100644
index 0000000..dfca664
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_BuildAudioCVT.3
@@ -0,0 +1,23 @@
+.TH "SDL_BuildAudioCVT" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_BuildAudioCVT \- Initializes a SDL_AudioCVT structure for conversion
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_BuildAudioCVT\fP\fR(\fBSDL_AudioCVT *cvt, Uint16 src_format, Uint8 src_channels, int src_rate, Uint16 dst_format, Uint8 dst_channels, int dst_rate\fR);
+.SH "DESCRIPTION"
+.PP
+Before an \fI\fBSDL_AudioCVT\fR\fR structure can be used to convert audio data it must be initialized with source and destination information\&.
+.PP
+\fBsrc_format\fR and \fBdst_format\fR are the source and destination format of the conversion\&. (For information on audio formats see \fI\fB SDL_AudioSpec\fR\fR)\&. \fBsrc_channels\fR and \fBdst_channels\fR are the number of channels in the source and destination formats\&. Finally, \fBsrc_rate\fR and \fBdst_rate\fR are the frequency or samples-per-second of the source and destination formats\&. Once again, see \fI\fBSDL_AudioSpec\fR\fR\&.
+.SH "RETURN VALUES"
+.PP
+Returns \fB-1\fR if the filter could not be built or 1 if it could\&.
+.SH "EXAMPLES"
+.PP
+See \fI\fBSDL_ConvertAudio\fP\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_ConvertAudio\fP\fR, \fI\fBSDL_AudioCVT\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CD.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CD.3
new file mode 100644
index 0000000..ea21818
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CD.3
@@ -0,0 +1,57 @@
+.TH "SDL_CD" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CD \- CDROM Drive Information
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ int id;
+ CDstatus status;
+ int numtracks;
+ int cur_track;
+ int cur_frame;
+ SDL_CDtrack track[SDL_MAX_TRACKS+1];
+} SDL_CD;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBid\fR
+Private drive identifier
+.TP 20
+\fBstatus\fR
+Drive \fIstatus\fR
+.TP 20
+\fBnumtracks\fR
+Number of tracks on the CD
+.TP 20
+\fBcur_track\fR
+Current track
+.TP 20
+\fBcur_frame\fR
+Current frame offset within the track
+.TP 20
+\fBtrack\fR[SDL_MAX_TRACKS+1]
+Array of track descriptions\&. (see \fI\fBSDL_CDtrack\fR\fR)
+.SH "DESCRIPTION"
+.PP
+An \fBSDL_CD\fR structure is returned by \fI\fBSDL_CDOpen\fP\fR\&. It represents an opened CDROM device and stores information on the layout of the tracks on the disc\&.
+.PP
+A frame is the base data unit of a CD\&. \fBCD_FPS\fP frames is equal to 1 second of music\&. SDL provides two macros for converting between time and frames: \fBFRAMES_TO_MSF(f, M,S,F)\fP and \fBMSF_TO_FRAMES\fP\&.
+.SH "EXAMPLES"
+.PP
+.nf
+\f(CWint min, sec, frame;
+int frame_offset;
+
+FRAMES_TO_MSF(cdrom->cur_frame, &min, &sec, &frame);
+printf("Current Position: %d minutes, %d seconds, %d frames
+", min, sec, frame);
+
+frame_offset=MSF_TO_FRAMES(min, sec, frame);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CDOpen\fP\fR, \fI\fBSDL_CDtrack\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CDClose.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CDClose.3
new file mode 100644
index 0000000..9dd29fb
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CDClose.3
@@ -0,0 +1,15 @@
+.TH "SDL_CDClose" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CDClose \- Closes a SDL_CD handle
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_CDClose\fP\fR(\fBSDL_CD *cdrom\fR);
+.SH "DESCRIPTION"
+.PP
+Closes the given \fBcdrom\fR handle\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CDOpen\fP\fR, \fI\fBSDL_CD\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CDEject.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CDEject.3
new file mode 100644
index 0000000..2f2983d
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CDEject.3
@@ -0,0 +1,18 @@
+.TH "SDL_CDEject" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CDEject \- Ejects a CDROM
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_CDEject\fP\fR(\fBSDL_CD *cdrom\fR);
+.SH "DESCRIPTION"
+.PP
+Ejects the given \fBcdrom\fR\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR on success, or \fB-1\fR on an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CD\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CDName.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CDName.3
new file mode 100644
index 0000000..c6f6298
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CDName.3
@@ -0,0 +1,23 @@
+.TH "SDL_CDName" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CDName \- Returns a human-readable, system-dependent identifier for the CD-ROM\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBconst char *\fBSDL_CDName\fP\fR(\fBint drive\fR);
+.SH "DESCRIPTION"
+.PP
+Returns a human-readable, system-dependent identifier for the CD-ROM\&. \fBdrive\fR is the index of the drive\&. Drive indices start to 0 and end at \fBSDL_CDNumDrives()\fP-1\&.
+.SH "EXAMPLES"
+.PP
+.IP " \(bu" 6
+"/dev/cdrom"
+.IP " \(bu" 6
+"E:"
+.IP " \(bu" 6
+"/dev/disk/ide/1/master"
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CDNumDrives\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CDNumDrives.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CDNumDrives.3
new file mode 100644
index 0000000..ad62b68
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CDNumDrives.3
@@ -0,0 +1,15 @@
+.TH "SDL_CDNumDrives" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CDNumDrives \- Returns the number of CD-ROM drives on the system\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_CDNumDrives\fP\fR(\fBvoid\fR)
+.SH "DESCRIPTION"
+.PP
+Returns the number of CD-ROM drives on the system\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CDOpen\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CDOpen.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CDOpen.3
new file mode 100644
index 0000000..dbf23fc
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CDOpen.3
@@ -0,0 +1,58 @@
+.TH "SDL_CDOpen" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CDOpen \- Opens a CD-ROM drive for access\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_CD *\fBSDL_CDOpen\fP\fR(\fBint drive\fR);
+.SH "DESCRIPTION"
+.PP
+Opens a CD-ROM drive for access\&. It returns a \fI\fBSDL_CD\fR\fR structure on success, or \fBNULL\fP if the drive was invalid or busy\&. This newly opened CD-ROM becomes the default CD used when other CD functions are passed a \fBNULL\fP CD-ROM handle\&.
+.PP
+Drives are numbered starting with 0\&. Drive 0 is the system default CD-ROM\&.
+.SH "EXAMPLES"
+.PP
+.nf
+\f(CWSDL_CD *cdrom;
+int cur_track;
+int min, sec, frame;
+SDL_Init(SDL_INIT_CDROM);
+atexit(SDL_Quit);
+
+/* Check for CD drives */
+if(!SDL_CDNumDrives()){
+ /* None found */
+ fprintf(stderr, "No CDROM devices available
+");
+ exit(-1);
+}
+
+/* Open the default drive */
+cdrom=SDL_CDOpen(0);
+
+/* Did if open? Check if cdrom is NULL */
+if(!cdrom){
+ fprintf(stderr, "Couldn\&'t open drive: %s
+", SDL_GetError());
+ exit(-1);
+}
+
+/* Print Volume info */
+printf("Name: %s
+", SDL_CDName(0));
+printf("Tracks: %d
+", cdrom->numtracks);
+for(cur_track=0;cur_track < cdrom->numtracks; cur_track++){
+ FRAMES_TO_MSF(cdrom->track[cur_track]\&.length, &min, &sec, &frame);
+ printf(" Track %d: Length %d:%d
+", cur_track, min, sec);
+}
+
+SDL_CDClose(cdrom);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CD\fR\fR, \fI\fBSDL_CDtrack\fR\fR, \fI\fBSDL_CDClose\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CDPause.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CDPause.3
new file mode 100644
index 0000000..bca06c0
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CDPause.3
@@ -0,0 +1,18 @@
+.TH "SDL_CDPause" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CDPause \- Pauses a CDROM
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_CDPause\fP\fR(\fBSDL_CD *cdrom\fR);
+.SH "DESCRIPTION"
+.PP
+Pauses play on the given \fBcdrom\fR\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR on success, or \fB-1\fR on an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CDPlay\fP\fR, \fI\fBSDL_CDResume\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CDPlay.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CDPlay.3
new file mode 100644
index 0000000..39c25ec
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CDPlay.3
@@ -0,0 +1,18 @@
+.TH "SDL_CDPlay" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CDPlay \- Play a CD
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_CDPlay\fP\fR(\fBSDL_CD *cdrom, int start, int length\fR);
+.SH "DESCRIPTION"
+.PP
+Plays the given \fBcdrom\fR, starting a frame \fBstart\fR for \fBlength\fR frames\&.
+.SH "RETURN VALUES"
+.PP
+Returns \fB0\fR on success, or \fB-1\fR on an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CDPlayTracks\fP\fR, \fI\fBSDL_CDStop\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CDPlayTracks.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CDPlayTracks.3
new file mode 100644
index 0000000..5a403b3
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CDPlayTracks.3
@@ -0,0 +1,47 @@
+.TH "SDL_CDPlayTracks" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CDPlayTracks \- Play the given CD track(s)
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_CDPlayTracks\fP\fR(\fBSDL_CD *cdrom, int start_track, int start_frame, int ntracks, int nframes)\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_CDPlayTracks\fP plays the given CD starting at track \fBstart_track\fR, for \fBntracks\fR tracks\&.
+.PP
+\fBstart_frame\fR is the frame offset, from the beginning of the \fBstart_track\fR, at which to start\&. \fBnframes\fR is the frame offset, from the beginning of the last track (\fBstart_track\fR+\fBntracks\fR), at which to end playing\&.
+.PP
+\fBSDL_CDPlayTracks\fP should only be called after calling \fI\fBSDL_CDStatus\fP\fR to get track information about the CD\&.
+.PP
+.RS
+\fBNote:
+.PP
+Data tracks are ignored\&.
+.RE
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR, or \fB-1\fR if there was an error\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CW/* assuming cdrom is a previously opened device */
+/* Play the entire CD */
+if(CD_INDRIVE(SDL_CDStatus(cdrom)))
+ SDL_CDPlayTracks(cdrom, 0, 0, 0, 0);
+
+/* Play the first track */
+if(CD_INDRIVE(SDL_CDStatus(cdrom)))
+ SDL_CDPlayTracks(cdrom, 0, 0, 1, 0);
+
+/* Play first 15 seconds of the 2nd track */
+if(CD_INDRIVE(SDL_CDStatus(cdrom)))
+ SDL_CDPlayTracks(cdrom, 1, 0, 0, CD_FPS*15);\fR
+.fi
+.PP
+
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CDPlay\fP\fR, \fI\fBSDL_CDStatus\fP\fR, \fI\fBSDL_CD\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CDResume.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CDResume.3
new file mode 100644
index 0000000..86f6c2d
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CDResume.3
@@ -0,0 +1,18 @@
+.TH "SDL_CDResume" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CDResume \- Resumes a CDROM
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_CDResume\fP\fR(\fBSDL_CD *cdrom\fR);
+.SH "DESCRIPTION"
+.PP
+Resumes play on the given \fBcdrom\fR\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR on success, or \fB-1\fR on an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CDPlay\fP\fR, \fI\fBSDL_CDPause\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CDStatus.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CDStatus.3
new file mode 100644
index 0000000..77eed72
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CDStatus.3
@@ -0,0 +1,59 @@
+.TH "SDL_CDStatus" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CDStatus \- Returns the current status of the given drive\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBCDstatus \fBSDL_CDStatus\fP\fR(\fBSDL_CD *cdrom\fR);
+\fB/* Given a status, returns true if there\&'s a disk in the drive */
+#define CD_INDRIVE(status) ((int)status > 0)
+.SH "DESCRIPTION"
+.PP
+This function returns the current status of the given drive\&. Status is described like so:
+.PP
+.nf
+\f(CWtypedef enum {
+ CD_TRAYEMPTY,
+ CD_STOPPED,
+ CD_PLAYING,
+ CD_PAUSED,
+ CD_ERROR = -1
+} CDstatus;\fR
+.fi
+.PP
+.PP
+If the drive has a CD in it, the table of contents of the CD and current play position of the CD will be stored in the SDL_CD structure\&.
+.PP
+The macro \fBCD_INDRIVE\fP is provided for convenience, and given a status returns true if there\&'s a disk in the drive\&.
+.PP
+.RS
+\fBNote:
+.PP
+\fBSDL_CDStatus\fP also updates the \fI\fBSDL_CD\fR\fR structure passed to it\&.
+.RE
+.SH "EXAMPLE"
+.PP
+.nf
+\f(CWint playTrack(int track)
+{
+ int playing = 0;
+
+ if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) {
+ /* clamp to the actual number of tracks on the CD */
+ if (track >= cdrom->numtracks) {
+ track = cdrom->numtracks-1;
+ }
+
+ if ( SDL_CDPlayTracks(cdrom, track, 0, 1, 0) == 0 ) {
+ playing = 1;
+ }
+ }
+ return playing;
+}\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CD\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CDStop.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CDStop.3
new file mode 100644
index 0000000..61e2b23
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CDStop.3
@@ -0,0 +1,18 @@
+.TH "SDL_CDStop" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CDStop \- Stops a CDROM
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_CDStop\fP\fR(\fBSDL_CD *cdrom\fR);
+.SH "DESCRIPTION"
+.PP
+Stops play on the given \fBcdrom\fR\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR on success, or \fB-1\fR on an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CDPlay\fP\fR,
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CDtrack.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CDtrack.3
new file mode 100644
index 0000000..fdac6ee
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CDtrack.3
@@ -0,0 +1,40 @@
+.TH "SDL_CDtrack" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CDtrack \- CD Track Information Structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 id;
+ Uint8 type;
+ Uint32 length;
+ Uint32 offset;
+} SDL_CDtrack;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBid\fR
+Track number (0-99)
+.TP 20
+\fBtype\fR
+\fBSDL_AUDIO_TRACK\fP or \fBSDL_DATA_TRACK\fP
+.TP 20
+\fBlength\fR
+Length, in frames, of this track
+.TP 20
+\fBoffset\fR
+Frame offset to the beginning of this track
+.SH "DESCRIPTION"
+.PP
+\fBSDL_CDtrack\fR stores data on each track on a CD, its fields should be pretty self explainatory\&. It is a member a the \fI\fBSDL_CD\fR\fR structure\&.
+.PP
+.RS
+\fBNote:
+.PP
+Frames can be converted to standard timings\&. There are \fBCD_FPS\fP frames per second, so \fBSDL_CDtrack\fR\&.\fBlength\fR/\fBCD_FPS\fP=length_in_seconds\&.
+.RE
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CD\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CloseAudio.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CloseAudio.3
new file mode 100644
index 0000000..85ff1a4
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CloseAudio.3
@@ -0,0 +1,15 @@
+.TH "SDL_CloseAudio" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CloseAudio \- Shuts down audio processing and closes the audio device\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_CloseAudio\fP\fR(\fBvoid\fR)
+.SH "DESCRIPTION"
+.PP
+This function shuts down audio processing and closes the audio device\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_OpenAudio\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_Color.3 b/distrib/sdl-1.2.15/docs/man3/SDL_Color.3
new file mode 100644
index 0000000..e96ee8a
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_Color.3
@@ -0,0 +1,34 @@
+.TH "SDL_Color" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_Color \- Format independent color description
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 r;
+ Uint8 g;
+ Uint8 b;
+ Uint8 unused;
+} SDL_Color;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBr\fR
+Red intensity
+.TP 20
+\fBg\fR
+Green intensity
+.TP 20
+\fBb\fR
+Blue intensity
+.TP 20
+\fBunused\fR
+Unused
+.SH "DESCRIPTION"
+.PP
+\fBSDL_Color\fR describes a color in a format independent way\&. You can convert a \fBSDL_Color\fR to a pixel value for a certain pixel format using \fI\fBSDL_MapRGB\fP\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_PixelFormat\fR\fR, \fI\fBSDL_SetColors\fP\fR, \fI\fBSDL_Palette\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CondBroadcast.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CondBroadcast.3
new file mode 100644
index 0000000..efc50b9
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CondBroadcast.3
@@ -0,0 +1,16 @@
+.TH "SDL_CondBroadcast" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CondBroadcast \- Restart all threads waiting on a condition variable
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBint \fBSDL_CondBroadcast\fP\fR(\fBSDL_cond *cond\fR);
+.SH "DESCRIPTION"
+.PP
+Restarts all threads that are waiting on the condition variable, \fBcond\fR\&. Returns \fB0\fR on success, or \fB-1\fR on an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CondSignal\fP\fR, \fI\fBSDL_CondWait\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CondSignal.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CondSignal.3
new file mode 100644
index 0000000..b09c875
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CondSignal.3
@@ -0,0 +1,16 @@
+.TH "SDL_CondSignal" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CondSignal \- Restart a thread wait on a condition variable
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBint \fBSDL_CondSignal\fP\fR(\fBSDL_cond *cond\fR);
+.SH "DESCRIPTION"
+.PP
+Restart one of the threads that are waiting on the condition variable, \fBcond\fR\&. Returns \fB0\fR on success of \fB-1\fR on an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CondWait\fP\fR, \fI\fBSDL_CondBroadcast\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CondWait.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CondWait.3
new file mode 100644
index 0000000..642f512
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CondWait.3
@@ -0,0 +1,16 @@
+.TH "SDL_CondWait" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CondWait \- Wait on a condition variable
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBint \fBSDL_CondWait\fP\fR(\fBSDL_cond *cond, SDL_mutex *mut\fR);
+.SH "DESCRIPTION"
+.PP
+Wait on the condition variable \fBcond\fR and unlock the provided mutex\&. The mutex must the locked before entering this function\&. Returns \fB0\fR when it is signalled, or \fB-1\fR on an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CondWaitTimeout\fP\fR, \fI\fBSDL_CondSignal\fP\fR, \fI\fBSDL_mutexP\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CondWaitTimeout.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CondWaitTimeout.3
new file mode 100644
index 0000000..7b3424d
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CondWaitTimeout.3
@@ -0,0 +1,16 @@
+.TH "SDL_CondWaitTimeout" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CondWaitTimeout \- Wait on a condition variable, with timeout
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBint \fBSDL_CondWaitTimeout\fP\fR(\fBSDL_cond *cond, SDL_mutex *mutex, Uint32 ms\fR);
+.SH "DESCRIPTION"
+.PP
+Wait on the condition variable \fBcond\fR for, at most, \fBms\fR milliseconds\&. \fBmut\fR is unlocked so it must be locked when the function is called\&. Returns \fBSDL_MUTEX_TIMEDOUT\fP if the condition is not signalled in the allotted time, \fB0\fR if it was signalled or \fB-1\fR on an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CondWait\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_ConvertAudio.3 b/distrib/sdl-1.2.15/docs/man3/SDL_ConvertAudio.3
new file mode 100644
index 0000000..73ef974
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_ConvertAudio.3
@@ -0,0 +1,95 @@
+.TH "SDL_ConvertAudio" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_ConvertAudio \- Convert audio data to a desired audio format\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_ConvertAudio\fP\fR(\fBSDL_AudioCVT *cvt\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_ConvertAudio\fP takes one parameter, \fBcvt\fR, which was previously initilized\&. Initilizing a \fI\fBSDL_AudioCVT\fR\fR is a two step process\&. First of all, the structure must be passed to \fI\fBSDL_BuildAudioCVT\fP\fR along with source and destination format parameters\&. Secondly, the \fBcvt\fR->\fBbuf\fR and \fBcvt\fR->\fBlen\fR fields must be setup\&. \fBcvt\fR->\fBbuf\fR should point to the audio data and \fBcvt\fR->\fBlen\fR should be set to the length of the audio data in bytes\&. Remember, the length of the buffer pointed to by \fBbuf\fR show be \fBlen\fR*\fBlen_mult\fR bytes in length\&.
+.PP
+Once the \fBSDL_AudioCVT\fRstructure is initilized then we can pass it to \fBSDL_ConvertAudio\fP, which will convert the audio data pointer to by \fBcvt\fR->\fBbuf\fR\&. If \fBSDL_ConvertAudio\fP returned \fB0\fR then the conversion was completed successfully, otherwise \fB-1\fR is returned\&.
+.PP
+If the conversion completed successfully then the converted audio data can be read from \fBcvt\fR->\fBbuf\fR\&. The amount of valid, converted, audio data in the buffer is equal to \fBcvt\fR->\fBlen\fR*\fBcvt\fR->\fBlen_ratio\fR\&.
+.SH "EXAMPLES"
+.PP
+.nf
+\f(CW/* Converting some WAV data to hardware format */
+void my_audio_callback(void *userdata, Uint8 *stream, int len);
+
+SDL_AudioSpec *desired, *obtained;
+SDL_AudioSpec wav_spec;
+SDL_AudioCVT wav_cvt;
+Uint32 wav_len;
+Uint8 *wav_buf;
+int ret;
+
+/* Allocated audio specs */
+desired=(SDL_AudioSpec *)malloc(sizeof(SDL_AudioSpec));
+obtained=(SDL_AudioSpec *)malloc(sizeof(SDL_AudioSpec));
+
+/* Set desired format */
+desired->freq=22050;
+desired->format=AUDIO_S16LSB;
+desired->samples=8192;
+desired->callback=my_audio_callback;
+desired->userdata=NULL;
+
+/* Open the audio device */
+if ( SDL_OpenAudio(desired, obtained) < 0 ){
+ fprintf(stderr, "Couldn\&'t open audio: %s
+", SDL_GetError());
+ exit(-1);
+}
+
+free(desired);
+
+/* Load the test\&.wav */
+if( SDL_LoadWAV("test\&.wav", &wav_spec, &wav_buf, &wav_len) == NULL ){
+ fprintf(stderr, "Could not open test\&.wav: %s
+", SDL_GetError());
+ SDL_CloseAudio();
+ free(obtained);
+ exit(-1);
+}
+
+/* Build AudioCVT */
+ret = SDL_BuildAudioCVT(&wav_cvt,
+ wav_spec\&.format, wav_spec\&.channels, wav_spec\&.freq,
+ obtained->format, obtained->channels, obtained->freq);
+
+/* Check that the convert was built */
+if(ret==-1){
+ fprintf(stderr, "Couldn\&'t build converter!
+");
+ SDL_CloseAudio();
+ free(obtained);
+ SDL_FreeWAV(wav_buf);
+}
+
+/* Setup for conversion */
+wav_cvt\&.buf=(Uint8 *)malloc(wav_len*wav_cvt\&.len_mult);
+wav_cvt\&.len=wav_len;
+memcpy(wav_cvt\&.buf, wav_buf, wav_len);
+
+/* We can delete to original WAV data now */
+SDL_FreeWAV(wav_buf);
+
+/* And now we\&'re ready to convert */
+SDL_ConvertAudio(&wav_cvt);
+
+/* do whatever */
+\&.
+\&.
+\&.
+\&.
+
+\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_BuildAudioCVT\fP\fR, \fI\fBSDL_AudioCVT\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_ConvertSurface.3 b/distrib/sdl-1.2.15/docs/man3/SDL_ConvertSurface.3
new file mode 100644
index 0000000..cb24e34
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_ConvertSurface.3
@@ -0,0 +1,24 @@
+.TH "SDL_ConvertSurface" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_ConvertSurface \- Converts a surface to the same format as another surface\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL/SDL\&.h"
+.sp
+\fBSDL_Surface *\fBSDL_ConvertSurface\fP\fR(\fBSDL_Surface *src, SDL_PixelFormat *fmt, Uint32 flags\fR);
+.SH "DESCRIPTION"
+.PP
+Creates a new surface of the specified format, and then copies and maps the given surface to it\&. If this function fails, it returns \fBNULL\fP\&.
+.PP
+The \fBflags\fR parameter is passed to \fI\fBSDL_CreateRGBSurface\fP\fR and has those semantics\&.
+.PP
+This function is used internally by \fI\fBSDL_DisplayFormat\fP\fR\&.
+.PP
+This function can only be called after SDL_Init\&.
+.SH "RETURN VALUE"
+.PP
+Returns either a pointer to the new surface, or \fBNULL\fP on error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateRGBSurface\fP\fR, \fI\fBSDL_DisplayFormat\fP\fR, \fI\fBSDL_PixelFormat\fR\fR, \fI\fBSDL_Surface\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CreateCond.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CreateCond.3
new file mode 100644
index 0000000..e8c2896
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CreateCond.3
@@ -0,0 +1,31 @@
+.TH "SDL_CreateCond" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CreateCond \- Create a condition variable
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBSDL_cond *\fBSDL_CreateCond\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+Creates a condition variable\&.
+.SH "EXAMPLES"
+.PP
+.nf
+\f(CWSDL_cond *cond;
+
+cond=SDL_CreateCond();
+\&.
+\&.
+/* Do stuff */
+
+\&.
+\&.
+SDL_DestroyCond(cond);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_DestroyCond\fP\fR, \fI\fBSDL_CondWait\fP\fR, \fI\fBSDL_CondSignal\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CreateCursor.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CreateCursor.3
new file mode 100644
index 0000000..ef205c3
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CreateCursor.3
@@ -0,0 +1,120 @@
+.TH "SDL_CreateCursor" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CreateCursor \- Creates a new mouse cursor\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_Cursor *\fBSDL_CreateCursor\fP\fR(\fBUint8 *data, Uint8 *mask, int w, int h, int hot_x, int hot_y\fR);
+.SH "DESCRIPTION"
+.PP
+Create a cursor using the specified \fBdata\fR and \fBmask\fR (in MSB format)\&. The cursor width must be a multiple of 8 bits\&.
+.PP
+The cursor is created in black and white according to the following:
+.TP 20
+\fBData / Mask\fR
+\fBResulting pixel on screen\fR
+.TP 20
+0 / 1
+White
+.TP 20
+1 / 1
+Black
+.TP 20
+0 / 0
+Transparent
+.TP 20
+1 / 0
+Inverted color if possible, black if not\&.
+.PP
+Cursors created with this function must be freed with \fISDL_FreeCursor\fR\&.
+.SH "EXAMPLE"
+.PP
+.nf
+\f(CW/* Stolen from the mailing list */
+/* Creates a new mouse cursor from an XPM */
+
+
+/* XPM */
+static const char *arrow[] = {
+ /* width height num_colors chars_per_pixel */
+ " 32 32 3 1",
+ /* colors */
+ "X c #000000",
+ "\&. c #ffffff",
+ " c None",
+ /* pixels */
+ "X ",
+ "XX ",
+ "X\&.X ",
+ "X\&.\&.X ",
+ "X\&.\&.\&.X ",
+ "X\&.\&.\&.\&.X ",
+ "X\&.\&.\&.\&.\&.X ",
+ "X\&.\&.\&.\&.\&.\&.X ",
+ "X\&.\&.\&.\&.\&.\&.\&.X ",
+ "X\&.\&.\&.\&.\&.\&.\&.\&.X ",
+ "X\&.\&.\&.\&.\&.XXXXX ",
+ "X\&.\&.X\&.\&.X ",
+ "X\&.X X\&.\&.X ",
+ "XX X\&.\&.X ",
+ "X X\&.\&.X ",
+ " X\&.\&.X ",
+ " X\&.\&.X ",
+ " X\&.\&.X ",
+ " XX ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ " ",
+ "0,0"
+};
+
+static SDL_Cursor *init_system_cursor(const char *image[])
+{
+ int i, row, col;
+ Uint8 data[4*32];
+ Uint8 mask[4*32];
+ int hot_x, hot_y;
+
+ i = -1;
+ for ( row=0; row<32; ++row ) {
+ for ( col=0; col<32; ++col ) {
+ if ( col % 8 ) {
+ data[i] <<= 1;
+ mask[i] <<= 1;
+ } else {
+ ++i;
+ data[i] = mask[i] = 0;
+ }
+ switch (image[4+row][col]) {
+ case \&'X\&':
+ data[i] |= 0x01;
+ k[i] |= 0x01;
+ break;
+ case \&'\&.\&':
+ mask[i] |= 0x01;
+ break;
+ case \&' \&':
+ break;
+ }
+ }
+ }
+ sscanf(image[4+row], "%d,%d", &hot_x, &hot_y);
+ return SDL_CreateCursor(data, mask, 32, 32, hot_x, hot_y);
+}\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_FreeCursor\fP\fR, \fI\fBSDL_SetCursor\fP\fR, \fI\fBSDL_ShowCursor\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CreateMutex.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CreateMutex.3
new file mode 100644
index 0000000..c665e1c
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CreateMutex.3
@@ -0,0 +1,43 @@
+.TH "SDL_CreateMutex" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CreateMutex \- Create a mutex
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBSDL_mutex *\fBSDL_CreateMutex\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+Create a new, unlocked mutex\&.
+.SH "EXAMPLES"
+.PP
+.nf
+\f(CWSDL_mutex *mut;
+
+mut=SDL_CreateMutex();
+\&.
+\&.
+if(SDL_mutexP(mut)==-1){
+ fprintf(stderr, "Couldn\&'t lock mutex
+");
+ exit(-1);
+}
+\&.
+/* Do stuff while mutex is locked */
+\&.
+\&.
+if(SDL_mutexV(mut)==-1){
+ fprintf(stderr, "Couldn\&'t unlock mutex
+");
+ exit(-1);
+}
+
+SDL_DestroyMutex(mut);
+\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_mutexP\fP\fR, \fI\fBSDL_mutexV\fP\fR, \fI\fBSDL_DestroyMutex\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CreateRGBSurface.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CreateRGBSurface.3
new file mode 100644
index 0000000..142b7b7
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CreateRGBSurface.3
@@ -0,0 +1,69 @@
+.TH "SDL_CreateRGBSurface" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CreateRGBSurface \- Create an empty SDL_Surface
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_Surface *\fBSDL_CreateRGBSurface\fP\fR(\fBUint32 flags, int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask\fR);
+.SH "DESCRIPTION"
+.PP
+Allocate an empty surface (must be called after \fISDL_SetVideoMode\fR)
+.PP
+If \fBdepth\fR is 8 bits an empty palette is allocated for the surface, otherwise a \&'packed-pixel\&' \fI\fBSDL_PixelFormat\fR\fR is created using the \fB[RGBA]mask\fR\&'s provided (see \fI\fBSDL_PixelFormat\fR\fR)\&. The \fBflags\fR specifies the type of surface that should be created, it is an OR\&'d combination of the following possible values\&.
+.TP 20
+\fBSDL_SWSURFACE\fP
+SDL will create the surface in system memory\&. This improves the performance of pixel level access, however you may not be able to take advantage of some types of hardware blitting\&.
+.TP 20
+\fBSDL_HWSURFACE\fP
+SDL will attempt to create the surface in video memory\&. This will allow SDL to take advantage of Video->Video blits (which are often accelerated)\&.
+.TP 20
+\fBSDL_SRCCOLORKEY\fP
+This flag turns on colourkeying for blits from this surface\&. If \fBSDL_HWSURFACE\fP is also specified and colourkeyed blits are hardware-accelerated, then SDL will attempt to place the surface in video memory\&. Use \fI\fBSDL_SetColorKey\fP\fR to set or clear this flag after surface creation\&.
+.TP 20
+\fBSDL_SRCALPHA\fP
+This flag turns on alpha-blending for blits from this surface\&. If \fBSDL_HWSURFACE\fP is also specified and alpha-blending blits are hardware-accelerated, then the surface will be placed in video memory if possible\&. Use \fI\fBSDL_SetAlpha\fP\fR to set or clear this flag after surface creation\&.
+.PP
+.RS
+\fBNote:
+.PP
+If an alpha-channel is specified (that is, if \fBAmask\fR is nonzero), then the \fBSDL_SRCALPHA\fP flag is automatically set\&. You may remove this flag by calling \fI\fBSDL_SetAlpha\fP\fR after surface creation\&.
+.RE
+.SH "RETURN VALUE"
+.PP
+Returns the created surface, or \fBNULL\fR upon error\&.
+.SH "EXAMPLE"
+.PP
+.nf
+\f(CW /* Create a 32-bit surface with the bytes of each pixel in R,G,B,A order,
+ as expected by OpenGL for textures */
+ SDL_Surface *surface;
+ Uint32 rmask, gmask, bmask, amask;
+
+ /* SDL interprets each pixel as a 32-bit number, so our masks must depend
+ on the endianness (byte order) of the machine */
+#if SDL_BYTEORDER == SDL_BIG_ENDIAN
+ rmask = 0xff000000;
+ gmask = 0x00ff0000;
+ bmask = 0x0000ff00;
+ amask = 0x000000ff;
+#else
+ rmask = 0x000000ff;
+ gmask = 0x0000ff00;
+ bmask = 0x00ff0000;
+ amask = 0xff000000;
+#endif
+
+ surface = SDL_CreateRGBSurface(SDL_SWSURFACE, width, height, 32,
+ rmask, gmask, bmask, amask);
+ if(surface == NULL) {
+ fprintf(stderr, "CreateRGBSurface failed: %s
+", SDL_GetError());
+ exit(1);
+ }\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateRGBSurfaceFrom\fP\fR, \fI\fBSDL_FreeSurface\fP\fR, \fI\fBSDL_SetVideoMode\fP\fR, \fI\fBSDL_LockSurface\fP\fR, \fI\fBSDL_PixelFormat\fR\fR, \fI\fBSDL_Surface\fR\fR \fI\fBSDL_SetAlpha\fP\fR \fI\fBSDL_SetColorKey\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CreateRGBSurfaceFrom.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CreateRGBSurfaceFrom.3
new file mode 100644
index 0000000..5330c1b
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CreateRGBSurfaceFrom.3
@@ -0,0 +1,22 @@
+.TH "SDL_CreateRGBSurfaceFrom" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CreateRGBSurfaceFrom \- Create an SDL_Surface from pixel data
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_Surface *\fBSDL_CreateRGBSurfaceFrom\fP\fR(\fBvoid *pixels, int width, int height, int depth, int pitch, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask\fR);
+.SH "DESCRIPTION"
+.PP
+Creates an SDL_Surface from the provided pixel data\&.
+.PP
+The data stored in \fBpixels\fR is assumed to be of the \fBdepth\fR specified in the parameter list\&. The pixel data is not copied into the \fBSDL_Surface\fR structure so it should not be freed until the surface has been freed with a called to \fISDL_FreeSurface\fR\&. \fBpitch\fR is the length of each scanline in bytes\&.
+.PP
+See \fI\fBSDL_CreateRGBSurface\fP\fR for a more detailed description of the other parameters\&.
+.SH "RETURN VALUE"
+.PP
+Returns the created surface, or \fBNULL\fR upon error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateRGBSurface\fP\fR, \fI\fBSDL_FreeSurface\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CreateSemaphore.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CreateSemaphore.3
new file mode 100644
index 0000000..b803ead
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CreateSemaphore.3
@@ -0,0 +1,32 @@
+.TH "SDL_CreateSemaphore" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CreateSemaphore \- Creates a new semaphore and assigns an initial value to it\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBSDL_sem *\fBSDL_CreateSemaphore\fP\fR(\fBUint32 initial_value\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_CreateSemaphore()\fP creates a new semaphore and initializes it with the value \fBinitial_value\fR\&. Each locking operation on the semaphore by \fISDL_SemWait\fR, \fISDL_SemTryWait\fR or \fISDL_SemWaitTimeout\fR will atomically decrement the semaphore value\&. The locking operation will be blocked if the semaphore value is not positive (greater than zero)\&. Each unlock operation by \fISDL_SemPost\fR will atomically increment the semaphore value\&.
+.SH "RETURN VALUE"
+.PP
+Returns a pointer to an initialized semaphore or \fBNULL\fR if there was an error\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWSDL_sem *my_sem;
+
+my_sem = SDL_CreateSemaphore(INITIAL_SEM_VALUE);
+
+if (my_sem == NULL) {
+ return CREATE_SEM_FAILED;
+}\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_DestroySemaphore\fP\fR, \fI\fBSDL_SemWait\fP\fR, \fI\fBSDL_SemTryWait\fP\fR, \fI\fBSDL_SemWaitTimeout\fP\fR, \fI\fBSDL_SemPost\fP\fR, \fI\fBSDL_SemValue\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CreateThread.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CreateThread.3
new file mode 100644
index 0000000..ab9e79f
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CreateThread.3
@@ -0,0 +1,16 @@
+.TH "SDL_CreateThread" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CreateThread \- Creates a new thread of execution that shares its parent\&'s properties\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBSDL_Thread *\fBSDL_CreateThread\fP\fR(\fBint (*fn)(void *), void *data\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_CreateThread\fP creates a new thread of execution that shares all of its parent\&'s global memory, signal handlers, file descriptors, etc, and runs the function \fBfn\fR passed the void pointer \fBdata\fR The thread quits when this function returns\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_KillThread\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_CreateYUVOverlay.3 b/distrib/sdl-1.2.15/docs/man3/SDL_CreateYUVOverlay.3
new file mode 100644
index 0000000..fda6bc8
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_CreateYUVOverlay.3
@@ -0,0 +1,17 @@
+.TH "SDL_CreateYUVOverlay" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_CreateYUVOverlay \- Create a YUV video overlay
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_Overlay *\fBSDL_CreateYUVOverlay\fP\fR(\fBint width, int height, Uint32 format, SDL_Surface *display\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_CreateYUVOverlay\fP creates a YUV overlay of the specified \fBwidth\fR, \fBheight\fR and \fBformat\fR (see \fI\fBSDL_Overlay\fR\fR for a list of available formats), for the provided \fBdisplay\fR\&. A \fI\fBSDL_Overlay\fR\fR structure is returned\&.
+.PP
+The term \&'overlay\&' is a misnomer since, unless the overlay is created in hardware, the contents for the display surface underneath the area where the overlay is shown will be overwritten when the overlay is displayed\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Overlay\fR\fR, \fI\fBSDL_DisplayYUVOverlay\fP\fR, \fI\fBSDL_FreeYUVOverlay\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_Delay.3 b/distrib/sdl-1.2.15/docs/man3/SDL_Delay.3
new file mode 100644
index 0000000..bfa80b1
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_Delay.3
@@ -0,0 +1,21 @@
+.TH "SDL_Delay" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_Delay \- Wait a specified number of milliseconds before returning\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_Delay\fP\fR(\fBUint32 ms\fR);
+.SH "DESCRIPTION"
+.PP
+Wait a specified number of milliseconds before returning\&. \fBSDL_Delay\fP will wait at \fIleast\fP the specified time, but possible longer due to OS scheduling\&.
+.PP
+.RS
+\fBNote:
+.PP
+Count on a delay granularity of \fIat least\fP 10 ms\&. Some platforms have shorter clock ticks but this is the most common\&.
+.RE
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_AddTimer\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_DestroyCond.3 b/distrib/sdl-1.2.15/docs/man3/SDL_DestroyCond.3
new file mode 100644
index 0000000..308b9d0
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_DestroyCond.3
@@ -0,0 +1,16 @@
+.TH "SDL_DestroyCond" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_DestroyCond \- Destroy a condition variable
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBvoid \fBSDL_DestroyCond\fP\fR(\fBSDL_cond *cond\fR);
+.SH "DESCRIPTION"
+.PP
+Destroys a condition variable\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateCond\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_DestroyMutex.3 b/distrib/sdl-1.2.15/docs/man3/SDL_DestroyMutex.3
new file mode 100644
index 0000000..1582e49
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_DestroyMutex.3
@@ -0,0 +1,16 @@
+.TH "SDL_DestroyMutex" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_DestroyMutex \- Destroy a mutex
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBvoid \fBSDL_DestroyMutex\fP\fR(\fBSDL_mutex *mutex\fR);
+.SH "DESCRIPTION"
+.PP
+Destroy a previously \fIcreated\fR mutex\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateMutex\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_DestroySemaphore.3 b/distrib/sdl-1.2.15/docs/man3/SDL_DestroySemaphore.3
new file mode 100644
index 0000000..892334f
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_DestroySemaphore.3
@@ -0,0 +1,26 @@
+.TH "SDL_DestroySemaphore" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_DestroySemaphore \- Destroys a semaphore that was created by \fISDL_CreateSemaphore\fR\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBvoid \fBSDL_DestroySemaphore\fP\fR(\fBSDL_sem *sem\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_DestroySemaphore\fP destroys the semaphore pointed to by \fBsem\fR that was created by \fI\fBSDL_CreateSemaphore\fP\fR\&. It is not safe to destroy a semaphore if there are threads currently blocked waiting on it\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWif (my_sem != NULL) {
+ SDL_DestroySemaphore(my_sem);
+ my_sem = NULL;
+}\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateSemaphore\fP\fR, \fI\fBSDL_SemWait\fP\fR, \fI\fBSDL_SemTryWait\fP\fR, \fI\fBSDL_SemWaitTimeout\fP\fR, \fI\fBSDL_SemPost\fP\fR, \fI\fBSDL_SemValue\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_DisplayFormat.3 b/distrib/sdl-1.2.15/docs/man3/SDL_DisplayFormat.3
new file mode 100644
index 0000000..ca16e2a
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_DisplayFormat.3
@@ -0,0 +1,22 @@
+.TH "SDL_DisplayFormat" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_DisplayFormat \- Convert a surface to the display format
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_Surface *\fBSDL_DisplayFormat\fP\fR(\fBSDL_Surface *surface\fR);
+.SH "DESCRIPTION"
+.PP
+This function takes a surface and copies it to a new surface of the pixel format and colors of the video framebuffer, suitable for fast blitting onto the display surface\&. It calls \fISDL_ConvertSurface\fR
+.PP
+If you want to take advantage of hardware colorkey or alpha blit acceleration, you should set the colorkey and alpha value before calling this function\&.
+.PP
+If you want an alpha channel, see \fISDL_DisplayFormatAlpha\fR\&.
+.SH "RETURN VALUE"
+.PP
+If the conversion fails or runs out of memory, it returns \fBNULL\fR
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_ConvertSurface\fP\fR, \fI\fBSDL_DisplayFormatAlpha\fP\fR \fI\fBSDL_SetAlpha\fP\fR, \fI\fBSDL_SetColorKey\fP\fR, \fI\fBSDL_Surface\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_DisplayFormatAlpha.3 b/distrib/sdl-1.2.15/docs/man3/SDL_DisplayFormatAlpha.3
new file mode 100644
index 0000000..a87ddd5
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_DisplayFormatAlpha.3
@@ -0,0 +1,22 @@
+.TH "SDL_DisplayFormatAlpha" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_DisplayFormatAlpha \- Convert a surface to the display format
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_Surface *\fBSDL_DisplayFormatAlpha\fP\fR(\fBSDL_Surface *surface\fR);
+.SH "DESCRIPTION"
+.PP
+This function takes a surface and copies it to a new surface of the pixel format and colors of the video framebuffer plus an alpha channel, suitable for fast blitting onto the display surface\&. It calls \fISDL_ConvertSurface\fR
+.PP
+If you want to take advantage of hardware colorkey or alpha blit acceleration, you should set the colorkey and alpha value before calling this function\&.
+.PP
+This function can be used to convert a colourkey to an alpha channel, if the \fBSDL_SRCCOLORKEY\fP flag is set on the surface\&. The generated surface will then be transparent (alpha=0) where the pixels match the colourkey, and opaque (alpha=255) elsewhere\&.
+.SH "RETURN VALUE"
+.PP
+If the conversion fails or runs out of memory, it returns \fBNULL\fR
+.SH "SEE ALSO"
+.PP
+\fISDL_ConvertSurface\fR, \fISDL_SetAlpha\fR, \fISDL_SetColorKey\fR, \fISDL_DisplayFormat\fR, \fISDL_Surface\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_DisplayYUVOverlay.3 b/distrib/sdl-1.2.15/docs/man3/SDL_DisplayYUVOverlay.3
new file mode 100644
index 0000000..d89d94c
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_DisplayYUVOverlay.3
@@ -0,0 +1,18 @@
+.TH "SDL_DisplayYUVOverlay" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_DisplayYUVOverlay \- Blit the overlay to the display
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_DisplayYUVOverlay\fP\fR(\fBSDL_Overlay *overlay, SDL_Rect *dstrect\fR);
+.SH "DESCRIPTION"
+.PP
+Blit the \fBoverlay\fR to the surface specified when it was \fIcreated\fR\&. The \fI\fBSDL_Rect\fR\fR structure, \fBdstrect\fR, specifies the position and size of the destination\&. If the \fBdstrect\fR is a larger or smaller than the overlay then the overlay will be scaled, this is optimized for 2x scaling\&.
+.SH "RETURN VALUES"
+.PP
+Returns 0 on success
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Overlay\fR\fR, \fI\fBSDL_CreateYUVOverlay\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_EnableKeyRepeat.3 b/distrib/sdl-1.2.15/docs/man3/SDL_EnableKeyRepeat.3
new file mode 100644
index 0000000..ea4b231
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_EnableKeyRepeat.3
@@ -0,0 +1,17 @@
+.TH "SDL_EnableKeyRepeat" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_EnableKeyRepeat \- Set keyboard repeat rate\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_EnableKeyRepeat\fP\fR(\fBint delay, int interval\fR);
+.SH "DESCRIPTION"
+.PP
+Enables or disables the keyboard repeat rate\&. \fBdelay\fR specifies how long the key must be pressed before it begins repeating, it then repeats at the speed specified by \fBinterval\fR\&. Both \fBdelay\fR and \fBinterval\fR are expressed in milliseconds\&.
+.PP
+Setting \fBdelay\fR to 0 disables key repeating completely\&. Good default values are \fBSDL_DEFAULT_REPEAT_DELAY\fP and \fISDL_DEFAULT_REPEAT_INTERVAL\fP\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR on success and \fB-1\fR on failure\&.
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_EnableUNICODE.3 b/distrib/sdl-1.2.15/docs/man3/SDL_EnableUNICODE.3
new file mode 100644
index 0000000..d9d2027
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_EnableUNICODE.3
@@ -0,0 +1,24 @@
+.TH "SDL_EnableUNICODE" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_EnableUNICODE \- Enable UNICODE translation
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_EnableUNICODE\fP\fR(\fBint enable\fR);
+.SH "DESCRIPTION"
+.PP
+Enables/Disables Unicode keyboard translation\&.
+.PP
+To obtain the character codes corresponding to received keyboard events, Unicode translation must first be turned on using this function\&. The translation incurs a slight overhead for each keyboard event and is therefore disabled by default\&. For each subsequently received key down event, the \fBunicode\fR member of the \fI\fBSDL_keysym\fR\fR structure will then contain the corresponding character code, or zero for keysyms that do not correspond to any character code\&.
+.PP
+A value of 1 for \fBenable\fR enables Unicode translation; 0 disables it, and -1 leaves it unchanged (useful for querying the current translation mode)\&.
+.PP
+Note that only key press events will be translated, not release events\&.
+.SH "RETURN VALUE"
+.PP
+Returns the previous translation mode (\fB0\fR or \fB1\fR)\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_keysym\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_Event.3 b/distrib/sdl-1.2.15/docs/man3/SDL_Event.3
new file mode 100644
index 0000000..b508f19
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_Event.3
@@ -0,0 +1,182 @@
+.TH "SDL_Event" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_Event \- General event structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef union{
+ Uint8 type;
+ SDL_ActiveEvent active;
+ SDL_KeyboardEvent key;
+ SDL_MouseMotionEvent motion;
+ SDL_MouseButtonEvent button;
+ SDL_JoyAxisEvent jaxis;
+ SDL_JoyBallEvent jball;
+ SDL_JoyHatEvent jhat;
+ SDL_JoyButtonEvent jbutton;
+ SDL_ResizeEvent resize;
+ SDL_ExposeEvent expose;
+ SDL_QuitEvent quit;
+ SDL_UserEvent user;
+ SDL_SysWMEvent syswm;
+} SDL_Event;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBtype\fR
+The type of event
+.TP 20
+\fBactive\fR
+\fIActivation event\fR
+.TP 20
+\fBkey\fR
+\fIKeyboard event\fR
+.TP 20
+\fBmotion\fR
+\fIMouse motion event\fR
+.TP 20
+\fBbutton\fR
+\fIMouse button event\fR
+.TP 20
+\fBjaxis\fR
+\fIJoystick axis motion event\fR
+.TP 20
+\fBjball\fR
+\fIJoystick trackball motion event\fR
+.TP 20
+\fBjhat\fR
+\fIJoystick hat motion event\fR
+.TP 20
+\fBjbutton\fR
+\fIJoystick button event\fR
+.TP 20
+\fBresize\fR
+\fIApplication window resize event\fR
+.TP 20
+\fBexpose\fR
+\fIApplication window expose event\fR
+.TP 20
+\fBquit\fR
+\fIApplication quit request event\fR
+.TP 20
+\fBuser\fR
+\fIUser defined event\fR
+.TP 20
+\fBsyswm\fR
+\fIUndefined window manager event\fR
+.SH "DESCRIPTION"
+.PP
+The \fBSDL_Event\fR union is the core to all event handling is SDL, its probably the most important structure after \fBSDL_Surface\fR\&. \fBSDL_Event\fR is a union of all event structures used in SDL, using it is a simple matter of knowing which union member relates to which event \fBtype\fR\&.
+.PP
+.TP 20
+\fBEvent \fBtype\fR\fR
+\fBEvent Structure\fR
+.TP 20
+\fBSDL_ACTIVEEVENT\fP
+\fI\fBSDL_ActiveEvent\fR\fR
+.TP 20
+\fBSDL_KEYDOWN/UP\fP
+\fI\fBSDL_KeyboardEvent\fR\fR
+.TP 20
+\fBSDL_MOUSEMOTION\fP
+\fI\fBSDL_MouseMotionEvent\fR\fR
+.TP 20
+\fBSDL_MOUSEBUTTONDOWN/UP\fP
+\fI\fBSDL_MouseButtonEvent\fR\fR
+.TP 20
+\fBSDL_JOYAXISMOTION\fP
+\fI\fBSDL_JoyAxisEvent\fR\fR
+.TP 20
+\fBSDL_JOYBALLMOTION\fP
+\fI\fBSDL_JoyBallEvent\fR\fR
+.TP 20
+\fBSDL_JOYHATMOTION\fP
+\fI\fBSDL_JoyHatEvent\fR\fR
+.TP 20
+\fBSDL_JOYBUTTONDOWN/UP\fP
+\fI\fBSDL_JoyButtonEvent\fR\fR
+.TP 20
+\fBSDL_QUIT\fP
+\fI\fBSDL_QuitEvent\fR\fR
+.TP 20
+\fBSDL_SYSWMEVENT\fP
+\fI\fBSDL_SysWMEvent\fR\fR
+.TP 20
+\fBSDL_VIDEORESIZE\fP
+\fI\fBSDL_ResizeEvent\fR\fR
+.TP 20
+\fBSDL_VIDEOEXPOSE\fP
+\fI\fBSDL_ExposeEvent\fR\fR
+.TP 20
+\fBSDL_USEREVENT\fP
+\fI\fBSDL_UserEvent\fR\fR
+.SH "USE"
+.PP
+The \fBSDL_Event\fR structure has two uses
+.IP " \(bu" 6
+Reading events on the event queue
+.IP " \(bu" 6
+Placing events on the event queue
+.PP
+Reading events from the event queue is done with either \fI\fBSDL_PollEvent\fP\fR or \fI\fBSDL_PeepEvents\fP\fR\&. We\&'ll use \fBSDL_PollEvent\fP and step through an example\&.
+.PP
+First off, we create an empty \fBSDL_Event\fR structure\&.
+.PP
+.nf
+\f(CWSDL_Event test_event;\fR
+.fi
+.PP
+ \fBSDL_PollEvent\fP removes the next event from the event queue, if there are no events on the queue it returns \fB0\fR otherwise it returns \fB1\fR\&. We use a \fBwhile\fP loop to process each event in turn\&.
+.PP
+.nf
+\f(CWwhile(SDL_PollEvent(&test_event)) {\fR
+.fi
+.PP
+ The \fBSDL_PollEvent\fP function take a pointer to an \fBSDL_Event\fR structure that is to be filled with event information\&. We know that if \fBSDL_PollEvent\fP removes an event from the queue then the event information will be placed in our \fBtest_event\fR structure, but we also know that the \fItype\fP of event will be placed in the \fBtype\fR member of \fBtest_event\fR\&. So to handle each event \fBtype\fR seperately we use a \fBswitch\fP statement\&.
+.PP
+.nf
+\f(CW switch(test_event\&.type) {\fR
+.fi
+.PP
+ We need to know what kind of events we\&'re looking for \fIand\fP the event \fBtype\fR\&'s of those events\&. So lets assume we want to detect where the user is moving the mouse pointer within our application\&. We look through our event types and notice that \fBSDL_MOUSEMOTION\fP is, more than likely, the event we\&'re looking for\&. A little \fImore\fR research tells use that \fBSDL_MOUSEMOTION\fP events are handled within the \fI\fBSDL_MouseMotionEvent\fR\fR structure which is the \fBmotion\fR member of \fBSDL_Event\fR\&. We can check for the \fBSDL_MOUSEMOTION\fP event \fBtype\fR within our \fBswitch\fP statement like so:
+.PP
+.nf
+\f(CW case SDL_MOUSEMOTION:\fR
+.fi
+.PP
+ All we need do now is read the information out of the \fBmotion\fR member of \fBtest_event\fR\&.
+.PP
+.nf
+\f(CW printf("We got a motion event\&.
+");
+ printf("Current mouse position is: (%d, %d)
+", test_event\&.motion\&.x, test_event\&.motion\&.y);
+ break;
+ default:
+ printf("Unhandled Event!
+");
+ break;
+ }
+}
+printf("Event queue empty\&.
+");\fR
+.fi
+.PP
+.PP
+It is also possible to push events onto the event queue and so use it as a two-way communication path\&. Both \fI\fBSDL_PushEvent\fP\fR and \fI\fBSDL_PeepEvents\fP\fR allow you to place events onto the event queue\&. This is usually used to place a \fBSDL_USEREVENT\fP on the event queue, however you could use it to post fake input events if you wished\&. Creating your own events is a simple matter of choosing the event type you want, setting the \fBtype\fR member and filling the appropriate member structure with information\&.
+.PP
+.nf
+\f(CWSDL_Event user_event;
+
+user_event\&.type=SDL_USEREVENT;
+user_event\&.user\&.code=2;
+user_event\&.user\&.data1=NULL;
+user_event\&.user\&.data2=NULL;
+SDL_PushEvent(&user_event);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_PollEvent\fP\fR, \fI\fBSDL_PushEvent\fP\fR, \fI\fBSDL_PeepEvents\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_EventState.3 b/distrib/sdl-1.2.15/docs/man3/SDL_EventState.3
new file mode 100644
index 0000000..5ee6ab5
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_EventState.3
@@ -0,0 +1,23 @@
+.TH "SDL_EventState" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_EventState \- This function allows you to set the state of processing certain events\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBUint8 \fBSDL_EventState\fP\fR(\fBUint8 type, int state\fR);
+.SH "DESCRIPTION"
+.PP
+This function allows you to set the state of processing certain event \fBtype\fR\&'s\&.
+.PP
+If \fBstate\fR is set to \fBSDL_IGNORE\fP, that event \fBtype\fR will be automatically dropped from the event queue and will not be filtered\&.
+.PP
+If \fBstate\fR is set to \fBSDL_ENABLE\fP, that event \fBtype\fR will be processed normally\&.
+.PP
+If \fBstate\fR is set to \fBSDL_QUERY\fP, \fBSDL_EventState\fP will return the current processing state of the specified event \fBtype\fR\&.
+.PP
+A list of event \fBtype\fR\&'s can be found in the \fI\fBSDL_Event\fR\fR section\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_ExposeEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_ExposeEvent.3
new file mode 100644
index 0000000..e1aa5c3
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_ExposeEvent.3
@@ -0,0 +1,24 @@
+.TH "SDL_ExposeEvent" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_ExposeEvent \- Quit requested event
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 type
+} SDL_ExposeEvent;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBtype\fR
+\fBSDL_VIDEOEXPOSE\fP
+.SH "DESCRIPTION"
+.PP
+\fBSDL_ExposeEvent\fR is a member of the \fI\fBSDL_Event\fR\fR union and is used whan an event of type \fBSDL_VIDEOEXPOSE\fP is reported\&.
+.PP
+A VIDEOEXPOSE event is triggered when the screen has been modified outside of the application, usually by the window manager and needs to be redrawn\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fI\fBSDL_SetEventFilter\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_FillRect.3 b/distrib/sdl-1.2.15/docs/man3/SDL_FillRect.3
new file mode 100644
index 0000000..c2b83ab
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_FillRect.3
@@ -0,0 +1,22 @@
+.TH "SDL_FillRect" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_FillRect \- This function performs a fast fill of the given rectangle with some color
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_FillRect\fP\fR(\fBSDL_Surface *dst, SDL_Rect *dstrect, Uint32 color\fR);
+.SH "DESCRIPTION"
+.PP
+This function performs a fast fill of the given rectangle with \fBcolor\fR\&. If \fBdstrect\fR is \fBNULL\fP, the whole surface will be filled with \fBcolor\fR\&.
+.PP
+The color should be a pixel of the format used by the surface, and can be generated by the \fISDL_MapRGB\fR or \fISDL_MapRGBA\fR functions\&. If the color value contains an alpha value then the destination is simply "filled" with that alpha information, no blending takes place\&.
+.PP
+If there is a clip rectangle set on the destination (set via \fISDL_SetClipRect\fR) then this function will clip based on the intersection of the clip rectangle and the \fBdstrect\fR rectangle and the dstrect rectangle will be modified to represent the area actually filled\&.
+.SH "RETURN VALUE"
+.PP
+This function returns \fB0\fR on success, or \fB-1\fR on error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_MapRGB\fP\fR, \fI\fBSDL_MapRGBA\fP\fR, \fI\fBSDL_BlitSurface\fP\fR, \fI\fBSDL_Rect\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_Flip.3 b/distrib/sdl-1.2.15/docs/man3/SDL_Flip.3
new file mode 100644
index 0000000..b3b2d65
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_Flip.3
@@ -0,0 +1,20 @@
+.TH "SDL_Flip" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_Flip \- Swaps screen buffers
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_Flip\fP\fR(\fBSDL_Surface *screen\fR);
+.SH "DESCRIPTION"
+.PP
+On hardware that supports double-buffering, this function sets up a flip and returns\&. The hardware will wait for vertical retrace, and then swap video buffers before the next video surface blit or lock will return\&. On hardware that doesn\&'t support double-buffering, this is equivalent to calling \fISDL_UpdateRect\fR\fB(screen, 0, 0, 0, 0)\fR
+.PP
+The \fBSDL_DOUBLEBUF\fP flag must have been passed to \fISDL_SetVideoMode\fR, when setting the video mode for this function to perform hardware flipping\&.
+.SH "RETURN VALUE"
+.PP
+This function returns \fB0\fR if successful, or \fB-1\fR if there was an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_SetVideoMode\fP\fR, \fI\fBSDL_UpdateRect\fP\fR, \fI\fBSDL_Surface\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_FreeCursor.3 b/distrib/sdl-1.2.15/docs/man3/SDL_FreeCursor.3
new file mode 100644
index 0000000..22277ea
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_FreeCursor.3
@@ -0,0 +1,15 @@
+.TH "SDL_FreeCursor" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_FreeCursor \- Frees a cursor created with SDL_CreateCursor\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_FreeCursor\fP\fR(\fBSDL_Cursor *cursor\fR);
+.SH "DESCRIPTION"
+.PP
+Frees a \fBSDL_Cursor\fR that was created using \fISDL_CreateCursor\fR\&.
+.SH "SEE ALSO"
+.PP
+\fISDL_CreateCursor\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_FreeSurface.3 b/distrib/sdl-1.2.15/docs/man3/SDL_FreeSurface.3
new file mode 100644
index 0000000..d849139
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_FreeSurface.3
@@ -0,0 +1,15 @@
+.TH "SDL_FreeSurface" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_FreeSurface \- Frees (deletes) a SDL_Surface
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_FreeSurface\fP\fR(\fBSDL_Surface *surface\fR);
+.SH "DESCRIPTION"
+.PP
+Frees the resources used by a previously created \fBSDL_Surface\fR\&. If the surface was created using \fISDL_CreateRGBSurfaceFrom\fR then the pixel data is not freed\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateRGBSurface\fP\fR \fI\fBSDL_CreateRGBSurfaceFrom\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_FreeWAV.3 b/distrib/sdl-1.2.15/docs/man3/SDL_FreeWAV.3
new file mode 100644
index 0000000..a7cd148
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_FreeWAV.3
@@ -0,0 +1,15 @@
+.TH "SDL_FreeWAV" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_FreeWAV \- Frees previously opened WAV data
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_FreeWAV\fP\fR(\fBUint8 *audio_buf\fR);
+.SH "DESCRIPTION"
+.PP
+After a WAVE file has been opened with \fI\fBSDL_LoadWAV\fP\fR its data can eventually be freed with \fBSDL_FreeWAV\fP\&. \fBaudio_buf\fR is a pointer to the buffer created by \fBSDL_LoadWAV\fP\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_LoadWAV\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_FreeYUVOverlay.3 b/distrib/sdl-1.2.15/docs/man3/SDL_FreeYUVOverlay.3
new file mode 100644
index 0000000..3971a93
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_FreeYUVOverlay.3
@@ -0,0 +1,15 @@
+.TH "SDL_FreeYUVOverlay" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_FreeYUVOverlay \- Free a YUV video overlay
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_FreeYUVOverlay\fP\fR(\fBSDL_Overlay *overlay\fR);
+.SH "DESCRIPTION"
+.PP
+Frees and \fI\fBoverlay\fR\fR created by \fI\fBSDL_CreateYUVOverlay\fP\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Overlay\fR\fR, \fI\fBSDL_DisplayYUVOverlay\fP\fR, \fI\fBSDL_FreeYUVOverlay\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GL_GetAttribute.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GL_GetAttribute.3
new file mode 100644
index 0000000..9135da2
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GL_GetAttribute.3
@@ -0,0 +1,18 @@
+.TH "SDL_GL_GetAttribute" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GL_GetAttribute \- Get the value of a special SDL/OpenGL attribute
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_GL_GetAttribute\fP\fR(\fBSDLGLattr attr, int *value\fR);
+.SH "DESCRIPTION"
+.PP
+Places the value of the SDL/OpenGL \fIattribute\fR \fBattr\fR into \fBvalue\fR\&. This is useful after a call to \fI\fBSDL_SetVideoMode\fP\fR to check whether your attributes have been \fIset\fR as you expected\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR on success, or \fB-1\fR on an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GL_SetAttribute\fP\fR, \fIGL Attributes\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GL_GetProcAddress.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GL_GetProcAddress.3
new file mode 100644
index 0000000..4fcc7a4
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GL_GetProcAddress.3
@@ -0,0 +1,48 @@
+.TH "SDL_GL_GetProcAddress" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GL_GetProcAddress \- Get the address of a GL function
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid *\fBSDL_GL_GetProcAddress\fP\fR(\fBconst char* proc\fR);
+.SH "DESCRIPTION"
+.PP
+Returns the address of the GL function \fBproc\fR, or \fBNULL\fR if the function is not found\&. If the GL library is loaded at runtime, with \fI\fBSDL_GL_LoadLibrary\fP\fR, then \fIall\fP GL functions must be retrieved this way\&. Usually this is used to retrieve function pointers to OpenGL extensions\&.
+.SH "EXAMPLE"
+.PP
+.nf
+\f(CWtypedef void (*GL_ActiveTextureARB_Func)(unsigned int);
+GL_ActiveTextureARB_Func glActiveTextureARB_ptr = 0;
+int has_multitexture=1;
+\&.
+\&.
+\&.
+/* Get function pointer */
+glActiveTextureARB_ptr=(GL_ActiveTextureARB_Func) SDL_GL_GetProcAddress("glActiveTextureARB");
+
+/* Check for a valid function ptr */
+if(!glActiveTextureARB_ptr){
+ fprintf(stderr, "Multitexture Extensions not present\&.
+");
+ has_multitexture=0;
+}
+\&.
+\&.
+\&.
+\&.
+if(has_multitexture){
+ glActiveTextureARB_ptr(GL_TEXTURE0_ARB);
+ \&.
+ \&.
+}
+else{
+ \&.
+ \&.
+}\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GL_LoadLibrary\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GL_LoadLibrary.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GL_LoadLibrary.3
new file mode 100644
index 0000000..e6544c9
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GL_LoadLibrary.3
@@ -0,0 +1,15 @@
+.TH "SDL_GL_LoadLibrary" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GL_LoadLibrary \- Specify an OpenGL library
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_GL_LoadLibrary\fP\fR(\fBconst char *path\fR);
+.SH "DESCRIPTION"
+.PP
+If you wish, you may load the OpenGL library at runtime, this must be done before \fI\fBSDL_SetVideoMode\fP\fR is called\&. The \fBpath\fR of the GL library is passed to \fBSDL_GL_LoadLibrary\fP and it returns \fB0\fR on success, or \fB-1\fR on an error\&. You must then use \fI\fBSDL_GL_GetProcAddress\fP\fR to retrieve function pointers to GL functions\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GL_GetProcAddress\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GL_SetAttribute.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GL_SetAttribute.3
new file mode 100644
index 0000000..deb38e7
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GL_SetAttribute.3
@@ -0,0 +1,40 @@
+.TH "SDL_GL_SetAttribute" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GL_SetAttribute \- Set a special SDL/OpenGL attribute
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_GL_SetAttribute\fP\fR(\fBSDL_GLattr attr, int value\fR);
+.SH "DESCRIPTION"
+.PP
+Sets the OpenGL \fIattribute\fR \fBattr\fR to \fBvalue\fR\&. The attributes you set don\&'t take effect until after a call to \fI\fBSDL_SetVideoMode\fP\fR\&. You should use \fI\fBSDL_GL_GetAttribute\fP\fR to check the values after a \fBSDL_SetVideoMode\fP call\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR on success, or \fB-1\fR on error\&.
+.SH "EXAMPLE"
+.PP
+.nf
+\f(CWSDL_GL_SetAttribute( SDL_GL_RED_SIZE, 5 );
+SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 5 );
+SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 5 );
+SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
+SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
+if ( (screen=SDL_SetVideoMode( 640, 480, 16, SDL_OPENGL )) == NULL ) {
+ fprintf(stderr, "Couldn\&'t set GL mode: %s
+", SDL_GetError());
+ SDL_Quit();
+ return;
+}\fR
+.fi
+.PP
+.PP
+.RS
+\fBNote:
+.PP
+The \fBSDL_DOUBLEBUF\fP flag is not required to enable double buffering when setting an OpenGL video mode\&. Double buffering is enabled or disabled using the SDL_GL_DOUBLEBUFFER attribute\&.
+.RE
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GL_GetAttribute\fP\fR, \fIGL Attributes\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GL_SwapBuffers.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GL_SwapBuffers.3
new file mode 100644
index 0000000..31d31cf
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GL_SwapBuffers.3
@@ -0,0 +1,15 @@
+.TH "SDL_GL_SwapBuffers" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GL_SwapBuffers \- Swap OpenGL framebuffers/Update Display
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_GL_SwapBuffers\fP\fR(\fBvoid \fR);
+.SH "DESCRIPTION"
+.PP
+Swap the OpenGL buffers, if double-buffering is supported\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_SetVideoMode\fP\fR, \fI\fBSDL_GL_SetAttribute\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GLattr.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GLattr.3
new file mode 100644
index 0000000..23d3726
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GLattr.3
@@ -0,0 +1,47 @@
+.TH "SDL_GLattr" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GLattr \- SDL GL Attributes
+.SH "ATTRIBUTES"
+.TP 20
+\fBSDL_GL_RED_SIZE\fP
+Size of the framebuffer red component, in bits
+.TP 20
+\fBSDL_GL_GREEN_SIZE\fP
+Size of the framebuffer green component, in bits
+.TP 20
+\fBSDL_GL_BLUE_SIZE\fP
+Size of the framebuffer blue component, in bits
+.TP 20
+\fBSDL_GL_ALPHA_SIZE\fP
+Size of the framebuffer alpha component, in bits
+.TP 20
+\fBSDL_GL_DOUBLEBUFFER\fP
+0 or 1, enable or disable double buffering
+.TP 20
+\fBSDL_GL_BUFFER_SIZE\fP
+Size of the framebuffer, in bits
+.TP 20
+\fBSDL_GL_DEPTH_SIZE\fP
+Size of the depth buffer, in bits
+.TP 20
+\fBSDL_GL_STENCIL_SIZE\fP
+Size of the stencil buffer, in bits
+.TP 20
+\fBSDL_GL_ACCUM_RED_SIZE\fP
+Size of the accumulation buffer red component, in bits
+.TP 20
+\fBSDL_GL_ACCUM_GREEN_SIZE\fP
+Size of the accumulation buffer green component, in bits
+.TP 20
+\fBSDL_GL_ACCUM_BLUE_SIZE\fP
+Size of the accumulation buffer blue component, in bits
+.TP 20
+\fBSDL_GL_ACCUM_ALPHA_SIZE\fP
+Size of the accumulation buffer alpha component, in bits
+.SH "DESCRIPTION"
+.PP
+While you can set most OpenGL attributes normally, the attributes list above must be known \fIbefore\fP SDL sets the video mode\&. These attributes a set and read with \fI\fBSDL_GL_SetAttribute\fP\fR and \fI\fBSDL_GL_GetAttribute\fP\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GL_SetAttribute\fP\fR, \fI\fBSDL_GL_GetAttribute\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetAppState.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetAppState.3
new file mode 100644
index 0000000..9d644a1
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetAppState.3
@@ -0,0 +1,24 @@
+.TH "SDL_GetAppState" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+\fBSDL_GetAppState\fP \- Get the state of the application
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBUint8 \fBSDL_GetAppState\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+This function returns the current state of the application\&. The value returned is a bitwise combination of:
+.TP 20
+\fBSDL_APPMOUSEFOCUS\fP
+The application has mouse focus\&.
+.TP 20
+\fBSDL_APPINPUTFOCUS\fP
+The application has keyboard focus
+.TP 20
+\fBSDL_APPACTIVE\fP
+The application is visible
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_ActiveEvent\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetAudioStatus.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetAudioStatus.3
new file mode 100644
index 0000000..9895c95
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetAudioStatus.3
@@ -0,0 +1,24 @@
+.TH "SDL_GetAudioStatus" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetAudioStatus \- Get the current audio state
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_audiostatus\fBSDL_GetAudioStatus\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+.nf
+\f(CWtypedef enum{
+ SDL_AUDIO_STOPPED,
+ SDL_AUDIO_PAUSED,
+ SDL_AUDIO_PLAYING
+} SDL_audiostatus;\fR
+.fi
+.PP
+.PP
+Returns either \fBSDL_AUDIO_STOPPED\fP, \fBSDL_AUDIO_PAUSED\fP or \fBSDL_AUDIO_PLAYING\fP depending on the current audio state\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_PauseAudio\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetClipRect.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetClipRect.3
new file mode 100644
index 0000000..b911ff6
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetClipRect.3
@@ -0,0 +1,17 @@
+.TH "SDL_GetClipRect" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetClipRect \- Gets the clipping rectangle for a surface\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_GetClipRect\fP\fR(\fBSDL_Surface *surface, SDL_Rect *rect\fR);
+.SH "DESCRIPTION"
+.PP
+Gets the clipping rectangle for a surface\&. When this surface is the destination of a blit, only the area within the clip rectangle is drawn into\&.
+.PP
+The rectangle pointed to by \fBrect\fR will be filled with the clipping rectangle of the surface\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_SetClipRect\fP\fR, \fI\fBSDL_BlitSurface\fP\fR, \fI\fBSDL_Surface\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetCursor.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetCursor.3
new file mode 100644
index 0000000..ce5ba72
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetCursor.3
@@ -0,0 +1,15 @@
+.TH "SDL_GetCursor" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetCursor \- Get the currently active mouse cursor\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_Cursor *\fBSDL_GetCursor\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+Returns the currently active mouse cursor\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_SetCursor\fP\fR, \fI\fBSDL_CreateCursor\fP\fR, \fI\fBSDL_ShowCursor\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetError.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetError.3
new file mode 100644
index 0000000..ecdb98c
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetError.3
@@ -0,0 +1,15 @@
+.TH "SDL_GetError" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetError \- Get SDL error string
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL/SDL\&.h"
+.sp
+\fBchar *\fBSDL_GetError\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_GetError\fP returns a NULL terminated string containing information about the last internal SDL error\&.
+.SH "RETURN VALUE"
+.PP
+\fBSDL_GetError\fP returns a string containing the last error\&.
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetEventFilter.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetEventFilter.3
new file mode 100644
index 0000000..41bf337
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetEventFilter.3
@@ -0,0 +1,23 @@
+.TH "SDL_GetEventFilter" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetEventFilter \- Retrieves a pointer to he event filter
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_EventFilter \fBSDL_GetEventFilter\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+This function retrieces a pointer to the event filter that was previously set using \fI\fBSDL_SetEventFilter\fP\fR\&. An SDL_EventFilter function is defined as:
+.PP
+.nf
+\f(CWtypedef int (*SDL_EventFilter)(const SDL_Event *event);\fR
+.fi
+.PP
+.SH "RETURN VALUE"
+.PP
+Returns a pointer to the event filter or \fBNULL\fP if no filter has been set\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fI\fBSDL_SetEventFilter\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetGamma.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetGamma.3
new file mode 100644
index 0000000..f3493aa
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetGamma.3
@@ -0,0 +1,21 @@
+.TH "SDL_GetGamma" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetGamma \- Gets the gamma of the display
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_GetGamma\fP\fR(\fBfloat *red, float *green, float *blue\fR);
+.SH "DESCRIPTION"
+.PP
+Gets the color gamma of the display\&. The gamma value for each color component will be place in the parameters \fBred\fR, \fBgreen\fR and \fBblue\fR\&. The values can range from 0\&.1 to 10\&.
+.PP
+.RS
+\fBNote:
+.PP
+This function currently only works on XFreee 4\&.0 and up\&.
+.RE
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_SetGamma\fP\fR, \fI\fBSDL_SetVideoMode\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetGammaRamp.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetGammaRamp.3
new file mode 100644
index 0000000..c1116d5
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetGammaRamp.3
@@ -0,0 +1,20 @@
+.TH "SDL_GetGammaRamp" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetGammaRamp \- Gets the color gamma lookup tables for the display
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_GetGammaRamp\fP\fR(\fBUint16 *redtable, Uint16 *greentable, Uint16 *bluetable\fR);
+.SH "DESCRIPTION"
+.PP
+Gets the gamma translation lookup tables currently used by the display\&. Each table is an array of 256 Uint16 values\&.
+.PP
+Not all display hardware is able to change gamma\&.
+.SH "RETURN VALUE"
+.PP
+Returns -1 on error\&.
+.SH "SEE ALSO"
+.PP
+\fISDL_SetGamma\fR \fISDL_SetGammaRamp\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetKeyName.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetKeyName.3
new file mode 100644
index 0000000..fc76ca8
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetKeyName.3
@@ -0,0 +1,15 @@
+.TH "SDL_GetKeyName" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetKeyName \- Get the name of an SDL virtual keysym
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBchar *\fBSDL_GetKeyName\fP\fR(\fBSDLKey key\fR);
+.SH "DESCRIPTION"
+.PP
+Returns the SDL-defined name of the \fI\fBSDLKey\fR\fR \fBkey\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDLKey\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetKeyState.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetKeyState.3
new file mode 100644
index 0000000..f679c81
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetKeyState.3
@@ -0,0 +1,30 @@
+.TH "SDL_GetKeyState" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetKeyState \- Get a snapshot of the current keyboard state
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBUint8 *\fBSDL_GetKeyState\fP\fR(\fBint *numkeys\fR);
+.SH "DESCRIPTION"
+.PP
+Gets a snapshot of the current keyboard state\&. The current state is return as a pointer to an array, the size of this array is stored in \fBnumkeys\fR\&. The array is indexed by the \fI\fBSDLK_*\fP\fR symbols\&. A value of 1 means the key is pressed and a value of 0 means its not\&. The pointer returned is a pointer to an internal SDL array and should not be freed by the caller\&.
+.PP
+.RS
+\fBNote:
+.PP
+Use \fI\fBSDL_PumpEvents\fP\fR to update the state array\&.
+.RE
+.SH "EXAMPLE"
+.PP
+.PP
+.nf
+\f(CWUint8 *keystate = SDL_GetKeyState(NULL);
+if ( keystate[SDLK_RETURN] ) printf("Return Key Pressed\&.
+");\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL Key Symbols\fP\fR, \fI\fBSDL_PumpEvents\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetModState.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetModState.3
new file mode 100644
index 0000000..5cff3d5
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetModState.3
@@ -0,0 +1,54 @@
+.TH "SDL_GetModState" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetModState \- Get the state of modifier keys\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDLMod \fBSDL_GetModState\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+Returns the current state of the modifier keys (CTRL, ALT, etc\&.)\&.
+.SH "RETURN VALUE"
+.PP
+The return value can be an OR\&'d combination of the SDLMod enum\&.
+.PP
+.PP
+.RS
+\fBSDLMod\fR
+.PP
+.PP
+.nf
+\f(CWtypedef enum {
+ KMOD_NONE = 0x0000,
+ KMOD_LSHIFT= 0x0001,
+ KMOD_RSHIFT= 0x0002,
+ KMOD_LCTRL = 0x0040,
+ KMOD_RCTRL = 0x0080,
+ KMOD_LALT = 0x0100,
+ KMOD_RALT = 0x0200,
+ KMOD_LMETA = 0x0400,
+ KMOD_RMETA = 0x0800,
+ KMOD_NUM = 0x1000,
+ KMOD_CAPS = 0x2000,
+ KMOD_MODE = 0x4000,
+} SDLMod;\fR
+.fi
+.PP
+.RE
+ SDL also defines the following symbols for convenience:
+.PP
+.RS
+.PP
+.nf
+\f(CW#define KMOD_CTRL (KMOD_LCTRL|KMOD_RCTRL)
+#define KMOD_SHIFT (KMOD_LSHIFT|KMOD_RSHIFT)
+#define KMOD_ALT (KMOD_LALT|KMOD_RALT)
+#define KMOD_META (KMOD_LMETA|KMOD_RMETA)\fR
+.fi
+.PP
+.RE
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GetKeyState\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetMouseState.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetMouseState.3
new file mode 100644
index 0000000..e92aa43
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetMouseState.3
@@ -0,0 +1,24 @@
+.TH "SDL_GetMouseState" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetMouseState \- Retrieve the current state of the mouse
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBUint8 \fBSDL_GetMouseState\fP\fR(\fBint *x, int *y\fR);
+.SH "DESCRIPTION"
+.PP
+The current button state is returned as a button bitmask, which can be tested using the \fBSDL_BUTTON(X)\fP macros, and \fBx\fR and \fBy\fR are set to the current mouse cursor position\&. You can pass \fBNULL\fP for either \fBx\fR or \fBy\fR\&.
+.SH "EXAMPLE"
+.PP
+.nf
+\f(CWSDL_PumpEvents();
+if(SDL_GetMouseState(NULL, NULL)&SDL_BUTTON(1))
+ printf("Mouse Button 1(left) is pressed\&.
+");\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GetRelativeMouseState\fP\fR, \fI\fBSDL_PumpEvents\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetRGB.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetRGB.3
new file mode 100644
index 0000000..f21a162
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetRGB.3
@@ -0,0 +1,17 @@
+.TH "SDL_GetRGB" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetRGB \- Get RGB values from a pixel in the specified pixel format\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_GetRGB\fP\fR(\fBUint32 pixel, SDL_PixelFormat *fmt, Uint8 *r, Uint8 *g, Uint8 *b\fR);
+.SH "DESCRIPTION"
+.PP
+Get RGB component values from a pixel stored in the specified pixel format\&.
+.PP
+This function uses the entire 8-bit [0\&.\&.255] range when converting color components from pixel formats with less than 8-bits per RGB component (e\&.g\&., a completely white pixel in 16-bit RGB565 format would return [0xff, 0xff, 0xff] not [0xf8, 0xfc, 0xf8])\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GetRGBA\fP\fR, \fI\fBSDL_MapRGB\fP\fR, \fI\fBSDL_MapRGBA\fP\fR, \fI\fBSDL_PixelFormat\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetRGBA.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetRGBA.3
new file mode 100644
index 0000000..eba9dfb
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetRGBA.3
@@ -0,0 +1,19 @@
+.TH "SDL_GetRGBA" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetRGBA \- Get RGBA values from a pixel in the specified pixel format\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_GetRGBA\fP\fR(\fBUint32 pixel, SDL_PixelFormat *fmt, Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a\fR);
+.SH "DESCRIPTION"
+.PP
+Get RGBA component values from a pixel stored in the specified pixel format\&.
+.PP
+This function uses the entire 8-bit [0\&.\&.255] range when converting color components from pixel formats with less than 8-bits per RGB component (e\&.g\&., a completely white pixel in 16-bit RGB565 format would return [0xff, 0xff, 0xff] not [0xf8, 0xfc, 0xf8])\&.
+.PP
+If the surface has no alpha component, the alpha will be returned as 0xff (100% opaque)\&.
+.SH "SEE ALSO"
+.PP
+\fISDL_GetRGB\fR, \fISDL_MapRGB\fR, \fISDL_MapRGBA\fR, \fISDL_PixelFormat\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetRelativeMouseState.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetRelativeMouseState.3
new file mode 100644
index 0000000..349f47d
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetRelativeMouseState.3
@@ -0,0 +1,15 @@
+.TH "SDL_GetRelativeMouseState" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetRelativeMouseState \- Retrieve the current state of the mouse
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBUint8 \fBSDL_GetRelativeMouseState\fP\fR(\fBint *x, int *y\fR);
+.SH "DESCRIPTION"
+.PP
+The current button state is returned as a button bitmask, which can be tested using the \fBSDL_BUTTON(X)\fP macros, and \fBx\fR and \fBy\fR are set to the change in the mouse position since the last call to \fBSDL_GetRelativeMouseState\fP or since event initialization\&. You can pass \fBNULL\fP for either \fBx\fR or \fBy\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GetMouseState\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetThreadID.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetThreadID.3
new file mode 100644
index 0000000..6385aeb
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetThreadID.3
@@ -0,0 +1,16 @@
+.TH "SDL_GetThreadID" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetThreadID \- Get the SDL thread ID of a SDL_Thread
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBUint32 \fBSDL_GetThreadID\fP\fR(\fBSDL_Thread *thread\fR);
+.SH "DESCRIPTION"
+.PP
+Returns the ID of a \fBSDL_Thread\fR created by \fISDL_CreateThread\fR\&.
+.SH "SEE ALSO"
+.PP
+\fISDL_CreateThread\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetTicks.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetTicks.3
new file mode 100644
index 0000000..4615737
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetTicks.3
@@ -0,0 +1,15 @@
+.TH "SDL_GetTicks" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetTicks \- Get the number of milliseconds since the SDL library initialization\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBUint32 \fBSDL_GetTicks\fP\fR(\fBvoid\fR)
+.SH "DESCRIPTION"
+.PP
+Get the number of milliseconds since the SDL library initialization\&. Note that this value wraps if the program runs for more than ~49 days\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Delay\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetVideoInfo.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetVideoInfo.3
new file mode 100644
index 0000000..b82b28e
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetVideoInfo.3
@@ -0,0 +1,15 @@
+.TH "SDL_GetVideoInfo" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetVideoInfo \- returns a pointer to information about the video hardware
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_VideoInfo *\fBSDL_GetVideoInfo\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+This function returns a read-only pointer to \fIinformation\fR about the video hardware\&. If this is called before \fISDL_SetVideoMode\fR, the \fBvfmt\fR member of the returned structure will contain the pixel format of the "best" video mode\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_SetVideoMode\fP\fR, \fI\fBSDL_VideoInfo\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_GetVideoSurface.3 b/distrib/sdl-1.2.15/docs/man3/SDL_GetVideoSurface.3
new file mode 100644
index 0000000..4a5d7eb
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_GetVideoSurface.3
@@ -0,0 +1,15 @@
+.TH "SDL_GetVideoSurface" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_GetVideoSurface \- returns a pointer to the current display surface
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_Surface *\fBSDL_GetVideoSurface\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+This function returns a pointer to the current display surface\&. If SDL is doing format conversion on the display surface, this function returns the publicly visible surface, not the real video surface\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Surface\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_Init.3 b/distrib/sdl-1.2.15/docs/man3/SDL_Init.3
new file mode 100644
index 0000000..5f50054
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_Init.3
@@ -0,0 +1,41 @@
+.TH "SDL_Init" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_Init \- Initializes SDL
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_Init\fP\fR(\fBUint32 flags\fR);
+.SH "DESCRIPTION"
+.PP
+Initializes SDL\&. This should be called before all other SDL functions\&. The \fBflags\fR parameter specifies what part(s) of SDL to initialize\&.
+.TP 20
+\fBSDL_INIT_TIMER\fP
+Initializes the \fItimer\fR subsystem\&.
+.TP 20
+\fBSDL_INIT_AUDIO\fP
+Initializes the \fIaudio\fR subsystem\&.
+.TP 20
+\fBSDL_INIT_VIDEO\fP
+Initializes the \fIvideo\fR subsystem\&.
+.TP 20
+\fBSDL_INIT_CDROM\fP
+Initializes the \fIcdrom\fR subsystem\&.
+.TP 20
+\fBSDL_INIT_JOYSTICK\fP
+Initializes the \fIjoystick\fR subsystem\&.
+.TP 20
+\fBSDL_INIT_EVERYTHING\fP
+Initialize all of the above\&.
+.TP 20
+\fBSDL_INIT_NOPARACHUTE\fP
+Prevents SDL from catching fatal signals\&.
+.TP 20
+\fBSDL_INIT_EVENTTHREAD\fP
+.SH "RETURN VALUE"
+.PP
+Returns \fB-1\fR on an error or \fB0\fR on success\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Quit\fP\fR, \fI\fBSDL_InitSubSystem\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_InitSubSystem.3 b/distrib/sdl-1.2.15/docs/man3/SDL_InitSubSystem.3
new file mode 100644
index 0000000..f0a82a5
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_InitSubSystem.3
@@ -0,0 +1,41 @@
+.TH "SDL_InitSubSystem" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_InitSubSystem \- Initialize subsystems
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_InitSubSystem\fP\fR(\fBUint32 flags\fR);
+.SH "DESCRIPTION"
+.PP
+After SDL has been initialized with \fI\fBSDL_Init\fP\fR you may initialize uninitialized subsystems with \fBSDL_InitSubSystem\fP\&. The \fBflags\fR parameter is the same as that used in \fI\fBSDL_Init\fP\fR\&.
+.SH "EXAMPLES"
+.PP
+.nf
+\f(CW/* Seperating Joystick and Video initialization\&. */
+SDL_Init(SDL_INIT_VIDEO);
+\&.
+\&.
+SDL_SetVideoMode(640, 480, 16, SDL_DOUBLEBUF|SDL_FULLSCREEN);
+\&.
+/* Do Some Video stuff */
+\&.
+\&.
+/* Initialize the joystick subsystem */
+SDL_InitSubSystem(SDL_INIT_JOYSTICK);
+
+/* Do some stuff with video and joystick */
+\&.
+\&.
+\&.
+/* Shut them both down */
+SDL_Quit();\fR
+.fi
+.PP
+.SH "RETURN VALUE"
+.PP
+Returns \fB-1\fR on an error or \fB0\fR on success\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Init\fP\fR, \fI\fBSDL_Quit\fP\fR, \fI\fBSDL_QuitSubSystem\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoyAxisEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoyAxisEvent.3
new file mode 100644
index 0000000..f8301fd
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoyAxisEvent.3
@@ -0,0 +1,36 @@
+.TH "SDL_JoyAxisEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoyAxisEvent \- Joystick axis motion event structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 type;
+ Uint8 which;
+ Uint8 axis;
+ Sint16 value;
+} SDL_JoyAxisEvent;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBtype\fR
+\fBSDL_JOYAXISMOTION\fP
+.TP 20
+\fBwhich\fR
+Joystick device index
+.TP 20
+\fBaxis\fR
+Joystick axis index
+.TP 20
+\fBvalue\fR
+Axis value (range: -32768 to 32767)
+.SH "DESCRIPTION"
+.PP
+\fBSDL_JoyAxisEvent\fR is a member of the \fI\fBSDL_Event\fR\fR union and is used when an event of type \fBSDL_JOYAXISMOTION\fP is reported\&.
+.PP
+A \fBSDL_JOYAXISMOTION\fP event occurs when ever a user moves an axis on the joystick\&. The field \fBwhich\fR is the index of the joystick that reported the event and \fBaxis\fR is the index of the axis (for a more detailed explaination see the \fIJoystick section\fR)\&. \fBvalue\fR is the current position of the axis\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fIJoystick Functions\fR, \fI\fBSDL_JoystickEventState\fP\fR, \fI\fBSDL_JoystickGetAxis\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoyBallEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoyBallEvent.3
new file mode 100644
index 0000000..7f42f7b
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoyBallEvent.3
@@ -0,0 +1,36 @@
+.TH "SDL_JoyBallEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoyBallEvent \- Joystick trackball motion event structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 type;
+ Uint8 which;
+ Uint8 ball;
+ Sint16 xrel, yrel;
+} SDL_JoyBallEvent;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBtype\fR
+\fBSDL_JOYBALLMOTION\fP
+.TP 20
+\fBwhich\fR
+Joystick device index
+.TP 20
+\fBball\fR
+Joystick trackball index
+.TP 20
+\fBxrel\fR, \fByrel\fR
+The relative motion in the X/Y direction
+.SH "DESCRIPTION"
+.PP
+\fBSDL_JoyBallEvent\fR is a member of the \fI\fBSDL_Event\fR\fR union and is used when an event of type \fBSDL_JOYBALLMOTION\fP is reported\&.
+.PP
+A \fBSDL_JOYBALLMOTION\fP event occurs when a user moves a trackball on the joystick\&. The field \fBwhich\fR is the index of the joystick that reported the event and \fBball\fR is the index of the trackball (for a more detailed explaination see the \fIJoystick section\fR)\&. Trackballs only return relative motion, this is the change in position on the ball since it was last polled (last cycle of the event loop) and it is stored in \fBxrel\fR and \fByrel\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fIJoystick Functions\fR, \fI\fBSDL_JoystickEventState\fP\fR, \fI\fBSDL_JoystickGetBall\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoyButtonEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoyButtonEvent.3
new file mode 100644
index 0000000..dfd0793
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoyButtonEvent.3
@@ -0,0 +1,36 @@
+.TH "SDL_JoyButtonEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoyButtonEvent \- Joystick button event structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 type;
+ Uint8 which;
+ Uint8 button;
+ Uint8 state;
+} SDL_JoyButtonEvent;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBtype\fR
+\fBSDL_JOYBUTTONDOWN\fP or \fBSDL_JOYBUTTONUP\fP
+.TP 20
+\fBwhich\fR
+Joystick device index
+.TP 20
+\fBbutton\fR
+Joystick button index
+.TP 20
+\fBstate\fR
+\fBSDL_PRESSED\fP or \fBSDL_RELEASED\fP
+.SH "DESCRIPTION"
+.PP
+\fBSDL_JoyButtonEvent\fR is a member of the \fI\fBSDL_Event\fR\fR union and is used when an event of type \fBSDL_JOYBUTTONDOWN\fP or \fBSDL_JOYBUTTONUP\fP is reported\&.
+.PP
+A \fBSDL_JOYBUTTONDOWN\fP or \fBSDL_JOYBUTTONUP\fP event occurs when ever a user presses or releases a button on a joystick\&. The field \fBwhich\fR is the index of the joystick that reported the event and \fBbutton\fR is the index of the button (for a more detailed explaination see the \fIJoystick section\fR)\&. \fBstate\fR is the current state or the button which is either \fBSDL_PRESSED\fP or \fBSDL_RELEASED\fP\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fIJoystick Functions\fR, \fI\fBSDL_JoystickEventState\fP\fR, \fI\fBSDL_JoystickGetButton\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoyHatEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoyHatEvent.3
new file mode 100644
index 0000000..5817ad6
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoyHatEvent.3
@@ -0,0 +1,56 @@
+.TH "SDL_JoyHatEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoyHatEvent \- Joystick hat position change event structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 type;
+ Uint8 which;
+ Uint8 hat;
+ Uint8 value;
+} SDL_JoyHatEvent;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBtype\fR
+\fBSDL_JOY\fP
+.TP 20
+\fBwhich\fR
+Joystick device index
+.TP 20
+\fBhat\fR
+Joystick hat index
+.TP 20
+\fBvalue\fR
+Hat position
+.SH "DESCRIPTION"
+.PP
+\fBSDL_JoyHatEvent\fR is a member of the \fI\fBSDL_Event\fR\fR union and is used when an event of type \fBSDL_JOYHATMOTION\fP is reported\&.
+.PP
+A \fBSDL_JOYHATMOTION\fP event occurs when ever a user moves a hat on the joystick\&. The field \fBwhich\fR is the index of the joystick that reported the event and \fBhat\fR is the index of the hat (for a more detailed exlaination see the \fIJoystick section\fR)\&. \fBvalue\fR is the current position of the hat\&. It is a logically OR\&'d combination of the following values (whose meanings should be pretty obvious:) :
+.IP "" 10
+\fBSDL_HAT_CENTERED\fP
+.IP "" 10
+\fBSDL_HAT_UP\fP
+.IP "" 10
+\fBSDL_HAT_RIGHT\fP
+.IP "" 10
+\fBSDL_HAT_DOWN\fP
+.IP "" 10
+\fBSDL_HAT_LEFT\fP
+.PP
+The following defines are also provided:
+.IP "" 10
+\fBSDL_HAT_RIGHTUP\fP
+.IP "" 10
+\fBSDL_HAT_RIGHTDOWN\fP
+.IP "" 10
+\fBSDL_HAT_LEFTUP\fP
+.IP "" 10
+\fBSDL_HAT_LEFTDOWN\fP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fIJoystick Functions\fR, \fI\fBSDL_JoystickEventState\fP\fR, \fI\fBSDL_JoystickGetHat\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickClose.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickClose.3
new file mode 100644
index 0000000..281702f
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickClose.3
@@ -0,0 +1,15 @@
+.TH "SDL_JoystickClose" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickClose \- Closes a previously opened joystick
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_JoystickClose\fP\fR(\fBSDL_Joystick *joystick\fR);
+.SH "DESCRIPTION"
+.PP
+Close a \fBjoystick\fR that was previously opened with \fI\fBSDL_JoystickOpen\fP\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickOpen\fP\fR, \fI\fBSDL_JoystickOpened\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickEventState.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickEventState.3
new file mode 100644
index 0000000..7e410f3
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickEventState.3
@@ -0,0 +1,24 @@
+.TH "SDL_JoystickEventState" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickEventState \- Enable/disable joystick event polling
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_JoystickEventState\fP\fR(\fBint state\fR);
+.SH "DESCRIPTION"
+.PP
+This function is used to enable or disable joystick event processing\&. With joystick event processing disabled you will have to update joystick states with \fI\fBSDL_JoystickUpdate\fP\fR and read the joystick information manually\&. \fBstate\fR is either \fBSDL_QUERY\fP, \fBSDL_ENABLE\fP or \fBSDL_IGNORE\fP\&.
+.PP
+.RS
+\fBNote:
+.PP
+Joystick event handling is prefered
+.RE
+.SH "RETURN VALUE"
+.PP
+If \fBstate\fR is \fBSDL_QUERY\fP then the current state is returned, otherwise the new processing \fBstate\fR is returned\&.
+.SH "SEE ALSO"
+.PP
+\fISDL Joystick Functions\fR, \fI\fBSDL_JoystickUpdate\fP\fR, \fI\fBSDL_JoyAxisEvent\fR\fR, \fI\fBSDL_JoyBallEvent\fR\fR, \fI\fBSDL_JoyButtonEvent\fR\fR, \fI\fBSDL_JoyHatEvent\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetAxis.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetAxis.3
new file mode 100644
index 0000000..0a80b34
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetAxis.3
@@ -0,0 +1,32 @@
+.TH "SDL_JoystickGetAxis" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickGetAxis \- Get the current state of an axis
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSint16 \fBSDL_JoystickGetAxis\fP\fR(\fBSDL_Joystick *joystick, int axis\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_JoystickGetAxis\fP returns the current state of the given \fBaxis\fR on the given \fBjoystick\fR\&.
+.PP
+On most modern joysticks the X axis is usually represented by \fBaxis\fR 0 and the Y axis by \fBaxis\fR 1\&. The value returned by \fBSDL_JoystickGetAxis\fP is a signed integer (-32768 to 32768) representing the current position of the \fBaxis\fR, it maybe necessary to impose certain tolerances on these values to account for jitter\&. It is worth noting that some joysticks use axes 2 and 3 for extra buttons\&.
+.SH "RETURN VALUE"
+.PP
+Returns a 16-bit signed integer representing the current position of the \fBaxis\fR\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWSint16 x_move, y_move;
+SDL_Joystick *joy1;
+\&.
+\&.
+x_move=SDL_JoystickGetAxis(joy1, 0);
+y_move=SDL_JoystickGetAxis(joy1, 1);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickNumAxes\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetBall.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetBall.3
new file mode 100644
index 0000000..124c910
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetBall.3
@@ -0,0 +1,37 @@
+.TH "SDL_JoystickGetBall" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickGetBall \- Get relative trackball motion
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_JoystickGetBall\fP\fR(\fBSDL_Joystick *joystick, int ball, int *dx, int *dy\fR);
+.SH "DESCRIPTION"
+.PP
+Get the \fBball\fR axis change\&.
+.PP
+Trackballs can only return relative motion since the last call to \fBSDL_JoystickGetBall\fP, these motion deltas a placed into \fBdx\fR and \fBdy\fR\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR on success or \fB-1\fR on failure
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWint delta_x, delta_y;
+SDL_Joystick *joy;
+\&.
+\&.
+\&.
+SDL_JoystickUpdate();
+if(SDL_JoystickGetBall(joy, 0, &delta_x, &delta_y)==-1)
+ printf("TrackBall Read Error!
+");
+printf("Trackball Delta- X:%d, Y:%d
+", delta_x, delta_y);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickNumBalls\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetButton.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetButton.3
new file mode 100644
index 0000000..e7b336b
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetButton.3
@@ -0,0 +1,18 @@
+.TH "SDL_JoystickGetButton" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickGetButton \- Get the current state of a given button on a given joystick
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBUint8 \fBSDL_JoystickGetButton\fP\fR(\fBSDL_Joystick *joystick, int button\fR);
+.SH "DESCRIPTION"
+.PP
+SDL_JoystickGetButton returns the current state of the given \fBbutton\fR on the given \fBjoystick\fR\&.
+.SH "RETURN VALUE"
+.PP
+\fB1\fR if the button is pressed\&. Otherwise, \fB0\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickNumButtons\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetHat.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetHat.3
new file mode 100644
index 0000000..cdbd910
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickGetHat.3
@@ -0,0 +1,36 @@
+.TH "SDL_JoystickGetHat" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickGetHat \- Get the current state of a joystick hat
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBUint8 \fBSDL_JoystickGetHat\fP\fR(\fBSDL_Joystick *joystick, int hat\fR);
+.SH "DESCRIPTION"
+.PP
+SDL_JoystickGetHat returns the current state of the given \fBhat\fR on the given \fBjoystick\fR\&.
+.SH "RETURN VALUE"
+.PP
+The current state is returned as a Uint8 which is defined as an OR\&'d combination of one or more of the following
+.IP "" 10
+\fBSDL_HAT_CENTERED\fP
+.IP "" 10
+\fBSDL_HAT_UP\fP
+.IP "" 10
+\fBSDL_HAT_RIGHT\fP
+.IP "" 10
+\fBSDL_HAT_DOWN\fP
+.IP "" 10
+\fBSDL_HAT_LEFT\fP
+.IP "" 10
+\fBSDL_HAT_RIGHTUP\fP
+.IP "" 10
+\fBSDL_HAT_RIGHTDOWN\fP
+.IP "" 10
+\fBSDL_HAT_LEFTUP\fP
+.IP "" 10
+\fBSDL_HAT_LEFTDOWN\fP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickNumHats\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickIndex.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickIndex.3
new file mode 100644
index 0000000..611e4b6
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickIndex.3
@@ -0,0 +1,18 @@
+.TH "SDL_JoystickIndex" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickIndex \- Get the index of an SDL_Joystick\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_JoystickIndex\fP\fR(\fBSDL_Joystick *joystick\fR);
+.SH "DESCRIPTION"
+.PP
+Returns the index of a given \fBSDL_Joystick\fR structure\&.
+.SH "RETURN VALUE"
+.PP
+Index number of the joystick\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickOpen\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickName.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickName.3
new file mode 100644
index 0000000..364297e
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickName.3
@@ -0,0 +1,32 @@
+.TH "SDL_JoystickName" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickName \- Get joystick name\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBconst char *\fBSDL_JoystickName\fP\fR(\fBint index\fR);
+.SH "DESCRIPTION"
+.PP
+Get the implementation dependent name of joystick\&. The \fBindex\fR parameter refers to the N\&'th joystick on the system\&.
+.SH "RETURN VALUE"
+.PP
+Returns a char pointer to the joystick name\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CW/* Print the names of all attached joysticks */
+int num_joy, i;
+num_joy=SDL_NumJoysticks();
+printf("%d joysticks found
+", num_joy);
+for(i=0;i<num_joy;i++)
+ printf("%s
+", SDL_JoystickName(i));\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickOpen\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumAxes.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumAxes.3
new file mode 100644
index 0000000..339c36c
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumAxes.3
@@ -0,0 +1,18 @@
+.TH "SDL_JoystickNumAxes" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickNumAxes \- Get the number of joystick axes
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_JoystickNumAxes\fP\fR(\fBSDL_Joystick *joystick\fR);
+.SH "DESCRIPTION"
+.PP
+Return the number of axes available from a previously opened \fBSDL_Joystick\fR\&.
+.SH "RETURN VALUE"
+.PP
+Number of axes\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickGetAxis\fP\fR, \fI\fBSDL_JoystickOpen\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumBalls.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumBalls.3
new file mode 100644
index 0000000..32dcae3
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumBalls.3
@@ -0,0 +1,18 @@
+.TH "SDL_JoystickNumBalls" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickNumBalls \- Get the number of joystick trackballs
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_JoystickNumBalls\fP\fR(\fBSDL_Joystick *joystick\fR);
+.SH "DESCRIPTION"
+.PP
+Return the number of trackballs available from a previously opened \fBSDL_Joystick\fR\&.
+.SH "RETURN VALUE"
+.PP
+Number of trackballs\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickGetBall\fP\fR, \fI\fBSDL_JoystickOpen\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumButtons.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumButtons.3
new file mode 100644
index 0000000..652ea4e
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumButtons.3
@@ -0,0 +1,18 @@
+.TH "SDL_JoystickNumButtons" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickNumButtons \- Get the number of joysitck buttons
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_JoystickNumButtons\fP\fR(\fBSDL_Joystick *joystick\fR);
+.SH "DESCRIPTION"
+.PP
+Return the number of buttons available from a previously opened \fBSDL_Joystick\fR\&.
+.SH "RETURN VALUE"
+.PP
+Number of buttons\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickGetButton\fP\fR, \fI\fBSDL_JoystickOpen\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumHats.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumHats.3
new file mode 100644
index 0000000..9a4ca7f
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickNumHats.3
@@ -0,0 +1,18 @@
+.TH "SDL_JoystickNumHats" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickNumHats \- Get the number of joystick hats
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_JoystickNumHats\fP\fR(\fBSDL_Joystick *joystick\fR);
+.SH "DESCRIPTION"
+.PP
+Return the number of hats available from a previously opened \fBSDL_Joystick\fR\&.
+.SH "RETURN VALUE"
+.PP
+Number of hats\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickGetHat\fP\fR, \fI\fBSDL_JoystickOpen\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickOpen.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickOpen.3
new file mode 100644
index 0000000..7e1d6a6
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickOpen.3
@@ -0,0 +1,51 @@
+.TH "SDL_JoystickOpen" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickOpen \- Opens a joystick for use\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_Joystick *\fBSDL_JoystickOpen\fP\fR(\fBint index\fR);
+.SH "DESCRIPTION"
+.PP
+Opens a joystick for use within SDL\&. The \fBindex\fR refers to the N\&'th joystick in the system\&. A joystick must be opened before it game be used\&.
+.SH "RETURN VALUE"
+.PP
+Returns a \fBSDL_Joystick\fR structure on success\&. \fBNULL\fR on failure\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWSDL_Joystick *joy;
+// Check for joystick
+if(SDL_NumJoysticks()>0){
+ // Open joystick
+ joy=SDL_JoystickOpen(0);
+
+ if(joy)
+ {
+ printf("Opened Joystick 0
+");
+ printf("Name: %s
+", SDL_JoystickName(0));
+ printf("Number of Axes: %d
+", SDL_JoystickNumAxes(joy));
+ printf("Number of Buttons: %d
+", SDL_JoystickNumButtons(joy));
+ printf("Number of Balls: %d
+", SDL_JoystickNumBalls(joy));
+ }
+ else
+ printf("Couldn\&'t open Joystick 0
+");
+
+ // Close if opened
+ if(SDL_JoystickOpened(0))
+ SDL_JoystickClose(joy);
+}\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickClose\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickOpened.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickOpened.3
new file mode 100644
index 0000000..9d82e09
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickOpened.3
@@ -0,0 +1,18 @@
+.TH "SDL_JoystickOpened" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickOpened \- Determine if a joystick has been opened
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_JoystickOpened\fP\fR(\fBint index\fR);
+.SH "DESCRIPTION"
+.PP
+Determines whether a joystick has already been opened within the application\&. \fBindex\fR refers to the N\&'th joystick on the system\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB1\fR if the joystick has been opened, or \fB0\fR if it has not\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickOpen\fP\fR, \fI\fBSDL_JoystickClose\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_JoystickUpdate.3 b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickUpdate.3
new file mode 100644
index 0000000..7d1035b
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_JoystickUpdate.3
@@ -0,0 +1,15 @@
+.TH "SDL_JoystickUpdate" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_JoystickUpdate \- Updates the state of all joysticks
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_JoystickUpdate\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+Updates the state(position, buttons, etc\&.) of all open joysticks\&. If joystick events have been enabled with \fI\fBSDL_JoystickEventState\fP\fR then this is called automatically in the event loop\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickEventState\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_KeyboardEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_KeyboardEvent.3
new file mode 100644
index 0000000..4aeea79
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_KeyboardEvent.3
@@ -0,0 +1,38 @@
+.TH "SDL_KeyboardEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_KeyboardEvent \- Keyboard event structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 type;
+ Uint8 state;
+ SDL_keysym keysym;
+} SDL_KeyboardEvent;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBtype\fR
+\fBSDL_KEYDOWN\fP or \fBSDL_KEYUP\fP
+.TP 20
+\fBstate\fR
+\fBSDL_PRESSED\fP or \fBSDL_RELEASED\fP
+.TP 20
+\fBkeysym\fR
+Contains key press information
+.SH "DESCRIPTION"
+.PP
+\fBSDL_KeyboardEvent\fR is a member of the \fI\fBSDL_Event\fR\fR union and is used when an event of type \fBSDL_KEYDOWN\fP or \fBSDL_KEYUP\fP is reported\&.
+.PP
+The \fBtype\fR and \fBstate\fR actually report the same information, they just use different values to do it! A keyboard event occurs when a key is released (\fBtype\fR=\fBSDK_KEYUP\fP or \fBstate\fR=\fBSDL_RELEASED\fP) and when a key is pressed (\fBtype\fR=\fBSDL_KEYDOWN\fP or \fBstate\fR=\fBSDL_PRESSED\fP)\&. The information on what key was pressed or released is in the \fI\fBkeysym\fR\fR structure\&.
+.PP
+.RS
+\fBNote:
+.PP
+Repeating \fBSDL_KEYDOWN\fP events will occur if key repeat is enabled (see \fI\fBSDL_EnableKeyRepeat\fP\fR)\&.
+.RE
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fI\fBSDL_keysym\fR\fR, \fI\fBSDL_EnableKeyRepeat\fP\fR, \fI\fBSDL_EnableUNICODE\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_KillThread.3 b/distrib/sdl-1.2.15/docs/man3/SDL_KillThread.3
new file mode 100644
index 0000000..2a34f11
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_KillThread.3
@@ -0,0 +1,16 @@
+.TH "SDL_KillThread" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_KillThread \- Gracelessly terminates the thread\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBvoid \fBSDL_KillThread\fP\fR(\fBSDL_Thread *thread\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_KillThread\fP gracelessly terminates the thread associated with \fBthread\fR\&. If possible, you should use some other form of IPC to signal the thread to quit\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateThread\fP\fR, \fI\fBSDL_WaitThread\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_ListModes.3 b/distrib/sdl-1.2.15/docs/man3/SDL_ListModes.3
new file mode 100644
index 0000000..3cc9376
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_ListModes.3
@@ -0,0 +1,53 @@
+.TH "SDL_ListModes" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_ListModes \- Returns a pointer to an array of available screen dimensions for the given format and video flags
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_Rect **\fBSDL_ListModes\fP\fR(\fBSDL_PixelFormat *format, Uint32 flags\fR);
+.SH "DESCRIPTION"
+.PP
+Return a pointer to an array of available screen dimensions for the given format and video flags, sorted largest to smallest\&. Returns \fBNULL\fP if there are no dimensions available for a particular format, or \fB-1\fR if any dimension is okay for the given format\&.
+.PP
+If \fBformat\fR is \fBNULL\fP, the mode list will be for the format returned by \fISDL_GetVideoInfo()\fR->\fBvfmt\fR\&. The \fBflag\fR parameter is an OR\&'d combination of \fIsurface\fR flags\&. The flags are the same as those used \fI\fBSDL_SetVideoMode\fP\fR and they play a strong role in deciding what modes are valid\&. For instance, if you pass \fBSDL_HWSURFACE\fP as a flag only modes that support hardware video surfaces will be returned\&.
+.SH "EXAMPLE"
+.PP
+.nf
+\f(CWSDL_Rect **modes;
+int i;
+\&.
+\&.
+\&.
+
+/* Get available fullscreen/hardware modes */
+modes=SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_HWSURFACE);
+
+/* Check is there are any modes available */
+if(modes == (SDL_Rect **)0){
+ printf("No modes available!
+");
+ exit(-1);
+}
+
+/* Check if or resolution is restricted */
+if(modes == (SDL_Rect **)-1){
+ printf("All resolutions available\&.
+");
+}
+else{
+ /* Print valid modes */
+ printf("Available Modes
+");
+ for(i=0;modes[i];++i)
+ printf(" %d x %d
+", modes[i]->w, modes[i]->h);
+}
+\&.
+\&.\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_SetVideoMode\fP\fR, \fI\fBSDL_GetVideoInfo\fP\fR, \fI\fBSDL_Rect\fR\fR, \fI\fBSDL_PixelFormat\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_LoadBMP.3 b/distrib/sdl-1.2.15/docs/man3/SDL_LoadBMP.3
new file mode 100644
index 0000000..7e3b4af
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_LoadBMP.3
@@ -0,0 +1,18 @@
+.TH "SDL_LoadBMP" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_LoadBMP \- Load a Windows BMP file into an SDL_Surface\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_Surface *\fBSDL_LoadBMP\fP\fR(\fBconst char *file\fR);
+.SH "DESCRIPTION"
+.PP
+Loads a surface from a named Windows BMP file\&.
+.SH "RETURN VALUE"
+.PP
+Returns the new surface, or \fBNULL\fP if there was an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_SaveBMP\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_LoadWAV.3 b/distrib/sdl-1.2.15/docs/man3/SDL_LoadWAV.3
new file mode 100644
index 0000000..490ff67
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_LoadWAV.3
@@ -0,0 +1,42 @@
+.TH "SDL_LoadWAV" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_LoadWAV \- Load a WAVE file
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_AudioSpec *\fBSDL_LoadWAV\fP\fR(\fBconst char *file, SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_LoadWAV\fP This function loads a WAVE \fBfile\fR into memory\&.
+.PP
+If this function succeeds, it returns the given \fI\fBSDL_AudioSpec\fP\fR, filled with the audio data format of the wave data, and sets \fBaudio_buf\fR to a \fBmalloc\fP\&'d buffer containing the audio data, and sets \fBaudio_len\fR to the length of that audio buffer, in bytes\&. You need to free the audio buffer with \fI\fBSDL_FreeWAV\fP\fR when you are done with it\&.
+.PP
+This function returns \fBNULL\fP and sets the SDL error message if the wave file cannot be opened, uses an unknown data format, or is corrupt\&. Currently raw, MS-ADPCM and IMA-ADPCM WAVE files are supported\&.
+.SH "EXAMPLE"
+.PP
+.nf
+\f(CWSDL_AudioSpec wav_spec;
+Uint32 wav_length;
+Uint8 *wav_buffer;
+
+/* Load the WAV */
+if( SDL_LoadWAV("test\&.wav", &wav_spec, &wav_buffer, &wav_length) == NULL ){
+ fprintf(stderr, "Could not open test\&.wav: %s
+", SDL_GetError());
+ exit(-1);
+}
+\&.
+\&.
+\&.
+/* Do stuff with the WAV */
+\&.
+\&.
+/* Free It */
+SDL_FreeWAV(wav_buffer);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_AudioSpec\fR\fR, \fI\fBSDL_OpenAudio\fP\fR, \fI\fBSDL_FreeWAV\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_LockAudio.3 b/distrib/sdl-1.2.15/docs/man3/SDL_LockAudio.3
new file mode 100644
index 0000000..8c141fd
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_LockAudio.3
@@ -0,0 +1,15 @@
+.TH "SDL_LockAudio" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_LockAudio \- Lock out the callback function
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_LockAudio\fP\fR(\fBvoid\fR)
+.SH "DESCRIPTION"
+.PP
+The lock manipulated by these functions protects the callback function\&. During a LockAudio period, you can be guaranteed that the callback function is not running\&. Do not call these from the callback function or you will cause deadlock\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_OpenAudio\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_LockSurface.3 b/distrib/sdl-1.2.15/docs/man3/SDL_LockSurface.3
new file mode 100644
index 0000000..6db3ad7
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_LockSurface.3
@@ -0,0 +1,48 @@
+.TH "SDL_LockSurface" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_LockSurface \- Lock a surface for directly access\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_LockSurface\fP\fR(\fBSDL_Surface *surface\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_LockSurface\fP sets up a surface for directly accessing the pixels\&. Between calls to \fBSDL_LockSurface\fP and \fBSDL_UnlockSurface\fP, you can write to and read from \fBsurface->\fBpixels\fR\fR, using the pixel format stored in \fBsurface->\fBformat\fR\fR\&. Once you are done accessing the surface, you should use \fBSDL_UnlockSurface\fP to release it\&.
+.PP
+Not all surfaces require locking\&. If \fBSDL_MUSTLOCK\fP(\fBsurface\fR) evaluates to \fB0\fR, then you can read and write to the surface at any time, and the pixel format of the surface will not change\&.
+.PP
+No operating system or library calls should be made between lock/unlock pairs, as critical system locks may be held during this time\&.
+.PP
+It should be noted, that since SDL 1\&.1\&.8 surface locks are recursive\&. This means that you can lock a surface multiple times, but each lock must have a match unlock\&.
+.PP
+.nf
+\f(CW \&.
+ \&.
+ SDL_LockSurface( surface );
+ \&.
+ /* Surface is locked */
+ /* Direct pixel access on surface here */
+ \&.
+ SDL_LockSurface( surface );
+ \&.
+ /* More direct pixel access on surface */
+ \&.
+ SDL_UnlockSurface( surface );
+ /* Surface is still locked */
+ /* Note: Is versions < 1\&.1\&.8, the surface would have been */
+ /* no longer locked at this stage */
+ \&.
+ SDL_UnlockSurface( surface );
+ /* Surface is now unlocked */
+ \&.
+ \&.\fR
+.fi
+.PP
+.SH "RETURN VALUE"
+.PP
+\fBSDL_LockSurface\fP returns \fB0\fR, or \fB-1\fR if the surface couldn\&'t be locked\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_UnlockSurface\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_LockYUVOverlay.3 b/distrib/sdl-1.2.15/docs/man3/SDL_LockYUVOverlay.3
new file mode 100644
index 0000000..286d96f
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_LockYUVOverlay.3
@@ -0,0 +1,18 @@
+.TH "SDL_LockYUVOverlay" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_LockYUVOverlay \- Lock an overlay
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_LockYUVOverlay\fP\fR(\fBSDL_Overlay *overlay\fR);
+.SH "DESCRIPTION"
+.PP
+Much the same as \fI\fBSDL_LockSurface\fP\fR, \fBSDL_LockYUVOverlay\fP locks the \fI\fBoverlay\fR\fR for direct access to pixel data\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR on success, or \fB-1\fR on an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_UnlockYUVOverlay\fP\fR, \fI\fBSDL_CreateYUVOverlay\fP\fR, \fI\fBSDL_Overlay\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_MapRGB.3 b/distrib/sdl-1.2.15/docs/man3/SDL_MapRGB.3
new file mode 100644
index 0000000..1e4c963
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_MapRGB.3
@@ -0,0 +1,22 @@
+.TH "SDL_MapRGB" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_MapRGB \- Map a RGB color value to a pixel format\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBUint32 \fBSDL_MapRGB\fP\fR(\fBSDL_PixelFormat *fmt, Uint8 r, Uint8 g, Uint8 b\fR);
+.SH "DESCRIPTION"
+.PP
+Maps the RGB color value to the specified pixel format and returns the pixel value as a 32-bit int\&.
+.PP
+If the format has a palette (8-bit) the index of the closest matching color in the palette will be returned\&.
+.PP
+If the specified pixel format has an alpha component it will be returned as all 1 bits (fully opaque)\&.
+.SH "RETURN VALUE"
+.PP
+A pixel value best approximating the given RGB color value for a given pixel format\&. If the pixel format bpp (color depth) is less than 32-bpp then the unused upper bits of the return value can safely be ignored (e\&.g\&., with a 16-bpp format the return value can be assigned to a \fBUint16\fP, and similarly a \fBUint8\fP for an 8-bpp format)\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GetRGB\fP\fR, \fI\fBSDL_GetRGBA\fP\fR, \fI\fBSDL_MapRGBA\fP\fR, \fI\fBSDL_PixelFormat\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_MapRGBA.3 b/distrib/sdl-1.2.15/docs/man3/SDL_MapRGBA.3
new file mode 100644
index 0000000..03d78d8
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_MapRGBA.3
@@ -0,0 +1,22 @@
+.TH "SDL_MapRGBA" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_MapRGBA \- Map a RGBA color value to a pixel format\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBUint32 \fBSDL_MapRGBA\fP\fR(\fBSDL_PixelFormat *fmt, Uint8 r, Uint8 g, Uint8 b, Uint8 a\fR);
+.SH "DESCRIPTION"
+.PP
+Maps the RGBA color value to the specified pixel format and returns the pixel value as a 32-bit int\&.
+.PP
+If the format has a palette (8-bit) the index of the closest matching color in the palette will be returned\&.
+.PP
+If the specified pixel format has no alpha component the alpha value will be ignored (as it will be in formats with a palette)\&.
+.SH "RETURN VALUE"
+.PP
+A pixel value best approximating the given RGBA color value for a given pixel format\&. If the pixel format bpp (color depth) is less than 32-bpp then the unused upper bits of the return value can safely be ignored (e\&.g\&., with a 16-bpp format the return value can be assigned to a \fBUint16\fP, and similarly a \fBUint8\fP for an 8-bpp format)\&.
+.SH "SEE ALSO"
+.PP
+\fISDL_GetRGB\fR, \fISDL_GetRGBA\fR, \fISDL_MapRGB\fR, \fISDL_PixelFormat\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_MixAudio.3 b/distrib/sdl-1.2.15/docs/man3/SDL_MixAudio.3
new file mode 100644
index 0000000..b98660d
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_MixAudio.3
@@ -0,0 +1,21 @@
+.TH "SDL_MixAudio" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_MixAudio \- Mix audio data
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_MixAudio\fP\fR(\fBUint8 *dst, Uint8 *src, Uint32 len, int volume\fR);
+.SH "DESCRIPTION"
+.PP
+This function takes two audio buffers of \fBlen\fR bytes each of the playing audio format and mixes them, performing addition, volume adjustment, and overflow clipping\&. The \fBvolume\fR ranges from 0 to \fBSDL_MIX_MAXVOLUME\fP and should be set to the maximum value for full audio volume\&. Note this does not change hardware volume\&. This is provided for convenience -- you can mix your own audio data\&.
+.PP
+.RS
+\fBNote:
+.PP
+Do not use this function for mixing together more than two streams of sample data\&. The output from repeated application of this function may be distorted by clipping, because there is no accumulator with greater range than the input (not to mention this being an inefficient way of doing it)\&. Use mixing functions from SDL_mixer, OpenAL, or write your own mixer instead\&.
+.RE
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_OpenAudio\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_MouseButtonEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_MouseButtonEvent.3
new file mode 100644
index 0000000..d2d34a0
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_MouseButtonEvent.3
@@ -0,0 +1,36 @@
+.TH "SDL_MouseButtonEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_MouseButtonEvent \- Mouse button event structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 type;
+ Uint8 button;
+ Uint8 state;
+ Uint16 x, y;
+} SDL_MouseButtonEvent;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBtype\fR
+\fBSDL_MOUSEBUTTONDOWN\fP or \fBSDL_MOUSEBUTTONUP\fP
+.TP 20
+\fBbutton\fR
+The mouse button index (SDL_BUTTON_LEFT, SDL_BUTTON_MIDDLE, SDL_BUTTON_RIGHT)
+.TP 20
+\fBstate\fR
+\fBSDL_PRESSED\fP or \fBSDL_RELEASED\fP
+.TP 20
+\fBx\fR, \fBy\fR
+The X/Y coordinates of the mouse at press/release time
+.SH "DESCRIPTION"
+.PP
+\fBSDL_MouseButtonEvent\fR is a member of the \fI\fBSDL_Event\fR\fR union and is used when an event of type \fBSDL_MOUSEBUTTONDOWN\fP or \fBSDL_MOUSEBUTTONUP\fP is reported\&.
+.PP
+When a mouse button press or release is detected then number of the button pressed (from 1 to 255, with 1 usually being the left button and 2 the right) is placed into \fBbutton\fR, the position of the mouse when this event occured is stored in the \fBx\fR and the \fBy\fR fields\&. Like \fI\fBSDL_KeyboardEvent\fR\fR, information on whether the event was a press or a release event is stored in both the \fBtype\fR and \fBstate\fR fields, but this should be obvious\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fI\fBSDL_MouseMotionEvent\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_MouseMotionEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_MouseMotionEvent.3
new file mode 100644
index 0000000..c1b036d
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_MouseMotionEvent.3
@@ -0,0 +1,38 @@
+.TH "SDL_MouseMotionEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_MouseMotionEvent \- Mouse motion event structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 type;
+ Uint8 state;
+ Uint16 x, y;
+ Sint16 xrel, yrel;
+} SDL_MouseMotionEvent;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBtype\fR
+\fBSDL_MOUSEMOTION\fP
+.TP 20
+\fBstate\fR
+The current button state
+.TP 20
+\fBx\fR, \fBy\fR
+The X/Y coordinates of the mouse
+.TP 20
+\fBxrel\fR, \fByrel\fR
+Relative motion in the X/Y direction
+.SH "DESCRIPTION"
+.PP
+\fBSDL_MouseMotionEvent\fR is a member of the \fI\fBSDL_Event\fR\fR union and is used when an event of type \fBSDL_MOUSEMOTION\fP is reported\&.
+.PP
+Simply put, a \fBSDL_MOUSEMOTION\fP type event occurs when a user moves the mouse within the application window or when \fI\fBSDL_WarpMouse\fP\fR is called\&. Both the absolute (\fBx\fR and \fBy\fR) and relative (\fBxrel\fR and \fByrel\fR) coordinates are reported along with the current button states (\fBstate\fR)\&. The button state can be interpreted using the \fBSDL_BUTTON\fP macro (see \fI\fBSDL_GetMouseState\fP\fR)\&.
+.PP
+If the cursor is hidden (\fI\fBSDL_ShowCursor\fP(0)\fR) and the input is grabbed (\fI\fBSDL_WM_GrabInput\fP(SDL_GRAB_ON)\fR), then the mouse will give relative motion events even when the cursor reaches the edge fo the screen\&. This is currently only implemented on Windows and Linux/Unix-a-likes\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fI\fBSDL_MouseButtonEvent\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_NumJoysticks.3 b/distrib/sdl-1.2.15/docs/man3/SDL_NumJoysticks.3
new file mode 100644
index 0000000..c737a1c
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_NumJoysticks.3
@@ -0,0 +1,18 @@
+.TH "SDL_NumJoysticks" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_NumJoysticks \- Count available joysticks\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_NumJoysticks\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+Counts the number of joysticks attached to the system\&.
+.SH "RETURN VALUE"
+.PP
+Returns the number of attached joysticks
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_JoystickName\fP\fR, \fI\fBSDL_JoystickOpen\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_OpenAudio.3 b/distrib/sdl-1.2.15/docs/man3/SDL_OpenAudio.3
new file mode 100644
index 0000000..38a232c
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_OpenAudio.3
@@ -0,0 +1,97 @@
+.TH "SDL_OpenAudio" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_OpenAudio \- Opens the audio device with the desired parameters\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_OpenAudio\fP\fR(\fBSDL_AudioSpec *desired, SDL_AudioSpec *obtained\fR);
+.SH "DESCRIPTION"
+.PP
+This function opens the audio device with the \fBdesired\fR parameters, and returns 0 if successful, placing the actual hardware parameters in the structure pointed to by \fBobtained\fR\&. If \fBobtained\fR is NULL, the audio data passed to the callback function will be guaranteed to be in the requested format, and will be automatically converted to the hardware audio format if necessary\&. This function returns -1 if it failed to open the audio device, or couldn\&'t set up the audio thread\&.
+.PP
+To open the audio device a \fBdesired\fR \fI\fBSDL_AudioSpec\fR\fR must be created\&.
+.PP
+.nf
+\f(CWSDL_AudioSpec *desired;
+\&.
+\&.
+desired=(SDL_AudioSpec *)malloc(sizeof(SDL_AudioSpec));\fR
+.fi
+.PP
+ You must then fill this structure with your desired audio specifications\&.
+.IP "\fBdesired\fR->\fBfreq\fR" 10The desired audio frequency in samples-per-second\&.
+.IP "\fBdesired\fR->\fBformat\fR" 10The desired audio format (see \fI\fBSDL_AudioSpec\fR\fR)
+.IP "\fBdesired\fR->\fBsamples\fR" 10The desired size of the audio buffer in samples\&. This number should be a power of two, and may be adjusted by the audio driver to a value more suitable for the hardware\&. Good values seem to range between 512 and 8192 inclusive, depending on the application and CPU speed\&. Smaller values yield faster response time, but can lead to underflow if the application is doing heavy processing and cannot fill the audio buffer in time\&. A stereo sample consists of both right and left channels in LR ordering\&. Note that the number of samples is directly related to time by the following formula: ms = (samples*1000)/freq
+.IP "\fBdesired\fR->\fBcallback\fR" 10This should be set to a function that will be called when the audio device is ready for more data\&. It is passed a pointer to the audio buffer, and the length in bytes of the audio buffer\&. This function usually runs in a separate thread, and so you should protect data structures that it accesses by calling \fI\fBSDL_LockAudio\fP\fR and \fI\fBSDL_UnlockAudio\fP\fR in your code\&. The callback prototype is:
+.PP
+.nf
+\f(CWvoid callback(void *userdata, Uint8 *stream, int len);\fR
+.fi
+.PP
+ \fBuserdata\fR is the pointer stored in \fBuserdata\fR field of the \fBSDL_AudioSpec\fR\&. \fBstream\fR is a pointer to the audio buffer you want to fill with information and \fBlen\fR is the length of the audio buffer in bytes\&.
+.IP "\fBdesired\fR->\fBuserdata\fR" 10This pointer is passed as the first parameter to the \fBcallback\fP function\&.
+.PP
+\fBSDL_OpenAudio\fP reads these fields from the \fBdesired\fR \fBSDL_AudioSpec\fR structure pass to the function and attempts to find an audio configuration matching your \fBdesired\fR\&. As mentioned above, if the \fBobtained\fR parameter is \fBNULL\fP then SDL with convert from your \fBdesired\fR audio settings to the hardware settings as it plays\&.
+.PP
+If \fBobtained\fR is \fBNULL\fP then the \fBdesired\fR \fBSDL_AudioSpec\fR is your working specification, otherwise the \fBobtained\fR \fBSDL_AudioSpec\fR becomes the working specification and the \fBdesirec\fR specification can be deleted\&. The data in the working specification is used when building \fBSDL_AudioCVT\fR\&'s for converting loaded data to the hardware format\&.
+.PP
+\fBSDL_OpenAudio\fP calculates the \fBsize\fR and \fBsilence\fR fields for both the \fBdesired\fR and \fBobtained\fR specifications\&. The \fBsize\fR field stores the total size of the audio buffer in bytes, while the \fBsilence\fR stores the value used to represent silence in the audio buffer
+.PP
+The audio device starts out playing \fBsilence\fR when it\&'s opened, and should be enabled for playing by calling \fI\fBSDL_PauseAudio\fP(\fB0\fR)\fR when you are ready for your audio \fBcallback\fR function to be called\&. Since the audio driver may modify the requested \fBsize\fR of the audio buffer, you should allocate any local mixing buffers after you open the audio device\&.
+.SH "EXAMPLES"
+.PP
+.nf
+\f(CW/* Prototype of our callback function */
+void my_audio_callback(void *userdata, Uint8 *stream, int len);
+
+/* Open the audio device */
+SDL_AudioSpec *desired, *obtained;
+SDL_AudioSpec *hardware_spec;
+
+/* Allocate a desired SDL_AudioSpec */
+desired=(SDL_AudioSpec *)malloc(sizeof(SDL_AudioSpec));
+
+/* Allocate space for the obtained SDL_AudioSpec */
+obtained=(SDL_AudioSpec *)malloc(sizeof(SDL_AudioSpec));
+
+/* 22050Hz - FM Radio quality */
+desired->freq=22050;
+
+/* 16-bit signed audio */
+desired->format=AUDIO_S16LSB;
+
+/* Mono */
+desired->channels=0;
+
+/* Large audio buffer reduces risk of dropouts but increases response time */
+desired->samples=8192;
+
+/* Our callback function */
+desired->callback=my_audio_callback;
+
+desired->userdata=NULL;
+
+/* Open the audio device */
+if ( SDL_OpenAudio(desired, obtained) < 0 ){
+ fprintf(stderr, "Couldn\&'t open audio: %s
+", SDL_GetError());
+ exit(-1);
+}
+/* desired spec is no longer needed */
+free(desired);
+hardware_spec=obtained;
+\&.
+\&.
+/* Prepare callback for playing */
+\&.
+\&.
+\&.
+/* Start playing */
+SDL_PauseAudio(0);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_AudioSpec\fP\fR, \fI\fBSDL_LockAudio\fP\fR, \fI\fBSDL_UnlockAudio\fP\fR, \fI\fBSDL_PauseAudio\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_Overlay.3 b/distrib/sdl-1.2.15/docs/man3/SDL_Overlay.3
new file mode 100644
index 0000000..a852e91
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_Overlay.3
@@ -0,0 +1,52 @@
+.TH "SDL_Overlay" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_Overlay \- YUV video overlay
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint32 format;
+ int w, h;
+ int planes;
+ Uint16 *pitches;
+ Uint8 **pixels;
+ Uint32 hw_overlay:1;
+} SDL_Overlay;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBformat\fR
+Overlay format (see below)
+.TP 20
+\fBw, h\fR
+Width and height of overlay
+.TP 20
+\fBplanes\fR
+Number of planes in the overlay\&. Usually either 1 or 3
+.TP 20
+\fBpitches\fR
+An array of pitches, one for each plane\&. Pitch is the length of a row in bytes\&.
+.TP 20
+\fBpixels\fR
+An array of pointers to teh data of each plane\&. The overlay should be locked before these pointers are used\&.
+.TP 20
+\fBhw_overlay\fR
+This will be set to 1 if the overlay is hardware accelerated\&.
+.SH "DESCRIPTION"
+.PP
+A \fBSDL_Overlay\fR is similar to a \fI\fBSDL_Surface\fR\fR except it stores a YUV overlay\&. All the fields are read only, except for \fBpixels\fR which should be \fIlocked\fR before use\&. The \fBformat\fR field stores the format of the overlay which is one of the following:
+.PP
+.nf
+\f(CW#define SDL_YV12_OVERLAY 0x32315659 /* Planar mode: Y + V + U */
+#define SDL_IYUV_OVERLAY 0x56555949 /* Planar mode: Y + U + V */
+#define SDL_YUY2_OVERLAY 0x32595559 /* Packed mode: Y0+U0+Y1+V0 */
+#define SDL_UYVY_OVERLAY 0x59565955 /* Packed mode: U0+Y0+V0+Y1 */
+#define SDL_YVYU_OVERLAY 0x55595659 /* Packed mode: Y0+V0+Y1+U0 */\fR
+.fi
+.PP
+ More information on YUV formats can be found at \fIhttp://www\&.webartz\&.com/fourcc/indexyuv\&.htm (link to URL http://www.webartz.com/fourcc/indexyuv.htm) \fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateYUVOverlay\fP\fR, \fI\fBSDL_LockYUVOverlay\fP\fR, \fI\fBSDL_UnlockYUVOverlay\fP\fR, \fI\fBSDL_FreeYUVOverlay\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_Palette.3 b/distrib/sdl-1.2.15/docs/man3/SDL_Palette.3
new file mode 100644
index 0000000..ea5e406
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_Palette.3
@@ -0,0 +1,26 @@
+.TH "SDL_Palette" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_Palette \- Color palette for 8-bit pixel formats
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ int ncolors;
+ SDL_Color *colors;
+} SDL_Palette;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBncolors\fR
+Number of colors used in this palette
+.TP 20
+\fBcolors\fR
+Pointer to \fI\fBSDL_Color\fR\fR structures that make up the palette\&.
+.SH "DESCRIPTION"
+.PP
+Each pixel in an 8-bit surface is an index into the \fBcolors\fR field of the \fBSDL_Palette\fR structure store in \fI\fBSDL_PixelFormat\fR\fR\&. A \fBSDL_Palette\fR should never need to be created manually\&. It is automatically created when SDL allocates a \fBSDL_PixelFormat\fR for a surface\&. The colors values of a \fI\fBSDL_Surface\fR\fRs palette can be set with the \fI\fBSDL_SetColors\fP\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Color\fR\fR, \fI\fBSDL_Surface\fR\fR, \fI\fBSDL_SetColors\fP\fR \fI\fBSDL_SetPalette\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_PauseAudio.3 b/distrib/sdl-1.2.15/docs/man3/SDL_PauseAudio.3
new file mode 100644
index 0000000..1ca979a
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_PauseAudio.3
@@ -0,0 +1,15 @@
+.TH "SDL_PauseAudio" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_PauseAudio \- Pauses and unpauses the audio callback processing
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_PauseAudio\fP\fR(\fBint pause_on\fR);
+.SH "DESCRIPTION"
+.PP
+This function pauses and unpauses the audio callback processing\&. It should be called with \fBpause_on\fR=0 after opening the audio device to start playing sound\&. This is so you can safely initialize data for your callback function after opening the audio device\&. Silence will be written to the audio device during the pause\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GetAudioStatus\fP\fR, \fI\fBSDL_OpenAudio\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_PeepEvents.3 b/distrib/sdl-1.2.15/docs/man3/SDL_PeepEvents.3
new file mode 100644
index 0000000..016542d
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_PeepEvents.3
@@ -0,0 +1,26 @@
+.TH "SDL_PeepEvents" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_PeepEvents \- Checks the event queue for messages and optionally returns them\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_PeepEvents\fP\fR(\fBSDL_Event *events, int numevents, SDL_eventaction action, Uint32 mask\fR);
+.SH "DESCRIPTION"
+.PP
+Checks the event queue for messages and optionally returns them\&.
+.PP
+If \fBaction\fR is \fBSDL_ADDEVENT\fP, up to \fBnumevents\fR events will be added to the back of the event queue\&.
+.PP
+If \fBaction\fR is \fBSDL_PEEKEVENT\fP, up to \fBnumevents\fR events at the front of the event queue, matching \fI\fBmask\fR\fR, will be returned and will not be removed from the queue\&.
+.PP
+If \fBaction\fR is \fBSDL_GETEVENT\fP, up to \fBnumevents\fR events at the front of the event queue, matching \fI\fBmask\fR\fR, will be returned and will be removed from the queue\&.
+.PP
+This function is thread-safe\&.
+.SH "RETURN VALUE"
+.PP
+This function returns the number of events actually stored, or \fB-1\fR if there was an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fI\fBSDL_PollEvent\fP\fR, \fI\fBSDL_PushEvent\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_PixelFormat.3 b/distrib/sdl-1.2.15/docs/man3/SDL_PixelFormat.3
new file mode 100644
index 0000000..f91593e
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_PixelFormat.3
@@ -0,0 +1,140 @@
+.TH "SDL_PixelFormat" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_PixelFormat \- Stores surface format information
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct SDL_PixelFormat {
+ SDL_Palette *palette;
+ Uint8 BitsPerPixel;
+ Uint8 BytesPerPixel;
+ Uint8 Rloss, Gloss, Bloss, Aloss;
+ Uint8 Rshift, Gshift, Bshift, Ashift;
+ Uint32 Rmask, Gmask, Bmask, Amask;
+ Uint32 colorkey;
+ Uint8 alpha;
+} SDL_PixelFormat;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBpalette\fR
+Pointer to the \fIpalette\fR, or \fBNULL\fP if the \fBBitsPerPixel\fR>8
+.TP 20
+\fBBitsPerPixel\fR
+The number of bits used to represent each pixel in a surface\&. Usually 8, 16, 24 or 32\&.
+.TP 20
+\fBBytesPerPixel\fR
+The number of bytes used to represent each pixel in a surface\&. Usually one to four\&.
+.TP 20
+\fB[RGBA]mask\fR
+Binary mask used to retrieve individual color values
+.TP 20
+\fB[RGBA]loss\fR
+Precision loss of each color component (2^[RGBA]loss)
+.TP 20
+\fB[RGBA]shift\fR
+Binary left shift of each color component in the pixel value
+.TP 20
+\fBcolorkey\fR
+Pixel value of transparent pixels
+.TP 20
+\fBalpha\fR
+Overall surface alpha value
+.SH "DESCRIPTION"
+.PP
+A \fBSDL_PixelFormat\fR describes the format of the pixel data stored at the \fBpixels\fR field of a \fI\fBSDL_Surface\fR\fR\&. Every surface stores a \fBSDL_PixelFormat\fR in the \fBformat\fR field\&.
+.PP
+If you wish to do pixel level modifications on a surface, then understanding how SDL stores its color information is essential\&.
+.PP
+8-bit pixel formats are the easiest to understand\&. Since its an 8-bit format, we have 8 \fBBitsPerPixel\fR and 1 \fBBytesPerPixel\fR\&. Since \fBBytesPerPixel\fR is 1, all pixels are represented by a Uint8 which contains an index into \fBpalette\fR->\fBcolors\fR\&. So, to determine the color of a pixel in a 8-bit surface: we read the color index from \fBsurface\fR->\fBpixels\fR and we use that index to read the \fI\fBSDL_Color\fR\fR structure from \fBsurface\fR->\fBformat\fR->\fBpalette\fR->\fBcolors\fR\&. Like so:
+.PP
+.nf
+\f(CWSDL_Surface *surface;
+SDL_PixelFormat *fmt;
+SDL_Color *color;
+Uint8 index;
+
+\&.
+\&.
+
+/* Create surface */
+\&.
+\&.
+fmt=surface->format;
+
+/* Check the bitdepth of the surface */
+if(fmt->BitsPerPixel!=8){
+ fprintf(stderr, "Not an 8-bit surface\&.
+");
+ return(-1);
+}
+
+/* Lock the surface */
+SDL_LockSurface(surface);
+
+/* Get the topleft pixel */
+index=*(Uint8 *)surface->pixels;
+color=fmt->palette->colors[index];
+
+/* Unlock the surface */
+SDL_UnlockSurface(surface);
+printf("Pixel Color-> Red: %d, Green: %d, Blue: %d\&. Index: %d
+",
+ color->r, color->g, color->b, index);
+\&.
+\&.\fR
+.fi
+.PP
+.PP
+Pixel formats above 8-bit are an entirely different experience\&. They are considered to be "TrueColor" formats and the color information is stored in the pixels themselves, not in a palette\&. The mask, shift and loss fields tell us how the color information is encoded\&. The mask fields allow us to isolate each color component, the shift fields tell us the number of bits to the right of each component in the pixel value and the loss fields tell us the number of bits lost from each component when packing 8-bit color component in a pixel\&.
+.PP
+.nf
+\f(CW/* Extracting color components from a 32-bit color value */
+SDL_PixelFormat *fmt;
+SDL_Surface *surface;
+Uint32 temp, pixel;
+Uint8 red, green, blue, alpha;
+\&.
+\&.
+\&.
+fmt=surface->format;
+SDL_LockSurface(surface);
+pixel=*((Uint32*)surface->pixels);
+SDL_UnlockSurface(surface);
+
+/* Get Red component */
+temp=pixel&fmt->Rmask; /* Isolate red component */
+temp=temp>>fmt->Rshift;/* Shift it down to 8-bit */
+temp=temp<<fmt->Rloss; /* Expand to a full 8-bit number */
+red=(Uint8)temp;
+
+/* Get Green component */
+temp=pixel&fmt->Gmask; /* Isolate green component */
+temp=temp>>fmt->Gshift;/* Shift it down to 8-bit */
+temp=temp<<fmt->Gloss; /* Expand to a full 8-bit number */
+green=(Uint8)temp;
+
+/* Get Blue component */
+temp=pixel&fmt->Bmask; /* Isolate blue component */
+temp=temp>>fmt->Bshift;/* Shift it down to 8-bit */
+temp=temp<<fmt->Bloss; /* Expand to a full 8-bit number */
+blue=(Uint8)temp;
+
+/* Get Alpha component */
+temp=pixel&fmt->Amask; /* Isolate alpha component */
+temp=temp>>fmt->Ashift;/* Shift it down to 8-bit */
+temp=temp<<fmt->Aloss; /* Expand to a full 8-bit number */
+alpha=(Uint8)temp;
+
+printf("Pixel Color -> R: %d, G: %d, B: %d, A: %d
+", red, green, blue, alpha);
+\&.
+\&.
+\&.\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Surface\fR\fR, \fI\fBSDL_MapRGB\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_PollEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_PollEvent.3
new file mode 100644
index 0000000..6197f7e
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_PollEvent.3
@@ -0,0 +1,44 @@
+.TH "SDL_PollEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_PollEvent \- Polls for currently pending events\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_PollEvent\fP\fR(\fBSDL_Event *event\fR);
+.SH "DESCRIPTION"
+.PP
+Polls for currently pending events, and returns \fB1\fR if there are any pending events, or \fB0\fR if there are none available\&.
+.PP
+If \fBevent\fR is not \fBNULL\fP, the next event is removed from the queue and stored in that area\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWSDL_Event event; /* Event structure */
+
+\&.
+\&.
+\&.
+/* Check for events */
+while(SDL_PollEvent(&event)){ /* Loop until there are no events left on the queue */
+ switch(event\&.type){ /* Process the appropiate event type */
+ case SDL_KEYDOWN: /* Handle a KEYDOWN event */
+ printf("Oh! Key press
+");
+ break;
+ case SDL_MOUSEMOTION:
+ \&.
+ \&.
+ \&.
+ default: /* Report an unhandled event */
+ printf("I don\&'t know what this event is!
+");
+ }
+}\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fI\fBSDL_WaitEvent\fP\fR, \fI\fBSDL_PeepEvents\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_PumpEvents.3 b/distrib/sdl-1.2.15/docs/man3/SDL_PumpEvents.3
new file mode 100644
index 0000000..62cc13d
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_PumpEvents.3
@@ -0,0 +1,23 @@
+.TH "SDL_PumpEvents" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_PumpEvents \- Pumps the event loop, gathering events from the input devices\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_PumpEvents\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+Pumps the event loop, gathering events from the input devices\&.
+.PP
+\fBSDL_PumpEvents\fP gathers all the pending input information from devices and places it on the event queue\&. Without calls to \fBSDL_PumpEvents\fP no events would ever be placed on the queue\&. Often calls the need for \fBSDL_PumpEvents\fP is hidden from the user since \fI\fBSDL_PollEvent\fP\fR and \fI\fBSDL_WaitEvent\fP\fR implicitly call \fBSDL_PumpEvents\fP\&. However, if you are not polling or waiting for events (e\&.g\&. your filtering them), then you must call \fBSDL_PumpEvents\fP to force an event queue update\&.
+.PP
+.RS
+\fBNote:
+.PP
+You can only call this function in the thread that set the video mode\&.
+.RE
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_PollEvent\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_PushEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_PushEvent.3
new file mode 100644
index 0000000..4be188f
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_PushEvent.3
@@ -0,0 +1,27 @@
+.TH "SDL_PushEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_PushEvent \- Pushes an event onto the event queue
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_PushEvent\fP\fR(\fBSDL_Event *event\fR);
+.SH "DESCRIPTION"
+.PP
+The event queue can actually be used as a two way communication channel\&. Not only can events be read from the queue, but the user can also push their own events onto it\&. \fBevent\fR is a pointer to the event structure you wish to push onto the queue\&.
+.PP
+.RS
+\fBNote:
+.PP
+Pushing device input events onto the queue doesn\&'t modify the state of the device within SDL\&.
+.RE
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR on success or \fB-1\fR if the event couldn\&'t be pushed\&.
+.SH "EXAMPLES"
+.PP
+See \fI\fBSDL_Event\fR\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_PollEvent\fP\fR, \fI\fBSDL_PeepEvents\fP\fR, \fI\fBSDL_Event\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_Quit.3 b/distrib/sdl-1.2.15/docs/man3/SDL_Quit.3
new file mode 100644
index 0000000..42fe8c1
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_Quit.3
@@ -0,0 +1,29 @@
+.TH "SDL_Quit" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_Quit \- Shut down SDL
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_Quit\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_Quit\fP shuts down all SDL subsystems and frees the resources allocated to them\&. This should always be called before you exit\&. For the sake of simplicity you can set \fBSDL_Quit\fP as your \fBatexit\fP call, like:
+.PP
+.nf
+\f(CWSDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO);
+atexit(SDL_Quit);
+\&.
+\&.\fR
+.fi
+.PP
+.PP
+.RS
+\fBNote:
+.PP
+While using \fBatexit\fP maybe be fine for small programs, more advanced users should shut down SDL in their own cleanup code\&. Plus, using \fBatexit\fP in a library is a sure way to crash dynamically loaded code
+.RE
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_QuitSubsystem\fP\fR, \fI\fBSDL_Init\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_QuitEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_QuitEvent.3
new file mode 100644
index 0000000..c357e2a
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_QuitEvent.3
@@ -0,0 +1,30 @@
+.TH "SDL_QuitEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_QuitEvent \- Quit requested event
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 type
+} SDL_QuitEvent;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBtype\fR
+\fBSDL_QUIT\fP
+.SH "DESCRIPTION"
+.PP
+\fBSDL_QuitEvent\fR is a member of the \fI\fBSDL_Event\fR\fR union and is used whan an event of type \fBSDL_QUIT\fP is reported\&.
+.PP
+As can be seen, the SDL_QuitEvent structure serves no useful purpose\&. The event itself, on the other hand, is very important\&. If you filter out or ignore a quit event then it is impossible for the user to close the window\&. On the other hand, if you do accept a quit event then the application window will be closed, and screen updates will still report success event though the application will no longer be visible\&.
+.PP
+.RS
+\fBNote:
+.PP
+The macro \fBSDL_QuitRequested\fP will return non-zero if a quit event is pending
+.RE
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fI\fBSDL_SetEventFilter\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_QuitSubSystem.3 b/distrib/sdl-1.2.15/docs/man3/SDL_QuitSubSystem.3
new file mode 100644
index 0000000..79e3ca5
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_QuitSubSystem.3
@@ -0,0 +1,15 @@
+.TH "SDL_QuitSubSystem" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_QuitSubSystem \- Shut down a subsystem
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_QuitSubSystem\fP\fR(\fBUint32 flags\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_QuitSubSystem\fP allows you to shut down a subsystem that has been previously initialized by \fI\fBSDL_Init\fP\fR or \fI\fBSDL_InitSubSystem\fP\fR\&. The \fBflags\fR tells \fBSDL_QuitSubSystem\fP which subsystems to shut down, it uses the same values that are passed to \fI\fBSDL_Init\fP\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Quit\fP\fR, \fI\fBSDL_Init\fP\fR, \fI\fBSDL_InitSubSystem\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_RWFromFile.3 b/distrib/sdl-1.2.15/docs/man3/SDL_RWFromFile.3
new file mode 100644
index 0000000..9ea68b9
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_RWFromFile.3
@@ -0,0 +1,18 @@
+.TH "SDL_FunctionName" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_FunctionName \- Short description of function
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBreturn type\fBSDL_FunctionName\fP\fR(\fBparameter\fR);
+.SH "DESCRIPTION"
+.PP
+Full description
+.SH "EXAMPLES"
+.PP
+examples here
+.SH "SEE ALSO"
+.PP
+\fISDL_AnotherFunction\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_Rect.3 b/distrib/sdl-1.2.15/docs/man3/SDL_Rect.3
new file mode 100644
index 0000000..8db224d
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_Rect.3
@@ -0,0 +1,26 @@
+.TH "SDL_Rect" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_Rect \- Defines a rectangular area
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Sint16 x, y;
+ Uint16 w, h;
+} SDL_Rect;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBx, y\fR
+Position of the upper-left corner of the rectangle
+.TP 20
+\fBw, h\fR
+The width and height of the rectangle
+.SH "DESCRIPTION"
+.PP
+A \fBSDL_Rect\fR defines a rectangular area of pixels\&. It is used by \fI\fBSDL_BlitSurface\fP\fR to define blitting regions and by several other video functions\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_BlitSurface\fP\fR, \fI\fBSDL_UpdateRect\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_RemoveTimer.3 b/distrib/sdl-1.2.15/docs/man3/SDL_RemoveTimer.3
new file mode 100644
index 0000000..1203c6f
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_RemoveTimer.3
@@ -0,0 +1,25 @@
+.TH "SDL_RemoveTimer" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_RemoveTimer \- Remove a timer which was added with \fISDL_AddTimer\fR\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_bool \fBSDL_RemoveTimer\fP\fR(\fBSDL_TimerID id\fR);
+.SH "DESCRIPTION"
+.PP
+Removes a timer callback previously added with \fISDL_AddTimer\fR\&.
+.SH "RETURN VALUE"
+.PP
+Returns a boolean value indicating success\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWSDL_RemoveTimer(my_timer_id);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_AddTimer\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_ResizeEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_ResizeEvent.3
new file mode 100644
index 0000000..7b0a5e2
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_ResizeEvent.3
@@ -0,0 +1,28 @@
+.TH "SDL_ResizeEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_ResizeEvent \- Window resize event structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 type;
+ int w, h;
+} SDL_ResizeEvent;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBtype\fR
+\fBSDL_VIDEORESIZE\fP
+.TP 20
+\fBw\fR, \fBh\fR
+New width and height of the window
+.SH "DESCRIPTION"
+.PP
+\fBSDL_ResizeEvent\fR is a member of the \fI\fBSDL_Event\fR\fR union and is used when an event of type \fBSDL_VIDEORESIZE\fP is reported\&.
+.PP
+When \fBSDL_RESIZABLE\fP is passed as a \fBflag\fR to \fI\fBSDL_SetVideoMode\fP\fR the user is allowed to resize the applications window\&. When the window is resized an \fBSDL_VIDEORESIZE\fP is report, with the new window width and height values stored in \fBw\fR and \fBh\fR, respectively\&. When an \fBSDL_VIDEORESIZE\fP is received the window should be resized to the new dimensions using \fI\fBSDL_SetVideoMode\fP\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fI\fBSDL_SetVideoMode\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SaveBMP.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SaveBMP.3
new file mode 100644
index 0000000..61e00dd
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SaveBMP.3
@@ -0,0 +1,18 @@
+.TH "SDL_SaveBMP" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SaveBMP \- Save an SDL_Surface as a Windows BMP file\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_SaveBMP\fP\fR(\fBSDL_Surface *surface, const char *file\fR);
+.SH "DESCRIPTION"
+.PP
+Saves the \fBSDL_Surface\fR \fBsurface\fR as a Windows BMP file named \fBfile\fR\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR if successful or \fB-1\fR if there was an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_LoadBMP\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SemPost.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SemPost.3
new file mode 100644
index 0000000..5487d2d
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SemPost.3
@@ -0,0 +1,28 @@
+.TH "SDL_SemPost" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SemPost \- Unlock a semaphore\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBint \fBSDL_SemPost\fP\fR(\fBSDL_sem *sem\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_SemPost\fP unlocks the semaphore pointed to by \fBsem\fR and atomically increments the semaphores value\&. Threads that were blocking on the semaphore may be scheduled after this call succeeds\&.
+.PP
+\fBSDL_SemPost\fP should be called after a semaphore is locked by a successful call to \fISDL_SemWait\fR, \fISDL_SemTryWait\fR or \fISDL_SemWaitTimeout\fR\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR if successful or \fB-1\fR if there was an error (leaving the semaphore unchanged)\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWSDL_SemPost(my_sem);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateSemaphore\fP\fR, \fI\fBSDL_DestroySemaphore\fP\fR, \fI\fBSDL_SemWait\fP\fR, \fI\fBSDL_SemTryWait\fP\fR, \fI\fBSDL_SemWaitTimeout\fP\fR, \fI\fBSDL_SemValue\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SemTryWait.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SemTryWait.3
new file mode 100644
index 0000000..aee9aff
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SemTryWait.3
@@ -0,0 +1,41 @@
+.TH "SDL_SemTryWait" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SemTryWait \- Attempt to lock a semaphore but don\&'t suspend the thread\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBint \fBSDL_SemTryWait\fP\fR(\fBSDL_sem *sem\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_SemTryWait\fP is a non-blocking varient of \fI\fBSDL_SemWait\fP\fR\&. If the value of the semaphore pointed to by \fBsem\fR is positive it will atomically decrement the semaphore value and return 0, otherwise it will return \fBSDL_MUTEX_TIMEOUT\fR instead of suspending the thread\&.
+.PP
+After \fBSDL_SemTryWait\fP is successful, the semaphore can be released and its count atomically incremented by a successful call to \fISDL_SemPost\fR\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR if the semaphore was successfully locked or either \fBSDL_MUTEX_TIMEOUT\fR or \fB-1\fR if the thread would have suspended or there was an error, respectivly\&.
+.PP
+If the semaphore was not successfully locked, the semaphore will be unchanged\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWres = SDL_SemTryWait(my_sem);
+
+if (res == SDL_MUTEX_TIMEOUT) {
+ return TRY_AGAIN;
+}
+if (res == -1) {
+ return WAIT_ERROR;
+}
+
+\&.\&.\&.
+
+SDL_SemPost(my_sem);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateSemaphore\fP\fR, \fI\fBSDL_DestroySemaphore\fP\fR, \fI\fBSDL_SemWait\fP\fR, \fI\fBSDL_SemWaitTimeout\fP\fR, \fI\fBSDL_SemPost\fP\fR, \fI\fBSDL_SemValue\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SemValue.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SemValue.3
new file mode 100644
index 0000000..0703143
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SemValue.3
@@ -0,0 +1,26 @@
+.TH "SDL_SemValue" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SemValue \- Return the current value of a semaphore\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL/SDL_thread\&.h"
+.sp
+\fBUint32 \fBSDL_SemValue\fP\fR(\fBSDL_sem *sem\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_SemValue()\fP returns the current semaphore value from the semaphore pointed to by \fBsem\fR\&.
+.SH "RETURN VALUE"
+.PP
+Returns current value of the semaphore\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CW sem_value = SDL_SemValue(my_sem);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateSemaphore\fP\fR, \fI\fBSDL_DestroySemaphore\fP\fR, \fI\fBSDL_SemWait\fP\fR, \fI\fBSDL_SemTryWait\fP\fR, \fI\fBSDL_SemWaitTimeout\fP\fR, \fI\fBSDL_SemPost\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SemWait.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SemWait.3
new file mode 100644
index 0000000..b7bba3f
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SemWait.3
@@ -0,0 +1,34 @@
+.TH "SDL_SemWait" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SemWait \- Lock a semaphore and suspend the thread if the semaphore value is zero\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBint \fBSDL_SemWait\fP\fR(\fBSDL_sem *sem\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_SemWait()\fP suspends the calling thread until either the semaphore pointed to by \fBsem\fR has a positive value, the call is interrupted by a signal or error\&. If the call is successful it will atomically decrement the semaphore value\&.
+.PP
+After \fBSDL_SemWait()\fP is successful, the semaphore can be released and its count atomically incremented by a successful call to \fISDL_SemPost\fR\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR if successful or \fB-1\fR if there was an error (leaving the semaphore unchanged)\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWif (SDL_SemWait(my_sem) == -1) {
+ return WAIT_FAILED;
+}
+
+\&.\&.\&.
+
+SDL_SemPost(my_sem);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateSemaphore\fP\fR, \fI\fBSDL_DestroySemaphore\fP\fR, \fI\fBSDL_SemTryWait\fP\fR, \fI\fBSDL_SemWaitTimeout\fP\fR, \fI\fBSDL_SemPost\fP\fR, \fI\fBSDL_SemValue\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SemWaitTimeout.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SemWaitTimeout.3
new file mode 100644
index 0000000..8afd1cb
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SemWaitTimeout.3
@@ -0,0 +1,41 @@
+.TH "SDL_SemWaitTimeout" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SemWaitTimeout \- Lock a semaphore, but only wait up to a specified maximum time\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBint \fBSDL_SemWaitTimeout\fP\fR(\fBSDL_sem *sem, Uint32 timeout\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_SemWaitTimeout()\fP is a varient of \fISDL_SemWait\fR with a maximum timeout value\&. If the value of the semaphore pointed to by \fBsem\fR is positive (greater than zero) it will atomically decrement the semaphore value and return 0, otherwise it will wait up to \fBtimeout\fR milliseconds trying to lock the semaphore\&. This function is to be avoided if possible since on some platforms it is implemented by polling the semaphore every millisecond in a busy loop\&.
+.PP
+After \fBSDL_SemWaitTimeout()\fP is successful, the semaphore can be released and its count atomically incremented by a successful call to \fISDL_SemPost\fR\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR if the semaphore was successfully locked or either \fBSDL_MUTEX_TIMEOUT\fR or \fB-1\fR if the timeout period was exceeded or there was an error, respectivly\&.
+.PP
+If the semaphore was not successfully locked, the semaphore will be unchanged\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWres = SDL_SemWaitTimeout(my_sem, WAIT_TIMEOUT_MILLISEC);
+
+if (res == SDL_MUTEX_TIMEOUT) {
+ return TRY_AGAIN;
+}
+if (res == -1) {
+ return WAIT_ERROR;
+}
+
+\&.\&.\&.
+
+SDL_SemPost(my_sem);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateSemaphore\fP\fR, \fI\fBSDL_DestroySemaphore\fP\fR, \fI\fBSDL_SemWait\fP\fR, \fI\fBSDL_SemTryWait\fP\fR, \fI\fBSDL_SemPost\fP\fR, \fI\fBSDL_SemValue\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SetAlpha.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SetAlpha.3
new file mode 100644
index 0000000..282ecde
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SetAlpha.3
@@ -0,0 +1,66 @@
+.TH "SDL_SetAlpha" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SetAlpha \- Adjust the alpha properties of a surface
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_SetAlpha\fP\fR(\fBSDL_Surface *surface, Uint32 flag, Uint8 alpha\fR);
+.SH "DESCRIPTION"
+.PP
+.RS
+\fBNote:
+.PP
+This function and the semantics of SDL alpha blending have changed since version 1\&.1\&.4\&. Up until version 1\&.1\&.5, an alpha value of 0 was considered opaque and a value of 255 was considered transparent\&. This has now been inverted: 0 (\fBSDL_ALPHA_TRANSPARENT\fP) is now considered transparent and 255 (\fBSDL_ALPHA_OPAQUE\fP) is now considered opaque\&.
+.RE
+.PP
+\fBSDL_SetAlpha\fP is used for setting the per-surface alpha value and/or enabling and disabling alpha blending\&.
+.PP
+The\fBsurface\fR parameter specifies which surface whose alpha attributes you wish to adjust\&. \fBflags\fR is used to specify whether alpha blending should be used (\fBSDL_SRCALPHA\fP) and whether the surface should use RLE acceleration for blitting (\fBSDL_RLEACCEL\fP)\&. \fBflags\fR can be an OR\&'d combination of these two options, one of these options or 0\&. If \fBSDL_SRCALPHA\fP is not passed as a flag then all alpha information is ignored when blitting the surface\&. The \fBalpha\fR parameter is the per-surface alpha value; a surface need not have an alpha channel to use per-surface alpha and blitting can still be accelerated with \fBSDL_RLEACCEL\fP\&.
+.PP
+.RS
+\fBNote:
+.PP
+The per-surface alpha value of 128 is considered a special case and is optimised, so it\&'s much faster than other per-surface values\&.
+.RE
+.PP
+Alpha effects surface blitting in the following ways:
+.TP 20
+RGBA->RGB with \fBSDL_SRCALPHA\fP
+The source is alpha-blended with the destination, using the alpha channel\&. \fBSDL_SRCCOLORKEY\fP and the per-surface alpha are ignored\&.
+.TP 20
+RGBA->RGB without \fBSDL_SRCALPHA\fP
+The RGB data is copied from the source\&. The source alpha channel and the per-surface alpha value are ignored\&.
+.TP 20
+RGB->RGBA with \fBSDL_SRCALPHA\fP
+The source is alpha-blended with the destination using the per-surface alpha value\&. If \fBSDL_SRCCOLORKEY\fP is set, only the pixels not matching the colorkey value are copied\&. The alpha channel of the copied pixels is set to opaque\&.
+.TP 20
+RGB->RGBA without \fBSDL_SRCALPHA\fP
+The RGB data is copied from the source and the alpha value of the copied pixels is set to opaque\&. If \fBSDL_SRCCOLORKEY\fP is set, only the pixels not matching the colorkey value are copied\&.
+.TP 20
+RGBA->RGBA with \fBSDL_SRCALPHA\fP
+The source is alpha-blended with the destination using the source alpha channel\&. The alpha channel in the destination surface is left untouched\&. \fBSDL_SRCCOLORKEY\fP is ignored\&.
+.TP 20
+RGBA->RGBA without \fBSDL_SRCALPHA\fP
+The RGBA data is copied to the destination surface\&. If \fBSDL_SRCCOLORKEY\fP is set, only the pixels not matching the colorkey value are copied\&.
+.TP 20
+RGB->RGB with \fBSDL_SRCALPHA\fP
+The source is alpha-blended with the destination using the per-surface alpha value\&. If \fBSDL_SRCCOLORKEY\fP is set, only the pixels not matching the colorkey value are copied\&.
+.TP 20
+RGB->RGB without \fBSDL_SRCALPHA\fP
+The RGB data is copied from the source\&. If \fBSDL_SRCCOLORKEY\fP is set, only the pixels not matching the colorkey value are copied\&.
+.PP
+.RS
+\fBNote:
+.PP
+ Note that RGBA->RGBA blits (with SDL_SRCALPHA set) keep the alpha of the destination surface\&. This means that you cannot compose two arbitrary RGBA surfaces this way and get the result you would expect from "overlaying" them; the destination alpha will work as a mask\&.
+.PP
+Also note that per-pixel and per-surface alpha cannot be combined; the per-pixel alpha is always used if available
+.RE
+.SH "RETURN VALUE"
+.PP
+This function returns \fB0\fR, or \fB-1\fR if there was an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_MapRGBA\fP\fR, \fI\fBSDL_GetRGBA\fP\fR, \fI\fBSDL_DisplayFormatAlpha\fP\fR, \fI\fBSDL_BlitSurface\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SetClipRect.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SetClipRect.3
new file mode 100644
index 0000000..a1bde08
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SetClipRect.3
@@ -0,0 +1,19 @@
+.TH "SDL_SetClipRect" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SetClipRect \- Sets the clipping rectangle for a surface\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_SetClipRect\fP\fR(\fBSDL_Surface *surface, SDL_Rect *rect\fR);
+.SH "DESCRIPTION"
+.PP
+Sets the clipping rectangle for a surface\&. When this surface is the destination of a blit, only the area within the clip rectangle will be drawn into\&.
+.PP
+The rectangle pointed to by \fBrect\fR will be clipped to the edges of the surface so that the clip rectangle for a surface can never fall outside the edges of the surface\&.
+.PP
+If \fBrect\fR is \fBNULL\fP the clipping rectangle will be set to the full size of the surface\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GetClipRect\fP\fR, \fI\fBSDL_BlitSurface\fP\fR, \fI\fBSDL_Surface\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SetColorKey.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SetColorKey.3
new file mode 100644
index 0000000..36f8893
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SetColorKey.3
@@ -0,0 +1,26 @@
+.TH "SDL_SetColorKey" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SetColorKey \- Sets the color key (transparent pixel) in a blittable surface and RLE acceleration\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_SetColorKey\fP\fR(\fBSDL_Surface *surface, Uint32 flag, Uint32 key\fR);
+.SH "DESCRIPTION"
+.PP
+ Sets the color key (transparent pixel) in a blittable surface and enables or disables RLE blit acceleration\&.
+.PP
+RLE acceleration can substantially speed up blitting of images with large horizontal runs of transparent pixels (i\&.e\&., pixels that match the \fBkey\fR value)\&. The \fBkey\fR must be of the same pixel format as the \fBsurface\fR, \fI\fBSDL_MapRGB\fP\fR is often useful for obtaining an acceptable value\&.
+.PP
+If \fBflag\fR is \fBSDL_SRCCOLORKEY\fP then \fBkey\fR is the transparent pixel value in the source image of a blit\&.
+.PP
+If \fBflag\fR is OR\&'d with \fBSDL_RLEACCEL\fP then the surface will be draw using RLE acceleration when drawn with \fISDL_BlitSurface\fR\&. The surface will actually be encoded for RLE acceleration the first time \fISDL_BlitSurface\fR or \fISDL_DisplayFormat\fR is called on the surface\&.
+.PP
+If \fBflag\fR is 0, this function clears any current color key\&.
+.SH "RETURN VALUE"
+.PP
+This function returns \fB0\fR, or \fB-1\fR if there was an error\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_BlitSurface\fP\fR, \fI\fBSDL_DisplayFormat\fP\fR, \fI\fBSDL_MapRGB\fP\fR, \fI\fBSDL_SetAlpha\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SetColors.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SetColors.3
new file mode 100644
index 0000000..7137a6c
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SetColors.3
@@ -0,0 +1,57 @@
+.TH "SDL_SetColors" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SetColors \- Sets a portion of the colormap for the given 8-bit surface\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_SetColors\fP\fR(\fBSDL_Surface *surface, SDL_Color *colors, int firstcolor, int ncolors\fR);
+.SH "DESCRIPTION"
+.PP
+Sets a portion of the colormap for the given 8-bit surface\&.
+.PP
+When \fBsurface\fR is the surface associated with the current display, the display colormap will be updated with the requested colors\&. If \fBSDL_HWPALETTE\fP was set in \fISDL_SetVideoMode\fR flags, \fBSDL_SetColors\fP will always return \fB1\fR, and the palette is guaranteed to be set the way you desire, even if the window colormap has to be warped or run under emulation\&.
+.PP
+The color components of a \fI\fBSDL_Color\fR\fR structure are 8-bits in size, giving you a total of 256^3 =16777216 colors\&.
+.PP
+Palettized (8-bit) screen surfaces with the \fBSDL_HWPALETTE\fP flag have two palettes, a logical palette that is used for mapping blits to/from the surface and a physical palette (that determines how the hardware will map the colors to the display)\&. \fBSDL_SetColors\fP modifies both palettes (if present), and is equivalent to calling \fISDL_SetPalette\fR with the \fBflags\fR set to \fB(SDL_LOGPAL | SDL_PHYSPAL)\fP\&.
+.SH "RETURN VALUE"
+.PP
+If \fBsurface\fR is not a palettized surface, this function does nothing, returning \fB0\fR\&. If all of the colors were set as passed to \fBSDL_SetColors\fP, it will return \fB1\fR\&. If not all the color entries were set exactly as given, it will return \fB0\fR, and you should look at the surface palette to determine the actual color palette\&.
+.SH "EXAMPLE"
+.PP
+.nf
+\f(CW/* Create a display surface with a grayscale palette */
+SDL_Surface *screen;
+SDL_Color colors[256];
+int i;
+\&.
+\&.
+\&.
+/* Fill colors with color information */
+for(i=0;i<256;i++){
+ colors[i]\&.r=i;
+ colors[i]\&.g=i;
+ colors[i]\&.b=i;
+}
+
+/* Create display */
+screen=SDL_SetVideoMode(640, 480, 8, SDL_HWPALETTE);
+if(!screen){
+ printf("Couldn\&'t set video mode: %s
+", SDL_GetError());
+ exit(-1);
+}
+
+/* Set palette */
+SDL_SetColors(screen, colors, 0, 256);
+\&.
+\&.
+\&.
+\&.\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Color\fR\fR \fI\fBSDL_Surface\fR\fR, \fI\fBSDL_SetPalette\fP\fR, \fI\fBSDL_SetVideoMode\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SetCursor.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SetCursor.3
new file mode 100644
index 0000000..78c4cf9
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SetCursor.3
@@ -0,0 +1,15 @@
+.TH "SDL_SetCursor" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SetCursor \- Set the currently active mouse cursor\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_SetCursor\fP\fR(\fBSDL_Cursor *cursor\fR);
+.SH "DESCRIPTION"
+.PP
+Sets the currently active cursor to the specified one\&. If the cursor is currently visible, the change will be immediately represented on the display\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GetCursor\fP\fR, \fI\fBSDL_CreateCursor\fP\fR, \fI\fBSDL_ShowCursor\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SetEventFilter.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SetEventFilter.3
new file mode 100644
index 0000000..8d3ed03
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SetEventFilter.3
@@ -0,0 +1,35 @@
+.TH "SDL_SetEventFilter" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SetEventFilter \- Sets up a filter to process all events before they are posted to the event queue\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_SetEventFilter\fP\fR(\fBSDL_EventFilter filter\fR);
+.SH "DESCRIPTION"
+.PP
+This function sets up a filter to process all events before they are posted to the event queue\&. This is a very powerful and flexible feature\&. The filter is prototyped as:
+.PP
+.nf
+\f(CWtypedef int (*SDL_EventFilter)(const SDL_Event *event);\fR
+.fi
+.PP
+ If the filter returns \fB1\fR, then the event will be added to the internal queue\&. If it returns \fB0\fR, then the event will be dropped from the queue\&. This allows selective filtering of dynamically\&.
+.PP
+There is one caveat when dealing with the \fBSDL_QUITEVENT\fP event type\&. The event filter is only called when the window manager desires to close the application window\&. If the event filter returns 1, then the window will be closed, otherwise the window will remain open if possible\&. If the quit event is generated by an interrupt signal, it will bypass the internal queue and be delivered to the application at the next event poll\&.
+.PP
+.RS
+\fBNote:
+.PP
+Events pushed onto the queue with \fI\fBSDL_PushEvent\fP\fR or \fI\fBSDL_PeepEvents\fP\fR do not get passed through the event filter\&.
+.RE
+.PP
+.RS
+\fBNote:
+.PP
+\fIBe Careful!\fP The event filter function may run in a different thread so be careful what you do within it\&.
+.RE
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fI\fBSDL_GetEventFilter\fP\fR, \fI\fBSDL_PushEvent\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SetGamma.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SetGamma.3
new file mode 100644
index 0000000..4897272
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SetGamma.3
@@ -0,0 +1,22 @@
+.TH "SDL_SetGamma" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SetGamma \- Sets the color gamma function for the display
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_SetGamma\fP\fR(\fBfloat redgamma, float greengamma, float bluegamma\fR);
+.SH "DESCRIPTION"
+.PP
+Sets the "gamma function" for the display of each color component\&. Gamma controls the brightness/contrast of colors displayed on the screen\&. A gamma value of 1\&.0 is identity (i\&.e\&., no adjustment is made)\&.
+.PP
+This function adjusts the gamma based on the "gamma function" parameter, you can directly specify lookup tables for gamma adjustment with \fISDL_SetGammaRamp\fR\&.
+.PP
+Not all display hardware is able to change gamma\&.
+.SH "RETURN VALUE"
+.PP
+Returns -1 on error (or if gamma adjustment is not supported)\&.
+.SH "SEE ALSO"
+.PP
+\fISDL_GetGammaRamp\fR \fISDL_SetGammaRamp\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SetGammaRamp.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SetGammaRamp.3
new file mode 100644
index 0000000..52bf9f5
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SetGammaRamp.3
@@ -0,0 +1,22 @@
+.TH "SDL_SetGammaRamp" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SetGammaRamp \- Sets the color gamma lookup tables for the display
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_SetGammaRamp\fP\fR(\fBUint16 *redtable, Uint16 *greentable, Uint16 *bluetable\fR);
+.SH "DESCRIPTION"
+.PP
+Sets the gamma lookup tables for the display for each color component\&. Each table is an array of 256 Uint16 values, representing a mapping between the input and output for that channel\&. The input is the index into the array, and the output is the 16-bit gamma value at that index, scaled to the output color precision\&. You may pass NULL to any of the channels to leave them unchanged\&.
+.PP
+This function adjusts the gamma based on lookup tables, you can also have the gamma calculated based on a "gamma function" parameter with \fISDL_SetGamma\fR\&.
+.PP
+Not all display hardware is able to change gamma\&.
+.SH "RETURN VALUE"
+.PP
+Returns -1 on error (or if gamma adjustment is not supported)\&.
+.SH "SEE ALSO"
+.PP
+\fISDL_SetGamma\fR \fISDL_GetGammaRamp\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SetModState.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SetModState.3
new file mode 100644
index 0000000..f356ca1
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SetModState.3
@@ -0,0 +1,35 @@
+.TH "SDL_SetModState" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SetModState \- Set the current key modifier state
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_SetModState\fP\fR(\fBSDLMod modstate\fR);
+.SH "DESCRIPTION"
+.PP
+The inverse of \fI\fBSDL_GetModState\fP\fR, \fBSDL_SetModState\fP allows you to impose modifier key states on your application\&.
+.PP
+Simply pass your desired modifier states into \fBmodstate\fR\&. This value my be a logical OR\&'d combination of the following:
+.PP
+.nf
+\f(CWtypedef enum {
+ KMOD_NONE = 0x0000,
+ KMOD_LSHIFT= 0x0001,
+ KMOD_RSHIFT= 0x0002,
+ KMOD_LCTRL = 0x0040,
+ KMOD_RCTRL = 0x0080,
+ KMOD_LALT = 0x0100,
+ KMOD_RALT = 0x0200,
+ KMOD_LMETA = 0x0400,
+ KMOD_RMETA = 0x0800,
+ KMOD_NUM = 0x1000,
+ KMOD_CAPS = 0x2000,
+ KMOD_MODE = 0x4000,
+} SDLMod;\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_GetModState\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SetPalette.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SetPalette.3
new file mode 100644
index 0000000..a2ca3f6
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SetPalette.3
@@ -0,0 +1,59 @@
+.TH "SDL_SetPalette" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SetPalette \- Sets the colors in the palette of an 8-bit surface\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_SetPalette\fP\fR(\fBSDL_Surface *surface, int flags, SDL_Color *colors, int firstcolor, int ncolors\fR);
+.SH "DESCRIPTION"
+.PP
+Sets a portion of the palette for the given 8-bit surface\&.
+.PP
+Palettized (8-bit) screen surfaces with the \fBSDL_HWPALETTE\fP flag have two palettes, a logical palette that is used for mapping blits to/from the surface and a physical palette (that determines how the hardware will map the colors to the display)\&. \fISDL_BlitSurface\fR always uses the logical palette when blitting surfaces (if it has to convert between surface pixel formats)\&. Because of this, it is often useful to modify only one or the other palette to achieve various special color effects (e\&.g\&., screen fading, color flashes, screen dimming)\&.
+.PP
+This function can modify either the logical or physical palette by specifing \fBSDL_LOGPAL\fP or \fBSDL_PHYSPAL\fPthe in the \fBflags\fR parameter\&.
+.PP
+When \fBsurface\fR is the surface associated with the current display, the display colormap will be updated with the requested colors\&. If \fBSDL_HWPALETTE\fP was set in \fISDL_SetVideoMode\fR flags, \fBSDL_SetPalette\fP will always return \fB1\fR, and the palette is guaranteed to be set the way you desire, even if the window colormap has to be warped or run under emulation\&.
+.PP
+The color components of a \fI\fBSDL_Color\fR\fR structure are 8-bits in size, giving you a total of 256^3=16777216 colors\&.
+.SH "RETURN VALUE"
+.PP
+If \fBsurface\fR is not a palettized surface, this function does nothing, returning \fB0\fR\&. If all of the colors were set as passed to \fBSDL_SetPalette\fP, it will return \fB1\fR\&. If not all the color entries were set exactly as given, it will return \fB0\fR, and you should look at the surface palette to determine the actual color palette\&.
+.SH "EXAMPLE"
+.PP
+.nf
+\f(CW /* Create a display surface with a grayscale palette */
+ SDL_Surface *screen;
+ SDL_Color colors[256];
+ int i;
+ \&.
+ \&.
+ \&.
+ /* Fill colors with color information */
+ for(i=0;i<256;i++){
+ colors[i]\&.r=i;
+ colors[i]\&.g=i;
+ colors[i]\&.b=i;
+ }
+
+ /* Create display */
+ screen=SDL_SetVideoMode(640, 480, 8, SDL_HWPALETTE);
+ if(!screen){
+ printf("Couldn\&'t set video mode: %s
+", SDL_GetError());
+ exit(-1);
+ }
+
+ /* Set palette */
+ SDL_SetPalette(screen, SDL_LOGPAL|SDL_PHYSPAL, colors, 0, 256);
+ \&.
+ \&.
+ \&.
+ \&.\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fISDL_SetColors\fR, \fISDL_SetVideoMode\fR, \fISDL_Surface\fR, \fISDL_Color\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SetTimer.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SetTimer.3
new file mode 100644
index 0000000..418ac86
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SetTimer.3
@@ -0,0 +1,39 @@
+.TH "SDL_SetTimer" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SetTimer \- Set a callback to run after the specified number of milliseconds has elapsed\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_SetTimer\fP\fR(\fBUint32 interval, SDL_TimerCallback callback\fR);
+.SH "CALLBACK"
+.PP
+/* Function prototype for the timer callback function */ typedef Uint32 (*SDL_TimerCallback)(Uint32 interval);
+.SH "DESCRIPTION"
+.PP
+Set a callback to run after the specified number of milliseconds has elapsed\&. The callback function is passed the current timer interval and returns the next timer interval\&. If the returned value is the same as the one passed in, the periodic alarm continues, otherwise a new alarm is scheduled\&.
+.PP
+To cancel a currently running timer, call \fBSDL_SetTimer(0, NULL);\fP
+.PP
+The timer callback function may run in a different thread than your main constant, and so shouldn\&'t call any functions from within itself\&.
+.PP
+The maximum resolution of this timer is 10 ms, which means that if you request a 16 ms timer, your callback will run approximately 20 ms later on an unloaded system\&. If you wanted to set a flag signaling a frame update at 30 frames per second (every 33 ms), you might set a timer for 30 ms (see example below)\&.
+.PP
+If you use this function, you need to pass \fBSDL_INIT_TIMER\fP to \fBSDL_Init()\fP\&.
+.PP
+.RS
+\fBNote:
+.PP
+This function is kept for compatibility but has been superseded by the new timer functions \fISDL_AddTimer\fR and \fISDL_RemoveTimer\fR which support multiple timers\&.
+.RE
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWSDL_SetTimer((33/10)*10, my_callback);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_AddTimer\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SetVideoMode.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SetVideoMode.3
new file mode 100644
index 0000000..95defb1
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SetVideoMode.3
@@ -0,0 +1,67 @@
+.TH "SDL_SetVideoMode" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SetVideoMode \- Set up a video mode with the specified width, height and bits-per-pixel\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_Surface *\fBSDL_SetVideoMode\fP\fR(\fBint width, int height, int bpp, Uint32 flags\fR);
+.SH "DESCRIPTION"
+.PP
+Set up a video mode with the specified width, height and bits-per-pixel\&.
+.PP
+If \fBbpp\fR is 0, it is treated as the current display bits per pixel\&.
+.PP
+The \fBflags\fR parameter is the same as the \fBflags\fR field of the \fI\fBSDL_Surface\fR\fR structure\&. OR\&'d combinations of the following values are valid\&.
+.TP 20
+\fBSDL_SWSURFACE\fP
+Create the video surface in system memory
+.TP 20
+\fBSDL_HWSURFACE\fP
+Create the video surface in video memory
+.TP 20
+\fBSDL_ASYNCBLIT\fP
+Enables the use of asynchronous updates of the display surface\&. This will usually slow down blitting on single CPU machines, but may provide a speed increase on SMP systems\&.
+.TP 20
+\fBSDL_ANYFORMAT\fP
+Normally, if a video surface of the requested bits-per-pixel (\fBbpp\fR) is not available, SDL will emulate one with a shadow surface\&. Passing \fBSDL_ANYFORMAT\fP prevents this and causes SDL to use the video surface, regardless of its pixel depth\&.
+.TP 20
+\fBSDL_HWPALETTE\fP
+Give SDL exclusive palette access\&. Without this flag you may not always get the the colors you request with \fI\fBSDL_SetColors\fP\fR or \fI\fBSDL_SetPalette\fP\fR\&.
+.TP 20
+\fBSDL_DOUBLEBUF\fP
+Enable hardware double buffering; only valid with SDL_HWSURFACE\&. Calling \fI\fBSDL_Flip\fP\fR will flip the buffers and update the screen\&. All drawing will take place on the surface that is not displayed at the moment\&. If double buffering could not be enabled then \fBSDL_Flip\fP will just perform a \fI\fBSDL_UpdateRect\fP\fR on the entire screen\&.
+.TP 20
+\fBSDL_FULLSCREEN\fP
+SDL will attempt to use a fullscreen mode\&. If a hardware resolution change is not possible (for whatever reason), the next higher resolution will be used and the display window centered on a black background\&.
+.TP 20
+\fBSDL_OPENGL\fP
+Create an OpenGL rendering context\&. You should have previously set OpenGL video attributes with \fI\fBSDL_GL_SetAttribute\fP\fR\&.
+.TP 20
+\fBSDL_OPENGLBLIT\fP
+Create an OpenGL rendering context, like above, but allow normal blitting operations\&. The screen (2D) surface may have an alpha channel, and \fI\fBSDL_UpdateRects\fP\fR must be used for updating changes to the screen surface\&.
+.TP 20
+\fBSDL_RESIZABLE\fP
+Create a resizable window\&. When the window is resized by the user a \fI\fBSDL_VIDEORESIZE\fP\fR event is generated and \fBSDL_SetVideoMode\fP can be called again with the new size\&.
+.TP 20
+\fBSDL_NOFRAME\fP
+If possible, \fBSDL_NOFRAME\fP causes SDL to create a window with no title bar or frame decoration\&. Fullscreen modes automatically have this flag set\&.
+.PP
+.RS
+\fBNote:
+.PP
+Whatever \fBflags\fR \fBSDL_SetVideoMode\fP could satisfy are set in the \fBflags\fR member of the returned surface\&.
+.RE
+.PP
+.RS
+\fBNote:
+.PP
+The \fBbpp\fR parameter is the number of bits per pixel, so a \fBbpp\fR of 24 uses the packed representation of 3 bytes/pixel\&. For the more common 4 bytes/pixel mode, use a \fBbpp\fR of 32\&. Somewhat oddly, both 15 and 16 will request a 2 bytes/pixel mode, but different pixel formats\&.
+.RE
+.SH "RETURN VALUE"
+.PP
+The framebuffer surface, or \fBNULL\fR if it fails\&. The surface returned is freed by SDL_Quit() and should nt be freed by the caller\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_LockSurface\fP\fR, \fI\fBSDL_SetColors\fP\fR, \fI\fBSDL_Flip\fP\fR, \fI\fBSDL_Surface\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_ShowCursor.3 b/distrib/sdl-1.2.15/docs/man3/SDL_ShowCursor.3
new file mode 100644
index 0000000..0376415
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_ShowCursor.3
@@ -0,0 +1,20 @@
+.TH "SDL_ShowCursor" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_ShowCursor \- Toggle whether or not the cursor is shown on the screen\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_ShowCursor\fP\fR(\fBint toggle\fR);
+.SH "DESCRIPTION"
+.PP
+Toggle whether or not the cursor is shown on the screen\&. Passing \fBSDL_ENABLE\fP displays the cursor and passing \fBSDL_DISABLE\fP hides it\&. The current state of the mouse cursor can be queried by passing \fBSDL_QUERY\fP, either \fBSDL_DISABLE\fP or \fBSDL_ENABLE\fP will be returned\&.
+.PP
+The cursor starts off displayed, but can be turned off\&.
+.SH "RETURN VALUE"
+.PP
+Returns the current state of the cursor\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateCursor\fP\fR, \fI\fBSDL_SetCursor\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_Surface.3 b/distrib/sdl-1.2.15/docs/man3/SDL_Surface.3
new file mode 100644
index 0000000..03d6ff9
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_Surface.3
@@ -0,0 +1,96 @@
+.TH "SDL_Surface" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_Surface \- Graphical Surface Structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct SDL_Surface {
+ Uint32 flags; /* Read-only */
+ SDL_PixelFormat *format; /* Read-only */
+ int w, h; /* Read-only */
+ Uint16 pitch; /* Read-only */
+ void *pixels; /* Read-write */
+
+ /* clipping information */
+ SDL_Rect clip_rect; /* Read-only */
+
+ /* Reference count -- used when freeing surface */
+ int refcount; /* Read-mostly */
+
+ /* This structure also contains private fields not shown here */
+} SDL_Surface;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBflags\fR
+Surface flags
+.TP 20
+\fBformat\fR
+Pixel \fIformat\fR
+.TP 20
+\fBw, h\fR
+Width and height of the surface
+.TP 20
+\fBpitch\fR
+Length of a surface scanline in bytes
+.TP 20
+\fBpixels\fR
+Pointer to the actual pixel data
+.TP 20
+\fBclip_rect\fR
+surface clip \fIrectangle\fR
+.SH "DESCRIPTION"
+.PP
+\fBSDL_Surface\fR\&'s represent areas of "graphical" memory, memory that can be drawn to\&. The video framebuffer is returned as a \fBSDL_Surface\fR by \fI\fBSDL_SetVideoMode\fP\fR and \fI\fBSDL_GetVideoSurface\fP\fR\&. Most of the fields should be pretty obvious\&. \fBw\fR and \fBh\fR are the width and height of the surface in pixels\&. \fBpixels\fR is a pointer to the actual pixel data, the surface should be \fIlocked\fR before accessing this field\&. The \fBclip_rect\fR field is the clipping rectangle as set by \fI\fBSDL_SetClipRect\fP\fR\&.
+.PP
+The following are supported in the \fBflags\fR field\&.
+.TP 20
+\fBSDL_SWSURFACE\fP
+Surface is stored in system memory
+.TP 20
+\fBSDL_HWSURFACE\fP
+Surface is stored in video memory
+.TP 20
+\fBSDL_ASYNCBLIT\fP
+Surface uses asynchronous blits if possible
+.TP 20
+\fBSDL_ANYFORMAT\fP
+Allows any pixel-format (Display surface)
+.TP 20
+\fBSDL_HWPALETTE\fP
+Surface has exclusive palette
+.TP 20
+\fBSDL_DOUBLEBUF\fP
+Surface is double buffered (Display surface)
+.TP 20
+\fBSDL_FULLSCREEN\fP
+Surface is full screen (Display Surface)
+.TP 20
+\fBSDL_OPENGL\fP
+Surface has an OpenGL context (Display Surface)
+.TP 20
+\fBSDL_OPENGLBLIT\fP
+Surface supports OpenGL blitting (Display Surface)
+.TP 20
+\fBSDL_RESIZABLE\fP
+Surface is resizable (Display Surface)
+.TP 20
+\fBSDL_HWACCEL\fP
+Surface blit uses hardware acceleration
+.TP 20
+\fBSDL_SRCCOLORKEY\fP
+Surface use colorkey blitting
+.TP 20
+\fBSDL_RLEACCEL\fP
+Colorkey blitting is accelerated with RLE
+.TP 20
+\fBSDL_SRCALPHA\fP
+Surface blit uses alpha blending
+.TP 20
+\fBSDL_PREALLOC\fP
+Surface uses preallocated memory
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_PixelFormat\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_SysWMEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_SysWMEvent.3
new file mode 100644
index 0000000..ca1b7ab
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_SysWMEvent.3
@@ -0,0 +1,21 @@
+.TH "SDL_SysWMEvent" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_SysWMEvent \- Platform-dependent window manager event\&.
+.SH "DESCRIPTION"
+.PP
+The system window manager event contains a pointer to system-specific information about unknown window manager events\&. If you enable this event using \fI\fBSDL_EventState()\fP\fR, it will be generated whenever unhandled events are received from the window manager\&. This can be used, for example, to implement cut-and-paste in your application\&.
+.PP
+.nf
+\f(CWtypedef struct {
+ Uint8 type; /* Always SDL_SysWM */
+ } SDL_SysWMEvent;\fR
+.fi
+.PP
+ If you want to obtain system-specific information about the window manager, you can fill the version member of a \fBSDL_SysWMinfo\fR structure (details can be found in \fBSDL_syswm\&.h\fP, which must be included) using the \fBSDL_VERSION()\fP macro found in \fBSDL_version\&.h\fP, and pass it to the function:
+.PP
+.sp
+\fBint \fBSDL_GetWMInfo\fP\fR(\fBSDL_SysWMinfo *info\fR);
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_EventState\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_ThreadID.3 b/distrib/sdl-1.2.15/docs/man3/SDL_ThreadID.3
new file mode 100644
index 0000000..10e2cf8
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_ThreadID.3
@@ -0,0 +1,13 @@
+.TH "SDL_ThreadID" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_ThreadID \- Get the 32-bit thread identifier for the current thread\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBUint32 \fBSDL_ThreadID\fP\fR(\fBvoid\fR)
+.SH "DESCRIPTION"
+.PP
+Get the 32-bit thread identifier for the current thread\&.
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_UnlockAudio.3 b/distrib/sdl-1.2.15/docs/man3/SDL_UnlockAudio.3
new file mode 100644
index 0000000..8506319
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_UnlockAudio.3
@@ -0,0 +1,15 @@
+.TH "SDL_UnlockAudio" "3" "Tue 11 Sep 2001, 22:58" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_UnlockAudio \- Unlock the callback function
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_UnlockAudio\fP\fR(\fBvoid\fR)
+.SH "DESCRIPTION"
+.PP
+Unlocks a previous \fI\fBSDL_LockAudio\fP\fR call\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_OpenAudio\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:58
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_UnlockSurface.3 b/distrib/sdl-1.2.15/docs/man3/SDL_UnlockSurface.3
new file mode 100644
index 0000000..a3fe5c9
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_UnlockSurface.3
@@ -0,0 +1,17 @@
+.TH "SDL_UnlockSurface" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_UnlockSurface \- Unlocks a previously locked surface\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_UnlockSurface\fP\fR(\fBSDL_Surface *surface\fR);
+.SH "DESCRIPTION"
+.PP
+Surfaces that were previously locked using \fBSDL_LockSurface\fP must be unlocked with \fBSDL_UnlockSurface\fP\&. Surfaces should be unlocked as soon as possible\&.
+.PP
+It should be noted that since 1\&.1\&.8, surface locks are recursive\&. See \fI\fBSDL_LockSurface\fP\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_LockSurface\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_UnlockYUVOverlay.3 b/distrib/sdl-1.2.15/docs/man3/SDL_UnlockYUVOverlay.3
new file mode 100644
index 0000000..1e6b721
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_UnlockYUVOverlay.3
@@ -0,0 +1,15 @@
+.TH "SDL_UnlockYUVOverlay" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_UnlockYUVOverlay \- Unlock an overlay
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_UnlockYUVOverlay\fP\fR(\fBSDL_Overlay *overlay\fR);
+.SH "DESCRIPTION"
+.PP
+The opposite to \fI\fBSDL_LockYUVOverlay\fP\fR\&. Unlocks a previously locked overlay\&. An overlay must be unlocked before it can be displayed\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_UnlockYUVOverlay\fP\fR, \fI\fBSDL_CreateYUVOverlay\fP\fR, \fI\fBSDL_Overlay\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_UpdateRect.3 b/distrib/sdl-1.2.15/docs/man3/SDL_UpdateRect.3
new file mode 100644
index 0000000..a101a83
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_UpdateRect.3
@@ -0,0 +1,19 @@
+.TH "SDL_UpdateRect" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_UpdateRect \- Makes sure the given area is updated on the given screen\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_UpdateRect\fP\fR(\fBSDL_Surface *screen, Sint32 x, Sint32 y, Sint32 w, Sint32 h\fR);
+.SH "DESCRIPTION"
+.PP
+Makes sure the given area is updated on the given screen\&. The rectangle must be confined within the screen boundaries (no clipping is done)\&.
+.PP
+If \&'\fBx\fR\&', \&'\fBy\fR\&', \&'\fBw\fR\&' and \&'\fBh\fR\&' are all 0, \fBSDL_UpdateRect\fP will update the entire screen\&.
+.PP
+This function should not be called while \&'\fBscreen\fR\&' is \fIlocked\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_UpdateRects\fP\fR, \fI\fBSDL_Rect\fR\fR, \fI\fBSDL_Surface\fR\fR, \fI\fBSDL_LockSurface\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_UpdateRects.3 b/distrib/sdl-1.2.15/docs/man3/SDL_UpdateRects.3
new file mode 100644
index 0000000..9ffdb08
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_UpdateRects.3
@@ -0,0 +1,25 @@
+.TH "SDL_UpdateRects" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_UpdateRects \- Makes sure the given list of rectangles is updated on the given screen\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_UpdateRects\fP\fR(\fBSDL_Surface *screen, int numrects, SDL_Rect *rects\fR);
+.SH "DESCRIPTION"
+.PP
+Makes sure the given list of rectangles is updated on the given screen\&. The rectangles must all be confined within the screen boundaries (no clipping is done)\&.
+.PP
+This function should not be called while \fBscreen\fR is \fIlocked\fR\&.
+.PP
+.RS
+\fBNote:
+.PP
+It is adviced to call this function only once per frame, since each call has some processing overhead\&. This is no restriction since you can pass any number of rectangles each time\&.
+.PP
+The rectangles are not automatically merged or checked for overlap\&. In general, the programmer can use his knowledge about his particular rectangles to merge them in an efficient way, to avoid overdraw\&.
+.RE
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_UpdateRect\fP\fR, \fI\fBSDL_Rect\fR\fR, \fI\fBSDL_Surface\fR\fR, \fI\fBSDL_LockSurface\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_UserEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_UserEvent.3
new file mode 100644
index 0000000..d92ec53
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_UserEvent.3
@@ -0,0 +1,47 @@
+.TH "SDL_UserEvent" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_UserEvent \- A user-defined event type
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 type;
+ int code;
+ void *data1;
+ void *data2;
+} SDL_UserEvent;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBtype\fR
+\fBSDL_USEREVENT\fP through to \fBSDL_NUMEVENTS-1\fP
+.TP 20
+\fBcode\fR
+User defined event code
+.TP 20
+\fBdata1\fR
+User defined data pointer
+.TP 20
+\fBdata2\fR
+User defined data pointer
+.SH "DESCRIPTION"
+.PP
+\fBSDL_UserEvent\fR is in the \fBuser\fR member of the structure \fI\fBSDL_Event\fR\fR\&. This event is unique, it is never created by SDL but only by the user\&. The event can be pushed onto the event queue using \fI\fBSDL_PushEvent\fP\fR\&. The contents of the structure members or completely up to the programmer, the only requirement is that \fBtype\fR is a value from \fBSDL_USEREVENT\fP to \fBSDL_NUMEVENTS-1\fP (inclusive)\&.
+.SH "EXAMPLES"
+.PP
+.PP
+.nf
+\f(CWSDL_Event event;
+
+event\&.type = SDL_USEREVENT;
+event\&.user\&.code = my_event_code;
+event\&.user\&.data1 = significant_data;
+event\&.user\&.data2 = 0;
+SDL_PushEvent(&event);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fI\fBSDL_PushEvent\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_VideoDriverName.3 b/distrib/sdl-1.2.15/docs/man3/SDL_VideoDriverName.3
new file mode 100644
index 0000000..e8563b6
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_VideoDriverName.3
@@ -0,0 +1,18 @@
+.TH "SDL_VideoDriverName" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_VideoDriverName \- Obtain the name of the video driver
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBchar *\fBSDL_VideoDriverName\fP\fR(\fBchar *namebuf, int maxlen\fR);
+.SH "DESCRIPTION"
+.PP
+The buffer pointed to by \fBnamebuf\fR is filled up to a maximum of \fBmaxlen\fR characters (include the NULL terminator) with the name of the initialised video driver\&. The driver name is a simple one word identifier like "x11" or "windib"\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fBNULL\fP if video has not been initialised with \fBSDL_Init\fP or a pointer to \fBnamebuf\fR otherwise\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Init\fP\fR \fI\fBSDL_InitSubSystem\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_VideoInfo.3 b/distrib/sdl-1.2.15/docs/man3/SDL_VideoInfo.3
new file mode 100644
index 0000000..c62e1ff
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_VideoInfo.3
@@ -0,0 +1,62 @@
+.TH "SDL_VideoInfo" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_VideoInfo \- Video Target information
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint32 hw_available:1;
+ Uint32 wm_available:1;
+ Uint32 blit_hw:1;
+ Uint32 blit_hw_CC:1;
+ Uint32 blit_hw_A:1;
+ Uint32 blit_sw:1;
+ Uint32 blit_sw_CC:1;
+ Uint32 blit_sw_A:1;
+ Uint32 blit_fill;
+ Uint32 video_mem;
+ SDL_PixelFormat *vfmt;
+} SDL_VideoInfo;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBhw_available\fR
+Is it possible to create hardware surfaces?
+.TP 20
+\fBwm_available\fR
+Is there a window manager available
+.TP 20
+\fBblit_hw\fR
+Are hardware to hardware blits accelerated?
+.TP 20
+\fBblit_hw_CC\fR
+Are hardware to hardware colorkey blits accelerated?
+.TP 20
+\fBblit_hw_A\fR
+Are hardware to hardware alpha blits accelerated?
+.TP 20
+\fBblit_sw\fR
+Are software to hardware blits accelerated?
+.TP 20
+\fBblit_sw_CC\fR
+Are software to hardware colorkey blits accelerated?
+.TP 20
+\fBblit_sw_A\fR
+Are software to hardware alpha blits accelerated?
+.TP 20
+\fBblit_fill\fR
+Are color fills accelerated?
+.TP 20
+\fBvideo_mem\fR
+Total amount of video memory in Kilobytes
+.TP 20
+\fBvfmt\fR
+\fIPixel format\fR of the video device
+.SH "DESCRIPTION"
+.PP
+This (read-only) structure is returned by \fI\fBSDL_GetVideoInfo\fP\fR\&. It contains information on either the \&'best\&' available mode (if called before \fI\fBSDL_SetVideoMode\fP\fR) or the current video mode\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_PixelFormat\fR\fR, \fI\fBSDL_GetVideoInfo\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_VideoModeOK.3 b/distrib/sdl-1.2.15/docs/man3/SDL_VideoModeOK.3
new file mode 100644
index 0000000..72c9a90
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_VideoModeOK.3
@@ -0,0 +1,44 @@
+.TH "SDL_VideoModeOK" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_VideoModeOK \- Check to see if a particular video mode is supported\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_VideoModeOK\fP\fR(\fBint width, int height, int bpp, Uint32 flags\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_VideoModeOK\fP returns \fB0\fR if the requested mode is not supported under any bit depth, or returns the bits-per-pixel of the closest available mode with the given width, height and requested \fIsurface\fR flags (see \fI\fBSDL_SetVideoMode\fP\fR)\&.
+.PP
+The bits-per-pixel value returned is only a suggested mode\&. You can usually request and bpp you want when \fIsetting\fR the video mode and SDL will emulate that color depth with a shadow video surface\&.
+.PP
+The arguments to \fBSDL_VideoModeOK\fP are the same ones you would pass to \fISDL_SetVideoMode\fR
+.SH "EXAMPLE"
+.PP
+.nf
+\f(CWSDL_Surface *screen;
+Uint32 bpp;
+\&.
+\&.
+\&.
+printf("Checking mode 640x480@16bpp\&.
+");
+bpp=SDL_VideoModeOK(640, 480, 16, SDL_HWSURFACE);
+
+if(!bpp){
+ printf("Mode not available\&.
+");
+ exit(-1);
+}
+
+printf("SDL Recommends 640x480@%dbpp\&.
+", bpp);
+screen=SDL_SetVideoMode(640, 480, bpp, SDL_HWSURFACE);
+\&.
+\&.\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_SetVideoMode\fP\fR, \fI\fBSDL_GetVideoInfo\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_WM_GetCaption.3 b/distrib/sdl-1.2.15/docs/man3/SDL_WM_GetCaption.3
new file mode 100644
index 0000000..68ed8b2
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_WM_GetCaption.3
@@ -0,0 +1,15 @@
+.TH "SDL_WM_GetCaption" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_WM_GetCaption \- Gets the window title and icon name\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_WM_GetCaption\fP\fR(\fBchar **title, char **icon\fR);
+.SH "DESCRIPTION"
+.PP
+Set pointers to the window \fBtitle\fR and \fBicon\fR name\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_WM_SetCaption\fP\fR, \fI\fBSDL_WM_SetIcon\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_WM_GrabInput.3 b/distrib/sdl-1.2.15/docs/man3/SDL_WM_GrabInput.3
new file mode 100644
index 0000000..556681e
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_WM_GrabInput.3
@@ -0,0 +1,28 @@
+.TH "SDL_WM_GrabInput" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_WM_GrabInput \- Grabs mouse and keyboard input\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBSDL_GrabMode \fBSDL_WM_GrabInput\fP\fR(\fBSDL_GrabMode mode\fR);
+.SH "DESCRIPTION"
+.PP
+Grabbing means that the mouse is confined to the application window, and nearly all keyboard input is passed directly to the application, and not interpreted by a window manager, if any\&.
+.PP
+When \fBmode\fR is \fBSDL_GRAB_QUERY\fP the grab mode is not changed, but the current grab mode is returned\&.
+.PP
+.PP
+.nf
+\f(CWtypedef enum {
+ SDL_GRAB_QUERY,
+ SDL_GRAB_OFF,
+ SDL_GRAB_ON
+} SDL_GrabMode;\fR
+.fi
+.PP
+
+.SH "RETURN VALUE"
+.PP
+The current/new \fBSDL_GrabMode\fR\&.
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_WM_IconifyWindow.3 b/distrib/sdl-1.2.15/docs/man3/SDL_WM_IconifyWindow.3
new file mode 100644
index 0000000..922df8f
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_WM_IconifyWindow.3
@@ -0,0 +1,15 @@
+.TH "SDL_WM_IconifyWindow" "3" "Tue 11 Sep 2001, 23:02" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_WM_IconifyWindow \- Iconify/Minimise the window
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_WM_IconifyWindow\fP\fR(\fBvoid\fR);
+.SH "DESCRIPTION"
+.PP
+If the application is running in a window managed environment SDL attempts to iconify/minimise it\&. If \fBSDL_WM_IconifyWindow\fP is successful, the application will receive a \fI\fBSDL_APPACTIVE\fP\fR loss event\&.
+.SH "RETURN VALUE"
+.PP
+Returns non-zero on success or \fB0\fR if iconification is not support or was refused by the window manager\&.
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:02
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_WM_SetCaption.3 b/distrib/sdl-1.2.15/docs/man3/SDL_WM_SetCaption.3
new file mode 100644
index 0000000..847ff5d
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_WM_SetCaption.3
@@ -0,0 +1,15 @@
+.TH "SDL_WM_SetCaption" "3" "Tue 11 Sep 2001, 23:02" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_WM_SetCaption \- Sets the window tile and icon name\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_WM_SetCaption\fP\fR(\fBconst char *title, const char *icon\fR);
+.SH "DESCRIPTION"
+.PP
+Sets the title-bar and icon name of the display window\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_WM_GetCaption\fP\fR, \fI\fBSDL_WM_SetIcon\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:02
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_WM_SetIcon.3 b/distrib/sdl-1.2.15/docs/man3/SDL_WM_SetIcon.3
new file mode 100644
index 0000000..3f3a519
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_WM_SetIcon.3
@@ -0,0 +1,27 @@
+.TH "SDL_WM_SetIcon" "3" "Tue 11 Sep 2001, 23:02" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_WM_SetIcon \- Sets the icon for the display window\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_WM_SetIcon\fP\fR(\fBSDL_Surface *icon, Uint8 *mask\fR);
+.SH "DESCRIPTION"
+.PP
+Sets the icon for the display window\&. Win32 icons must be 32x32\&.
+.PP
+This function must be called before the first call to \fISDL_SetVideoMode\fR\&.
+.PP
+It takes an \fBicon\fR surface, and a \fBmask\fR in MSB format\&.
+.PP
+If \fBmask\fR is \fBNULL\fP, the entire icon surface will be used as the icon\&.
+.SH "EXAMPLE"
+.PP
+.nf
+\f(CWSDL_WM_SetIcon(SDL_LoadBMP("icon\&.bmp"), NULL);\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_SetVideoMode\fP\fR, \fI\fBSDL_WM_SetCaption\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:02
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_WM_ToggleFullScreen.3 b/distrib/sdl-1.2.15/docs/man3/SDL_WM_ToggleFullScreen.3
new file mode 100644
index 0000000..d4cf8de
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_WM_ToggleFullScreen.3
@@ -0,0 +1,15 @@
+.TH "SDL_WM_ToggleFullScreen" "3" "Tue 11 Sep 2001, 23:02" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_WM_ToggleFullScreen \- Toggles fullscreen mode
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_WM_ToggleFullScreen\fP\fR(\fBSDL_Surface *surface\fR);
+.SH "DESCRIPTION"
+.PP
+Toggles the application between windowed and fullscreen mode, if supported\&. (X11 is the only target currently supported, BeOS support is experimental)\&.
+.SH "RETURN VALUE"
+.PP
+Returns \fB0\fR on failure or \fB1\fR on success\&.
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:02
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_WaitEvent.3 b/distrib/sdl-1.2.15/docs/man3/SDL_WaitEvent.3
new file mode 100644
index 0000000..adadb4a
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_WaitEvent.3
@@ -0,0 +1,17 @@
+.TH "SDL_WaitEvent" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_WaitEvent \- Waits indefinitely for the next available event\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBint \fBSDL_WaitEvent\fP\fR(\fBSDL_Event *event\fR);
+.SH "DESCRIPTION"
+.PP
+Waits indefinitely for the next available event, returning \fB1\fR, or \fB0\fR if there was an error while waiting for events\&.
+.PP
+If \fBevent\fR is not \fBNULL\fP, the next event is removed from the queue and stored in that area\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Event\fR\fR, \fI\fBSDL_PollEvent\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_WaitThread.3 b/distrib/sdl-1.2.15/docs/man3/SDL_WaitThread.3
new file mode 100644
index 0000000..11679fc
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_WaitThread.3
@@ -0,0 +1,19 @@
+.TH "SDL_WaitThread" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_WaitThread \- Wait for a thread to finish\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBvoid \fBSDL_WaitThread\fP\fR(\fBSDL_Thread *thread, int *status\fR);
+.SH "DESCRIPTION"
+.PP
+Wait for a thread to finish (timeouts are not supported)\&.
+.SH "RETURN VALUE"
+.PP
+The return code for the thread function is placed in the area pointed to by \fBstatus\fR, if \fBstatus\fR is not \fBNULL\fR\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateThread\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_WarpMouse.3 b/distrib/sdl-1.2.15/docs/man3/SDL_WarpMouse.3
new file mode 100644
index 0000000..5cab3ce
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_WarpMouse.3
@@ -0,0 +1,15 @@
+.TH "SDL_WarpMouse" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_WarpMouse \- Set the position of the mouse cursor\&.
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBvoid \fBSDL_WarpMouse\fP\fR(\fBUint16 x, Uint16 y\fR);
+.SH "DESCRIPTION"
+.PP
+Set the position of the mouse cursor (generates a mouse motion event)\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_MouseMotionEvent\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_WasInit.3 b/distrib/sdl-1.2.15/docs/man3/SDL_WasInit.3
new file mode 100644
index 0000000..5bc75c5
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_WasInit.3
@@ -0,0 +1,63 @@
+.TH "SDL_WasInit" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_WasInit \- Check which subsystems are initialized
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+.sp
+\fBUint32 \fBSDL_WasInit\fP\fR(\fBUint32 flags\fR);
+.SH "DESCRIPTION"
+.PP
+\fBSDL_WasInit\fP allows you to see which SDL subsytems have been \fIinitialized\fR\&. \fBflags\fR is a bitwise OR\&'d combination of the subsystems you wish to check (see \fI\fBSDL_Init\fP\fR for a list of subsystem flags)\&.
+.SH "RETURN VALUE"
+.PP
+\fBSDL_WasInit\fP returns a bitwised OR\&'d combination of the initialized subsystems\&.
+.SH "EXAMPLES"
+.PP
+.nf
+\f(CW
+/* Here are several ways you can use SDL_WasInit() */
+
+/* Get init data on all the subsystems */
+Uint32 subsystem_init;
+
+subsystem_init=SDL_WasInit(SDL_INIT_EVERYTHING);
+
+if(subsystem_init&SDL_INIT_VIDEO)
+ printf("Video is initialized\&.
+");
+else
+ printf("Video is not initialized\&.
+");
+
+
+
+/* Just check for one specfic subsystem */
+
+if(SDL_WasInit(SDL_INIT_VIDEO)!=0)
+ printf("Video is initialized\&.
+");
+else
+ printf("Video is not initialized\&.
+");
+
+
+
+
+/* Check for two subsystems */
+
+Uint32 subsystem_mask=SDL_INIT_VIDEO|SDL_INIT_AUDIO;
+
+if(SDL_WasInit(subsystem_mask)==subsystem_mask)
+ printf("Video and Audio initialized\&.
+");
+else
+ printf("Video and Audio not initialized\&.
+");
+\fR
+.fi
+.PP
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_Init\fP\fR, \fI\fBSDL_Subsystem\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_keysym.3 b/distrib/sdl-1.2.15/docs/man3/SDL_keysym.3
new file mode 100644
index 0000000..52065c1
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_keysym.3
@@ -0,0 +1,69 @@
+.TH "SDL_keysym" "3" "Tue 11 Sep 2001, 23:00" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_keysym \- Keysym structure
+.SH "STRUCTURE DEFINITION"
+.PP
+.nf
+\f(CWtypedef struct{
+ Uint8 scancode;
+ SDLKey sym;
+ SDLMod mod;
+ Uint16 unicode;
+} SDL_keysym;\fR
+.fi
+.PP
+.SH "STRUCTURE DATA"
+.TP 20
+\fBscancode\fR
+Hardware specific scancode
+.TP 20
+\fBsym\fR
+SDL virtual keysym
+.TP 20
+\fBmod\fR
+Current key modifiers
+.TP 20
+\fBunicode\fR
+Translated character
+.SH "DESCRIPTION"
+.PP
+The \fBSDL_keysym\fR structure is used by reporting key presses and releases since it is a part of the \fI\fBSDL_KeyboardEvent\fR\fR\&.
+.PP
+The \fBscancode\fR field should generally be left alone, it is the hardware dependent scancode returned by the keyboard\&. The \fBsym\fR field is extremely useful\&. It is the SDL-defined value of the key (see \fISDL Key Syms\fR\&. This field is very useful when you are checking for certain key presses, like so:
+.PP
+.nf
+\f(CW\&.
+\&.
+while(SDL_PollEvent(&event)){
+ switch(event\&.type){
+ case SDL_KEYDOWN:
+ if(event\&.key\&.keysym\&.sym==SDLK_LEFT)
+ move_left();
+ break;
+ \&.
+ \&.
+ \&.
+ }
+}
+\&.
+\&.\fR
+.fi
+.PP
+ \fBmod\fR stores the current state of the keyboard modifiers as explained in \fI\fBSDL_GetModState\fP\fR\&. The \fBunicode\fR is only used when UNICODE translation is enabled with \fI\fBSDL_EnableUNICODE\fP\fR\&. If \fBunicode\fR is non-zero then this a the UNICODE character corresponding to the keypress\&. If the high 9 bits of the character are 0, then this maps to the equivalent ASCII character:
+.PP
+.nf
+\f(CWchar ch;
+if ( (keysym\&.unicode & 0xFF80) == 0 ) {
+ ch = keysym\&.unicode & 0x7F;
+}
+else {
+ printf("An International Character\&.
+");
+}\fR
+.fi
+.PP
+ UNICODE translation does have a slight overhead so don\&'t enable it unless its needed\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDLKey\fR\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:00
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_mutexP.3 b/distrib/sdl-1.2.15/docs/man3/SDL_mutexP.3
new file mode 100644
index 0000000..3f21716
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_mutexP.3
@@ -0,0 +1,18 @@
+.TH "SDL_mutexP" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_mutexP \- Lock a mutex
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBint \fBSDL_mutexP\fP\fR(\fBSDL_mutex *mutex\fR);
+.SH "DESCRIPTION"
+.PP
+Locks the \fBmutex\fR, which was previously created with \fI\fBSDL_CreateMutex\fP\fR\&. If the mutex is already locked then \fBSDL_mutexP\fP will not return until it is \fIunlocked\fR\&. Returns \fB0\fR on success, or \fB-1\fR on an error\&.
+.PP
+SDL also defines a macro \fB#define SDL_LockMutex(m) SDL_mutexP(m)\fP\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateMutex\fP\fR, \fI\fBSDL_mutexV\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01
diff --git a/distrib/sdl-1.2.15/docs/man3/SDL_mutexV.3 b/distrib/sdl-1.2.15/docs/man3/SDL_mutexV.3
new file mode 100644
index 0000000..e914abb
--- /dev/null
+++ b/distrib/sdl-1.2.15/docs/man3/SDL_mutexV.3
@@ -0,0 +1,18 @@
+.TH "SDL_mutexV" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
+.SH "NAME"
+SDL_mutexV \- Unlock a mutex
+.SH "SYNOPSIS"
+.PP
+\fB#include "SDL\&.h"
+#include "SDL_thread\&.h"
+.sp
+\fBint \fBSDL_mutexV\fP\fR(\fBSDL_mutex *mutex\fR);
+.SH "DESCRIPTION"
+.PP
+Unlocks the \fBmutex\fR, which was previously created with \fI\fBSDL_CreateMutex\fP\fR\&. Returns \fB0\fR on success, or \fB-1\fR on an error\&.
+.PP
+SDL also defines a macro \fB#define SDL_UnlockMutex(m) SDL_mutexV(m)\fP\&.
+.SH "SEE ALSO"
+.PP
+\fI\fBSDL_CreateMutex\fP\fR, \fI\fBSDL_mutexP\fP\fR
+.\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01