hedgewars/SDLh.pas
branchwebgl
changeset 8096 453917e94e55
parent 8026 4a4f21070479
parent 8068 b35427506169
child 8833 c13ebed437cb
equal deleted inserted replaced
8053:2e836bebb518 8096:453917e94e55
    40     {$ENDIF}
    40     {$ENDIF}
    41     {$IFDEF HAIKU}
    41     {$IFDEF HAIKU}
    42         {$linklib root}
    42         {$linklib root}
    43     {$ELSE}
    43     {$ELSE}
    44         {$IFNDEF ANDROID}
    44         {$IFNDEF ANDROID}
    45         {$linklib pthread}
    45             {$linklib pthread}
    46     {$ENDIF}
    46         {$ENDIF}
    47     {$ENDIF}
    47     {$ENDIF}
    48 {$ENDIF}
    48 {$ENDIF}
    49 
    49 
    50 {$IFDEF FPC}
    50 {$IFDEF FPC}
    51     {$PACKRECORDS C}
    51     {$PACKRECORDS C}
  1018 
  1018 
  1019 function  TTF_RenderUTF8_Solid(font: PTTF_Font; const text: PChar; fg: TSDL_Color): PSDL_Surface; cdecl; external SDL_TTFLibName;
  1019 function  TTF_RenderUTF8_Solid(font: PTTF_Font; const text: PChar; fg: TSDL_Color): PSDL_Surface; cdecl; external SDL_TTFLibName;
  1020 function  TTF_RenderUTF8_Blended(font: PTTF_Font; const text: PChar; fg: TSDL_Color): PSDL_Surface; cdecl; external SDL_TTFLibName;
  1020 function  TTF_RenderUTF8_Blended(font: PTTF_Font; const text: PChar; fg: TSDL_Color): PSDL_Surface; cdecl; external SDL_TTFLibName;
  1021 function  TTF_RenderUTF8_Shaded(font: PTTF_Font; const text: PChar; fg, bg: TSDL_Color): PSDL_Surface; cdecl; external SDL_TTFLibName;
  1021 function  TTF_RenderUTF8_Shaded(font: PTTF_Font; const text: PChar; fg, bg: TSDL_Color): PSDL_Surface; cdecl; external SDL_TTFLibName;
  1022 
  1022 
  1023 function  TTF_OpenFont(const filename: PChar; size: LongInt): PTTF_Font; cdecl; external SDL_TTFLibName;
  1023 function  TTF_OpenFontRW(src: PSDL_RWops; freesrc: LongBool; size: LongInt): PTTF_Font; cdecl; external SDL_TTFLibName;
  1024 procedure TTF_SetFontStyle(font: PTTF_Font; style: LongInt); cdecl; external SDL_TTFLibName;
  1024 procedure TTF_SetFontStyle(font: PTTF_Font; style: LongInt); cdecl; external SDL_TTFLibName;
  1025 
  1025 
  1026 (*  SDL_mixer  *)
  1026 (*  SDL_mixer  *)
  1027 function  Mix_Init(flags: LongInt): LongInt; {$IFDEF SDL_MIXER_NEWER}cdecl; external SDL_MixerLibName;{$ENDIF}
  1027 function  Mix_Init(flags: LongInt): LongInt; {$IFDEF SDL_MIXER_NEWER}cdecl; external SDL_MixerLibName;{$ENDIF}
  1028 procedure Mix_Quit; {$IFDEF SDL_MIXER_NEWER}cdecl; external SDL_MixerLibName;{$ENDIF}
  1028 procedure Mix_Quit; {$IFDEF SDL_MIXER_NEWER}cdecl; external SDL_MixerLibName;{$ENDIF}
  1038 function  Mix_AllocateChannels(numchans: LongInt): LongInt; cdecl; external SDL_MixerLibName;
  1038 function  Mix_AllocateChannels(numchans: LongInt): LongInt; cdecl; external SDL_MixerLibName;
  1039 procedure Mix_FreeChunk(chunk: PMixChunk); cdecl; external SDL_MixerLibName;
  1039 procedure Mix_FreeChunk(chunk: PMixChunk); cdecl; external SDL_MixerLibName;
  1040 procedure Mix_FreeMusic(music: PMixMusic); cdecl; external SDL_MixerLibName;
  1040 procedure Mix_FreeMusic(music: PMixMusic); cdecl; external SDL_MixerLibName;
  1041 
  1041 
  1042 function  Mix_LoadWAV_RW(src: PSDL_RWops; freesrc: LongInt): PMixChunk; cdecl; external SDL_MixerLibName;
  1042 function  Mix_LoadWAV_RW(src: PSDL_RWops; freesrc: LongInt): PMixChunk; cdecl; external SDL_MixerLibName;
  1043 function  Mix_LoadMUS(const filename: PChar): PMixMusic; cdecl; external SDL_MixerLibName;
  1043 function  Mix_LoadMUS_RW(src: PSDL_RWops): PMixMusic; cdecl; external SDL_MixerLibName;
  1044 
  1044 
  1045 function  Mix_Playing(channel: LongInt): LongInt; cdecl; external SDL_MixerLibName;
  1045 function  Mix_Playing(channel: LongInt): LongInt; cdecl; external SDL_MixerLibName;
  1046 function  Mix_PlayingMusic: LongInt; cdecl; external SDL_MixerLibName;
  1046 function  Mix_PlayingMusic: LongInt; cdecl; external SDL_MixerLibName;
  1047 function  Mix_FadeInMusic(music: PMixMusic; loops: LongInt; ms: LongInt): LongInt; cdecl; external SDL_MixerLibName;
  1047 function  Mix_FadeInMusic(music: PMixMusic; loops: LongInt; ms: LongInt): LongInt; cdecl; external SDL_MixerLibName;
  1048 
  1048 
  1062 (*  SDL_image  *)
  1062 (*  SDL_image  *)
  1063 function  IMG_Init(flags: LongInt): LongInt; {$IFDEF SDL_IMAGE_NEWER}cdecl; external SDL_ImageLibName;{$ENDIF}
  1063 function  IMG_Init(flags: LongInt): LongInt; {$IFDEF SDL_IMAGE_NEWER}cdecl; external SDL_ImageLibName;{$ENDIF}
  1064 procedure IMG_Quit; {$IFDEF SDL_IMAGE_NEWER}cdecl; external SDL_ImageLibName;{$ENDIF}
  1064 procedure IMG_Quit; {$IFDEF SDL_IMAGE_NEWER}cdecl; external SDL_ImageLibName;{$ENDIF}
  1065 
  1065 
  1066 function  IMG_Load(const _file: PChar): PSDL_Surface; cdecl; external SDL_ImageLibName;
  1066 function  IMG_Load(const _file: PChar): PSDL_Surface; cdecl; external SDL_ImageLibName;
  1067 function  IMG_Load_RW(rwop: PSDL_RWops; freesrc: LongInt): PSDL_Surface; cdecl; external SDL_ImageLibName;
  1067 function  IMG_Load_RW(rwop: PSDL_RWops; freesrc: LongBool): PSDL_Surface; cdecl; external SDL_ImageLibName;
  1068 function  IMG_LoadPNG_RW(rwop: PSDL_RWops): PSDL_Surface; cdecl; external SDL_ImageLibName;
  1068 function  IMG_LoadPNG_RW(rwop: PSDL_RWops): PSDL_Surface; cdecl; external SDL_ImageLibName;
  1069 function  IMG_LoadTyped_RW(rwop: PSDL_RWops; freesrc: LongInt; type_: PChar): PSDL_Surface; cdecl; external SDL_ImageLibName;
  1069 function  IMG_LoadTyped_RW(rwop: PSDL_RWops; freesrc: LongBool; type_: PChar): PSDL_Surface; cdecl; external SDL_ImageLibName;
  1070 
  1070 
  1071 (*  SDL_net  *)
  1071 (*  SDL_net  *)
  1072 function  SDLNet_Init: LongInt; cdecl; external SDL_NetLibName;
  1072 function  SDLNet_Init: LongInt; cdecl; external SDL_NetLibName;
  1073 procedure SDLNet_Quit; cdecl; external SDL_NetLibName;
  1073 procedure SDLNet_Quit; cdecl; external SDL_NetLibName;
  1074 
  1074