DEADSOFTWARE

mixer: allow to use sdl 1.2 + sdl_mixer
[d2df-sdl.git] / src / lib / sdl / powersdl.inc
2 var PowerSDLBase : pLibrary;
4 const
5 POWERSDLNAME : PChar = 'powersdl.library';
7 function SDL_Init(flags : DWord) : LongInt; syscall basesysv PowerSDLBase 028;
8 procedure SDL_RealQuit; syscall basesysv PowerSDLBase 034;
9 function SDL_InitSubSystem(flags : DWord) : LongInt; syscall basesysv PowerSDLBase 040;
10 procedure SDL_QuitSubSystem(flags : DWord); syscall basesysv PowerSDLBase 046;
11 function SDL_WasInit(flags : DWord) : DWord; syscall basesysv PowerSDLBase 052;
12 function SDL_RWFromFile(const file_ : pChar; const mode : pChar) : pSDL_RWops; syscall basesysv PowerSDLBase 058;
13 function SDL_RWFromMem(mem : Pointer; size : LongInt) : pSDL_RWops; syscall basesysv PowerSDLBase 070;
14 function SDL_AllocRW : pSDL_RWops; syscall basesysv PowerSDLBase 076;
15 procedure SDL_FreeRW(area : pSDL_RWops); syscall basesysv PowerSDLBase 082;
16 function SDL_LoadBMP_RW(src : pSDL_RWops; freesrc : LongInt) : pSDL_Surface; syscall basesysv PowerSDLBase 088;
17 function SDL_DisplayFormat(surface : pSDL_Surface) : pSDL_Surface; syscall basesysv PowerSDLBase 094;
18 procedure SDL_FreeSurface(surface : pSDL_Surface); syscall basesysv PowerSDLBase 100;
19 function SDL_FillRect(dst : pSDL_Surface; dstrect : pSDL_Rect; color : DWord) : LongInt; syscall basesysv PowerSDLBase 106;
20 function SDL_UpperBlit(src : pSDL_Surface; srcrect : pSDL_Rect; dst : pSDL_Surface; dstrect : pSDL_Rect) : LongInt; syscall basesysv PowerSDLBase 112;
21 function SDL_Flip(screen : pSDL_Surface) : LongInt; syscall basesysv PowerSDLBase 118;
22 procedure SDL_UpdateRects(screen : pSDL_Surface; numrects : LongInt; rects : pSDL_Rect); syscall basesysv PowerSDLBase 124;
23 procedure SDL_UpdateRect(screen : pSDL_Surface; x : LongInt; y : LongInt; w : DWord; h : DWord); syscall basesysv PowerSDLBase 130;
24 function SDL_SetVideoMode(width : LongInt; height : LongInt; bpp : LongInt; flags : DWord) : pSDL_Surface; syscall basesysv PowerSDLBase 142;
25 function SDL_MapRGB(format : pSDL_PixelFormat; r : Byte; g : Byte; b : Byte) : DWord; syscall basesysv PowerSDLBase 148;
26 function SDL_MapRGBA(format : pSDL_PixelFormat; r : Byte; g : Byte; b : Byte; a : Byte) : DWord; syscall basesysv PowerSDLBase 154;
27 function SDL_VideoDriverName(namebuf : pChar; maxlen : LongInt) : pChar; syscall basesysv PowerSDLBase 160;
28 function SDL_GetVideoSurface : pSDL_Surface; syscall basesysv PowerSDLBase 166;
29 function SDL_VideoModeOK(width : LongInt; height : LongInt; bpp : LongInt; flags : DWord) : LongInt; syscall basesysv PowerSDLBase 172;
30 function SDL_ListModes(format : pSDL_PixelFormat; flags : DWord) : ppSDL_Rect; syscall basesysv PowerSDLBase 178;
31 function SDL_SetGamma(red : LongInt; green : LongInt; blue : LongInt) : LongInt; syscall basesysv PowerSDLBase 184;
32 function SDL_SetGammaRamp(const red : LongInt; const green : LongInt; const blue : LongInt) : LongInt; syscall basesysv PowerSDLBase 190;
33 function SDL_GetGammaRamp(var red : Word; var green : Word; var blue : Word) : LongInt; syscall basesysv PowerSDLBase 196;
34 function SDL_SetColors(surface : pSDL_Surface; colors : pSDL_Color; firstcolor : LongInt; ncolors : LongInt) : LongInt; syscall basesysv PowerSDLBase 202;
35 function SDL_SetPalette(surface : pSDL_Surface; flags : LongInt; colors : pSDL_Color; firstcolor : LongInt; ncolors : LongInt) : LongInt; syscall basesysv PowerSDLBase 208;
36 procedure SDL_GetRGB(pixel : DWord; format : pSDL_PixelFormat; r : pChar; g : pChar; b : pChar); syscall basesysv PowerSDLBase 214;
37 procedure SDL_GetRGBA(pixel : DWord; format : pSDL_PixelFormat; r : pChar; g : pChar; b : pChar; a : pChar); syscall basesysv PowerSDLBase 220;
38 function SDL_CreateRGBSurface(flags : DWord; width : LongInt; height : LongInt; depth : LongInt; Rmask : DWord; Gmask : DWord; Bmask : DWord; Amask : DWord) : pSDL_Surface; syscall basesysv PowerSDLBase 226;
39 function SDL_CreateRGBSurfaceFrom(pixels : Pointer; width : LongInt; height : LongInt; depth : LongInt; pitch : LongInt; Rmask : DWord; Gmask : DWord; Bmask : DWord; Amask : DWord) : pSDL_Surface; syscall basesysv PowerSDLBase 232;
40 function SDL_LockSurface(surface : pSDL_Surface) : LongInt; syscall basesysv PowerSDLBase 238;
41 procedure SDL_UnlockSurface(surface : pSDL_Surface); syscall basesysv PowerSDLBase 244;
42 function SDL_SaveBMP_RW(surface : pSDL_Surface; dst : pSDL_RWops; freedst : LongInt) : LongInt; syscall basesysv PowerSDLBase 250;
43 function SDL_SetColorKey(surface : pSDL_Surface; flag : DWord; key : DWord) : LongInt; syscall basesysv PowerSDLBase 256;
44 function SDL_SetAlpha(surface : pSDL_Surface; flag : DWord; alpha : Byte) : LongInt; syscall basesysv PowerSDLBase 262;
45 function SDL_SetClipRect(surface : pSDL_Surface; const rect : LongInt) : LongInt; syscall basesysv PowerSDLBase 268;
46 procedure SDL_GetClipRect(surface : pSDL_Surface; rect : pSDL_Rect); syscall basesysv PowerSDLBase 274;
47 function SDL_ConvertSurface(src : pSDL_Surface; fmt : pSDL_PixelFormat; flags : DWord) : pSDL_Surface; syscall basesysv PowerSDLBase 280;
48 function SDL_DisplayFormatAlpha(surface : pSDL_Surface) : pSDL_Surface; syscall basesysv PowerSDLBase 286;
49 function SDL_CreateYUVOverlay(width : LongInt; height : LongInt; format : DWord; display : pSDL_Surface) : pSDL_Overlay; syscall basesysv PowerSDLBase 292;
50 function SDL_LockYUVOverlay(overlay : pSDL_Overlay) : LongInt; syscall basesysv PowerSDLBase 298;
51 procedure SDL_UnlockYUVOverlay(overlay : pSDL_Overlay); syscall basesysv PowerSDLBase 304;
52 function SDL_DisplayYUVOverlay(overlay : pSDL_Overlay; dstrect : pSDL_Rect) : LongInt; syscall basesysv PowerSDLBase 310;
53 procedure SDL_FreeYUVOverlay(overlay : pSDL_Overlay); syscall basesysv PowerSDLBase 316;
54 function SDL_GL_LoadLibrary(const path : pChar) : LongInt; syscall basesysv PowerSDLBase 322;
55 function SDL_GL_GetProcAddress(const proc : pChar) : Pointer; syscall basesysv PowerSDLBase 328;
56 function SDL_GL_SetAttribute(attr : LongInt; value : LongInt) : LongInt; syscall basesysv PowerSDLBase 334;
57 function SDL_GL_GetAttribute(attr : LongInt; value : pLongInt) : LongInt; syscall basesysv PowerSDLBase 340;
58 procedure SDL_GL_SwapBuffers; syscall basesysv PowerSDLBase 346;
59 procedure SDL_GL_UpdateRects(numrects : LongInt; rects : pSDL_Rect); syscall basesysv PowerSDLBase 352;
60 procedure SDL_GL_Lock; syscall basesysv PowerSDLBase 358;
61 procedure SDL_GL_Unlock; syscall basesysv PowerSDLBase 364;
62 procedure SDL_WM_SetCaption(const title : pChar; const icon : pChar); syscall basesysv PowerSDLBase 370;
63 procedure SDL_WM_GetCaption(var title : pShortInt; var icon : pShortInt); syscall basesysv PowerSDLBase 376;
64 procedure SDL_WM_SetIcon(icon : pSDL_Surface; mask : pChar); syscall basesysv PowerSDLBase 382;
65 function SDL_WM_IconifyWindow : LongInt; syscall basesysv PowerSDLBase 388;
66 function SDL_WM_ToggleFullScreen(surface : pSDL_Surface) : LongInt; syscall basesysv PowerSDLBase 394;
67 function SDL_WM_GrabInput(mode : LongInt) : LongInt; syscall basesysv PowerSDLBase 400;
68 function SDL_GetTicks : DWord; syscall basesysv PowerSDLBase 406;
69 procedure SDL_Delay(ms : DWord); syscall basesysv PowerSDLBase 412;
70 function SDL_SetTimer(interval : DWord; callback : TProcedure) : LongInt; syscall basesysv PowerSDLBase 418;
71 function SDL_AddTimer(interval : DWord; callback : TProcedure; param : Pointer) : tSDL_TimerID; syscall basesysv PowerSDLBase 424;
72 function SDL_RemoveTimer(t : tSDL_TimerID) : LongInt; syscall basesysv PowerSDLBase 430;
73 procedure SDL_PumpEvents; syscall basesysv PowerSDLBase 436;
74 function SDL_PollEvent(event : pLongInt) : LongInt; syscall basesysv PowerSDLBase 442;
75 function SDL_WaitEvent(event : pLongInt) : LongInt; syscall basesysv PowerSDLBase 448;
76 function SDL_PeepEvents(events : pLongInt; numevents : LongInt; action : LongInt; mask : DWord) : LongInt; syscall basesysv PowerSDLBase 454;
77 function SDL_PushEvent(event : pLongInt) : LongInt; syscall basesysv PowerSDLBase 460;
78 procedure SDL_SetEventFilter(filter : Pointer); syscall basesysv PowerSDLBase 466;
79 function SDL_GetEventFilter : Pointer; syscall basesysv PowerSDLBase 472;
80 function SDL_EventState(type_ : Byte; state : LongInt) : Byte; syscall basesysv PowerSDLBase 478;
81 function SDL_NumJoysticks : LongInt; syscall basesysv PowerSDLBase 484;
82 function SDL_JoystickName(device_index : LongInt) : pChar; syscall basesysv PowerSDLBase 490;
83 function SDL_JoystickOpen(device_index : LongInt) : pSDL_Joystick; syscall basesysv PowerSDLBase 496;
84 function SDL_JoystickOpened(device_index : LongInt) : LongInt; syscall basesysv PowerSDLBase 502;
85 function SDL_JoystickIndex(joystick : pSDL_Joystick) : LongInt; syscall basesysv PowerSDLBase 508;
86 function SDL_JoystickNumAxes(joystick : pSDL_Joystick) : LongInt; syscall basesysv PowerSDLBase 514;
87 function SDL_JoystickNumBalls(joystick : pSDL_Joystick) : LongInt; syscall basesysv PowerSDLBase 520;
88 function SDL_JoystickNumHats(joystick : pSDL_Joystick) : LongInt; syscall basesysv PowerSDLBase 526;
89 function SDL_JoystickNumButtons(joystick : pSDL_Joystick) : LongInt; syscall basesysv PowerSDLBase 532;
90 procedure SDL_JoystickUpdate; syscall basesysv PowerSDLBase 538;
91 function SDL_JoystickEventState(state : LongInt) : LongInt; syscall basesysv PowerSDLBase 544;
92 function SDL_JoystickGetAxis(joystick : pSDL_Joystick; axis : LongInt) : Integer; syscall basesysv PowerSDLBase 550;
93 function SDL_JoystickGetHat(joystick : pSDL_Joystick; hat : LongInt) : Byte; syscall basesysv PowerSDLBase 556;
94 function SDL_JoystickGetBall(joystick : pSDL_Joystick; ball : LongInt; dx : pLongInt; dy : pLongInt) : LongInt; syscall basesysv PowerSDLBase 562;
95 function SDL_JoystickGetButton(joystick : pSDL_Joystick; button : LongInt) : Byte; syscall basesysv PowerSDLBase 568;
96 procedure SDL_JoystickClose(joystick : pSDL_Joystick); syscall basesysv PowerSDLBase 574;
97 function SDL_EnableUNICODE(enable : LongInt) : LongInt; syscall basesysv PowerSDLBase 580;
98 function SDL_EnableKeyRepeat(delay : LongInt; interval : LongInt) : LongInt; syscall basesysv PowerSDLBase 586;
99 function SDL_GetKeyState(numkeys : pLongInt) : pChar; syscall basesysv PowerSDLBase 592;
100 function SDL_GetModState : LongInt; syscall basesysv PowerSDLBase 598;
101 procedure SDL_SetModState(modstate : LongInt); syscall basesysv PowerSDLBase 604;
102 function SDL_GetKeyName(key : LongInt) : pChar; syscall basesysv PowerSDLBase 610;
103 function SDL_GetMouseState(x : pLongInt; y : pLongInt) : Byte; syscall basesysv PowerSDLBase 616;
104 function SDL_GetRelativeMouseState(x : pLongInt; y : pLongInt) : Byte; syscall basesysv PowerSDLBase 622;
105 procedure SDL_WarpMouse(x : Word; y : Word); syscall basesysv PowerSDLBase 628;
106 function SDL_CreateCursor(data : pChar; mask : pChar; w : LongInt; h : LongInt; hot_x : LongInt; hot_y : LongInt) : pSDL_Cursor; syscall basesysv PowerSDLBase 634;
107 procedure SDL_SetCursor(cursor : pSDL_Cursor); syscall basesysv PowerSDLBase 640;
108 function SDL_GetCursor : pSDL_Cursor; syscall basesysv PowerSDLBase 646;
109 procedure SDL_FreeCursor(cursor : pSDL_Cursor); syscall basesysv PowerSDLBase 652;
110 function SDL_ShowCursor(toggle : LongInt) : LongInt; syscall basesysv PowerSDLBase 658;
111 function SDL_GetAppState : Byte; syscall basesysv PowerSDLBase 664;
112 procedure SDL_SetError(fmt: PChar); syscall basesysv PowerSDLBase 670;
113 function SDL_GetError : pChar; syscall basesysv PowerSDLBase 676;
114 procedure SDL_ClearError; syscall basesysv PowerSDLBase 682;
115 function SDL_AudioInit(const driver_name : pChar) : LongInt; syscall basesysv PowerSDLBase 688;
116 procedure SDL_AudioQuit; syscall basesysv PowerSDLBase 694;
117 function SDL_AudioDriverName(namebuf : pChar; maxlen : LongInt) : pChar; syscall basesysv PowerSDLBase 700;
118 function SDL_OpenAudio(desired : pSDL_AudioSpec; obtained : pSDL_AudioSpec) : LongInt; syscall basesysv PowerSDLBase 706;
119 function SDL_GetAudioStatus : LongInt; syscall basesysv PowerSDLBase 712;
120 procedure SDL_PauseAudio(pause_on : LongInt); syscall basesysv PowerSDLBase 718;
121 function SDL_LoadWAV_RW(src : pSDL_RWops; freesrc : LongInt; spec : pSDL_AudioSpec; audio_buf : pByte; audio_len : PDWord) : pSDL_AudioSpec; syscall basesysv PowerSDLBase 724;
122 procedure SDL_FreeWAV(audio_buf : pChar); syscall basesysv PowerSDLBase 730;
123 function SDL_BuildAudioCVT(cvt : pSDL_AudioCVT; src_format : Word; src_channels : Byte; src_rate : LongInt; dst_format : Word; dst_channels : Byte; dst_rate : LongInt) : LongInt; syscall basesysv PowerSDLBase 736;
124 function SDL_ConvertAudio(cvt : pSDL_AudioCVT) : LongInt; syscall basesysv PowerSDLBase 742;
125 procedure SDL_MixAudio(dst : pChar; const src : LongInt; len : DWord; volume : LongInt); syscall basesysv PowerSDLBase 748;
126 procedure SDL_LockAudio; syscall basesysv PowerSDLBase 754;
127 procedure SDL_UnlockAudio; syscall basesysv PowerSDLBase 760;
128 procedure SDL_CloseAudio; syscall basesysv PowerSDLBase 766;
129 function SDL_CreateThread(fn : TProcedure; data : Pointer) : pSDL_Thread; syscall basesysv PowerSDLBase 772;
130 function SDL_ThreadID : DWord; syscall basesysv PowerSDLBase 778;
131 function SDL_GetThreadID(thread : pSDL_Thread) : DWord; syscall basesysv PowerSDLBase 784;
132 procedure SDL_WaitThread(thread : pSDL_Thread; status : pLongInt); syscall basesysv PowerSDLBase 790;
133 procedure SDL_KillThread(thread : pSDL_Thread); syscall basesysv PowerSDLBase 796;
134 function SDL_SoftStretch(src : pSDL_Surface; srcrect : pSDL_Rect; dest : pSDL_Surface; dstrect : pSDL_Rect) : LongInt; syscall basesysv PowerSDLBase 808;
135 function SDL_UNIX2AMIGA(const file_ : pChar) : pChar; syscall basesysv PowerSDLBase 814;
136 function SDL_AMIGA_RWFromFile(const file_ : pChar; const mode : pChar) : pSDL_RWops; syscall basesysv PowerSDLBase 820;
137 function SDL_AMIGA_RWFromFP(fp : LongInt; autoclose : LongInt) : pSDL_RWops; syscall basesysv PowerSDLBase 826;
138 function SDL_CDNumDrives : LongInt; syscall basesysv PowerSDLBase 832;
139 function SDL_CDName(drive : LongInt) : pChar; syscall basesysv PowerSDLBase 838;
140 function SDL_CDOpen(drive : LongInt) : pSDL_CD; syscall basesysv PowerSDLBase 844;
141 function SDL_CDStatus(cdrom : pSDL_CD) : LongInt; syscall basesysv PowerSDLBase 850;
142 function SDL_CDPlay(cdrom : pSDL_CD; sframe : LongInt; length : LongInt) : LongInt; syscall basesysv PowerSDLBase 856;
143 function SDL_CDPause(cdrom : pSDL_CD) : LongInt; syscall basesysv PowerSDLBase 862;
144 function SDL_CDResume(cdrom : pSDL_CD) : LongInt; syscall basesysv PowerSDLBase 868;
145 function SDL_CDStop(cdrom : pSDL_CD) : LongInt; syscall basesysv PowerSDLBase 874;
146 function SDL_CDEject(cdrom : pSDL_CD) : LongInt; syscall basesysv PowerSDLBase 880;
147 procedure SDL_CDClose(cdrom : pSDL_CD); syscall basesysv PowerSDLBase 886;
148 function SDL_CreateMutex : pSDL_mutex; syscall basesysv PowerSDLBase 892;
149 procedure SDL_DestroyMutex(mutex : pSDL_mutex); syscall basesysv PowerSDLBase 898;
150 function SDL_mutexP(mutex : pSDL_mutex) : LongInt; syscall basesysv PowerSDLBase 904;
151 function SDL_mutexV(mutex : pSDL_mutex) : LongInt; syscall basesysv PowerSDLBase 910;
152 function SDL_CreateSemaphore(initial_value : DWord) : pSDL_semaphore; syscall basesysv PowerSDLBase 916;
153 procedure SDL_DestroySemaphore(sem : pSDL_semaphore); syscall basesysv PowerSDLBase 922;
154 function SDL_SemTryWait(sem : pSDL_semaphore) : LongInt; syscall basesysv PowerSDLBase 928;
155 function SDL_SemWaitTimeout(sem : pSDL_semaphore; timeout : DWord) : LongInt; syscall basesysv PowerSDLBase 934;
156 function SDL_SemWait(sem : pSDL_semaphore) : LongInt; syscall basesysv PowerSDLBase 940;
157 function SDL_SemValue(sem : pSDL_semaphore) : DWord; syscall basesysv PowerSDLBase 946;
158 function SDL_SemPost(sem : pSDL_semaphore) : LongInt; syscall basesysv PowerSDLBase 952;
159 procedure SDL_Error(code : TSDL_errorcode); syscall basesysv PowerSDLBase 958;
160 function SDL_CreateCond : pSDL_cond; syscall basesysv PowerSDLBase 964;
161 procedure SDL_DestroyCond(cond : pSDL_cond); syscall basesysv PowerSDLBase 970;
162 function SDL_CondSignal(cond : pSDL_cond) : LongInt; syscall basesysv PowerSDLBase 976;
163 function SDL_CondBroadcast(cond : pSDL_cond) : LongInt; syscall basesysv PowerSDLBase 982;
164 function SDL_CondWaitTimeout(cond : pSDL_cond; mutex : pSDL_mutex; ms : DWord) : LongInt; syscall basesysv PowerSDLBase 988;
165 function SDL_CondWait(cond : pSDL_cond; mutex : pSDL_mutex) : LongInt; syscall basesysv PowerSDLBase 994;
166 procedure SDL_InitTGL(var glc : Pointer; var tgl : Pointer); syscall basesysv PowerSDLBase 1000;
167 function SDL_HasAltiVec : LongInt; syscall basesysv PowerSDLBase 1096;
168 function SDL_HasRDTSC : LongInt; syscall basesysv PowerSDLBase 1102;
169 function SDL_HasMMX : LongInt; syscall basesysv PowerSDLBase 1108;
170 function SDL_Has3DNow : LongInt; syscall basesysv PowerSDLBase 1114;
171 function SDL_HasSSE : LongInt; syscall basesysv PowerSDLBase 1120;
172 function SDL_HasMMXExt : LongInt; syscall basesysv PowerSDLBase 1126;
173 function SDL_Has3DNowExt : LongInt; syscall basesysv PowerSDLBase 1132;
174 function SDL_HasSSE2 : LongInt; syscall basesysv PowerSDLBase 1138;
175 function SDL_LowerBlit(src : pSDL_Surface; srcrect : pSDL_Rect; dst : pSDL_Surface; dstrect : pSDL_Rect) : LongInt; syscall basesysv PowerSDLBase 1144;
176 function SDL_CDPlayTracks(cdrom : pSDL_CD; strack : LongInt; sframe : LongInt; ntracks : LongInt; nframes : LongInt) : LongInt; syscall basesysv PowerSDLBase 1150;
177 procedure SDL_OpenPrefs; syscall basesysv PowerSDLBase 1156;