Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
orangepi-xunlong
GitHub Repository: orangepi-xunlong/orangepi-build
Path: blob/next/external/packages/extras-buildpkgs/libglshim/debian/patches/add-gles2-includes.patch
8625 views
1
diff --git a/include_mali/GLES2/gl2.h b/include_mali/GLES2/gl2.h
2
new file mode 100644
3
index 0000000..90d96bb
4
--- /dev/null
5
+++ b/include_mali/GLES2/gl2.h
6
@@ -0,0 +1,621 @@
7
+#ifndef __gl2_h_
8
+#define __gl2_h_
9
+
10
+/* $Revision: 8784 $ on $Date:: 2009-09-02 09:49:17 -0700 #$ */
11
+
12
+#include <GLES2/gl2platform.h>
13
+
14
+#ifdef __cplusplus
15
+extern "C" {
16
+#endif
17
+
18
+/*
19
+ * This document is licensed under the SGI Free Software B License Version
20
+ * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
21
+ */
22
+
23
+/*-------------------------------------------------------------------------
24
+ * Data type definitions
25
+ *-----------------------------------------------------------------------*/
26
+
27
+typedef void GLvoid;
28
+typedef unsigned int GLenum;
29
+typedef unsigned char GLboolean;
30
+typedef unsigned int GLbitfield;
31
+typedef khronos_int8_t GLbyte;
32
+typedef short GLshort;
33
+typedef int GLint;
34
+typedef int GLsizei;
35
+typedef khronos_uint8_t GLubyte;
36
+typedef unsigned short GLushort;
37
+typedef unsigned int GLuint;
38
+typedef khronos_float_t GLfloat;
39
+typedef khronos_float_t GLclampf;
40
+typedef khronos_int32_t GLfixed;
41
+typedef char GLchar;
42
+
43
+/* GL types for handling large vertex buffer objects */
44
+typedef khronos_intptr_t GLintptr;
45
+typedef khronos_ssize_t GLsizeiptr;
46
+
47
+/* OpenGL ES core versions */
48
+#define GL_ES_VERSION_2_0 1
49
+
50
+/* ClearBufferMask */
51
+#define GL_DEPTH_BUFFER_BIT 0x00000100
52
+#define GL_STENCIL_BUFFER_BIT 0x00000400
53
+#define GL_COLOR_BUFFER_BIT 0x00004000
54
+
55
+/* Boolean */
56
+#define GL_FALSE 0
57
+#define GL_TRUE 1
58
+
59
+/* BeginMode */
60
+#define GL_POINTS 0x0000
61
+#define GL_LINES 0x0001
62
+#define GL_LINE_LOOP 0x0002
63
+#define GL_LINE_STRIP 0x0003
64
+#define GL_TRIANGLES 0x0004
65
+#define GL_TRIANGLE_STRIP 0x0005
66
+#define GL_TRIANGLE_FAN 0x0006
67
+
68
+/* AlphaFunction (not supported in ES20) */
69
+/* GL_NEVER */
70
+/* GL_LESS */
71
+/* GL_EQUAL */
72
+/* GL_LEQUAL */
73
+/* GL_GREATER */
74
+/* GL_NOTEQUAL */
75
+/* GL_GEQUAL */
76
+/* GL_ALWAYS */
77
+
78
+/* BlendingFactorDest */
79
+#define GL_ZERO 0
80
+#define GL_ONE 1
81
+#define GL_SRC_COLOR 0x0300
82
+#define GL_ONE_MINUS_SRC_COLOR 0x0301
83
+#define GL_SRC_ALPHA 0x0302
84
+#define GL_ONE_MINUS_SRC_ALPHA 0x0303
85
+#define GL_DST_ALPHA 0x0304
86
+#define GL_ONE_MINUS_DST_ALPHA 0x0305
87
+
88
+/* BlendingFactorSrc */
89
+/* GL_ZERO */
90
+/* GL_ONE */
91
+#define GL_DST_COLOR 0x0306
92
+#define GL_ONE_MINUS_DST_COLOR 0x0307
93
+#define GL_SRC_ALPHA_SATURATE 0x0308
94
+/* GL_SRC_ALPHA */
95
+/* GL_ONE_MINUS_SRC_ALPHA */
96
+/* GL_DST_ALPHA */
97
+/* GL_ONE_MINUS_DST_ALPHA */
98
+
99
+/* BlendEquationSeparate */
100
+#define GL_FUNC_ADD 0x8006
101
+#define GL_BLEND_EQUATION 0x8009
102
+#define GL_BLEND_EQUATION_RGB 0x8009 /* same as BLEND_EQUATION */
103
+#define GL_BLEND_EQUATION_ALPHA 0x883D
104
+
105
+/* BlendSubtract */
106
+#define GL_FUNC_SUBTRACT 0x800A
107
+#define GL_FUNC_REVERSE_SUBTRACT 0x800B
108
+
109
+/* Separate Blend Functions */
110
+#define GL_BLEND_DST_RGB 0x80C8
111
+#define GL_BLEND_SRC_RGB 0x80C9
112
+#define GL_BLEND_DST_ALPHA 0x80CA
113
+#define GL_BLEND_SRC_ALPHA 0x80CB
114
+#define GL_CONSTANT_COLOR 0x8001
115
+#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
116
+#define GL_CONSTANT_ALPHA 0x8003
117
+#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
118
+#define GL_BLEND_COLOR 0x8005
119
+
120
+/* Buffer Objects */
121
+#define GL_ARRAY_BUFFER 0x8892
122
+#define GL_ELEMENT_ARRAY_BUFFER 0x8893
123
+#define GL_ARRAY_BUFFER_BINDING 0x8894
124
+#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
125
+
126
+#define GL_STREAM_DRAW 0x88E0
127
+#define GL_STATIC_DRAW 0x88E4
128
+#define GL_DYNAMIC_DRAW 0x88E8
129
+
130
+#define GL_BUFFER_SIZE 0x8764
131
+#define GL_BUFFER_USAGE 0x8765
132
+
133
+#define GL_CURRENT_VERTEX_ATTRIB 0x8626
134
+
135
+/* CullFaceMode */
136
+#define GL_FRONT 0x0404
137
+#define GL_BACK 0x0405
138
+#define GL_FRONT_AND_BACK 0x0408
139
+
140
+/* DepthFunction */
141
+/* GL_NEVER */
142
+/* GL_LESS */
143
+/* GL_EQUAL */
144
+/* GL_LEQUAL */
145
+/* GL_GREATER */
146
+/* GL_NOTEQUAL */
147
+/* GL_GEQUAL */
148
+/* GL_ALWAYS */
149
+
150
+/* EnableCap */
151
+#define GL_TEXTURE_2D 0x0DE1
152
+#define GL_CULL_FACE 0x0B44
153
+#define GL_BLEND 0x0BE2
154
+#define GL_DITHER 0x0BD0
155
+#define GL_STENCIL_TEST 0x0B90
156
+#define GL_DEPTH_TEST 0x0B71
157
+#define GL_SCISSOR_TEST 0x0C11
158
+#define GL_POLYGON_OFFSET_FILL 0x8037
159
+#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
160
+#define GL_SAMPLE_COVERAGE 0x80A0
161
+
162
+/* ErrorCode */
163
+#define GL_NO_ERROR 0
164
+#define GL_INVALID_ENUM 0x0500
165
+#define GL_INVALID_VALUE 0x0501
166
+#define GL_INVALID_OPERATION 0x0502
167
+#define GL_OUT_OF_MEMORY 0x0505
168
+
169
+/* FrontFaceDirection */
170
+#define GL_CW 0x0900
171
+#define GL_CCW 0x0901
172
+
173
+/* GetPName */
174
+#define GL_LINE_WIDTH 0x0B21
175
+#define GL_ALIASED_POINT_SIZE_RANGE 0x846D
176
+#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
177
+#define GL_CULL_FACE_MODE 0x0B45
178
+#define GL_FRONT_FACE 0x0B46
179
+#define GL_DEPTH_RANGE 0x0B70
180
+#define GL_DEPTH_WRITEMASK 0x0B72
181
+#define GL_DEPTH_CLEAR_VALUE 0x0B73
182
+#define GL_DEPTH_FUNC 0x0B74
183
+#define GL_STENCIL_CLEAR_VALUE 0x0B91
184
+#define GL_STENCIL_FUNC 0x0B92
185
+#define GL_STENCIL_FAIL 0x0B94
186
+#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
187
+#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
188
+#define GL_STENCIL_REF 0x0B97
189
+#define GL_STENCIL_VALUE_MASK 0x0B93
190
+#define GL_STENCIL_WRITEMASK 0x0B98
191
+#define GL_STENCIL_BACK_FUNC 0x8800
192
+#define GL_STENCIL_BACK_FAIL 0x8801
193
+#define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
194
+#define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
195
+#define GL_STENCIL_BACK_REF 0x8CA3
196
+#define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
197
+#define GL_STENCIL_BACK_WRITEMASK 0x8CA5
198
+#define GL_VIEWPORT 0x0BA2
199
+#define GL_SCISSOR_BOX 0x0C10
200
+/* GL_SCISSOR_TEST */
201
+#define GL_COLOR_CLEAR_VALUE 0x0C22
202
+#define GL_COLOR_WRITEMASK 0x0C23
203
+#define GL_UNPACK_ALIGNMENT 0x0CF5
204
+#define GL_PACK_ALIGNMENT 0x0D05
205
+#define GL_MAX_TEXTURE_SIZE 0x0D33
206
+#define GL_MAX_VIEWPORT_DIMS 0x0D3A
207
+#define GL_SUBPIXEL_BITS 0x0D50
208
+#define GL_RED_BITS 0x0D52
209
+#define GL_GREEN_BITS 0x0D53
210
+#define GL_BLUE_BITS 0x0D54
211
+#define GL_ALPHA_BITS 0x0D55
212
+#define GL_DEPTH_BITS 0x0D56
213
+#define GL_STENCIL_BITS 0x0D57
214
+#define GL_POLYGON_OFFSET_UNITS 0x2A00
215
+/* GL_POLYGON_OFFSET_FILL */
216
+#define GL_POLYGON_OFFSET_FACTOR 0x8038
217
+#define GL_TEXTURE_BINDING_2D 0x8069
218
+#define GL_SAMPLE_BUFFERS 0x80A8
219
+#define GL_SAMPLES 0x80A9
220
+#define GL_SAMPLE_COVERAGE_VALUE 0x80AA
221
+#define GL_SAMPLE_COVERAGE_INVERT 0x80AB
222
+
223
+/* GetTextureParameter */
224
+/* GL_TEXTURE_MAG_FILTER */
225
+/* GL_TEXTURE_MIN_FILTER */
226
+/* GL_TEXTURE_WRAP_S */
227
+/* GL_TEXTURE_WRAP_T */
228
+
229
+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
230
+#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
231
+
232
+/* HintMode */
233
+#define GL_DONT_CARE 0x1100
234
+#define GL_FASTEST 0x1101
235
+#define GL_NICEST 0x1102
236
+
237
+/* HintTarget */
238
+#define GL_GENERATE_MIPMAP_HINT 0x8192
239
+
240
+/* DataType */
241
+#define GL_BYTE 0x1400
242
+#define GL_UNSIGNED_BYTE 0x1401
243
+#define GL_SHORT 0x1402
244
+#define GL_UNSIGNED_SHORT 0x1403
245
+#define GL_INT 0x1404
246
+#define GL_UNSIGNED_INT 0x1405
247
+#define GL_FLOAT 0x1406
248
+#define GL_FIXED 0x140C
249
+
250
+/* PixelFormat */
251
+#define GL_DEPTH_COMPONENT 0x1902
252
+#define GL_ALPHA 0x1906
253
+#define GL_RGB 0x1907
254
+#define GL_RGBA 0x1908
255
+#define GL_LUMINANCE 0x1909
256
+#define GL_LUMINANCE_ALPHA 0x190A
257
+
258
+/* PixelType */
259
+/* GL_UNSIGNED_BYTE */
260
+#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
261
+#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
262
+#define GL_UNSIGNED_SHORT_5_6_5 0x8363
263
+
264
+/* Shaders */
265
+#define GL_FRAGMENT_SHADER 0x8B30
266
+#define GL_VERTEX_SHADER 0x8B31
267
+#define GL_MAX_VERTEX_ATTRIBS 0x8869
268
+#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
269
+#define GL_MAX_VARYING_VECTORS 0x8DFC
270
+#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
271
+#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
272
+#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
273
+#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
274
+#define GL_SHADER_TYPE 0x8B4F
275
+#define GL_DELETE_STATUS 0x8B80
276
+#define GL_LINK_STATUS 0x8B82
277
+#define GL_VALIDATE_STATUS 0x8B83
278
+#define GL_ATTACHED_SHADERS 0x8B85
279
+#define GL_ACTIVE_UNIFORMS 0x8B86
280
+#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
281
+#define GL_ACTIVE_ATTRIBUTES 0x8B89
282
+#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
283
+#define GL_SHADING_LANGUAGE_VERSION 0x8B8C
284
+#define GL_CURRENT_PROGRAM 0x8B8D
285
+
286
+/* StencilFunction */
287
+#define GL_NEVER 0x0200
288
+#define GL_LESS 0x0201
289
+#define GL_EQUAL 0x0202
290
+#define GL_LEQUAL 0x0203
291
+#define GL_GREATER 0x0204
292
+#define GL_NOTEQUAL 0x0205
293
+#define GL_GEQUAL 0x0206
294
+#define GL_ALWAYS 0x0207
295
+
296
+/* StencilOp */
297
+/* GL_ZERO */
298
+#define GL_KEEP 0x1E00
299
+#define GL_REPLACE 0x1E01
300
+#define GL_INCR 0x1E02
301
+#define GL_DECR 0x1E03
302
+#define GL_INVERT 0x150A
303
+#define GL_INCR_WRAP 0x8507
304
+#define GL_DECR_WRAP 0x8508
305
+
306
+/* StringName */
307
+#define GL_VENDOR 0x1F00
308
+#define GL_RENDERER 0x1F01
309
+#define GL_VERSION 0x1F02
310
+#define GL_EXTENSIONS 0x1F03
311
+
312
+/* TextureMagFilter */
313
+#define GL_NEAREST 0x2600
314
+#define GL_LINEAR 0x2601
315
+
316
+/* TextureMinFilter */
317
+/* GL_NEAREST */
318
+/* GL_LINEAR */
319
+#define GL_NEAREST_MIPMAP_NEAREST 0x2700
320
+#define GL_LINEAR_MIPMAP_NEAREST 0x2701
321
+#define GL_NEAREST_MIPMAP_LINEAR 0x2702
322
+#define GL_LINEAR_MIPMAP_LINEAR 0x2703
323
+
324
+/* TextureParameterName */
325
+#define GL_TEXTURE_MAG_FILTER 0x2800
326
+#define GL_TEXTURE_MIN_FILTER 0x2801
327
+#define GL_TEXTURE_WRAP_S 0x2802
328
+#define GL_TEXTURE_WRAP_T 0x2803
329
+
330
+/* TextureTarget */
331
+/* GL_TEXTURE_2D */
332
+#define GL_TEXTURE 0x1702
333
+
334
+#define GL_TEXTURE_CUBE_MAP 0x8513
335
+#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
336
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
337
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
338
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
339
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
340
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
341
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
342
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
343
+
344
+/* TextureUnit */
345
+#define GL_TEXTURE0 0x84C0
346
+#define GL_TEXTURE1 0x84C1
347
+#define GL_TEXTURE2 0x84C2
348
+#define GL_TEXTURE3 0x84C3
349
+#define GL_TEXTURE4 0x84C4
350
+#define GL_TEXTURE5 0x84C5
351
+#define GL_TEXTURE6 0x84C6
352
+#define GL_TEXTURE7 0x84C7
353
+#define GL_TEXTURE8 0x84C8
354
+#define GL_TEXTURE9 0x84C9
355
+#define GL_TEXTURE10 0x84CA
356
+#define GL_TEXTURE11 0x84CB
357
+#define GL_TEXTURE12 0x84CC
358
+#define GL_TEXTURE13 0x84CD
359
+#define GL_TEXTURE14 0x84CE
360
+#define GL_TEXTURE15 0x84CF
361
+#define GL_TEXTURE16 0x84D0
362
+#define GL_TEXTURE17 0x84D1
363
+#define GL_TEXTURE18 0x84D2
364
+#define GL_TEXTURE19 0x84D3
365
+#define GL_TEXTURE20 0x84D4
366
+#define GL_TEXTURE21 0x84D5
367
+#define GL_TEXTURE22 0x84D6
368
+#define GL_TEXTURE23 0x84D7
369
+#define GL_TEXTURE24 0x84D8
370
+#define GL_TEXTURE25 0x84D9
371
+#define GL_TEXTURE26 0x84DA
372
+#define GL_TEXTURE27 0x84DB
373
+#define GL_TEXTURE28 0x84DC
374
+#define GL_TEXTURE29 0x84DD
375
+#define GL_TEXTURE30 0x84DE
376
+#define GL_TEXTURE31 0x84DF
377
+#define GL_ACTIVE_TEXTURE 0x84E0
378
+
379
+/* TextureWrapMode */
380
+#define GL_REPEAT 0x2901
381
+#define GL_CLAMP_TO_EDGE 0x812F
382
+#define GL_MIRRORED_REPEAT 0x8370
383
+
384
+/* Uniform Types */
385
+#define GL_FLOAT_VEC2 0x8B50
386
+#define GL_FLOAT_VEC3 0x8B51
387
+#define GL_FLOAT_VEC4 0x8B52
388
+#define GL_INT_VEC2 0x8B53
389
+#define GL_INT_VEC3 0x8B54
390
+#define GL_INT_VEC4 0x8B55
391
+#define GL_BOOL 0x8B56
392
+#define GL_BOOL_VEC2 0x8B57
393
+#define GL_BOOL_VEC3 0x8B58
394
+#define GL_BOOL_VEC4 0x8B59
395
+#define GL_FLOAT_MAT2 0x8B5A
396
+#define GL_FLOAT_MAT3 0x8B5B
397
+#define GL_FLOAT_MAT4 0x8B5C
398
+#define GL_SAMPLER_2D 0x8B5E
399
+#define GL_SAMPLER_CUBE 0x8B60
400
+
401
+/* Vertex Arrays */
402
+#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
403
+#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
404
+#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
405
+#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
406
+#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
407
+#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
408
+#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
409
+
410
+/* Read Format */
411
+#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
412
+#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
413
+
414
+/* Shader Source */
415
+#define GL_COMPILE_STATUS 0x8B81
416
+#define GL_INFO_LOG_LENGTH 0x8B84
417
+#define GL_SHADER_SOURCE_LENGTH 0x8B88
418
+#define GL_SHADER_COMPILER 0x8DFA
419
+
420
+/* Shader Binary */
421
+#define GL_SHADER_BINARY_FORMATS 0x8DF8
422
+#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
423
+
424
+/* Shader Precision-Specified Types */
425
+#define GL_LOW_FLOAT 0x8DF0
426
+#define GL_MEDIUM_FLOAT 0x8DF1
427
+#define GL_HIGH_FLOAT 0x8DF2
428
+#define GL_LOW_INT 0x8DF3
429
+#define GL_MEDIUM_INT 0x8DF4
430
+#define GL_HIGH_INT 0x8DF5
431
+
432
+/* Framebuffer Object. */
433
+#define GL_FRAMEBUFFER 0x8D40
434
+#define GL_RENDERBUFFER 0x8D41
435
+
436
+#define GL_RGBA4 0x8056
437
+#define GL_RGB5_A1 0x8057
438
+#define GL_RGB565 0x8D62
439
+#define GL_DEPTH_COMPONENT16 0x81A5
440
+#define GL_STENCIL_INDEX 0x1901
441
+#define GL_STENCIL_INDEX8 0x8D48
442
+
443
+#define GL_RENDERBUFFER_WIDTH 0x8D42
444
+#define GL_RENDERBUFFER_HEIGHT 0x8D43
445
+#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
446
+#define GL_RENDERBUFFER_RED_SIZE 0x8D50
447
+#define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
448
+#define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
449
+#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
450
+#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
451
+#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
452
+
453
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
454
+#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
455
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
456
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
457
+
458
+#define GL_COLOR_ATTACHMENT0 0x8CE0
459
+#define GL_DEPTH_ATTACHMENT 0x8D00
460
+#define GL_STENCIL_ATTACHMENT 0x8D20
461
+
462
+#define GL_NONE 0
463
+
464
+#define GL_FRAMEBUFFER_COMPLETE 0x8CD5
465
+#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
466
+#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
467
+#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9
468
+#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
469
+
470
+#define GL_FRAMEBUFFER_BINDING 0x8CA6
471
+#define GL_RENDERBUFFER_BINDING 0x8CA7
472
+#define GL_MAX_RENDERBUFFER_SIZE 0x84E8
473
+
474
+#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
475
+
476
+/*-------------------------------------------------------------------------
477
+ * GL core functions.
478
+ *-----------------------------------------------------------------------*/
479
+
480
+GL_APICALL void GL_APIENTRY glActiveTexture (GLenum texture);
481
+GL_APICALL void GL_APIENTRY glAttachShader (GLuint program, GLuint shader);
482
+GL_APICALL void GL_APIENTRY glBindAttribLocation (GLuint program, GLuint index, const char* name);
483
+GL_APICALL void GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer);
484
+GL_APICALL void GL_APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
485
+GL_APICALL void GL_APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
486
+GL_APICALL void GL_APIENTRY glBindTexture (GLenum target, GLuint texture);
487
+GL_APICALL void GL_APIENTRY glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
488
+GL_APICALL void GL_APIENTRY glBlendEquation ( GLenum mode );
489
+GL_APICALL void GL_APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
490
+GL_APICALL void GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
491
+GL_APICALL void GL_APIENTRY glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
492
+GL_APICALL void GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void* data, GLenum usage);
493
+GL_APICALL void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void* data);
494
+GL_APICALL GLenum GL_APIENTRY glCheckFramebufferStatus (GLenum target);
495
+GL_APICALL void GL_APIENTRY glClear (GLbitfield mask);
496
+GL_APICALL void GL_APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
497
+GL_APICALL void GL_APIENTRY glClearDepthf (GLclampf depth);
498
+GL_APICALL void GL_APIENTRY glClearStencil (GLint s);
499
+GL_APICALL void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
500
+GL_APICALL void GL_APIENTRY glCompileShader (GLuint shader);
501
+GL_APICALL void GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data);
502
+GL_APICALL void GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data);
503
+GL_APICALL void GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
504
+GL_APICALL void GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
505
+GL_APICALL GLuint GL_APIENTRY glCreateProgram (void);
506
+GL_APICALL GLuint GL_APIENTRY glCreateShader (GLenum type);
507
+GL_APICALL void GL_APIENTRY glCullFace (GLenum mode);
508
+GL_APICALL void GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint* buffers);
509
+GL_APICALL void GL_APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint* framebuffers);
510
+GL_APICALL void GL_APIENTRY glDeleteProgram (GLuint program);
511
+GL_APICALL void GL_APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers);
512
+GL_APICALL void GL_APIENTRY glDeleteShader (GLuint shader);
513
+GL_APICALL void GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint* textures);
514
+GL_APICALL void GL_APIENTRY glDepthFunc (GLenum func);
515
+GL_APICALL void GL_APIENTRY glDepthMask (GLboolean flag);
516
+GL_APICALL void GL_APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar);
517
+GL_APICALL void GL_APIENTRY glDetachShader (GLuint program, GLuint shader);
518
+GL_APICALL void GL_APIENTRY glDisable (GLenum cap);
519
+GL_APICALL void GL_APIENTRY glDisableVertexAttribArray (GLuint index);
520
+GL_APICALL void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
521
+GL_APICALL void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void* indices);
522
+GL_APICALL void GL_APIENTRY glEnable (GLenum cap);
523
+GL_APICALL void GL_APIENTRY glEnableVertexAttribArray (GLuint index);
524
+GL_APICALL void GL_APIENTRY glFinish (void);
525
+GL_APICALL void GL_APIENTRY glFlush (void);
526
+GL_APICALL void GL_APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
527
+GL_APICALL void GL_APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
528
+GL_APICALL void GL_APIENTRY glFrontFace (GLenum mode);
529
+GL_APICALL void GL_APIENTRY glGenBuffers (GLsizei n, GLuint* buffers);
530
+GL_APICALL void GL_APIENTRY glGenerateMipmap (GLenum target);
531
+GL_APICALL void GL_APIENTRY glGenFramebuffers (GLsizei n, GLuint* framebuffers);
532
+GL_APICALL void GL_APIENTRY glGenRenderbuffers (GLsizei n, GLuint* renderbuffers);
533
+GL_APICALL void GL_APIENTRY glGenTextures (GLsizei n, GLuint* textures);
534
+GL_APICALL void GL_APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name);
535
+GL_APICALL void GL_APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name);
536
+GL_APICALL void GL_APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders);
537
+GL_APICALL int GL_APIENTRY glGetAttribLocation (GLuint program, const char* name);
538
+GL_APICALL void GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean* params);
539
+GL_APICALL void GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params);
540
+GL_APICALL GLenum GL_APIENTRY glGetError (void);
541
+GL_APICALL void GL_APIENTRY glGetFloatv (GLenum pname, GLfloat* params);
542
+GL_APICALL void GL_APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params);
543
+GL_APICALL void GL_APIENTRY glGetIntegerv (GLenum pname, GLint* params);
544
+GL_APICALL void GL_APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint* params);
545
+GL_APICALL void GL_APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, char* infolog);
546
+GL_APICALL void GL_APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params);
547
+GL_APICALL void GL_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint* params);
548
+GL_APICALL void GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog);
549
+GL_APICALL void GL_APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision);
550
+GL_APICALL void GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, char* source);
551
+GL_APICALL const GLubyte* GL_APIENTRY glGetString (GLenum name);
552
+GL_APICALL void GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params);
553
+GL_APICALL void GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint* params);
554
+GL_APICALL void GL_APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat* params);
555
+GL_APICALL void GL_APIENTRY glGetUniformiv (GLuint program, GLint location, GLint* params);
556
+GL_APICALL int GL_APIENTRY glGetUniformLocation (GLuint program, const char* name);
557
+GL_APICALL void GL_APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params);
558
+GL_APICALL void GL_APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params);
559
+GL_APICALL void GL_APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void** pointer);
560
+GL_APICALL void GL_APIENTRY glHint (GLenum target, GLenum mode);
561
+GL_APICALL GLboolean GL_APIENTRY glIsBuffer (GLuint buffer);
562
+GL_APICALL GLboolean GL_APIENTRY glIsEnabled (GLenum cap);
563
+GL_APICALL GLboolean GL_APIENTRY glIsFramebuffer (GLuint framebuffer);
564
+GL_APICALL GLboolean GL_APIENTRY glIsProgram (GLuint program);
565
+GL_APICALL GLboolean GL_APIENTRY glIsRenderbuffer (GLuint renderbuffer);
566
+GL_APICALL GLboolean GL_APIENTRY glIsShader (GLuint shader);
567
+GL_APICALL GLboolean GL_APIENTRY glIsTexture (GLuint texture);
568
+GL_APICALL void GL_APIENTRY glLineWidth (GLfloat width);
569
+GL_APICALL void GL_APIENTRY glLinkProgram (GLuint program);
570
+GL_APICALL void GL_APIENTRY glPixelStorei (GLenum pname, GLint param);
571
+GL_APICALL void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
572
+GL_APICALL void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void* pixels);
573
+GL_APICALL void GL_APIENTRY glReleaseShaderCompiler (void);
574
+GL_APICALL void GL_APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
575
+GL_APICALL void GL_APIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
576
+GL_APICALL void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
577
+GL_APICALL void GL_APIENTRY glShaderBinary (GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary, GLsizei length);
578
+GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const char** string, const GLint* length);
579
+GL_APICALL void GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
580
+GL_APICALL void GL_APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
581
+GL_APICALL void GL_APIENTRY glStencilMask (GLuint mask);
582
+GL_APICALL void GL_APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
583
+GL_APICALL void GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
584
+GL_APICALL void GL_APIENTRY glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
585
+GL_APICALL void GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void* pixels);
586
+GL_APICALL void GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
587
+GL_APICALL void GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat* params);
588
+GL_APICALL void GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
589
+GL_APICALL void GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint* params);
590
+GL_APICALL void GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels);
591
+GL_APICALL void GL_APIENTRY glUniform1f (GLint location, GLfloat x);
592
+GL_APICALL void GL_APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat* v);
593
+GL_APICALL void GL_APIENTRY glUniform1i (GLint location, GLint x);
594
+GL_APICALL void GL_APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint* v);
595
+GL_APICALL void GL_APIENTRY glUniform2f (GLint location, GLfloat x, GLfloat y);
596
+GL_APICALL void GL_APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat* v);
597
+GL_APICALL void GL_APIENTRY glUniform2i (GLint location, GLint x, GLint y);
598
+GL_APICALL void GL_APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint* v);
599
+GL_APICALL void GL_APIENTRY glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z);
600
+GL_APICALL void GL_APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat* v);
601
+GL_APICALL void GL_APIENTRY glUniform3i (GLint location, GLint x, GLint y, GLint z);
602
+GL_APICALL void GL_APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint* v);
603
+GL_APICALL void GL_APIENTRY glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
604
+GL_APICALL void GL_APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat* v);
605
+GL_APICALL void GL_APIENTRY glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w);
606
+GL_APICALL void GL_APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint* v);
607
+GL_APICALL void GL_APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
608
+GL_APICALL void GL_APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
609
+GL_APICALL void GL_APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
610
+GL_APICALL void GL_APIENTRY glUseProgram (GLuint program);
611
+GL_APICALL void GL_APIENTRY glValidateProgram (GLuint program);
612
+GL_APICALL void GL_APIENTRY glVertexAttrib1f (GLuint indx, GLfloat x);
613
+GL_APICALL void GL_APIENTRY glVertexAttrib1fv (GLuint indx, const GLfloat* values);
614
+GL_APICALL void GL_APIENTRY glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y);
615
+GL_APICALL void GL_APIENTRY glVertexAttrib2fv (GLuint indx, const GLfloat* values);
616
+GL_APICALL void GL_APIENTRY glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z);
617
+GL_APICALL void GL_APIENTRY glVertexAttrib3fv (GLuint indx, const GLfloat* values);
618
+GL_APICALL void GL_APIENTRY glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
619
+GL_APICALL void GL_APIENTRY glVertexAttrib4fv (GLuint indx, const GLfloat* values);
620
+GL_APICALL void GL_APIENTRY glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* ptr);
621
+GL_APICALL void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
622
+
623
+#ifdef __cplusplus
624
+}
625
+#endif
626
+
627
+#endif /* __gl2_h_ */
628
diff --git a/include_mali/GLES2/gl2ext.h b/include_mali/GLES2/gl2ext.h
629
new file mode 100644
630
index 0000000..127711f
631
--- /dev/null
632
+++ b/include_mali/GLES2/gl2ext.h
633
@@ -0,0 +1,359 @@
634
+#ifndef __gl2ext_h_
635
+#define __gl2ext_h_
636
+
637
+/* $Revision: 7173 $ on $Date:: 2009-01-09 11:18:21 -0800 #$ */
638
+
639
+#ifdef __cplusplus
640
+extern "C" {
641
+#endif
642
+
643
+/*
644
+ * This document is licensed under the SGI Free Software B License Version
645
+ * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
646
+ */
647
+
648
+#ifndef GL_APIENTRYP
649
+# define GL_APIENTRYP GL_APIENTRY*
650
+#endif
651
+
652
+/*------------------------------------------------------------------------*
653
+ * OES extension tokens
654
+ *------------------------------------------------------------------------*/
655
+
656
+/* GL_OES_compressed_ETC1_RGB8_texture */
657
+#ifndef GL_OES_compressed_ETC1_RGB8_texture
658
+#define GL_ETC1_RGB8_OES 0x8D64
659
+#endif
660
+
661
+/* GL_OES_compressed_paletted_texture */
662
+#ifndef GL_OES_compressed_paletted_texture
663
+#define GL_PALETTE4_RGB8_OES 0x8B90
664
+#define GL_PALETTE4_RGBA8_OES 0x8B91
665
+#define GL_PALETTE4_R5_G6_B5_OES 0x8B92
666
+#define GL_PALETTE4_RGBA4_OES 0x8B93
667
+#define GL_PALETTE4_RGB5_A1_OES 0x8B94
668
+#define GL_PALETTE8_RGB8_OES 0x8B95
669
+#define GL_PALETTE8_RGBA8_OES 0x8B96
670
+#define GL_PALETTE8_R5_G6_B5_OES 0x8B97
671
+#define GL_PALETTE8_RGBA4_OES 0x8B98
672
+#define GL_PALETTE8_RGB5_A1_OES 0x8B99
673
+#endif
674
+
675
+/* GL_OES_depth24 */
676
+#ifndef GL_OES_depth24
677
+#define GL_DEPTH_COMPONENT24_OES 0x81A6
678
+#endif
679
+
680
+/* GL_OES_depth32 */
681
+#ifndef GL_OES_depth32
682
+#define GL_DEPTH_COMPONENT32_OES 0x81A7
683
+#endif
684
+
685
+/* GL_OES_depth_texture */
686
+/* No new tokens introduced by this extension. */
687
+
688
+/* GL_OES_EGL_image */
689
+#ifndef GL_OES_EGL_image
690
+typedef void* GLeglImageOES;
691
+#endif
692
+
693
+/* GL_OES_get_program_binary */
694
+#ifndef GL_OES_get_program_binary
695
+#define GL_PROGRAM_BINARY_LENGTH_OES 0x8741
696
+#define GL_NUM_PROGRAM_BINARY_FORMATS_OES 0x87FE
697
+#define GL_PROGRAM_BINARY_FORMATS_OES 0x87FF
698
+#endif
699
+
700
+/* GL_OES_mapbuffer */
701
+#ifndef GL_OES_mapbuffer
702
+#define GL_WRITE_ONLY_OES 0x88B9
703
+#define GL_BUFFER_ACCESS_OES 0x88BB
704
+#define GL_BUFFER_MAPPED_OES 0x88BC
705
+#define GL_BUFFER_MAP_POINTER_OES 0x88BD
706
+#endif
707
+
708
+/* GL_OES_packed_depth_stencil */
709
+#ifndef GL_OES_packed_depth_stencil
710
+#define GL_DEPTH_STENCIL_OES 0x84F9
711
+#define GL_UNSIGNED_INT_24_8_OES 0x84FA
712
+#define GL_DEPTH24_STENCIL8_OES 0x88F0
713
+#endif
714
+
715
+/* GL_OES_rgb8_rgba8 */
716
+#ifndef GL_OES_rgb8_rgba8
717
+#define GL_RGB8_OES 0x8051
718
+#define GL_RGBA8_OES 0x8058
719
+#endif
720
+
721
+/* GL_OES_standard_derivatives */
722
+#ifndef GL_OES_standard_derivatives
723
+#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES 0x8B8B
724
+#endif
725
+
726
+/* GL_OES_stencil1 */
727
+#ifndef GL_OES_stencil1
728
+#define GL_STENCIL_INDEX1_OES 0x8D46
729
+#endif
730
+
731
+/* GL_OES_stencil4 */
732
+#ifndef GL_OES_stencil4
733
+#define GL_STENCIL_INDEX4_OES 0x8D47
734
+#endif
735
+
736
+/* GL_OES_texture3D */
737
+#ifndef GL_OES_texture3D
738
+#define GL_TEXTURE_WRAP_R_OES 0x8072
739
+#define GL_TEXTURE_3D_OES 0x806F
740
+#define GL_TEXTURE_BINDING_3D_OES 0x806A
741
+#define GL_MAX_3D_TEXTURE_SIZE_OES 0x8073
742
+#define GL_SAMPLER_3D_OES 0x8B5F
743
+#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4
744
+#endif
745
+
746
+/* GL_OES_texture_half_float */
747
+#ifndef GL_OES_texture_half_float
748
+#define GL_HALF_FLOAT_OES 0x8D61
749
+#endif
750
+
751
+/* GL_OES_vertex_half_float */
752
+/* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */
753
+
754
+/* GL_OES_vertex_type_10_10_10_2 */
755
+#ifndef GL_OES_vertex_type_10_10_10_2
756
+#define GL_UNSIGNED_INT_10_10_10_2_OES 0x8DF6
757
+#define GL_INT_10_10_10_2_OES 0x8DF7
758
+#endif
759
+
760
+/*------------------------------------------------------------------------*
761
+ * AMD extension tokens
762
+ *------------------------------------------------------------------------*/
763
+
764
+/* GL_AMD_compressed_3DC_texture */
765
+#ifndef GL_AMD_compressed_3DC_texture
766
+#define GL_3DC_X_AMD 0x87F9
767
+#define GL_3DC_XY_AMD 0x87FA
768
+#endif
769
+
770
+/* GL_AMD_compressed_ATC_texture */
771
+#ifndef GL_AMD_compressed_ATC_texture
772
+#define GL_ATC_RGB_AMD 0x8C92
773
+#define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93
774
+#define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE
775
+#endif
776
+
777
+/* GL_AMD_program_binary_Z400 */
778
+#ifndef GL_AMD_program_binary_Z400
779
+#define GL_Z400_BINARY_AMD 0x8740
780
+#endif
781
+
782
+/*------------------------------------------------------------------------*
783
+ * EXT extension tokens
784
+ *------------------------------------------------------------------------*/
785
+
786
+/* GL_EXT_texture_filter_anisotropic */
787
+#ifndef GL_EXT_texture_filter_anisotropic
788
+#define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
789
+#define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
790
+#endif
791
+
792
+/* GL_EXT_texture_type_2_10_10_10_REV */
793
+#ifndef GL_EXT_texture_type_2_10_10_10_REV
794
+#define GL_UNSIGNED_INT_2_10_10_10_REV_EXT 0x8368
795
+#endif
796
+
797
+/*------------------------------------------------------------------------*
798
+ * OES extension functions
799
+ *------------------------------------------------------------------------*/
800
+
801
+/* GL_OES_compressed_ETC1_RGB8_texture */
802
+#ifndef GL_OES_compressed_ETC1_RGB8_texture
803
+#define GL_OES_compressed_ETC1_RGB8_texture 1
804
+#endif
805
+
806
+/* GL_OES_compressed_paletted_texture */
807
+#ifndef GL_OES_compressed_paletted_texture
808
+#define GL_OES_compressed_paletted_texture 1
809
+#endif
810
+
811
+/* GL_OES_EGL_image */
812
+#ifndef GL_OES_EGL_image
813
+#define GL_OES_EGL_image 1
814
+#ifdef GL_GLEXT_PROTOTYPES
815
+GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
816
+GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
817
+#endif
818
+typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
819
+typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
820
+#endif
821
+
822
+/* GL_OES_depth24 */
823
+#ifndef GL_OES_depth24
824
+#define GL_OES_depth24 1
825
+#endif
826
+
827
+/* GL_OES_depth32 */
828
+#ifndef GL_OES_depth32
829
+#define GL_OES_depth32 1
830
+#endif
831
+
832
+/* GL_OES_depth_texture */
833
+#ifndef GL_OES_depth_texture
834
+#define GL_OES_depth_texture 1
835
+#endif
836
+
837
+/* GL_OES_element_index_uint */
838
+#ifndef GL_OES_element_index_uint
839
+#define GL_OES_element_index_uint 1
840
+#endif
841
+
842
+/* GL_OES_fbo_render_mipmap */
843
+#ifndef GL_OES_fbo_render_mipmap
844
+#define GL_OES_fbo_render_mipmap 1
845
+#endif
846
+
847
+/* GL_OES_fragment_precision_high */
848
+#ifndef GL_OES_fragment_precision_high
849
+#define GL_OES_fragment_precision_high 1
850
+#endif
851
+
852
+/* GL_OES_get_program_binary */
853
+#ifndef GL_OES_get_program_binary
854
+#define GL_OES_get_program_binary 1
855
+#ifdef GL_GLEXT_PROTOTYPES
856
+GL_APICALL void GL_APIENTRY glGetProgramBinaryOES (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
857
+GL_APICALL void GL_APIENTRY glProgramBinaryOES (GLuint program, GLenum binaryFormat, const void *binary, GLint length);
858
+#endif
859
+typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary);
860
+typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum binaryFormat, const void *binary, GLint length);
861
+#endif
862
+
863
+/* GL_OES_mapbuffer */
864
+#ifndef GL_OES_mapbuffer
865
+#define GL_OES_mapbuffer 1
866
+#ifdef GL_GLEXT_PROTOTYPES
867
+GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access);
868
+GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target);
869
+GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, void** params);
870
+#endif
871
+typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
872
+typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target);
873
+typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void** params);
874
+#endif
875
+
876
+/* GL_OES_packed_depth_stencil */
877
+#ifndef GL_OES_packed_depth_stencil
878
+#define GL_OES_packed_depth_stencil 1
879
+#endif
880
+
881
+/* GL_OES_rgb8_rgba8 */
882
+#ifndef GL_OES_rgb8_rgba8
883
+#define GL_OES_rgb8_rgba8 1
884
+#endif
885
+
886
+/* GL_OES_standard_derivatives */
887
+#ifndef GL_OES_standard_derivatives
888
+#define GL_OES_standard_derivatives 1
889
+#endif
890
+
891
+/* GL_OES_stencil1 */
892
+#ifndef GL_OES_stencil1
893
+#define GL_OES_stencil1 1
894
+#endif
895
+
896
+/* GL_OES_stencil4 */
897
+#ifndef GL_OES_stencil4
898
+#define GL_OES_stencil4 1
899
+#endif
900
+
901
+/* GL_OES_texture_3D */
902
+#ifndef GL_OES_texture_3D
903
+#define GL_OES_texture_3D 1
904
+#ifdef GL_GLEXT_PROTOTYPES
905
+GL_APICALL void GL_APIENTRY glTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels);
906
+GL_APICALL void GL_APIENTRY glTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels);
907
+GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
908
+GL_APICALL void GL_APIENTRY glCompressedTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);
909
+GL_APICALL void GL_APIENTRY glCompressedTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data);
910
+GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
911
+#endif
912
+typedef void (GL_APIENTRYP PFNGLTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels);
913
+typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels);
914
+typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
915
+typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);
916
+typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data);
917
+typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
918
+#endif
919
+
920
+/* GL_OES_texture_float_linear */
921
+#ifndef GL_OES_texture_float_linear
922
+#define GL_OES_texture_float_linear 1
923
+#endif
924
+
925
+/* GL_OES_texture_half_float_linear */
926
+#ifndef GL_OES_texture_half_float_linear
927
+#define GL_OES_texture_half_float_linear 1
928
+#endif
929
+
930
+/* GL_OES_texture_float */
931
+#ifndef GL_OES_texture_float
932
+#define GL_OES_texture_float 1
933
+#endif
934
+
935
+/* GL_OES_texture_half_float */
936
+#ifndef GL_OES_texture_half_float
937
+#define GL_OES_texture_half_float 1
938
+#endif
939
+
940
+/* GL_OES_texture_npot */
941
+#ifndef GL_OES_texture_npot
942
+#define GL_OES_texture_npot 1
943
+#endif
944
+
945
+/* GL_OES_vertex_half_float */
946
+#ifndef GL_OES_vertex_half_float
947
+#define GL_OES_vertex_half_float 1
948
+#endif
949
+
950
+/* GL_OES_vertex_type_10_10_10_2 */
951
+#ifndef GL_OES_vertex_type_10_10_10_2
952
+#define GL_OES_vertex_type_10_10_10_2 1
953
+#endif
954
+
955
+/*------------------------------------------------------------------------*
956
+ * AMD extension functions
957
+ *------------------------------------------------------------------------*/
958
+
959
+/* GL_AMD_compressed_3DC_texture */
960
+#ifndef GL_AMD_compressed_3DC_texture
961
+#define GL_AMD_compressed_3DC_texture 1
962
+#endif
963
+
964
+/* GL_AMD_compressed_ATC_texture */
965
+#ifndef GL_AMD_compressed_ATC_texture
966
+#define GL_AMD_compressed_ATC_texture 1
967
+#endif
968
+
969
+/* GL_AMD_program_binary_Z400 */
970
+#ifndef GL_AMD_program_binary_Z400
971
+#define GL_AMD_program_binary_Z400 1
972
+#endif
973
+
974
+/*------------------------------------------------------------------------*
975
+ * EXT extension functions
976
+ *------------------------------------------------------------------------*/
977
+
978
+/* GL_EXT_texture_filter_anisotropic */
979
+#ifndef GL_EXT_texture_filter_anisotropic
980
+#define GL_EXT_texture_filter_anisotropic 1
981
+#endif
982
+
983
+/* GL_EXT_texture_type_2_10_10_10_REV */
984
+#ifndef GL_EXT_texture_type_2_10_10_10_REV
985
+#define GL_EXT_texture_type_2_10_10_10_REV 1
986
+#endif
987
+
988
+#ifdef __cplusplus
989
+}
990
+#endif
991
+
992
+#endif /* __gl2ext_h_ */
993
diff --git a/include_mali/GLES2/gl2platform.h b/include_mali/GLES2/gl2platform.h
994
new file mode 100644
995
index 0000000..3e9036c
996
--- /dev/null
997
+++ b/include_mali/GLES2/gl2platform.h
998
@@ -0,0 +1,29 @@
999
+#ifndef __gl2platform_h_
1000
+#define __gl2platform_h_
1001
+
1002
+/* $Revision: 7173 $ on $Date:: 2009-01-09 11:18:21 -0800 #$ */
1003
+
1004
+/*
1005
+ * This document is licensed under the SGI Free Software B License Version
1006
+ * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
1007
+ */
1008
+
1009
+/* Platform-specific types and definitions for OpenGL ES 2.X gl2.h
1010
+ * Last modified on 2008/12/19
1011
+ *
1012
+ * Adopters may modify khrplatform.h and this file to suit their platform.
1013
+ * You are encouraged to submit all modifications to the Khronos group so that
1014
+ * they can be included in future versions of this file. Please submit changes
1015
+ * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
1016
+ * by filing a bug against product "OpenGL-ES" component "Registry".
1017
+ */
1018
+
1019
+#include <KHR/khrplatform.h>
1020
+
1021
+#ifndef GL_APICALL
1022
+#define GL_APICALL KHRONOS_APICALL
1023
+#endif
1024
+
1025
+#define GL_APIENTRY KHRONOS_APIENTRY
1026
+
1027
+#endif /* __gl2platform_h_ */
1028
1029