OLD | NEW |
(Empty) | |
| 1 #ifndef __gl2ext_h_ |
| 2 #define __gl2ext_h_ |
| 3 |
| 4 /* $Revision: 10798 $ on $Date:: 2010-03-19 17:34:30 -0700 #$ */ |
| 5 |
| 6 #ifdef __cplusplus |
| 7 extern "C" { |
| 8 #endif |
| 9 |
| 10 /* |
| 11 * This document is licensed under the SGI Free Software B License Version |
| 12 * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . |
| 13 */ |
| 14 |
| 15 #ifndef GL_APIENTRYP |
| 16 # define GL_APIENTRYP GL_APIENTRY* |
| 17 #endif |
| 18 |
| 19 /*------------------------------------------------------------------------* |
| 20 * OES extension tokens |
| 21 *------------------------------------------------------------------------*/ |
| 22 |
| 23 /* GL_OES_compressed_ETC1_RGB8_texture */ |
| 24 #ifndef GL_OES_compressed_ETC1_RGB8_texture |
| 25 #define GL_ETC1_RGB8_OES 0x8D64 |
| 26 #endif |
| 27 |
| 28 /* GL_OES_compressed_paletted_texture */ |
| 29 #ifndef GL_OES_compressed_paletted_texture |
| 30 #define GL_PALETTE4_RGB8_OES 0x8B90 |
| 31 #define GL_PALETTE4_RGBA8_OES 0x8B91 |
| 32 #define GL_PALETTE4_R5_G6_B5_OES 0x8B92 |
| 33 #define GL_PALETTE4_RGBA4_OES 0x8B93 |
| 34 #define GL_PALETTE4_RGB5_A1_OES 0x8B94 |
| 35 #define GL_PALETTE8_RGB8_OES 0x8B95 |
| 36 #define GL_PALETTE8_RGBA8_OES 0x8B96 |
| 37 #define GL_PALETTE8_R5_G6_B5_OES 0x8B97 |
| 38 #define GL_PALETTE8_RGBA4_OES 0x8B98 |
| 39 #define GL_PALETTE8_RGB5_A1_OES 0x8B99 |
| 40 #endif |
| 41 |
| 42 /* GL_OES_depth24 */ |
| 43 #ifndef GL_OES_depth24 |
| 44 #define GL_DEPTH_COMPONENT24_OES 0x81A6 |
| 45 #endif |
| 46 |
| 47 /* GL_OES_depth32 */ |
| 48 #ifndef GL_OES_depth32 |
| 49 #define GL_DEPTH_COMPONENT32_OES 0x81A7 |
| 50 #endif |
| 51 |
| 52 /* GL_OES_depth_texture */ |
| 53 /* No new tokens introduced by this extension. */ |
| 54 |
| 55 /* GL_OES_EGL_image */ |
| 56 #ifndef GL_OES_EGL_image |
| 57 typedef void* GLeglImageOES; |
| 58 #endif |
| 59 |
| 60 /* GL_OES_element_index_uint */ |
| 61 #ifndef GL_OES_element_index_uint |
| 62 #define GL_UNSIGNED_INT 0x1405 |
| 63 #endif |
| 64 |
| 65 /* GL_OES_get_program_binary */ |
| 66 #ifndef GL_OES_get_program_binary |
| 67 #define GL_PROGRAM_BINARY_LENGTH_OES 0x8741 |
| 68 #define GL_NUM_PROGRAM_BINARY_FORMATS_OES 0x87FE |
| 69 #define GL_PROGRAM_BINARY_FORMATS_OES 0x87FF |
| 70 #endif |
| 71 |
| 72 /* GL_OES_mapbuffer */ |
| 73 #ifndef GL_OES_mapbuffer |
| 74 #define GL_WRITE_ONLY_OES 0x88B9 |
| 75 #define GL_BUFFER_ACCESS_OES 0x88BB |
| 76 #define GL_BUFFER_MAPPED_OES 0x88BC |
| 77 #define GL_BUFFER_MAP_POINTER_OES 0x88BD |
| 78 #endif |
| 79 |
| 80 /* GL_OES_packed_depth_stencil */ |
| 81 #ifndef GL_OES_packed_depth_stencil |
| 82 #define GL_DEPTH_STENCIL_OES 0x84F9 |
| 83 #define GL_UNSIGNED_INT_24_8_OES 0x84FA |
| 84 #define GL_DEPTH24_STENCIL8_OES 0x88F0 |
| 85 #endif |
| 86 |
| 87 /* GL_OES_rgb8_rgba8 */ |
| 88 #ifndef GL_OES_rgb8_rgba8 |
| 89 #define GL_RGB8_OES 0x8051 |
| 90 #define GL_RGBA8_OES 0x8058 |
| 91 #endif |
| 92 |
| 93 /* GL_OES_standard_derivatives */ |
| 94 #ifndef GL_OES_standard_derivatives |
| 95 #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES 0x8B8B |
| 96 #endif |
| 97 |
| 98 /* GL_OES_stencil1 */ |
| 99 #ifndef GL_OES_stencil1 |
| 100 #define GL_STENCIL_INDEX1_OES 0x8D46 |
| 101 #endif |
| 102 |
| 103 /* GL_OES_stencil4 */ |
| 104 #ifndef GL_OES_stencil4 |
| 105 #define GL_STENCIL_INDEX4_OES 0x8D47 |
| 106 #endif |
| 107 |
| 108 /* GL_OES_texture_3D */ |
| 109 #ifndef GL_OES_texture_3D |
| 110 #define GL_TEXTURE_WRAP_R_OES 0x8072 |
| 111 #define GL_TEXTURE_3D_OES 0x806F |
| 112 #define GL_TEXTURE_BINDING_3D_OES 0x806A |
| 113 #define GL_MAX_3D_TEXTURE_SIZE_OES 0x8073 |
| 114 #define GL_SAMPLER_3D_OES 0x8B5F |
| 115 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4 |
| 116 #endif |
| 117 |
| 118 /* GL_OES_texture_float */ |
| 119 /* No new tokens introduced by this extension. */ |
| 120 |
| 121 /* GL_OES_texture_float_linear */ |
| 122 /* No new tokens introduced by this extension. */ |
| 123 |
| 124 /* GL_OES_texture_half_float */ |
| 125 #ifndef GL_OES_texture_half_float |
| 126 #define GL_HALF_FLOAT_OES 0x8D61 |
| 127 #endif |
| 128 |
| 129 /* GL_OES_texture_half_float_linear */ |
| 130 /* No new tokens introduced by this extension. */ |
| 131 |
| 132 /* GL_OES_texture_npot */ |
| 133 /* No new tokens introduced by this extension. */ |
| 134 |
| 135 /* GL_OES_vertex_array_object */ |
| 136 #ifndef GL_OES_vertex_array_object |
| 137 #define GL_VERTEX_ARRAY_BINDING_OES 0x85B5 |
| 138 #endif |
| 139 |
| 140 /* GL_OES_vertex_half_float */ |
| 141 /* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */ |
| 142 |
| 143 /* GL_OES_vertex_type_10_10_10_2 */ |
| 144 #ifndef GL_OES_vertex_type_10_10_10_2 |
| 145 #define GL_UNSIGNED_INT_10_10_10_2_OES 0x8DF6 |
| 146 #define GL_INT_10_10_10_2_OES 0x8DF7 |
| 147 #endif |
| 148 |
| 149 /*------------------------------------------------------------------------* |
| 150 * AMD extension tokens |
| 151 *------------------------------------------------------------------------*/ |
| 152 |
| 153 /* GL_AMD_compressed_3DC_texture */ |
| 154 #ifndef GL_AMD_compressed_3DC_texture |
| 155 #define GL_3DC_X_AMD 0x87F9 |
| 156 #define GL_3DC_XY_AMD 0x87FA |
| 157 #endif |
| 158 |
| 159 /* GL_AMD_compressed_ATC_texture */ |
| 160 #ifndef GL_AMD_compressed_ATC_texture |
| 161 #define GL_ATC_RGB_AMD 0x8C92 |
| 162 #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93 |
| 163 #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE |
| 164 #endif |
| 165 |
| 166 /* GL_AMD_performance_monitor */ |
| 167 #ifndef GL_AMD_performance_monitor |
| 168 #define GL_COUNTER_TYPE_AMD 0x8BC0 |
| 169 #define GL_COUNTER_RANGE_AMD 0x8BC1 |
| 170 #define GL_UNSIGNED_INT64_AMD 0x8BC2 |
| 171 #define GL_PERCENTAGE_AMD 0x8BC3 |
| 172 #define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4 |
| 173 #define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5 |
| 174 #define GL_PERFMON_RESULT_AMD 0x8BC6 |
| 175 #endif |
| 176 |
| 177 /* GL_AMD_program_binary_Z400 */ |
| 178 #ifndef GL_AMD_program_binary_Z400 |
| 179 #define GL_Z400_BINARY_AMD 0x8740 |
| 180 #endif |
| 181 |
| 182 /*------------------------------------------------------------------------* |
| 183 * EXT extension tokens |
| 184 *------------------------------------------------------------------------*/ |
| 185 |
| 186 /* GL_EXT_blend_minmax */ |
| 187 #ifndef GL_EXT_blend_minmax |
| 188 #define GL_MIN_EXT 0x8007 |
| 189 #define GL_MAX_EXT 0x8008 |
| 190 #endif |
| 191 |
| 192 /* GL_EXT_discard_framebuffer */ |
| 193 #ifndef GL_EXT_discard_framebuffer |
| 194 #define GL_COLOR_EXT 0x1800 |
| 195 #define GL_DEPTH_EXT 0x1801 |
| 196 #define GL_STENCIL_EXT 0x1802 |
| 197 #endif |
| 198 |
| 199 /* GL_EXT_multi_draw_arrays */ |
| 200 /* No new tokens introduced by this extension. */ |
| 201 |
| 202 /* GL_EXT_read_format_bgra */ |
| 203 #ifndef GL_EXT_read_format_bgra |
| 204 #define GL_BGRA_EXT 0x80E1 |
| 205 #define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT 0x8365 |
| 206 #define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT 0x8366 |
| 207 #endif |
| 208 |
| 209 /* GL_EXT_texture_filter_anisotropic */ |
| 210 #ifndef GL_EXT_texture_filter_anisotropic |
| 211 #define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE |
| 212 #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF |
| 213 #endif |
| 214 |
| 215 /* GL_EXT_texture_format_BGRA8888 */ |
| 216 #ifndef GL_EXT_texture_format_BGRA8888 |
| 217 #define GL_BGRA_EXT 0x80E1 |
| 218 #endif |
| 219 |
| 220 /* GL_EXT_texture_type_2_10_10_10_REV */ |
| 221 #ifndef GL_EXT_texture_type_2_10_10_10_REV |
| 222 #define GL_UNSIGNED_INT_2_10_10_10_REV_EXT 0x8368 |
| 223 #endif |
| 224 |
| 225 /*------------------------------------------------------------------------* |
| 226 * IMG extension tokens |
| 227 *------------------------------------------------------------------------*/ |
| 228 |
| 229 /* GL_IMG_program_binary */ |
| 230 #ifndef GL_IMG_program_binary |
| 231 #define GL_SGX_PROGRAM_BINARY_IMG 0x9130 |
| 232 #endif |
| 233 |
| 234 /* GL_IMG_read_format */ |
| 235 #ifndef GL_IMG_read_format |
| 236 #define GL_BGRA_IMG 0x80E1 |
| 237 #define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG 0x8365 |
| 238 #endif |
| 239 |
| 240 /* GL_IMG_shader_binary */ |
| 241 #ifndef GL_IMG_shader_binary |
| 242 #define GL_SGX_BINARY_IMG 0x8C0A |
| 243 #endif |
| 244 |
| 245 /* GL_IMG_texture_compression_pvrtc */ |
| 246 #ifndef GL_IMG_texture_compression_pvrtc |
| 247 #define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00 |
| 248 #define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01 |
| 249 #define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02 |
| 250 #define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03 |
| 251 #endif |
| 252 |
| 253 /*------------------------------------------------------------------------* |
| 254 * NV extension tokens |
| 255 *------------------------------------------------------------------------*/ |
| 256 |
| 257 /* GL_NV_fence */ |
| 258 #ifndef GL_NV_fence |
| 259 #define GL_ALL_COMPLETED_NV 0x84F2 |
| 260 #define GL_FENCE_STATUS_NV 0x84F3 |
| 261 #define GL_FENCE_CONDITION_NV 0x84F4 |
| 262 #endif |
| 263 |
| 264 /* GL_NV_coverage_sample */ |
| 265 #ifndef GL_NV_coverage_sample |
| 266 #define GL_COVERAGE_COMPONENT_NV 0x8ED0 |
| 267 #define GL_COVERAGE_COMPONENT4_NV 0x8ED1 |
| 268 #define GL_COVERAGE_ATTACHMENT_NV 0x8ED2 |
| 269 #define GL_COVERAGE_BUFFERS_NV 0x8ED3 |
| 270 #define GL_COVERAGE_SAMPLES_NV 0x8ED4 |
| 271 #define GL_COVERAGE_ALL_FRAGMENTS_NV 0x8ED5 |
| 272 #define GL_COVERAGE_EDGE_FRAGMENTS_NV 0x8ED6 |
| 273 #define GL_COVERAGE_AUTOMATIC_NV 0x8ED7 |
| 274 #define GL_COVERAGE_BUFFER_BIT_NV 0x8000 |
| 275 #endif |
| 276 |
| 277 /* GL_NV_depth_nonlinear */ |
| 278 #ifndef GL_NV_depth_nonlinear |
| 279 #define GL_DEPTH_COMPONENT16_NONLINEAR_NV 0x8E2C |
| 280 #endif |
| 281 |
| 282 /*------------------------------------------------------------------------* |
| 283 * QCOM extension tokens |
| 284 *------------------------------------------------------------------------*/ |
| 285 |
| 286 /* GL_QCOM_driver_control */ |
| 287 /* No new tokens introduced by this extension. */ |
| 288 |
| 289 /* GL_QCOM_extended_get */ |
| 290 #ifndef GL_QCOM_extended_get |
| 291 #define GL_TEXTURE_WIDTH_QCOM 0x8BD2 |
| 292 #define GL_TEXTURE_HEIGHT_QCOM 0x8BD3 |
| 293 #define GL_TEXTURE_DEPTH_QCOM 0x8BD4 |
| 294 #define GL_TEXTURE_INTERNAL_FORMAT_QCOM 0x8BD5 |
| 295 #define GL_TEXTURE_FORMAT_QCOM 0x8BD6 |
| 296 #define GL_TEXTURE_TYPE_QCOM 0x8BD7 |
| 297 #define GL_TEXTURE_IMAGE_VALID_QCOM 0x8BD8 |
| 298 #define GL_TEXTURE_NUM_LEVELS_QCOM 0x8BD9 |
| 299 #define GL_TEXTURE_TARGET_QCOM 0x8BDA |
| 300 #define GL_TEXTURE_OBJECT_VALID_QCOM 0x8BDB |
| 301 #define GL_STATE_RESTORE 0x8BDC |
| 302 #endif |
| 303 |
| 304 /* GL_QCOM_extended_get2 */ |
| 305 /* No new tokens introduced by this extension. */ |
| 306 |
| 307 /* GL_QCOM_perfmon_global_mode */ |
| 308 #ifndef GL_QCOM_perfmon_global_mode |
| 309 #define GL_PERFMON_GLOBAL_MODE_QCOM 0x8FA0 |
| 310 #endif |
| 311 |
| 312 /* GL_QCOM_writeonly_rendering */ |
| 313 #ifndef GL_QCOM_writeonly_rendering |
| 314 #define GL_WRITEONLY_RENDERING_QCOM 0x8823 |
| 315 #endif |
| 316 |
| 317 /* GL_QCOM_tiled_rendering */ |
| 318 #ifndef GL_QCOM_tiled_rendering |
| 319 #define GL_COLOR_BUFFER_BIT0_QCOM 0x00000001 |
| 320 #define GL_COLOR_BUFFER_BIT1_QCOM 0x00000002 |
| 321 #define GL_COLOR_BUFFER_BIT2_QCOM 0x00000004 |
| 322 #define GL_COLOR_BUFFER_BIT3_QCOM 0x00000008 |
| 323 #define GL_COLOR_BUFFER_BIT4_QCOM 0x00000010 |
| 324 #define GL_COLOR_BUFFER_BIT5_QCOM 0x00000020 |
| 325 #define GL_COLOR_BUFFER_BIT6_QCOM 0x00000040 |
| 326 #define GL_COLOR_BUFFER_BIT7_QCOM 0x00000080 |
| 327 #define GL_DEPTH_BUFFER_BIT0_QCOM 0x00000100 |
| 328 #define GL_DEPTH_BUFFER_BIT1_QCOM 0x00000200 |
| 329 #define GL_DEPTH_BUFFER_BIT2_QCOM 0x00000400 |
| 330 #define GL_DEPTH_BUFFER_BIT3_QCOM 0x00000800 |
| 331 #define GL_DEPTH_BUFFER_BIT4_QCOM 0x00001000 |
| 332 #define GL_DEPTH_BUFFER_BIT5_QCOM 0x00002000 |
| 333 #define GL_DEPTH_BUFFER_BIT6_QCOM 0x00004000 |
| 334 #define GL_DEPTH_BUFFER_BIT7_QCOM 0x00008000 |
| 335 #define GL_STENCIL_BUFFER_BIT0_QCOM 0x00010000 |
| 336 #define GL_STENCIL_BUFFER_BIT1_QCOM 0x00020000 |
| 337 #define GL_STENCIL_BUFFER_BIT2_QCOM 0x00040000 |
| 338 #define GL_STENCIL_BUFFER_BIT3_QCOM 0x00080000 |
| 339 #define GL_STENCIL_BUFFER_BIT4_QCOM 0x00100000 |
| 340 #define GL_STENCIL_BUFFER_BIT5_QCOM 0x00200000 |
| 341 #define GL_STENCIL_BUFFER_BIT6_QCOM 0x00400000 |
| 342 #define GL_STENCIL_BUFFER_BIT7_QCOM 0x00800000 |
| 343 #define GL_MULTISAMPLE_BUFFER_BIT0_QCOM 0x01000000 |
| 344 #define GL_MULTISAMPLE_BUFFER_BIT1_QCOM 0x02000000 |
| 345 #define GL_MULTISAMPLE_BUFFER_BIT2_QCOM 0x04000000 |
| 346 #define GL_MULTISAMPLE_BUFFER_BIT3_QCOM 0x08000000 |
| 347 #define GL_MULTISAMPLE_BUFFER_BIT4_QCOM 0x10000000 |
| 348 #define GL_MULTISAMPLE_BUFFER_BIT5_QCOM 0x20000000 |
| 349 #define GL_MULTISAMPLE_BUFFER_BIT6_QCOM 0x40000000 |
| 350 #define GL_MULTISAMPLE_BUFFER_BIT7_QCOM 0x80000000 |
| 351 #endif |
| 352 |
| 353 /*------------------------------------------------------------------------* |
| 354 * End of extension tokens, start of corresponding extension functions |
| 355 *------------------------------------------------------------------------*/ |
| 356 |
| 357 /*------------------------------------------------------------------------* |
| 358 * OES extension functions |
| 359 *------------------------------------------------------------------------*/ |
| 360 |
| 361 /* GL_OES_compressed_ETC1_RGB8_texture */ |
| 362 #ifndef GL_OES_compressed_ETC1_RGB8_texture |
| 363 #define GL_OES_compressed_ETC1_RGB8_texture 1 |
| 364 #endif |
| 365 |
| 366 /* GL_OES_compressed_paletted_texture */ |
| 367 #ifndef GL_OES_compressed_paletted_texture |
| 368 #define GL_OES_compressed_paletted_texture 1 |
| 369 #endif |
| 370 |
| 371 /* GL_OES_depth24 */ |
| 372 #ifndef GL_OES_depth24 |
| 373 #define GL_OES_depth24 1 |
| 374 #endif |
| 375 |
| 376 /* GL_OES_depth32 */ |
| 377 #ifndef GL_OES_depth32 |
| 378 #define GL_OES_depth32 1 |
| 379 #endif |
| 380 |
| 381 /* GL_OES_depth_texture */ |
| 382 #ifndef GL_OES_depth_texture |
| 383 #define GL_OES_depth_texture 1 |
| 384 #endif |
| 385 |
| 386 /* GL_OES_EGL_image */ |
| 387 #ifndef GL_OES_EGL_image |
| 388 #define GL_OES_EGL_image 1 |
| 389 #ifdef GL_GLEXT_PROTOTYPES |
| 390 GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglIm
ageOES image); |
| 391 GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum targe
t, GLeglImageOES image); |
| 392 #endif |
| 393 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target,
GLeglImageOES image); |
| 394 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenu
m target, GLeglImageOES image); |
| 395 #endif |
| 396 |
| 397 /* GL_OES_element_index_uint */ |
| 398 #ifndef GL_OES_element_index_uint |
| 399 #define GL_OES_element_index_uint 1 |
| 400 #endif |
| 401 |
| 402 /* GL_OES_fbo_render_mipmap */ |
| 403 #ifndef GL_OES_fbo_render_mipmap |
| 404 #define GL_OES_fbo_render_mipmap 1 |
| 405 #endif |
| 406 |
| 407 /* GL_OES_fragment_precision_high */ |
| 408 #ifndef GL_OES_fragment_precision_high |
| 409 #define GL_OES_fragment_precision_high 1 |
| 410 #endif |
| 411 |
| 412 /* GL_OES_get_program_binary */ |
| 413 #ifndef GL_OES_get_program_binary |
| 414 #define GL_OES_get_program_binary 1 |
| 415 #ifdef GL_GLEXT_PROTOTYPES |
| 416 GL_APICALL void GL_APIENTRY glGetProgramBinaryOES (GLuint program, GLsizei bufSi
ze, GLsizei *length, GLenum *binaryFormat, GLvoid *binary); |
| 417 GL_APICALL void GL_APIENTRY glProgramBinaryOES (GLuint program, GLenum binaryFor
mat, const GLvoid *binary, GLint length); |
| 418 #endif |
| 419 typedef void (GL_APIENTRYP PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsize
i bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary); |
| 420 typedef void (GL_APIENTRYP PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum bi
naryFormat, const GLvoid *binary, GLint length); |
| 421 #endif |
| 422 |
| 423 /* GL_OES_mapbuffer */ |
| 424 #ifndef GL_OES_mapbuffer |
| 425 #define GL_OES_mapbuffer 1 |
| 426 #ifdef GL_GLEXT_PROTOTYPES |
| 427 GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access); |
| 428 GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target); |
| 429 GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname,
GLvoid** params); |
| 430 #endif |
| 431 typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access
); |
| 432 typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target); |
| 433 typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum
pname, GLvoid** params); |
| 434 #endif |
| 435 |
| 436 /* GL_OES_packed_depth_stencil */ |
| 437 #ifndef GL_OES_packed_depth_stencil |
| 438 #define GL_OES_packed_depth_stencil 1 |
| 439 #endif |
| 440 |
| 441 /* GL_OES_rgb8_rgba8 */ |
| 442 #ifndef GL_OES_rgb8_rgba8 |
| 443 #define GL_OES_rgb8_rgba8 1 |
| 444 #endif |
| 445 |
| 446 /* GL_OES_standard_derivatives */ |
| 447 #ifndef GL_OES_standard_derivatives |
| 448 #define GL_OES_standard_derivatives 1 |
| 449 #endif |
| 450 |
| 451 /* GL_OES_stencil1 */ |
| 452 #ifndef GL_OES_stencil1 |
| 453 #define GL_OES_stencil1 1 |
| 454 #endif |
| 455 |
| 456 /* GL_OES_stencil4 */ |
| 457 #ifndef GL_OES_stencil4 |
| 458 #define GL_OES_stencil4 1 |
| 459 #endif |
| 460 |
| 461 /* GL_OES_texture_3D */ |
| 462 #ifndef GL_OES_texture_3D |
| 463 #define GL_OES_texture_3D 1 |
| 464 #ifdef GL_GLEXT_PROTOTYPES |
| 465 GL_APICALL void GL_APIENTRY glTexImage3DOES (GLenum target, GLint level, GLenum
internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLen
um format, GLenum type, const GLvoid* pixels); |
| 466 GL_APICALL void GL_APIENTRY glTexSubImage3DOES (GLenum target, GLint level, GLin
t xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei
depth, GLenum format, GLenum type, const GLvoid* pixels); |
| 467 GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level,
GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GL
sizei height); |
| 468 GL_APICALL void GL_APIENTRY glCompressedTexImage3DOES (GLenum target, GLint leve
l, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint bo
rder, GLsizei imageSize, const GLvoid* data); |
| 469 GL_APICALL void GL_APIENTRY glCompressedTexSubImage3DOES (GLenum target, GLint l
evel, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height
, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data); |
| 470 GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum att
achment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); |
| 471 #endif |
| 472 typedef void (GL_APIENTRYP PFNGLTEXIMAGE3DOESPROC) (GLenum target, GLint level,
GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint borde
r, GLenum format, GLenum type, const GLvoid* pixels); |
| 473 typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE3DOESPROC) (GLenum target, GLint leve
l, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, G
Lsizei depth, GLenum format, GLenum type, const GLvoid* pixels); |
| 474 typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint
level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei wi
dth, GLsizei height); |
| 475 typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLi
nt level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, G
Lint border, GLsizei imageSize, const GLvoid* data); |
| 476 typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC) (GLenum target,
GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei
height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data); |
| 477 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum
attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); |
| 478 #endif |
| 479 |
| 480 /* GL_OES_texture_float */ |
| 481 #ifndef GL_OES_texture_float |
| 482 #define GL_OES_texture_float 1 |
| 483 #endif |
| 484 |
| 485 /* GL_OES_texture_float_linear */ |
| 486 #ifndef GL_OES_texture_float_linear |
| 487 #define GL_OES_texture_float_linear 1 |
| 488 #endif |
| 489 |
| 490 /* GL_OES_texture_half_float */ |
| 491 #ifndef GL_OES_texture_half_float |
| 492 #define GL_OES_texture_half_float 1 |
| 493 #endif |
| 494 |
| 495 /* GL_OES_texture_half_float_linear */ |
| 496 #ifndef GL_OES_texture_half_float_linear |
| 497 #define GL_OES_texture_half_float_linear 1 |
| 498 #endif |
| 499 |
| 500 /* GL_OES_texture_npot */ |
| 501 #ifndef GL_OES_texture_npot |
| 502 #define GL_OES_texture_npot 1 |
| 503 #endif |
| 504 |
| 505 /* GL_OES_vertex_array_object */ |
| 506 #ifndef GL_OES_vertex_array_object |
| 507 #define GL_OES_vertex_array_object 1 |
| 508 #ifdef GL_GLEXT_PROTOTYPES |
| 509 GL_APICALL void GL_APIENTRY glBindVertexArrayOES (GLuint array); |
| 510 GL_APICALL void GL_APIENTRY glDeleteVertexArraysOES (GLsizei n, const GLuint *ar
rays); |
| 511 GL_APICALL void GL_APIENTRY glGenVertexArraysOES (GLsizei n, GLuint *arrays); |
| 512 GL_APICALL GLboolean GL_APIENTRY glIsVertexArrayOES (GLuint array); |
| 513 #endif |
| 514 typedef void (GL_APIENTRYP PFNGLBINDVERTEXARRAYOESPROC) (GLuint array); |
| 515 typedef void (GL_APIENTRYP PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n, const GLu
int *arrays); |
| 516 typedef void (GL_APIENTRYP PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint *arra
ys); |
| 517 typedef GLboolean (GL_APIENTRYP PFNGLISVERTEXARRAYOESPROC) (GLuint array); |
| 518 #endif |
| 519 |
| 520 /* GL_OES_vertex_half_float */ |
| 521 #ifndef GL_OES_vertex_half_float |
| 522 #define GL_OES_vertex_half_float 1 |
| 523 #endif |
| 524 |
| 525 /* GL_OES_vertex_type_10_10_10_2 */ |
| 526 #ifndef GL_OES_vertex_type_10_10_10_2 |
| 527 #define GL_OES_vertex_type_10_10_10_2 1 |
| 528 #endif |
| 529 |
| 530 /*------------------------------------------------------------------------* |
| 531 * AMD extension functions |
| 532 *------------------------------------------------------------------------*/ |
| 533 |
| 534 /* GL_AMD_compressed_3DC_texture */ |
| 535 #ifndef GL_AMD_compressed_3DC_texture |
| 536 #define GL_AMD_compressed_3DC_texture 1 |
| 537 #endif |
| 538 |
| 539 /* GL_AMD_compressed_ATC_texture */ |
| 540 #ifndef GL_AMD_compressed_ATC_texture |
| 541 #define GL_AMD_compressed_ATC_texture 1 |
| 542 #endif |
| 543 |
| 544 /* AMD_performance_monitor */ |
| 545 #ifndef GL_AMD_performance_monitor |
| 546 #define GL_AMD_performance_monitor 1 |
| 547 #ifdef GL_GLEXT_PROTOTYPES |
| 548 GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupsAMD (GLint *numGroups, GLsizei
groupsSize, GLuint *groups); |
| 549 GL_APICALL void GL_APIENTRY glGetPerfMonitorCountersAMD (GLuint group, GLint *nu
mCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counters); |
| 550 GL_APICALL void GL_APIENTRY glGetPerfMonitorGroupStringAMD (GLuint group, GLsize
i bufSize, GLsizei *length, GLchar *groupString); |
| 551 GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterStringAMD (GLuint group, GLui
nt counter, GLsizei bufSize, GLsizei *length, GLchar *counterString); |
| 552 GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterInfoAMD (GLuint group, GLuint
counter, GLenum pname, GLvoid *data); |
| 553 GL_APICALL void GL_APIENTRY glGenPerfMonitorsAMD (GLsizei n, GLuint *monitors); |
| 554 GL_APICALL void GL_APIENTRY glDeletePerfMonitorsAMD (GLsizei n, GLuint *monitors
); |
| 555 GL_APICALL void GL_APIENTRY glSelectPerfMonitorCountersAMD (GLuint monitor, GLbo
olean enable, GLuint group, GLint numCounters, GLuint *countersList); |
| 556 GL_APICALL void GL_APIENTRY glBeginPerfMonitorAMD (GLuint monitor); |
| 557 GL_APICALL void GL_APIENTRY glEndPerfMonitorAMD (GLuint monitor); |
| 558 GL_APICALL void GL_APIENTRY glGetPerfMonitorCounterDataAMD (GLuint monitor, GLen
um pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten); |
| 559 #endif |
| 560 typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint *numGroups,
GLsizei groupsSize, GLuint *groups); |
| 561 typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GL
int *numCounters, GLint *maxActiveCounters, GLsizei counterSize, GLuint *counter
s); |
| 562 typedef void (GL_APIENTRYP PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group,
GLsizei bufSize, GLsizei *length, GLchar *groupString); |
| 563 typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint grou
p, GLuint counter, GLsizei bufSize, GLsizei *length, GLchar *counterString); |
| 564 typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group,
GLuint counter, GLenum pname, GLvoid *data); |
| 565 typedef void (GL_APIENTRYP PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint *moni
tors); |
| 566 typedef void (GL_APIENTRYP PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint *m
onitors); |
| 567 typedef void (GL_APIENTRYP PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monito
r, GLboolean enable, GLuint group, GLint numCounters, GLuint *countersList); |
| 568 typedef void (GL_APIENTRYP PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor); |
| 569 typedef void (GL_APIENTRYP PFNGLENDPERFMONITORAMDPROC) (GLuint monitor); |
| 570 typedef void (GL_APIENTRYP PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monito
r, GLenum pname, GLsizei dataSize, GLuint *data, GLint *bytesWritten); |
| 571 #endif |
| 572 |
| 573 /* GL_AMD_program_binary_Z400 */ |
| 574 #ifndef GL_AMD_program_binary_Z400 |
| 575 #define GL_AMD_program_binary_Z400 1 |
| 576 #endif |
| 577 |
| 578 /*------------------------------------------------------------------------* |
| 579 * EXT extension functions |
| 580 *------------------------------------------------------------------------*/ |
| 581 |
| 582 /* GL_EXT_blend_minmax */ |
| 583 #ifndef GL_EXT_blend_minmax |
| 584 #define GL_EXT_blend_minmax 1 |
| 585 #endif |
| 586 |
| 587 /* GL_EXT_discard_framebuffer */ |
| 588 #ifndef GL_EXT_discard_framebuffer |
| 589 #define GL_EXT_discard_framebuffer 1 |
| 590 #ifdef GL_GLEXT_PROTOTYPES |
| 591 GL_APICALL void GL_APIENTRY glDiscardFramebufferEXT (GLenum target, GLsizei numA
ttachments, const GLenum *attachments); |
| 592 #endif |
| 593 typedef void (GL_APIENTRYP PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsiz
ei numAttachments, const GLenum *attachments); |
| 594 #endif |
| 595 |
| 596 #ifndef GL_EXT_multi_draw_arrays |
| 597 #define GL_EXT_multi_draw_arrays 1 |
| 598 #ifdef GL_GLEXT_PROTOTYPES |
| 599 GL_APICALL void GL_APIENTRY glMultiDrawArraysEXT (GLenum, GLint *, GLsizei *, GL
sizei); |
| 600 GL_APICALL void GL_APIENTRY glMultiDrawElementsEXT (GLenum, const GLsizei *, GLe
num, const GLvoid* *, GLsizei); |
| 601 #endif /* GL_GLEXT_PROTOTYPES */ |
| 602 typedef void (GL_APIENTRYP PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, GLint *fir
st, GLsizei *count, GLsizei primcount); |
| 603 typedef void (GL_APIENTRYP PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, const GL
sizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount); |
| 604 #endif |
| 605 |
| 606 /* GL_EXT_read_format_bgra */ |
| 607 #ifndef GL_EXT_read_format_bgra |
| 608 #define GL_EXT_read_format_bgra 1 |
| 609 #endif |
| 610 |
| 611 /* GL_EXT_texture_filter_anisotropic */ |
| 612 #ifndef GL_EXT_texture_filter_anisotropic |
| 613 #define GL_EXT_texture_filter_anisotropic 1 |
| 614 #endif |
| 615 |
| 616 /* GL_EXT_texture_format_BGRA8888 */ |
| 617 #ifndef GL_EXT_texture_format_BGRA8888 |
| 618 #define GL_EXT_texture_format_BGRA8888 1 |
| 619 #endif |
| 620 |
| 621 /* GL_EXT_texture_type_2_10_10_10_REV */ |
| 622 #ifndef GL_EXT_texture_type_2_10_10_10_REV |
| 623 #define GL_EXT_texture_type_2_10_10_10_REV 1 |
| 624 #endif |
| 625 |
| 626 /*------------------------------------------------------------------------* |
| 627 * IMG extension functions |
| 628 *------------------------------------------------------------------------*/ |
| 629 |
| 630 /* GL_IMG_program_binary */ |
| 631 #ifndef GL_IMG_program_binary |
| 632 #define GL_IMG_program_binary 1 |
| 633 #endif |
| 634 |
| 635 /* GL_IMG_read_format */ |
| 636 #ifndef GL_IMG_read_format |
| 637 #define GL_IMG_read_format 1 |
| 638 #endif |
| 639 |
| 640 /* GL_IMG_shader_binary */ |
| 641 #ifndef GL_IMG_shader_binary |
| 642 #define GL_IMG_shader_binary 1 |
| 643 #endif |
| 644 |
| 645 /* GL_IMG_texture_compression_pvrtc */ |
| 646 #ifndef GL_IMG_texture_compression_pvrtc |
| 647 #define GL_IMG_texture_compression_pvrtc 1 |
| 648 #endif |
| 649 |
| 650 /*------------------------------------------------------------------------* |
| 651 * NV extension functions |
| 652 *------------------------------------------------------------------------*/ |
| 653 |
| 654 /* GL_NV_fence */ |
| 655 #ifndef GL_NV_fence |
| 656 #define GL_NV_fence 1 |
| 657 #ifdef GL_GLEXT_PROTOTYPES |
| 658 GL_APICALL void GL_APIENTRY glDeleteFencesNV (GLsizei, const GLuint *); |
| 659 GL_APICALL void GL_APIENTRY glGenFencesNV (GLsizei, GLuint *); |
| 660 GL_APICALL GLboolean GL_APIENTRY glIsFenceNV (GLuint); |
| 661 GL_APICALL GLboolean GL_APIENTRY glTestFenceNV (GLuint); |
| 662 GL_APICALL void GL_APIENTRY glGetFenceivNV (GLuint, GLenum, GLint *); |
| 663 GL_APICALL void GL_APIENTRY glFinishFenceNV (GLuint); |
| 664 GL_APICALL void GL_APIENTRY glSetFenceNV (GLuint, GLenum); |
| 665 #endif |
| 666 typedef void (GL_APIENTRYP PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint *fe
nces); |
| 667 typedef void (GL_APIENTRYP PFNGLGENFENCESNVPROC) (GLsizei n, GLuint *fences); |
| 668 typedef GLboolean (GL_APIENTRYP PFNGLISFENCENVPROC) (GLuint fence); |
| 669 typedef GLboolean (GL_APIENTRYP PFNGLTESTFENCENVPROC) (GLuint fence); |
| 670 typedef void (GL_APIENTRYP PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, G
Lint *params); |
| 671 typedef void (GL_APIENTRYP PFNGLFINISHFENCENVPROC) (GLuint fence); |
| 672 typedef void (GL_APIENTRYP PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition)
; |
| 673 #endif |
| 674 |
| 675 /* GL_NV_coverage_sample */ |
| 676 #ifndef GL_NV_coverage_sample |
| 677 #define GL_NV_coverage_sample 1 |
| 678 #ifdef GL_GLEXT_PROTOTYPES |
| 679 GL_APICALL void GL_APIENTRY glCoverageMaskNV (GLboolean mask); |
| 680 GL_APICALL void GL_APIENTRY glCoverageOperationNV (GLenum operation); |
| 681 #endif |
| 682 typedef void (GL_APIENTRYP PFNGLCOVERAGEMASKNVPROC) (GLboolean mask); |
| 683 typedef void (GL_APIENTRYP PFNGLCOVERAGEOPERATIONNVPROC) (GLenum operation); |
| 684 #endif |
| 685 |
| 686 /* GL_NV_depth_nonlinear */ |
| 687 #ifndef GL_NV_depth_nonlinear |
| 688 #define GL_NV_depth_nonlinear 1 |
| 689 #endif |
| 690 |
| 691 /*------------------------------------------------------------------------* |
| 692 * QCOM extension functions |
| 693 *------------------------------------------------------------------------*/ |
| 694 |
| 695 /* GL_QCOM_driver_control */ |
| 696 #ifndef GL_QCOM_driver_control |
| 697 #define GL_QCOM_driver_control 1 |
| 698 #ifdef GL_GLEXT_PROTOTYPES |
| 699 GL_APICALL void GL_APIENTRY glGetDriverControlsQCOM (GLint *num, GLsizei size, G
Luint *driverControls); |
| 700 GL_APICALL void GL_APIENTRY glGetDriverControlStringQCOM (GLuint driverControl,
GLsizei bufSize, GLsizei *length, GLchar *driverControlString); |
| 701 GL_APICALL void GL_APIENTRY glEnableDriverControlQCOM (GLuint driverControl); |
| 702 GL_APICALL void GL_APIENTRY glDisableDriverControlQCOM (GLuint driverControl); |
| 703 #endif |
| 704 typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSQCOMPROC) (GLint *num, GLsizei
size, GLuint *driverControls); |
| 705 typedef void (GL_APIENTRYP PFNGLGETDRIVERCONTROLSTRINGQCOMPROC) (GLuint driverCo
ntrol, GLsizei bufSize, GLsizei *length, GLchar *driverControlString); |
| 706 typedef void (GL_APIENTRYP PFNGLENABLEDRIVERCONTROLQCOMPROC) (GLuint driverContr
ol); |
| 707 typedef void (GL_APIENTRYP PFNGLDISABLEDRIVERCONTROLQCOMPROC) (GLuint driverCont
rol); |
| 708 #endif |
| 709 |
| 710 /* GL_QCOM_extended_get */ |
| 711 #ifndef GL_QCOM_extended_get |
| 712 #define GL_QCOM_extended_get 1 |
| 713 #ifdef GL_GLEXT_PROTOTYPES |
| 714 GL_APICALL void GL_APIENTRY glExtGetTexturesQCOM (GLuint *textures, GLint maxTex
tures, GLint *numTextures); |
| 715 GL_APICALL void GL_APIENTRY glExtGetBuffersQCOM (GLuint *buffers, GLint maxBuffe
rs, GLint *numBuffers); |
| 716 GL_APICALL void GL_APIENTRY glExtGetRenderbuffersQCOM (GLuint *renderbuffers, GL
int maxRenderbuffers, GLint *numRenderbuffers); |
| 717 GL_APICALL void GL_APIENTRY glExtGetFramebuffersQCOM (GLuint *framebuffers, GLin
t maxFramebuffers, GLint *numFramebuffers); |
| 718 GL_APICALL void GL_APIENTRY glExtGetTexLevelParameterivQCOM (GLuint texture, GLe
num face, GLint level, GLenum pname, GLint *params); |
| 719 GL_APICALL void GL_APIENTRY glExtTexObjectStateOverrideiQCOM (GLenum target, GLe
num pname, GLint param); |
| 720 GL_APICALL void GL_APIENTRY glExtGetTexSubImageQCOM (GLenum target, GLint level,
GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLs
izei depth, GLenum format, GLenum type, GLvoid *texels); |
| 721 GL_APICALL void GL_APIENTRY glExtGetBufferPointervQCOM (GLenum target, GLvoid **
params); |
| 722 #endif |
| 723 typedef void (GL_APIENTRYP PFNGLEXTGETTEXTURESQCOMPROC) (GLuint *textures, GLint
maxTextures, GLint *numTextures); |
| 724 typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERSQCOMPROC) (GLuint *buffers, GLint m
axBuffers, GLint *numBuffers); |
| 725 typedef void (GL_APIENTRYP PFNGLEXTGETRENDERBUFFERSQCOMPROC) (GLuint *renderbuff
ers, GLint maxRenderbuffers, GLint *numRenderbuffers); |
| 726 typedef void (GL_APIENTRYP PFNGLEXTGETFRAMEBUFFERSQCOMPROC) (GLuint *framebuffer
s, GLint maxFramebuffers, GLint *numFramebuffers); |
| 727 typedef void (GL_APIENTRYP PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC) (GLuint textu
re, GLenum face, GLint level, GLenum pname, GLint *params); |
| 728 typedef void (GL_APIENTRYP PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC) (GLenum targ
et, GLenum pname, GLint param); |
| 729 typedef void (GL_APIENTRYP PFNGLEXTGETTEXSUBIMAGEQCOMPROC) (GLenum target, GLint
level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei heig
ht, GLsizei depth, GLenum format, GLenum type, GLvoid *texels); |
| 730 typedef void (GL_APIENTRYP PFNGLEXTGETBUFFERPOINTERVQCOMPROC) (GLenum target, GL
void **params); |
| 731 #endif |
| 732 |
| 733 /* GL_QCOM_extended_get2 */ |
| 734 #ifndef GL_QCOM_extended_get2 |
| 735 #define GL_QCOM_extended_get2 1 |
| 736 #ifdef GL_GLEXT_PROTOTYPES |
| 737 GL_APICALL void GL_APIENTRY glExtGetShadersQCOM (GLuint *shaders, GLint maxShade
rs, GLint *numShaders); |
| 738 GL_APICALL void GL_APIENTRY glExtGetProgramsQCOM (GLuint *programs, GLint maxPro
grams, GLint *numPrograms); |
| 739 GL_APICALL GLboolean GL_APIENTRY glExtIsProgramBinaryQCOM (GLuint program); |
| 740 GL_APICALL void GL_APIENTRY glExtGetProgramBinarySourceQCOM (GLuint program, GLe
num shadertype, GLchar *source, GLint *length); |
| 741 #endif |
| 742 typedef void (GL_APIENTRYP PFNGLEXTGETSHADERSQCOMPROC) (GLuint *shaders, GLint m
axShaders, GLint *numShaders); |
| 743 typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMSQCOMPROC) (GLuint *programs, GLint
maxPrograms, GLint *numPrograms); |
| 744 typedef GLboolean (GL_APIENTRYP PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program
); |
| 745 typedef void (GL_APIENTRYP PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint progr
am, GLenum shadertype, GLchar *source, GLint *length); |
| 746 #endif |
| 747 |
| 748 /* GL_QCOM_perfmon_global_mode */ |
| 749 #ifndef GL_QCOM_perfmon_global_mode |
| 750 #define GL_QCOM_perfmon_global_mode 1 |
| 751 #endif |
| 752 |
| 753 /* GL_QCOM_writeonly_rendering */ |
| 754 #ifndef GL_QCOM_writeonly_rendering |
| 755 #define GL_QCOM_writeonly_rendering 1 |
| 756 #endif |
| 757 |
| 758 /* GL_QCOM_tiled_rendering */ |
| 759 #ifndef GL_QCOM_tiled_rendering |
| 760 #define GL_QCOM_tiled_rendering 1 |
| 761 #ifdef GL_GLEXT_PROTOTYPES |
| 762 GL_APICALL void GL_APIENTRY glStartTilingQCOM (GLuint x, GLuint y, GLuint width,
GLuint height, GLbitfield preserveMask); |
| 763 GL_APICALL void GL_APIENTRY glEndTilingQCOM (GLbitfield preserveMask); |
| 764 #endif |
| 765 typedef void (GL_APIENTRYP PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint
width, GLuint height, GLbitfield preserveMask); |
| 766 typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask); |
| 767 #endif |
| 768 |
| 769 #ifdef __cplusplus |
| 770 } |
| 771 #endif |
| 772 |
| 773 #endif /* __gl2ext_h_ */ |
OLD | NEW |