-
Notifications
You must be signed in to change notification settings - Fork 46
/
sdltype.inc
71 lines (56 loc) · 1.13 KB
/
sdltype.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
//types from SDLtype_s.h / SDL_stdinc.h
type
TSDL_Bool = (SDL_FALSE,SDL_TRUE);
DWord = LongWord;
PUInt8Array = ^TUInt8Array;
PUInt8 = ^UInt8;
PPUInt8 = ^PUInt8;
UInt8 = Byte;
{$EXTERNALSYM UInt8}
TUInt8Array = array [0..MAXINT shr 1] of UInt8;
PUInt16 = ^UInt16;
UInt16 = word;
{$EXTERNALSYM UInt16}
PSInt8 = ^SInt8;
SInt8 = Shortint;
{$EXTERNALSYM SInt8}
PSInt16 = ^SInt16;
SInt16 = smallint;
{$EXTERNALSYM SInt16}
PUInt32 = ^UInt32;
UInt32 = Cardinal;
{$EXTERNALSYM UInt32}
PSInt32 = ^SInt32;
SInt32 = LongInt;
{$EXTERNALSYM SInt32}
PFloat = ^Float;
PInt = ^LongInt;
PShortInt = ^ShortInt;
{$IFNDEF Has_Int64}
PUInt64 = ^UInt64;
UInt64 = record
hi: UInt32;
lo: UInt32;
end;
{$EXTERNALSYM UInt64}
PInt64 = ^Int64;
Int64 = record
hi: UInt32;
lo: UInt32;
end;
{$EXTERNALSYM Int64}
PSInt64 = ^SInt64;
SInt64 = Int64;
{$EXTERNALSYM SInt64}
{$ELSE}
PSInt64 = ^SInt64;
SInt64 = Int64;
{$ENDIF}
{$IFNDEF WIN64}
size_t = UInt32;
{$ELSE}
size_t = UInt64;
{$ENDIF}
{$EXTERNALSYM SIZE_T}
Float = Single;
{$EXTERNALSYM Float}