Diligent Engine API Reference: D:/GitHub/DiligentEngine/DiligentCore/External/Android/ndk_helper/include/gl3stub.h Source File

Diligent Engine API Reference

gl3stub.h
1 #ifndef __gl3_h_
2 #define __gl3_h_
3
4 /*
5 * stub gl3.h for dynamic loading, based on:
6 * gl3.h last updated on $Date: 2013-02-12 14:37:24 -0800 (Tue, 12 Feb 2013) $
7 *
8 * Changes:
9 * - Added #include <GLES2/gl2.h>
10 * - Removed duplicate OpenGL ES 2.0 declarations
11 * - Converted OpenGL ES 3.0 function prototypes to function pointer
12 * declarations
13 * - Added gl3stubInit() declaration
14 */
15
16 #include <GLES2/gl2.h>
17 #include <android/api-level.h>
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 /*
24 ** Copyright (c) 2007-2013 The Khronos Group Inc.
25 **
26 ** Permission is hereby granted, free of charge, to any person obtaining a
27 ** copy of this software and/or associated documentation files (the
28 ** "Materials"), to deal in the Materials without restriction, including
29 ** without limitation the rights to use, copy, modify, merge, publish,
30 ** distribute, sublicense, and/or sell copies of the Materials, and to
31 ** permit persons to whom the Materials are furnished to do so, subject to
32 ** the following conditions:
33 **
34 ** The above copyright notice and this permission notice shall be included
35 ** in all copies or substantial portions of the Materials.
36 **
37 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
39 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
40 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
41 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
42 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
43 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
44 */
45
46 /*
47 * This files is for apps that want to use ES3 if present,
48 * but continue to work on pre-API-18 devices. They can't just link to -lGLESv3
49 *since
50 * that library doesn't exist on pre-API-18 devices.
51 * The function dynamically check if OpenGLES3.0 APIs are present and fill in if
52 *there are.
53 * Also the header defines some extra variables for OpenGLES3.0.
54 *
55 */
56
57 /* Call this function before calling any OpenGL ES 3.0 functions. It will
58 * return GL_TRUE if the OpenGL ES 3.0 was successfully initialized, GL_FALSE
59 * otherwise. */
60 GLboolean gl3stubInit();
61
62 /*-------------------------------------------------------------------------
63 * Data type definitions
64 *-----------------------------------------------------------------------*/
65
66 /* OpenGL ES 3.0 */
67
68 typedef unsigned short GLhalf;
69 #if __ANDROID_API__ <= 19
70 typedef khronos_int64_t GLint64;
71 typedef khronos_uint64_t GLuint64;
72 typedef struct __GLsync* GLsync;
73 #endif
74
75 /*-------------------------------------------------------------------------
76 * Token definitions
77 *-----------------------------------------------------------------------*/
78
79 /* OpenGL ES core versions */
80 #define GL_ES_VERSION_3_0 1
81
82 /* OpenGL ES 3.0 */
83
84 #define GL_READ_BUFFER 0x0C02
85 #define GL_UNPACK_ROW_LENGTH 0x0CF2
86 #define GL_UNPACK_SKIP_ROWS 0x0CF3
87 #define GL_UNPACK_SKIP_PIXELS 0x0CF4
88 #define GL_PACK_ROW_LENGTH 0x0D02
89 #define GL_PACK_SKIP_ROWS 0x0D03
90 #define GL_PACK_SKIP_PIXELS 0x0D04
91 #define GL_COLOR 0x1800
92 #define GL_DEPTH 0x1801
93 #define GL_STENCIL 0x1802
94 #define GL_RED 0x1903
95 #define GL_RGB8 0x8051
96 #define GL_RGBA8 0x8058
97 #define GL_RGB10_A2 0x8059
98 #define GL_TEXTURE_BINDING_3D 0x806A
99 #define GL_UNPACK_SKIP_IMAGES 0x806D
100 #define GL_UNPACK_IMAGE_HEIGHT 0x806E
101 #define GL_TEXTURE_3D 0x806F
102 #define GL_TEXTURE_WRAP_R 0x8072
103 #define GL_MAX_3D_TEXTURE_SIZE 0x8073
104 #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
105 #define GL_MAX_ELEMENTS_VERTICES 0x80E8
106 #define GL_MAX_ELEMENTS_INDICES 0x80E9
107 #define GL_TEXTURE_MIN_LOD 0x813A
108 #define GL_TEXTURE_MAX_LOD 0x813B
109 #define GL_TEXTURE_BASE_LEVEL 0x813C
110 #define GL_TEXTURE_MAX_LEVEL 0x813D
111 #define GL_MIN 0x8007
112 #define GL_MAX 0x8008
113 #define GL_DEPTH_COMPONENT24 0x81A6
114 #define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
115 #define GL_TEXTURE_COMPARE_MODE 0x884C
116 #define GL_TEXTURE_COMPARE_FUNC 0x884D
117 #define GL_CURRENT_QUERY 0x8865
118 #define GL_QUERY_RESULT 0x8866
119 #define GL_QUERY_RESULT_AVAILABLE 0x8867
120 #define GL_BUFFER_MAPPED 0x88BC
121 #define GL_BUFFER_MAP_POINTER 0x88BD
122 #define GL_STREAM_READ 0x88E1
123 #define GL_STREAM_COPY 0x88E2
124 #define GL_STATIC_READ 0x88E5
125 #define GL_STATIC_COPY 0x88E6
126 #define GL_DYNAMIC_READ 0x88E9
127 #define GL_DYNAMIC_COPY 0x88EA
128 #define GL_MAX_DRAW_BUFFERS 0x8824
129 #define GL_DRAW_BUFFER0 0x8825
130 #define GL_DRAW_BUFFER1 0x8826
131 #define GL_DRAW_BUFFER2 0x8827
132 #define GL_DRAW_BUFFER3 0x8828
133 #define GL_DRAW_BUFFER4 0x8829
134 #define GL_DRAW_BUFFER5 0x882A
135 #define GL_DRAW_BUFFER6 0x882B
136 #define GL_DRAW_BUFFER7 0x882C
137 #define GL_DRAW_BUFFER8 0x882D
138 #define GL_DRAW_BUFFER9 0x882E
139 #define GL_DRAW_BUFFER10 0x882F
140 #define GL_DRAW_BUFFER11 0x8830
141 #define GL_DRAW_BUFFER12 0x8831
142 #define GL_DRAW_BUFFER13 0x8832
143 #define GL_DRAW_BUFFER14 0x8833
144 #define GL_DRAW_BUFFER15 0x8834
145 #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
146 #define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
147 #define GL_SAMPLER_3D 0x8B5F
148 #define GL_SAMPLER_2D_SHADOW 0x8B62
149 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
150 #define GL_PIXEL_PACK_BUFFER 0x88EB
151 #define GL_PIXEL_UNPACK_BUFFER 0x88EC
152 #define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
153 #define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
154 #define GL_FLOAT_MAT2x3 0x8B65
155 #define GL_FLOAT_MAT2x4 0x8B66
156 #define GL_FLOAT_MAT3x2 0x8B67
157 #define GL_FLOAT_MAT3x4 0x8B68
158 #define GL_FLOAT_MAT4x2 0x8B69
159 #define GL_FLOAT_MAT4x3 0x8B6A
160 #define GL_SRGB 0x8C40
161 #define GL_SRGB8 0x8C41
162 #define GL_SRGB8_ALPHA8 0x8C43
163 #define GL_COMPARE_REF_TO_TEXTURE 0x884E
164 #define GL_MAJOR_VERSION 0x821B
165 #define GL_MINOR_VERSION 0x821C
166 #define GL_NUM_EXTENSIONS 0x821D
167 #define GL_RGBA32F 0x8814
168 #define GL_RGB32F 0x8815
169 #define GL_RGBA16F 0x881A
170 #define GL_RGB16F 0x881B
171 #define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
172 #define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
173 #define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
174 #define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
175 #define GL_MAX_VARYING_COMPONENTS 0x8B4B
176 #define GL_TEXTURE_2D_ARRAY 0x8C1A
177 #define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
178 #define GL_R11F_G11F_B10F 0x8C3A
179 #define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
180 #define GL_RGB9_E5 0x8C3D
181 #define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
182 #define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
183 #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
184 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
185 #define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
186 #define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
187 #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
188 #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
189 #define GL_RASTERIZER_DISCARD 0x8C89
190 #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
191 #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
192 #define GL_INTERLEAVED_ATTRIBS 0x8C8C
193 #define GL_SEPARATE_ATTRIBS 0x8C8D
194 #define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
195 #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
196 #define GL_RGBA32UI 0x8D70
197 #define GL_RGB32UI 0x8D71
198 #define GL_RGBA16UI 0x8D76
199 #define GL_RGB16UI 0x8D77
200 #define GL_RGBA8UI 0x8D7C
201 #define GL_RGB8UI 0x8D7D
202 #define GL_RGBA32I 0x8D82
203 #define GL_RGB32I 0x8D83
204 #define GL_RGBA16I 0x8D88
205 #define GL_RGB16I 0x8D89
206 #define GL_RGBA8I 0x8D8E
207 #define GL_RGB8I 0x8D8F
208 #define GL_RED_INTEGER 0x8D94
209 #define GL_RGB_INTEGER 0x8D98
210 #define GL_RGBA_INTEGER 0x8D99
211 #define GL_SAMPLER_2D_ARRAY 0x8DC1
212 #define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
213 #define GL_SAMPLER_CUBE_SHADOW 0x8DC5
214 #define GL_UNSIGNED_INT_VEC2 0x8DC6
215 #define GL_UNSIGNED_INT_VEC3 0x8DC7
216 #define GL_UNSIGNED_INT_VEC4 0x8DC8
217 #define GL_INT_SAMPLER_2D 0x8DCA
218 #define GL_INT_SAMPLER_3D 0x8DCB
219 #define GL_INT_SAMPLER_CUBE 0x8DCC
220 #define GL_INT_SAMPLER_2D_ARRAY 0x8DCF
221 #define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
222 #define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
223 #define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
224 #define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
225 #define GL_BUFFER_ACCESS_FLAGS 0x911F
226 #define GL_BUFFER_MAP_LENGTH 0x9120
227 #define GL_BUFFER_MAP_OFFSET 0x9121
228 #define GL_DEPTH_COMPONENT32F 0x8CAC
229 #define GL_DEPTH32F_STENCIL8 0x8CAD
230 #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
231 #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
232 #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
233 #define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
234 #define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
235 #define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
236 #define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
237 #define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
238 #define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
239 #define GL_FRAMEBUFFER_DEFAULT 0x8218
240 #define GL_FRAMEBUFFER_UNDEFINED 0x8219
241 #define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
242 #define GL_DEPTH_STENCIL 0x84F9
243 #define GL_UNSIGNED_INT_24_8 0x84FA
244 #define GL_DEPTH24_STENCIL8 0x88F0
245 #define GL_UNSIGNED_NORMALIZED 0x8C17
246 #define GL_DRAW_FRAMEBUFFER_BINDING GL_FRAMEBUFFER_BINDING
247 #define GL_READ_FRAMEBUFFER 0x8CA8
248 #define GL_DRAW_FRAMEBUFFER 0x8CA9
249 #define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
250 #define GL_RENDERBUFFER_SAMPLES 0x8CAB
251 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
252 #define GL_MAX_COLOR_ATTACHMENTS 0x8CDF
253 #define GL_COLOR_ATTACHMENT1 0x8CE1
254 #define GL_COLOR_ATTACHMENT2 0x8CE2
255 #define GL_COLOR_ATTACHMENT3 0x8CE3
256 #define GL_COLOR_ATTACHMENT4 0x8CE4
257 #define GL_COLOR_ATTACHMENT5 0x8CE5
258 #define GL_COLOR_ATTACHMENT6 0x8CE6
259 #define GL_COLOR_ATTACHMENT7 0x8CE7
260 #define GL_COLOR_ATTACHMENT8 0x8CE8
261 #define GL_COLOR_ATTACHMENT9 0x8CE9
262 #define GL_COLOR_ATTACHMENT10 0x8CEA
263 #define GL_COLOR_ATTACHMENT11 0x8CEB
264 #define GL_COLOR_ATTACHMENT12 0x8CEC
265 #define GL_COLOR_ATTACHMENT13 0x8CED
266 #define GL_COLOR_ATTACHMENT14 0x8CEE
267 #define GL_COLOR_ATTACHMENT15 0x8CEF
268 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
269 #define GL_MAX_SAMPLES 0x8D57
270 #define GL_HALF_FLOAT 0x140B
271 #define GL_MAP_READ_BIT 0x0001
272 #define GL_MAP_WRITE_BIT 0x0002
273 #define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
274 #define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
275 #define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
276 #define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
277 #define GL_RG 0x8227
278 #define GL_RG_INTEGER 0x8228
279 #define GL_R8 0x8229
280 #define GL_RG8 0x822B
281 #define GL_R16F 0x822D
282 #define GL_R32F 0x822E
283 #define GL_RG16F 0x822F
284 #define GL_RG32F 0x8230
285 #define GL_R8I 0x8231
286 #define GL_R8UI 0x8232
287 #define GL_R16I 0x8233
288 #define GL_R16UI 0x8234
289 #define GL_R32I 0x8235
290 #define GL_R32UI 0x8236
291 #define GL_RG8I 0x8237
292 #define GL_RG8UI 0x8238
293 #define GL_RG16I 0x8239
294 #define GL_RG16UI 0x823A
295 #define GL_RG32I 0x823B
296 #define GL_RG32UI 0x823C
297 #define GL_VERTEX_ARRAY_BINDING 0x85B5
298 #define GL_R8_SNORM 0x8F94
299 #define GL_RG8_SNORM 0x8F95
300 #define GL_RGB8_SNORM 0x8F96
301 #define GL_RGBA8_SNORM 0x8F97
302 #define GL_SIGNED_NORMALIZED 0x8F9C
303 #define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69
304 #define GL_COPY_READ_BUFFER 0x8F36
305 #define GL_COPY_WRITE_BUFFER 0x8F37
306 #define GL_COPY_READ_BUFFER_BINDING GL_COPY_READ_BUFFER
307 #define GL_COPY_WRITE_BUFFER_BINDING GL_COPY_WRITE_BUFFER
308 #define GL_UNIFORM_BUFFER 0x8A11
309 #define GL_UNIFORM_BUFFER_BINDING 0x8A28
310 #define GL_UNIFORM_BUFFER_START 0x8A29
311 #define GL_UNIFORM_BUFFER_SIZE 0x8A2A
312 #define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B
313 #define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D
314 #define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E
315 #define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F
316 #define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30
317 #define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
318 #define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
319 #define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
320 #define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
321 #define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36
322 #define GL_UNIFORM_TYPE 0x8A37
323 #define GL_UNIFORM_SIZE 0x8A38
324 #define GL_UNIFORM_NAME_LENGTH 0x8A39
325 #define GL_UNIFORM_BLOCK_INDEX 0x8A3A
326 #define GL_UNIFORM_OFFSET 0x8A3B
327 #define GL_UNIFORM_ARRAY_STRIDE 0x8A3C
328 #define GL_UNIFORM_MATRIX_STRIDE 0x8A3D
329 #define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E
330 #define GL_UNIFORM_BLOCK_BINDING 0x8A3F
331 #define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40
332 #define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41
333 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42
334 #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
335 #define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
336 #define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
337 #define GL_INVALID_INDEX 0xFFFFFFFFu
338 #define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
339 #define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
340 #define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
341 #define GL_OBJECT_TYPE 0x9112
342 #define GL_SYNC_CONDITION 0x9113
343 #define GL_SYNC_STATUS 0x9114
344 #define GL_SYNC_FLAGS 0x9115
345 #define GL_SYNC_FENCE 0x9116
346 #define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
347 #define GL_UNSIGNALED 0x9118
348 #define GL_SIGNALED 0x9119
349 #define GL_ALREADY_SIGNALED 0x911A
350 #define GL_TIMEOUT_EXPIRED 0x911B
351 #define GL_CONDITION_SATISFIED 0x911C
352 #define GL_WAIT_FAILED 0x911D
353 #define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
354 #define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull
355 #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE
356 #define GL_ANY_SAMPLES_PASSED 0x8C2F
357 #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
358 #define GL_SAMPLER_BINDING 0x8919
359 #define GL_RGB10_A2UI 0x906F
360 #define GL_TEXTURE_SWIZZLE_R 0x8E42
361 #define GL_TEXTURE_SWIZZLE_G 0x8E43
362 #define GL_TEXTURE_SWIZZLE_B 0x8E44
363 #define GL_TEXTURE_SWIZZLE_A 0x8E45
364 #define GL_GREEN 0x1904
365 #define GL_BLUE 0x1905
366 #define GL_INT_2_10_10_10_REV 0x8D9F
367 #define GL_TRANSFORM_FEEDBACK 0x8E22
368 #define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23
369 #define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24
370 #define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25
371 #define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
372 #define GL_PROGRAM_BINARY_LENGTH 0x8741
373 #define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE
374 #define GL_PROGRAM_BINARY_FORMATS 0x87FF
375 #define GL_COMPRESSED_R11_EAC 0x9270
376 #define GL_COMPRESSED_SIGNED_R11_EAC 0x9271
377 #define GL_COMPRESSED_RG11_EAC 0x9272
378 #define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
379 #define GL_COMPRESSED_RGB8_ETC2 0x9274
380 #define GL_COMPRESSED_SRGB8_ETC2 0x9275
381 #define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
382 #define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
383 #define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
384 #define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
385 #define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F
386 #define GL_MAX_ELEMENT_INDEX 0x8D6B
387 #define GL_NUM_SAMPLE_COUNTS 0x9380
388 #define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF
389
390 /*-------------------------------------------------------------------------
391 * Entrypoint definitions
392 *-----------------------------------------------------------------------*/
393
394 /* OpenGL ES 3.0 */
395
396 extern GL_APICALL void (*GL_APIENTRY glReadBuffer)(GLenum mode);
397 extern GL_APICALL void (*GL_APIENTRY glDrawRangeElements)(
398 GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type,
399 const GLvoid* indices);
400 extern GL_APICALL void (*GL_APIENTRY glTexImage3D)(
401 GLenum target, GLint level, GLint internalformat, GLsizei width,
402 GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type,
403 const GLvoid* pixels);
404 extern GL_APICALL void (*GL_APIENTRY glTexSubImage3D)(
405 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset,
406 GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type,
407 const GLvoid* pixels);
408 extern GL_APICALL void (*GL_APIENTRY glCopyTexSubImage3D)(
409 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset,
410 GLint x, GLint y, GLsizei width, GLsizei height);
411 extern GL_APICALL void (*GL_APIENTRY glCompressedTexImage3D)(
412 GLenum target, GLint level, GLenum internalformat, GLsizei width,
413 GLsizei height, GLsizei depth, GLint border, GLsizei imageSize,
414 const GLvoid* data);
415 extern GL_APICALL void (*GL_APIENTRY glCompressedTexSubImage3D)(
416 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset,
417 GLsizei width, GLsizei height, GLsizei depth, GLenum format,
418 GLsizei imageSize, const GLvoid* data);
419 extern GL_APICALL void (*GL_APIENTRY glGenQueries)(GLsizei n, GLuint* ids);
420 extern GL_APICALL void (*GL_APIENTRY glDeleteQueries)(GLsizei n,
421 const GLuint* ids);
422 extern GL_APICALL GLboolean (*GL_APIENTRY glIsQuery)(GLuint id);
423 extern GL_APICALL void (*GL_APIENTRY glBeginQuery)(GLenum target, GLuint id);
424 extern GL_APICALL void (*GL_APIENTRY glEndQuery)(GLenum target);
425 extern GL_APICALL void (*GL_APIENTRY glGetQueryiv)(GLenum target, GLenum pname,
426 GLint* params);
427 extern GL_APICALL void (*GL_APIENTRY glGetQueryObjectuiv)(GLuint id,
428 GLenum pname,
429 GLuint* params);
430 extern GL_APICALL GLboolean (*GL_APIENTRY glUnmapBuffer)(GLenum target);
431 extern GL_APICALL void (*GL_APIENTRY glGetBufferPointerv)(GLenum target,
432 GLenum pname,
433 GLvoid** params);
434 extern GL_APICALL void (*GL_APIENTRY glDrawBuffers)(GLsizei n,
435 const GLenum* bufs);
436 extern GL_APICALL void (*GL_APIENTRY glUniformMatrix2x3fv)(
437 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
438 extern GL_APICALL void (*GL_APIENTRY glUniformMatrix3x2fv)(
439 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
440 extern GL_APICALL void (*GL_APIENTRY glUniformMatrix2x4fv)(
441 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
442 extern GL_APICALL void (*GL_APIENTRY glUniformMatrix4x2fv)(
443 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
444 extern GL_APICALL void (*GL_APIENTRY glUniformMatrix3x4fv)(
445 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
446 extern GL_APICALL void (*GL_APIENTRY glUniformMatrix4x3fv)(
447 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
448 extern GL_APICALL void (*GL_APIENTRY glBlitFramebuffer)(
449 GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0,
450 GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
451 extern GL_APICALL void (*GL_APIENTRY glRenderbufferStorageMultisample)(
452 GLenum target, GLsizei samples, GLenum internalformat, GLsizei width,
453 GLsizei height);
454 extern GL_APICALL void (*GL_APIENTRY glFramebufferTextureLayer)(
455 GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
456 extern GL_APICALL GLvoid* (*GL_APIENTRY glMapBufferRange)(GLenum target,
457 GLintptr offset,
458 GLsizeiptr length,
459 GLbitfield access);
460 extern GL_APICALL void (*GL_APIENTRY glFlushMappedBufferRange)(
461 GLenum target, GLintptr offset, GLsizeiptr length);
462 extern GL_APICALL void (*GL_APIENTRY glBindVertexArray)(GLuint array);
463 extern GL_APICALL void (*GL_APIENTRY glDeleteVertexArrays)(
464 GLsizei n, const GLuint* arrays);
465 extern GL_APICALL void (*GL_APIENTRY glGenVertexArrays)(GLsizei n,
466 GLuint* arrays);
467 extern GL_APICALL GLboolean (*GL_APIENTRY glIsVertexArray)(GLuint array);
468 extern GL_APICALL void (*GL_APIENTRY glGetIntegeri_v)(GLenum target,
469 GLuint index,
470 GLint* data);
471 extern GL_APICALL void (*GL_APIENTRY glBeginTransformFeedback)(
472 GLenum primitiveMode);
473 extern GL_APICALL void (*GL_APIENTRY glEndTransformFeedback)(void);
474 extern GL_APICALL void (*GL_APIENTRY glBindBufferRange)(GLenum target,
475 GLuint index,
476 GLuint buffer,
477 GLintptr offset,
478 GLsizeiptr size);
479 extern GL_APICALL void (*GL_APIENTRY glBindBufferBase)(GLenum target,
480 GLuint index,
481 GLuint buffer);
482 extern GL_APICALL void (*GL_APIENTRY glTransformFeedbackVaryings)(
483 GLuint program, GLsizei count, const GLchar* const* varyings,
484 GLenum bufferMode);
485 extern GL_APICALL void (*GL_APIENTRY glGetTransformFeedbackVarying)(
486 GLuint program, GLuint index, GLsizei bufSize, GLsizei* length,
487 GLsizei* size, GLenum* type, GLchar* name);
488 extern GL_APICALL void (*GL_APIENTRY glVertexAttribIPointer)(
489 GLuint index, GLint size, GLenum type, GLsizei stride,
490 const GLvoid* pointer);
491 extern GL_APICALL void (*GL_APIENTRY glGetVertexAttribIiv)(GLuint index,
492 GLenum pname,
493 GLint* params);
494 extern GL_APICALL void (*GL_APIENTRY glGetVertexAttribIuiv)(GLuint index,
495 GLenum pname,
496 GLuint* params);
497 extern GL_APICALL void (*GL_APIENTRY glVertexAttribI4i)(GLuint index, GLint x,
498 GLint y, GLint z,
499 GLint w);
500 extern GL_APICALL void (*GL_APIENTRY glVertexAttribI4ui)(GLuint index, GLuint x,
501 GLuint y, GLuint z,
502 GLuint w);
503 extern GL_APICALL void (*GL_APIENTRY glVertexAttribI4iv)(GLuint index,
504 const GLint* v);
505 extern GL_APICALL void (*GL_APIENTRY glVertexAttribI4uiv)(GLuint index,
506 const GLuint* v);
507 extern GL_APICALL void (*GL_APIENTRY glGetUniformuiv)(GLuint program,
508 GLint location,
509 GLuint* params);
510 extern GL_APICALL GLint (*GL_APIENTRY glGetFragDataLocation)(
511 GLuint program, const GLchar* name);
512 extern GL_APICALL void (*GL_APIENTRY glUniform1ui)(GLint location, GLuint v0);
513 extern GL_APICALL void (*GL_APIENTRY glUniform2ui)(GLint location, GLuint v0,
514 GLuint v1);
515 extern GL_APICALL void (*GL_APIENTRY glUniform3ui)(GLint location, GLuint v0,
516 GLuint v1, GLuint v2);
517 extern GL_APICALL void (*GL_APIENTRY glUniform4ui)(GLint location, GLuint v0,
518 GLuint v1, GLuint v2,
519 GLuint v3);
520 extern GL_APICALL void (*GL_APIENTRY glUniform1uiv)(GLint location,
521 GLsizei count,
522 const GLuint* value);
523 extern GL_APICALL void (*GL_APIENTRY glUniform2uiv)(GLint location,
524 GLsizei count,
525 const GLuint* value);
526 extern GL_APICALL void (*GL_APIENTRY glUniform3uiv)(GLint location,
527 GLsizei count,
528 const GLuint* value);
529 extern GL_APICALL void (*GL_APIENTRY glUniform4uiv)(GLint location,
530 GLsizei count,
531 const GLuint* value);
532 extern GL_APICALL void (*GL_APIENTRY glClearBufferiv)(GLenum buffer,
533 GLint drawbuffer,
534 const GLint* value);
535 extern GL_APICALL void (*GL_APIENTRY glClearBufferuiv)(GLenum buffer,
536 GLint drawbuffer,
537 const GLuint* value);
538 extern GL_APICALL void (*GL_APIENTRY glClearBufferfv)(GLenum buffer,
539 GLint drawbuffer,
540 const GLfloat* value);
541 extern GL_APICALL void (*GL_APIENTRY glClearBufferfi)(GLenum buffer,
542 GLint drawbuffer,
543 GLfloat depth,
544 GLint stencil);
545 extern GL_APICALL const GLubyte* (*GL_APIENTRY glGetStringi)(GLenum name,
546 GLuint index);
547 extern GL_APICALL void (*GL_APIENTRY glCopyBufferSubData)(GLenum readTarget,
548 GLenum writeTarget,
549 GLintptr readOffset,
550 GLintptr writeOffset,
551 GLsizeiptr size);
552 extern GL_APICALL void (*GL_APIENTRY glGetUniformIndices)(
553 GLuint program, GLsizei uniformCount, const GLchar* const* uniformNames,
554 GLuint* uniformIndices);
555 extern GL_APICALL void (*GL_APIENTRY glGetActiveUniformsiv)(
556 GLuint program, GLsizei uniformCount, const GLuint* uniformIndices,
557 GLenum pname, GLint* params);
558 extern GL_APICALL GLuint (*GL_APIENTRY glGetUniformBlockIndex)(
559 GLuint program, const GLchar* uniformBlockName);
560 extern GL_APICALL void (*GL_APIENTRY glGetActiveUniformBlockiv)(
561 GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint* params);
562 extern GL_APICALL void (*GL_APIENTRY glGetActiveUniformBlockName)(
563 GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei* length,
564 GLchar* uniformBlockName);
565 extern GL_APICALL void (*GL_APIENTRY glUniformBlockBinding)(
566 GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
567 extern GL_APICALL void (*GL_APIENTRY glDrawArraysInstanced)(
568 GLenum mode, GLint first, GLsizei count, GLsizei instanceCount);
569 extern GL_APICALL void (*GL_APIENTRY glDrawElementsInstanced)(
570 GLenum mode, GLsizei count, GLenum type, const GLvoid* indices,
571 GLsizei instanceCount);
572 extern GL_APICALL GLsync (*GL_APIENTRY glFenceSync)(GLenum condition,
573 GLbitfield flags);
574 extern GL_APICALL GLboolean (*GL_APIENTRY glIsSync)(GLsync sync);
575 extern GL_APICALL void (*GL_APIENTRY glDeleteSync)(GLsync sync);
576 extern GL_APICALL GLenum (*GL_APIENTRY glClientWaitSync)(GLsync sync,
577 GLbitfield flags,
578 GLuint64 timeout);
579 extern GL_APICALL void (*GL_APIENTRY glWaitSync)(GLsync sync, GLbitfield flags,
580 GLuint64 timeout);
581 extern GL_APICALL void (*GL_APIENTRY glGetInteger64v)(GLenum pname,
582 GLint64* params);
583 extern GL_APICALL void (*GL_APIENTRY glGetSynciv)(GLsync sync, GLenum pname,
584 GLsizei bufSize,
585 GLsizei* length,
586 GLint* values);
587 extern GL_APICALL void (*GL_APIENTRY glGetInteger64i_v)(GLenum target,
588 GLuint index,
589 GLint64* data);
590 extern GL_APICALL void (*GL_APIENTRY glGetBufferParameteri64v)(GLenum target,
591 GLenum pname,
592 GLint64* params);
593 extern GL_APICALL void (*GL_APIENTRY glGenSamplers)(GLsizei count,
594 GLuint* samplers);
595 extern GL_APICALL void (*GL_APIENTRY glDeleteSamplers)(GLsizei count,
596 const GLuint* samplers);
597 extern GL_APICALL GLboolean (*GL_APIENTRY glIsSampler)(GLuint sampler);
598 extern GL_APICALL void (*GL_APIENTRY glBindSampler)(GLuint unit,
599 GLuint sampler);
600 extern GL_APICALL void (*GL_APIENTRY glSamplerParameteri)(GLuint sampler,
601 GLenum pname,
602 GLint param);
603 extern GL_APICALL void (*GL_APIENTRY glSamplerParameteriv)(GLuint sampler,
604 GLenum pname,
605 const GLint* param);
606 extern GL_APICALL void (*GL_APIENTRY glSamplerParameterf)(GLuint sampler,
607 GLenum pname,
608 GLfloat param);
609 extern GL_APICALL void (*GL_APIENTRY glSamplerParameterfv)(
610 GLuint sampler, GLenum pname, const GLfloat* param);
611 extern GL_APICALL void (*GL_APIENTRY glGetSamplerParameteriv)(GLuint sampler,
612 GLenum pname,
613 GLint* params);
614 extern GL_APICALL void (*GL_APIENTRY glGetSamplerParameterfv)(GLuint sampler,
615 GLenum pname,
616 GLfloat* params);
617 extern GL_APICALL void (*GL_APIENTRY glVertexAttribDivisor)(GLuint index,
618 GLuint divisor);
619 extern GL_APICALL void (*GL_APIENTRY glBindTransformFeedback)(GLenum target,
620 GLuint id);
621 extern GL_APICALL void (*GL_APIENTRY glDeleteTransformFeedbacks)(
622 GLsizei n, const GLuint* ids);
623 extern GL_APICALL void (*GL_APIENTRY glGenTransformFeedbacks)(GLsizei n,
624 GLuint* ids);
625 extern GL_APICALL GLboolean (*GL_APIENTRY glIsTransformFeedback)(GLuint id);
626 extern GL_APICALL void (*GL_APIENTRY glPauseTransformFeedback)(void);
627 extern GL_APICALL void (*GL_APIENTRY glResumeTransformFeedback)(void);
628 extern GL_APICALL void (*GL_APIENTRY glGetProgramBinary)(GLuint program,
629 GLsizei bufSize,
630 GLsizei* length,
631 GLenum* binaryFormat,
632 GLvoid* binary);
633 extern GL_APICALL void (*GL_APIENTRY glProgramBinary)(GLuint program,
634 GLenum binaryFormat,
635 const GLvoid* binary,
636 GLsizei length);
637 extern GL_APICALL void (*GL_APIENTRY glProgramParameteri)(GLuint program,
638 GLenum pname,
639 GLint value);
640 extern GL_APICALL void (*GL_APIENTRY glInvalidateFramebuffer)(
641 GLenum target, GLsizei numAttachments, const GLenum* attachments);
642 extern GL_APICALL void (*GL_APIENTRY glInvalidateSubFramebuffer)(
643 GLenum target, GLsizei numAttachments, const GLenum* attachments, GLint x,
644 GLint y, GLsizei width, GLsizei height);
645 extern GL_APICALL void (*GL_APIENTRY glTexStorage2D)(GLenum target,
646 GLsizei levels,
647 GLenum internalformat,
648 GLsizei width,
649 GLsizei height);
650 extern GL_APICALL void (*GL_APIENTRY glTexStorage3D)(
651 GLenum target, GLsizei levels, GLenum internalformat, GLsizei width,
652 GLsizei height, GLsizei depth);
653 extern GL_APICALL void (*GL_APIENTRY glGetInternalformativ)(
654 GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize,
655 GLint* params);
656
657 #ifdef __cplusplus
658 }
659 #endif
660
661 #endif