Integer Types

Integer parameter types in SDL subroutines have easily remembered identifiers comprising (i) a prefix U (unsigned) or S (signed), (ii) the abbreviation 'Int' for integer and (iii) the number of bits. The following type definitions are found in SDL.pas.

UInt8 = byte;
SInt8 = shortint;
UInt16 = word;
SInt16 = smallint;
UInt32 = cardinal;
SInt32 = integer;

This gives you the choice of declaring, for example, a 16-bit signed integer variable as either SInt16 or smallint.

Programming - a skill for life!

How to use SDL parameters such as flags and PChar strings