-
Notifications
You must be signed in to change notification settings - Fork 0
/
sdl_constants.pl
118 lines (106 loc) · 3.33 KB
/
sdl_constants.pl
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
%%--------------------------------------------------------------------
%%
%% Bit-based flag lookup tables.
%%
%%--------------------------------------------------------------------
sdl_constants('SDL_Init',
[ timer - 0x000001
, audio - 0x000010
, video - 0x000020
, joystick - 0x000200
, haptic - 0x001000
, gamecontroller - 0x002000
, events - 0x004000
, everything - 0x007231
, noparachute - 0x100000
]).
sdl_constants('SDL_CreateWindow',
[ undefined - 0x1fff0000
, centered - 0x2fff0000
]).
sdl_constants('SDL_ShowSimpleMessageBox',
[ error - 0x00000010
, warning - 0x00000020
, information - 0x00000040
]).
sdl_constants('SDL_CreateRenderer',
[ software - 0x00000001
, accelerated - 0x00000002
, presentvsync - 0x00000004
, targettexture - 0x00000008
]).
sdl_constants('SDL_RenderCopyEx',
[ none - 0x00000000
, flip_horizontal - 0x00000001
, flip_vertical - 0x00000002
]).
sdl_constants('SDL_CreateTexture',
[ software - 0x00000001
, accelerated - 0x00000002
, presentvsync - 0x00000004
, targettexture - 0x00000008
]).
sdl_constants('SDL_SetWindowFullScreen',
[ fullscreen - 0x00000001,
fullscreen_desktop - 0x000010001
]).
sdl_constants('SDL_GetWindowFlags',
[ fullscreen - 0x00000001
, fullscreen_desktop - 0x00010001
, opengl - 0x00000002
, shown - 0x00000004
, hidden - 0x00000008
, borderless - 0x00000010
, resizable - 0x00000020
, minimized - 0x00000040
, maximized - 0x00000080
, input_grabbed - 0x00000100
, input_focus - 0x00000200
, mouse_focus - 0x00000400
, foreign - 0x00000800
, allow_highdpi - 0x00002000
]).
sdl_constants('Mix_OpenAudio',
[ audio_u8 - 0x0008
, audio_s8 - 0x8008
, audio_u16lsb - 0x0010
, audio_s16lsb - 0x8010
, audio_u16msb - 0x1010
, audio_s16msb - 0x9010
, audio_u16 - 0x0010
, audio_s16 - 0x8010
, default_format - 0
]).
sdl_constants('Mix_Init',
[ mix_init_flac - 0x00000001
, mix_init_mod - 0x00000002
, mix_init_modplug - 0x00000004
, mix_init_mp3 - 0x00000008
, mix_init_ogg - 0x00000010
, mix_init_fluidsynth - 0x00000020
]).
sdl_constants('IMG_Init',
[ jpg - 0x00000001
, png - 0x00000002
, tif - 0x00000004
, webp - 0x00000008
]).
sdl_constants('Log_Category',
[ application - 0
, error - 1
, assert - 2
, system - 3
, audio - 4
, video - 5
, render - 6
, input - 7
, test - 8
]).
sdl_constants('Log_Priority',
[ verbose - 1
, debug - 2
, info - 3
, warn - 4
, error - 5
, critical - 6
]).