hedgewars/SDLh.pas
branchqmlfrontend
changeset 10410 669bfa55cd70
parent 10406 b5fd52ac760f
child 10748 dc587913987c
equal deleted inserted replaced
10408:5fdc42ef5bcc 10410:669bfa55cd70
   841     PLongWordArray = ^TLongWordArray;
   841     PLongWordArray = ^TLongWordArray;
   842 
   842 
   843     PSDL_Thread = Pointer;
   843     PSDL_Thread = Pointer;
   844     PSDL_mutex = Pointer;
   844     PSDL_mutex = Pointer;
   845     PSDL_sem = Pointer;
   845     PSDL_sem = Pointer;
       
   846     PSDL_cond = Pointer;
   846 
   847 
   847     TSDL_GLattr = (
   848     TSDL_GLattr = (
   848         SDL_GL_RED_SIZE,
   849         SDL_GL_RED_SIZE,
   849         SDL_GL_GREEN_SIZE,
   850         SDL_GL_GREEN_SIZE,
   850         SDL_GL_BLUE_SIZE,
   851         SDL_GL_BLUE_SIZE,
  1063 function  SDL_CreateMutex: PSDL_mutex; cdecl; external SDLLibName;
  1064 function  SDL_CreateMutex: PSDL_mutex; cdecl; external SDLLibName;
  1064 procedure SDL_DestroyMutex(mutex: PSDL_mutex); cdecl; external SDLLibName;
  1065 procedure SDL_DestroyMutex(mutex: PSDL_mutex); cdecl; external SDLLibName;
  1065 function  SDL_LockMutex(mutex: PSDL_mutex): LongInt; cdecl; external SDLLibName {$IFNDEF SDL2}name 'SDL_mutexP'{$ENDIF};
  1066 function  SDL_LockMutex(mutex: PSDL_mutex): LongInt; cdecl; external SDLLibName {$IFNDEF SDL2}name 'SDL_mutexP'{$ENDIF};
  1066 function  SDL_UnlockMutex(mutex: PSDL_mutex): LongInt; cdecl; external SDLLibName {$IFNDEF SDL2}name 'SDL_mutexV'{$ENDIF};
  1067 function  SDL_UnlockMutex(mutex: PSDL_mutex): LongInt; cdecl; external SDLLibName {$IFNDEF SDL2}name 'SDL_mutexV'{$ENDIF};
  1067 
  1068 
       
  1069 function  SDL_CreateCond: PSDL_cond; cdecl; external SDLLibName;
       
  1070 procedure SDL_DestroyCond(cond: PSDL_cond); cdecl; external SDLLibName;
       
  1071 function  SDL_CondSignal(cond: PSDL_cond): LongInt; cdecl; external SDLLibName;
       
  1072 function  SDL_CondBroadcast(cond: PSDL_cond): LongInt; cdecl; external SDLLibName;
       
  1073 function  SDL_CondWait(cond: PSDL_cond; mut: PSDL_mutex): LongInt; cdecl; external SDLLibName;
       
  1074 function  SDL_CondWaitTimeout(cond: PSDL_cond; mut: PSDL_mutex; ms: Longword): LongInt; cdecl; external SDLLibName;
       
  1075 
  1068 
  1076 
  1069 function SDL_CreateSemaphore(initial_value: Longword): PSDL_sem; cdecl; external SDLLibName;
  1077 function SDL_CreateSemaphore(initial_value: Longword): PSDL_sem; cdecl; external SDLLibName;
  1070 procedure SDL_DestroySemaphore(sem: PSDL_sem); cdecl; external SDLLibName;
  1078 procedure SDL_DestroySemaphore(sem: PSDL_sem); cdecl; external SDLLibName;
  1071 function SDL_SemWait(sem: PSDL_sem): LongInt; cdecl; external SDLLibName;
  1079 function SDL_SemWait(sem: PSDL_sem): LongInt; cdecl; external SDLLibName;
  1072 function SDL_SemTryWait(sem: PSDL_sem): LongInt; cdecl; external SDLLibName;
  1080 function SDL_SemTryWait(sem: PSDL_sem): LongInt; cdecl; external SDLLibName;