-
Notifications
You must be signed in to change notification settings - Fork 0
/
gfx.js
127 lines (122 loc) · 17.3 KB
/
gfx.js
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
119
120
121
122
123
124
125
126
127
const {
e,
ref,
Struct
} = require('./api');
e.SDL2_GFXPRIMITIVES_MAJOR = 1;
e.SDL2_GFXPRIMITIVES_MINOR = 0;
e.SDL2_GFXPRIMITIVES_MICRO = 1;
e.FPS_UPPER_LIMIT = 200;
e.FPS_LOWER_LIMIT = 1;
e.FPS_DEFAULT = 30;
e.FPSmanager = Struct({
framecount: 'Uint32',
rateticks: 'float',
baseticks: 'Uint32',
lastticks: 'Uint32',
rate: 'Uint32'
});
e.gfxPrimitivesFontdata = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 126, 129, 165, 129, 189, 153, 129, 126, 126, 255, 219, 255, 195, 231, 255, 126, 108, 254, 254, 254, 124, 56, 16, 0, 16, 56, 124, 254, 124, 56, 16, 0, 56, 124, 56, 254, 254, 214, 16, 56, 16, 56, 124, 254, 254, 124, 16, 56, 0, 0, 24, 60, 60, 24, 0, 0, 255, 255, 231, 195, 195, 231, 255, 255, 0, 60, 102, 66, 66, 102, 60, 0, 255, 195, 153, 189, 189, 153, 195, 255, 15, 7, 15, 125, 204, 204, 204, 120, 60, 102, 102, 102, 60, 24, 126, 24, 63, 51, 63, 48, 48, 112, 240, 224, 127, 99, 127, 99, 99, 103, 230, 192, 24, 219, 60, 231, 231, 60, 219, 24, 128, 224, 248, 254, 248, 224, 128, 0, 2, 14, 62, 254, 62, 14, 2, 0, 24, 60, 126, 24, 24, 126, 60, 24, 102, 102, 102, 102, 102, 0, 102, 0, 127, 219, 219, 123, 27, 27, 27, 0, 62, 97, 60, 102, 102, 60, 134, 124, 0, 0, 0, 0, 126, 126, 126, 0, 24, 60, 126, 24, 126, 60, 24, 255, 24, 60, 126, 24, 24, 24, 24, 0, 24, 24, 24, 24, 126, 60, 24, 0, 0, 24, 12, 254, 12, 24, 0, 0, 0, 48, 96, 254, 96, 48, 0, 0, 0, 0, 192, 192, 192, 254, 0, 0, 0, 36, 102, 255, 102, 36, 0, 0, 0, 24, 60, 126, 255, 255, 0, 0, 0, 255, 255, 126, 60, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 60, 60, 24, 24, 0, 24, 0, 102, 102, 36, 0, 0, 0, 0, 0, 108, 108, 254, 108, 254, 108, 108, 0, 24, 62, 96, 60, 6, 124, 24, 0, 0, 198, 204, 24, 48, 102, 198, 0, 56, 108, 56, 118, 220, 204, 118, 0, 24, 24, 48, 0, 0, 0, 0, 0, 12, 24, 48, 48, 48, 24, 12, 0, 48, 24, 12, 12, 12, 24, 48, 0, 0, 102, 60, 255, 60, 102, 0, 0, 0, 24, 24, 126, 24, 24, 0, 0, 0, 0, 0, 0, 0, 24, 24, 48, 0, 0, 0, 126, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 24, 0, 6, 12, 24, 48, 96, 192, 128, 0, 56, 108, 198, 214, 198, 108, 56, 0, 24, 56, 24, 24, 24, 24, 126, 0, 124, 198, 6, 28, 48, 102, 254, 0, 124, 198, 6, 60, 6, 198, 124, 0, 28, 60, 108, 204, 254, 12, 30, 0, 254, 192, 192, 252, 6, 198, 124, 0, 56, 96, 192, 252, 198, 198, 124, 0, 254, 198, 12, 24, 48, 48, 48, 0, 124, 198, 198, 124, 198, 198, 124, 0, 124, 198, 198, 126, 6, 12, 120, 0, 0, 24, 24, 0, 0, 24, 24, 0, 0, 24, 24, 0, 0, 24, 24, 48, 6, 12, 24, 48, 24, 12, 6, 0, 0, 0, 126, 0, 0, 126, 0, 0, 96, 48, 24, 12, 24, 48, 96, 0, 124, 198, 12, 24, 24, 0, 24, 0, 124, 198, 222, 222, 222, 192, 120, 0, 56, 108, 198, 254, 198, 198, 198, 0, 252, 102, 102, 124, 102, 102, 252, 0, 60, 102, 192, 192, 192, 102, 60, 0, 248, 108, 102, 102, 102, 108, 248, 0, 254, 98, 104, 120, 104, 98, 254, 0, 254, 98, 104, 120, 104, 96, 240, 0, 60, 102, 192, 192, 206, 102, 58, 0, 198, 198, 198, 254, 198, 198, 198, 0, 60, 24, 24, 24, 24, 24, 60, 0, 30, 12, 12, 12, 204, 204, 120, 0, 230, 102, 108, 120, 108, 102, 230, 0, 240, 96, 96, 96, 98, 102, 254, 0, 198, 238, 254, 254, 214, 198, 198, 0, 198, 230, 246, 222, 206, 198, 198, 0, 124, 198, 198, 198, 198, 198, 124, 0, 252, 102, 102, 124, 96, 96, 240, 0, 124, 198, 198, 198, 198, 206, 124, 14, 252, 102, 102, 124, 108, 102, 230, 0, 60, 102, 48, 24, 12, 102, 60, 0, 126, 126, 90, 24, 24, 24, 60, 0, 198, 198, 198, 198, 198, 198, 124, 0, 198, 198, 198, 198, 198, 108, 56, 0, 198, 198, 198, 214, 214, 254, 108, 0, 198, 198, 108, 56, 108, 198, 198, 0, 102, 102, 102, 60, 24, 24, 60, 0, 254, 198, 140, 24, 50, 102, 254, 0, 60, 48, 48, 48, 48, 48, 60, 0, 192, 96, 48, 24, 12, 6, 2, 0, 60, 12, 12, 12, 12, 12, 60, 0, 16, 56, 108, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 48, 24, 12, 0, 0, 0, 0, 0, 0, 0, 120, 12, 124, 204, 118, 0, 224, 96, 124, 102, 102, 102, 220, 0, 0, 0, 124, 198, 192, 198, 124, 0, 28, 12, 124, 204, 204, 204, 118, 0, 0, 0, 124, 198, 254, 192, 124, 0, 60, 102, 96, 248, 96, 96, 240, 0, 0, 0, 118, 204, 204, 124, 12, 248, 224, 96, 108, 118, 102, 102, 230, 0, 24, 0, 56, 24, 24, 24, 60, 0, 6, 0, 6, 6, 6, 102, 102, 60, 224, 96, 102, 108, 120, 108, 230, 0, 56, 24, 24, 24, 24, 24, 60, 0, 0, 0, 236, 254, 214, 214, 214, 0, 0, 0, 220, 102, 102, 102, 102, 0, 0, 0, 124, 198, 198, 198, 124, 0, 0, 0, 220, 102, 102, 124, 96, 240, 0, 0, 118, 204, 204, 124, 12, 30, 0, 0, 220, 118, 96, 96, 240, 0, 0, 0, 126, 192, 124, 6, 252, 0, 48, 48, 252, 48, 48, 54, 28, 0, 0, 0, 204, 204, 204, 204, 118, 0, 0, 0, 198, 198, 198, 108, 56, 0, 0, 0, 198, 214, 214, 254, 108, 0, 0, 0, 198, 108, 56, 108, 198, 0, 0, 0, 198, 198, 198, 126, 6, 252, 0, 0, 126, 76, 24, 50, 126, 0, 14, 24, 24, 112, 24, 24, 14, 0, 24, 24, 24, 24, 24, 24, 24, 0, 112, 24, 24, 14, 24, 24, 112, 0, 118, 220, 0, 0, 0, 0, 0, 0, 0, 16, 56, 108, 198, 198, 254, 0, 124, 198, 192, 192, 198, 124, 12, 120, 204, 0, 204, 204, 204, 204, 118, 0, 12, 24, 124, 198, 254, 192, 124, 0, 124, 130, 120, 12, 124, 204, 118, 0, 198, 0, 120, 12, 124, 204, 118, 0, 48, 24, 120, 12, 124, 204, 118, 0, 48, 48, 120, 12, 124, 204, 118, 0, 0, 0, 126, 192, 192, 126, 12, 56, 124, 130, 124, 198, 254, 192, 124, 0, 198, 0, 124, 198, 254, 192, 124, 0, 48, 24, 124, 198, 254, 192, 124, 0, 102, 0, 56, 24, 24, 24, 60, 0, 124, 130, 56, 24, 24, 24, 60, 0, 48, 24, 0, 56, 24, 24, 60, 0, 198, 56, 108, 198, 254, 198, 198, 0, 56, 108, 124, 198, 254, 198, 198, 0, 24, 48, 254, 192, 248, 192, 254, 0, 0, 0, 126, 24, 126, 216, 126, 0, 62, 108, 204, 254, 204, 204, 206, 0, 124, 130, 124, 198, 198, 198, 124, 0, 198, 0, 124, 198, 198, 198, 124, 0, 48, 24, 124, 198, 198, 198, 124, 0, 120, 132, 0, 204, 204, 204, 118, 0, 96, 48, 204, 204, 204, 204, 118, 0, 198, 0, 198, 198, 198, 126, 6, 252, 198, 56, 108, 198, 198, 108, 56, 0, 198, 0, 198, 198, 198, 198, 124, 0, 24, 24, 126, 192, 192, 126, 24, 24, 56, 108, 100, 240, 96, 102, 252, 0, 102, 102, 60, 126, 24, 126, 24, 24, 248, 204, 204, 250, 198, 207, 198, 199, 14, 27, 24, 60, 24, 216, 112, 0, 24, 48, 120, 12, 124, 204, 118, 0, 12, 24, 0, 56, 24, 24, 60, 0, 12, 24, 124, 198, 198, 198, 124, 0, 24, 48, 204, 204, 204, 204, 118, 0, 118, 220, 0, 220, 102, 102, 102, 0, 118, 220, 0, 230, 246, 222, 206, 0, 60, 108, 108, 62, 0, 126, 0, 0, 56, 108, 108, 56, 0, 124, 0, 0, 24, 0, 24, 24, 48, 99, 62, 0, 0, 0, 0, 254, 192, 192, 0, 0, 0, 0, 0, 254, 6, 6, 0, 0, 99, 230, 108, 126, 51, 102, 204, 15, 99, 230, 108, 122, 54, 106, 223, 6, 24, 0, 24, 24, 60, 60, 24, 0, 0, 51, 102, 204, 102, 51, 0, 0, 0, 204, 102, 51, 102, 204, 0, 0, 34, 136, 34, 136, 34, 136, 34, 136, 85, 170, 85, 170, 85, 170, 85, 170, 119, 221, 119, 221, 119, 221, 119, 221, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 248, 24, 24, 24, 24, 24, 248, 24, 248, 24, 24, 24, 54, 54, 54, 54, 246, 54, 54, 54, 0, 0, 0, 0, 254, 54, 54, 54, 0, 0, 248, 24, 248, 24, 24, 24, 54, 54, 246, 6, 246, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, 0, 0, 254, 6, 246, 54, 54, 54, 54, 54, 246, 6, 254, 0, 0, 0, 54, 54, 54, 54, 254, 0, 0, 0, 24, 24, 248, 24, 248, 0, 0, 0, 0, 0, 0, 0, 248, 24, 24, 24, 24, 24, 24, 24, 31, 0, 0, 0, 24, 24, 24, 24, 255, 0, 0, 0, 0, 0, 0, 0, 255, 24, 24, 24, 24, 24, 24, 24, 31, 24, 24, 24, 0, 0, 0, 0, 255, 0, 0, 0, 24, 24, 24, 24, 255, 24, 24, 24, 24, 24, 31, 24, 31, 24, 24, 24, 54, 54, 54, 54, 55, 54, 54, 54, 54, 54, 55, 48, 63, 0, 0, 0, 0, 0, 63, 48, 55, 54, 54, 54, 54, 54, 247, 0, 255, 0, 0, 0, 0, 0, 255, 0, 247, 54, 54, 54, 54, 54, 55, 48, 55, 54, 54, 54, 0, 0, 255, 0, 255, 0, 0, 0, 54, 54, 247, 0, 247, 54, 54, 54, 24, 24, 255, 0, 255, 0, 0, 0, 54, 54, 54, 54, 255, 0, 0, 0, 0, 0, 255, 0, 255, 24, 24, 24, 0, 0, 0, 0, 255, 54, 54, 54, 54, 54, 54, 54, 63, 0, 0, 0, 24, 24, 31, 24, 31, 0, 0, 0, 0, 0, 31, 24, 31, 24, 24, 24, 0, 0, 0, 0, 63, 54, 54, 54, 54, 54, 54, 54, 255, 54, 54, 54, 24, 24, 255, 24, 255, 24, 24, 24, 24, 24, 24, 24, 248, 0, 0, 0, 0, 0, 0, 0, 31, 24, 24, 24, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 255, 255, 255, 255, 240, 240, 240, 240, 240, 240, 240, 240, 15, 15, 15, 15, 15, 15, 15, 15, 255, 255, 255, 255, 0, 0, 0, 0, 0, 0, 118, 220, 200, 220, 118, 0, 120, 204, 204, 216, 204, 198, 204, 0, 254, 198, 192, 192, 192, 192, 192, 0, 0, 0, 254, 108, 108, 108, 108, 0, 254, 198, 96, 48, 96, 198, 254, 0, 0, 0, 126, 216, 216, 216, 112, 0, 0, 0, 102, 102, 102, 102, 124, 192, 0, 118, 220, 24, 24, 24, 24, 0, 126, 24, 60, 102, 102, 60, 24, 126, 56, 108, 198, 254, 198, 108, 56, 0, 56, 108, 198, 198, 108, 108, 238, 0, 14, 24, 12, 62, 102, 102, 60, 0, 0, 0, 126, 219, 219, 126, 0, 0, 6, 12, 126, 219, 219, 126, 96, 192, 30, 48, 96, 126, 96, 48, 30, 0, 0, 124, 198, 198, 198, 198, 198, 0, 0, 254, 0, 254, 0, 254, 0, 0, 24, 24, 126, 24, 24, 0, 126, 0, 48, 24, 12, 24, 48, 0, 126, 0, 12, 24, 48, 24, 12, 0, 126, 0, 14, 27, 27, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 216, 216, 112, 0, 24, 0, 126, 0, 24, 0, 0, 0, 118, 220, 0, 118, 220, 0, 0, 56, 108, 108, 56, 0, 0, 0, 0, 0, 0, 0, 24, 24, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 15, 12, 12, 12, 236, 108, 60, 28, 108, 54, 54, 54, 54, 0, 0, 0, 120, 12, 24, 48, 124, 0, 0, 0, 0, 0, 60, 60, 60, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
exports.library_exports = {
'pixelColor': ['int', ['void*', 'int16', 'int16', 'Uint32']],
'pixelRGBA': ['int', ['void*', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'hlineColor': ['int', ['void*', 'int16', 'int16', 'int16', 'Uint32']],
'hlineRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'vlineColor': ['int', ['void*', 'int16', 'int16', 'int16', 'Uint32']],
'vlineRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'rectangleColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'rectangleRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'roundedRectangleColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'roundedRectangleRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'boxColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'boxRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'roundedBoxColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'roundedBoxRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'lineColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'lineRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'aalineColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'aalineRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'thickLineColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint32']],
'aalineRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'circleColor': ['int', ['void*', 'int16', 'int16', 'int16', 'Uint32']],
'circleRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'arcColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'arcRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'aacircleColor': ['int', ['void*', 'int16', 'int16', 'int16', 'Uint32']],
'aacircleRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'filledCircleColor': ['int', ['void*', 'int16', 'int16', 'int16', 'Uint32']],
'filledCircleRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'ellipseColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'ellipseRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'aaellipseColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'aaellipseRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'pieColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'pieRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'filledPieColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'filledPieRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'trigonColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'trigonRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'aatrigonColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'aatrigonRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'filledTrigonColor': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint32']],
'filledTrigonRGBA': ['int', ['void*', 'int16', 'int16', 'int16', 'int16', 'int16', 'int16', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'polygonColor': ['int', ['void*', 'int16*', 'int16*', 'int', 'Uint32']],
'polygonRGBA': ['int', ['void*', 'int16*', 'int16*', 'int', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'aapolygonColor': ['int', ['void*', 'int16*', 'int16*', 'int', 'Uint32']],
'aapolygonRGBA': ['int', ['void*', 'int16*', 'int16*', 'int', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'filledPolygonColor': ['int', ['void*', 'int16*', 'int16*', 'int', 'Uint32']],
'filledPolygonRGBA': ['int', ['void*', 'int16*', 'int16*', 'int', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'texturedPolygon': ['int', ['void*', 'int16*', 'int16*', 'int', 'void*', 'int', 'int']],
'bezierColor': ['int', ['void*', 'int16*', 'int16*', 'int', 'int', 'Uint32']],
'bezierRGBA': ['int', ['void*', 'int16*', 'int16*', 'int', 'int', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'gfxPrimitivesSetFont': ['void', ['void*', 'Uint32', 'Uint32']],
'gfxPrimitivesSetFontRotation': ['void', ['Uint32']],
'characterColor': ['int', ['void*', 'int16', 'int16', 'char', 'uint32', 'Uint32']],
'characterRGBA': ['int', ['void*', 'int16', 'int16', 'char', 'uint32', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'stringColor': ['int', ['void*', 'int16', 'int16', 'string', 'uint32', 'Uint32']],
'stringRGBA': ['int', ['void*', 'int16', 'int16', 'string', 'uint32', 'Uint8', 'Uint8', 'Uint8', 'Uint8']],
'rotozoomSurface': [ref.refType(e.SDL_Surface), ['void*', 'double', 'double', 'int']],
'rotozoomSurfaceXY': [ref.refType(e.SDL_Surface), ['void*', 'double', 'double', 'double', 'int']],
'rotozoomSurfaceSize': [ref.refType(e.SDL_Surface), ['int', 'int', 'double', 'double', 'int*', 'int*']],
'rotozoomSurfaceSizeXY': [ref.refType(e.SDL_Surface), ['int', 'int', 'double', 'double', 'double', 'int*', 'int*']],
'zoomSurface': [ref.refType(e.SDL_Surface), ['void*', 'double', 'double', 'int']],
'zoomSurfaceSize': ['void', ['int', 'int', 'double', 'double', 'int*', 'int*']],
'shrinkSurface': [ref.refType(e.SDL_Surface), ['void*', 'int', 'int']],
'rotateSurface90Degrees': [ref.refType(e.SDL_Surface), ['void*', 'int']],
'SDL_initFramerate': ['void', ['void*']],
'SDL_setFramerate': ['int', ['void*', 'Uint32']],
'SDL_getFramerate': ['int', ['void*']],
'SDL_getFramecount': ['int', ['void*']],
'SDL_framerateDelay': ['Uint32', ['void*']],
'SDL_imageFilterMMXdetect': ['int', []],
'SDL_imageFilterMMXoff': ['void', []],
'SDL_imageFilterMMXon': ['void', []],
'SDL_imageFilterAdd': ['int', ['Uchar*', 'Uchar*', 'Uchar*', 'Uint']],
'SDL_imageFilterMean': ['int', ['Uchar*', 'Uchar*', 'Uchar*', 'Uint']],
'SDL_imageFilterSub': ['int', ['Uchar*', 'Uchar*', 'Uchar*', 'Uint']],
'SDL_imageFilterAbsDiff': ['int', ['Uchar*', 'Uchar*', 'Uchar*', 'Uint']],
'SDL_imageFilterMult': ['int', ['Uchar*', 'Uchar*', 'Uchar*', 'Uint']],
'SDL_imageFilterMultNor': ['int', ['Uchar*', 'Uchar*', 'Uchar*', 'Uint']],
'SDL_imageFilterMultDivby2': ['int', ['Uchar*', 'Uchar*', 'Uchar*', 'Uint']],
'SDL_imageFilterMultDivby4': ['int', ['Uchar*', 'Uchar*', 'Uchar*', 'Uint']],
'SDL_imageFilterBitAnd': ['int', ['Uchar*', 'Uchar*', 'Uchar*', 'Uint']],
'SDL_imageFilterBitOr': ['int', ['Uchar*', 'Uchar*', 'Uchar*', 'Uint']],
'SDL_imageFilterDiv': ['int', ['Uchar*', 'Uchar*', 'Uchar*', 'Uint']],
'SDL_imageFilterBitNegation': ['int', ['Uchar*', 'Uchar*', 'Uint']],
'SDL_imageFilterAddByte': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar']],
'SDL_imageFilterAddUint': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar']],
'SDL_imageFilterAddByteToHalf': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar']],
'SDL_imageFilterSubByte': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar']],
'SDL_imageFilterSubUint': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar']],
'SDL_imageFilterShiftRight': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar']],
'SDL_imageFilterShiftRightUint': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar']],
'SDL_imageFilterMultByByte': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar']],
'SDL_imageFilterShiftRightAndMultByByte': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar', 'Uchar']],
'SDL_imageFilterShiftLeftByte': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar']],
'SDL_imageFilterShiftLeftUint': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar']],
'SDL_imageFilterShiftLeft': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar']],
'SDL_imageFilterBinarizeUsingThreshold': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar']],
'SDL_imageFilterClipToRange': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar', 'Uchar']],
'SDL_imageFilterBinarizeUsingThreshold': ['int', ['Uchar*', 'Uchar*', 'Uint', 'Uchar']],
'SDL_imageFilterNormalizeLinear': ['int', ['Uchar*', 'Uchar*', 'Uint', 'int', 'int', 'int', 'int']]
};