1 #ifndef __gl2ext_h_ 2 #define __gl2ext_h_ 3 4 /* $Id: gl2ext.h 4571 2007-11-28 16:33:30Z benj $ */ 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 10 /* 11 ** License Applicability. Except to the extent portions of this file are 12 ** made subject to an alternative license as permitted in the SGI Free 13 ** Software License B, Version 1.0 (the "License"), the contents of this 14 ** file are subject only to the provisions of the License. You may not use 15 ** this file except in compliance with the License. You may obtain a copy 16 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600 17 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at: 18 ** 19 ** http://oss.sgi.com/projects/FreeB 20 ** 21 ** Note that, as provided in the License, the Software is distributed on an 22 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS 23 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND 24 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A 25 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT. 26 ** 27 ** Original Code. The Original Code is: OpenGL Sample Implementation, 28 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, 29 ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc. 30 ** Copyright in any portions created by third parties is as indicated 31 ** elsewhere herein. All Rights Reserved. 32 ** 33 ** Additional Notice Provisions: The application programming interfaces 34 ** established by SGI in conjunction with the Original Code are The 35 ** OpenGL(R) Graphics System: A Specification (Version 1.2.1), released 36 ** April 1, 1999; The OpenGL(R) Graphics System Utility Library (Version 37 ** 1.3), released November 4, 1998; and OpenGL(R) Graphics with the X 38 ** Window System(R) (Version 1.3), released October 19, 1998. This software 39 ** was created using the OpenGL(R) version 1.2.1 Sample Implementation 40 ** published by SGI, but has not been independently verified as being 41 ** compliant with the OpenGL(R) version 1.2.1 Specification. 42 */ 43 44 #ifndef GL_APIENTRYP 45 # define GL_APIENTRYP GL_APIENTRY* 46 #endif 47 48 /*------------------------------------------------------------------------* 49 * OES extension tokens 50 *------------------------------------------------------------------------*/ 51 52 /* GL_OES_compressed_ETC1_RGB8_texture */ 53 /* 54 #ifndef GL_OES_compressed_ETC1_RGB8_texture 55 #define GL_ETC1_RGB8_OES 0x8D64 56 #endif 57 */ 58 59 /* GL_OES_compressed_paletted_texture */ 60 #ifndef GL_OES_compressed_paletted_texture 61 #define GL_PALETTE4_RGB8_OES 0x8B90 62 #define GL_PALETTE4_RGBA8_OES 0x8B91 63 #define GL_PALETTE4_R5_G6_B5_OES 0x8B92 64 #define GL_PALETTE4_RGBA4_OES 0x8B93 65 #define GL_PALETTE4_RGB5_A1_OES 0x8B94 66 #define GL_PALETTE8_RGB8_OES 0x8B95 67 #define GL_PALETTE8_RGBA8_OES 0x8B96 68 #define GL_PALETTE8_R5_G6_B5_OES 0x8B97 69 #define GL_PALETTE8_RGBA4_OES 0x8B98 70 #define GL_PALETTE8_RGB5_A1_OES 0x8B99 71 #endif 72 73 /* GL_OES_EGL_image */ 74 #ifndef GL_OES_EGL_image 75 typedef void* GLeglImageOES; 76 #endif 77 78 /* GL_OES_depth24 */ 79 #ifndef GL_OES_depth24 80 #define GL_DEPTH_COMPONENT24_OES 0x81A6 81 #endif 82 83 /* GL_OES_depth32 */ 84 /*#ifndef GL_OES_depth32 85 #define GL_DEPTH_COMPONENT32_OES 0x81A7 86 #endif*/ 87 88 /* GL_OES_mapbuffer */ 89 #ifndef GL_OES_mapbuffer 90 /* GL_READ_ONLY and GL_READ_WRITE not supported */ 91 #define GL_WRITE_ONLY_OES 0x88B9 92 #define GL_BUFFER_ACCESS_OES 0x88BB 93 #define GL_BUFFER_MAPPED_OES 0x88BC 94 #define GL_BUFFER_MAP_POINTER_OES 0x88BD 95 #endif 96 97 /* GL_OES_rgb8_rgba8 */ 98 #ifndef GL_OES_rgb8_rgba8 99 #define GL_RGB8_OES 0x8051 100 #define GL_RGBA8_OES 0x8058 101 #endif 102 103 /* GL_OES_stencil1 */ 104 /*#ifndef GL_OES_stencil1 105 #define GL_STENCIL_INDEX1_OES 0x8D46 106 #endif*/ 107 108 /* GL_OES_stencil4 */ 109 /*#ifndef GL_OES_stencil4 110 #define GL_STENCIL_INDEX4_OES 0x8D47 111 #endif*/ 112 113 /* GL_OES_texture3D */ 114 /*#ifndef GL_OES_texture3D 115 #define GL_TEXTURE_WRAP_R_OES 0x8072 116 #define GL_TEXTURE_3D_OES 0x806F 117 #define GL_TEXTURE_BINDING_3D_OES 0x806A 118 #define GL_MAX_3D_TEXTURE_SIZE_OES 0x8073 119 #define GL_SAMPLER_3D_OES 0x8B5F 120 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4 121 #endif*/ 122 123 /* GL_OES_texture_half_float */ 124 /*#ifndef GL_OES_texture_half_float 125 #define GL_HALF_FLOAT_OES 0x8D61 126 #endif*/ 127 128 /* GL_OES_vertex_half_float */ 129 /* GL_HALF_FLOAT_OES defined in GL_OES_texture_half_float already. */ 130 131 /* GL_AMD_compressed_3DC_texture */ 132 /*#ifndef GL_AMD_compressed_3DC_texture 133 #define GL_3DC_X_AMD 0x87F9 134 #define GL_3DC_XY_AMD 0x87FA 135 #endif*/ 136 137 /* GL_AMD_compressed_ATC_texture */ 138 /*#ifndef GL_AMD_compressed_ATC_texture 139 #define GL_ATC_RGB_AMD 0x8C92 140 #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93 141 #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE 142 #endif*/ 143 144 /* GL_EXT_texture_filter_anisotropic */ 145 /*#ifndef GL_EXT_texture_filter_anisotropic 146 #define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE 147 #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF 148 #endif*/ 149 150 /* LogicOp */ 151 #define GL_COLOR_LOGIC_OP 0x0BF2 152 #define GL_CLEAR 0x1500 153 #define GL_AND 0x1501 154 #define GL_AND_REVERSE 0x1502 155 #define GL_COPY 0x1503 156 #define GL_AND_INVERTED 0x1504 157 #define GL_NOOP 0x1505 158 #define GL_XOR 0x1506 159 #define GL_OR 0x1507 160 #define GL_NOR 0x1508 161 #define GL_EQUIV 0x1509 162 #define GL_INVERT 0x150A 163 #define GL_OR_REVERSE 0x150B 164 #define GL_COPY_INVERTED 0x150C 165 #define GL_OR_INVERTED 0x150D 166 #define GL_NAND 0x150E 167 #define GL_SET 0x150F 168 169 /*------------------------------------------------------------------------* 170 * OES extension functions 171 *------------------------------------------------------------------------*/ 172 173 /* GL_OES_compressed_ETC1_RGB8_texture */ 174 #ifndef GL_OES_compressed_ETC1_RGB8_texture 175 #define GL_OES_compressed_ETC1_RGB8_texture 1 176 #endif 177 178 /* GL_OES_compressed_paletted_texture */ 179 #ifndef GL_OES_compressed_paletted_texture 180 #define GL_OES_compressed_paletted_texture 1 181 #endif 182 183 /* GL_OES_EGL_image */ 184 #ifndef GL_OES_EGL_image 185 #define GL_OES_EGL_image 1 186 #ifdef GL_GLEXT_PROTOTYPES 187 GL_APICALL void GL_APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image); 188 GL_APICALL void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image); 189 #endif 190 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image); 191 typedef void (GL_APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image); 192 #endif 193 194 /* GL_OES_depth24 */ 195 #ifndef GL_OES_depth24 196 #define GL_OES_depth24 1 197 #endif 198 199 /* GL_OES_depth32 */ 200 /*#ifndef GL_OES_depth32 201 #define GL_OES_depth32 1 202 #endif*/ 203 204 /* GL_OES_element_index_uint */ 205 /*#ifndef GL_OES_element_index_uint 206 #define GL_OES_element_index_uint 1 207 #endif*/ 208 209 /* GL_OES_fbo_render_mipmap */ 210 #ifndef GL_OES_fbo_render_mipmap 211 #define GL_OES_fbo_render_mipmap 1 212 #endif 213 214 /* GL_OES_fragment_precision_high */ 215 /*#ifndef GL_OES_fragment_precision_high 216 #define GL_OES_fragment_precision_high 1 217 #endif*/ 218 219 /* GL_OES_mapbuffer */ 220 #ifndef GL_OES_mapbuffer 221 #define GL_OES_mapbuffer 1 222 #ifdef GL_GLEXT_PROTOTYPES 223 GL_APICALL void* GL_APIENTRY glMapBufferOES (GLenum target, GLenum access); 224 GL_APICALL GLboolean GL_APIENTRY glUnmapBufferOES (GLenum target); 225 GL_APICALL void GL_APIENTRY glGetBufferPointervOES (GLenum target, GLenum pname, void** params); 226 #endif 227 typedef void* (GL_APIENTRYP PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access); 228 typedef GLboolean (GL_APIENTRYP PFNGLUNMAPBUFFEROESPROC) (GLenum target); 229 typedef void (GL_APIENTRYP PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void** params); 230 #endif 231 232 /* GL_OES_rgb8_rgba8 */ 233 #ifndef GL_OES_rgb8_rgba8 234 #define GL_OES_rgb8_rgba8 1 235 #endif 236 237 /* GL_OES_stencil1 */ 238 /*#ifndef GL_OES_stencil1 239 #define GL_OES_stencil1 1 240 #endif*/ 241 242 /* GL_OES_stencil4 */ 243 /*#ifndef GL_OES_stencil4 244 #define GL_OES_stencil4 1 245 #endif*/ 246 247 /* GL_OES_texture_3D */ 248 /*#ifndef GL_OES_texture_3D 249 #define GL_OES_texture_3D 1 250 #ifdef GL_GLEXT_PROTOTYPES 251 GL_APICALL void GL_APIENTRY glTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels); 252 GL_APICALL void GL_APIENTRY glTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); 253 GL_APICALL void GL_APIENTRY glCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); 254 GL_APICALL void GL_APIENTRY glCompressedTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data); 255 GL_APICALL void GL_APIENTRY glCompressedTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data); 256 GL_APICALL void GL_APIENTRY glFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); 257 #endif 258 typedef void (GL_APIENTRYP PFNGLTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels); 259 typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels); 260 typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); 261 typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data); 262 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 void* data); 263 typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DOES) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); 264 #endif*/ 265 266 /* GL_OES_texture_float_linear */ 267 /*#ifndef GL_OES_texture_float_linear 268 #define GL_OES_texture_float_linear 1 269 #endif*/ 270 271 /* GL_OES_texture_half_float_linear */ 272 /*#ifndef GL_OES_texture_half_float_linear 273 #define GL_OES_texture_half_float_linear 1 274 #endif*/ 275 276 /* GL_OES_texture_float */ 277 /*#ifndef GL_OES_texture_float 278 #define GL_OES_texture_float 1 279 #endif*/ 280 281 /* GL_OES_texture_half_float */ 282 /*#ifndef GL_OES_texture_half_float 283 #define GL_OES_texture_half_float 1 284 #endif*/ 285 286 /* GL_OES_texture_npot */ 287 /*#ifndef GL_OES_texture_npot 288 #define GL_OES_texture_npot 1 289 #endif*/ 290 291 /* GL_OES_vertex_half_float */ 292 /*#ifndef GL_OES_vertex_half_float 293 #define GL_OES_vertex_half_float 1 294 #endif*/ 295 296 /* GL_AMD_compressed_3DC_texture */ 297 /*#ifndef GL_AMD_compressed_3DC_texture 298 #define GL_AMD_compressed_3DC_texture 1 299 #endif*/ 300 301 /* GL_AMD_compressed_ATC_texture */ 302 /*#ifndef GL_AMD_compressed_ATC_texture 303 #define GL_AMD_compressed_ATC_texture 1 304 #endif*/ 305 306 /* GL_EXT_texture_filter_anisotropic */ 307 /*#ifndef GL_EXT_texture_filter_anisotropic 308 #define GL_EXT_texture_filter_anisotropic 1 309 #endif*/ 310 311 /* GL_EXT_packed_depth_stencil */ 312 #define GL_DEPTH24_STENCIL8_EXT 0x88F0 313 /* GL_ARB_framebuffer_object */ 314 #define GL_DEPTH_STENCIL_ATTACHMENT 0x821A 315 316 #define GL_PLATFORM_BINARY_DMP 0x6000 317 #define GL_DMP_FRAGMENT_SHADER_DMP 0xFFFFFFFF 318 #define GL_GEOMETRY_SHADER_DMP 0x6001 319 320 #define GL_VERTEX_STATE_COLLECTION_DMP 0x6800 321 #define GL_VERTEX_STATE_COLLECTION_BINDING_DMP 0x6801 322 323 #ifndef GL_DMP_texture_collection 324 #define GL_TEXTURE_COLLECTION_DMP 0x6600 325 #define GL_TEXTURE_COLLECTION_BINDING_DMP 0x6601 326 #endif 327 328 #ifndef GL_DMP_texture_internal_format 329 #define GL_LUMINANCEF_DMP 0x6605 330 #endif 331 332 #ifndef GL_DMP_lut_texture 333 #define GL_LUT_TEXTURE0_DMP 0x6610 334 #define GL_LUT_TEXTURE1_DMP 0x6611 335 #define GL_LUT_TEXTURE2_DMP 0x6612 336 #define GL_LUT_TEXTURE3_DMP 0x6613 337 #define GL_LUT_TEXTURE4_DMP 0x6614 338 #define GL_LUT_TEXTURE5_DMP 0x6615 339 #define GL_LUT_TEXTURE6_DMP 0x6616 340 #define GL_LUT_TEXTURE7_DMP 0x6617 341 #define GL_LUT_TEXTURE8_DMP 0x6618 342 #define GL_LUT_TEXTURE9_DMP 0x6619 343 #define GL_LUT_TEXTURE10_DMP 0x661A 344 #define GL_LUT_TEXTURE11_DMP 0x661B 345 #define GL_LUT_TEXTURE12_DMP 0x661C 346 #define GL_LUT_TEXTURE13_DMP 0x661D 347 #define GL_LUT_TEXTURE14_DMP 0x661E 348 #define GL_LUT_TEXTURE15_DMP 0x661F 349 #define GL_LUT_TEXTURE16_DMP 0x6620 350 #define GL_LUT_TEXTURE17_DMP 0x6621 351 #define GL_LUT_TEXTURE18_DMP 0x6622 352 #define GL_LUT_TEXTURE19_DMP 0x6623 353 #define GL_LUT_TEXTURE20_DMP 0x6624 354 #define GL_LUT_TEXTURE21_DMP 0x6625 355 #define GL_LUT_TEXTURE22_DMP 0x6626 356 #define GL_LUT_TEXTURE23_DMP 0x6627 357 #define GL_LUT_TEXTURE24_DMP 0x6628 358 #define GL_LUT_TEXTURE25_DMP 0x6629 359 #define GL_LUT_TEXTURE26_DMP 0x662A 360 #define GL_LUT_TEXTURE27_DMP 0x662B 361 #define GL_LUT_TEXTURE28_DMP 0x662C 362 #define GL_LUT_TEXTURE29_DMP 0x662D 363 #define GL_LUT_TEXTURE30_DMP 0x662E 364 #define GL_LUT_TEXTURE31_DMP 0x662F 365 #define GL_SAMPLER_1D 0x8B5D 366 #define GL_MAX_LUT_TEXTURES_DMP 0x660E 367 #define GL_MAX_LUT_ENTRIES_DMP 0x660F 368 #define GL_TEXTURE_BINDING_LUT0_DMP 0x6680 369 #define GL_TEXTURE_BINDING_LUT1_DMP 0x6681 370 #define GL_TEXTURE_BINDING_LUT2_DMP 0x6682 371 #define GL_TEXTURE_BINDING_LUT3_DMP 0x6683 372 #define GL_TEXTURE_BINDING_LUT4_DMP 0x6684 373 #define GL_TEXTURE_BINDING_LUT5_DMP 0x6685 374 #define GL_TEXTURE_BINDING_LUT6_DMP 0x6686 375 #define GL_TEXTURE_BINDING_LUT7_DMP 0x6687 376 #define GL_TEXTURE_BINDING_LUT8_DMP 0x6688 377 #define GL_TEXTURE_BINDING_LUT9_DMP 0x6689 378 #define GL_TEXTURE_BINDING_LUT10_DMP 0x668A 379 #define GL_TEXTURE_BINDING_LUT11_DMP 0x668B 380 #define GL_TEXTURE_BINDING_LUT12_DMP 0x668C 381 #define GL_TEXTURE_BINDING_LUT13_DMP 0x668D 382 #define GL_TEXTURE_BINDING_LUT14_DMP 0x668E 383 #define GL_TEXTURE_BINDING_LUT15_DMP 0x668F 384 #define GL_TEXTURE_BINDING_LUT16_DMP 0x6690 385 #define GL_TEXTURE_BINDING_LUT17_DMP 0x6691 386 #define GL_TEXTURE_BINDING_LUT18_DMP 0x6692 387 #define GL_TEXTURE_BINDING_LUT19_DMP 0x6693 388 #define GL_TEXTURE_BINDING_LUT20_DMP 0x6694 389 #define GL_TEXTURE_BINDING_LUT21_DMP 0x6695 390 #define GL_TEXTURE_BINDING_LUT22_DMP 0x6696 391 #define GL_TEXTURE_BINDING_LUT23_DMP 0x6697 392 #define GL_TEXTURE_BINDING_LUT24_DMP 0x6698 393 #define GL_TEXTURE_BINDING_LUT25_DMP 0x6699 394 #define GL_TEXTURE_BINDING_LUT26_DMP 0x669A 395 #define GL_TEXTURE_BINDING_LUT27_DMP 0x669B 396 #define GL_TEXTURE_BINDING_LUT28_DMP 0x669C 397 #define GL_TEXTURE_BINDING_LUT29_DMP 0x669D 398 #define GL_TEXTURE_BINDING_LUT30_DMP 0x669E 399 #define GL_TEXTURE_BINDING_LUT31_DMP 0x669F 400 401 GL_APICALL void GL_APIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); 402 GL_APICALL void GL_APIENTRY glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); 403 404 #endif 405 406 /* GL_DMP_geometry_primitive */ 407 #ifndef GL_DMP_geometry_primitive 408 409 #define GL_GEOMETRY_PRIMITIVE_DMP 0x6010 410 411 #endif 412 /* GL_DMP_geometry_primitive */ 413 414 /* GL_DMP_fragment_operation */ 415 #ifndef GL_DMP_fragment_operation 416 417 #define GL_FRAGOP_MODE_GL_DMP 0x6030 418 419 #endif 420 /* GL_DMP_fragment_operation */ 421 422 /* GL_DMP_shadow */ 423 #ifndef GL_DMP_shadow 424 425 #define GL_SHADOW_DMP 0x6040 426 #define GL_FRAGOP_MODE_SHADOW_DMP 0x6048 427 #define GL_TEXTURE_BORDER_COLOR 0x1004 428 #define GL_CLAMP_TO_BORDER 0x812D 429 #define GL_GENERATE_MIPMAP 0x8191 430 431 #endif 432 /* GL_DMP_shadow*/ 433 434 /* texture_lod */ 435 #define GL_TEXTURE_MIN_LOD 0x813A 436 437 /* GL_DMP_gas */ 438 #ifndef GL_DMP_gas 439 #define GL_FOG 0x0B60 //from OpenGLES1-1 enable cap 440 441 #define GL_GAS_DMP 0x6050 442 #define GL_FRAGOP_MODE_GAS_ACC_DMP 0x6051 443 444 #define GL_GAS_PLAIN_DENSITY_DMP 0x605E 445 #define GL_GAS_DEPTH_DENSITY_DMP 0x605F 446 #define GL_GAS_DENSITY_DMP 0x6060 447 #define GL_GAS_LIGHT_FACTOR_DMP 0x6061 448 449 void glGetQueryObjectfv ( GLuint id, GLenum pname, GLfloat *params ) ; 450 451 #endif 452 /* GL_DMP_gas */ 453 454 #define GL_BGRA 0x80E1 455 456 /* GL_DMP Procedural texture*/ 457 #ifndef GL_DMP_proctex 458 459 #define GL_PROCTEX_U_DMP 0x609A 460 #define GL_PROCTEX_V_DMP 0x609B 461 #define GL_PROCTEX_U2_DMP 0x609C //u2 462 #define GL_PROCTEX_V2_DMP 0x609D //v2 463 #define GL_PROCTEX_ADD_DMP 0x609E //u+v 464 #define GL_PROCTEX_ADD2_DMP 0x609F //u2+v2 465 #define GL_PROCTEX_ADDSQRT2_DMP 0x60A1 //u2+v2 466 #define GL_PROCTEX_MIN_DMP 0x60A2 467 #define GL_PROCTEX_MAX_DMP 0x60A3 468 #define GL_PROCTEX_RMAX_DMP 0x60A4 469 #define GL_PROCTEX_ALPHA_SEPARATE_DMP 0x60A5 470 471 #define GL_CLAMP_TO_ZERO_DMP 0x60C0 472 #define GL_SYMMETRICAL_REPEAT_DMP 0x60C1 473 #define GL_PULSE_DMP 0x60C2 474 475 #define GL_NONE_DMP 0x60D0 476 #define GL_ODD_DMP 0x60D1 477 #define GL_EVEN_DMP 0x60D2 478 479 //End of Procedural Texture 480 #endif 481 /* GL_DMP Procedural texture*/ 482 483 484 /* GL_DMP_sampler_mode */ 485 486 /* GL_TEXTURE_2D */ 487 /* GL_TEXTURE_CUBE_MAP */ 488 #define GL_TEXTURE_PROJECTION_DMP 0x6E00 489 #define GL_TEXTURE_SHADOW_2D_DMP 0x6E01 490 #define GL_TEXTURE_SHADOW_CUBE_DMP 0x6E02 491 #define GL_TEXTURE_PROCEDURAL_DMP 0x6E03 492 493 /* GL_DMP_sampler_mode */ 494 495 496 /* GL_DMP_lighting */ 497 #ifndef GL_DMP_lighting 498 499 #define GL_FRAGMENT_PRIMARY_COLOR_DMP 0x6210 500 #define GL_FRAGMENT_SECONDARY_COLOR_DMP 0x6211 501 502 /* parameter values */ 503 /* GL_LIGHT_ENV_LUT_INPUT_SELECTOR_XX_DMP */ 504 #define GL_LIGHT_ENV_NH_DMP 0x62A0 505 #define GL_LIGHT_ENV_VH_DMP 0x62A1 506 #define GL_LIGHT_ENV_NV_DMP 0x62A2 507 #define GL_LIGHT_ENV_LN_DMP 0x62A3 508 #define GL_LIGHT_ENV_SP_DMP 0x62A4 509 #define GL_LIGHT_ENV_CP_DMP 0x62A5 510 511 /* GL_LIGHT_ENV_LAYER_CONFIG_DMP */ 512 #define GL_LIGHT_ENV_LAYER_CONFIG0_DMP 0x62B0 513 #define GL_LIGHT_ENV_LAYER_CONFIG1_DMP 0x62B1 514 #define GL_LIGHT_ENV_LAYER_CONFIG2_DMP 0x62B2 515 #define GL_LIGHT_ENV_LAYER_CONFIG3_DMP 0x62B3 516 #define GL_LIGHT_ENV_LAYER_CONFIG4_DMP 0x62B4 517 #define GL_LIGHT_ENV_LAYER_CONFIG5_DMP 0x62B5 518 #define GL_LIGHT_ENV_LAYER_CONFIG6_DMP 0x62B6 519 #define GL_LIGHT_ENV_LAYER_CONFIG7_DMP 0x62B7 520 521 /* GL_LIGHT_ENV_FRESNEL_SELECTOR_DMP */ 522 #define GL_LIGHT_ENV_NO_FRESNEL_DMP 0x62C0 523 #define GL_LIGHT_ENV_PRI_ALPHA_FRESNEL_DMP 0x62C1 524 #define GL_LIGHT_ENV_SEC_ALPHA_FRESNEL_DMP 0x62C2 525 #define GL_LIGHT_ENV_PRI_SEC_ALPHA_FRESNEL_DMP 0x62C3 526 527 /* GL_LIGHT_ENV_TEXY_USAGE_DMP */ 528 #define GL_LIGHT_ENV_BUMP_NOT_USED_DMP 0x62C8 529 #define GL_LIGHT_ENV_BUMP_AS_BUMP_DMP 0x62C9 530 #define GL_LIGHT_ENV_BUMP_AS_TANG_DMP 0x62CA 531 532 #endif 533 /* GL_DMP_lighting */ 534 535 //Blend Equation 536 #define GL_MIN 0x8007 537 #define GL_MAX 0x8008 538 539 /* GL_DMP_ext_tex_env */ 540 #ifndef GL_DMP_ext_tex_env 541 542 #define GL_SUBTRACT 0x84E7 543 #define GL_ADD_SIGNED 0x8574 544 #define GL_INTERPOLATE 0x8575 545 #define GL_CONSTANT 0x8576 546 #define GL_PRIMARY_COLOR 0x8577 547 #define GL_PREVIOUS 0x8578 548 #define GL_PREVIOUS_BUFFER_DMP 0x8579 549 550 #define GL_MODULATE 0x2100 551 #define GL_ADD 0x0104 552 #define GL_DOT3_RGB 0x86AE 553 #define GL_DOT3_RGBA 0x86AF 554 #define GL_MULT_ADD_DMP 0x6401 555 #define GL_ADD_MULT_DMP 0x6402 556 557 #define GL_SRC_R_DMP 0x8580 558 #define GL_SRC_G_DMP 0x8581 559 #define GL_SRC_B_DMP 0x8582 560 #define GL_ONE_MINUS_SRC_R_DMP 0x8583 561 #define GL_ONE_MINUS_SRC_G_DMP 0x8584 562 #define GL_ONE_MINUS_SRC_B_DMP 0x8585 563 564 #endif 565 /* GL_DMP_ext_tex_env */ 566 567 #define GL_HILO8_DMP 0x6700 568 #define GL_RGBA_NATIVE_DMP 0x6752 569 #define GL_RGB_NATIVE_DMP 0x6754 570 #define GL_ALPHA_NATIVE_DMP 0x6756 571 #define GL_LUMINANCE_NATIVE_DMP 0x6757 572 #define GL_LUMINANCE_ALPHA_NATIVE_DMP 0x6758 573 #define GL_HILO8_DMP_NATIVE_DMP 0x6759 574 #define GL_ETC1_RGB8_NATIVE_DMP 0x675A 575 #define GL_ETC1_ALPHA_RGB8_A4_NATIVE_DMP 0x675B 576 #define GL_SHADOW_NATIVE_DMP 0x675C 577 #define GL_GAS_NATIVE_DMP 0x675D 578 579 #define GL_UNSIGNED_BYTE_4_4_DMP 0x6760 580 #define GL_UNSIGNED_4BITS_DMP 0x6761 581 582 #define GL_UNSIGNED_INT24_DMP 0x6762 583 584 #define GL_MIRROR_CLAMP_TO_EDGE 0x8743 585 #define GL_MIRROR_CLAMP_TO_BORDER 0x8912 586 #define GL_TEXTURE_LOD_BIAS 0x8501 587 588 GL_APICALL void GL_APIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params); 589 GL_APICALL void GL_APIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params); 590 #define GL_TEXTURE_WIDTH 0x1000 591 #define GL_TEXTURE_HEIGHT 0x1001 592 #define GL_TEXTURE_DEPTH 0x8071 593 #define GL_TEXTURE_INTERNAL_FORMAT 0x1003 594 #define GL_TEXTURE_BORDER 0x1005 595 #define GL_TEXTURE_RED_SIZE 0x805C 596 #define GL_TEXTURE_GREEN_SIZE 0x805D 597 #define GL_TEXTURE_BLUE_SIZE 0x805E 598 #define GL_TEXTURE_ALPHA_SIZE 0x805F 599 #define GL_TEXTURE_LUMINANCE_SIZE 0x8060 600 #define GL_TEXTURE_INTENSITY_SIZE 0x8061 601 #define GL_TEXTURE_DEPTH_SIZE 0x884A 602 #define GL_TEXTURE_DENSITY1_SIZE_DMP 0x6770 603 #define GL_TEXTURE_DENSITY2_SIZE_DMP 0x6771 604 #define GL_TEXTURE_COMPRESSED 0x86A1 605 #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0 606 607 #define GL_ALPHA4_EXT 0x803B 608 #define GL_LUMINANCE4_EXT 0x803F 609 #define GL_LUMINANCE4_ALPHA4_EXT 0x8043 610 611 GL_APICALL void GL_APIENTRY glPolygonMode(GLenum, GLenum); 612 613 #define GL_LOGIC_OP_MODE 0x0BF0 614 GL_APICALL void GL_APIENTRY glLogicOp (GLenum opcode); 615 616 GL_APICALL GLsizei GL_APIENTRY glSaveProgramsDMP ( GLuint n, GLuint* progs, GLuint flags, GLsizei bufsize, GLvoid* data ) ; 617 GL_APICALL void GL_APIENTRY glRestoreProgramsDMP ( GLuint n, GLuint offset, GLuint* progs, GLuint flags, GLvoid* data ) ; 618 619 #define GL_SAVE_PROGRAMS_DMP 0x00000000 620 #define GL_SAVE_PROGRAMS_CTR_FORMAT_DMP 0x00000001 621 #define GL_RESTORE_PROGRAMS_DMP 0x00000000 622 #define GL_RESTORE_UPDATE_LIGHT0_PROGRAM_STATE_DMP 0x80000000 623 #define GL_RESTORE_UPDATE_LIGHT1_PROGRAM_STATE_DMP 0x40000000 624 #define GL_RESTORE_UPDATE_LIGHT2_PROGRAM_STATE_DMP 0x20000000 625 #define GL_RESTORE_UPDATE_LIGHT3_PROGRAM_STATE_DMP 0x10000000 626 #define GL_RESTORE_UPDATE_LIGHT4_PROGRAM_STATE_DMP 0x08000000 627 #define GL_RESTORE_UPDATE_LIGHT5_PROGRAM_STATE_DMP 0x04000000 628 #define GL_RESTORE_UPDATE_LIGHT6_PROGRAM_STATE_DMP 0x02000000 629 #define GL_RESTORE_UPDATE_LIGHT7_PROGRAM_STATE_DMP 0x01000000 630 #define GL_RESTORE_UPDATE_LIGHTING_PROGRAM_STATE_DMP 0x00800000 631 #define GL_RESTORE_UPDATE_MATERIAL_PROGRAM_STATE_DMP 0x00400000 632 #define GL_RESTORE_UPDATE_TEXTURE_BLENDER_PROGRAM_STATE_DMP 0x00200000 633 #define GL_RESTORE_UPDATE_TEXTURE_SAMPLER_PROGRAM_STATE_DMP 0x00100000 634 #define GL_RESTORE_UPDATE_PROCEDURAL_TEXTURE_PROGRAM_STATE_DMP 0x00080000 635 #define GL_RESTORE_UPDATE_SHADOW_SAMPLING_PROGRAM_STATE_DMP 0x00040000 636 #define GL_RESTORE_UPDATE_PER_FRAGMENT_OPERATION_PROGRAM_STATE_DMP 0x00020000 637 #define GL_RESTORE_UPDATE_GAS_ACCUMULATION_PROGRAM_STATE_DMP 0x00010000 638 #define GL_RESTORE_UPDATE_FOG_PROGRAM_STATE_DMP 0x00008000 639 #define GL_RESTORE_UPDATE_VERTEX_SHADER_STATE_DMP 0x00004000 640 #define GL_RESTORE_UPDATE_GEOMETRY_SHADER_STATE_DMP 0x00002000 641 642 GL_APICALL GLsizei GL_APIENTRY glSaveVertexStateCollectionsDMP ( GLuint n, GLuint* vscolls, GLuint flags, GLsizei bufsize, GLvoid* data ) ; 643 GL_APICALL void GL_APIENTRY glRestoreVertexStateCollectionsDMP ( GLuint n, GLuint offset, GLuint* vscolls, GLuint flags, GLvoid* data ) ; 644 645 #define GL_SAVE_VERTEX_STATE_COLLECTIONS_DMP 0x00000000 646 #define GL_SAVE_VERTEX_STATE_COLLECTIONS_CTR_FORMAT_DMP 0x00000001 647 #define GL_RESTORE_VERTEX_STATE_COLLECTIONS_DMP 0x00000000 648 649 GL_APICALL GLsizei GL_APIENTRY glSaveTextureCollectionsDMP ( GLuint n, GLuint* txcolls, GLuint flags, GLsizei bufsize, GLvoid* data ) ; 650 GL_APICALL void GL_APIENTRY glRestoreTextureCollectionsDMP ( GLuint n, GLuint offset, GLuint* txcolls, GLuint flags, GLvoid* data ) ; 651 652 #define GL_SAVE_TEXTURE_COLLECTIONS_DMP 0x00000000 653 #define GL_SAVE_TEXTURE_COLLECTION_1D_TEXTURES_DMP 0x80000000 654 #define GL_SAVE_TEXTURE_COLLECTION_2D_TEXTURES_DMP 0x40000000 655 #define GL_SAVE_TEXTURE_COLLECTION_CUBE_TEXTURES_DMP 0x20000000 656 #define GL_SAVE_TEXTURE_COLLECTIONS_CTR_FORMAT_DMP 0x00000001 657 #define GL_RESTORE_TEXTURE_COLLECTIONS_DMP 0x00000000 658 #define GL_RESTORE_TEXTURE_COLLECTION_1D_TEXTURES_DMP 0x80000000 659 #define GL_RESTORE_TEXTURE_COLLECTION_2D_TEXTURES_DMP 0x40000000 660 #define GL_RESTORE_TEXTURE_COLLECTION_CUBE_TEXTURES_DMP 0x20000000 661 662 /* memory transfer extension */ 663 #define GL_COPY_FCRAM_DMP 0x01000000 664 #define GL_NO_COPY_FCRAM_DMP 0x02000000 665 666 /* early depth test */ 667 #define GL_EARLY_DEPTH_TEST_DMP 0x6780 668 #define GL_EARLY_DEPTH_CLEAR_VALUE_DMP 0x6781 669 #define GL_EARLY_DEPTH_FUNC_DMP 0x6782 670 #define GL_EARLY_DEPTH_BUFFER_BIT_DMP 0x80000000 671 GL_APICALL void GL_APIENTRY glClearEarlyDepthDMP (GLuint depth); 672 GL_APICALL void GL_APIENTRY glEarlyDepthFuncDMP (GLenum func); 673 674 /* block mode setting */ 675 #define GL_RENDER_BLOCK_MODE_DMP 0x6788 676 #define GL_RENDER_BLOCK8_MODE_DMP 0x6789 677 #define GL_RENDER_BLOCK32_MODE_DMP 0x678A 678 GL_APICALL void GL_APIENTRY glRenderBlockModeDMP(GLenum mode); 679 680 /* multi uniforms */ 681 GL_APICALL void GL_APIENTRY glUniformsDMP(GLuint n, GLint* locations, GLsizei* counts, const GLuint* value); 682 GL_APICALL void GL_APIENTRY glGetUniformsDMP(GLuint program, GLuint n, GLint* locations, GLsizei* counts, GLuint* params); 683 684 /* target definition */ 685 #define DMPGL_2_0_FINAL 1 686 687 /* error code */ 688 #define GL_ERROR_SYSBASE_DMP 0x8000 689 #define GL_ERROR_8000_DMP (GL_ERROR_SYSBASE_DMP + 0x0000) 690 #define GL_ERROR_8001_DMP (GL_ERROR_SYSBASE_DMP + 0x0001) 691 #define GL_ERROR_8002_DMP (GL_ERROR_SYSBASE_DMP + 0x0002) 692 #define GL_ERROR_8003_DMP (GL_ERROR_SYSBASE_DMP + 0x0003) 693 #define GL_ERROR_8004_DMP (GL_ERROR_SYSBASE_DMP + 0x0004) 694 #define GL_ERROR_8005_DMP (GL_ERROR_SYSBASE_DMP + 0x0005) 695 #define GL_ERROR_8006_DMP (GL_ERROR_SYSBASE_DMP + 0x0006) 696 #define GL_ERROR_8007_DMP (GL_ERROR_SYSBASE_DMP + 0x0007) 697 #define GL_ERROR_8008_DMP (GL_ERROR_SYSBASE_DMP + 0x0008) 698 #define GL_ERROR_8009_DMP (GL_ERROR_SYSBASE_DMP + 0x0009) 699 #define GL_ERROR_800A_DMP (GL_ERROR_SYSBASE_DMP + 0x000A) 700 #define GL_ERROR_800B_DMP (GL_ERROR_SYSBASE_DMP + 0x000B) 701 #define GL_ERROR_800C_DMP (GL_ERROR_SYSBASE_DMP + 0x000C) 702 #define GL_ERROR_800D_DMP (GL_ERROR_SYSBASE_DMP + 0x000D) 703 #define GL_ERROR_800E_DMP (GL_ERROR_SYSBASE_DMP + 0x000E) 704 #define GL_ERROR_800F_DMP (GL_ERROR_SYSBASE_DMP + 0x000F) 705 #define GL_ERROR_8010_DMP (GL_ERROR_SYSBASE_DMP + 0x0010) 706 #define GL_ERROR_8011_DMP (GL_ERROR_SYSBASE_DMP + 0x0011) 707 #define GL_ERROR_8012_DMP (GL_ERROR_SYSBASE_DMP + 0x0012) 708 #define GL_ERROR_8013_DMP (GL_ERROR_SYSBASE_DMP + 0x0013) 709 #define GL_ERROR_8014_DMP (GL_ERROR_SYSBASE_DMP + 0x0014) 710 #define GL_ERROR_8015_DMP (GL_ERROR_SYSBASE_DMP + 0x0015) 711 #define GL_ERROR_8016_DMP (GL_ERROR_SYSBASE_DMP + 0x0016) 712 #define GL_ERROR_8017_DMP (GL_ERROR_SYSBASE_DMP + 0x0017) 713 #define GL_ERROR_8018_DMP (GL_ERROR_SYSBASE_DMP + 0x0018) 714 #define GL_ERROR_8019_DMP (GL_ERROR_SYSBASE_DMP + 0x0019) 715 #define GL_ERROR_801A_DMP (GL_ERROR_SYSBASE_DMP + 0x001A) 716 #define GL_ERROR_801B_DMP (GL_ERROR_SYSBASE_DMP + 0x001B) 717 #define GL_ERROR_801C_DMP (GL_ERROR_SYSBASE_DMP + 0x001C) 718 #define GL_ERROR_801D_DMP (GL_ERROR_SYSBASE_DMP + 0x001D) 719 #define GL_ERROR_801E_DMP (GL_ERROR_SYSBASE_DMP + 0x001E) 720 #define GL_ERROR_801F_DMP (GL_ERROR_SYSBASE_DMP + 0x001F) 721 #define GL_ERROR_8020_DMP (GL_ERROR_SYSBASE_DMP + 0x0020) 722 #define GL_ERROR_8021_DMP (GL_ERROR_SYSBASE_DMP + 0x0021) 723 #define GL_ERROR_8022_DMP (GL_ERROR_SYSBASE_DMP + 0x0022) 724 #define GL_ERROR_8023_DMP (GL_ERROR_SYSBASE_DMP + 0x0023) 725 #define GL_ERROR_8024_DMP (GL_ERROR_SYSBASE_DMP + 0x0024) 726 #define GL_ERROR_8025_DMP (GL_ERROR_SYSBASE_DMP + 0x0025) 727 #define GL_ERROR_8026_DMP (GL_ERROR_SYSBASE_DMP + 0x0026) 728 #define GL_ERROR_8027_DMP (GL_ERROR_SYSBASE_DMP + 0x0027) 729 #define GL_ERROR_8028_DMP (GL_ERROR_SYSBASE_DMP + 0x0028) 730 #define GL_ERROR_8029_DMP (GL_ERROR_SYSBASE_DMP + 0x0029) 731 #define GL_ERROR_802A_DMP (GL_ERROR_SYSBASE_DMP + 0x002A) 732 #define GL_ERROR_802B_DMP (GL_ERROR_SYSBASE_DMP + 0x002B) 733 #define GL_ERROR_802C_DMP (GL_ERROR_SYSBASE_DMP + 0x002C) 734 #define GL_ERROR_802D_DMP (GL_ERROR_SYSBASE_DMP + 0x002D) 735 #define GL_ERROR_802E_DMP (GL_ERROR_SYSBASE_DMP + 0x002E) 736 #define GL_ERROR_802F_DMP (GL_ERROR_SYSBASE_DMP + 0x002F) 737 #define GL_ERROR_8030_DMP (GL_ERROR_SYSBASE_DMP + 0x0030) 738 #define GL_ERROR_8031_DMP (GL_ERROR_SYSBASE_DMP + 0x0031) 739 #define GL_ERROR_8032_DMP (GL_ERROR_SYSBASE_DMP + 0x0032) 740 #define GL_ERROR_8033_DMP (GL_ERROR_SYSBASE_DMP + 0x0033) 741 #define GL_ERROR_8034_DMP (GL_ERROR_SYSBASE_DMP + 0x0034) 742 #define GL_ERROR_8035_DMP (GL_ERROR_SYSBASE_DMP + 0x0035) 743 #define GL_ERROR_8036_DMP (GL_ERROR_SYSBASE_DMP + 0x0036) 744 #define GL_ERROR_8037_DMP (GL_ERROR_SYSBASE_DMP + 0x0037) 745 #define GL_ERROR_8038_DMP (GL_ERROR_SYSBASE_DMP + 0x0038) 746 #define GL_ERROR_8039_DMP (GL_ERROR_SYSBASE_DMP + 0x0039) 747 #define GL_ERROR_803A_DMP (GL_ERROR_SYSBASE_DMP + 0x003A) 748 #define GL_ERROR_803B_DMP (GL_ERROR_SYSBASE_DMP + 0x003B) 749 #define GL_ERROR_803C_DMP (GL_ERROR_SYSBASE_DMP + 0x003C) 750 #define GL_ERROR_803D_DMP (GL_ERROR_SYSBASE_DMP + 0x003D) 751 #define GL_ERROR_803E_DMP (GL_ERROR_SYSBASE_DMP + 0x003E) 752 #define GL_ERROR_803F_DMP (GL_ERROR_SYSBASE_DMP + 0x003F) 753 #define GL_ERROR_8040_DMP (GL_ERROR_SYSBASE_DMP + 0x0040) 754 #define GL_ERROR_8041_DMP (GL_ERROR_SYSBASE_DMP + 0x0041) 755 #define GL_ERROR_8042_DMP (GL_ERROR_SYSBASE_DMP + 0x0042) 756 #define GL_ERROR_8043_DMP (GL_ERROR_SYSBASE_DMP + 0x0043) 757 #define GL_ERROR_8044_DMP (GL_ERROR_SYSBASE_DMP + 0x0044) 758 #define GL_ERROR_8045_DMP (GL_ERROR_SYSBASE_DMP + 0x0045) 759 #define GL_ERROR_8046_DMP (GL_ERROR_SYSBASE_DMP + 0x0046) 760 #define GL_ERROR_8047_DMP (GL_ERROR_SYSBASE_DMP + 0x0047) 761 #define GL_ERROR_8048_DMP (GL_ERROR_SYSBASE_DMP + 0x0048) 762 #define GL_ERROR_8049_DMP (GL_ERROR_SYSBASE_DMP + 0x0049) 763 #define GL_ERROR_804A_DMP (GL_ERROR_SYSBASE_DMP + 0x004A) 764 #define GL_ERROR_804B_DMP (GL_ERROR_SYSBASE_DMP + 0x004B) 765 #define GL_ERROR_804C_DMP (GL_ERROR_SYSBASE_DMP + 0x004C) 766 #define GL_ERROR_804D_DMP (GL_ERROR_SYSBASE_DMP + 0x004D) 767 #define GL_ERROR_804E_DMP (GL_ERROR_SYSBASE_DMP + 0x004E) 768 #define GL_ERROR_804F_DMP (GL_ERROR_SYSBASE_DMP + 0x004F) 769 #define GL_ERROR_8050_DMP (GL_ERROR_SYSBASE_DMP + 0x0050) 770 #define GL_ERROR_8051_DMP (GL_ERROR_SYSBASE_DMP + 0x0051) 771 #define GL_ERROR_8052_DMP (GL_ERROR_SYSBASE_DMP + 0x0052) 772 #define GL_ERROR_8053_DMP (GL_ERROR_SYSBASE_DMP + 0x0053) 773 #define GL_ERROR_8054_DMP (GL_ERROR_SYSBASE_DMP + 0x0054) 774 #define GL_ERROR_8055_DMP (GL_ERROR_SYSBASE_DMP + 0x0055) 775 #define GL_ERROR_8056_DMP (GL_ERROR_SYSBASE_DMP + 0x0056) 776 #define GL_ERROR_8057_DMP (GL_ERROR_SYSBASE_DMP + 0x0057) 777 #define GL_ERROR_8058_DMP (GL_ERROR_SYSBASE_DMP + 0x0058) 778 #define GL_ERROR_8059_DMP (GL_ERROR_SYSBASE_DMP + 0x0059) 779 #define GL_ERROR_805A_DMP (GL_ERROR_SYSBASE_DMP + 0x005A) 780 #define GL_ERROR_805B_DMP (GL_ERROR_SYSBASE_DMP + 0x005B) 781 #define GL_ERROR_805C_DMP (GL_ERROR_SYSBASE_DMP + 0x005C) 782 #define GL_ERROR_805D_DMP (GL_ERROR_SYSBASE_DMP + 0x005D) 783 #define GL_ERROR_805E_DMP (GL_ERROR_SYSBASE_DMP + 0x005E) 784 #define GL_ERROR_805F_DMP (GL_ERROR_SYSBASE_DMP + 0x005F) 785 #define GL_ERROR_8060_DMP (GL_ERROR_SYSBASE_DMP + 0x0060) 786 #define GL_ERROR_8061_DMP (GL_ERROR_SYSBASE_DMP + 0x0061) 787 #define GL_ERROR_8062_DMP (GL_ERROR_SYSBASE_DMP + 0x0062) 788 #define GL_ERROR_8063_DMP (GL_ERROR_SYSBASE_DMP + 0x0063) 789 #define GL_ERROR_8064_DMP (GL_ERROR_SYSBASE_DMP + 0x0064) 790 #define GL_ERROR_8065_DMP (GL_ERROR_SYSBASE_DMP + 0x0065) 791 #define GL_ERROR_8066_DMP (GL_ERROR_SYSBASE_DMP + 0x0066) 792 #define GL_ERROR_8067_DMP (GL_ERROR_SYSBASE_DMP + 0x0067) 793 #define GL_ERROR_8068_DMP (GL_ERROR_SYSBASE_DMP + 0x0068) 794 #define GL_ERROR_8069_DMP (GL_ERROR_SYSBASE_DMP + 0x0069) 795 #define GL_ERROR_806A_DMP (GL_ERROR_SYSBASE_DMP + 0x006A) 796 #define GL_ERROR_806B_DMP (GL_ERROR_SYSBASE_DMP + 0x006B) 797 #define GL_ERROR_806C_DMP (GL_ERROR_SYSBASE_DMP + 0x006C) 798 #define GL_ERROR_806D_DMP (GL_ERROR_SYSBASE_DMP + 0x006D) 799 #define GL_ERROR_806E_DMP (GL_ERROR_SYSBASE_DMP + 0x006E) 800 #define GL_ERROR_806F_DMP (GL_ERROR_SYSBASE_DMP + 0x006F) 801 #define GL_ERROR_8070_DMP (GL_ERROR_SYSBASE_DMP + 0x0070) 802 #define GL_ERROR_8071_DMP (GL_ERROR_SYSBASE_DMP + 0x0071) 803 #define GL_ERROR_8072_DMP (GL_ERROR_SYSBASE_DMP + 0x0072) 804 #define GL_ERROR_8073_DMP (GL_ERROR_SYSBASE_DMP + 0x0073) 805 #define GL_ERROR_8074_DMP (GL_ERROR_SYSBASE_DMP + 0x0074) 806 #define GL_ERROR_8075_DMP (GL_ERROR_SYSBASE_DMP + 0x0075) 807 #define GL_ERROR_8076_DMP (GL_ERROR_SYSBASE_DMP + 0x0076) 808 #define GL_ERROR_8077_DMP (GL_ERROR_SYSBASE_DMP + 0x0077) 809 #define GL_ERROR_8078_DMP (GL_ERROR_SYSBASE_DMP + 0x0078) 810 #define GL_ERROR_8079_DMP (GL_ERROR_SYSBASE_DMP + 0x0079) 811 #define GL_ERROR_807A_DMP (GL_ERROR_SYSBASE_DMP + 0x007A) 812 #define GL_ERROR_807B_DMP (GL_ERROR_SYSBASE_DMP + 0x007B) 813 #define GL_ERROR_807C_DMP (GL_ERROR_SYSBASE_DMP + 0x007C) 814 #define GL_ERROR_807D_DMP (GL_ERROR_SYSBASE_DMP + 0x007D) 815 #define GL_ERROR_807E_DMP (GL_ERROR_SYSBASE_DMP + 0x007E) 816 #define GL_ERROR_807F_DMP (GL_ERROR_SYSBASE_DMP + 0x007F) 817 #define GL_ERROR_8080_DMP (GL_ERROR_SYSBASE_DMP + 0x0080) 818 #define GL_ERROR_8081_DMP (GL_ERROR_SYSBASE_DMP + 0x0081) 819 #define GL_ERROR_8082_DMP (GL_ERROR_SYSBASE_DMP + 0x0082) 820 #define GL_ERROR_8083_DMP (GL_ERROR_SYSBASE_DMP + 0x0083) 821 #define GL_ERROR_8084_DMP (GL_ERROR_SYSBASE_DMP + 0x0084) 822 #define GL_ERROR_8085_DMP (GL_ERROR_SYSBASE_DMP + 0x0085) 823 #define GL_ERROR_8086_DMP (GL_ERROR_SYSBASE_DMP + 0x0086) 824 #define GL_ERROR_8087_DMP (GL_ERROR_SYSBASE_DMP + 0x0087) 825 #define GL_ERROR_8088_DMP (GL_ERROR_SYSBASE_DMP + 0x0088) 826 #define GL_ERROR_8089_DMP (GL_ERROR_SYSBASE_DMP + 0x0089) 827 #define GL_ERROR_808A_DMP (GL_ERROR_SYSBASE_DMP + 0x008A) 828 #define GL_ERROR_808B_DMP (GL_ERROR_SYSBASE_DMP + 0x008B) 829 #define GL_ERROR_808C_DMP (GL_ERROR_SYSBASE_DMP + 0x008C) 830 #define GL_ERROR_808D_DMP (GL_ERROR_SYSBASE_DMP + 0x008D) 831 #define GL_ERROR_808E_DMP (GL_ERROR_SYSBASE_DMP + 0x008E) 832 #define GL_ERROR_808F_DMP (GL_ERROR_SYSBASE_DMP + 0x008F) 833 #define GL_ERROR_8090_DMP (GL_ERROR_SYSBASE_DMP + 0x0090) 834 #define GL_ERROR_8091_DMP (GL_ERROR_SYSBASE_DMP + 0x0091) 835 836 #define GL_ERROR_SYS2BASE_DMP 0x9000 837 #define GL_ERROR_9000_DMP (GL_ERROR_SYS2BASE_DMP + 0x0000) 838 #define GL_ERROR_9001_DMP (GL_ERROR_SYS2BASE_DMP + 0x0001) 839 #define GL_ERROR_9002_DMP (GL_ERROR_SYS2BASE_DMP + 0x0002) 840 #define GL_ERROR_9003_DMP (GL_ERROR_SYS2BASE_DMP + 0x0003) 841 842 #define GL_ERROR_COMMANDBUFFER_FULL_DMP 0x9800 843 #define GL_ERROR_COMMANDREQUEST_FULL_DMP 0x9801 844 845 /* extension to get additional information */ 846 #define GL_TEXTURE_DATA_ADDR_DMP 0x6790 847 #define GL_BUFFER_DATA_ADDR_DMP 0x6791 848 #define GL_RENDERBUFFER_DATA_ADDR_DMP 0x6792 849 GL_APICALL void GL_APIENTRY glGetUniformInfoDMP(GLint location, GLenum* shadertype, GLenum* type, GLint* regindex, GLint* regsize, GLbitfield* regcompmask); 850 GL_APICALL GLuint GL_APIENTRY glGetBoolConstantDMP(GLuint program, GLenum type); 851 GL_APICALL void GL_APIENTRY glGetIntConstantDMP(GLuint program, GLenum type, GLint* value); 852 GL_APICALL void GL_APIENTRY glGetFloatConstantDMP(GLuint program, GLenum type, GLint index, GLint* value); 853 GL_APICALL GLint GL_APIENTRY glGetInputRegisterIndexDMP(GLuint program, GLint index); 854 GL_APICALL GLuint GL_APIENTRY glGetInputRegisterNumDMP(GLuint program, GLenum type); 855 GL_APICALL GLboolean GL_APIENTRY glIsGeometryShaderAttachedDMP(GLuint program); 856 GL_APICALL GLuint GL_APIENTRY glGetEntryAddressDMP(GLuint program, GLenum type); 857 GL_APICALL void GL_APIENTRY glGetVertexOutputRegisterNumDMP(GLuint program, GLuint* num, GLuint* mask); 858 GL_APICALL void GL_APIENTRY glGetShaderOutputRegisterNumDMP(GLuint program, GLuint* num, GLuint* mask); 859 GL_APICALL void GL_APIENTRY glGetShaderOutputRegisterMapDMP(GLuint program, GLuint* outputformat); 860 GL_APICALL GLuint GL_APIENTRY glGetGeometryDataModeDMP(GLuint program); 861 GL_APICALL GLuint GL_APIENTRY glGetGeometryMainVertexNumDMP(GLuint program); 862 GL_APICALL GLuint GL_APIENTRY glGetGeometryPatchSizeDMP(GLuint program); 863 GL_APICALL GLuint GL_APIENTRY glGetGeometryStartIndexDMP(GLuint program); 864 865 /* internalformat to copy depth stencil buffer */ 866 #define GL_DEPTH_STENCIL_COPY_DMP 0x67A0 867 868 #ifdef __cplusplus 869 } 870 #endif 871 872 #endif /* __gl2ext_h_ */ 873