1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4 
5 typedef int8_t GLbyte;
6 typedef uint8_t GLubyte;
7 typedef int16_t GLshort;
8 typedef uint16_t GLushort;
9 typedef int32_t GLint;
10 typedef uint32_t GLuint;
11 typedef int64_t GLint64;
12 typedef uint64_t GLuint64;
13 
14 typedef float GLfloat;
15 typedef double GLdouble;
16 
17 typedef uint32_t GLenum;
18 typedef uint8_t GLboolean;
19 typedef uint32_t GLbitfield;
20 
21 typedef int32_t GLsizei;
22 typedef size_t GLsizeiptr;
23 typedef intptr_t GLintptr;
24 
25 #define GL_FALSE 0
26 #define GL_TRUE 1
27 
28 #define GL_NONE 0
29 
30 #define GL_NO_ERROR 0
31 
32 #define GL_RGBA32F 0x8814
33 #define GL_RGBA8 0x8058
34 #define GL_R8 0x8229
35 #define GL_R16 0x822A
36 #define GL_RGBA32I 0x8D82
37 #define GL_BGRA8 0x93A1
38 #define GL_RG8 0x822B
39 
40 #define GL_BYTE 0x1400
41 #define GL_UNSIGNED_BYTE 0x1401
42 #define GL_SHORT 0x1402
43 #define GL_UNSIGNED_SHORT 0x1403
44 #define GL_INT 0x1404
45 #define GL_UNSIGNED_INT 0x1405
46 #define GL_FLOAT 0x1406
47 #define GL_DOUBLE 0x1408
48 
49 #define GL_RED 0x1903
50 #define GL_GREEN 0x1904
51 #define GL_BLUE 0x1905
52 #define GL_ALPHA 0x1906
53 #define GL_RGB 0x1907
54 #define GL_RGBA 0x1908
55 #define GL_RGBA_INTEGER 0x8D99
56 #define GL_BGRA 0x80E1
57 #define GL_RG 0x8227
58 
59 #define GL_DEPTH_COMPONENT 0x1902
60 #define GL_DEPTH_COMPONENT16 0x81A5
61 #define GL_DEPTH_COMPONENT24 0x81A6
62 #define GL_DEPTH_COMPONENT32 0x81A7
63 
64 #define GL_ARRAY_BUFFER 0x8892
65 #define GL_ELEMENT_ARRAY_BUFFER 0x8893
66 
67 #define GL_READ_FRAMEBUFFER 0x8CA8
68 #define GL_DRAW_FRAMEBUFFER 0x8CA9
69 #define GL_FRAMEBUFFER 0x8D40
70 #define GL_DRAW_FRAMEBUFFER_BINDING 0x8CA6
71 #define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
72 #define GL_RENDERBUFFER 0x8D41
73 #define GL_COLOR_ATTACHMENT0 0x8CE0
74 #define GL_DEPTH_ATTACHMENT 0x8D00
75 #define GL_STENCIL_ATTACHMENT 0x8D20
76 #define GL_FRAMEBUFFER_COMPLETE 0x8CD5
77 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
78 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
79 #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
80 #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
81 #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
82 #define GL_COLOR_BUFFER_BIT 0x00004000
83 #define GL_DEPTH_BUFFER_BIT 0x00000100
84 #define GL_STENCIL_BUFFER_BIT 0x00000400
85 
86 #define GL_PIXEL_PACK_BUFFER 0x88EB
87 #define GL_PIXEL_UNPACK_BUFFER 0x88EC
88 #define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
89 #define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
90 #define GL_UNPACK_ROW_LENGTH 0x0CF2
91 #define GL_UNPACK_ALIGNMENT 0x0CF5
92 
93 #define GL_QUERY_RESULT 0x8866
94 #define GL_QUERY_RESULT_AVAILABLE 0x8867
95 #define GL_TIME_ELAPSED 0x88BF
96 #define GL_SAMPLES_PASSED 0x8914
97 
98 #define GL_NEAREST 0x2600
99 #define GL_LINEAR 0x2601
100 #define GL_NEAREST_MIPMAP_NEAREST 0x2700
101 #define GL_NEAREST_MIPMAP_LINEAR 0x2702
102 #define GL_LINEAR_MIPMAP_NEAREST 0x2701
103 #define GL_LINEAR_MIPMAP_LINEAR 0x2703
104 #define GL_TEXTURE_WRAP_S 0x2802
105 #define GL_TEXTURE_WRAP_T 0x2803
106 #define GL_TEXTURE_MAG_FILTER 0x2800
107 #define GL_TEXTURE_MIN_FILTER 0x2801
108 #define GL_CLAMP_TO_EDGE 0x812F
109 #define GL_TEXTURE_2D 0x0DE1
110 #define GL_TEXTURE_3D 0x806F
111 #define GL_TEXTURE_2D_ARRAY 0x8C1A
112 #define GL_TEXTURE_RECTANGLE 0x84F5
113 #define GL_TEXTURE0 0x84C0
114 #define GL_TEXTURE1 0x84C1
115 #define GL_TEXTURE2 0x84C2
116 #define GL_TEXTURE3 0x84C3
117 #define GL_TEXTURE4 0x84C4
118 #define GL_TEXTURE5 0x84C5
119 #define GL_TEXTURE6 0x84C6
120 #define GL_TEXTURE7 0x84C7
121 #define GL_TEXTURE8 0x84C8
122 #define GL_TEXTURE9 0x84C9
123 #define GL_TEXTURE10 0x84CA
124 #define GL_TEXTURE11 0x84CB
125 #define GL_TEXTURE12 0x84CC
126 #define GL_TEXTURE13 0x84CD
127 #define GL_TEXTURE14 0x84CE
128 #define GL_TEXTURE15 0x84CF
129 #define GL_MAX_TEXTURE_UNITS 0x84E2
130 #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
131 #define GL_MAX_TEXTURE_SIZE 0x0D33
132 #define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
133 #define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
134 #define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
135 
136 #define GL_VERTEX_SHADER 0x8B31
137 #define GL_FRAGMENT_SHADER 0x8B30
138 
139 #define GL_BLEND 0x0BE2
140 #define GL_ZERO 0
141 #define GL_ONE 1
142 #define GL_SRC_COLOR 0x0300
143 #define GL_ONE_MINUS_SRC_COLOR 0x0301
144 #define GL_SRC_ALPHA 0x0302
145 #define GL_ONE_MINUS_SRC_ALPHA 0x0303
146 #define GL_DST_ALPHA 0x0304
147 #define GL_ONE_MINUS_DST_ALPHA 0x0305
148 #define GL_DST_COLOR 0x0306
149 #define GL_ONE_MINUS_DST_COLOR 0x0307
150 #define GL_CONSTANT_COLOR 0x8001
151 #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
152 #define GL_CONSTANT_ALPHA 0x8003
153 #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
154 #define GL_SRC1_ALPHA 0x8589
155 #define GL_SRC1_COLOR 0x88F9
156 #define GL_ONE_MINUS_SRC1_COLOR 0x88FA
157 #define GL_ONE_MINUS_SRC1_ALPHA 0x88FB
158 
159 #define GL_FUNC_ADD 0x8006
160 #define GL_MIN 0x8007
161 #define GL_MAX 0x8008
162 
163 #define GL_NEVER 0x0200
164 #define GL_LESS 0x0201
165 #define GL_EQUAL 0x0202
166 #define GL_LEQUAL 0x0203
167 #define GL_GREATER 0x0204
168 #define GL_NOTEQUAL 0x0205
169 #define GL_GEQUAL 0x0206
170 #define GL_ALWAYS 0x0207
171 #define GL_DEPTH_TEST 0x0B71
172 #define GL_DEPTH_WRITEMASK 0x0B72
173 
174 #define GL_SCISSOR_TEST 0x0C11
175 
176 #define GL_VENDOR 0x1F00
177 #define GL_RENDERER 0x1F01
178 #define GL_VERSION 0x1F02
179 #define GL_EXTENSIONS 0x1F03
180 #define GL_NUM_EXTENSIONS 0x821D
181 #define GL_MINOR_VERSION 0x821C
182 #define GL_MAJOR_VERSION 0x821B
183 #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
184 
185 #define GL_POINTS 0x0000
186 #define GL_LINES 0x0001
187 #define GL_LINE_LOOP 0x0002
188 #define GL_LINE_STRIP 0x0003
189 #define GL_TRIANGLES 0x0004
190 #define GL_TRIANGLE_STRIP 0x0005
191 #define GL_TRIANGLE_FAN 0x0006
192 #define GL_QUADS 0x0007
193 
194 #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
195 
196 #define GL_RGB_422_APPLE 0x8A1F
197 #define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA
198 #define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB
199 #define GL_RGB_RAW_422_APPLE 0x8A51
200 
201 #define GL_MULTIPLY_KHR 0x9294
202 #define GL_SCREEN_KHR 0x9295
203 #define GL_OVERLAY_KHR 0x9296
204 #define GL_DARKEN_KHR 0x9297
205 #define GL_LIGHTEN_KHR 0x9298
206 #define GL_COLORDODGE_KHR 0x9299
207 #define GL_COLORBURN_KHR 0x929A
208 #define GL_HARDLIGHT_KHR 0x929B
209 #define GL_SOFTLIGHT_KHR 0x929C
210 #define GL_DIFFERENCE_KHR 0x929E
211 #define GL_EXCLUSION_KHR 0x92A0
212 #define GL_HSL_HUE_KHR 0x92AD
213 #define GL_HSL_SATURATION_KHR 0x92AE
214 #define GL_HSL_COLOR_KHR 0x92AF
215 #define GL_HSL_LUMINOSITY_KHR 0x92B0
216 
217 #define SWGL_BLEND_DROP_SHADOW 0xB001
218 #define SWGL_BLEND_SUBPIXEL_TEXT 0xB002
219