show OverlayRegion when FormActivated
[platform/framework/native/uifw.git] / inc / glext.h
1 #ifndef __glext_h_
2 #define __glext_h_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
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/ .
11  */
12
13 #ifndef GL_APIENTRYP
14 #define GL_APIENTRYP GL_APIENTRY *
15 #endif
16
17 #define GL_GLEXT_PROTOTYPES
18
19 /*------------------------------------------------------------------------*
20  * OES extension tokens
21  *------------------------------------------------------------------------*/
22
23 /* GL_OES_blend_equation_separate */
24 #ifndef GL_OES_blend_equation_separate
25 /* BLEND_EQUATION_RGB_OES same as BLEND_EQUATION_OES */
26 #define GL_BLEND_EQUATION_RGB_OES                               0x8009
27 #define GL_BLEND_EQUATION_ALPHA_OES                             0x883D
28 #endif
29
30 /* GL_OES_blend_func_separate */
31 #ifndef GL_OES_blend_func_separate
32 #define GL_BLEND_DST_RGB_OES                                    0x80C8
33 #define GL_BLEND_SRC_RGB_OES                                    0x80C9
34 #define GL_BLEND_DST_ALPHA_OES                                  0x80CA
35 #define GL_BLEND_SRC_ALPHA_OES                                  0x80CB
36 #endif
37
38 /* GL_OES_blend_subtract */
39 #ifndef GL_OES_blend_subtract
40 #define GL_BLEND_EQUATION_OES                                   0x8009
41 #define GL_FUNC_ADD_OES                                         0x8006
42 #define GL_FUNC_SUBTRACT_OES                                    0x800A
43 #define GL_FUNC_REVERSE_SUBTRACT_OES                            0x800B
44 #endif
45
46 /* GL_OES_compressed_ETC1_RGB8_texture */
47 #ifndef GL_OES_compressed_ETC1_RGB8_texture
48 #define GL_ETC1_RGB8_OES                                        0x8D64
49 #endif
50
51 /* GL_OES_depth24 */
52 #ifndef GL_OES_depth24
53 #define GL_DEPTH_COMPONENT24_OES                                0x81A6
54 #endif
55
56 /* GL_OES_depth32 */
57 #ifndef GL_OES_depth32
58 #define GL_DEPTH_COMPONENT32_OES                                0x81A7
59 #endif
60
61 /* GL_OES_draw_texture */
62 #ifndef GL_OES_draw_texture
63 #define GL_TEXTURE_CROP_RECT_OES                                0x8B9D
64 #endif
65
66 /* GL_OES_EGL_image */
67 #ifndef GL_OES_EGL_image
68 typedef void* GLeglImageOES;
69 #endif
70
71 /* GL_OES_fixed_point */
72 #ifndef GL_OES_fixed_point
73 #define GL_FIXED_OES                                            0x140C
74 #endif
75
76 /* GL_OES_framebuffer_object */
77 #ifndef GL_OES_framebuffer_object
78 #define GL_NONE_OES                                             0
79 #define GL_FRAMEBUFFER_OES                                      0x8D40
80 #define GL_RENDERBUFFER_OES                                     0x8D41
81 #define GL_RGBA4_OES                                            0x8056
82 #define GL_RGB5_A1_OES                                          0x8057
83 #define GL_RGB565_OES                                           0x8D62
84 #define GL_DEPTH_COMPONENT16_OES                                0x81A5
85 #define GL_RENDERBUFFER_WIDTH_OES                               0x8D42
86 #define GL_RENDERBUFFER_HEIGHT_OES                              0x8D43
87 #define GL_RENDERBUFFER_INTERNAL_FORMAT_OES                     0x8D44
88 #define GL_RENDERBUFFER_RED_SIZE_OES                            0x8D50
89 #define GL_RENDERBUFFER_GREEN_SIZE_OES                          0x8D51
90 #define GL_RENDERBUFFER_BLUE_SIZE_OES                           0x8D52
91 #define GL_RENDERBUFFER_ALPHA_SIZE_OES                          0x8D53
92 #define GL_RENDERBUFFER_DEPTH_SIZE_OES                          0x8D54
93 #define GL_RENDERBUFFER_STENCIL_SIZE_OES                        0x8D55
94 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_OES               0x8CD0
95 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_OES               0x8CD1
96 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_OES             0x8CD2
97 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_OES     0x8CD3
98 #define GL_COLOR_ATTACHMENT0_OES                                0x8CE0
99 #define GL_DEPTH_ATTACHMENT_OES                                 0x8D00
100 #define GL_STENCIL_ATTACHMENT_OES                               0x8D20
101 #define GL_FRAMEBUFFER_COMPLETE_OES                             0x8CD5
102 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES                0x8CD6
103 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_OES        0x8CD7
104 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_OES                0x8CD9
105 #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_OES                   0x8CDA
106 #define GL_FRAMEBUFFER_UNSUPPORTED_OES                          0x8CDD
107 #define GL_FRAMEBUFFER_BINDING_OES                              0x8CA6
108 #define GL_RENDERBUFFER_BINDING_OES                             0x8CA7
109 #define GL_MAX_RENDERBUFFER_SIZE_OES                            0x84E8
110 #define GL_INVALID_FRAMEBUFFER_OPERATION_OES                    0x0506
111 #endif
112
113 /* GL_OES_mapbuffer */
114 #ifndef GL_OES_mapbuffer
115 #define GL_WRITE_ONLY_OES                                       0x88B9
116 #define GL_BUFFER_ACCESS_OES                                    0x88BB
117 #define GL_BUFFER_MAPPED_OES                                    0x88BC
118 #define GL_BUFFER_MAP_POINTER_OES                               0x88BD
119 #endif
120
121 /* GL_OES_matrix_get */
122 #ifndef GL_OES_matrix_get
123 #define GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES               0x898D
124 #define GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES              0x898E
125 #define GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES                 0x898F
126 #endif
127
128 /* GL_OES_matrix_palette */
129 #ifndef _WIN32 //  _WIN32
130 #ifndef GL_OES_matrix_palette
131 #define GL_MAX_VERTEX_UNITS_OES                                 0x86A4
132 #define GL_MAX_PALETTE_MATRICES_OES                             0x8842
133 #define GL_MATRIX_PALETTE_OES                                   0x8840
134 #define GL_MATRIX_INDEX_ARRAY_OES                               0x8844
135 #define GL_WEIGHT_ARRAY_OES                                     0x86AD
136 #define GL_CURRENT_PALETTE_MATRIX_OES                           0x8843
137 #define GL_MATRIX_INDEX_ARRAY_SIZE_OES                          0x8846
138 #define GL_MATRIX_INDEX_ARRAY_TYPE_OES                          0x8847
139 #define GL_MATRIX_INDEX_ARRAY_STRIDE_OES                        0x8848
140 #define GL_MATRIX_INDEX_ARRAY_POINTER_OES                       0x8849
141 #define GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES                0x8B9E
142 #define GL_WEIGHT_ARRAY_SIZE_OES                                0x86AB
143 #define GL_WEIGHT_ARRAY_TYPE_OES                                0x86A9
144 #define GL_WEIGHT_ARRAY_STRIDE_OES                              0x86AA
145 #define GL_WEIGHT_ARRAY_POINTER_OES                             0x86AC
146 #define GL_WEIGHT_ARRAY_BUFFER_BINDING_OES                      0x889E
147 #endif
148 #endif //_WIN32
149
150 /* GL_OES_packed_depth_stencil */
151 #ifndef GL_OES_packed_depth_stencil
152 #define GL_DEPTH_STENCIL_OES                                    0x84F9
153 #define GL_UNSIGNED_INT_24_8_OES                                0x84FA
154 #define GL_DEPTH24_STENCIL8_OES                                 0x88F0
155 #endif
156
157 /* GL_OES_rgb8_rgba8 */
158 #ifndef GL_OES_rgb8_rgba8
159 #define GL_RGB8_OES                                             0x8051
160 #define GL_RGBA8_OES                                            0x8058
161 #endif
162
163 /* GL_OES_stencil1 */
164 #ifndef GL_OES_stencil1
165 #define GL_STENCIL_INDEX1_OES                                   0x8D46
166 #endif
167
168 /* GL_OES_stencil4 */
169 #ifndef GL_OES_stencil4
170 #define GL_STENCIL_INDEX4_OES                                   0x8D47
171 #endif
172
173 /* GL_OES_stencil8 */
174 #ifndef GL_OES_stencil8
175 #define GL_STENCIL_INDEX8_OES                                   0x8D48
176 #endif
177
178 /* GL_OES_stencil_wrap */
179 #ifndef GL_OES_stencil_wrap
180 #define GL_INCR_WRAP_OES                                        0x8507
181 #define GL_DECR_WRAP_OES                                        0x8508
182 #endif
183
184 /* GL_OES_texture_cube_map */
185 #ifndef GL_OES_texture_cube_map
186 #define GL_NORMAL_MAP_OES                                       0x8511
187 #define GL_REFLECTION_MAP_OES                                   0x8512
188 #define GL_TEXTURE_CUBE_MAP_OES                                 0x8513
189 #define GL_TEXTURE_BINDING_CUBE_MAP_OES                         0x8514
190 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES                      0x8515
191 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES                      0x8516
192 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES                      0x8517
193 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES                      0x8518
194 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES                      0x8519
195 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES                      0x851A
196 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_OES                        0x851C
197 #define GL_TEXTURE_GEN_MODE_OES                                 0x2500
198 #define GL_TEXTURE_GEN_STR_OES                                  0x8D60
199 #endif
200
201 /* GL_OES_texture_mirrored_repeat */
202 #ifndef GL_OES_texture_mirrored_repeat
203 #define GL_MIRRORED_REPEAT_OES                                  0x8370
204 #endif
205
206 /*------------------------------------------------------------------------*
207  * AMD extension tokens
208  *------------------------------------------------------------------------*/
209
210 /* GL_AMD_compressed_3DC_texture */
211 #ifndef GL_AMD_compressed_3DC_texture
212 #define GL_3DC_X_AMD                                            0x87F9
213 #define GL_3DC_XY_AMD                                           0x87FA
214 #endif
215
216 /* GL_AMD_compressed_ATC_texture */
217 #ifndef GL_AMD_compressed_ATC_texture
218 #define GL_ATC_RGB_AMD                                          0x8C92
219 #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD                          0x8C93
220 #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD                      0x87EE
221 #endif
222
223 /*------------------------------------------------------------------------*
224  * EXT extension tokens
225  *------------------------------------------------------------------------*/
226
227 /* GL_EXT_texture_filter_anisotropic */
228 #ifndef GL_EXT_texture_filter_anisotropic
229 #define GL_TEXTURE_MAX_ANISOTROPY_EXT                           0x84FE
230 #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT                       0x84FF
231 #endif
232
233 /* GL_EXT_texture_format_BGRA8888 */
234 #ifndef GL_EXT_texture_format_BGRA8888
235 #define GL_BGRA                                                 0x80E1
236 #endif
237
238 /*------------------------------------------------------------------------*
239  * IMG extension tokens
240  *------------------------------------------------------------------------*/
241
242 /* GL_IMG_read_format */
243 #ifndef GL_IMG_read_format
244 #define GL_BGRA                                                 0x80E1
245 #define GL_UNSIGNED_SHORT_4_4_4_4_REV                           0x8365
246 #define GL_UNSIGNED_SHORT_1_5_5_5_REV                           0x8366
247 #endif
248
249 /* GL_IMG_texture_compression_pvrtc */
250 #ifndef GL_IMG_texture_compression_pvrtc
251 #define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG                      0x8C00
252 #define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG                      0x8C01
253 #define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG                     0x8C02
254 #define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG                     0x8C03
255 #endif
256
257 /* GL_IMG_user_clip_plane */
258 #ifndef GL_IMG_user_clip_plane
259 #define GL_CLIP_PLANE0_IMG                                      0x3000
260 #define GL_CLIP_PLANE1_IMG                                      0x3001
261 #define GL_CLIP_PLANE2_IMG                                      0x3002
262 #define GL_CLIP_PLANE3_IMG                                      0x3003
263 #define GL_CLIP_PLANE4_IMG                                      0x3004
264 #define GL_CLIP_PLANE5_IMG                                      0x3005
265 #define GL_MAX_CLIP_PLANES_IMG                                  0x0D32
266 #endif
267
268 /* GL_IMG_texture_env_enhanced_fixed_function */
269 #ifndef GL_IMG_texture_env_enhanced_fixed_function
270 #define GL_MODULATE_COLOR_IMG                                   0x8C04
271 #define GL_RECIP_ADD_SIGNED_ALPHA_IMG                           0x8C05
272 #define GL_TEXTURE_ALPHA_MODULATE_IMG                           0x8C06
273 #define GL_FACTOR_ALPHA_MODULATE_IMG                            0x8C07
274 #define GL_FRAGMENT_ALPHA_MODULATE_IMG                          0x8C08
275 #define GL_ADD_BLEND_IMG                                        0x8C09
276 #define GL_DOT3_RGBA_IMG                                        0x86AF
277 #endif
278
279 /*------------------------------------------------------------------------*
280  * NV extension tokens
281  *------------------------------------------------------------------------*/
282
283 /* GL_NV_fence */
284 #ifndef GL_NV_fence
285 #define GL_ALL_COMPLETED_NV                                     0x84F2
286 #define GL_FENCE_STATUS_NV                                      0x84F3
287 #define GL_FENCE_CONDITION_NV                                   0x84F4
288 #endif
289
290 /*------------------------------------------------------------------------*
291  * QCOM extension tokens
292  *------------------------------------------------------------------------*/
293
294 /* GL_QCOM_driver_control */
295 /* No new tokens introduced by this extension. */
296
297 /* GL_QCOM_perfmon_global_mode */
298 #ifndef GL_QCOM_perfmon_global_mode
299 #define GL_PERFMON_GLOBAL_MODE_QCOM                             0x8FA0
300 #endif
301
302 /*------------------------------------------------------------------------*
303  * End of extension tokens, start of corresponding extension functions
304  *------------------------------------------------------------------------*/
305
306 /*------------------------------------------------------------------------*
307  * OES extension functions
308  *------------------------------------------------------------------------*/
309
310 /* GL_OES_blend_equation_separate */
311 #ifndef GL_OES_blend_equation_separate
312 #define GL_OES_blend_equation_separate 1
313 #if 0 // not supported
314 #ifdef GL_GLEXT_PROTOTYPES
315 GL_API void GL_APIENTRY glBlendEquationSeparateOES(GLenum modeRGB, GLenum modeAlpha);
316 #endif
317 #endif // not supported
318 typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEOESPROC)(GLenum modeRGB, GLenum modeAlpha);
319 #endif
320
321 /* GL_OES_blend_func_separate */
322 #ifndef GL_OES_blend_func_separate
323 #define GL_OES_blend_func_separate 1
324 #if 0 // not supported
325 #ifdef GL_GLEXT_PROTOTYPES
326 GL_API void GL_APIENTRY glBlendFuncSeparateOES(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
327 #endif
328 #endif // not supported
329 typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEOESPROC)(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
330 #endif
331
332 /* GL_OES_blend_subtract */
333 #ifndef GL_OES_blend_subtract
334 #define GL_OES_blend_subtract 1
335 #if 0 // not supported
336 #ifdef GL_GLEXT_PROTOTYPES
337 GL_API void GL_APIENTRY glBlendEquationOES(GLenum mode);
338 #endif
339 #endif // not supported
340 typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONOESPROC)(GLenum mode);
341 #endif
342
343 /* GL_OES_byte_coordinates */
344 #ifndef GL_OES_byte_coordinates
345 #define GL_OES_byte_coordinates 1
346 #endif
347
348 /* GL_OES_compressed_ETC1_RGB8_texture */
349 #ifndef GL_OES_compressed_ETC1_RGB8_texture
350 #define GL_OES_compressed_ETC1_RGB8_texture 1
351 #endif
352
353 /* GL_OES_depth24 */
354 #ifndef GL_OES_depth24
355 #define GL_OES_depth24 1
356 #endif
357
358 /* GL_OES_depth32 */
359 #ifndef GL_OES_depth32
360 #define GL_OES_depth32 1
361 #endif
362
363 /* GL_OES_draw_texture */
364 #ifndef GL_OES_draw_texture
365 #define GL_OES_draw_texture 1
366 #if 0 // not supported
367 #ifdef GL_GLEXT_PROTOTYPES
368 GL_API void GL_APIENTRY glDrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
369 GL_API void GL_APIENTRY glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height);
370 GL_API void GL_APIENTRY glDrawTexxOES(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
371 GL_API void GL_APIENTRY glDrawTexsvOES(const GLshort* coords);
372 GL_API void GL_APIENTRY glDrawTexivOES(const GLint* coords);
373 GL_API void GL_APIENTRY glDrawTexxvOES(const GLfixed* coords);
374 GL_API void GL_APIENTRY glDrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
375 GL_API void GL_APIENTRY glDrawTexfvOES(const GLfloat* coords);
376 #endif
377 #endif // not supported
378 typedef void (GL_APIENTRYP PFNGLDRAWTEXSOESPROC)(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
379 typedef void (GL_APIENTRYP PFNGLDRAWTEXIOESPROC)(GLint x, GLint y, GLint z, GLint width, GLint height);
380 typedef void (GL_APIENTRYP PFNGLDRAWTEXXOESPROC)(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
381 typedef void (GL_APIENTRYP PFNGLDRAWTEXSVOESPROC)(const GLshort* coords);
382 typedef void (GL_APIENTRYP PFNGLDRAWTEXIVOESPROC)(const GLint* coords);
383 typedef void (GL_APIENTRYP PFNGLDRAWTEXXVOESPROC)(const GLfixed* coords);
384 typedef void (GL_APIENTRYP PFNGLDRAWTEXFOESPROC)(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
385 typedef void (GL_APIENTRYP PFNGLDRAWTEXFVOESPROC)(const GLfloat* coords);
386 #endif
387
388 /* GL_OES_EGL_image */
389 #ifndef GL_OES_EGL_image
390 #define GL_OES_EGL_image 1
391 #if 0 // not supported
392 #ifdef GL_GLEXT_PROTOTYPES
393 GL_API void GL_APIENTRY glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image);
394 GL_API void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image);
395 #endif
396 #endif // not supported
397 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC)(GLenum target, GLeglImageOES image);
398 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC)(GLenum target, GLeglImageOES image);
399 #endif
400
401 /* GL_OES_element_index_uint */
402 #ifndef GL_OES_element_index_uint
403 #define GL_OES_element_index_uint 1
404 #endif
405
406 /* GL_OES_extended_matrix_palette */
407 #ifndef GL_OES_extended_matrix_palette
408 #define GL_OES_extended_matrix_palette 1
409 #endif
410
411 /* GL_OES_fbo_render_mipmap */
412 #ifndef GL_OES_fbo_render_mipmap
413 #define GL_OES_fbo_render_mipmap 1
414 #endif
415
416 /* GL_OES_fixed_point */
417 #ifndef GL_OES_fixed_point
418 #define GL_OES_fixed_point 1
419 #if 0 // not supported
420 #ifdef GL_GLEXT_PROTOTYPES
421 GL_API void GL_APIENTRY glAlphaFuncxOES(GLenum func, GLclampx ref);
422 GL_API void GL_APIENTRY glClearColorxOES(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
423 GL_API void GL_APIENTRY glClearDepthxOES(GLclampx depth);
424 GL_API void GL_APIENTRY glClipPlanexOES(GLenum plane, const GLfixed* equation);
425 GL_API void GL_APIENTRY glColor4xOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
426 GL_API void GL_APIENTRY glDepthRangexOES(GLclampx zNear, GLclampx zFar);
427 GL_API void GL_APIENTRY glFogxOES(GLenum pname, GLfixed param);
428 GL_API void GL_APIENTRY glFogxvOES(GLenum pname, const GLfixed* params);
429 GL_API void GL_APIENTRY glFrustumxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
430 GL_API void GL_APIENTRY glGetClipPlanexOES(GLenum pname, GLfixed eqn[4]);
431 GL_API void GL_APIENTRY glGetFixedvOES(GLenum pname, GLfixed* params);
432 GL_API void GL_APIENTRY glGetLightxvOES(GLenum light, GLenum pname, GLfixed* params);
433 GL_API void GL_APIENTRY glGetMaterialxvOES(GLenum face, GLenum pname, GLfixed* params);
434 GL_API void GL_APIENTRY glGetTexEnvxvOES(GLenum env, GLenum pname, GLfixed* params);
435 GL_API void GL_APIENTRY glGetTexParameterxvOES(GLenum target, GLenum pname, GLfixed* params);
436 GL_API void GL_APIENTRY glLightModelxOES(GLenum pname, GLfixed param);
437 GL_API void GL_APIENTRY glLightModelxvOES(GLenum pname, const GLfixed* params);
438 GL_API void GL_APIENTRY glLightxOES(GLenum light, GLenum pname, GLfixed param);
439 GL_API void GL_APIENTRY glLightxvOES(GLenum light, GLenum pname, const GLfixed* params);
440 GL_API void GL_APIENTRY glLineWidthxOES(GLfixed width);
441 GL_API void GL_APIENTRY glLoadMatrixxOES(const GLfixed* m);
442 GL_API void GL_APIENTRY glMaterialxOES(GLenum face, GLenum pname, GLfixed param);
443 GL_API void GL_APIENTRY glMaterialxvOES(GLenum face, GLenum pname, const GLfixed* params);
444 GL_API void GL_APIENTRY glMultMatrixxOES(const GLfixed* m);
445 GL_API void GL_APIENTRY glMultiTexCoord4xOES(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
446 GL_API void GL_APIENTRY glNormal3xOES(GLfixed nx, GLfixed ny, GLfixed nz);
447 GL_API void GL_APIENTRY glOrthoxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
448 GL_API void GL_APIENTRY glPointParameterxOES(GLenum pname, GLfixed param);
449 GL_API void GL_APIENTRY glPointParameterxvOES(GLenum pname, const GLfixed* params);
450 GL_API void GL_APIENTRY glPointSizexOES(GLfixed size);
451 GL_API void GL_APIENTRY glPolygonOffsetxOES(GLfixed factor, GLfixed units);
452 GL_API void GL_APIENTRY glRotatexOES(GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
453 GL_API void GL_APIENTRY glSampleCoveragexOES(GLclampx value, GLboolean invert);
454 GL_API void GL_APIENTRY glScalexOES(GLfixed x, GLfixed y, GLfixed z);
455 GL_API void GL_APIENTRY glTexEnvxOES(GLenum target, GLenum pname, GLfixed param);
456 GL_API void GL_APIENTRY glTexEnvxvOES(GLenum target, GLenum pname, const GLfixed* params);
457 GL_API void GL_APIENTRY glTexParameterxOES(GLenum target, GLenum pname, GLfixed param);
458 GL_API void GL_APIENTRY glTexParameterxvOES(GLenum target, GLenum pname, const GLfixed* params);
459 GL_API void GL_APIENTRY glTranslatexOES(GLfixed x, GLfixed y, GLfixed z);
460 #endif
461 #endif // not supported
462 typedef void (GL_APIENTRYP PFNGLALPHAFUNCXOESPROC)(GLenum func, GLclampx ref);
463 typedef void (GL_APIENTRYP PFNGLCLEARCOLORXOESPROC)(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
464 typedef void (GL_APIENTRYP PFNGLCLEARDEPTHXOESPROC)(GLclampx depth);
465 typedef void (GL_APIENTRYP PFNGLCLIPPLANEXOESPROC)(GLenum plane, const GLfixed* equation);
466 typedef void (GL_APIENTRYP PFNGLCOLOR4XOESPROC)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
467 typedef void (GL_APIENTRYP PFNGLDEPTHRANGEXOESPROC)(GLclampx zNear, GLclampx zFar);
468 typedef void (GL_APIENTRYP PFNGLFOGXOESPROC)(GLenum pname, GLfixed param);
469 typedef void (GL_APIENTRYP PFNGLFOGXVOESPROC)(GLenum pname, const GLfixed* params);
470 typedef void (GL_APIENTRYP PFNGLFRUSTUMXOESPROC)(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear,
471                                                                                                  GLfixed zFar);
472 typedef void (GL_APIENTRYP PFNGLGETCLIPPLANEXOESPROC)(GLenum pname, GLfixed eqn[4]);
473 typedef void (GL_APIENTRYP PFNGLGETFIXEDVOESPROC)(GLenum pname, GLfixed* params);
474 typedef void (GL_APIENTRYP PFNGLGETLIGHTXVOESPROC)(GLenum light, GLenum pname, GLfixed* params);
475 typedef void (GL_APIENTRYP PFNGLGETMATERIALXVOESPROC)(GLenum face, GLenum pname, GLfixed* params);
476 typedef void (GL_APIENTRYP PFNGLGETTEXENVXVOESPROC)(GLenum env, GLenum pname, GLfixed* params);
477 typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERXVOESPROC)(GLenum target, GLenum pname, GLfixed* params);
478 typedef void (GL_APIENTRYP PFNGLLIGHTMODELXOESPROC)(GLenum pname, GLfixed param);
479 typedef void (GL_APIENTRYP PFNGLLIGHTMODELXVOESPROC)(GLenum pname, const GLfixed* params);
480 typedef void (GL_APIENTRYP PFNGLLIGHTXOESPROC)(GLenum light, GLenum pname, GLfixed param);
481 typedef void (GL_APIENTRYP PFNGLLIGHTXVOESPROC)(GLenum light, GLenum pname, const GLfixed* params);
482 typedef void (GL_APIENTRYP PFNGLLINEWIDTHXOESPROC)(GLfixed width);
483 typedef void (GL_APIENTRYP PFNGLLOADMATRIXXOESPROC)(const GLfixed* m);
484 typedef void (GL_APIENTRYP PFNGLMATERIALXOESPROC)(GLenum face, GLenum pname, GLfixed param);
485 typedef void (GL_APIENTRYP PFNGLMATERIALXVOESPROC)(GLenum face, GLenum pname, const GLfixed* params);
486 typedef void (GL_APIENTRYP PFNGLMULTMATRIXXOESPROC)(const GLfixed* m);
487 typedef void (GL_APIENTRYP PFNGLMULTITEXCOORD4XOESPROC)(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
488 typedef void (GL_APIENTRYP PFNGLNORMAL3XOESPROC)(GLfixed nx, GLfixed ny, GLfixed nz);
489 typedef void (GL_APIENTRYP PFNGLORTHOXOESPROC)(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear,
490                                                                                            GLfixed zFar);
491 typedef void (GL_APIENTRYP PFNGLPOINTPARAMETERXOESPROC)(GLenum pname, GLfixed param);
492 typedef void (GL_APIENTRYP PFNGLPOINTPARAMETERXVOESPROC)(GLenum pname, const GLfixed* params);
493 typedef void (GL_APIENTRYP PFNGLPOINTSIZEXOESPROC)(GLfixed size);
494 typedef void (GL_APIENTRYP PFNGLPOLYGONOFFSETXOESPROC)(GLfixed factor, GLfixed units);
495 typedef void (GL_APIENTRYP PFNGLROTATEXOESPROC)(GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
496 typedef void (GL_APIENTRYP PFNGLSAMPLECOVERAGEXOESPROC)(GLclampx value, GLboolean invert);
497 typedef void (GL_APIENTRYP PFNGLSCALEXOESPROC)(GLfixed x, GLfixed y, GLfixed z);
498 typedef void (GL_APIENTRYP PFNGLTEXENVXOESPROC)(GLenum target, GLenum pname, GLfixed param);
499 typedef void (GL_APIENTRYP PFNGLTEXENVXVOESPROC)(GLenum target, GLenum pname, const GLfixed* params);
500 typedef void (GL_APIENTRYP PFNGLTEXPARAMETERXOESPROC)(GLenum target, GLenum pname, GLfixed param);
501 typedef void (GL_APIENTRYP PFNGLTEXPARAMETERXVOESPROC)(GLenum target, GLenum pname, const GLfixed* params);
502 typedef void (GL_APIENTRYP PFNGLTRANSLATEXOESPROC)(GLfixed x, GLfixed y, GLfixed z);
503 #endif
504
505 /* GL_OES_framebuffer_object */
506 #ifndef GL_OES_framebuffer_object
507 #define GL_OES_framebuffer_object 1
508 #ifdef GL_GLEXT_PROTOTYPES
509 GL_API GLboolean GL_APIENTRY glIsRenderbufferOES(GLuint renderbuffer);
510 GL_API void GL_APIENTRY glBindRenderbufferOES(GLenum target, GLuint renderbuffer);
511 GL_API void GL_APIENTRY glDeleteRenderbuffersOES(GLsizei n, const GLuint* renderbuffers);
512 GL_API void GL_APIENTRY glGenRenderbuffersOES(GLsizei n, GLuint* renderbuffers);
513 GL_API void GL_APIENTRY glRenderbufferStorageOES(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
514 GL_API void GL_APIENTRY glGetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint* params);
515 GL_API GLboolean GL_APIENTRY glIsFramebufferOES(GLuint framebuffer);
516 GL_API void GL_APIENTRY glBindFramebufferOES(GLenum target, GLuint framebuffer);
517 GL_API void GL_APIENTRY glDeleteFramebuffersOES(GLsizei n, const GLuint* framebuffers);
518 GL_API void GL_APIENTRY glGenFramebuffersOES(GLsizei n, GLuint* framebuffers);
519 GL_API GLenum GL_APIENTRY glCheckFramebufferStatusOES(GLenum target);
520 GL_API void GL_APIENTRY glFramebufferRenderbufferOES(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
521 GL_API void GL_APIENTRY glFramebufferTexture2DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
522 GL_API void GL_APIENTRY glGetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint* params);
523 GL_API void GL_APIENTRY glGenerateMipmapOES(GLenum target);
524 #endif
525 typedef GLboolean (GL_APIENTRYP PFNGLISRENDERBUFFEROESPROC)(GLuint renderbuffer);
526 typedef void (GL_APIENTRYP PFNGLBINDRENDERBUFFEROESPROC)(GLenum target, GLuint renderbuffer);
527 typedef void (GL_APIENTRYP PFNGLDELETERENDERBUFFERSOESPROC)(GLsizei n, const GLuint* renderbuffers);
528 typedef void (GL_APIENTRYP PFNGLGENRENDERBUFFERSOESPROC)(GLsizei n, GLuint* renderbuffers);
529 typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEOESPROC)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
530 typedef void (GL_APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVOESPROC)(GLenum target, GLenum pname, GLint* params);
531 typedef GLboolean (GL_APIENTRYP PFNGLISFRAMEBUFFEROESPROC)(GLuint framebuffer);
532 typedef void (GL_APIENTRYP PFNGLBINDFRAMEBUFFEROESPROC)(GLenum target, GLuint framebuffer);
533 typedef void (GL_APIENTRYP PFNGLDELETEFRAMEBUFFERSOESPROC)(GLsizei n, const GLuint* framebuffers);
534 typedef void (GL_APIENTRYP PFNGLGENFRAMEBUFFERSOESPROC)(GLsizei n, GLuint* framebuffers);
535 typedef GLenum (GL_APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSOESPROC)(GLenum target);
536 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFEROESPROC)(GLenum target, GLenum attachment, GLenum renderbuffertarget,
537                                                                                                                                 GLuint renderbuffer);
538 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DOESPROC)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture,
539                                                                                                                          GLint level);
540 typedef void (GL_APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVOESPROC)(GLenum target, GLenum attachment, GLenum pname,
541                                                                                                                                                         GLint* params);
542 typedef void (GL_APIENTRYP PFNGLGENERATEMIPMAPOESPROC)(GLenum target);
543 #endif
544
545 /* GL_OES_mapbuffer */
546 #ifndef GL_OES_mapbuffer
547 #define GL_OES_mapbuffer 1
548 #if 0 // not supported
549 #ifdef GL_GLEXT_PROTOTYPES
550 GL_API void* GL_APIENTRY glMapBufferOES(GLenum target, GLenum access);
551 GL_API GLboolean GL_APIENTRY glUnmapBufferOES(GLenum target);
552 GL_API void GL_APIENTRY glGetBufferPointervOES(GLenum target, GLenum pname, void** params);
553 #endif
554 #endif // not supported
555 typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC)(GLenum target, GLenum access);
556 typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC)(GLenum target);
557 typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC)(GLenum target, GLenum pname, void** params);
558 #endif
559
560 /* GL_OES_matrix_get */
561 #ifndef GL_OES_matrix_get
562 #define GL_OES_matrix_get 1
563 #endif
564
565 /* GL_OES_matrix_palette */
566 #ifndef _WIN32 //  _WIN32
567 #ifndef GL_OES_matrix_palette
568 #define GL_OES_matrix_palette 1
569 #ifdef GL_GLEXT_PROTOTYPES
570 GL_API void GL_APIENTRY glCurrentPaletteMatrixOES(GLuint matrixpaletteindex);
571 GL_API void GL_APIENTRY glLoadPaletteFromModelViewMatrixOES(void);
572 GL_API void GL_APIENTRY glMatrixIndexPointerOES(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer);
573 GL_API void GL_APIENTRY glWeightPointerOES(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer);
574 #endif
575 typedef void (GL_APIENTRYP PFNGLCURRENTPALETTEMATRIXOESPROC)(GLuint matrixpaletteindex);
576 typedef void (GL_APIENTRYP PFNGLLOADPALETTEFROMMODELVIEWMATRIXOESPROC)(void);
577 typedef void (GL_APIENTRYP PFNGLMATRIXINDEXPOINTEROESPROC)(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer);
578 typedef void (GL_APIENTRYP PFNGLWEIGHTPOINTEROESPROC)(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer);
579 #endif
580 #endif //_WIN32
581
582 /* GL_OES_packed_depth_stencil */
583 #ifndef GL_OES_packed_depth_stencil
584 #define GL_OES_packed_depth_stencil 1
585 #endif
586
587 /* GL_OES_query_matrix */
588 #ifndef GL_OES_query_matrix
589 #define GL_OES_query_matrix 1
590 #if 0 // not supported
591 #ifdef GL_GLEXT_PROTOTYPES
592 GL_API GLbitfield GL_APIENTRY glQueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]);
593 #endif
594 #endif // not supported
595 typedef GLbitfield (GL_APIENTRYP PFNGLQUERYMATRIXXOESPROC)(GLfixed mantissa[16], GLint exponent[16]);
596 #endif
597
598 /* GL_OES_rgb8_rgba8 */
599 #ifndef GL_OES_rgb8_rgba8
600 #define GL_OES_rgb8_rgba8 1
601 #endif
602
603 /* GL_OES_single_precision */
604 #ifndef GL_OES_single_precision
605 #define GL_OES_single_precision 1
606 #if 0 // not supported
607 #ifdef GL_GLEXT_PROTOTYPES
608 GL_API void GL_APIENTRY glDepthRangefOES(GLclampf zNear, GLclampf zFar);
609 GL_API void GL_APIENTRY glFrustumfOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
610 GL_API void GL_APIENTRY glOrthofOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
611 GL_API void GL_APIENTRY glClipPlanefOES(GLenum plane, const GLfloat* equation);
612 GL_API void GL_APIENTRY glGetClipPlanefOES(GLenum pname, GLfloat eqn[4]);
613 GL_API void GL_APIENTRY glClearDepthfOES(GLclampf depth);
614 #endif
615 #endif // not supported
616 typedef void (GL_APIENTRYP PFNGLDEPTHRANGEFOESPROC)(GLclampf zNear, GLclampf zFar);
617 typedef void (GL_APIENTRYP PFNGLFRUSTUMFOESPROC)(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear,
618                                                                                                  GLfloat zFar);
619 typedef void (GL_APIENTRYP PFNGLORTHOFOESPROC)(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear,
620                                                                                            GLfloat zFar);
621 typedef void (GL_APIENTRYP PFNGLCLIPPLANEFOESPROC)(GLenum plane, const GLfloat* equation);
622 typedef void (GL_APIENTRYP PFNGLGETCLIPPLANEFOESPROC)(GLenum pname, GLfloat eqn[4]);
623 typedef void (GL_APIENTRYP PFNGLCLEARDEPTHFOESPROC)(GLclampf depth);
624 #endif
625
626 /* GL_OES_stencil1 */
627 #ifndef GL_OES_stencil1
628 #define GL_OES_stencil1 1
629 #endif
630
631 /* GL_OES_stencil4 */
632 #ifndef GL_OES_stencil4
633 #define GL_OES_stencil4 1
634 #endif
635
636 /* GL_OES_stencil8 */
637 #ifndef GL_OES_stencil8
638 #define GL_OES_stencil8 1
639 #endif
640
641 /* GL_OES_stencil_wrap */
642 #ifndef GL_OES_stencil_wrap
643 #define GL_OES_stencil_wrap 1
644 #endif
645
646 /* GL_OES_texture_cube_map */
647 #ifndef GL_OES_texture_cube_map
648 #define GL_OES_texture_cube_map 1
649 #if 0 // not supported
650 #ifdef GL_GLEXT_PROTOTYPES
651 GL_API void GL_APIENTRY glTexGenfOES(GLenum coord, GLenum pname, GLfloat param);
652 GL_API void GL_APIENTRY glTexGenfvOES(GLenum coord, GLenum pname, const GLfloat* params);
653 GL_API void GL_APIENTRY glTexGeniOES(GLenum coord, GLenum pname, GLint param);
654 GL_API void GL_APIENTRY glTexGenivOES(GLenum coord, GLenum pname, const GLint* params);
655 GL_API void GL_APIENTRY glTexGenxOES(GLenum coord, GLenum pname, GLfixed param);
656 GL_API void GL_APIENTRY glTexGenxvOES(GLenum coord, GLenum pname, const GLfixed* params);
657 GL_API void GL_APIENTRY glGetTexGenfvOES(GLenum coord, GLenum pname, GLfloat* params);
658 GL_API void GL_APIENTRY glGetTexGenivOES(GLenum coord, GLenum pname, GLint* params);
659 GL_API void GL_APIENTRY glGetTexGenxvOES(GLenum coord, GLenum pname, GLfixed* params);
660 #endif
661 #endif // not supported
662 typedef void (GL_APIENTRYP PFNGLTEXGENFOESPROC)(GLenum coord, GLenum pname, GLfloat param);
663 typedef void (GL_APIENTRYP PFNGLTEXGENFVOESPROC)(GLenum coord, GLenum pname, const GLfloat* params);
664 typedef void (GL_APIENTRYP PFNGLTEXGENIOESPROC)(GLenum coord, GLenum pname, GLint param);
665 typedef void (GL_APIENTRYP PFNGLTEXGENIVOESPROC)(GLenum coord, GLenum pname, const GLint* params);
666 typedef void (GL_APIENTRYP PFNGLTEXGENXOESPROC)(GLenum coord, GLenum pname, GLfixed param);
667 typedef void (GL_APIENTRYP PFNGLTEXGENXVOESPROC)(GLenum coord, GLenum pname, const GLfixed* params);
668 typedef void (GL_APIENTRYP PFNGLGETTEXGENFVOESPROC)(GLenum coord, GLenum pname, GLfloat* params);
669 typedef void (GL_APIENTRYP PFNGLGETTEXGENIVOESPROC)(GLenum coord, GLenum pname, GLint* params);
670 typedef void (GL_APIENTRYP PFNGLGETTEXGENXVOESPROC)(GLenum coord, GLenum pname, GLfixed* params);
671 #endif
672
673 /* GL_OES_texture_env_crossbar */
674 #ifndef GL_OES_texture_env_crossbar
675 #define GL_OES_texture_env_crossbar 1
676 #endif
677
678 /* GL_OES_texture_mirrored_repeat */
679 #ifndef GL_OES_texture_mirrored_repeat
680 #define GL_OES_texture_mirrored_repeat 1
681 #endif
682
683 /*------------------------------------------------------------------------*
684  * AMD extension functions
685  *------------------------------------------------------------------------*/
686
687 /* GL_AMD_compressed_3DC_texture */
688 #ifndef GL_AMD_compressed_3DC_texture
689 #define GL_AMD_compressed_3DC_texture 1
690 #endif
691
692 /* GL_AMD_compressed_ATC_texture */
693 #ifndef GL_AMD_compressed_ATC_texture
694 #define GL_AMD_compressed_ATC_texture 1
695 #endif
696
697 /*------------------------------------------------------------------------*
698  * EXT extension functions
699  *------------------------------------------------------------------------*/
700
701 /* GL_EXT_texture_filter_anisotropic */
702 #ifndef GL_EXT_texture_filter_anisotropic
703 #define GL_EXT_texture_filter_anisotropic 1
704 #endif
705
706 /* GL_EXT_texture_format_BGRA8888 */
707 #ifndef GL_EXT_texture_format_BGRA8888
708 #define GL_EXT_texture_format_BGRA8888 1
709 #endif
710
711 /*------------------------------------------------------------------------*
712  * IMG extension functions
713  *------------------------------------------------------------------------*/
714
715 /* GL_IMG_read_format */
716 #ifndef GL_IMG_read_format
717 #define GL_IMG_read_format 1
718 #endif
719
720 /* GL_IMG_texture_compression_pvrtc */
721 #ifndef GL_IMG_texture_compression_pvrtc
722 #define GL_IMG_texture_compression_pvrtc 1
723 #endif
724
725 /* GL_IMG_user_clip_plane */
726 #ifndef GL_IMG_user_clip_plane
727 #define GL_IMG_user_clip_plane 1
728 #if 0 // not supported
729 #ifdef GL_GLEXT_PROTOTYPES
730 GL_API void GL_APIENTRY glClipPlanefIMG(GLenum, const GLfloat*);
731 GL_API void GL_APIENTRY glClipPlanexIMG(GLenum, const GLfixed*);
732 #endif
733 #endif // not supported
734 typedef void (GL_APIENTRYP PFNGLCLIPPLANEFIMG)(GLenum p, const GLfloat* eqn);
735 typedef void (GL_APIENTRYP PFNGLCLIPPLANEXIMG)(GLenum p, const GLfixed* eqn);
736 #endif
737
738 /* GL_IMG_texture_env_enhanced_fixed_function */
739 #ifndef GL_IMG_texture_env_enhanced_fixed_function
740 #define GL_IMG_texture_env_enhanced_fixed_function 1
741 #endif
742
743 /*------------------------------------------------------------------------*
744  * NV extension functions
745  *------------------------------------------------------------------------*/
746
747 /* NV_fence */
748 #ifndef GL_NV_fence
749 #define GL_NV_fence 1
750 #if 0 // not supported
751 #ifdef GL_GLEXT_PROTOTYPES
752 GL_API void GL_APIENTRY glDeleteFencesNV(GLsizei, const GLuint*);
753 GL_API void GL_APIENTRY glGenFencesNV(GLsizei, GLuint*);
754 GL_API GLboolean GL_APIENTRY glIsFenceNV(GLuint);
755 GL_API GLboolean GL_APIENTRY glTestFenceNV(GLuint);
756 GL_API void GL_APIENTRY glGetFenceivNV(GLuint, GLenum, GLint*);
757 GL_API void GL_APIENTRY glFinishFenceNV(GLuint);
758 GL_API void GL_APIENTRY glSetFenceNV(GLuint, GLenum);
759 #endif
760 #endif // not supported
761 typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC)(GLsizei n, const GLuint* fences);
762 typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC)(GLsizei n, GLuint* fences);
763 typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC)(GLuint fence);
764 typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC)(GLuint fence);
765 typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC)(GLuint fence, GLenum pname, GLint* params);
766 typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC)(GLuint fence);
767 typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC)(GLuint fence, GLenum condition);
768 #endif
769
770 /*------------------------------------------------------------------------*
771  * QCOM extension functions
772  *------------------------------------------------------------------------*/
773
774 /* GL_QCOM_driver_control */
775 #ifndef GL_QCOM_driver_control
776 #define GL_QCOM_driver_control 1
777 #if 0 // not supported
778 #ifdef GL_GLEXT_PROTOTYPES
779 GL_API void GL_APIENTRY glGetDriverControlsQCOM(GLint* num, GLsizei size, GLuint* driverControls);
780 GL_API void GL_APIENTRY glGetDriverControlStringQCOM(GLuint driverControl, GLsizei bufSize, GLsizei* length, char* driverControlString);
781 GL_API void GL_APIENTRY glEnableDriverControlQCOM(GLuint driverControl);
782 GL_API void GL_APIENTRY glDisableDriverControlQCOM(GLuint driverControl);
783 #endif
784 #endif // not supported
785 typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC)(GLint* num, GLsizei size, GLuint* driverControls);
786 typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC)(GLuint driverControl, GLsizei bufSize, GLsizei* length,
787                                                                                                                                 char* driverControlString);
788 typedef void (GL_APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC)(GLuint driverControl);
789 typedef void (GL_APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC)(GLuint driverControl);
790 #endif
791
792 /* GL_QCOM_perfmon_global_mode */
793 #ifndef GL_QCOM_perfmon_global_mode
794 #define GL_QCOM_perfmon_global_mode 1
795 #endif
796
797 /*------------------------------------------------------------------------*
798  * Samsung extension functions
799  *------------------------------------------------------------------------*/
800
801 /* PName */
802 #define GL_MAX_ELEMENTS_VERTICES          0x80E8
803 #define GL_MAX_ELEMENTS_INDICES           0x80E9
804
805 /* PVRTC */
806 #define GL_PVRTC2_OES               0x1911
807 #define GL_PVRTC4_OES               0x1912
808
809 //
810 // For sync OpenGLES 2.0 */
811 //
812 /* Separate Blend Functions */
813 #define GL_BLEND_DST_RGB                    0x80C8
814 #define GL_BLEND_SRC_RGB                    0x80C9
815
816 /* Vertex Arrays */
817 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED        0x8622
818 #define GL_VERTEX_ATTRIB_ARRAY_SIZE           0x8623
819 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE         0x8624
820 #define GL_VERTEX_ATTRIB_ARRAY_TYPE           0x8625
821 #define GL_CURRENT_VERTEX_ATTRIB              0x8626
822 #define GL_VERTEX_ATTRIB_ARRAY_POINTER        0x8645
823 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED     0x886A
824 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
825
826 /* Shaders */
827 #define GL_FRAGMENT_SHADER                0x8B30
828 #define GL_VERTEX_SHADER                  0x8B31
829
830 /* Framebuffer Object. */
831 #define GL_INVALID_FRAMEBUFFER_OPERATION    0x0506
832
833 /** Texture and Texture Environment as in ShaderInterface.doc  **/
834 //
835 // Texture environment modes
836 //
837 #define   TEX_ENV_MODE_REPLACE          1
838 #define   TEX_ENV_MODE_MODULATE         2
839 #define   TEX_ENV_MODE_ADD          3
840 #define   TEX_ENV_MODE_DECAL            4
841 #define   TEX_ENV_MODE_BLEND            5
842 #define   TEX_ENV_MODE_COMBINE              6
843 //
844 // Combine RGB
845 //
846 #define   TEX_COMBINE_RGB_REPLACE       1
847 #define   TEX_COMBINE_RGB_MODULATE      2
848 #define   TEX_COMBINE_RGB_ADD           3
849 #define   TEX_COMBINE_RGB_ADD_SIGNED    4
850 #define   TEX_COMBINE_RGB_INTERPOLATE   5
851 #define   TEX_COMBINE_RGB_SUBTRACT      6
852 #define   TEX_COMBINE_RGB_DOT3_RGB      7
853 #define   TEX_COMBINE_RGB_DOT3_RGBA     8
854
855 //
856 // Combine Alpha
857 //
858 #define   TEX_COMBINE_ALPHA_REPLACE         1
859 #define   TEX_COMBINE_ALPHA_MODULATE        2
860 #define   TEX_COMBINE_ALPHA_ADD             3
861 #define   TEX_COMBINE_ALPHA_ADD_SIGNED      4
862 #define   TEX_COMBINE_ALPHA_INTERPOLATE     5
863 #define   TEX_COMBINE_ALPHA_SUBTRACT        6
864
865
866 //
867 // Combiner RGB and ALPHA source arguments
868 //
869 #define   TEX_ENV_COMBINER_SRC_TEXTURE          1
870 #define   TEX_ENV_COMBINER_SRC_CONSTANT         2
871 #define   TEX_ENV_COMBINER_SRC_PRIMARY_COLOR    3
872 #define   TEX_ENV_COMBINER_SRC_PREVIOUS         4
873
874 //
875 // Combiner RGB operands
876 //
877 #define   TEX_ENV_COMBINER_RGB_OP_SRC_COLOR                 1
878 #define   TEX_ENV_COMBINER_RGB_OP_ONE_MINUS_SRC_COLOR       2
879 #define   TEX_ENV_COMBINER_RGB_OP_SRC_ALPHA                 3
880 #define   TEX_ENV_COMBINER_RGB_OP_ONE_MINUS_SRC_ALPHA       4
881
882 //
883 // Combiner ALPHA operands
884 //
885 #define   TEX_ENV_COMBINER_ALPHA_OP_SRC_ALPHA               1
886 #define   TEX_ENV_COMBINER_ALPHA_OP_ONE_MINUS_SRC_ALPHA     2
887
888 //
889 //  Fog mode
890 //
891 #define  FOGMODE_LINEAR     1
892 #define  FOGMODE_EXP        2
893 #define  FOGMODE_EXP2       3
894
895 #ifdef __cplusplus
896 }
897 #endif
898
899 #endif /* __glext_h_ */