hedgewars/SDLh.pas
changeset 66 9643d75baf1e
parent 35 9367f246fb5f
child 70 82d93eeecebe
equal deleted inserted replaced
65:8c4c6ad6ca99 66:9643d75baf1e
   194                        end;
   194                        end;
   195 
   195 
   196      PByteArray = ^TByteArray;
   196      PByteArray = ^TByteArray;
   197      TByteArray = array[0..32767] of Byte;
   197      TByteArray = array[0..32767] of Byte;
   198 
   198 
       
   199      PSDL_Thread = Pointer;
       
   200 
   199 function  SDL_Init(flags: Longword): Integer; cdecl; external SDLLibName;
   201 function  SDL_Init(flags: Longword): Integer; cdecl; external SDLLibName;
   200 procedure SDL_Quit; cdecl; external SDLLibName;
   202 procedure SDL_Quit; cdecl; external SDLLibName;
   201 
   203 
   202 procedure SDL_Delay(msec: Longword); cdecl; external SDLLibName;
   204 procedure SDL_Delay(msec: Longword); cdecl; external SDLLibName;
   203 function  SDL_GetTicks: Longword; cdecl; external SDLLibName;
   205 function  SDL_GetTicks: Longword; cdecl; external SDLLibName;
   236 function  SDL_PollEvent(event: PSDL_Event): Integer; cdecl; external SDLLibName;
   238 function  SDL_PollEvent(event: PSDL_Event): Integer; cdecl; external SDLLibName;
   237 
   239 
   238 function  SDL_ShowCursor(toggle: Integer): Integer; cdecl; external SDLLibName;
   240 function  SDL_ShowCursor(toggle: Integer): Integer; cdecl; external SDLLibName;
   239 
   241 
   240 procedure SDL_WM_SetCaption(title: PChar; icon: PChar); cdecl; external SDLLibName;
   242 procedure SDL_WM_SetCaption(title: PChar; icon: PChar); cdecl; external SDLLibName;
       
   243 
       
   244 function  SDL_CreateThread(fn: pointer; data: pointer): PSDL_Thread; cdecl; external SDLLibName;
       
   245 procedure SDL_WaitThread(thread: PSDL_Thread; status: PInteger); cdecl; external SDLLibName;
   241 
   246 
   242 (*  TTF  *)
   247 (*  TTF  *)
   243 
   248 
   244 const {$IFDEF WIN32}
   249 const {$IFDEF WIN32}
   245       SDL_TTFLibName = 'SDL_ttf.dll';
   250       SDL_TTFLibName = 'SDL_ttf.dll';