comparison lua/luadyncall/share/dynport/SDL.dynport @ 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 :lib
2 SDL
3 .
4 :fun
5 SDL_AddTimer(I*p*v)*<_SDL_TimerID>;
6 SDL_AllocRW()*<SDL_RWops>;
7 SDL_AudioDriverName(*ci)*c;
8 SDL_AudioInit(*c)i;
9 SDL_AudioQuit()v;
10 SDL_BuildAudioCVT(*<SDL_AudioCVT>SCiSCi)i;
11 SDL_CDClose(*<SDL_CD>)v;
12 SDL_CDEject(*<SDL_CD>)i;
13 SDL_CDName(i)*c;
14 SDL_CDNumDrives()i;
15 SDL_CDOpen(i)*<SDL_CD>;
16 SDL_CDPause(*<SDL_CD>)i;
17 SDL_CDPlay(*<SDL_CD>ii)i;
18 SDL_CDPlayTracks(*<SDL_CD>iiii)i;
19 SDL_CDResume(*<SDL_CD>)i;
20 SDL_CDStatus(*<SDL_CD>)i;
21 SDL_CDStop(*<SDL_CD>)i;
22 SDL_ClearError()v;
23 SDL_CloseAudio()v;
24 SDL_CondBroadcast(*<SDL_cond>)i;
25 SDL_CondSignal(*<SDL_cond>)i;
26 SDL_CondWait(*<SDL_cond>*<SDL_mutex>)i;
27 SDL_CondWaitTimeout(*<SDL_cond>*<SDL_mutex>I)i;
28 SDL_ConvertAudio(*<SDL_AudioCVT>)i;
29 SDL_ConvertSurface(*<SDL_Surface>*<SDL_PixelFormat>I)*<SDL_Surface>;
30 SDL_CreateCond()*<SDL_cond>;
31 SDL_CreateCursor(*C*Ciiii)*<SDL_Cursor>;
32 SDL_CreateMutex()*<SDL_mutex>;
33 SDL_CreateRGBSurface(IiiiIIII)*<SDL_Surface>;
34 SDL_CreateRGBSurfaceFrom(*viiiiIIII)*<SDL_Surface>;
35 SDL_CreateSemaphore(I)*<SDL_semaphore>;
36 SDL_CreateThread(*p*v)*<SDL_Thread>;
37 SDL_CreateYUVOverlay(iiI*<SDL_Surface>)*<SDL_Overlay>;
38 SDL_Delay(I)v;
39 SDL_DestroyCond(*<SDL_cond>)v;
40 SDL_DestroyMutex(*<SDL_mutex>)v;
41 SDL_DestroySemaphore(*<SDL_semaphore>)v;
42 SDL_DisplayFormat(*<SDL_Surface>)*<SDL_Surface>;
43 SDL_DisplayFormatAlpha(*<SDL_Surface>)*<SDL_Surface>;
44 SDL_DisplayYUVOverlay(*<SDL_Overlay>*<SDL_Rect>)i;
45 SDL_EnableKeyRepeat(ii)i;
46 SDL_EnableUNICODE(i)i;
47 SDL_Error(i)v;
48 SDL_EventState(Ci)C;
49 SDL_FillRect(*<SDL_Surface>*<SDL_Rect>I)i;
50 SDL_Flip(*<SDL_Surface>)i;
51 SDL_FreeCursor(*<SDL_Cursor>)v;
52 SDL_FreeRW(*<SDL_RWops>)v;
53 SDL_FreeSurface(*<SDL_Surface>)v;
54 SDL_FreeWAV(*C)v;
55 SDL_FreeYUVOverlay(*<SDL_Overlay>)v;
56 SDL_GL_GetAttribute(i*i)i;
57 SDL_GL_GetProcAddress(*c)*v;
58 SDL_GL_LoadLibrary(*c)i;
59 SDL_GL_Lock()v;
60 SDL_GL_SetAttribute(ii)i;
61 SDL_GL_SwapBuffers()v;
62 SDL_GL_Unlock()v;
63 SDL_GL_UpdateRects(i*<SDL_Rect>)v;
64 SDL_GetAppState()C;
65 SDL_GetAudioStatus()i;
66 SDL_GetClipRect(*<SDL_Surface>*<SDL_Rect>)v;
67 SDL_GetCursor()*<SDL_Cursor>;
68 SDL_GetError()*c;
69 SDL_GetEventFilter()*p;
70 SDL_GetGammaRamp(*S*S*S)i;
71 SDL_GetKeyName(i)*c;
72 SDL_GetKeyRepeat(*i*i)v;
73 SDL_GetKeyState(*i)*C;
74 SDL_GetModState()i;
75 SDL_GetMouseState(*i*i)C;
76 SDL_GetRGB(I*<SDL_PixelFormat>*C*C*C)v;
77 SDL_GetRGBA(I*<SDL_PixelFormat>*C*C*C*C)v;
78 SDL_GetRelativeMouseState(*i*i)C;
79 SDL_GetThreadID(*<SDL_Thread>)I;
80 SDL_GetTicks()I;
81 SDL_GetVideoInfo()*<SDL_VideoInfo>;
82 SDL_GetVideoSurface()*<SDL_Surface>;
83 SDL_Has3DNow()i;
84 SDL_Has3DNowExt()i;
85 SDL_HasAltiVec()i;
86 SDL_HasMMX()i;
87 SDL_HasMMXExt()i;
88 SDL_HasRDTSC()i;
89 SDL_HasSSE()i;
90 SDL_HasSSE2()i;
91 SDL_Init(I)i;
92 SDL_InitSubSystem(I)i;
93 SDL_JoystickClose(*<_SDL_Joystick>)v;
94 SDL_JoystickEventState(i)i;
95 SDL_JoystickGetAxis(*<_SDL_Joystick>i)s;
96 SDL_JoystickGetBall(*<_SDL_Joystick>i*i*i)i;
97 SDL_JoystickGetButton(*<_SDL_Joystick>i)C;
98 SDL_JoystickGetHat(*<_SDL_Joystick>i)C;
99 SDL_JoystickIndex(*<_SDL_Joystick>)i;
100 SDL_JoystickName(i)*c;
101 SDL_JoystickNumAxes(*<_SDL_Joystick>)i;
102 SDL_JoystickNumBalls(*<_SDL_Joystick>)i;
103 SDL_JoystickNumButtons(*<_SDL_Joystick>)i;
104 SDL_JoystickNumHats(*<_SDL_Joystick>)i;
105 SDL_JoystickOpen(i)*<_SDL_Joystick>;
106 SDL_JoystickOpened(i)i;
107 SDL_JoystickUpdate()v;
108 SDL_KillThread(*<SDL_Thread>)v;
109 SDL_Linked_Version()*<SDL_version>;
110 SDL_ListModes(*<SDL_PixelFormat>I)*;
111 SDL_LoadBMP_RW(*<SDL_RWops>i)*<SDL_Surface>;
112 SDL_LoadFunction(*v*c)*v;
113 SDL_LoadObject(*c)*v;
114 SDL_LoadWAV_RW(*<SDL_RWops>i*<SDL_AudioSpec>**I)*<SDL_AudioSpec>;
115 SDL_LockAudio()v;
116 SDL_LockSurface(*<SDL_Surface>)i;
117 SDL_LockYUVOverlay(*<SDL_Overlay>)i;
118 SDL_LowerBlit(*<SDL_Surface>*<SDL_Rect>*<SDL_Surface>*<SDL_Rect>)i;
119 SDL_MapRGB(*<SDL_PixelFormat>CCC)I;
120 SDL_MapRGBA(*<SDL_PixelFormat>CCCC)I;
121 SDL_MixAudio(*C*CIi)v;
122 SDL_NumJoysticks()i;
123 SDL_OpenAudio(*<SDL_AudioSpec>*<SDL_AudioSpec>)i;
124 SDL_PauseAudio(i)v;
125 SDL_PeepEvents(*<SDL_Event>iiI)i;
126 SDL_PollEvent(*<SDL_Event>)i;
127 SDL_PumpEvents()v;
128 SDL_PushEvent(*<SDL_Event>)i;
129 SDL_Quit()v;
130 SDL_QuitSubSystem(I)v;
131 SDL_RWFromConstMem(*vi)*<SDL_RWops>;
132 SDL_RWFromFP(*<__sFILE>i)*<SDL_RWops>;
133 SDL_RWFromFile(*c*c)*<SDL_RWops>;
134 SDL_RWFromMem(*vi)*<SDL_RWops>;
135 SDL_ReadBE16(*<SDL_RWops>)S;
136 SDL_ReadBE32(*<SDL_RWops>)I;
137 SDL_ReadBE64(*<SDL_RWops>)L;
138 SDL_ReadLE16(*<SDL_RWops>)S;
139 SDL_ReadLE32(*<SDL_RWops>)I;
140 SDL_ReadLE64(*<SDL_RWops>)L;
141 SDL_RemoveTimer(*<_SDL_TimerID>)i;
142 SDL_SaveBMP_RW(*<SDL_Surface>*<SDL_RWops>i)i;
143 SDL_SemPost(*<SDL_semaphore>)i;
144 SDL_SemTryWait(*<SDL_semaphore>)i;
145 SDL_SemValue(*<SDL_semaphore>)I;
146 SDL_SemWait(*<SDL_semaphore>)i;
147 SDL_SemWaitTimeout(*<SDL_semaphore>I)i;
148 SDL_SetAlpha(*<SDL_Surface>IC)i;
149 SDL_SetClipRect(*<SDL_Surface>*<SDL_Rect>)i;
150 SDL_SetColorKey(*<SDL_Surface>II)i;
151 SDL_SetColors(*<SDL_Surface>*<SDL_Color>ii)i;
152 SDL_SetCursor(*<SDL_Cursor>)v;
153 SDL_SetError(*c)v;
154 SDL_SetEventFilter(*p)v;
155 SDL_SetGamma(fff)i;
156 SDL_SetGammaRamp(*S*S*S)i;
157 SDL_SetModState(i)v;
158 SDL_SetPalette(*<SDL_Surface>i*<SDL_Color>ii)i;
159 SDL_SetTimer(I*p)i;
160 SDL_SetVideoMode(iiiI)*<SDL_Surface>;
161 SDL_ShowCursor(i)i;
162 SDL_SoftStretch(*<SDL_Surface>*<SDL_Rect>*<SDL_Surface>*<SDL_Rect>)i;
163 SDL_Swap16(S)S;
164 SDL_Swap32(I)I;
165 SDL_Swap64(L)L;
166 SDL_ThreadID()I;
167 SDL_UnloadObject(*v)v;
168 SDL_UnlockAudio()v;
169 SDL_UnlockSurface(*<SDL_Surface>)v;
170 SDL_UnlockYUVOverlay(*<SDL_Overlay>)v;
171 SDL_UpdateRect(*<SDL_Surface>iiII)v;
172 SDL_UpdateRects(*<SDL_Surface>i*<SDL_Rect>)v;
173 SDL_UpperBlit(*<SDL_Surface>*<SDL_Rect>*<SDL_Surface>*<SDL_Rect>)i;
174 SDL_VideoDriverName(*ci)*c;
175 SDL_VideoInit(*cI)i;
176 SDL_VideoModeOK(iiiI)i;
177 SDL_VideoQuit()v;
178 SDL_WM_GetCaption(**)v;
179 SDL_WM_GrabInput(i)i;
180 SDL_WM_IconifyWindow()i;
181 SDL_WM_SetCaption(*c*c)v;
182 SDL_WM_SetIcon(*<SDL_Surface>*C)v;
183 SDL_WM_ToggleFullScreen(*<SDL_Surface>)i;
184 SDL_WaitEvent(*<SDL_Event>)i;
185 SDL_WaitThread(*<SDL_Thread>*i)v;
186 SDL_WarpMouse(SS)v;
187 SDL_WasInit(I)I;
188 SDL_WriteBE16(*<SDL_RWops>S)i;
189 SDL_WriteBE32(*<SDL_RWops>I)i;
190 SDL_WriteBE64(*<SDL_RWops>L)i;
191 SDL_WriteLE16(*<SDL_RWops>S)i;
192 SDL_WriteLE32(*<SDL_RWops>I)i;
193 SDL_WriteLE64(*<SDL_RWops>L)i;
194 SDL_iconv(*<_SDL_iconv_t>**J**J)J;
195 SDL_iconv_close(*<_SDL_iconv_t>)i;
196 SDL_iconv_open(*c*c)*<_SDL_iconv_t>;
197 SDL_iconv_string(*c*c*cJ)*c;
198 SDL_lltoa(l*ci)*c;
199 SDL_ltoa(j*ci)*c;
200 SDL_main(i*)i;
201 SDL_mutexP(*<SDL_mutex>)i;
202 SDL_mutexV(*<SDL_mutex>)i;
203 SDL_strlwr(*c)*c;
204 SDL_strrev(*c)*c;
205 SDL_strupr(*c)*c;
206 SDL_ulltoa(L*ci)*c;
207 SDL_ultoa(J*ci)*c;
208 .
209 :const
210 AUDIO_S16=0x8010
211 AUDIO_S16LSB=0x8010
212 AUDIO_S16MSB=0x9010
213 AUDIO_S16SYS=0x8010
214 AUDIO_S8=0x8008
215 AUDIO_U16=0x0010
216 AUDIO_U16LSB=0x0010
217 AUDIO_U16MSB=0x1010
218 AUDIO_U16SYS=0x0010
219 AUDIO_U8=0x0008
220 SDL_ALLEVENTS=0xFFFFFFFF
221 SDL_ALL_HOTKEYS=0xFFFFFFFF
222 SDL_ALPHA_OPAQUE=255
223 SDL_ALPHA_TRANSPARENT=0
224 SDL_ANYFORMAT=0x10000000
225 SDL_APPACTIVE=0x04
226 SDL_APPINPUTFOCUS=0x02
227 SDL_APPMOUSEFOCUS=0x01
228 SDL_ASSEMBLY_ROUTINES=1
229 SDL_ASYNCBLIT=0x00000004
230 SDL_AUDIO_DRIVER_COREAUDIO=1
231 SDL_AUDIO_DRIVER_DISK=1
232 SDL_AUDIO_DRIVER_DUMMY=1
233 SDL_AUDIO_DRIVER_SNDMGR=1
234 SDL_AUDIO_TRACK=0x00
235 SDL_INIT_AUDIO=0x00000010
236 SDL_INIT_CDROM=0x00000100
237 SDL_INIT_EVENTTHREAD=0x01000000
238 SDL_INIT_EVERYTHING=0x0000FFFF
239 SDL_INIT_JOYSTICK=0x00000200
240 SDL_INIT_NOPARACHUTE=0x00100000
241 SDL_INIT_TIMER=0x00000001
242 SDL_INIT_VIDEO=0x00000020
243 SDL_OPENGL=0x00000002
244 SDL_OPENGLBLIT=0x0000000A
245 SDL_NOFRAME=0x00000020
246 SDL_FULLSCREEN=0x80000000
247 SDL_RESIZABLE=0x00000010
248 SDL_RLEACCEL=0x00004000
249 SDL_RLEACCELOK=0x00002000
250 SDL_SRCALPHA=0x00010000
251 SDL_SRCCOLORKEY=0x00001000
252 SDL_SWSURFACE=0x00000000
253 SDL_BUTTON_LEFT=1
254 SDL_BUTTON_MIDDLE=2
255 SDL_BUTTON_RIGHT=3
256 SDL_BUTTON_WHEELDOWN=5
257 SDL_BUTTON_WHEELUP=4
258 SDL_DOUBLEBUF=0x40000000
259 SDL_FULLSCREEN=0x80000000
260 .
261 :struct
262 SDL_version{CCC}major minor patch ;
263 SDL_SysWMEvent{C*<SDL_SysWMmsg>}type msg ;
264 SDL_SysWMmsg{};
265 SDL_UserEvent{Ci*v*v}type code data1 data2 ;
266 SDL_QuitEvent{C}type ;
267 SDL_ExposeEvent{C}type ;
268 SDL_ResizeEvent{Cii}type w h ;
269 SDL_JoyButtonEvent{CCCC}type which button state ;
270 SDL_JoyHatEvent{CCCC}type which hat value ;
271 SDL_JoyBallEvent{CCCss}type which ball xrel yrel ;
272 SDL_JoyAxisEvent{CCCs}type which axis value ;
273 SDL_MouseButtonEvent{CCCCSS}type which button state x y ;
274 SDL_MouseMotionEvent{CCCSSss}type which state x y xrel yrel ;
275 SDL_KeyboardEvent{CCC<SDL_keysym>}type which state keysym ;
276 SDL_ActiveEvent{CCC}type gain state ;
277 SDL_Cursor{<SDL_Rect>ss*C*C[2]*C*<WMcursor>}area hot_x hot_y data mask save wm_cursor ;
278 WMcursor{};
279 SDL_Overlay{Iiii*S**C*<private_yuvhwfuncs>*<private_yuvhwdata>II}format w h planes pitches pixels hwfuncs hwdata hw_overlay UnusedBits ;
280 private_yuvhwdata{};
281 private_yuvhwfuncs{};
282 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 ;
283 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 ;
284 SDL_BlitMap{};
285 private_hwdata{};
286 SDL_PixelFormat{*<SDL_Palette>CCCCCCCCCCIIIIIC}palette BitsPerPixel BytesPerPixel Rloss Gloss Bloss Aloss Rshift Gshift Bshift Ashift Rmask Gmask Bmask Amask colorkey alpha ;
287 SDL_Palette{i*<SDL_Color>}ncolors colors ;
288 SDL_Color{CCCC}r g b unused ;
289 SDL_Rect{ssSS}x y w h ;
290 SDL_keysym{CiiS}scancode sym mod unicode ;
291 SDL_CD{iiiii[100]<SDL_CDtrack>}id status numtracks cur_track cur_frame track ;
292 SDL_CDtrack{CCSII}id type unused length offset ;
293 SDL_AudioCVT{iSSd*Ciiid[10]*pi}needed src_format dst_format rate_incr buf len len_cvt len_mult len_ratio filters filter_index ;
294 SDL_AudioSpec{iSCCSSI*p*v}freq format channels silence samples padding size callback userdata ;
295 SDL_RWops{*p*p*p*pI<$_16>}seek read write close type hidden ;
296 SDL_Thread{};
297 SDL_cond{};
298 SDL_semaphore{};
299 SDL_mutex{};
300 .
301 :union
302 .
303 .