Mercurial > pub > dyncall > bindings
comparison R/rdyncall/inst/dynports/SDL.R @ 0:0cfcc391201f
initial from svn dyncall-1745
author | Daniel Adler |
---|---|
date | Thu, 19 Mar 2015 22:26:28 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:0cfcc391201f |
---|---|
1 # Mac OS X: this one is needed in case, we are running from Console | |
2 # and no initial event loop is available. | |
3 | |
4 # On Mac OS X Console, a Cocoa Environment is needed for SDL. | |
5 if ( Sys.info()[["sysname"]] == "Darwin" && .Platform$GUI != "AQUA") { | |
6 | |
7 # This seem to be the most practical solution for now: | |
8 # A dummy quartz device is created and closed again. | |
9 | |
10 quartz() | |
11 dev.off() | |
12 | |
13 # An alternative solution via R package 'cocoa' from dyncall site. | |
14 # source: http://dyncall.org/svn/trunk/bindings/R/cocoa | |
15 | |
16 # from: http://www.mail-archive.com/r-help@r-project.org/msg91375.html | |
17 # is.installed <- function(mypkg) is.element(mypkg, installed.packages()[,1]) | |
18 #if (!is.installed("cocoa")) { | |
19 # install.packages("cocoa",,"http://dyncall.org/r") | |
20 #} | |
21 #library(cocoa) | |
22 | |
23 # Probably on 10.3 using Carbon with older SDL: | |
24 # | |
25 # FIXME: Create NSAutoreleasePool | |
26 # if (!is.installed("CarbonEL")) { | |
27 # install.packages("CarbonEL",,"http://rforge.net") | |
28 # } | |
29 # library(CarbonEL) | |
30 } | |
31 | |
32 dynbind( c("SDL","SDL-1.2","SDL-1.2.so.0"), " | |
33 SDL_AddTimer(I*p*v)*<_SDL_TimerID>; | |
34 SDL_AllocRW()*<SDL_RWops>; | |
35 SDL_AudioDriverName(*ci)*c; | |
36 SDL_AudioInit(*c)i; | |
37 SDL_AudioQuit()v; | |
38 SDL_BuildAudioCVT(*<SDL_AudioCVT>SCiSCi)i; | |
39 SDL_CDClose(*<SDL_CD>)v; | |
40 SDL_CDEject(*<SDL_CD>)i; | |
41 SDL_CDName(i)*c; | |
42 SDL_CDNumDrives()i; | |
43 SDL_CDOpen(i)*<SDL_CD>; | |
44 SDL_CDPause(*<SDL_CD>)i; | |
45 SDL_CDPlay(*<SDL_CD>ii)i; | |
46 SDL_CDPlayTracks(*<SDL_CD>iiii)i; | |
47 SDL_CDResume(*<SDL_CD>)i; | |
48 SDL_CDStatus(*<SDL_CD>)i; | |
49 SDL_CDStop(*<SDL_CD>)i; | |
50 SDL_ClearError()v; | |
51 SDL_CloseAudio()v; | |
52 SDL_CondBroadcast(*<SDL_cond>)i; | |
53 SDL_CondSignal(*<SDL_cond>)i; | |
54 SDL_CondWait(*<SDL_cond>*<SDL_mutex>)i; | |
55 SDL_CondWaitTimeout(*<SDL_cond>*<SDL_mutex>I)i; | |
56 SDL_ConvertAudio(*<SDL_AudioCVT>)i; | |
57 SDL_ConvertSurface(*<SDL_Surface>*<SDL_PixelFormat>I)*<SDL_Surface>; | |
58 SDL_CreateCond()*<SDL_cond>; | |
59 SDL_CreateCursor(*C*Ciiii)*<SDL_Cursor>; | |
60 SDL_CreateMutex()*<SDL_mutex>; | |
61 SDL_CreateRGBSurface(IiiiIIII)*<SDL_Surface>; | |
62 SDL_CreateRGBSurfaceFrom(*viiiiIIII)*<SDL_Surface>; | |
63 SDL_CreateSemaphore(I)*<SDL_semaphore>; | |
64 SDL_CreateThread(*p*v)*<SDL_Thread>; | |
65 SDL_CreateYUVOverlay(iiI*<SDL_Surface>)*<SDL_Overlay>; | |
66 SDL_Delay(I)v; | |
67 SDL_DestroyCond(*<SDL_cond>)v; | |
68 SDL_DestroyMutex(*<SDL_mutex>)v; | |
69 SDL_DestroySemaphore(*<SDL_semaphore>)v; | |
70 SDL_DisplayFormat(*<SDL_Surface>)*<SDL_Surface>; | |
71 SDL_DisplayFormatAlpha(*<SDL_Surface>)*<SDL_Surface>; | |
72 SDL_DisplayYUVOverlay(*<SDL_Overlay>*<SDL_Rect>)i; | |
73 SDL_EnableKeyRepeat(ii)i; | |
74 SDL_EnableUNICODE(i)i; | |
75 SDL_Error(i)v; | |
76 SDL_EventState(Ci)C; | |
77 SDL_FillRect(*<SDL_Surface>*<SDL_Rect>I)i; | |
78 SDL_Flip(*<SDL_Surface>)i; | |
79 SDL_FreeCursor(*<SDL_Cursor>)v; | |
80 SDL_FreeRW(*<SDL_RWops>)v; | |
81 SDL_FreeSurface(*<SDL_Surface>)v; | |
82 SDL_FreeWAV(*C)v; | |
83 SDL_FreeYUVOverlay(*<SDL_Overlay>)v; | |
84 SDL_GL_GetAttribute(i*i)i; | |
85 SDL_GL_GetProcAddress(*c)*v; | |
86 SDL_GL_LoadLibrary(*c)i; | |
87 SDL_GL_Lock()v; | |
88 SDL_GL_SetAttribute(ii)i; | |
89 SDL_GL_SwapBuffers()v; | |
90 SDL_GL_Unlock()v; | |
91 SDL_GL_UpdateRects(i*<SDL_Rect>)v; | |
92 SDL_GetAppState()C; | |
93 SDL_GetAudioStatus()i; | |
94 SDL_GetClipRect(*<SDL_Surface>*<SDL_Rect>)v; | |
95 SDL_GetCursor()*<SDL_Cursor>; | |
96 SDL_GetError()*c; | |
97 SDL_GetEventFilter()*p; | |
98 SDL_GetGammaRamp(*S*S*S)i; | |
99 SDL_GetKeyName(i)*c; | |
100 SDL_GetKeyRepeat(*i*i)v; | |
101 SDL_GetKeyState(*i)*C; | |
102 SDL_GetModState()i; | |
103 SDL_GetMouseState(*i*i)C; | |
104 SDL_GetRGB(I*<SDL_PixelFormat>*C*C*C)v; | |
105 SDL_GetRGBA(I*<SDL_PixelFormat>*C*C*C*C)v; | |
106 SDL_GetRelativeMouseState(*i*i)C; | |
107 SDL_GetThreadID(*<SDL_Thread>)I; | |
108 SDL_GetTicks()I; | |
109 SDL_GetVideoInfo()*<SDL_VideoInfo>; | |
110 SDL_GetVideoSurface()*<SDL_Surface>; | |
111 SDL_Has3DNow()i; | |
112 SDL_Has3DNowExt()i; | |
113 SDL_HasAltiVec()i; | |
114 SDL_HasMMX()i; | |
115 SDL_HasMMXExt()i; | |
116 SDL_HasRDTSC()i; | |
117 SDL_HasSSE()i; | |
118 SDL_HasSSE2()i; | |
119 SDL_Init(I)i; | |
120 SDL_InitSubSystem(I)i; | |
121 SDL_JoystickClose(*<_SDL_Joystick>)v; | |
122 SDL_JoystickEventState(i)i; | |
123 SDL_JoystickGetAxis(*<_SDL_Joystick>i)s; | |
124 SDL_JoystickGetBall(*<_SDL_Joystick>i*i*i)i; | |
125 SDL_JoystickGetButton(*<_SDL_Joystick>i)C; | |
126 SDL_JoystickGetHat(*<_SDL_Joystick>i)C; | |
127 SDL_JoystickIndex(*<_SDL_Joystick>)i; | |
128 SDL_JoystickName(i)*c; | |
129 SDL_JoystickNumAxes(*<_SDL_Joystick>)i; | |
130 SDL_JoystickNumBalls(*<_SDL_Joystick>)i; | |
131 SDL_JoystickNumButtons(*<_SDL_Joystick>)i; | |
132 SDL_JoystickNumHats(*<_SDL_Joystick>)i; | |
133 SDL_JoystickOpen(i)*<_SDL_Joystick>; | |
134 SDL_JoystickOpened(i)i; | |
135 SDL_JoystickUpdate()v; | |
136 SDL_KillThread(*<SDL_Thread>)v; | |
137 SDL_Linked_Version()*<SDL_version>; | |
138 SDL_ListModes(*<SDL_PixelFormat>I)*; | |
139 SDL_LoadBMP_RW(*<SDL_RWops>i)*<SDL_Surface>; | |
140 SDL_LoadFunction(*v*c)*v; | |
141 SDL_LoadObject(*c)*v; | |
142 SDL_LoadWAV_RW(*<SDL_RWops>i*<SDL_AudioSpec>**I)*<SDL_AudioSpec>; | |
143 SDL_LockAudio()v; | |
144 SDL_LockSurface(*<SDL_Surface>)i; | |
145 SDL_LockYUVOverlay(*<SDL_Overlay>)i; | |
146 SDL_LowerBlit(*<SDL_Surface>*<SDL_Rect>*<SDL_Surface>*<SDL_Rect>)i; | |
147 SDL_MapRGB(*<SDL_PixelFormat>CCC)I; | |
148 SDL_MapRGBA(*<SDL_PixelFormat>CCCC)I; | |
149 SDL_MixAudio(*C*CIi)v; | |
150 SDL_NumJoysticks()i; | |
151 SDL_OpenAudio(*<SDL_AudioSpec>*<SDL_AudioSpec>)i; | |
152 SDL_PauseAudio(i)v; | |
153 SDL_PeepEvents(*<SDL_Event>iiI)i; | |
154 SDL_PollEvent(*<SDL_Event>)i; | |
155 SDL_PumpEvents()v; | |
156 SDL_PushEvent(*<SDL_Event>)i; | |
157 SDL_Quit()v; | |
158 SDL_QuitSubSystem(I)v; | |
159 SDL_RWFromConstMem(*vi)*<SDL_RWops>; | |
160 SDL_RWFromFP(*<__sFILE>i)*<SDL_RWops>; | |
161 SDL_RWFromFile(*c*c)*<SDL_RWops>; | |
162 SDL_RWFromMem(*vi)*<SDL_RWops>; | |
163 SDL_ReadBE16(*<SDL_RWops>)S; | |
164 SDL_ReadBE32(*<SDL_RWops>)I; | |
165 SDL_ReadBE64(*<SDL_RWops>)L; | |
166 SDL_ReadLE16(*<SDL_RWops>)S; | |
167 SDL_ReadLE32(*<SDL_RWops>)I; | |
168 SDL_ReadLE64(*<SDL_RWops>)L; | |
169 SDL_RemoveTimer(*<_SDL_TimerID>)i; | |
170 SDL_SaveBMP_RW(*<SDL_Surface>*<SDL_RWops>i)i; | |
171 SDL_SemPost(*<SDL_semaphore>)i; | |
172 SDL_SemTryWait(*<SDL_semaphore>)i; | |
173 SDL_SemValue(*<SDL_semaphore>)I; | |
174 SDL_SemWait(*<SDL_semaphore>)i; | |
175 SDL_SemWaitTimeout(*<SDL_semaphore>I)i; | |
176 SDL_SetAlpha(*<SDL_Surface>IC)i; | |
177 SDL_SetClipRect(*<SDL_Surface>*<SDL_Rect>)i; | |
178 SDL_SetColorKey(*<SDL_Surface>II)i; | |
179 SDL_SetColors(*<SDL_Surface>*<SDL_Color>ii)i; | |
180 SDL_SetCursor(*<SDL_Cursor>)v; | |
181 SDL_SetError(*c)v; | |
182 SDL_SetEventFilter(*p)v; | |
183 SDL_SetGamma(fff)i; | |
184 SDL_SetGammaRamp(*S*S*S)i; | |
185 SDL_SetModState(i)v; | |
186 SDL_SetPalette(*<SDL_Surface>i*<SDL_Color>ii)i; | |
187 SDL_SetTimer(I*p)i; | |
188 SDL_SetVideoMode(iiiI)*<SDL_Surface>; | |
189 SDL_ShowCursor(i)i; | |
190 SDL_SoftStretch(*<SDL_Surface>*<SDL_Rect>*<SDL_Surface>*<SDL_Rect>)i; | |
191 SDL_Swap16(S)S; | |
192 SDL_Swap32(I)I; | |
193 SDL_Swap64(L)L; | |
194 SDL_ThreadID()I; | |
195 SDL_UnloadObject(*v)v; | |
196 SDL_UnlockAudio()v; | |
197 SDL_UnlockSurface(*<SDL_Surface>)v; | |
198 SDL_UnlockYUVOverlay(*<SDL_Overlay>)v; | |
199 SDL_UpdateRect(*<SDL_Surface>iiII)v; | |
200 SDL_UpdateRects(*<SDL_Surface>i*<SDL_Rect>)v; | |
201 SDL_UpperBlit(*<SDL_Surface>*<SDL_Rect>*<SDL_Surface>*<SDL_Rect>)i; | |
202 SDL_VideoDriverName(*ci)*c; | |
203 SDL_VideoInit(*cI)i; | |
204 SDL_VideoModeOK(iiiI)i; | |
205 SDL_VideoQuit()v; | |
206 SDL_WM_GetCaption(**)v; | |
207 SDL_WM_GrabInput(i)i; | |
208 SDL_WM_IconifyWindow()i; | |
209 SDL_WM_SetCaption(*c*c)v; | |
210 SDL_WM_SetIcon(*<SDL_Surface>*C)v; | |
211 SDL_WM_ToggleFullScreen(*<SDL_Surface>)i; | |
212 SDL_WaitEvent(*<SDL_Event>)i; | |
213 SDL_WaitThread(*<SDL_Thread>*i)v; | |
214 SDL_WarpMouse(SS)v; | |
215 SDL_WasInit(I)I; | |
216 SDL_WriteBE16(*<SDL_RWops>S)i; | |
217 SDL_WriteBE32(*<SDL_RWops>I)i; | |
218 SDL_WriteBE64(*<SDL_RWops>L)i; | |
219 SDL_WriteLE16(*<SDL_RWops>S)i; | |
220 SDL_WriteLE32(*<SDL_RWops>I)i; | |
221 SDL_WriteLE64(*<SDL_RWops>L)i; | |
222 SDL_iconv(*<_SDL_iconv_t>**J**J)J; | |
223 SDL_iconv_close(*<_SDL_iconv_t>)i; | |
224 SDL_iconv_open(*c*c)*<_SDL_iconv_t>; | |
225 SDL_iconv_string(*c*c*cJ)*c; | |
226 SDL_lltoa(l*ci)*c; | |
227 SDL_ltoa(j*ci)*c; | |
228 SDL_main(i*)i; | |
229 SDL_mutexP(*<SDL_mutex>)i; | |
230 SDL_mutexV(*<SDL_mutex>)i; | |
231 SDL_strlwr(*c)*c; | |
232 SDL_strrev(*c)*c; | |
233 SDL_strupr(*c)*c; | |
234 SDL_ulltoa(L*ci)*c; | |
235 SDL_ultoa(J*ci)*c; | |
236 ") | |
237 parseStructInfos(" | |
238 SDL_Rect{ssSS}x y w h ; | |
239 SDL_version{CCC}major minor patch ; | |
240 SDL_SysWMEvent{C*<SDL_SysWMmsg>}type msg ; | |
241 SDL_SysWMmsg{}; | |
242 SDL_UserEvent{Ci*v*v}type code data1 data2 ; | |
243 SDL_QuitEvent{C}type ; | |
244 SDL_ExposeEvent{C}type ; | |
245 SDL_ResizeEvent{Cii}type w h ; | |
246 SDL_JoyButtonEvent{CCCC}type which button state ; | |
247 SDL_JoyHatEvent{CCCC}type which hat value ; | |
248 SDL_JoyBallEvent{CCCss}type which ball xrel yrel ; | |
249 SDL_JoyAxisEvent{CCCs}type which axis value ; | |
250 SDL_MouseButtonEvent{CCCCSS}type which button state x y ; | |
251 SDL_MouseMotionEvent{CCCSSss}type which state x y xrel yrel ; | |
252 SDL_keysym{CiiS}scancode sym mod unicode ; | |
253 SDL_KeyboardEvent{CCC<SDL_keysym>}type which state keysym ; | |
254 SDL_ActiveEvent{CCC}type gain state ; | |
255 WMcursor{}; | |
256 private_yuvhwdata{}; | |
257 private_yuvhwfuncs{}; | |
258 SDL_VideoInfo{IIIIIIIIIIIII*<SDL_PixelFormat>ii}hw_available wm_available UnusedBits1 UnusedBits2 blit_hw blit_hw_CC blit_hw_A blit_sw blit_sw_CC blit_sw_A blit_fill UnusedBits3 video_mem vfmt current_w current_h ; | |
259 SDL_Surface{I*<SDL_PixelFormat>iiS*vi*<private_hwdata><SDL_Rect>II*<SDL_BlitMap>Ii}flags format w h pitch pixels offset hwdata clip_rect unused1 locked map format_version refcount ; | |
260 SDL_BlitMap{}; | |
261 private_hwdata{}; | |
262 SDL_PixelFormat{*<SDL_Palette>CCCCCCCCCCIIIIIC}palette BitsPerPixel BytesPerPixel Rloss Gloss Bloss Aloss Rshift Gshift Bshift Ashift Rmask Gmask Bmask Amask colorkey alpha ; | |
263 SDL_Palette{i*<SDL_Color>}ncolors colors ; | |
264 SDL_Color{CCCC}r g b unused ; | |
265 SDL_CDtrack{CCSII}id type unused length offset ; | |
266 SDL_Thread{}; | |
267 SDL_cond{}; | |
268 SDL_semaphore{}; | |
269 SDL_mutex{}; | |
270 ") | |
271 .deactivated <- "SDL_AudioCVT{iSSd*Ciiidi}needed src_format dst_format rate_incr buf len len_cvt len_mult len_ratio filters filter_index ; | |
272 SDL_Overlay{Iiii*S**<private_yuvhwfuncs>*<private_yuvhwdata>II}format w h planes pitches pixels hwfuncs hwdata hw_overlay UnusedBits ; | |
273 SDL_Cursor{<SDL_Rect>ss*C*C*<WMcursor>}area hot_x hot_y data mask save wm_cursor ; | |
274 SDL_CD{iiiii}id status numtracks cur_track cur_frame track ; | |
275 SDL_AudioSpec{iSCCSSI*p*v}freq format channels silence samples padding size callback userdata ; | |
276 SDL_RWops{*p*p*p*pI<$_16>}seek read write close type hidden ; | |
277 imaxdiv_t{ll}quot rem ; | |
278 lldiv_t{ll}quot rem ; | |
279 ldiv_t{jj}quot rem ; | |
280 div_t{ii}quot rem ; | |
281 rlimit{LL}rlim_cur rlim_max ; | |
282 rusage{<timeval><timeval>jjjjjjjjjjjjjj}ru_utime ru_stime ru_maxrss ru_ixrss ru_idrss ru_isrss ru_minflt ru_majflt ru_nswap ru_inblock ru_oublock ru_msgsnd ru_msgrcv ru_nsignals ru_nvcsw ru_nivcsw ; | |
283 timeval{ji}tv_sec tv_usec ; | |
284 sigstack{*ci}ss_sp ss_onstack ; | |
285 sigvec{*pii}sv_handler sv_mask sv_flags ; | |
286 sigaction{<__sigaction_u>Ii}__sigaction_u sa_mask sa_flags ; | |
287 sigevent{ii<sigval>*p*<_opaque_pthread_attr_t>}sigev_notify sigev_signo sigev_value sigev_notify_function sigev_notify_attributes ; | |
288 fd_set{}fds_bits ; | |
289 " | |
290 parseUnionInfos(" | |
291 SDL_Event|C<SDL_ActiveEvent><SDL_KeyboardEvent><SDL_MouseMotionEvent><SDL_MouseButtonEvent><SDL_JoyAxisEvent><SDL_JoyBallEvent><SDL_JoyHatEvent><SDL_JoyButtonEvent><SDL_ResizeEvent><SDL_ExposeEvent><SDL_QuitEvent><SDL_UserEvent><SDL_SysWMEvent>}type active key motion button jaxis jball jhat jbutton resize expose quit user syswm ; | |
292 ") | |
293 AUDIO_S16=0x8010 | |
294 AUDIO_S16LSB=0x8010 | |
295 AUDIO_S16MSB=0x9010 | |
296 AUDIO_S16SYS=0x8010 | |
297 AUDIO_S8=0x8008 | |
298 AUDIO_U16=0x0010 | |
299 AUDIO_U16LSB=0x0010 | |
300 AUDIO_U16MSB=0x1010 | |
301 AUDIO_U16SYS=0x0010 | |
302 AUDIO_U8=0x0008 | |
303 SDLCALL= | |
304 SDL_ALLEVENTS=0xFFFFFFFF | |
305 SDL_ALL_HOTKEYS=0xFFFFFFFF | |
306 SDL_ALPHA_OPAQUE=255 | |
307 SDL_ALPHA_TRANSPARENT=0 | |
308 SDL_ANYFORMAT=0x10000000 | |
309 SDL_APPACTIVE=0x04 | |
310 SDL_APPINPUTFOCUS=0x02 | |
311 SDL_APPMOUSEFOCUS=0x01 | |
312 SDL_ASSEMBLY_ROUTINES=1 | |
313 SDL_ASYNCBLIT=0x00000004 | |
314 SDL_AUDIO_DRIVER_COREAUDIO=1 | |
315 SDL_AUDIO_DRIVER_DISK=1 | |
316 SDL_AUDIO_DRIVER_DUMMY=1 | |
317 SDL_AUDIO_DRIVER_SNDMGR=1 | |
318 SDL_AUDIO_TRACK=0x00 | |
319 SDL_AllocSurface=SDL_CreateRGBSurface | |
320 SDL_BIG_ENDIAN=4321 | |
321 SDL_BUTTON_LEFT=1 | |
322 # SDL_BUTTON_LMASK=(1 << ((1)-1)) | |
323 SDL_BUTTON_MIDDLE=2 | |
324 # SDL_BUTTON_MMASK=(1 << ((2)-1)) | |
325 SDL_BUTTON_RIGHT=3 | |
326 # SDL_BUTTON_RMASK=(1 << ((3)-1)) | |
327 SDL_BUTTON_WHEELDOWN=5 | |
328 SDL_BUTTON_WHEELUP=4 | |
329 SDL_BUTTON_X1=6 | |
330 # SDL_BUTTON_X1MASK=(1 << ((6)-1)) | |
331 SDL_BUTTON_X2=7 | |
332 # SDL_BUTTON_X2MASK=(1 << ((7)-1)) | |
333 SDL_BYTEORDER=1234 | |
334 SDL_BlitSurface=SDL_UpperBlit | |
335 SDL_CDROM_MACOSX=1 | |
336 # SDL_COMPILEDVERSION=((1)*1000 + (2)*100 + (13)) | |
337 SDL_Colour=SDL_Color | |
338 SDL_DATA_TRACK=0x04 | |
339 SDL_DEFAULT_REPEAT_DELAY=500 | |
340 SDL_DEFAULT_REPEAT_INTERVAL=30 | |
341 SDL_DISABLE=0 | |
342 SDL_DOUBLEBUF=0x40000000 | |
343 SDL_ENABLE=1 | |
344 SDL_FULLSCREEN=0x80000000 | |
345 SDL_HAS_64BIT_TYPE=1 | |
346 SDL_HAT_CENTERED=0x00 | |
347 SDL_HAT_DOWN=0x04 | |
348 SDL_HAT_LEFT=0x08 | |
349 # SDL_HAT_LEFTDOWN=(0x08|0x04) | |
350 # SDL_HAT_LEFTUP=(0x08|0x01) | |
351 SDL_HAT_RIGHT=0x02 | |
352 # SDL_HAT_RIGHTDOWN=(0x02|0x04) | |
353 # SDL_HAT_RIGHTUP=(0x02|0x01) | |
354 SDL_HAT_UP=0x01 | |
355 SDL_HWACCEL=0x00000100 | |
356 SDL_HWPALETTE=0x20000000 | |
357 SDL_HWSURFACE=0x00000001 | |
358 # SDL_ICONV_E2BIG=(size_t)-2 | |
359 # SDL_ICONV_EILSEQ=(size_t)-3 | |
360 # SDL_ICONV_EINVAL=(size_t)-4 | |
361 # SDL_ICONV_ERROR=(size_t)-1 | |
362 SDL_IGNORE=0 | |
363 SDL_INIT_AUDIO=0x00000010 | |
364 SDL_INIT_CDROM=0x00000100 | |
365 SDL_INIT_EVENTTHREAD=0x01000000 | |
366 SDL_INIT_EVERYTHING=0x0000FFFF | |
367 SDL_INIT_JOYSTICK=0x00000200 | |
368 SDL_INIT_NOPARACHUTE=0x00100000 | |
369 SDL_INIT_TIMER=0x00000001 | |
370 SDL_INIT_VIDEO=0x00000020 | |
371 SDL_INLINE_OKAY= | |
372 SDL_IYUV_OVERLAY=0x56555949 | |
373 SDL_JOYSTICK_IOKIT=1 | |
374 SDL_LIL_ENDIAN=1234 | |
375 SDL_LOADSO_DLOPEN=1 | |
376 SDL_LOGPAL=0x01 | |
377 SDL_MAJOR_VERSION=1 | |
378 SDL_MAX_TRACKS=99 | |
379 SDL_MINOR_VERSION=2 | |
380 SDL_MIX_MAXVOLUME=128 | |
381 # SDL_MUTEX_MAXWAIT=(~(Uint32)0) | |
382 SDL_MUTEX_TIMEDOUT=1 | |
383 SDL_NOFRAME=0x00000020 | |
384 SDL_OPENGL=0x00000002 | |
385 SDL_OPENGLBLIT=0x0000000A | |
386 SDL_PATCHLEVEL=13 | |
387 SDL_PHYSPAL=0x02 | |
388 SDL_PREALLOC=0x01000000 | |
389 SDL_PRESSED=1 | |
390 SDL_QUERY=-1 | |
391 SDL_RELEASED=0 | |
392 SDL_RESIZABLE=0x00000010 | |
393 SDL_RLEACCEL=0x00004000 | |
394 SDL_RLEACCELOK=0x00002000 | |
395 SDL_SRCALPHA=0x00010000 | |
396 SDL_SRCCOLORKEY=0x00001000 | |
397 SDL_SWSURFACE=0x00000000 | |
398 SDL_THREAD_PTHREAD=1 | |
399 SDL_THREAD_PTHREAD_RECURSIVE_MUTEX=1 | |
400 SDL_TIMER_UNIX=1 | |
401 SDL_TIMESLICE=10 | |
402 SDL_UYVY_OVERLAY=0x59565955 | |
403 SDL_VIDEO_DRIVER_DUMMY=1 | |
404 SDL_VIDEO_DRIVER_QUARTZ=1 | |
405 SDL_VIDEO_OPENGL=1 | |
406 SDL_YUY2_OVERLAY=0x32595559 | |
407 SDL_YV12_OVERLAY=0x32315659 | |
408 SDL_YVYU_OVERLAY=0x55595659 | |
409 #SDL_abs=abs | |
410 #SDL_atof=atof | |
411 #SDL_atoi=atoi | |
412 #SDL_calloc=calloc | |
413 #SDL_free=free | |
414 #SDL_getenv=getenv | |
415 #SDL_malloc=malloc | |
416 #SDL_memcmp=memcmp | |
417 #SDL_memmove=memmove | |
418 #SDL_memset=memset | |
419 #SDL_putenv=putenv | |
420 #SDL_qsort=qsort | |
421 #SDL_realloc=realloc | |
422 #SDL_snprintf=snprintf | |
423 #SDL_sscanf=sscanf | |
424 #SDL_strcasecmp=strcasecmp | |
425 #SDL_strchr=strchr | |
426 #SDL_strcmp=strcmp | |
427 #SDL_strdup=strdup | |
428 #SDL_strlcat=strlcat | |
429 #SDL_strlcpy=strlcpy | |
430 #SDL_strlen=strlen | |
431 #SDL_strncasecmp=strncasecmp | |
432 #SDL_strncmp=strncmp | |
433 #SDL_strrchr=strrchr | |
434 #SDL_strstr=strstr | |
435 #SDL_strtod=strtod | |
436 #SDL_strtol=strtol | |
437 #SDL_strtoll=strtoll | |
438 #SDL_strtoul=strtoul | |
439 #SDL_strtoull=strtoull | |
440 #SDL_vsnprintf=vsnprintf | |
441 | |
442 | |
443 SDL_ADDEVENT=0; | |
444 SDL_PEEKEVENT=1; | |
445 SDL_GETEVENT=2; | |
446 SDL_ACTIVEEVENTMASK=2; | |
447 SDL_KEYDOWNMASK=4; | |
448 SDL_KEYUPMASK=8; | |
449 SDL_KEYEVENTMASK=12; | |
450 SDL_MOUSEMOTIONMASK=16; | |
451 SDL_MOUSEBUTTONDOWNMASK=32; | |
452 SDL_MOUSEBUTTONUPMASK=64; | |
453 SDL_MOUSEEVENTMASK=112; | |
454 SDL_JOYAXISMOTIONMASK=128; | |
455 SDL_JOYBALLMOTIONMASK=256; | |
456 SDL_JOYHATMOTIONMASK=512; | |
457 SDL_JOYBUTTONDOWNMASK=1024; | |
458 SDL_JOYBUTTONUPMASK=2048; | |
459 SDL_JOYEVENTMASK=3968; | |
460 SDL_VIDEORESIZEMASK=65536; | |
461 SDL_VIDEOEXPOSEMASK=131072; | |
462 SDL_QUITMASK=4096; | |
463 SDL_SYSWMEVENTMASK=8192; | |
464 SDL_NOEVENT=0; | |
465 SDL_ACTIVEEVENT=1; | |
466 SDL_KEYDOWN=2; | |
467 SDL_KEYUP=3; | |
468 SDL_MOUSEMOTION=4; | |
469 SDL_MOUSEBUTTONDOWN=5; | |
470 SDL_MOUSEBUTTONUP=6; | |
471 SDL_JOYAXISMOTION=7; | |
472 SDL_JOYBALLMOTION=8; | |
473 SDL_JOYHATMOTION=9; | |
474 SDL_JOYBUTTONDOWN=10; | |
475 SDL_JOYBUTTONUP=11; | |
476 SDL_QUIT=12; | |
477 SDL_SYSWMEVENT=13; | |
478 SDL_EVENT_RESERVEDA=14; | |
479 SDL_EVENT_RESERVEDB=15; | |
480 SDL_VIDEORESIZE=16; | |
481 SDL_VIDEOEXPOSE=17; | |
482 SDL_EVENT_RESERVED2=18; | |
483 SDL_EVENT_RESERVED3=19; | |
484 SDL_EVENT_RESERVED4=20; | |
485 SDL_EVENT_RESERVED5=21; | |
486 SDL_EVENT_RESERVED6=22; | |
487 SDL_EVENT_RESERVED7=23; | |
488 SDL_USEREVENT=24; | |
489 SDL_NUMEVENTS=32; | |
490 SDL_GRAB_QUERY=-1; | |
491 SDL_GRAB_OFF=0; | |
492 SDL_GRAB_ON=1; | |
493 SDL_GRAB_FULLSCREEN=2; | |
494 SDL_GL_RED_SIZE=0; | |
495 SDL_GL_GREEN_SIZE=1; | |
496 SDL_GL_BLUE_SIZE=2; | |
497 SDL_GL_ALPHA_SIZE=3; | |
498 SDL_GL_BUFFER_SIZE=4; | |
499 SDL_GL_DOUBLEBUFFER=5; | |
500 SDL_GL_DEPTH_SIZE=6; | |
501 SDL_GL_STENCIL_SIZE=7; | |
502 SDL_GL_ACCUM_RED_SIZE=8; | |
503 SDL_GL_ACCUM_GREEN_SIZE=9; | |
504 SDL_GL_ACCUM_BLUE_SIZE=10; | |
505 SDL_GL_ACCUM_ALPHA_SIZE=11; | |
506 SDL_GL_STEREO=12; | |
507 SDL_GL_MULTISAMPLEBUFFERS=13; | |
508 SDL_GL_MULTISAMPLESAMPLES=14; | |
509 SDL_GL_ACCELERATED_VISUAL=15; | |
510 SDL_GL_SWAP_CONTROL=16; | |
511 SDLK_UNKNOWN=0; | |
512 SDLK_FIRST=0; | |
513 SDLK_BACKSPACE=8; | |
514 SDLK_TAB=9; | |
515 SDLK_CLEAR=12; | |
516 SDLK_RETURN=13; | |
517 SDLK_PAUSE=19; | |
518 SDLK_ESCAPE=27; | |
519 SDLK_SPACE=32; | |
520 SDLK_EXCLAIM=33; | |
521 SDLK_QUOTEDBL=34; | |
522 SDLK_HASH=35; | |
523 SDLK_DOLLAR=36; | |
524 SDLK_AMPERSAND=38; | |
525 SDLK_QUOTE=39; | |
526 SDLK_LEFTPAREN=40; | |
527 SDLK_RIGHTPAREN=41; | |
528 SDLK_ASTERISK=42; | |
529 SDLK_PLUS=43; | |
530 SDLK_COMMA=44; | |
531 SDLK_MINUS=45; | |
532 SDLK_PERIOD=46; | |
533 SDLK_SLASH=47; | |
534 SDLK_0=48; | |
535 SDLK_1=49; | |
536 SDLK_2=50; | |
537 SDLK_3=51; | |
538 SDLK_4=52; | |
539 SDLK_5=53; | |
540 SDLK_6=54; | |
541 SDLK_7=55; | |
542 SDLK_8=56; | |
543 SDLK_9=57; | |
544 SDLK_COLON=58; | |
545 SDLK_SEMICOLON=59; | |
546 SDLK_LESS=60; | |
547 SDLK_EQUALS=61; | |
548 SDLK_GREATER=62; | |
549 SDLK_QUESTION=63; | |
550 SDLK_AT=64; | |
551 SDLK_LEFTBRACKET=91; | |
552 SDLK_BACKSLASH=92; | |
553 SDLK_RIGHTBRACKET=93; | |
554 SDLK_CARET=94; | |
555 SDLK_UNDERSCORE=95; | |
556 SDLK_BACKQUOTE=96; | |
557 SDLK_a=97; | |
558 SDLK_b=98; | |
559 SDLK_c=99; | |
560 SDLK_d=100; | |
561 SDLK_e=101; | |
562 SDLK_f=102; | |
563 SDLK_g=103; | |
564 SDLK_h=104; | |
565 SDLK_i=105; | |
566 SDLK_j=106; | |
567 SDLK_k=107; | |
568 SDLK_l=108; | |
569 SDLK_m=109; | |
570 SDLK_n=110; | |
571 SDLK_o=111; | |
572 SDLK_p=112; | |
573 SDLK_q=113; | |
574 SDLK_r=114; | |
575 SDLK_s=115; | |
576 SDLK_t=116; | |
577 SDLK_u=117; | |
578 SDLK_v=118; | |
579 SDLK_w=119; | |
580 SDLK_x=120; | |
581 SDLK_y=121; | |
582 SDLK_z=122; | |
583 SDLK_DELETE=127; | |
584 SDLK_WORLD_0=160; | |
585 SDLK_WORLD_1=161; | |
586 SDLK_WORLD_2=162; | |
587 SDLK_WORLD_3=163; | |
588 SDLK_WORLD_4=164; | |
589 SDLK_WORLD_5=165; | |
590 SDLK_WORLD_6=166; | |
591 SDLK_WORLD_7=167; | |
592 SDLK_WORLD_8=168; | |
593 SDLK_WORLD_9=169; | |
594 SDLK_WORLD_10=170; | |
595 SDLK_WORLD_11=171; | |
596 SDLK_WORLD_12=172; | |
597 SDLK_WORLD_13=173; | |
598 SDLK_WORLD_14=174; | |
599 SDLK_WORLD_15=175; | |
600 SDLK_WORLD_16=176; | |
601 SDLK_WORLD_17=177; | |
602 SDLK_WORLD_18=178; | |
603 SDLK_WORLD_19=179; | |
604 SDLK_WORLD_20=180; | |
605 SDLK_WORLD_21=181; | |
606 SDLK_WORLD_22=182; | |
607 SDLK_WORLD_23=183; | |
608 SDLK_WORLD_24=184; | |
609 SDLK_WORLD_25=185; | |
610 SDLK_WORLD_26=186; | |
611 SDLK_WORLD_27=187; | |
612 SDLK_WORLD_28=188; | |
613 SDLK_WORLD_29=189; | |
614 SDLK_WORLD_30=190; | |
615 SDLK_WORLD_31=191; | |
616 SDLK_WORLD_32=192; | |
617 SDLK_WORLD_33=193; | |
618 SDLK_WORLD_34=194; | |
619 SDLK_WORLD_35=195; | |
620 SDLK_WORLD_36=196; | |
621 SDLK_WORLD_37=197; | |
622 SDLK_WORLD_38=198; | |
623 SDLK_WORLD_39=199; | |
624 SDLK_WORLD_40=200; | |
625 SDLK_WORLD_41=201; | |
626 SDLK_WORLD_42=202; | |
627 SDLK_WORLD_43=203; | |
628 SDLK_WORLD_44=204; | |
629 SDLK_WORLD_45=205; | |
630 SDLK_WORLD_46=206; | |
631 SDLK_WORLD_47=207; | |
632 SDLK_WORLD_48=208; | |
633 SDLK_WORLD_49=209; | |
634 SDLK_WORLD_50=210; | |
635 SDLK_WORLD_51=211; | |
636 SDLK_WORLD_52=212; | |
637 SDLK_WORLD_53=213; | |
638 SDLK_WORLD_54=214; | |
639 SDLK_WORLD_55=215; | |
640 SDLK_WORLD_56=216; | |
641 SDLK_WORLD_57=217; | |
642 SDLK_WORLD_58=218; | |
643 SDLK_WORLD_59=219; | |
644 SDLK_WORLD_60=220; | |
645 SDLK_WORLD_61=221; | |
646 SDLK_WORLD_62=222; | |
647 SDLK_WORLD_63=223; | |
648 SDLK_WORLD_64=224; | |
649 SDLK_WORLD_65=225; | |
650 SDLK_WORLD_66=226; | |
651 SDLK_WORLD_67=227; | |
652 SDLK_WORLD_68=228; | |
653 SDLK_WORLD_69=229; | |
654 SDLK_WORLD_70=230; | |
655 SDLK_WORLD_71=231; | |
656 SDLK_WORLD_72=232; | |
657 SDLK_WORLD_73=233; | |
658 SDLK_WORLD_74=234; | |
659 SDLK_WORLD_75=235; | |
660 SDLK_WORLD_76=236; | |
661 SDLK_WORLD_77=237; | |
662 SDLK_WORLD_78=238; | |
663 SDLK_WORLD_79=239; | |
664 SDLK_WORLD_80=240; | |
665 SDLK_WORLD_81=241; | |
666 SDLK_WORLD_82=242; | |
667 SDLK_WORLD_83=243; | |
668 SDLK_WORLD_84=244; | |
669 SDLK_WORLD_85=245; | |
670 SDLK_WORLD_86=246; | |
671 SDLK_WORLD_87=247; | |
672 SDLK_WORLD_88=248; | |
673 SDLK_WORLD_89=249; | |
674 SDLK_WORLD_90=250; | |
675 SDLK_WORLD_91=251; | |
676 SDLK_WORLD_92=252; | |
677 SDLK_WORLD_93=253; | |
678 SDLK_WORLD_94=254; | |
679 SDLK_WORLD_95=255; | |
680 SDLK_KP0=256; | |
681 SDLK_KP1=257; | |
682 SDLK_KP2=258; | |
683 SDLK_KP3=259; | |
684 SDLK_KP4=260; | |
685 SDLK_KP5=261; | |
686 SDLK_KP6=262; | |
687 SDLK_KP7=263; | |
688 SDLK_KP8=264; | |
689 SDLK_KP9=265; | |
690 SDLK_KP_PERIOD=266; | |
691 SDLK_KP_DIVIDE=267; | |
692 SDLK_KP_MULTIPLY=268; | |
693 SDLK_KP_MINUS=269; | |
694 SDLK_KP_PLUS=270; | |
695 SDLK_KP_ENTER=271; | |
696 SDLK_KP_EQUALS=272; | |
697 SDLK_UP=273; | |
698 SDLK_DOWN=274; | |
699 SDLK_RIGHT=275; | |
700 SDLK_LEFT=276; | |
701 SDLK_INSERT=277; | |
702 SDLK_HOME=278; | |
703 SDLK_END=279; | |
704 SDLK_PAGEUP=280; | |
705 SDLK_PAGEDOWN=281; | |
706 SDLK_F1=282; | |
707 SDLK_F2=283; | |
708 SDLK_F3=284; | |
709 SDLK_F4=285; | |
710 SDLK_F5=286; | |
711 SDLK_F6=287; | |
712 SDLK_F7=288; | |
713 SDLK_F8=289; | |
714 SDLK_F9=290; | |
715 SDLK_F10=291; | |
716 SDLK_F11=292; | |
717 SDLK_F12=293; | |
718 SDLK_F13=294; | |
719 SDLK_F14=295; | |
720 SDLK_F15=296; | |
721 SDLK_NUMLOCK=300; | |
722 SDLK_CAPSLOCK=301; | |
723 SDLK_SCROLLOCK=302; | |
724 SDLK_RSHIFT=303; | |
725 SDLK_LSHIFT=304; | |
726 SDLK_RCTRL=305; | |
727 SDLK_LCTRL=306; | |
728 SDLK_RALT=307; | |
729 SDLK_LALT=308; | |
730 SDLK_RMETA=309; | |
731 SDLK_LMETA=310; | |
732 SDLK_LSUPER=311; | |
733 SDLK_RSUPER=312; | |
734 SDLK_MODE=313; | |
735 SDLK_COMPOSE=314; | |
736 SDLK_HELP=315; | |
737 SDLK_PRINT=316; | |
738 SDLK_SYSREQ=317; | |
739 SDLK_BREAK=318; | |
740 SDLK_MENU=319; | |
741 SDLK_POWER=320; | |
742 SDLK_EURO=321; | |
743 SDLK_UNDO=322; | |
744 SDLK_LAST=323; | |
745 CD_TRAYEMPTY=0; | |
746 CD_STOPPED=1; | |
747 CD_PLAYING=2; | |
748 CD_PAUSED=3; | |
749 CD_ERROR=-1; | |
750 SDL_AUDIO_STOPPED=0; | |
751 SDL_AUDIO_PLAYING=1; | |
752 SDL_AUDIO_PAUSED=2; | |
753 SDL_ENOMEM=0; | |
754 SDL_EFREAD=1; | |
755 SDL_EFWRITE=2; | |
756 SDL_EFSEEK=3; | |
757 SDL_UNSUPPORTED=4; | |
758 SDL_LASTERROR=5; | |
759 SDL_FALSE=0; | |
760 SDL_TRUE=1; |