Update UnusedResources lint suppressions.
[chromium-blink-merge.git] / ppapi / lib / gl / include / GLES2 / gl2.h
blobdb04b1487f937002210a1f94c7ff607299de0ab7
1 #ifndef __gl2_h_
2 #define __gl2_h_
4 /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */
6 #include <GLES2/gl2platform.h>
8 /*
9 * This document is licensed under the SGI Free Software B License Version
10 * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
13 /*-------------------------------------------------------------------------
14 * Data type definitions
15 *-----------------------------------------------------------------------*/
17 typedef void GLvoid;
18 typedef char GLchar;
19 typedef unsigned int GLenum;
20 typedef unsigned char GLboolean;
21 typedef unsigned int GLbitfield;
22 typedef khronos_int8_t GLbyte;
23 typedef short GLshort;
24 typedef int GLint;
25 typedef int GLsizei;
26 typedef khronos_uint8_t GLubyte;
27 typedef unsigned short GLushort;
28 typedef unsigned int GLuint;
29 typedef khronos_float_t GLfloat;
30 typedef khronos_float_t GLclampf;
31 typedef khronos_int32_t GLfixed;
33 /* GL types for handling large vertex buffer objects */
34 typedef khronos_intptr_t GLintptr;
35 typedef khronos_ssize_t GLsizeiptr;
37 /* OpenGL ES core versions */
38 #define GL_ES_VERSION_2_0 1
40 /* ClearBufferMask */
41 #define GL_DEPTH_BUFFER_BIT 0x00000100
42 #define GL_STENCIL_BUFFER_BIT 0x00000400
43 #define GL_COLOR_BUFFER_BIT 0x00004000
45 /* Boolean */
46 #define GL_FALSE 0
47 #define GL_TRUE 1
49 /* BeginMode */
50 #define GL_POINTS 0x0000
51 #define GL_LINES 0x0001
52 #define GL_LINE_LOOP 0x0002
53 #define GL_LINE_STRIP 0x0003
54 #define GL_TRIANGLES 0x0004
55 #define GL_TRIANGLE_STRIP 0x0005
56 #define GL_TRIANGLE_FAN 0x0006
58 /* AlphaFunction (not supported in ES20) */
59 /* GL_NEVER */
60 /* GL_LESS */
61 /* GL_EQUAL */
62 /* GL_LEQUAL */
63 /* GL_GREATER */
64 /* GL_NOTEQUAL */
65 /* GL_GEQUAL */
66 /* GL_ALWAYS */
68 /* BlendingFactorDest */
69 #define GL_ZERO 0
70 #define GL_ONE 1
71 #define GL_SRC_COLOR 0x0300
72 #define GL_ONE_MINUS_SRC_COLOR 0x0301
73 #define GL_SRC_ALPHA 0x0302
74 #define GL_ONE_MINUS_SRC_ALPHA 0x0303
75 #define GL_DST_ALPHA 0x0304
76 #define GL_ONE_MINUS_DST_ALPHA 0x0305
78 /* BlendingFactorSrc */
79 /* GL_ZERO */
80 /* GL_ONE */
81 #define GL_DST_COLOR 0x0306
82 #define GL_ONE_MINUS_DST_COLOR 0x0307
83 #define GL_SRC_ALPHA_SATURATE 0x0308
84 /* GL_SRC_ALPHA */
85 /* GL_ONE_MINUS_SRC_ALPHA */
86 /* GL_DST_ALPHA */
87 /* GL_ONE_MINUS_DST_ALPHA */
89 /* BlendEquationSeparate */
90 #define GL_FUNC_ADD 0x8006
91 #define GL_BLEND_EQUATION 0x8009
92 #define GL_BLEND_EQUATION_RGB 0x8009 /* same as BLEND_EQUATION */
93 #define GL_BLEND_EQUATION_ALPHA 0x883D
95 /* BlendSubtract */
96 #define GL_FUNC_SUBTRACT 0x800A
97 #define GL_FUNC_REVERSE_SUBTRACT 0x800B
99 /* Separate Blend Functions */
100 #define GL_BLEND_DST_RGB 0x80C8
101 #define GL_BLEND_SRC_RGB 0x80C9
102 #define GL_BLEND_DST_ALPHA 0x80CA
103 #define GL_BLEND_SRC_ALPHA 0x80CB
104 #define GL_CONSTANT_COLOR 0x8001
105 #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
106 #define GL_CONSTANT_ALPHA 0x8003
107 #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
108 #define GL_BLEND_COLOR 0x8005
110 /* Buffer Objects */
111 #define GL_ARRAY_BUFFER 0x8892
112 #define GL_ELEMENT_ARRAY_BUFFER 0x8893
113 #define GL_ARRAY_BUFFER_BINDING 0x8894
114 #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
116 #define GL_STREAM_DRAW 0x88E0
117 #define GL_STATIC_DRAW 0x88E4
118 #define GL_DYNAMIC_DRAW 0x88E8
120 #define GL_BUFFER_SIZE 0x8764
121 #define GL_BUFFER_USAGE 0x8765
123 #define GL_CURRENT_VERTEX_ATTRIB 0x8626
125 /* CullFaceMode */
126 #define GL_FRONT 0x0404
127 #define GL_BACK 0x0405
128 #define GL_FRONT_AND_BACK 0x0408
130 /* DepthFunction */
131 /* GL_NEVER */
132 /* GL_LESS */
133 /* GL_EQUAL */
134 /* GL_LEQUAL */
135 /* GL_GREATER */
136 /* GL_NOTEQUAL */
137 /* GL_GEQUAL */
138 /* GL_ALWAYS */
140 /* EnableCap */
141 #define GL_TEXTURE_2D 0x0DE1
142 #define GL_CULL_FACE 0x0B44
143 #define GL_BLEND 0x0BE2
144 #define GL_DITHER 0x0BD0
145 #define GL_STENCIL_TEST 0x0B90
146 #define GL_DEPTH_TEST 0x0B71
147 #define GL_SCISSOR_TEST 0x0C11
148 #define GL_POLYGON_OFFSET_FILL 0x8037
149 #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
150 #define GL_SAMPLE_COVERAGE 0x80A0
152 /* ErrorCode */
153 #define GL_NO_ERROR 0
154 #define GL_INVALID_ENUM 0x0500
155 #define GL_INVALID_VALUE 0x0501
156 #define GL_INVALID_OPERATION 0x0502
157 #define GL_OUT_OF_MEMORY 0x0505
158 #define GL_CONTEXT_LOST 0x300E // TODO(gman): What value?
160 /* FrontFaceDirection */
161 #define GL_CW 0x0900
162 #define GL_CCW 0x0901
164 /* GetPName */
165 #define GL_LINE_WIDTH 0x0B21
166 #define GL_ALIASED_POINT_SIZE_RANGE 0x846D
167 #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
168 #define GL_CULL_FACE_MODE 0x0B45
169 #define GL_FRONT_FACE 0x0B46
170 #define GL_DEPTH_RANGE 0x0B70
171 #define GL_DEPTH_WRITEMASK 0x0B72
172 #define GL_DEPTH_CLEAR_VALUE 0x0B73
173 #define GL_DEPTH_FUNC 0x0B74
174 #define GL_STENCIL_CLEAR_VALUE 0x0B91
175 #define GL_STENCIL_FUNC 0x0B92
176 #define GL_STENCIL_FAIL 0x0B94
177 #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
178 #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
179 #define GL_STENCIL_REF 0x0B97
180 #define GL_STENCIL_VALUE_MASK 0x0B93
181 #define GL_STENCIL_WRITEMASK 0x0B98
182 #define GL_STENCIL_BACK_FUNC 0x8800
183 #define GL_STENCIL_BACK_FAIL 0x8801
184 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
185 #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
186 #define GL_STENCIL_BACK_REF 0x8CA3
187 #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
188 #define GL_STENCIL_BACK_WRITEMASK 0x8CA5
189 #define GL_VIEWPORT 0x0BA2
190 #define GL_SCISSOR_BOX 0x0C10
191 /* GL_SCISSOR_TEST */
192 #define GL_COLOR_CLEAR_VALUE 0x0C22
193 #define GL_COLOR_WRITEMASK 0x0C23
194 #define GL_UNPACK_ALIGNMENT 0x0CF5
195 #define GL_PACK_ALIGNMENT 0x0D05
196 #define GL_MAX_TEXTURE_SIZE 0x0D33
197 #define GL_MAX_VIEWPORT_DIMS 0x0D3A
198 #define GL_SUBPIXEL_BITS 0x0D50
199 #define GL_RED_BITS 0x0D52
200 #define GL_GREEN_BITS 0x0D53
201 #define GL_BLUE_BITS 0x0D54
202 #define GL_ALPHA_BITS 0x0D55
203 #define GL_DEPTH_BITS 0x0D56
204 #define GL_STENCIL_BITS 0x0D57
205 #define GL_POLYGON_OFFSET_UNITS 0x2A00
206 /* GL_POLYGON_OFFSET_FILL */
207 #define GL_POLYGON_OFFSET_FACTOR 0x8038
208 #define GL_TEXTURE_BINDING_2D 0x8069
209 #define GL_SAMPLE_BUFFERS 0x80A8
210 #define GL_SAMPLES 0x80A9
211 #define GL_SAMPLE_COVERAGE_VALUE 0x80AA
212 #define GL_SAMPLE_COVERAGE_INVERT 0x80AB
214 /* GetTextureParameter */
215 /* GL_TEXTURE_MAG_FILTER */
216 /* GL_TEXTURE_MIN_FILTER */
217 /* GL_TEXTURE_WRAP_S */
218 /* GL_TEXTURE_WRAP_T */
220 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
221 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
223 /* HintMode */
224 #define GL_DONT_CARE 0x1100
225 #define GL_FASTEST 0x1101
226 #define GL_NICEST 0x1102
228 /* HintTarget */
229 #define GL_GENERATE_MIPMAP_HINT 0x8192
231 /* DataType */
232 #define GL_BYTE 0x1400
233 #define GL_UNSIGNED_BYTE 0x1401
234 #define GL_SHORT 0x1402
235 #define GL_UNSIGNED_SHORT 0x1403
236 #define GL_INT 0x1404
237 #define GL_UNSIGNED_INT 0x1405
238 #define GL_FLOAT 0x1406
239 #define GL_FIXED 0x140C
241 /* PixelFormat */
242 #define GL_DEPTH_COMPONENT 0x1902
243 #define GL_ALPHA 0x1906
244 #define GL_RGB 0x1907
245 #define GL_RGBA 0x1908
246 #define GL_LUMINANCE 0x1909
247 #define GL_LUMINANCE_ALPHA 0x190A
249 /* PixelType */
250 /* GL_UNSIGNED_BYTE */
251 #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
252 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
253 #define GL_UNSIGNED_SHORT_5_6_5 0x8363
255 /* Shaders */
256 #define GL_FRAGMENT_SHADER 0x8B30
257 #define GL_VERTEX_SHADER 0x8B31
258 #define GL_MAX_VERTEX_ATTRIBS 0x8869
259 #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
260 #define GL_MAX_VARYING_VECTORS 0x8DFC
261 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
262 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
263 #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
264 #define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
265 #define GL_SHADER_TYPE 0x8B4F
266 #define GL_DELETE_STATUS 0x8B80
267 #define GL_LINK_STATUS 0x8B82
268 #define GL_VALIDATE_STATUS 0x8B83
269 #define GL_ATTACHED_SHADERS 0x8B85
270 #define GL_ACTIVE_UNIFORMS 0x8B86
271 #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
272 #define GL_ACTIVE_ATTRIBUTES 0x8B89
273 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
274 #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
275 #define GL_CURRENT_PROGRAM 0x8B8D
277 /* StencilFunction */
278 #define GL_NEVER 0x0200
279 #define GL_LESS 0x0201
280 #define GL_EQUAL 0x0202
281 #define GL_LEQUAL 0x0203
282 #define GL_GREATER 0x0204
283 #define GL_NOTEQUAL 0x0205
284 #define GL_GEQUAL 0x0206
285 #define GL_ALWAYS 0x0207
287 /* StencilOp */
288 /* GL_ZERO */
289 #define GL_KEEP 0x1E00
290 #define GL_REPLACE 0x1E01
291 #define GL_INCR 0x1E02
292 #define GL_DECR 0x1E03
293 #define GL_INVERT 0x150A
294 #define GL_INCR_WRAP 0x8507
295 #define GL_DECR_WRAP 0x8508
297 /* StringName */
298 #define GL_VENDOR 0x1F00
299 #define GL_RENDERER 0x1F01
300 #define GL_VERSION 0x1F02
301 #define GL_EXTENSIONS 0x1F03
303 /* TextureMagFilter */
304 #define GL_NEAREST 0x2600
305 #define GL_LINEAR 0x2601
307 /* TextureMinFilter */
308 /* GL_NEAREST */
309 /* GL_LINEAR */
310 #define GL_NEAREST_MIPMAP_NEAREST 0x2700
311 #define GL_LINEAR_MIPMAP_NEAREST 0x2701
312 #define GL_NEAREST_MIPMAP_LINEAR 0x2702
313 #define GL_LINEAR_MIPMAP_LINEAR 0x2703
315 /* TextureParameterName */
316 #define GL_TEXTURE_MAG_FILTER 0x2800
317 #define GL_TEXTURE_MIN_FILTER 0x2801
318 #define GL_TEXTURE_WRAP_S 0x2802
319 #define GL_TEXTURE_WRAP_T 0x2803
321 /* TextureTarget */
322 /* GL_TEXTURE_2D */
323 #define GL_TEXTURE 0x1702
325 #define GL_TEXTURE_CUBE_MAP 0x8513
326 #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
327 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
328 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
329 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
330 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
331 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
332 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
333 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
335 /* TextureUnit */
336 #define GL_TEXTURE0 0x84C0
337 #define GL_TEXTURE1 0x84C1
338 #define GL_TEXTURE2 0x84C2
339 #define GL_TEXTURE3 0x84C3
340 #define GL_TEXTURE4 0x84C4
341 #define GL_TEXTURE5 0x84C5
342 #define GL_TEXTURE6 0x84C6
343 #define GL_TEXTURE7 0x84C7
344 #define GL_TEXTURE8 0x84C8
345 #define GL_TEXTURE9 0x84C9
346 #define GL_TEXTURE10 0x84CA
347 #define GL_TEXTURE11 0x84CB
348 #define GL_TEXTURE12 0x84CC
349 #define GL_TEXTURE13 0x84CD
350 #define GL_TEXTURE14 0x84CE
351 #define GL_TEXTURE15 0x84CF
352 #define GL_TEXTURE16 0x84D0
353 #define GL_TEXTURE17 0x84D1
354 #define GL_TEXTURE18 0x84D2
355 #define GL_TEXTURE19 0x84D3
356 #define GL_TEXTURE20 0x84D4
357 #define GL_TEXTURE21 0x84D5
358 #define GL_TEXTURE22 0x84D6
359 #define GL_TEXTURE23 0x84D7
360 #define GL_TEXTURE24 0x84D8
361 #define GL_TEXTURE25 0x84D9
362 #define GL_TEXTURE26 0x84DA
363 #define GL_TEXTURE27 0x84DB
364 #define GL_TEXTURE28 0x84DC
365 #define GL_TEXTURE29 0x84DD
366 #define GL_TEXTURE30 0x84DE
367 #define GL_TEXTURE31 0x84DF
368 #define GL_ACTIVE_TEXTURE 0x84E0
370 /* TextureWrapMode */
371 #define GL_REPEAT 0x2901
372 #define GL_CLAMP_TO_EDGE 0x812F
373 #define GL_MIRRORED_REPEAT 0x8370
375 /* Uniform Types */
376 #define GL_FLOAT_VEC2 0x8B50
377 #define GL_FLOAT_VEC3 0x8B51
378 #define GL_FLOAT_VEC4 0x8B52
379 #define GL_INT_VEC2 0x8B53
380 #define GL_INT_VEC3 0x8B54
381 #define GL_INT_VEC4 0x8B55
382 #define GL_BOOL 0x8B56
383 #define GL_BOOL_VEC2 0x8B57
384 #define GL_BOOL_VEC3 0x8B58
385 #define GL_BOOL_VEC4 0x8B59
386 #define GL_FLOAT_MAT2 0x8B5A
387 #define GL_FLOAT_MAT3 0x8B5B
388 #define GL_FLOAT_MAT4 0x8B5C
389 #define GL_SAMPLER_2D 0x8B5E
390 #define GL_SAMPLER_CUBE 0x8B60
392 /* Vertex Arrays */
393 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
394 #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
395 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
396 #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
397 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
398 #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
399 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
401 /* Read Format */
402 #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
403 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
405 /* Shader Source */
406 #define GL_COMPILE_STATUS 0x8B81
407 #define GL_INFO_LOG_LENGTH 0x8B84
408 #define GL_SHADER_SOURCE_LENGTH 0x8B88
409 #define GL_SHADER_COMPILER 0x8DFA
411 /* Shader Binary */
412 #define GL_SHADER_BINARY_FORMATS 0x8DF8
413 #define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
415 /* Shader Precision-Specified Types */
416 #define GL_LOW_FLOAT 0x8DF0
417 #define GL_MEDIUM_FLOAT 0x8DF1
418 #define GL_HIGH_FLOAT 0x8DF2
419 #define GL_LOW_INT 0x8DF3
420 #define GL_MEDIUM_INT 0x8DF4
421 #define GL_HIGH_INT 0x8DF5
423 /* Framebuffer Object. */
424 #define GL_FRAMEBUFFER 0x8D40
425 #define GL_RENDERBUFFER 0x8D41
427 #define GL_RGBA4 0x8056
428 #define GL_RGB5_A1 0x8057
429 #define GL_RGB565 0x8D62
430 #define GL_DEPTH_COMPONENT16 0x81A5
431 #define GL_STENCIL_INDEX 0x1901
432 #define GL_STENCIL_INDEX8 0x8D48
434 #define GL_RENDERBUFFER_WIDTH 0x8D42
435 #define GL_RENDERBUFFER_HEIGHT 0x8D43
436 #define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
437 #define GL_RENDERBUFFER_RED_SIZE 0x8D50
438 #define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
439 #define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
440 #define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
441 #define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
442 #define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
444 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
445 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
446 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
447 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
449 #define GL_COLOR_ATTACHMENT0 0x8CE0
450 #define GL_DEPTH_ATTACHMENT 0x8D00
451 #define GL_STENCIL_ATTACHMENT 0x8D20
453 #define GL_NONE 0
455 #define GL_FRAMEBUFFER_COMPLETE 0x8CD5
456 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
457 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
458 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9
459 #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
461 #define GL_FRAMEBUFFER_BINDING 0x8CA6
462 #define GL_RENDERBUFFER_BINDING 0x8CA7
463 #define GL_MAX_RENDERBUFFER_SIZE 0x84E8
465 #define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
467 // Note: If your program is written in C++ you can define
468 // GLES2_INLINE_OPTIMIZATION to get an inline version of the OpenGL ES 2.0
469 // code for your program. The advantage is a program compiled with high
470 // optimization settings can generate very efficient code for issuing OpenGL ES
471 // commands. The disadvantage is there is a small possibility of conflicts with
472 // your code as we need to include lots of class definitions and a few
473 // macros.
475 #if defined(__cplusplus) && defined(GLES2_INLINE_OPTIMIZATION)
476 #include "../command_buffer/client/gles2_lib.h"
477 #define GLES2_USE_CPP_BINDINGS
478 #endif
480 #if defined(GLES2_USE_CPP_BINDINGS)
481 #define GLES2_GET_FUN(name) gles2::GetGLContext()->name
482 #else
483 #define GLES2_GET_FUN(name) GLES2 ## name
484 #endif
486 /*-------------------------------------------------------------------------
487 * GL core functions.
488 *-----------------------------------------------------------------------*/
490 #define glActiveTexture GLES2_GET_FUN(ActiveTexture)
491 #define glAttachShader GLES2_GET_FUN(AttachShader)
492 #define glBindAttribLocation GLES2_GET_FUN(BindAttribLocation)
493 #define glBindBuffer GLES2_GET_FUN(BindBuffer)
494 #define glBindFramebuffer GLES2_GET_FUN(BindFramebuffer)
495 #define glBindRenderbuffer GLES2_GET_FUN(BindRenderbuffer)
496 #define glBindTexture GLES2_GET_FUN(BindTexture)
497 #define glBlendColor GLES2_GET_FUN(BlendColor)
498 #define glBlendEquation GLES2_GET_FUN(BlendEquation)
499 #define glBlendEquationSeparate GLES2_GET_FUN(BlendEquationSeparate)
500 #define glBlendFunc GLES2_GET_FUN(BlendFunc)
501 #define glBlendFuncSeparate GLES2_GET_FUN(BlendFuncSeparate)
502 #define glBufferData GLES2_GET_FUN(BufferData)
503 #define glBufferSubData GLES2_GET_FUN(BufferSubData)
504 #define glCheckFramebufferStatus GLES2_GET_FUN(CheckFramebufferStatus)
505 #define glClear GLES2_GET_FUN(Clear)
506 #define glClearColor GLES2_GET_FUN(ClearColor)
507 #define glClearDepthf GLES2_GET_FUN(ClearDepthf)
508 #define glClearStencil GLES2_GET_FUN(ClearStencil)
509 #define glColorMask GLES2_GET_FUN(ColorMask)
510 #define glCompileShader GLES2_GET_FUN(CompileShader)
511 #define glCompressedTexImage2D GLES2_GET_FUN(CompressedTexImage2D)
512 #define glCompressedTexSubImage2D GLES2_GET_FUN(CompressedTexSubImage2D)
513 #define glCopyTexImage2D GLES2_GET_FUN(CopyTexImage2D)
514 #define glCopyTexSubImage2D GLES2_GET_FUN(CopyTexSubImage2D)
515 #define glCreateProgram GLES2_GET_FUN(CreateProgram)
516 #define glCreateShader GLES2_GET_FUN(CreateShader)
517 #define glCullFace GLES2_GET_FUN(CullFace)
518 #define glDeleteBuffers GLES2_GET_FUN(DeleteBuffers)
519 #define glDeleteFramebuffers GLES2_GET_FUN(DeleteFramebuffers)
520 #define glDeleteProgram GLES2_GET_FUN(DeleteProgram)
521 #define glDeleteRenderbuffers GLES2_GET_FUN(DeleteRenderbuffers)
522 #define glDeleteShader GLES2_GET_FUN(DeleteShader)
523 #define glDeleteTextures GLES2_GET_FUN(DeleteTextures)
524 #define glDepthFunc GLES2_GET_FUN(DepthFunc)
525 #define glDepthMask GLES2_GET_FUN(DepthMask)
526 #define glDepthRangef GLES2_GET_FUN(DepthRangef)
527 #define glDetachShader GLES2_GET_FUN(DetachShader)
528 #define glDisable GLES2_GET_FUN(Disable)
529 #define glDisableVertexAttribArray GLES2_GET_FUN(DisableVertexAttribArray)
530 #define glDrawArrays GLES2_GET_FUN(DrawArrays)
531 #define glDrawElements GLES2_GET_FUN(DrawElements)
532 #define glEnable GLES2_GET_FUN(Enable)
533 #define glEnableVertexAttribArray GLES2_GET_FUN(EnableVertexAttribArray)
534 #define glFinish GLES2_GET_FUN(Finish)
535 #define glFlush GLES2_GET_FUN(Flush)
536 #define glFramebufferRenderbuffer GLES2_GET_FUN(FramebufferRenderbuffer)
537 #define glFramebufferTexture2D GLES2_GET_FUN(FramebufferTexture2D)
538 #define glFrontFace GLES2_GET_FUN(FrontFace)
539 #define glGenBuffers GLES2_GET_FUN(GenBuffers)
540 #define glGenerateMipmap GLES2_GET_FUN(GenerateMipmap)
541 #define glGenFramebuffers GLES2_GET_FUN(GenFramebuffers)
542 #define glGenRenderbuffers GLES2_GET_FUN(GenRenderbuffers)
543 #define glGenTextures GLES2_GET_FUN(GenTextures)
544 #define glGetActiveAttrib GLES2_GET_FUN(GetActiveAttrib)
545 #define glGetActiveUniform GLES2_GET_FUN(GetActiveUniform)
546 #define glGetAttachedShaders GLES2_GET_FUN(GetAttachedShaders)
547 #define glGetAttribLocation GLES2_GET_FUN(GetAttribLocation)
548 #define glGetBooleanv GLES2_GET_FUN(GetBooleanv)
549 #define glGetBufferParameteriv GLES2_GET_FUN(GetBufferParameteriv)
550 #define glGetError GLES2_GET_FUN(GetError)
551 #define glGetFloatv GLES2_GET_FUN(GetFloatv)
552 #define glGetFramebufferAttachmentParameteriv GLES2_GET_FUN(GetFramebufferAttachmentParameteriv)
553 #define glGetIntegerv GLES2_GET_FUN(GetIntegerv)
554 #define glGetProgramiv GLES2_GET_FUN(GetProgramiv)
555 #define glGetProgramInfoLog GLES2_GET_FUN(GetProgramInfoLog)
556 #define glGetRenderbufferParameteriv GLES2_GET_FUN(GetRenderbufferParameteriv)
557 #define glGetShaderiv GLES2_GET_FUN(GetShaderiv)
558 #define glGetShaderInfoLog GLES2_GET_FUN(GetShaderInfoLog)
559 #define glGetShaderPrecisionFormat GLES2_GET_FUN(GetShaderPrecisionFormat)
560 #define glGetShaderSource GLES2_GET_FUN(GetShaderSource)
561 #define glGetString GLES2_GET_FUN(GetString)
562 #define glGetTexParameterfv GLES2_GET_FUN(GetTexParameterfv)
563 #define glGetTexParameteriv GLES2_GET_FUN(GetTexParameteriv)
564 #define glGetUniformfv GLES2_GET_FUN(GetUniformfv)
565 #define glGetUniformiv GLES2_GET_FUN(GetUniformiv)
566 #define glGetUniformLocation GLES2_GET_FUN(GetUniformLocation)
567 #define glGetVertexAttribfv GLES2_GET_FUN(GetVertexAttribfv)
568 #define glGetVertexAttribiv GLES2_GET_FUN(GetVertexAttribiv)
569 #define glGetVertexAttribPointerv GLES2_GET_FUN(GetVertexAttribPointerv)
570 #define glHint GLES2_GET_FUN(Hint)
571 #define glIsBuffer GLES2_GET_FUN(IsBuffer)
572 #define glIsEnabled GLES2_GET_FUN(IsEnabled)
573 #define glIsFramebuffer GLES2_GET_FUN(IsFramebuffer)
574 #define glIsProgram GLES2_GET_FUN(IsProgram)
575 #define glIsRenderbuffer GLES2_GET_FUN(IsRenderbuffer)
576 #define glIsShader GLES2_GET_FUN(IsShader)
577 #define glIsTexture GLES2_GET_FUN(IsTexture)
578 #define glLineWidth GLES2_GET_FUN(LineWidth)
579 #define glLinkProgram GLES2_GET_FUN(LinkProgram)
580 #define glPixelStorei GLES2_GET_FUN(PixelStorei)
581 #define glPolygonOffset GLES2_GET_FUN(PolygonOffset)
582 #define glReadPixels GLES2_GET_FUN(ReadPixels)
583 #define glReleaseShaderCompiler GLES2_GET_FUN(ReleaseShaderCompiler)
584 #define glRenderbufferStorage GLES2_GET_FUN(RenderbufferStorage)
585 #define glSampleCoverage GLES2_GET_FUN(SampleCoverage)
586 #define glScissor GLES2_GET_FUN(Scissor)
587 #define glShaderBinary GLES2_GET_FUN(ShaderBinary)
588 #define glShaderSource GLES2_GET_FUN(ShaderSource)
589 #define glStencilFunc GLES2_GET_FUN(StencilFunc)
590 #define glStencilFuncSeparate GLES2_GET_FUN(StencilFuncSeparate)
591 #define glStencilMask GLES2_GET_FUN(StencilMask)
592 #define glStencilMaskSeparate GLES2_GET_FUN(StencilMaskSeparate)
593 #define glStencilOp GLES2_GET_FUN(StencilOp)
594 #define glStencilOpSeparate GLES2_GET_FUN(StencilOpSeparate)
595 #define glTexImage2D GLES2_GET_FUN(TexImage2D)
596 #define glTexParameterf GLES2_GET_FUN(TexParameterf)
597 #define glTexParameterfv GLES2_GET_FUN(TexParameterfv)
598 #define glTexParameteri GLES2_GET_FUN(TexParameteri)
599 #define glTexParameteriv GLES2_GET_FUN(TexParameteriv)
600 #define glTexSubImage2D GLES2_GET_FUN(TexSubImage2D)
601 #define glUniform1f GLES2_GET_FUN(Uniform1f)
602 #define glUniform1fv GLES2_GET_FUN(Uniform1fv)
603 #define glUniform1i GLES2_GET_FUN(Uniform1i)
604 #define glUniform1iv GLES2_GET_FUN(Uniform1iv)
605 #define glUniform2f GLES2_GET_FUN(Uniform2f)
606 #define glUniform2fv GLES2_GET_FUN(Uniform2fv)
607 #define glUniform2i GLES2_GET_FUN(Uniform2i)
608 #define glUniform2iv GLES2_GET_FUN(Uniform2iv)
609 #define glUniform3f GLES2_GET_FUN(Uniform3f)
610 #define glUniform3fv GLES2_GET_FUN(Uniform3fv)
611 #define glUniform3i GLES2_GET_FUN(Uniform3i)
612 #define glUniform3iv GLES2_GET_FUN(Uniform3iv)
613 #define glUniform4f GLES2_GET_FUN(Uniform4f)
614 #define glUniform4fv GLES2_GET_FUN(Uniform4fv)
615 #define glUniform4i GLES2_GET_FUN(Uniform4i)
616 #define glUniform4iv GLES2_GET_FUN(Uniform4iv)
617 #define glUniformMatrix2fv GLES2_GET_FUN(UniformMatrix2fv)
618 #define glUniformMatrix3fv GLES2_GET_FUN(UniformMatrix3fv)
619 #define glUniformMatrix4fv GLES2_GET_FUN(UniformMatrix4fv)
620 #define glUseProgram GLES2_GET_FUN(UseProgram)
621 #define glValidateProgram GLES2_GET_FUN(ValidateProgram)
622 #define glVertexAttrib1f GLES2_GET_FUN(VertexAttrib1f)
623 #define glVertexAttrib1fv GLES2_GET_FUN(VertexAttrib1fv)
624 #define glVertexAttrib2f GLES2_GET_FUN(VertexAttrib2f)
625 #define glVertexAttrib2fv GLES2_GET_FUN(VertexAttrib2fv)
626 #define glVertexAttrib3f GLES2_GET_FUN(VertexAttrib3f)
627 #define glVertexAttrib3fv GLES2_GET_FUN(VertexAttrib3fv)
628 #define glVertexAttrib4f GLES2_GET_FUN(VertexAttrib4f)
629 #define glVertexAttrib4fv GLES2_GET_FUN(VertexAttrib4fv)
630 #define glVertexAttribPointer GLES2_GET_FUN(VertexAttribPointer)
631 #define glViewport GLES2_GET_FUN(Viewport)
633 #if !defined(GLES2_USE_CPP_BINDINGS)
635 #if defined(__cplusplus)
636 extern "C" {
637 #endif
639 GL_APICALL void GL_APIENTRY glActiveTexture (GLenum texture);
640 GL_APICALL void GL_APIENTRY glAttachShader (GLuint program, GLuint shader);
641 GL_APICALL void GL_APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar* name);
642 GL_APICALL void GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer);
643 GL_APICALL void GL_APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
644 GL_APICALL void GL_APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
645 GL_APICALL void GL_APIENTRY glBindTexture (GLenum target, GLuint texture);
646 GL_APICALL void GL_APIENTRY glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
647 GL_APICALL void GL_APIENTRY glBlendEquation ( GLenum mode );
648 GL_APICALL void GL_APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
649 GL_APICALL void GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
650 GL_APICALL void GL_APIENTRY glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
651 GL_APICALL void GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
652 GL_APICALL void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
653 GL_APICALL GLenum GL_APIENTRY glCheckFramebufferStatus (GLenum target);
654 GL_APICALL void GL_APIENTRY glClear (GLbitfield mask);
655 GL_APICALL void GL_APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
656 GL_APICALL void GL_APIENTRY glClearDepthf (GLclampf depth);
657 GL_APICALL void GL_APIENTRY glClearStencil (GLint s);
658 GL_APICALL void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
659 GL_APICALL void GL_APIENTRY glCompileShader (GLuint shader);
660 GL_APICALL void GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data);
661 GL_APICALL void GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data);
662 GL_APICALL void GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
663 GL_APICALL void GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
664 GL_APICALL GLuint GL_APIENTRY glCreateProgram (void);
665 GL_APICALL GLuint GL_APIENTRY glCreateShader (GLenum type);
666 GL_APICALL void GL_APIENTRY glCullFace (GLenum mode);
667 GL_APICALL void GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint* buffers);
668 GL_APICALL void GL_APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint* framebuffers);
669 GL_APICALL void GL_APIENTRY glDeleteProgram (GLuint program);
670 GL_APICALL void GL_APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers);
671 GL_APICALL void GL_APIENTRY glDeleteShader (GLuint shader);
672 GL_APICALL void GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint* textures);
673 GL_APICALL void GL_APIENTRY glDepthFunc (GLenum func);
674 GL_APICALL void GL_APIENTRY glDepthMask (GLboolean flag);
675 GL_APICALL void GL_APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar);
676 GL_APICALL void GL_APIENTRY glDetachShader (GLuint program, GLuint shader);
677 GL_APICALL void GL_APIENTRY glDisable (GLenum cap);
678 GL_APICALL void GL_APIENTRY glDisableVertexAttribArray (GLuint index);
679 GL_APICALL void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
680 GL_APICALL void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid* indices);
681 GL_APICALL void GL_APIENTRY glEnable (GLenum cap);
682 GL_APICALL void GL_APIENTRY glEnableVertexAttribArray (GLuint index);
683 GL_APICALL void GL_APIENTRY glFinish (void);
684 GL_APICALL void GL_APIENTRY glFlush (void);
685 GL_APICALL void GL_APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
686 GL_APICALL void GL_APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
687 GL_APICALL void GL_APIENTRY glFrontFace (GLenum mode);
688 GL_APICALL void GL_APIENTRY glGenBuffers (GLsizei n, GLuint* buffers);
689 GL_APICALL void GL_APIENTRY glGenerateMipmap (GLenum target);
690 GL_APICALL void GL_APIENTRY glGenFramebuffers (GLsizei n, GLuint* framebuffers);
691 GL_APICALL void GL_APIENTRY glGenRenderbuffers (GLsizei n, GLuint* renderbuffers);
692 GL_APICALL void GL_APIENTRY glGenTextures (GLsizei n, GLuint* textures);
693 GL_APICALL void GL_APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
694 GL_APICALL void GL_APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
695 GL_APICALL void GL_APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders);
696 GL_APICALL int GL_APIENTRY glGetAttribLocation (GLuint program, const GLchar* name);
697 GL_APICALL void GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean* params);
698 GL_APICALL void GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params);
699 GL_APICALL GLenum GL_APIENTRY glGetError (void);
700 GL_APICALL void GL_APIENTRY glGetFloatv (GLenum pname, GLfloat* params);
701 GL_APICALL void GL_APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params);
702 GL_APICALL void GL_APIENTRY glGetIntegerv (GLenum pname, GLint* params);
703 GL_APICALL void GL_APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint* params);
704 GL_APICALL void GL_APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog);
705 GL_APICALL void GL_APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params);
706 GL_APICALL void GL_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint* params);
707 GL_APICALL void GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog);
708 GL_APICALL void GL_APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision);
709 GL_APICALL void GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source);
710 GL_APICALL const GLubyte* GL_APIENTRY glGetString (GLenum name);
711 GL_APICALL void GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params);
712 GL_APICALL void GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint* params);
713 GL_APICALL void GL_APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat* params);
714 GL_APICALL void GL_APIENTRY glGetUniformiv (GLuint program, GLint location, GLint* params);
715 GL_APICALL int GL_APIENTRY glGetUniformLocation (GLuint program, const GLchar* name);
716 GL_APICALL void GL_APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params);
717 GL_APICALL void GL_APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params);
718 GL_APICALL void GL_APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer);
719 GL_APICALL void GL_APIENTRY glHint (GLenum target, GLenum mode);
720 GL_APICALL GLboolean GL_APIENTRY glIsBuffer (GLuint buffer);
721 GL_APICALL GLboolean GL_APIENTRY glIsEnabled (GLenum cap);
722 GL_APICALL GLboolean GL_APIENTRY glIsFramebuffer (GLuint framebuffer);
723 GL_APICALL GLboolean GL_APIENTRY glIsProgram (GLuint program);
724 GL_APICALL GLboolean GL_APIENTRY glIsRenderbuffer (GLuint renderbuffer);
725 GL_APICALL GLboolean GL_APIENTRY glIsShader (GLuint shader);
726 GL_APICALL GLboolean GL_APIENTRY glIsTexture (GLuint texture);
727 GL_APICALL void GL_APIENTRY glLineWidth (GLfloat width);
728 GL_APICALL void GL_APIENTRY glLinkProgram (GLuint program);
729 GL_APICALL void GL_APIENTRY glPixelStorei (GLenum pname, GLint param);
730 GL_APICALL void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
731 GL_APICALL void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels);
732 GL_APICALL void GL_APIENTRY glReleaseShaderCompiler (void);
733 GL_APICALL void GL_APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
734 GL_APICALL void GL_APIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
735 GL_APICALL void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
736 GL_APICALL void GL_APIENTRY glShaderBinary (GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length);
737 GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar** string, const GLint* length);
738 GL_APICALL void GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
739 GL_APICALL void GL_APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
740 GL_APICALL void GL_APIENTRY glStencilMask (GLuint mask);
741 GL_APICALL void GL_APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
742 GL_APICALL void GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
743 GL_APICALL void GL_APIENTRY glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
744 GL_APICALL void GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels);
745 GL_APICALL void GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
746 GL_APICALL void GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat* params);
747 GL_APICALL void GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
748 GL_APICALL void GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint* params);
749 GL_APICALL void GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels);
750 GL_APICALL void GL_APIENTRY glUniform1f (GLint location, GLfloat x);
751 GL_APICALL void GL_APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat* v);
752 GL_APICALL void GL_APIENTRY glUniform1i (GLint location, GLint x);
753 GL_APICALL void GL_APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint* v);
754 GL_APICALL void GL_APIENTRY glUniform2f (GLint location, GLfloat x, GLfloat y);
755 GL_APICALL void GL_APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat* v);
756 GL_APICALL void GL_APIENTRY glUniform2i (GLint location, GLint x, GLint y);
757 GL_APICALL void GL_APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint* v);
758 GL_APICALL void GL_APIENTRY glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z);
759 GL_APICALL void GL_APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat* v);
760 GL_APICALL void GL_APIENTRY glUniform3i (GLint location, GLint x, GLint y, GLint z);
761 GL_APICALL void GL_APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint* v);
762 GL_APICALL void GL_APIENTRY glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
763 GL_APICALL void GL_APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat* v);
764 GL_APICALL void GL_APIENTRY glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w);
765 GL_APICALL void GL_APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint* v);
766 GL_APICALL void GL_APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
767 GL_APICALL void GL_APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
768 GL_APICALL void GL_APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
769 GL_APICALL void GL_APIENTRY glUseProgram (GLuint program);
770 GL_APICALL void GL_APIENTRY glValidateProgram (GLuint program);
771 GL_APICALL void GL_APIENTRY glVertexAttrib1f (GLuint indx, GLfloat x);
772 GL_APICALL void GL_APIENTRY glVertexAttrib1fv (GLuint indx, const GLfloat* values);
773 GL_APICALL void GL_APIENTRY glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y);
774 GL_APICALL void GL_APIENTRY glVertexAttrib2fv (GLuint indx, const GLfloat* values);
775 GL_APICALL void GL_APIENTRY glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z);
776 GL_APICALL void GL_APIENTRY glVertexAttrib3fv (GLuint indx, const GLfloat* values);
777 GL_APICALL void GL_APIENTRY glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
778 GL_APICALL void GL_APIENTRY glVertexAttrib4fv (GLuint indx, const GLfloat* values);
779 GL_APICALL void GL_APIENTRY glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr);
780 GL_APICALL void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
782 #if defined(__cplusplus)
784 #endif
786 #endif // !GLES2_USE_CPP_BINDINGS
788 #endif /* __gl2_h_ */