hedgewars/SDLh.pas
branchhedgeroid
changeset 6023 a28be05b20bc
parent 5826 2a2cce052b4d
parent 6021 652a199d4f38
child 6025 cac1d5601d7c
equal deleted inserted replaced
5943:5b2b86a37089 6023:a28be05b20bc
   805 {$IFDEF SDL13}
   805 {$IFDEF SDL13}
   806 function  SDL_CreateWindow(title: PChar; x,y,w,h, flags: LongInt): PSDL_Window; cdecl; external SDLLibName;
   806 function  SDL_CreateWindow(title: PChar; x,y,w,h, flags: LongInt): PSDL_Window; cdecl; external SDLLibName;
   807 function  SDL_CreateRenderer(window: PSDL_Window; index, flags: LongInt): PSDL_Renderer; cdecl; external SDLLibName;
   807 function  SDL_CreateRenderer(window: PSDL_Window; index, flags: LongInt): PSDL_Renderer; cdecl; external SDLLibName;
   808 function  SDL_DestroyWindow(window: PSDL_Window): LongInt; cdecl; external SDLLibName;
   808 function  SDL_DestroyWindow(window: PSDL_Window): LongInt; cdecl; external SDLLibName;
   809 function  SDL_DestroyRenderer(renderer: PSDL_Renderer): LongInt; cdecl; external SDLLibName;
   809 function  SDL_DestroyRenderer(renderer: PSDL_Renderer): LongInt; cdecl; external SDLLibName;
       
   810 procedure SDL_SetWindowSize(window: PSDL_Window; w, h: LongInt); cdecl; external SDLLibName;
   810 
   811 
   811 function  SDL_GL_CreateContext(window: PSDL_Window): PSDL_GLContext; cdecl; external SDLLibName;
   812 function  SDL_GL_CreateContext(window: PSDL_Window): PSDL_GLContext; cdecl; external SDLLibName;
   812 procedure SDL_GL_DeleteContext(context: PSDL_GLContext); cdecl; external SDLLibName;
   813 procedure SDL_GL_DeleteContext(context: PSDL_GLContext); cdecl; external SDLLibName;
   813 function  SDL_GL_SwapWindow(window: PSDL_Window): LongInt; cdecl; external SDLLibName;
   814 function  SDL_GL_SwapWindow(window: PSDL_Window): LongInt; cdecl; external SDLLibName;
   814 function  SDL_GL_SetSwapInterval(interval: LongInt): LongInt; cdecl; external SDLLibName;
   815 function  SDL_GL_SetSwapInterval(interval: LongInt): LongInt; cdecl; external SDLLibName;
   834 procedure SDL_WarpMouseInWindow(window: PSDL_Window; x, y: LongInt); cdecl; external SDLLibName;
   835 procedure SDL_WarpMouseInWindow(window: PSDL_Window; x, y: LongInt); cdecl; external SDLLibName;
   835 function  SDL_SetHint(name, value: PChar): boolean; cdecl; external SDLLibName;
   836 function  SDL_SetHint(name, value: PChar): boolean; cdecl; external SDLLibName;
   836 
   837 
   837 function  SDL_PeepEvents(event: PSDL_Event; numevents: LongInt; action: SDL_eventaction; minType, maxType: LongInt): LongInt; cdecl; external SDLLibName;
   838 function  SDL_PeepEvents(event: PSDL_Event; numevents: LongInt; action: SDL_eventaction; minType, maxType: LongInt): LongInt; cdecl; external SDLLibName;
   838 {$ELSE}
   839 {$ELSE}
   839 function  SDL_PeepEvents(event: PSDL_Event; numevents: LongInt; action: SDL_eventaction; mask: LongInt): LongInt; cdecl; external SDLLibName;
   840 function  SDL_PeepEvents(event: PSDL_Event; numevents: LongInt; action: SDL_eventaction; mask: Longword): LongInt; cdecl; external SDLLibName;
   840 {$ENDIF}
   841 {$ENDIF}
   841 
   842 
   842 function  SDL_GetMouseState(x, y: PLongInt): Byte; cdecl; external SDLLibName;
   843 function  SDL_GetMouseState(x, y: PLongInt): Byte; cdecl; external SDLLibName;
   843 function  SDL_GetKeyName(key: Longword): PChar; cdecl; external SDLLibName;
   844 function  SDL_GetKeyName(key: Longword): PChar; cdecl; external SDLLibName;
   844 
   845