Chapter 1. all functions Reference

Table of Contents

sdl_init — Initializes SDL
sdl_initsubsystem — Initialize subsystems
sdl_quitsubsystem — Shut down a subsystem
sdl_wasinit — Check which subsystems are initialized
sdl_quit — Shut down SDL
sdl_geterror — Get SDL error string
sdl_mustlock — Test if surface must be locked
sdl_getvideosurface — returns a pointer to the current display surface
sdl_getvideoinfo — returns a pointer to information about the video hardware
sdl_videodrivername — Obtain the name of the video driver
sdl_listmodes — Here Description2
sdl_videomodeok — Check to see if a particular video mode is supported
sdl_setvideomode — Set up a video mode with the specified width, height and bits-per-pixel.
sdl_updaterect — Makes sure the given area is updated on the given screen.
sdl_updaterects — Makes sure the given list of rectangles is updated on the given screen.
sdl_flip — Swaps screen buffers
sdl_setcolors — Sets a portion of the colormap for the given 8-bit surface.
sdl_setpalette — Sets the colors in the palette of an 8-bit surface.
sdl_setgamma — Here Description2
sdl_getgammaramp — Here Description2
sdl_setgammaramp — Here Description2
sdl_maprgb — Here Description2
sdl_maprgba — Here Description2
sdl_getrgb — Here Description2
sdl_getrgba — Here Description2
sdl_creatergbsurface — Here Description2
sdl_creatergbsurfacefrom — Here Description2
sdl_freesurface — Here Description2
sdl_locksurface — Here Description2
sdl_unlocksurface — Here Description2
sdl_loadbmp — Here Description2
sdl_savebmp — Here Description2
sdl_setcolorkey — Here Description2
sdl_setalpha — Here Description2
sdl_setcliprect — Here Description2
sdl_getcliprect — Here Description2
sdl_convertsurface — Here Description2
sdl_blitsurface — Here Description2
sdl_fillrect — Here Description2
sdl_displayformat — Here Description2
sdl_displayformatalpha — Here Description2
sdl_warpmouse — Here Description2
sdl_createcursor — Here Description2
sdl_freecursor — Here Description2
sdl_setcursor — Here Description2
sdl_getcursor — Here Description2
sdl_showcursor — Here Description2
sdl_gl_loadlibrary — Here Description2
sdl_gl_getprocaddress — Here Description2
sdl_gl_getattribute — Here Description2
sdl_gl_setattribute — Here Description2
sdl_gl_swapbuffers — Here Description2
sdl_createyuvoverlay — Here Description2
sdl_lockyuvoverlay — Here Description2
sdl_unlockyuvoverlay — Here Description2
sdl_displayyuvoverlay — Here Description2
sdl_freeyuvoverlay — Here Description2
sdl_wm_setcaption — Here Description2
sdl_wm_getcaption — Here Description2
sdl_wm_seticon — Here Description2
sdl_wm_iconifywindow — Here Description2
sdl_wm_togglefullscreen — Here Description2
sdl_wm_grabinput — Here Description2
sdl_button — Here Description2
sdl_pumpevents — Here Description2
sdl_pollevent — Here Description2
sdl_waitevent — Here Description2
sdl_peepevents — Here Description2
sdl_pushevent — Here Description2
sdl_seteventfilter — Here Description2
sdl_geteventfilter — Here Description2
sdl_eventstate — Here Description2
sdl_getkeystate — Here Description2
sdl_getmodstate — Here Description2
sdl_setmodstate — Here Description2
sdl_getkeyname — Here Description2
sdl_enableunicode — Here Description2
sdl_enablekeyrepeat — Here Description2
sdl_getmousestate — Here Description2
sdl_getrelativemousestate — Here Description2
sdl_getappstate — Here Description2
sdl_numjoysticks — Here Description2
sdl_joystickname — Here Description2
sdl_joystickopen — Here Description2
sdl_joystickopened — Here Description2
sdl_joystickindex — Here Description2
sdl_joysticknumaxes — Here Description2
sdl_joysticknumballs — Here Description2
sdl_joysticknumhats — Here Description2
sdl_joysticknumbuttons — Here Description2
sdl_joystickupdate — Here Description2
sdl_joystickeventstate — Here Description2
sdl_joystickgetaxis — Here Description2
sdl_joystickgethat — Here Description2
sdl_joystickgetball — Here Description2
sdl_joystickgetbutton — Here Description2
sdl_joystickclose — Here Description2
sdl_cd_indrive — Here Description2
sdl_frames_to_msf — Here Description2
sdl_msf_to_frames — Here Description2
sdl_cdnumdrives — Here Description2
sdl_cdname — Here Description2
sdl_cdopen — Here Description2
sdl_cdstatus — Here Description2
sdl_cdplay — Here Description2
sdl_cdplaytracks — Here Description2
sdl_cdpause — Here Description2
sdl_cdresume — Here Description2
sdl_cdstop — Here Description2
sdl_cdeject — Here Description2
sdl_cdclose — Here Description2
sdl_createmutex — Here Description2
sdl_destroymutex — Here Description2
sdl_mutexp — Here Description2
sdl_mutexv — Here Description2
sdl_getticks — Here Description2
sdl_delay — Here Description2
sdl_addtimer — Here Description2
sdl_removetimer — Here Description2
Constants
Resources

Constants

SDL_INIT_TIMER

SDL_INIT_AUDIO

SDL_INIT_VIDEO

SDL_INIT_CDROM

SDL_INIT_JOYSTICK

SDL_INIT_NOPARACHUTE

SDL_INIT_EVENTTHREAD

SDL_INIT_EVERYTHING

SDL_CD_TRAYEMPTY

SDL_CD_STOPPED

SDL_CD_PLAYING

SDL_CD_PAUSED

SDL_CD_ERROR

SDL_AUDIO_TRACK

SDL_DATA_TRACK

SDL_CD_FPS

SDL_MAX_TRACKS

SDL_SWSURFACE

SDL_HWSURFACE

SDL_ASYNCBLIT

SDL_ANYFORMAT

SDL_HWPALETTE

SDL_DOUBLEBUF

SDL_FULLSCREEN

SDL_OPENGL

SDL_OPENGLBLIT

SDL_RESIZABLE

SDL_NOFRAME

SDL_HWACCEL

SDL_SRCCOLORKEY

SDL_RLEACCELOK

SDL_RLEACCEL

SDL_SRCALPHA

SDL_PREALLOC

SDL_GL_RED_SIZE

SDL_GL_GREEN_SIZE

SDL_GL_BLUE_SIZE

SDL_GL_ALPHA_SIZE

SDL_GL_BUFFER_SIZE

SDL_GL_DOUBLEBUFFER

SDL_GL_DEPTH_SIZE

SDL_GL_STENCIL_SIZE

SDL_GL_ACCUM_RED_SIZE

SDL_GL_ACCUM_GREEN_SIZE

SDL_GL_ACCUM_BLUE_SIZE

SDL_GL_ACCUM_ALPHA_SIZE

SDL_YV12_OVERLAY

SDL_IYUV_OVERLAY

SDL_YUY2_OVERLAY

SDL_UYVY_OVERLAY

SDL_YVYU_OVERLAY

SDL_GRAB_QUERY

SDL_GRAB_OFF

SDL_GRAB_ON

SDL_PRESSED

SDL_RELEASED

SDL_QUERY

SDL_IGNORE

SDL_DISABLE

SDL_ENABLE

SDL_ADDEVENT

SDL_PEEKEVENT

SDL_GETEVENT

SDL_ALLEVENTS

SDL_ACTIVEEVENTMASK

SDL_KEYDOWNMASK

SDL_KEYUPMASK

SDL_MOUSEMOTIONMASK

SDL_MOUSEBUTTONDOWNMASK

SDL_MOUSEBUTTONUPMASK

SDL_MOUSEEVENTMASK

SDL_JOYAXISMOTIONMASK

SDL_JOYBALLMOTIONMASK

SDL_JOYHATMOTIONMASK

SDL_JOYBUTTONDOWNMASK

SDL_JOYBUTTONUPMASK

SDL_JOYEVENTMASK

SDL_VIDEORESIZEMASK

SDL_VIDEOEXPOSEMASK

SDL_QUITMASK

SDL_SYSWMEVENTMASK

SDL_NOEVENT

SDL_ACTIVEEVENT

SDL_KEYDOWN

SDL_KEYUP

SDL_MOUSEMOTION

SDL_MOUSEBUTTONDOWN

SDL_MOUSEBUTTONUP

SDL_JOYAXISMOTION

SDL_JOYBALLMOTION

SDL_JOYHATMOTION

SDL_JOYBUTTONDOWN

SDL_JOYBUTTONUP

SDL_QUIT

SDL_SYSWMEVENT

SDL_EVENT_RESERVEDA

SDL_EVENT_RESERVEDB

SDL_VIDEORESIZE

SDL_VIDEOEXPOSE

SDL_EVENT_RESERVED2

SDL_EVENT_RESERVED3

SDL_EVENT_RESERVED4

SDL_EVENT_RESERVED5

SDL_EVENT_RESERVED6

SDL_EVENT_RESERVED7

SDL_USEREVENT

SDL_NUMEVENTS

SDL_APPMOUSEFOCUS

SDL_APPINPUTFOCUS

SDL_APPACTIVE

SDLK_UNKNOWN

SDLK_FIRST

SDLK_BACKSPACE

SDLK_TAB

SDLK_CLEAR

SDLK_RETURN

SDLK_PAUSE

SDLK_ESCAPE

SDLK_SPACE

SDLK_EXCLAIM

SDLK_QUOTEDBL

SDLK_HASH

SDLK_DOLLAR

SDLK_AMPERSAND

SDLK_QUOTE

SDLK_LEFTPAREN

SDLK_RIGHTPAREN

SDLK_ASTERISK

SDLK_PLUS

SDLK_COMMA

SDLK_MINUS

SDLK_PERIOD

SDLK_SLASH

SDLK_0

SDLK_1

SDLK_2

SDLK_3

SDLK_4

SDLK_5

SDLK_6

SDLK_7

SDLK_8

SDLK_9

SDLK_COLON

SDLK_SEMICOLON

SDLK_LESS

SDLK_EQUALS

SDLK_GREATER

SDLK_QUESTION

SDLK_AT

SDLK_LEFTBRACKET

SDLK_BACKSLASH

SDLK_RIGHTBRACKET

SDLK_CARET

SDLK_UNDERSCORE

SDLK_BACKQUOTE

SDLK_a

SDLK_b

SDLK_c

SDLK_d

SDLK_e

SDLK_f

SDLK_g

SDLK_h

SDLK_i

SDLK_j

SDLK_k

SDLK_l

SDLK_m

SDLK_n

SDLK_o

SDLK_p

SDLK_q

SDLK_r

SDLK_s

SDLK_t

SDLK_u

SDLK_v

SDLK_w

SDLK_x

SDLK_y

SDLK_z

SDLK_DELETE

SDLK_WORLD_0

SDLK_WORLD_1

SDLK_WORLD_2

SDLK_WORLD_3

SDLK_WORLD_4

SDLK_WORLD_5

SDLK_WORLD_6

SDLK_WORLD_7

SDLK_WORLD_8

SDLK_WORLD_9

SDLK_WORLD_10

SDLK_WORLD_11

SDLK_WORLD_12

SDLK_WORLD_13

SDLK_WORLD_14

SDLK_WORLD_15

SDLK_WORLD_16

SDLK_WORLD_17

SDLK_WORLD_18

SDLK_WORLD_19

SDLK_WORLD_20

SDLK_WORLD_21

SDLK_WORLD_22

SDLK_WORLD_23

SDLK_WORLD_24

SDLK_WORLD_25

SDLK_WORLD_26

SDLK_WORLD_27

SDLK_WORLD_28

SDLK_WORLD_29

SDLK_WORLD_30

SDLK_WORLD_31

SDLK_WORLD_32

SDLK_WORLD_33

SDLK_WORLD_34

SDLK_WORLD_35

SDLK_WORLD_36

SDLK_WORLD_37

SDLK_WORLD_38

SDLK_WORLD_39

SDLK_WORLD_40

SDLK_WORLD_41

SDLK_WORLD_42

SDLK_WORLD_43

SDLK_WORLD_44

SDLK_WORLD_45

SDLK_WORLD_46

SDLK_WORLD_47

SDLK_WORLD_48

SDLK_WORLD_49

SDLK_WORLD_50

SDLK_WORLD_51

SDLK_WORLD_52

SDLK_WORLD_53

SDLK_WORLD_54

SDLK_WORLD_55

SDLK_WORLD_56

SDLK_WORLD_57

SDLK_WORLD_58

SDLK_WORLD_59

SDLK_WORLD_60

SDLK_WORLD_61

SDLK_WORLD_62

SDLK_WORLD_63

SDLK_WORLD_64

SDLK_WORLD_65

SDLK_WORLD_66

SDLK_WORLD_67

SDLK_WORLD_68

SDLK_WORLD_69

SDLK_WORLD_70

SDLK_WORLD_71

SDLK_WORLD_72

SDLK_WORLD_73

SDLK_WORLD_74

SDLK_WORLD_75

SDLK_WORLD_76

SDLK_WORLD_77

SDLK_WORLD_78

SDLK_WORLD_79

SDLK_WORLD_80

SDLK_WORLD_81

SDLK_WORLD_82

SDLK_WORLD_83

SDLK_WORLD_84

SDLK_WORLD_85

SDLK_WORLD_86

SDLK_WORLD_87

SDLK_WORLD_88

SDLK_WORLD_89

SDLK_WORLD_90

SDLK_WORLD_91

SDLK_WORLD_92

SDLK_WORLD_93

SDLK_WORLD_94

SDLK_WORLD_95

SDLK_KP0

SDLK_KP1

SDLK_KP2

SDLK_KP3

SDLK_KP4

SDLK_KP5

SDLK_KP6

SDLK_KP7

SDLK_KP8

SDLK_KP9

SDLK_KP_PERIOD

SDLK_KP_DIVIDE

SDLK_KP_MULTIPLY

SDLK_KP_MINUS

SDLK_KP_PLUS

SDLK_KP_ENTER

SDLK_KP_EQUALS

SDLK_UP

SDLK_DOWN

SDLK_RIGHT

SDLK_LEFT

SDLK_INSERT

SDLK_HOME

SDLK_END

SDLK_PAGEUP

SDLK_PAGEDOWN

SDLK_F1

SDLK_F2

SDLK_F3

SDLK_F4

SDLK_F5

SDLK_F6

SDLK_F7

SDLK_F8

SDLK_F9

SDLK_F10

SDLK_F11

SDLK_F12

SDLK_F13

SDLK_F14

SDLK_F15

SDLK_NUMLOCK

SDLK_CAPSLOCK

SDLK_SCROLLOCK

SDLK_RSHIFT

SDLK_LSHIFT

SDLK_RCTRL

SDLK_LCTRL

SDLK_RALT

SDLK_LALT

SDLK_RMETA

SDLK_LMETA

SDLK_LSUPER

SDLK_RSUPER

SDLK_MODE

SDLK_COMPOSE

SDLK_HELP

SDLK_PRINT

SDLK_SYSREQ

SDLK_BREAK

SDLK_MENU

SDLK_POWER

SDLK_EURO

SDLK_LAST

KMOD_NONE

KMOD_LSHIFT

KMOD_RSHIFT

KMOD_LCTRL

KMOD_RCTRL

KMOD_LALT

KMOD_RALT

KMOD_LMETA

KMOD_RMETA

KMOD_NUM

KMOD_CAPS

KMOD_MODE

KMOD_RESERVED

KMOD_CTRL

KMOD_SHIFT

KMOD_ALT

KMOD_META

SDL_BUTTON_LEFT

SDL_BUTTON_MIDDLE

SDL_BUTTON_RIGHT

SDL_BUTTON_LMASK

SDL_BUTTON_MMASK

SDL_BUTTON_RMASK

SDL_HAT_CENTERED

SDL_HAT_UP

SDL_HAT_RIGHT

SDL_HAT_DOWN

SDL_HAT_LEFT

SDL_HAT_RIGHTUP

SDL_HAT_RIGHTDOWN

SDL_HAT_LEFTUP

SDL_HAT_LEFTDOWN