CFx SDK Documentation  2023 SP0
gles2_ext.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 // GLES2 extensions
24 
25 #ifndef ODGLES2EXT
26 #define ODGLES2EXT
27 
28 #ifndef GL_GLEXT_LEGACY // Don't include GL extensions on Linux
29 #define GL_GLEXT_LEGACY
30 #endif
31 #include "TD_GL.h"
32 
33 #ifndef APIENTRY
34 #define APIENTRY
35 #endif
36 #ifndef APIENTRYP
37 #define APIENTRYP APIENTRY *
38 #endif
39 
40 #ifndef GL_VERSION_1_2
41 #define GL_VERSION_1_2 1
42 #define GL_VERSION_1_2_GLES2 1
43 
44 #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
45 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
46 #define GL_UNSIGNED_SHORT_5_6_5 0x8363
47 #define GL_CLAMP_TO_EDGE 0x812F
48 #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
49 #define GL_ALIASED_POINT_SIZE_RANGE 0x846D
50 
51 #endif /* GL_VERSION_1_2 */
52 
53 #ifndef GL_VERSION_1_3
54 #define GL_VERSION_1_3 1
55 #define GL_VERSION_1_3_GLES2 1
56 
57 #define GL_TEXTURE0 0x84C0
58 #define GL_TEXTURE1 0x84C1
59 #define GL_TEXTURE2 0x84C2
60 #define GL_TEXTURE3 0x84C3
61 #define GL_TEXTURE4 0x84C4
62 #define GL_TEXTURE5 0x84C5
63 #define GL_TEXTURE6 0x84C6
64 #define GL_TEXTURE7 0x84C7
65 #define GL_TEXTURE8 0x84C8
66 #define GL_TEXTURE9 0x84C9
67 #define GL_TEXTURE10 0x84CA
68 #define GL_TEXTURE11 0x84CB
69 #define GL_TEXTURE12 0x84CC
70 #define GL_TEXTURE13 0x84CD
71 #define GL_TEXTURE14 0x84CE
72 #define GL_TEXTURE15 0x84CF
73 #define GL_TEXTURE16 0x84D0
74 #define GL_TEXTURE17 0x84D1
75 #define GL_TEXTURE18 0x84D2
76 #define GL_TEXTURE19 0x84D3
77 #define GL_TEXTURE20 0x84D4
78 #define GL_TEXTURE21 0x84D5
79 #define GL_TEXTURE22 0x84D6
80 #define GL_TEXTURE23 0x84D7
81 #define GL_TEXTURE24 0x84D8
82 #define GL_TEXTURE25 0x84D9
83 #define GL_TEXTURE26 0x84DA
84 #define GL_TEXTURE27 0x84DB
85 #define GL_TEXTURE28 0x84DC
86 #define GL_TEXTURE29 0x84DD
87 #define GL_TEXTURE30 0x84DE
88 #define GL_TEXTURE31 0x84DF
89 #define GL_ACTIVE_TEXTURE 0x84E0
90 #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
91 #define GL_SAMPLE_COVERAGE 0x80A0
92 #define GL_SAMPLE_BUFFERS 0x80A8
93 #define GL_SAMPLES 0x80A9
94 #define GL_SAMPLE_COVERAGE_VALUE 0x80AA
95 #define GL_SAMPLE_COVERAGE_INVERT 0x80AB
96 #define GL_TEXTURE_CUBE_MAP 0x8513
97 #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
98 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
99 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
100 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
101 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
102 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
103 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
104 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
105 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
106 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
107 
108 typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
109 typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
110 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
111 typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
112 
115 void glCompressedTexImage2D_oda_ (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
116 void glCompressedTexSubImage2D_oda_ (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
117 
118 #define glActiveTexture glActiveTexture_oda_
119 #define glSampleCoverage glSampleCoverage_oda_
120 #define glCompressedTexImage2D glCompressedTexImage2D_oda_
121 #define glCompressedTexSubImage2D glCompressedTexSubImage2D_oda_
122 
123 #endif /* GL_VERSION_1_3 */
124 
125 #ifndef GL_VERSION_1_4
126 #define GL_VERSION_1_4 1
127 #define GL_VERSION_1_4_GLES2 1
128 
129 #define GL_BLEND_DST_RGB 0x80C8
130 #define GL_BLEND_SRC_RGB 0x80C9
131 #define GL_BLEND_DST_ALPHA 0x80CA
132 #define GL_BLEND_SRC_ALPHA 0x80CB
133 #define GL_DEPTH_COMPONENT16 0x81A5
134 #define GL_MIRRORED_REPEAT 0x8370
135 #define GL_INCR_WRAP 0x8507
136 #define GL_DECR_WRAP 0x8508
137 #define GL_GENERATE_MIPMAP_HINT 0x8192
138 #define GL_FUNC_ADD 0x8006
139 #define GL_FUNC_SUBTRACT 0x800A
140 #define GL_FUNC_REVERSE_SUBTRACT 0x800B
141 #define GL_CONSTANT_COLOR 0x8001
142 #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
143 #define GL_CONSTANT_ALPHA 0x8003
144 #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
145 
146 typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
147 typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
148 typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
149 
151 void glBlendColor_oda_ (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
153 
154 #define glBlendFuncSeparate glBlendFuncSeparate_oda_
155 #define glBlendColor glBlendColor_oda_
156 #define glBlendEquation glBlendEquation_oda_
157 
158 #endif /* GL_VERSION_1_4 */
159 
160 #ifndef GL_VERSION_1_5
161 #define GL_VERSION_1_5 1
162 #define GL_VERSION_1_5_GLES2 1
163 
164 #include <stddef.h>
165 typedef ptrdiff_t GLsizeiptr;
166 typedef ptrdiff_t GLintptr;
167 #define GL_BUFFER_SIZE 0x8764
168 #define GL_BUFFER_USAGE 0x8765
169 #define GL_ARRAY_BUFFER 0x8892
170 #define GL_ELEMENT_ARRAY_BUFFER 0x8893
171 #define GL_ARRAY_BUFFER_BINDING 0x8894
172 #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
173 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
174 #define GL_STREAM_DRAW 0x88E0
175 #define GL_STATIC_DRAW 0x88E4
176 #define GL_DYNAMIC_DRAW 0x88E8
177 
178 typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
179 typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
180 typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
181 typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
182 typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
183 typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
184 typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
185 
187 void glDeleteBuffers_oda_ (GLsizei n, const GLuint *buffers);
188 void glGenBuffers_oda_ (GLsizei n, GLuint *buffers);
190 void glBufferData_oda_ (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
193 
194 #define glBindBuffer glBindBuffer_oda_
195 #define glDeleteBuffers glDeleteBuffers_oda_
196 #define glGenBuffers glGenBuffers_oda_
197 #define glIsBuffer glIsBuffer_oda_
198 #define glBufferData glBufferData_oda_
199 #define glBufferSubData glBufferSubData_oda_
200 #define glGetBufferParameteriv glGetBufferParameteriv_oda_
201 #endif /* GL_VERSION_1_5 */
202 
203 #ifndef GL_VERSION_2_0
204 #define GL_VERSION_2_0 1
205 #define GL_VERSION_2_0_GLES2 1
206 
207 typedef char GLchar;
208 #define GL_BLEND_EQUATION_RGB 0x8009
209 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
210 #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
211 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
212 #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
213 #define GL_CURRENT_VERTEX_ATTRIB 0x8626
214 #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
215 #define GL_STENCIL_BACK_FUNC 0x8800
216 #define GL_STENCIL_BACK_FAIL 0x8801
217 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
218 #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
219 #define GL_BLEND_EQUATION_ALPHA 0x883D
220 #define GL_MAX_VERTEX_ATTRIBS 0x8869
221 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
222 #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
223 #define GL_FRAGMENT_SHADER 0x8B30
224 #define GL_VERTEX_SHADER 0x8B31
225 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
226 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
227 #define GL_SHADER_TYPE 0x8B4F
228 #define GL_FLOAT_VEC2 0x8B50
229 #define GL_FLOAT_VEC3 0x8B51
230 #define GL_FLOAT_VEC4 0x8B52
231 #define GL_INT_VEC2 0x8B53
232 #define GL_INT_VEC3 0x8B54
233 #define GL_INT_VEC4 0x8B55
234 #define GL_BOOL 0x8B56
235 #define GL_BOOL_VEC2 0x8B57
236 #define GL_BOOL_VEC3 0x8B58
237 #define GL_BOOL_VEC4 0x8B59
238 #define GL_FLOAT_MAT2 0x8B5A
239 #define GL_FLOAT_MAT3 0x8B5B
240 #define GL_FLOAT_MAT4 0x8B5C
241 #define GL_SAMPLER_2D 0x8B5E
242 #define GL_SAMPLER_CUBE 0x8B60
243 #define GL_DELETE_STATUS 0x8B80
244 #define GL_COMPILE_STATUS 0x8B81
245 #define GL_LINK_STATUS 0x8B82
246 #define GL_VALIDATE_STATUS 0x8B83
247 #define GL_INFO_LOG_LENGTH 0x8B84
248 #define GL_ATTACHED_SHADERS 0x8B85
249 #define GL_ACTIVE_UNIFORMS 0x8B86
250 #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
251 #define GL_SHADER_SOURCE_LENGTH 0x8B88
252 #define GL_ACTIVE_ATTRIBUTES 0x8B89
253 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
254 #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
255 #define GL_CURRENT_PROGRAM 0x8B8D
256 #define GL_STENCIL_BACK_REF 0x8CA3
257 #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
258 #define GL_STENCIL_BACK_WRITEMASK 0x8CA5
259 
260 typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
261 typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
262 typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
263 typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
264 typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
265 typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
266 typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
267 typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
268 typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
269 typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
270 typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
271 typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
272 typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
273 typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
274 typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
275 typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
276 typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
277 typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
278 typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
279 typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
280 typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
281 typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
282 typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
283 typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
284 typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
285 typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
286 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
287 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
288 typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer);
289 typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
290 typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
291 typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
292 typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
293 typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
294 typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
295 typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
296 typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
297 typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
298 typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
299 typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
300 typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
301 typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
302 typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
303 typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
304 typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
305 typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
306 typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
307 typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
308 typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
309 typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
310 typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
311 typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
312 typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
313 typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
314 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
315 typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
316 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
317 typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
318 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
319 typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
320 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
321 typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
322 typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
323 
340 void glGetAttachedShaders_oda_ (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
343 void glGetProgramInfoLog_oda_ (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
348 void glGetUniformfv_oda_ (GLuint program, GLint location, GLfloat *params);
355 void glLinkProgram_oda_ (GLuint program);
356 void glShaderSource_oda_ (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
357 void glUseProgram_oda_ (GLuint program);
359 void glUniform2f_oda_ (GLint location, GLfloat v0, GLfloat v1);
360 void glUniform3f_oda_ (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
361 void glUniform4f_oda_ (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
366 void glUniform1fv_oda_ (GLint location, GLsizei count, const GLfloat *value);
367 void glUniform2fv_oda_ (GLint location, GLsizei count, const GLfloat *value);
368 void glUniform3fv_oda_ (GLint location, GLsizei count, const GLfloat *value);
369 void glUniform4fv_oda_ (GLint location, GLsizei count, const GLfloat *value);
379 void glVertexAttrib1fv_oda_ (GLuint index, const GLfloat *v);
380 void glVertexAttrib2f_oda_ (GLuint index, GLfloat x, GLfloat y);
381 void glVertexAttrib2fv_oda_ (GLuint index, const GLfloat *v);
382 void glVertexAttrib3f_oda_ (GLuint index, GLfloat x, GLfloat y, GLfloat z);
383 void glVertexAttrib3fv_oda_ (GLuint index, const GLfloat *v);
384 void glVertexAttrib4f_oda_ (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
385 void glVertexAttrib4fv_oda_ (GLuint index, const GLfloat *v);
387 
388 #define glBlendEquationSeparate glBlendEquationSeparate_oda_
389 #define glStencilOpSeparate glStencilOpSeparate_oda_
390 #define glStencilFuncSeparate glStencilFuncSeparate_oda_
391 #define glStencilMaskSeparate glStencilMaskSeparate_oda_
392 #define glAttachShader glAttachShader_oda_
393 #define glBindAttribLocation glBindAttribLocation_oda_
394 #define glCompileShader glCompileShader_oda_
395 #define glCreateProgram glCreateProgram_oda_
396 #define glCreateShader glCreateShader_oda_
397 #define glDeleteProgram glDeleteProgram_oda_
398 #define glDeleteShader glDeleteShader_oda_
399 #define glDetachShader glDetachShader_oda_
400 #define glDisableVertexAttribArray glDisableVertexAttribArray_oda_
401 #define glEnableVertexAttribArray glEnableVertexAttribArray_oda_
402 #define glGetActiveAttrib glGetActiveAttrib_oda_
403 #define glGetActiveUniform glGetActiveUniform_oda_
404 #define glGetAttachedShaders glGetAttachedShaders_oda_
405 #define glGetAttribLocation glGetAttribLocation_oda_
406 #define glGetProgramiv glGetProgramiv_oda_
407 #define glGetProgramInfoLog glGetProgramInfoLog_oda_
408 #define glGetShaderiv glGetShaderiv_oda_
409 #define glGetShaderInfoLog glGetShaderInfoLog_oda_
410 #define glGetShaderSource glGetShaderSource_oda_
411 #define glGetUniformLocation glGetUniformLocation_oda_
412 #define glGetUniformfv glGetUniformfv_oda_
413 #define glGetUniformiv glGetUniformiv_oda_
414 #define glGetVertexAttribfv glGetVertexAttribfv_oda_
415 #define glGetVertexAttribiv glGetVertexAttribiv_oda_
416 #define glGetVertexAttribPointerv glGetVertexAttribPointerv_oda_
417 #define glIsProgram glIsProgram_oda_
418 #define glIsShader glIsShader_oda_
419 #define glLinkProgram glLinkProgram_oda_
420 #define glShaderSource glShaderSource_oda_
421 #define glUseProgram glUseProgram_oda_
422 #define glUniform1f glUniform1f_oda_
423 #define glUniform2f glUniform2f_oda_
424 #define glUniform3f glUniform3f_oda_
425 #define glUniform4f glUniform4f_oda_
426 #define glUniform1i glUniform1i_oda_
427 #define glUniform2i glUniform2i_oda_
428 #define glUniform3i glUniform3i_oda_
429 #define glUniform4i glUniform4i_oda_
430 #define glUniform1fv glUniform1fv_oda_
431 #define glUniform2fv glUniform2fv_oda_
432 #define glUniform3fv glUniform3fv_oda_
433 #define glUniform4fv glUniform4fv_oda_
434 #define glUniform1iv glUniform1iv_oda_
435 #define glUniform2iv glUniform2iv_oda_
436 #define glUniform3iv glUniform3iv_oda_
437 #define glUniform4iv glUniform4iv_oda_
438 #define glUniformMatrix2fv glUniformMatrix2fv_oda_
439 #define glUniformMatrix3fv glUniformMatrix3fv_oda_
440 #define glUniformMatrix4fv glUniformMatrix4fv_oda_
441 #define glValidateProgram glValidateProgram_oda_
442 #define glVertexAttrib1f glVertexAttrib1f_oda_
443 #define glVertexAttrib1fv glVertexAttrib1fv_oda_
444 #define glVertexAttrib2f glVertexAttrib2f_oda_
445 #define glVertexAttrib2fv glVertexAttrib2fv_oda_
446 #define glVertexAttrib3f glVertexAttrib3f_oda_
447 #define glVertexAttrib3fv glVertexAttrib3fv_oda_
448 #define glVertexAttrib4f glVertexAttrib4f_oda_
449 #define glVertexAttrib4fv glVertexAttrib4fv_oda_
450 #define glVertexAttribPointer glVertexAttribPointer_oda_
451 
452 #endif /* GL_VERSION_2_0 */
453 
454 #ifdef __cplusplus
455 extern "C" {
456 #endif
457 
458 #ifndef GL_VERSION_3_0
459 #define GL_VERSION_3_0 1
460 #define GL_VERSION_3_0_GLES2 1
461 
462 #define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
463 #define GL_MAX_RENDERBUFFER_SIZE 0x84E8
464 #define GL_FRAMEBUFFER_BINDING 0x8CA6
465 #define GL_RENDERBUFFER_BINDING 0x8CA7
466 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
467 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
468 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
469 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
470 #define GL_FRAMEBUFFER_COMPLETE 0x8CD5
471 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
472 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
473 #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
474 #define GL_COLOR_ATTACHMENT0 0x8CE0
475 #define GL_DEPTH_ATTACHMENT 0x8D00
476 #define GL_STENCIL_ATTACHMENT 0x8D20
477 #define GL_FRAMEBUFFER 0x8D40
478 #define GL_RENDERBUFFER 0x8D41
479 #define GL_RENDERBUFFER_WIDTH 0x8D42
480 #define GL_RENDERBUFFER_HEIGHT 0x8D43
481 #define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
482 #define GL_STENCIL_INDEX8 0x8D48
483 #define GL_RENDERBUFFER_RED_SIZE 0x8D50
484 #define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
485 #define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
486 #define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
487 #define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
488 #define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
489 
490 typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
491 typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
492 typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
493 typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
494 typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
495 typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
496 typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
497 typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
498 typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
499 typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
500 typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
501 typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
502 typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
503 typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
504 typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
505 
521 
522 #define glIsRenderbuffer glIsRenderbuffer_oda_
523 #define glBindRenderbuffer glBindRenderbuffer_oda_
524 #define glDeleteRenderbuffers glDeleteRenderbuffers_oda_
525 #define glGenRenderbuffers glGenRenderbuffers_oda_
526 #define glRenderbufferStorage glRenderbufferStorage_oda_
527 #define glGetRenderbufferParameteriv glGetRenderbufferParameteriv_oda_
528 #define glIsFramebuffer glIsFramebuffer_oda_
529 #define glBindFramebuffer glBindFramebuffer_oda_
530 #define glDeleteFramebuffers glDeleteFramebuffers_oda_
531 #define glGenFramebuffers glGenFramebuffers_oda_
532 #define glCheckFramebufferStatus glCheckFramebufferStatus_oda_
533 #define glFramebufferTexture2D glFramebufferTexture2D_oda_
534 #define glFramebufferRenderbuffer glFramebufferRenderbuffer_oda_
535 #define glGetFramebufferAttachmentParameteriv glGetFramebufferAttachmentParameteriv_oda_
536 #define glGenerateMipmap glGenerateMipmap_oda_
537 
538 #endif /* GL_VERSION_3_0 */
539 
540 #ifndef GL_VERSION_4_1
541 #define GL_VERSION_4_1 1
542 #define GL_VERSION_4_1_GLES2 1
543 
544 #define GL_FIXED 0x140C
545 #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
546 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
547 #define GL_LOW_FLOAT 0x8DF0
548 #define GL_MEDIUM_FLOAT 0x8DF1
549 #define GL_HIGH_FLOAT 0x8DF2
550 #define GL_LOW_INT 0x8DF3
551 #define GL_MEDIUM_INT 0x8DF4
552 #define GL_HIGH_INT 0x8DF5
553 #define GL_SHADER_COMPILER 0x8DFA
554 #define GL_SHADER_BINARY_FORMATS 0x8DF8
555 #define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
556 #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
557 #define GL_MAX_VARYING_VECTORS 0x8DFC
558 #define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
559 #define GL_RGB565 0x8D62
560 
561 typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
562 typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
563 typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
564 typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
565 typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
566 
568 void glShaderBinary_oda_ (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length);
570 void glDepthRangef_oda_ (GLfloat n, GLfloat f);
571 void glClearDepthf_oda_ (GLfloat d);
572 
573 #define glReleaseShaderCompiler glReleaseShaderCompiler_oda_
574 #define glShaderBinary glShaderBinary_oda_
575 #define glGetShaderPrecisionFormat glGetShaderPrecisionFormat_oda_
576 #define glDepthRangef glDepthRangef_oda_
577 #define glClearDepthf glClearDepthf_oda_
578 
579 #endif /* GL_VERSION_4_1 */
580 #ifdef __cplusplus
581 }
582 #endif
583 // GL_EXT_blend_color
584 #ifndef GL_BLEND_COLOR
585 #define GL_BLEND_COLOR 0x8005
586 #endif
587 
588 // ???
589 #ifndef GL_BLEND_EQUATION
590 #define GL_BLEND_EQUATION 0x8009
591 #endif
592 
593 // ???
594 #ifndef GL_INVERT
595 #define GL_INVERT 0x150A
596 #endif
597 
598 // GL_EXT_texture
599 #ifndef GL_RGBA4
600 #define GL_RGBA4 0x8056
601 #endif
602 #ifndef GL_RGB5_A1
603 #define GL_RGB5_A1 0x8057
604 #endif
605 
606 // ???
607 #ifndef GL_STENCIL_INDEX
608 #define GL_STENCIL_INDEX 0x1901
609 #endif
610 
611 // ???
612 #ifndef GL_NONE
613 #define GL_NONE 0
614 #endif
615 
616 // GL_EXT_framebuffer_object
617 #ifndef GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS
618 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9
619 #endif
620 
621 // Extensions registry:
622 // To be sure that ES2 compatible:
623 // GL_ARB_ES2_compatibility
624 // To be sure that fragment and vertex programs supported:
625 // GL_ARB_fragment_program, GL_ARB_vertex_program
626 // To be sure that shaders supported:
627 // GL_ARB_vertex_shader, GL_ARB_fragment_shader, GL_ARB_shader_objects
628 // To be sure that buffers supported:
629 // GL_ARB_vertex_buffer_object
630 // To be sure that framebuffers supported:
631 // GL_ARB_framebuffer_object (GL_EXT_framebuffer_object)
632 // To be sure that glSampleCoverage supported:
633 // GL_ARB_multisample
634 // To be sure that glActiveTexture supported:
635 // GL_ARB_multitexture
636 // To be sure that compressed textures supported:
637 // GL_ARB_texture_compression
638 // To be sure that cube maps supported:
639 // GL_ARB_texture_cube_map (GL_EXT_texture_cube_map)
640 // To be sure that texture environment add works:
641 // GL_ARB_texture_env_add (GL_EXT_texture_env_add)
642 // To be sure that texture mirror works:
643 // GL_ARB_texture_mirrored_repeat
644 // To be sure that edge clamp mode works:
645 // GL_EXT_texture_edge_clamp
646 // To be sure that glBlendColor and others present:
647 // GL_EXT_blend_color, GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate, GL_EXT_blend_subtract
648 // Separate stencil buffer support:
649 // GL_ATI_separate_stencil
650 
651 // Interface extensions
652 
653 void *GLES2_GetProcAddress(const char *pFuncName);
654 
655 bool GLES2_ParseExtension(const char *pExtName, const char *pExtensions);
656 
659 int GLES2_IsVersionGEQ(int majorVersion, int minorVersion);
660 
661 class OdTrVisRenderClient;
662 bool GLES2_Extensions_Initialize(OdTrVisRenderClient *pCtx, bool bThrowException = true);
663 
664 #ifndef GL_ES_VERSION_2_0
665 #define GL_ES_VERSION_2_0 1
666 #endif
667 
668 
669 
670 #endif // ODGLES2EXT
void glUniform1i_oda_(GLint location, GLint v0)
GLfloat GLfloat v1
Definition: gles2_ext.h:295
ptrdiff_t GLintptr
Definition: gles2_ext.h:166
GLenum GLenum GLenum dfactorAlpha
Definition: gles2_ext.h:146
GLuint renderbuffer
Definition: gles2_ext.h:491
GLenum GLint ref
Definition: gles2_ext.h:262
GLenum modeAlpha
Definition: gles2_ext.h:260
GLfloat GLfloat GLfloat alpha
Definition: gles2_ext.h:147
void glUniform2fv_oda_(GLint location, GLsizei count, const GLfloat *value)
void glVertexAttrib4fv_oda_(GLuint index, const GLfloat *v)
GLuint GLsizei bufSize
Definition: gles2_ext.h:274
void glValidateProgram_oda_(GLuint program)
void glGetProgramiv_oda_(GLuint program, GLenum pname, GLint *params)
void glUniform3fv_oda_(GLint location, GLsizei count, const GLfloat *value)
GLenum GLint * params
Definition: gles2_ext.h:184
void glDeleteRenderbuffers_oda_(GLsizei n, const GLuint *renderbuffers)
GLfloat f
Definition: gles2_ext.h:564
GLenum void ** pointer
Definition: gles2_ext.h:288
GLfloat GLfloat GLfloat z
Definition: gles2_ext.h:318
void glFramebufferTexture2D_oda_(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
GLenum GLenum sfactorAlpha
Definition: gles2_ext.h:146
void glGetUniformfv_oda_(GLuint program, GLint location, GLfloat *params)
GLenum func
Definition: gles2_ext.h:262
void glGenRenderbuffers_oda_(GLsizei n, GLuint *renderbuffers)
GLfloat GLfloat GLfloat v2
Definition: gles2_ext.h:296
void glBlendEquationSeparate_oda_(GLenum modeRGB, GLenum modeAlpha)
void glUniform1iv_oda_(GLint location, GLsizei count, const GLint *value)
void glUniform1f_oda_(GLint location, GLfloat v0)
GLint level
Definition: gles2_ext.h:110
void glBlendFuncSeparate_oda_(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
GLuint glCreateProgram_oda_(void)
GLuint glCreateShader_oda_(GLenum type)
GLint glGetUniformLocation_oda_(GLuint program, const GLchar *name)
GLfloat GLfloat GLfloat GLfloat w
Definition: gles2_ext.h:320
typedef GLuint(APIENTRYP PFNGLCREATEPROGRAMPROC)(void)
void glUniformMatrix4fv_oda_(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
GLboolean glIsFramebuffer_oda_(GLuint framebuffer)
int GLES2_GetMinorVersion()
void glUniform4fv_oda_(GLint location, GLsizei count, const GLfloat *value)
GLuint buffer
Definition: gles2_ext.h:178
void glBufferData_oda_(GLenum target, GLsizeiptr size, const void *data, GLenum usage)
GLboolean glIsShader_oda_(GLuint shader)
const GLuint GLenum const void * binary
Definition: gles2_ext.h:562
GLint glGetAttribLocation_oda_(GLuint program, const GLchar *name)
void glBindBuffer_oda_(GLenum target, GLuint buffer)
void glGetShaderInfoLog_oda_(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
void * GLES2_GetProcAddress(const char *pFuncName)
GLint GLenum GLsizei width
Definition: gles2_ext.h:110
GLsizeiptr size
Definition: gles2_ext.h:182
void glVertexAttrib2fv_oda_(GLuint index, const GLfloat *v)
void glGenFramebuffers_oda_(GLsizei n, GLuint *framebuffers)
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
void glShaderSource_oda_(GLuint shader, GLsizei count, const GLchar *const *string, const GLint *length)
void glVertexAttrib4f_oda_(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
GLenum precisiontype
Definition: gles2_ext.h:563
void glDeleteProgram_oda_(GLuint program)
void glSampleCoverage_oda_(GLfloat value, GLboolean invert)
int GLES2_IsVersionGEQ(int majorVersion, int minorVersion)
void glShaderBinary_oda_(GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length)
typedef GLenum(APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC)(GLenum target)
void glGetShaderPrecisionFormat_oda_(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
GLint GLenum GLsizei GLsizei GLint GLsizei const void * data
Definition: gles2_ext.h:110
GLuint shader
Definition: gles2_ext.h:264
GLuint index
Definition: gles2_ext.h:265
GLenum GLint GLuint mask
Definition: gles2_ext.h:262
void glVertexAttrib3f_oda_(GLuint index, GLfloat x, GLfloat y, GLfloat z)
void glGenerateMipmap_oda_(GLenum target)
void glUniform3i_oda_(GLint location, GLint v0, GLint v1, GLint v2)
GLuint const GLchar * name
Definition: gles2_ext.h:265
void glGenBuffers_oda_(GLsizei n, GLuint *buffers)
GLenum sfail
Definition: gles2_ext.h:261
void glEnableVertexAttribArray_oda_(GLuint index)
GLsizei GLsizei * count
Definition: gles2_ext.h:276
void glVertexAttribPointer_oda_(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer)
const GLfloat * v
Definition: gles2_ext.h:315
void glUniform3f_oda_(GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
GLint location
Definition: gles2_ext.h:284
void glGetShaderSource_oda_(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source)
GLsizei GLsizei GLchar * source
Definition: gles2_ext.h:282
bool GLES2_Extensions_Initialize(OdTrVisRenderClient *pCtx, bool bThrowException=true)
void glGetVertexAttribiv_oda_(GLuint index, GLenum pname, GLint *params)
GLsizei maxCount
Definition: gles2_ext.h:276
GLint GLint GLint yoffset
Definition: gles2_ext.h:111
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
void glGetActiveAttrib_oda_(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
void glVertexAttrib1fv_oda_(GLuint index, const GLfloat *v)
void glUniformMatrix2fv_oda_(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
void glStencilOpSeparate_oda_(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
const GLuint GLenum binaryformat
Definition: gles2_ext.h:562
void glCompressedTexSubImage2D_oda_(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
const GLuint * framebuffers
Definition: gles2_ext.h:498
void glUniform3iv_oda_(GLint location, GLsizei count, const GLint *value)
GLenum GLenum GLuint texture
Definition: gles2_ext.h:501
GLfloat v0
Definition: gles2_ext.h:294
void glGetRenderbufferParameteriv_oda_(GLenum target, GLenum pname, GLint *params)
GLint GLenum GLboolean normalized
Definition: gles2_ext.h:322
void glCompressedTexImage2D_oda_(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data)
void glBlendColor_oda_(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
typedef GLboolean(APIENTRYP PFNGLISBUFFERPROC)(GLuint buffer)
GLuint framebuffer
Definition: gles2_ext.h:497
GLsizei GLsizei GLuint * shaders
Definition: gles2_ext.h:276
void glUniform2f_oda_(GLint location, GLfloat v0, GLfloat v1)
void glDeleteShader_oda_(GLuint shader)
const GLuint * renderbuffers
Definition: gles2_ext.h:492
void glCompileShader_oda_(GLuint shader)
GLfloat GLfloat GLfloat GLfloat v3
Definition: gles2_ext.h:297
void glUniformMatrix3fv_oda_(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
GLuint GLsizei GLsizei * length
Definition: gles2_ext.h:274
void glDepthRangef_oda_(GLfloat n, GLfloat f)
GLenum GLenum textarget
Definition: gles2_ext.h:501
void glUniform4iv_oda_(GLint location, GLsizei count, const GLint *value)
ptrdiff_t GLsizeiptr
Definition: gles2_ext.h:165
void glGetBufferParameteriv_oda_(GLenum target, GLenum pname, GLint *params)
void glVertexAttrib2f_oda_(GLuint index, GLfloat x, GLfloat y)
void glUniform2i_oda_(GLint location, GLint v0, GLint v1)
bool GLES2_ParseExtension(const char *pExtName, const char *pExtensions)
void glAttachShader_oda_(GLuint program, GLuint shader)
void glUniform4i_oda_(GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
void glDeleteBuffers_oda_(GLsizei n, const GLuint *buffers)
void glUniform1fv_oda_(GLint location, GLsizei count, const GLfloat *value)
typedef GLint(APIENTRYP PFNGLGETATTRIBLOCATIONPROC)(GLuint program
GLboolean glIsRenderbuffer_oda_(GLuint renderbuffer)
void glGetShaderiv_oda_(GLuint shader, GLenum pname, GLint *params)
void glLinkProgram_oda_(GLuint program)
void glGetAttachedShaders_oda_(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders)
void glBindFramebuffer_oda_(GLenum target, GLuint framebuffer)
void glFramebufferRenderbuffer_oda_(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
void glDisableVertexAttribArray_oda_(GLuint index)
void glUniform2iv_oda_(GLint location, GLsizei count, const GLint *value)
GLfloat GLfloat blue
Definition: gles2_ext.h:147
void glBlendEquation_oda_(GLenum mode)
void glGetProgramInfoLog_oda_(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
GLint GLint GLint GLsizei GLsizei GLenum format
Definition: gles2_ext.h:111
void glStencilFuncSeparate_oda_(GLenum face, GLenum func, GLint ref, GLuint mask)
GLint GLenum internalformat
Definition: gles2_ext.h:110
GLint GLenum GLsizei GLsizei GLint border
Definition: gles2_ext.h:110
GLenum pname
Definition: gles2_ext.h:184
void glBindAttribLocation_oda_(GLuint program, GLuint index, const GLchar *name)
GLsizei GLboolean transpose
Definition: gles2_ext.h:310
GLsizei GLsizei GLchar * infoLog
Definition: gles2_ext.h:279
GLfloat x
Definition: gles2_ext.h:314
GLboolean glIsBuffer_oda_(GLuint buffer)
void glDeleteFramebuffers_oda_(GLsizei n, const GLuint *framebuffers)
GLint GLint xoffset
Definition: gles2_ext.h:111
void glGetActiveUniform_oda_(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
GLenum GLenum GLenum dppass
Definition: gles2_ext.h:261
void glBufferSubData_oda_(GLenum target, GLintptr offset, GLsizeiptr size, const void *data)
void glRenderbufferStorage_oda_(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
GLsizei const GLchar *const * string
Definition: gles2_ext.h:292
GLint GLenum GLsizei GLsizei GLint GLsizei imageSize
Definition: gles2_ext.h:110
void glGetUniformiv_oda_(GLuint program, GLint location, GLint *params)
GLenum GLint * range
Definition: gles2_ext.h:563
void glClearDepthf_oda_(GLfloat d)
const GLuint * buffers
Definition: gles2_ext.h:179
GLenum glCheckFramebufferStatus_oda_(GLenum target)
GLenum dfactorRGB
Definition: gles2_ext.h:146
void glGetVertexAttribfv_oda_(GLuint index, GLenum pname, GLfloat *params)
GLenum GLenum renderbuffertarget
Definition: gles2_ext.h:502
void glBindRenderbuffer_oda_(GLenum target, GLuint renderbuffer)
void glGetVertexAttribPointerv_oda_(GLuint index, GLenum pname, void **pointer)
GLenum attachment
Definition: gles2_ext.h:501
GLint GLenum GLboolean GLsizei stride
Definition: gles2_ext.h:322
void glUniform4f_oda_(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
void glVertexAttrib3fv_oda_(GLuint index, const GLfloat *v)
GLintptr offset
Definition: gles2_ext.h:183
GLenum GLint GLint * precision
Definition: gles2_ext.h:563
void glUseProgram_oda_(GLuint program)
void glGetFramebufferAttachmentParameteriv_oda_(GLenum target, GLenum attachment, GLenum pname, GLint *params)
GLboolean glIsProgram_oda_(GLuint program)
void glActiveTexture_oda_(GLenum texture)
GLint GLenum GLsizei GLsizei height
Definition: gles2_ext.h:110
#define APIENTRYP
Definition: gles2_ext.h:37
GLfloat green
Definition: gles2_ext.h:147
void glVertexAttrib1f_oda_(GLuint index, GLfloat x)
GLfloat GLfloat y
Definition: gles2_ext.h:316
void glReleaseShaderCompiler_oda_(void)
void glDetachShader_oda_(GLuint program, GLuint shader)
GLsizei const GLfloat * value
Definition: gles2_ext.h:302
char GLchar
Definition: gles2_ext.h:207
int GLES2_GetMajorVersion()
GLenum GLenum dpfail
Definition: gles2_ext.h:261
GLsizeiptr const void GLenum usage
Definition: gles2_ext.h:182
GLboolean invert
Definition: gles2_ext.h:109
void glStencilMaskSeparate_oda_(GLenum face, GLuint mask)