hedgewars/SDLh.pas
changeset 2017 7845c77c8d31
parent 1997 cd66434351cf
child 2152 a2811690da1b
equal deleted inserted replaced
2016:73b0bcc4396d 2017:7845c77c8d31
    71       SDL_FULLSCREEN  = $80000000;
    71       SDL_FULLSCREEN  = $80000000;
    72       SDL_NOFRAME     = $00000020;
    72       SDL_NOFRAME     = $00000020;
    73       SDL_HWACCEL     = $00000100;
    73       SDL_HWACCEL     = $00000100;
    74       SDL_SRCCOLORKEY = $00001000;
    74       SDL_SRCCOLORKEY = $00001000;
    75       SDL_RLEACCEL    = $00004000;
    75       SDL_RLEACCEL    = $00004000;
       
    76       SDL_SRCALPHA    = $00010000;
    76 
    77 
    77       SDL_NOEVENT     = 0;
    78       SDL_NOEVENT     = 0;
    78       SDL_ACTIVEEVENT = 1;
    79       SDL_ACTIVEEVENT = 1;
    79       SDL_KEYDOWN     = 2;
    80       SDL_KEYDOWN     = 2;
    80       SDL_KEYUP       = 3;
    81       SDL_KEYUP       = 3;
   245 function  SDL_SetVideoMode(width, height, bpp: LongInt; flags: Longword): PSDL_Surface; cdecl; external SDLLibName;
   246 function  SDL_SetVideoMode(width, height, bpp: LongInt; flags: Longword): PSDL_Surface; cdecl; external SDLLibName;
   246 function  SDL_CreateRGBSurface(flags: Longword; Width, Height, Depth: LongInt; RMask, GMask, BMask, AMask: Longword): PSDL_Surface; cdecl; external SDLLibName;
   247 function  SDL_CreateRGBSurface(flags: Longword; Width, Height, Depth: LongInt; RMask, GMask, BMask, AMask: Longword): PSDL_Surface; cdecl; external SDLLibName;
   247 function  SDL_CreateRGBSurfaceFrom(pixels: Pointer; width, height, depth, pitch: LongInt; RMask, GMask, BMask, AMask: Longword): PSDL_Surface; cdecl; external SDLLibName;
   248 function  SDL_CreateRGBSurfaceFrom(pixels: Pointer; width, height, depth, pitch: LongInt; RMask, GMask, BMask, AMask: Longword): PSDL_Surface; cdecl; external SDLLibName;
   248 procedure SDL_FreeSurface(Surface: PSDL_Surface); cdecl; external SDLLibName;
   249 procedure SDL_FreeSurface(Surface: PSDL_Surface); cdecl; external SDLLibName;
   249 function  SDL_SetColorKey(surface: PSDL_Surface; flag, key: Longword): LongInt; cdecl; external SDLLibName;
   250 function  SDL_SetColorKey(surface: PSDL_Surface; flag, key: Longword): LongInt; cdecl; external SDLLibName;
       
   251 function  SDL_SetAlpha(surface: PSDL_Surface; flag, key: Longword): LongInt; cdecl; external SDLLibName;
   250 
   252 
   251 function  SDL_UpperBlit(src: PSDL_Surface; srcrect: PSDL_Rect; dst: PSDL_Surface; dstrect: PSDL_Rect): LongInt; cdecl; external SDLLibName;
   253 function  SDL_UpperBlit(src: PSDL_Surface; srcrect: PSDL_Rect; dst: PSDL_Surface; dstrect: PSDL_Rect): LongInt; cdecl; external SDLLibName;
   252 function  SDL_FillRect(dst: PSDL_Surface; dstrect: PSDL_Rect; color: Longword): LongInt; cdecl; external SDLLibName;
   254 function  SDL_FillRect(dst: PSDL_Surface; dstrect: PSDL_Rect; color: Longword): LongInt; cdecl; external SDLLibName;
   253 procedure SDL_UpdateRect(Screen: PSDL_Surface; x, y: LongInt; w, h: Longword); cdecl; external SDLLibName;
   255 procedure SDL_UpdateRect(Screen: PSDL_Surface; x, y: LongInt; w, h: Longword); cdecl; external SDLLibName;
   254 function  SDL_Flip(Screen: PSDL_Surface): LongInt; cdecl; external SDLLibName;
   256 function  SDL_Flip(Screen: PSDL_Surface): LongInt; cdecl; external SDLLibName;