hedgewars/SDLh.pas
changeset 5177 b850b544addc
parent 5103 7beb0311b7f1
child 5187 b01ab1ef01fb
equal deleted inserted replaced
5176:b9539115608d 5177:b850b544addc
   765 {$IFDEF SDL13}
   765 {$IFDEF SDL13}
   766 function  SDL_CreateWindow(title: PChar; x,y,w,h, flags: LongInt): PSDL_Window; cdecl; external SDLLibName;
   766 function  SDL_CreateWindow(title: PChar; x,y,w,h, flags: LongInt): PSDL_Window; cdecl; external SDLLibName;
   767 function  SDL_CreateRenderer(window: PSDL_Window; index, flags: LongInt): PSDL_Renderer; cdecl; external SDLLibName;
   767 function  SDL_CreateRenderer(window: PSDL_Window; index, flags: LongInt): PSDL_Renderer; cdecl; external SDLLibName;
   768 function  SDL_DestroyRenderer(renderer: PSDL_Renderer): LongInt; cdecl; external SDLLibName;
   768 function  SDL_DestroyRenderer(renderer: PSDL_Renderer): LongInt; cdecl; external SDLLibName;
   769 function  SDL_DestroyWindow(window: PSDL_Window): LongInt; cdecl; external SDLLibName;
   769 function  SDL_DestroyWindow(window: PSDL_Window): LongInt; cdecl; external SDLLibName;
       
   770 function  SDL_GetRenderer(window: PSDL_Window): PSDL_Renderer; cdecl; external SDLLibName;
       
   771 
   770 procedure SDL_VideoQuit; cdecl; external SDLLibName;
   772 procedure SDL_VideoQuit; cdecl; external SDLLibName;
   771 function  SDL_GetNumVideoDisplays: LongInt; cdecl; external SDLLibName;
   773 function  SDL_GetNumVideoDisplays: LongInt; cdecl; external SDLLibName;
   772 
   774 
   773 function  SDL_SetRenderDrawColor(renderer: PSDL_Renderer; r,g,b,a: byte): LongInt; cdecl; external SDLLibName;
   775 function  SDL_SetRenderDrawColor(renderer: PSDL_Renderer; r,g,b,a: byte): LongInt; cdecl; external SDLLibName;
   774 function  SDL_RenderFillRect(renderer: PSDL_Renderer; rect: PSDL_Rect): LongInt; cdecl; external SDLLibName;
   776 function  SDL_RenderFillRect(renderer: PSDL_Renderer; rect: PSDL_Rect): LongInt; cdecl; external SDLLibName;
   780 function  SDL_GetRelativeMouseState(x, y: PLongInt): Byte; cdecl; external SDLLibName;
   782 function  SDL_GetRelativeMouseState(x, y: PLongInt): Byte; cdecl; external SDLLibName;
   781 function  SDL_GetNumMice: LongInt; cdecl; external SDLLibName;
   783 function  SDL_GetNumMice: LongInt; cdecl; external SDLLibName;
   782 function  SDL_PixelFormatEnumToMasks(format: TSDL_ArrayByteOrder; bpp: PLongInt; Rmask, Gmask, Bmask, Amask: PLongInt): boolean; cdecl; external SDLLibName;
   784 function  SDL_PixelFormatEnumToMasks(format: TSDL_ArrayByteOrder; bpp: PLongInt; Rmask, Gmask, Bmask, Amask: PLongInt): boolean; cdecl; external SDLLibName;
   783 
   785 
   784 procedure SDL_WarpMouseInWindow(window: PSDL_Window; x, y: LongInt); cdecl; external SDLLibName;
   786 procedure SDL_WarpMouseInWindow(window: PSDL_Window; x, y: LongInt); cdecl; external SDLLibName;
       
   787 function  SDL_SetHint(name, value: PChar): boolean; cdecl; external SDLLibName;
   785 {$ENDIF}
   788 {$ENDIF}
   786 
   789 
   787 function  SDL_GetMouseState(x, y: PLongInt): Byte; cdecl; external SDLLibName;
   790 function  SDL_GetMouseState(x, y: PLongInt): Byte; cdecl; external SDLLibName;
   788 function  SDL_GetKeyName(key: Longword): PChar; cdecl; external SDLLibName;
   791 function  SDL_GetKeyName(key: Longword): PChar; cdecl; external SDLLibName;
   789 
   792