hedgewars/SDLh.pas
changeset 7035 823caba67738
parent 7016 8b34f46e10c1
child 7049 35d762458d66
equal deleted inserted replaced
7034:e3639ce1d4f8 7035:823caba67738
   393         refcount: LongInt;
   393         refcount: LongInt;
   394 {$ENDIF}
   394 {$ENDIF}
   395         end;
   395         end;
   396 
   396 
   397 
   397 
       
   398     PSDL_Color = ^TSDL_Color;
   398     TSDL_Color = record
   399     TSDL_Color = record
   399         case Byte of
   400         case Byte of
   400             0: ( r: Byte;
   401             0: ( r: Byte;
   401                  g: Byte;
   402                  g: Byte;
   402                  b: Byte;
   403                  b: Byte;
   403                  unused: Byte; );
   404                  unused: Byte; );
   404             1: ( value: LongWord; );
   405             1: ( value: LongWord; );
   405         end;
   406         end;
   406     PSDL_Color = ^TSDL_Color;
       
   407 
   407 
   408 
   408 
   409     PSDL_RWops = ^TSDL_RWops;
   409     PSDL_RWops = ^TSDL_RWops;
   410     TSeek  = function( context: PSDL_RWops; offset: LongInt; whence: LongInt ): LongInt; cdecl;
   410     TSeek  = function( context: PSDL_RWops; offset: LongInt; whence: LongInt ): LongInt; cdecl;
   411     TRead  = function( context: PSDL_RWops; Ptr: Pointer; size: LongInt; maxnum : LongInt ): LongInt;  cdecl;
   411     TRead  = function( context: PSDL_RWops; Ptr: Pointer; size: LongInt; maxnum : LongInt ): LongInt;  cdecl;
   732 {$ENDIF}
   732 {$ENDIF}
   733         end;
   733         end;
   734 
   734 
   735     TSDL_EventFilter = function( event : PSDL_Event ): Integer; cdecl;
   735     TSDL_EventFilter = function( event : PSDL_Event ): Integer; cdecl;
   736 
   736 
       
   737     TByteArray = array[0..65535] of Byte;
   737     PByteArray = ^TByteArray;
   738     PByteArray = ^TByteArray;
   738     TByteArray = array[0..65535] of Byte;
   739     TLongWordArray = array[0..16383] of LongWord;
   739     PLongWordArray = ^TLongWordArray;
   740     PLongWordArray = ^TLongWordArray;
   740     TLongWordArray = array[0..16383] of LongWord;
       
   741 
   741 
   742     PSDL_Thread = Pointer;
   742     PSDL_Thread = Pointer;
   743     PSDL_mutex = Pointer;
   743     PSDL_mutex = Pointer;
   744 
   744 
   745     TSDL_GLattr = (
   745     TSDL_GLattr = (