From 3f05374574db7d04ac920a93545734c9013f5ec4 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 25 May 2011 12:51:05 -0700 Subject: [PATCH 001/145] i965: Drop INTEL_CONFORMANCE=2 fallback code. This was just a duplicate of no_rast=true driconf option, which is relatively standard across drivers. --- src/mesa/drivers/dri/i965/brw_draw.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index bcfd678a924..6c52bd52aa4 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -283,9 +283,6 @@ static GLboolean check_fallbacks( struct brw_context *brw, if (brw->intel.conformance_mode == 0) return GL_FALSE; - if (brw->intel.conformance_mode == 2) - return GL_TRUE; - if (ctx->Polygon.SmoothFlag) { for (i = 0; i < nr_prims; i++) if (reduced_prim[prim[i].mode] == GL_TRIANGLES) From d8b733643d21001068c25ee9b97a3cd5bb4684a2 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 25 May 2011 12:51:47 -0700 Subject: [PATCH 002/145] i965: Drop strict conformance fallback for GL_POLYGON_SMOOTH. From my reading of the GL 2.1 spec, no antialiasing is strictly conformant for polygon smoothing. Yes, it's absurd, but then, hardware doesn't support this so maybe it's not so absurd. --- src/mesa/drivers/dri/i965/brw_draw.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 6c52bd52aa4..44d3e1b6c24 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -283,12 +283,6 @@ static GLboolean check_fallbacks( struct brw_context *brw, if (brw->intel.conformance_mode == 0) return GL_FALSE; - if (ctx->Polygon.SmoothFlag) { - for (i = 0; i < nr_prims; i++) - if (reduced_prim[prim[i].mode] == GL_TRIANGLES) - return GL_TRUE; - } - /* BRW hardware will do AA lines, but they are non-conformant it * seems. TBD whether we keep this fallback: */ From d313346db6b70d27ed985e27df4fbd44f376efa0 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 25 May 2011 12:54:49 -0700 Subject: [PATCH 003/145] i965: Drop strict conformance fallback for GL_LINE_SMOOTH. We do have hardware antialised lines. If we care, we should actually fix them to be conformant (or as close as possible) instead of using this knob to fool testcases using swrast. For some interesting reading on the state of GL_*_SMOOTH across several drivers, see: http://homepage.mac.com/arekkusu/bugs/invariance/HWAA.html --- src/mesa/drivers/dri/i965/brw_draw.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 44d3e1b6c24..b2e89bad666 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -283,15 +283,6 @@ static GLboolean check_fallbacks( struct brw_context *brw, if (brw->intel.conformance_mode == 0) return GL_FALSE; - /* BRW hardware will do AA lines, but they are non-conformant it - * seems. TBD whether we keep this fallback: - */ - if (ctx->Line.SmoothFlag) { - for (i = 0; i < nr_prims; i++) - if (reduced_prim[prim[i].mode] == GL_LINES) - return GL_TRUE; - } - /* Stipple -- these fallbacks could be resolved with a little * bit of work? */ From e9868979c5373501234392a38a786d5a92dc47b5 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 25 May 2011 12:58:21 -0700 Subject: [PATCH 004/145] i965: Drop strict conformance fallback for GL_LINE_STIPPLE. We implement line stipples, just not *quite* correctly. We have a piglit testcase to use when we want to fix it, if we do. Until then, don't lie to our test suites. --- src/mesa/drivers/dri/i965/brw_draw.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index b2e89bad666..103c7740c8d 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -283,24 +283,6 @@ static GLboolean check_fallbacks( struct brw_context *brw, if (brw->intel.conformance_mode == 0) return GL_FALSE; - /* Stipple -- these fallbacks could be resolved with a little - * bit of work? - */ - if (ctx->Line.StippleFlag) { - for (i = 0; i < nr_prims; i++) { - /* GS doesn't get enough information to know when to reset - * the stipple counter?!? - */ - if (prim[i].mode == GL_LINE_LOOP || prim[i].mode == GL_LINE_STRIP) - return GL_TRUE; - - if (prim[i].mode == GL_POLYGON && - (ctx->Polygon.FrontMode == GL_LINE || - ctx->Polygon.BackMode == GL_LINE)) - return GL_TRUE; - } - } - if (ctx->Point.SmoothFlag) { for (i = 0; i < nr_prims; i++) if (prim[i].mode == GL_POINTS) From 836a595594a5500945c5d97d6f63c245ebbe34a8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 25 May 2011 12:59:25 -0700 Subject: [PATCH 005/145] i965: Drop remaining strict conformance fallback for GL_POINT_SMOOTH. We actually could do this in hardware in the fragment shader using gl_PointCoord and the point's size. --- src/mesa/drivers/dri/i965/brw_draw.c | 30 ---------------------------- 1 file changed, 30 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 103c7740c8d..6144f0a2bce 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -266,33 +266,6 @@ static void brw_merge_inputs( struct brw_context *brw, brw->state.dirty.brw |= BRW_NEW_INPUT_DIMENSIONS; } -/* XXX: could split the primitive list to fallback only on the - * non-conformant primitives. - */ -static GLboolean check_fallbacks( struct brw_context *brw, - const struct _mesa_prim *prim, - GLuint nr_prims ) -{ - struct gl_context *ctx = &brw->intel.ctx; - GLuint i; - - /* If we don't require strict OpenGL conformance, never - * use fallbacks. If we're forcing fallbacks, always - * use fallfacks. - */ - if (brw->intel.conformance_mode == 0) - return GL_FALSE; - - if (ctx->Point.SmoothFlag) { - for (i = 0; i < nr_prims; i++) - if (prim[i].mode == GL_POINTS) - return GL_TRUE; - } - - /* Nothing stopping us from the fast path now */ - return GL_FALSE; -} - /* May fail if out of video memory for texture or vbo upload, or on * fallback conditions. */ @@ -322,9 +295,6 @@ static GLboolean brw_try_draw_prims( struct gl_context *ctx, */ brw_validate_textures( brw ); - if (check_fallbacks(brw, prim, nr_prims)) - return GL_FALSE; - /* Bind all inputs, derive varying and size information: */ brw_merge_inputs( brw, arrays ); From 164108e3db5ba09d8e0605f88aa17dab83b68742 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 1 Jun 2011 13:39:39 -0700 Subject: [PATCH 006/145] glx: Fix use-before-null-check in dri2InvalidateBuffers(). The compiler used our dereference here to skip the NULL check below. Fixes window resize in "jconsole -J-Dsun.java2d.opengl=True" under OpenJDK 6. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37766 Reviewed-by: Matt Turner Reviewed-by: Ian Romanick --- src/glx/dri2_glx.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index b9f6f7fcf03..69b47ae45e2 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -675,9 +675,14 @@ dri2InvalidateBuffers(Display *dpy, XID drawable) { __GLXDRIdrawable *pdraw = dri2GetGlxDrawableFromXDrawableId(dpy, drawable); - struct dri2_screen *psc = (struct dri2_screen *) pdraw->psc; + struct dri2_screen *psc; struct dri2_drawable *pdp = (struct dri2_drawable *) pdraw; + if (!pdraw) + return; + + psc = (struct dri2_screen *) pdraw->psc; + #if __DRI2_FLUSH_VERSION >= 3 if (pdraw && psc->f && psc->f->base.version >= 3 && psc->f->invalidate) psc->f->invalidate(pdp->driDrawable); From a513bee2f247d7cf9cd8e9c3d50f2bd48f136776 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 1 Jun 2011 13:00:14 -0700 Subject: [PATCH 007/145] meta: Don't do srgb to linear decode when blitting srgb textures. Fixes the GL_SRGB8_ALPHA8 -> GL_RGBA8 blits in fbo-srgb-blit.c Reviewed-by: Brian Paul --- src/mesa/drivers/common/meta.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 08b6024639f..a0d4b9e7cf7 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -1186,6 +1186,7 @@ blitframebuffer_texture(struct gl_context *ctx, const GLint maxLevelSave = texObj->MaxLevel; const GLenum wrapSSave = texObj->Sampler.WrapS; const GLenum wrapTSave = texObj->Sampler.WrapT; + const GLenum srgbSave = texObj->Sampler.sRGBDecode; const GLenum target = texObj->Target; if (drawAtt->Texture == readAtt->Texture) { @@ -1217,6 +1218,12 @@ blitframebuffer_texture(struct gl_context *ctx, } _mesa_TexParameteri(target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); _mesa_TexParameteri(target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); + + if (ctx->Extensions.EXT_texture_sRGB_decode) { + _mesa_TexParameteri(target, GL_TEXTURE_SRGB_DECODE_EXT, + GL_SKIP_DECODE_EXT); + } + _mesa_TexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); _mesa_set_enable(ctx, target, GL_TRUE); @@ -1278,6 +1285,9 @@ blitframebuffer_texture(struct gl_context *ctx, } _mesa_TexParameteri(target, GL_TEXTURE_WRAP_S, wrapSSave); _mesa_TexParameteri(target, GL_TEXTURE_WRAP_T, wrapTSave); + if (ctx->Extensions.EXT_texture_sRGB_decode) { + _mesa_TexParameteri(target, GL_TEXTURE_SRGB_DECODE_EXT, srgbSave); + } /* Done with color buffer */ mask &= ~GL_COLOR_BUFFER_BIT; From e8ea8793e3c65f7feef063c6edc7b86bf0e66997 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 1 Jun 2011 13:15:28 -0700 Subject: [PATCH 008/145] meta: Don't do sRGB encode for framebuffer blits on sRGB-enabled framebuffers. Fixes fbo-srgb-blit. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=35373 Reviewed-by: Brian Paul --- src/mesa/drivers/common/meta.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index a0d4b9e7cf7..979926a7e8f 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -1187,6 +1187,7 @@ blitframebuffer_texture(struct gl_context *ctx, const GLenum wrapSSave = texObj->Sampler.WrapS; const GLenum wrapTSave = texObj->Sampler.WrapT; const GLenum srgbSave = texObj->Sampler.sRGBDecode; + const GLenum fbo_srgb_save = ctx->Color.sRGBEnabled; const GLenum target = texObj->Target; if (drawAtt->Texture == readAtt->Texture) { @@ -1219,10 +1220,12 @@ blitframebuffer_texture(struct gl_context *ctx, _mesa_TexParameteri(target, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); _mesa_TexParameteri(target, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); + /* Always do our blits with no sRGB decode or encode.*/ if (ctx->Extensions.EXT_texture_sRGB_decode) { _mesa_TexParameteri(target, GL_TEXTURE_SRGB_DECODE_EXT, GL_SKIP_DECODE_EXT); } + _mesa_Disable(GL_FRAMEBUFFER_SRGB_EXT); _mesa_TexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); _mesa_set_enable(ctx, target, GL_TRUE); @@ -1288,6 +1291,9 @@ blitframebuffer_texture(struct gl_context *ctx, if (ctx->Extensions.EXT_texture_sRGB_decode) { _mesa_TexParameteri(target, GL_TEXTURE_SRGB_DECODE_EXT, srgbSave); } + if (ctx->Extensions.EXT_texture_sRGB_decode && fbo_srgb_save) { + _mesa_Enable(GL_FRAMEBUFFER_SRGB_EXT); + } /* Done with color buffer */ mask &= ~GL_COLOR_BUFFER_BIT; From 8e89d0bea7df553a6c937aaa87b1a3c179f69599 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 5 Jun 2011 17:14:04 -0400 Subject: [PATCH 009/145] apple: Update GL specs Signed-off-by: Jeremy Huddleston --- src/glx/apple/specs/enum.spec | 709 ++++- src/glx/apple/specs/enumext.spec | 507 +++- src/glx/apple/specs/gl.spec | 3692 ++++++++++++++++++++++++--- src/glx/apple/specs/gl.tm | 12 +- src/glx/apple/specs/glxenum.spec | 73 +- src/glx/apple/specs/glxenumext.spec | 56 +- src/glx/apple/specs/glxext.spec | 166 +- 7 files changed, 4757 insertions(+), 458 deletions(-) diff --git a/src/glx/apple/specs/enum.spec b/src/glx/apple/specs/enum.spec index 20f96f24180..811b7d5fe08 100644 --- a/src/glx/apple/specs/enum.spec +++ b/src/glx/apple/specs/enum.spec @@ -3,7 +3,7 @@ # It is an extremely important file. Do not mess with it unless # you know what you're doing and have permission to do so. # -# $Revision: 10971 $ on $Date: 2010-04-09 02:45:33 -0700 (Fri, 09 Apr 2010) $ +# $Revision: 14384 $ on $Date: 2011-04-05 23:05:03 -0700 (Tue, 05 Apr 2011) $ ############################################################################### # @@ -257,8 +257,29 @@ ARB_map_buffer_range enum: ############################################################################### +# CONTEXT_FLAGS_ARB bits (should be shared with WGL and GLX) + VERSION_3_0 enum: - CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x0001 # VERSION_3_0 + CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x00000001 # VERSION_3_0 + +# 0x00000001 used in WGL/GLX for CONTEXT_DEBUG_BIT_ARB, while +# 0x00000002 used in WGL/GLX for CONTEXT_FORWARD_COMPATIBLE_BIT_ARB. Oops. +# We do not currently expose CONTEXT_FLAG_DEBUG_BIT in GL, at least. + +ARB_robustness enum: + CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB = 0x00000004 # ARB_robustness + +############################################################################### + +# UseProgramStages stage bits + +ARB_separate_shader_objects enum: (additional; see below) + VERTEX_SHADER_BIT = 0x00000001 + FRAGMENT_SHADER_BIT = 0x00000002 + GEOMETRY_SHADER_BIT = 0x00000004 + TESS_CONTROL_SHADER_BIT = 0x00000008 + TESS_EVALUATION_SHADER_BIT = 0x00000010 + ALL_SHADER_BITS = 0xFFFFFFFF ############################################################################### @@ -298,7 +319,13 @@ NV_geometry_program4 enum: (additional; see below) TRIANGLES_ADJACENCY_EXT = 0x000C TRIANGLE_STRIP_ADJACENCY_EXT = 0x000D -# BeginMode_future_use: 0x000E +ARB_tessellation_shader enum: + PATCHES = 0x000E + +NV_gpu_shader5 enum: + use ARB_tessellation_shader PATCHES + +# BeginMode_future_use: 0x000F ############################################################################### @@ -1399,6 +1426,9 @@ OES_element_index_uint enum: (OpenGL ES only) OES_texture_float enum: (OpenGL ES only; additional; see below) # use DataType FLOAT +EXT_vertex_attrib_64bit enum: + use VERSION_1_1 DOUBLE + VERSION_3_0 enum: # use ARB_half_float_vertex HALF_FLOAT @@ -1414,16 +1444,23 @@ NV_half_float enum: APPLE_float_pixels enum: (additional; see below) HALF_APPLE = 0x140B +ARB_ES2_compatibility enum: (additional; see below) + FIXED = 0x140C + OES_fixed_point enum: (OpenGL ES only) FIXED_OES = 0x140C # Leave a gap to preserve even/odd int/uint token values # ARB_future_use: 0x140D -# Future NV extension (Khronos bug 5172) +NV_gpu_shader5 enum: INT64_NV = 0x140E UNSIGNED_INT64_NV = 0x140F +NV_vertex_attrib_integer_64bit enum: + use NV_gpu_shader5 INT64_NV + use NV_gpu_shader5 UNSIGNED_INT64_NV + ############################################################################### ListNameType enum: @@ -2513,6 +2550,10 @@ EXT_multisample enum: SAMPLE_PATTERN_EXT = 0x80AC # 1 I MULTISAMPLE_BIT_EXT = 0x20000000 +# Reuses SAMPLES enum as COVERAGE_SAMPLES +NV_multisample_coverage enum: (additional; see below) + COVERAGE_SAMPLES_NV = 0x80A9 + ############################################################################### SGIS_sharpen_texture enum: @@ -3168,7 +3209,7 @@ EXT_shared_texture_palette enum: ############################################################################### -# ATI: 0x8200-0x820F (released by Microsoft 2002/9/16) +# ATI: 0x8200-0x820F (range released by Microsoft 2002/9/16) ATI_text_fragment_shader enum: TEXT_FRAGMENT_SHADER_ATI = 0x8200 @@ -3274,7 +3315,57 @@ ARB_texture_rg enum: (note: no ARB suffixes) ############################################################################### -# @@@ Any_vendor_future_use: 0x8240-0x82AF (released by Microsoft 2002/9/16) +# ARB: 0x8240-0x82AF (range released by Microsoft on 2002/9/16) + +ARB_cl_event enum: + SYNC_CL_EVENT_ARB = 0x8240 + SYNC_CL_EVENT_COMPLETE_ARB = 0x8241 + +ARB_debug_output enum: + DEBUG_OUTPUT_SYNCHRONOUS_ARB = 0x8242 + DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB = 0x8243 + DEBUG_CALLBACK_FUNCTION_ARB = 0x8244 + DEBUG_CALLBACK_USER_PARAM_ARB = 0x8245 + DEBUG_SOURCE_API_ARB = 0x8246 + DEBUG_SOURCE_WINDOW_SYSTEM_ARB = 0x8247 + DEBUG_SOURCE_SHADER_COMPILER_ARB = 0x8248 + DEBUG_SOURCE_THIRD_PARTY_ARB = 0x8249 + DEBUG_SOURCE_APPLICATION_ARB = 0x824A + DEBUG_SOURCE_OTHER_ARB = 0x824B + DEBUG_TYPE_ERROR_ARB = 0x824C + DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB = 0x824D + DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB = 0x824E + DEBUG_TYPE_PORTABILITY_ARB = 0x824F + DEBUG_TYPE_PERFORMANCE_ARB = 0x8250 + DEBUG_TYPE_OTHER_ARB = 0x8251 + +ARB_robustness enum: + LOSE_CONTEXT_ON_RESET_ARB = 0x8252 + GUILTY_CONTEXT_RESET_ARB = 0x8253 + INNOCENT_CONTEXT_RESET_ARB = 0x8254 + UNKNOWN_CONTEXT_RESET_ARB = 0x8255 + RESET_NOTIFICATION_STRATEGY_ARB = 0x8256 + +ARB_get_program_binary enum: (additional; see below) + PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257 + +ARB_separate_shader_objects enum: + PROGRAM_SEPARABLE = 0x8258 + ACTIVE_PROGRAM = 0x8259 + PROGRAM_PIPELINE_BINDING = 0x825A + +ARB_viewport_array enum: + MAX_VIEWPORTS = 0x825B + VIEWPORT_SUBPIXEL_BITS = 0x825C + VIEWPORT_BOUNDS_RANGE = 0x825D + LAYER_PROVOKING_VERTEX = 0x825E + VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F + UNDEFINED_VERTEX = 0x8260 + +ARB_robustness enum: (additional; see above) + NO_RESET_NOTIFICATION_ARB = 0x8261 + +# ARB_future_use: 0x8262-0x82AF ############################################################################### @@ -3520,8 +3611,10 @@ S3_s3tc enum: ############################################################################### +# SGI: 0x83C0-0x83EF (most of this could be reclaimed) + # Obsolete extension, never to be put in enumext.spec -# SGIS_multitexture: 0x83C0-0x83E5 +# SGIS_multitexture: 0x83C0-0x83CA # SELECTED_TEXTURE_SGIS = 0x83C0 # 1 I # SELECTED_TEXTURE_COORD_SET_SGIS = 0x83C1 # 1 I # SELECTED_TEXTURE_TRANSFORM_SGIS = 0x83C2 # 1 I @@ -3946,7 +4039,9 @@ ARB_texture_compression enum: # NVIDIA: 0x84F0-0x855F -# NV_future_use: 0x84F0-0x84F1 +ARB_tessellation_shader enum: + UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0 + UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1 NV_fence enum: ALL_COMPLETED_NV = 0x84F2 @@ -4114,14 +4209,11 @@ NV_vertex_array_range enum: MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520 VERTEX_ARRAY_RANGE_POINTER_NV = 0x8521 -# @@@ How does this interact with NV_vertex_array_range? APPLE_vertex_array_range enum: VERTEX_ARRAY_RANGE_APPLE = 0x851D VERTEX_ARRAY_RANGE_LENGTH_APPLE = 0x851E VERTEX_ARRAY_STORAGE_HINT_APPLE = 0x851F VERTEX_ARRAY_RANGE_POINTER_APPLE = 0x8521 - STORAGE_CACHED_APPLE = 0x85BE - STORAGE_SHARED_APPLE = 0x85BF NV_register_combiners enum: REGISTER_COMBINERS_NV = 0x8522 @@ -4338,10 +4430,8 @@ APPLE_client_storage enum: APPLE_object_purgeable enum: (additional; see below) BUFFER_OBJECT_APPLE = 0x85B3 -# APPLE_future_use: 0x85B4 - -## From Jeremy 2006/10/18 (Khronos bug 632) - unknown extension name -# STORAGE_CLIENT_APPLE = 0x85B4 +APPLE_vertex_array_range enum: (additional; see above): + STORAGE_CLIENT_APPLE = 0x85B4 VERSION_3_0 enum: use ARB_vertex_array_object VERTEX_ARRAY_BINDING @@ -4735,7 +4825,8 @@ NV_evaluators enum: MAX_MAP_TESSELLATION_NV = 0x86D6 MAX_RATIONAL_EVAL_ORDER_NV = 0x86D7 -# NV_future_use: 0x86D8 +NV_tessellation_program5 enum: + MAX_PROGRAM_PATCH_ATTRIBS_NV = 0x86D8 NV_texture_shader enum: OFFSET_TEXTURE_RECTANGLE_NV = 0x864C @@ -4812,12 +4903,17 @@ NV_texture_shader enum: TEXTURE_DT_SIZE_NV = 0x871E TEXTURE_MAG_SIZE_NV = 0x871F -NV_texture_shader2 enum: +NV_vdpau_interop enum: + SURFACE_STATE_NV = 0x86EB + +NV_texture_shader2 enum: (additional) DOT_PRODUCT_TEXTURE_3D_NV = 0x86EF -# NV_future_use: 0x86EB -# NV_future_use: 0x86FD -# NV_future_use: 0x8700 +NV_vdpau_interop enum: (additional; see above) + SURFACE_REGISTERED_NV = 0x86FD + +NV_vdpau_interop enum: (additional; see above) + SURFACE_MAPPED_NV = 0x8700 ############################################################################### @@ -4841,6 +4937,9 @@ AMD_program_binary_Z400 enum: (OpenGL ES only) OES_get_program_binary enum: (OpenGL ES only; additional; see below) PROGRAM_BINARY_LENGTH_OES = 0x8741 +ARB_get_program_binary enum: (additional; see below) + PROGRAM_BINARY_LENGTH = 0x8741 + ATI_texture_mirror_once enum: MIRROR_CLAMP_ATI = 0x8742 MIRROR_CLAMP_TO_EDGE_ATI = 0x8743 @@ -4926,12 +5025,6 @@ ATI_element_array enum: ELEMENT_ARRAY_TYPE_ATI = 0x8769 ELEMENT_ARRAY_POINTER_ATI = 0x876A -# @@@ (extends ATI_element_array, I think???) -APPLE_element_array enum: - ELEMENT_ARRAY_APPLE = 0x8768 - ELEMENT_ARRAY_TYPE_APPLE = 0x8769 - ELEMENT_ARRAY_POINTER_APPLE = 0x876A - ATI_vertex_streams enum: MAX_VERTEX_STREAMS_ATI = 0x876B VERTEX_STREAM0_ATI = 0x876C @@ -5095,6 +5188,10 @@ OES_get_program_binary enum: (OpenGL ES only; NUM_PROGRAM_BINARY_FORMATS_OES = 0x87FE PROGRAM_BINARY_FORMATS_OES = 0x87FF +ARB_get_program_binary enum: + NUM_PROGRAM_BINARY_FORMATS = 0x87FE + PROGRAM_BINARY_FORMATS = 0x87FF + VERSION_2_0 enum: (Promoted for OpenGL 2.0) STENCIL_BACK_FUNC = 0x8800 # VERSION_2_0 STENCIL_BACK_FAIL = 0x8801 # VERSION_2_0 @@ -5243,7 +5340,7 @@ ATI_draw_buffers enum: ATI_pixel_format_float enum: (really WGL_ATI_pixel_format_float) (additional; see above) COLOR_CLEAR_UNCLAMPED_VALUE_ATI = 0x8835 -# ATI_future_use: 0x8836-0x883F +# ATI_future_use: 0x8836-0x883C VERSION_2_0 enum: (Promoted for OpenGL 2.0) BLEND_EQUATION_ALPHA = 0x883D # VERSION_2_0 @@ -5255,6 +5352,11 @@ EXT_blend_equation_separate enum: OES_blend_equation_separate enum: (OpenGL ES only) BLEND_EQUATION_ALPHA_OES = 0x883D +# ATI_future_use: 0x883E + +AMD_sample_positions enum: + SUBSAMPLE_DISTANCE_AMD = 0x883F + ############################################################################### # OpenGL ARB: 0x8840-0x884F @@ -5384,7 +5486,11 @@ ARB_vertex_program enum: (additional; see above) MAX_VERTEX_ATTRIBS_ARB = 0x8869 VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886A -# NV_future_use: 0x886B-0x886D +# NV_future_use: 0x886B + +ARB_tessellation_shader enum: + MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C + MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D NV_copy_depth_to_color enum: DEPTH_STENCIL_TO_RGBA_NV = 0x886E @@ -5419,7 +5525,10 @@ NV_pixel_data_range enum: WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887C READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887D -# NV_future_use: 0x887E-0x887F +# NV_future_use: 0x887E + +ARB_gpu_shader5 enum: (additional; see below) + GEOMETRY_SHADER_INVOCATIONS = 0x887F NV_float_buffer enum: FLOAT_R_NV = 0x8880 @@ -5532,7 +5641,15 @@ OES_mapbuffer enum: (OpenGL ES only) BUFFER_MAPPED_OES = 0x88BC BUFFER_MAP_POINTER_OES = 0x88BD -# NV_future_use: 0x88BE +NV_shader_buffer_store enum: + use VERSION_1_5 READ_WRITE + use VERSION_1_5 WRITE_ONLY + +NV_vdpau_interop enum: (additional; see above) + WRITE_DISCARD_NV = 0x88BE + +ARB_timer_query enum: (additional; see below) + TIME_ELAPSED = 0x88BF EXT_timer_query enum: TIME_ELAPSED_EXT = 0x88BF @@ -5646,7 +5763,11 @@ NV_fragment_program2 enum: MAX_PROGRAM_LOOP_DEPTH_NV = 0x88F7 MAX_PROGRAM_LOOP_COUNT_NV = 0x88F8 -# NV_future_use: 0x88F9-0x88FC +ARB_blend_func_extended enum: + SRC1_COLOR = 0x88F9 + ONE_MINUS_SRC1_COLOR = 0x88FA + ONE_MINUS_SRC1_ALPHA = 0x88FB + MAX_DUAL_SOURCE_DRAW_BUFFERS = 0x88FC VERSION_3_0 enum: VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD # VERSION_3_0 @@ -5654,6 +5775,9 @@ VERSION_3_0 enum: NV_vertex_program4 enum: VERTEX_ATTRIB_ARRAY_INTEGER_NV = 0x88FD +VERSION_3_3 enum: + VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88FE # VERSION_3_3 + ARB_instanced_arrays enum: VERTEX_ATTRIB_ARRAY_DIVISOR_ARB = 0x88FE @@ -5697,7 +5821,8 @@ VERSION_3_2 enum: GEOMETRY_INPUT_TYPE = 0x8917 GEOMETRY_OUTPUT_TYPE = 0x8918 -# NV_future_use: 0x8919 +ARB_sampler_objects enum: + SAMPLER_BINDING = 0x8919 VERSION_3_0 enum: CLAMP_VERTEX_COLOR = 0x891A # VERSION_3_0 @@ -5711,7 +5836,9 @@ ARB_color_buffer_float enum: (additional; see above) CLAMP_READ_COLOR_ARB = 0x891C FIXED_ONLY_ARB = 0x891D -# NV_future_use: 0x891E-0x891F +NV_tessellation_program5 enum: + TESS_CONTROL_PROGRAM_NV = 0x891E + TESS_EVALUATION_PROGRAM_NV = 0x891F ############################################################################### @@ -5885,7 +6012,8 @@ APPLE_fence enum: DRAW_PIXELS_APPLE = 0x8A0A FENCE_APPLE = 0x8A0B -## From Jeremy 2006/10/18 (Khronos bug 632) - unknown extension name +# Enum values updated (Khronos bugs 5311, 632) +APPLE_element_array enum: ELEMENT_ARRAY_APPLE = 0x8A0C ELEMENT_ARRAY_TYPE_APPLE = 0x8A0D ELEMENT_ARRAY_POINTER_APPLE = 0x8A0E @@ -5896,9 +6024,6 @@ APPLE_float_pixels enum: # APPLE_future_use: 0x8A10 ## From Jeremy 2006/10/18 (Khronos bug 632) - unknown extension name # MIN_PBUFFER_VIEWPORT_DIMS_APPLE = 0x8A10 -# ELEMENT_BUFFER_BINDING_APPLE = 0x8A11 -# Apple says the extension that defined ELEMENT_BUFFER_BINDING_APPLE -# never shipped and there's no actual collision with UNIFORM_BUFFER VERSION_3_1 enum: use ARB_uniform_buffer_object UNIFORM_BUFFER @@ -6003,7 +6128,14 @@ ARB_uniform_buffer_object enum: UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46 INVALID_INDEX = 0xFFFFFFFFu -# APPLE_future_use: 0x8A47-0x8A7F +# APPLE_future_use: 0x8A47 + +EXT_texture_sRGB_decode enum: + TEXTURE_SRGB_DECODE_EXT = 0x8A48 + DECODE_EXT = 0x8A49 + SKIP_DECODE_EXT = 0x8A4A + +# APPLE_future_use: 0x8A4B-0x8A7F ############################################################################### @@ -6171,6 +6303,11 @@ OES_read_format enum: (OpenGL ES, also implemented in Mesa) IMPLEMENTATION_COLOR_READ_TYPE_OES = 0x8B9A IMPLEMENTATION_COLOR_READ_FORMAT_OES = 0x8B9B +# Also OpenGL ES +ARB_ES2_compatibility enum: (additional; see below) + IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A + IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B + OES_point_size_array enum: (OpenGL ES only; additional; see above) POINT_SIZE_ARRAY_OES = 0x8B9C @@ -6250,7 +6387,7 @@ IMG_texture_env_enhanced_fixed_function enum: (OpenGL ES only) FRAGMENT_ALPHA_MODULATE_IMG = 0x8C08 ADD_BLEND_IMG = 0x8C09 -IMG_shader_binary: (OpenGL ES only) +IMG_shader_binary enum: (OpenGL ES only) SGX_BINARY_IMG = 0x8C0A # IMG_future_use: 0x8C0B-0x8C0F @@ -6340,7 +6477,10 @@ EXT_texture_buffer_object enum: TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = 0x8C2D TEXTURE_BUFFER_FORMAT_EXT = 0x8C2E -# NV_future_use: 0x8C2F-0x8C35 +ARB_occlusion_query2 enum: + ANY_SAMPLES_PASSED = 0x8C2F + +# NV_future_use: 0x8C30-0x8C35 ARB_sample_shading enum: SAMPLE_SHADING_ARB = 0x8C36 @@ -6407,7 +6547,9 @@ EXT_texture_compression_latc enum: COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C72 COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C73 -# NV_future_use: 0x8C74-0x8C75 +NV_tessellation_program5 enum: + TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV = 0x8C74 + TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV = 0x8C75 #@@ separate extensions VERSION_3_0 enum: @@ -6517,6 +6659,11 @@ OES_framebuffer_object enum: (OpenGL ES only; additional; see below) FRAMEBUFFER_BINDING_OES = 0x8CA6 RENDERBUFFER_BINDING_OES = 0x8CA7 +# Aliases EXT_framebuffer_object enums above +ANGLE_framebuffer_blit enum: (OpenGL ES only; additional; see below) + FRAMEBUFFER_BINDING_ANGLE = 0x8CA6 + RENDERBUFFER_BINDING_ANGLE = 0x8CA7 + VERSION_3_0 enum: use ARB_framebuffer_object READ_FRAMEBUFFER use ARB_framebuffer_object DRAW_FRAMEBUFFER @@ -6527,6 +6674,11 @@ ARB_framebuffer_object enum: (note: no ARB suffixes) DRAW_FRAMEBUFFER = 0x8CA9 # VERSION_3_0 / ARB_fbo READ_FRAMEBUFFER_BINDING = 0x8CAA # VERSION_3_0 / ARB_fbo +# Aliases ARB_framebuffer_object enums above +ANGLE_framebuffer_blit enum: (OpenGL ES only; additional; see above) + READ_FRAMEBUFFER_ANGLE = 0x8CA8 + DRAW_FRAMEBUFFER_ANGLE = 0x8CA9 + EXT_framebuffer_blit enum: READ_FRAMEBUFFER_EXT = 0x8CA8 DRAW_FRAMEBUFFER_EXT = 0x8CA9 @@ -6539,6 +6691,10 @@ VERSION_3_0 enum: ARB_framebuffer_object enum: (note: no ARB suffixes) RENDERBUFFER_SAMPLES = 0x8CAB # VERSION_3_0 / ARB_fbo +# Aliases ARB_framebuffer_object enums above +ANGLE_framebuffer_multisample enum: (OpenGL ES only) + RENDERBUFFER_SAMPLES_ANGLE = 0x8CAB + EXT_framebuffer_multisample enum: RENDERBUFFER_SAMPLES_EXT = 0x8CAB @@ -6723,6 +6879,11 @@ ARB_framebuffer_object enum: (note: no ARB suffixes) FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56 # VERSION_3_0 / ARB_fbo MAX_SAMPLES = 0x8D57 # VERSION_3_0 / ARB_fbo +# Aliases ARB_framebuffer_object enums above +ANGLE_framebuffer_multisample enum: (OpenGL ES only; additional; see above) + FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE = 0x8D56 + MAX_SAMPLES_ANGLE = 0x8D57 + EXT_framebuffer_multisample enum: (additional; see above) FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT = 0x8D56 MAX_SAMPLES_EXT = 0x8D57 @@ -6837,7 +6998,8 @@ EXT_texture_integer enum: LUMINANCE_ALPHA_INTEGER_EXT = 0x8D9D RGBA_INTEGER_MODE_EXT = 0x8D9E -# NV_future_use: 0x8D9F +ARB_vertex_type_2_10_10_10_rev enum: + INT_2_10_10_10_REV = 0x8D9F NV_parameter_buffer_object enum: MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = 0x8DA0 @@ -6864,7 +7026,16 @@ NV_geometry_program4 enum: (additional; see above) FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8DA8 FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8DA9 -# NV_future_use: 0x8DAA +# The NEXT_BUFFER / SKIP_* tokens aren't in numerical order but +# since NVIDIA is allocating them, it doesn't have to be dealt +# with here. +NV_transform_feedback enum: (additional; see above) + LAYER_NV = 0x8DAA + NEXT_BUFFER_NV = -2 # Requires ARB_transform_feedback3 + SKIP_COMPONENTS4_NV = -3 # Requires ARB_transform_feedback3 + SKIP_COMPONENTS3_NV = -4 # Requires ARB_transform_feedback3 + SKIP_COMPONENTS2_NV = -5 # Requires ARB_transform_feedback3 + SKIP_COMPONENTS1_NV = -6 # Requires ARB_transform_feedback3 VERSION_3_0 enum: ARB_depth_buffer_float enum: (additional; see above; some values different from NV; note: no ARB suffixes) @@ -6876,7 +7047,9 @@ NV_depth_buffer_float enum: FLOAT_32_UNSIGNED_INT_24_8_REV_NV = 0x8DAD DEPTH_BUFFER_FLOAT_MODE_NV = 0x8DAF -# NV_future_use: 0x8DAE +ARB_shading_language_include enum: (additional;see below) + SHADER_INCLUDE_ARB = 0x8DAE + # NV_future_use: 0x8DB0-0x8DB8 VERSION_3_0 enum: @@ -7001,7 +7174,17 @@ EXT_bindable_uniform enum: MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8DE3 MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8DE4 -# NV_future_use: 0x8DE5-0x8DEC +ARB_shader_subroutine enum: + ACTIVE_SUBROUTINES = 0x8DE5 + ACTIVE_SUBROUTINE_UNIFORMS = 0x8DE6 + MAX_SUBROUTINES = 0x8DE7 + MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8 + +ARB_shading_language_include enum: + NAMED_STRING_LENGTH_ARB = 0x8DE9 + NAMED_STRING_TYPE_ARB = 0x8DEA + +# NV_future_use: 0x8DEB-0x8DEC EXT_bindable_uniform enum: (additional; see above) MAX_BINDABLE_UNIFORM_SIZE_EXT = 0x8DED @@ -7012,13 +7195,29 @@ EXT_bindable_uniform enum: (additional; see above) # Khronos OpenGL ES WG: 0x8DF0-0x8E0F -# Khronos_future_use: 0x8DF0-0x8DF5 +# Also OpenGL ES +ARB_ES2_compatibility enum: (additional; see below) + LOW_FLOAT = 0x8DF0 + MEDIUM_FLOAT = 0x8DF1 + HIGH_FLOAT = 0x8DF2 + LOW_INT = 0x8DF3 + MEDIUM_INT = 0x8DF4 + HIGH_INT = 0x8DF5 OES_vertex_type_10_10_10_2 enum: (OpenGL ES only) UNSIGNED_INT_10_10_10_2_OES = 0x8DF6 INT_10_10_10_2_OES = 0x8DF7 -# Khronos_future_use: 0x8DF8-0x8E0F +# Also OpenGL ES +ARB_ES2_compatibility enum: + SHADER_BINARY_FORMATS = 0x8DF8 + NUM_SHADER_BINARY_FORMATS = 0x8DF9 + SHADER_COMPILER = 0x8DFA + MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB + MAX_VARYING_VECTORS = 0x8DFC + MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD + +# Khronos_future_use: 0x8DFE-0x8E0F ############################################################################### @@ -7036,19 +7235,34 @@ VERSION_3_0 enum: QUERY_BY_REGION_WAIT = 0x8E15 # VERSION_3_0 QUERY_BY_REGION_NO_WAIT = 0x8E16 # VERSION_3_0 -GL_NV_conditional_render enum: +NV_conditional_render enum: QUERY_WAIT_NV = 0x8E13 QUERY_NO_WAIT_NV = 0x8E14 QUERY_BY_REGION_WAIT_NV = 0x8E15 QUERY_BY_REGION_NO_WAIT_NV = 0x8E16 -# NV_future_use: 0x8E17-0x8E21 +# NV_future_use: 0x8E17-0x8E1D + +ARB_tessellation_shader enum: + MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E + MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F + +NV_multisample_coverage enum: + COLOR_SAMPLES_NV = 0x8E20 + +# NV_future_use: 0x8E21 + +ARB_transform_feedback2 enum: + TRANSFORM_FEEDBACK = 0x8E22 + TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23 + TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24 + TRANSFORM_FEEDBACK_BINDING = 0x8E25 NV_transform_feedback2 enum: - TRANSFORM_FEEDBACK_NV = 0x8E22 - TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV = 0x8E23 - TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV = 0x8E24 - TRANSFORM_FEEDBACK_BINDING_NV = 0x8E25 + TRANSFORM_FEEDBACK_NV = 0x8E22 + TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV = 0x8E23 + TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV = 0x8E24 + TRANSFORM_FEEDBACK_BINDING_NV = 0x8E25 NV_present_video enum: FRAME_NV = 0x8E26 @@ -7058,6 +7272,9 @@ NV_present_video enum: PRESENT_TIME_NV = 0x8E2A PRESENT_DURATION_NV = 0x8E2B +ARB_timer_query enum: + TIMESTAMP = 0x8E28 + NV_depth_nonlinear enum: (OpenGL ES only) DEPTH_COMPONENT16_NONLINEAR_NV = 0x8E2C @@ -7068,6 +7285,13 @@ EXT_direct_state_access enum: # NV_future_use: 0x8E30-0x8E41 +ARB_texture_swizzle enum: + TEXTURE_SWIZZLE_R = 0x8E42 + TEXTURE_SWIZZLE_G = 0x8E43 + TEXTURE_SWIZZLE_B = 0x8E44 + TEXTURE_SWIZZLE_A = 0x8E45 + TEXTURE_SWIZZLE_RGBA = 0x8E46 + EXT_texture_swizzle enum: TEXTURE_SWIZZLE_R_EXT = 0x8E42 TEXTURE_SWIZZLE_G_EXT = 0x8E43 @@ -7075,7 +7299,12 @@ EXT_texture_swizzle enum: TEXTURE_SWIZZLE_A_EXT = 0x8E45 TEXTURE_SWIZZLE_RGBA_EXT = 0x8E46 -# NV_future_use: 0x8E47-0x8E4B +ARB_shader_subroutine enum: + ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47 + ACTIVE_SUBROUTINE_MAX_LENGTH = 0x8E48 + ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49 + NUM_COMPATIBLE_SUBROUTINES = 0x8E4A + COMPATIBLE_SUBROUTINES = 0x8E4B VERSION_3_2 enum: use ARB_provoking_vertex QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION @@ -7083,6 +7312,11 @@ VERSION_3_2 enum: use ARB_provoking_vertex LAST_VERTEX_CONVENTION use ARB_provoking_vertex PROVOKING_VERTEX +ARB_viewport_array enum: (additional; see above) + use ARB_provoking_vertex FIRST_VERTEX_CONVENTION + use ARB_provoking_vertex LAST_VERTEX_CONVENTION + use ARB_provoking_vertex PROVOKING_VERTEX + ARB_provoking_vertex enum: QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C FIRST_VERTEX_CONVENTION = 0x8E4D @@ -7119,18 +7353,74 @@ NV_explicit_multisample enum: UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV = 0x8E58 MAX_SAMPLE_MASK_WORDS_NV = 0x8E59 -# NV_future_use: 0x8E5A-0x8E5D +ARB_gpu_shader5 enum: + MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A + MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B + MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C + FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D + +NV_gpu_program5 enum: + MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV = 0x8E5A + MIN_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5B + MAX_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5C + FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV = 0x8E5D ARB_texture_gather enum: MIN_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5E MAX_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5F -# NV_future_use: 0x8E60-0x8E8F +NV_gpu_program5 enum: + MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5E + MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5F + +# NV_future_use: 0x8E60-0x8E6F + +ARB_transform_feedback3 enum: + MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70 + MAX_VERTEX_STREAMS = 0x8E71 + +ARB_gpu_shader5 enum: (additional; see above) + use ARB_texture_multisample MAX_VERTEX_STREAMS + +ARB_tessellation_shader enum: + PATCH_VERTICES = 0x8E72 + PATCH_DEFAULT_INNER_LEVEL = 0x8E73 + PATCH_DEFAULT_OUTER_LEVEL = 0x8E74 + TESS_CONTROL_OUTPUT_VERTICES = 0x8E75 + TESS_GEN_MODE = 0x8E76 + TESS_GEN_SPACING = 0x8E77 + TESS_GEN_VERTEX_ORDER = 0x8E78 + TESS_GEN_POINT_MODE = 0x8E79 + ISOLINES = 0x8E7A + FRACTIONAL_ODD = 0x8E7B + FRACTIONAL_EVEN = 0x8E7C + MAX_PATCH_VERTICES = 0x8E7D + MAX_TESS_GEN_LEVEL = 0x8E7E + MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F + MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80 + MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81 + MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82 + MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83 + MAX_TESS_PATCH_COMPONENTS = 0x8E84 + MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85 + MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86 + TESS_EVALUATION_SHADER = 0x8E87 + TESS_CONTROL_SHADER = 0x8E88 + MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89 + MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A + +# NV_future_use: 0x8E8B + +ARB_texture_compression_bptc enum: + COMPRESSED_RGBA_BPTC_UNORM_ARB = 0x8E8C + COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB = 0x8E8D + COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB = 0x8E8E + COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB = 0x8E8F ############################################################################### # QNX: 0x8E90-0x8E9F -# For GL_QNX_texture_tiling, GL_QNX_complex_polygon, GL_QNX_stippled_lines +# For QNX_texture_tiling, QNX_complex_polygon, QNX_stippled_lines # (Khronos bug 696) # QNX_future_use: 0x8E90-0x8E9F @@ -7205,7 +7495,55 @@ VERSION_3_1 enum: use ARB_copy_buffer COPY_READ_BUFFER use ARB_copy_buffer COPY_WRITE_BUFFER -# NVIDIA_future_use: 0x8F38-0x8F4F +EXT_shader_image_load_store enum: (additional; see below) + MAX_IMAGE_UNITS_EXT = 0x8F38 + MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT = 0x8F39 + IMAGE_BINDING_NAME_EXT = 0x8F3A + IMAGE_BINDING_LEVEL_EXT = 0x8F3B + IMAGE_BINDING_LAYERED_EXT = 0x8F3C + IMAGE_BINDING_LAYER_EXT = 0x8F3D + IMAGE_BINDING_ACCESS_EXT = 0x8F3E + +ARB_draw_indirect enum: + DRAW_INDIRECT_BUFFER = 0x8F3F + +# Requires ARB_draw_indirect +NV_vertex_buffer_unified_memory enum: (additional; see above) + DRAW_INDIRECT_UNIFIED_NV = 0x8F40 + DRAW_INDIRECT_ADDRESS_NV = 0x8F41 + DRAW_INDIRECT_LENGTH_NV = 0x8F42 + +ARB_draw_indirect enum: (additional; see below) + DRAW_INDIRECT_BUFFER_BINDING = 0x8F43 + +# Requires ARB_shader_subroutine +NV_gpu_program5 enum: (additional; see above) + MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV = 0x8F44 + MAX_PROGRAM_SUBROUTINE_NUM_NV = 0x8F45 + +ARB_gpu_shader_fp64 enum: + DOUBLE_MAT2 = 0x8F46 + DOUBLE_MAT3 = 0x8F47 + DOUBLE_MAT4 = 0x8F48 + DOUBLE_MAT2x3 = 0x8F49 + DOUBLE_MAT2x4 = 0x8F4A + DOUBLE_MAT3x2 = 0x8F4B + DOUBLE_MAT3x4 = 0x8F4C + DOUBLE_MAT4x2 = 0x8F4D + DOUBLE_MAT4x3 = 0x8F4E + +EXT_vertex_attrib_64bit enum: + DOUBLE_MAT2_EXT = 0x8F46 + DOUBLE_MAT3_EXT = 0x8F47 + DOUBLE_MAT4_EXT = 0x8F48 + DOUBLE_MAT2x3_EXT = 0x8F49 + DOUBLE_MAT2x4_EXT = 0x8F4A + DOUBLE_MAT3x2_EXT = 0x8F4B + DOUBLE_MAT3x4_EXT = 0x8F4C + DOUBLE_MAT4x2_EXT = 0x8F4D + DOUBLE_MAT4x3_EXT = 0x8F4E + +# NVIDIA_future_use: 0x8F4F ############################################################################### @@ -7217,6 +7555,11 @@ VERSION_3_1 enum: # ARM: 0x8F60-0x8F6F # Assigned for Remi Pedersen (Khronos bug 3745) +ARM_mali_shader_binary enum: (OpenGL ES only) + MALI_SHADER_BINARY_ARM = 0x8F60 + +# ARM_future_use: 0x8F61-0x8F6F + ############################################################################### # HI Corp: 0x8F70-0x8F7F @@ -7266,12 +7609,53 @@ QCOM_driver_control enum: (OpenGL ES only) # Vivante: 0x8FC0-0x8FDF # Assigned for Frido Garritsen (Khronos bug 4526) +VIV_shader_binary enum: (OpenGL ES only) + SHADER_BINARY_VIV = 0x8FC4 + ############################################################################### # NVIDIA: 0x8FE0-0x8FFF # Assigned for Pat Brown (Khronos bug 4935) -# NV_future_use: 0x8FE0-0x8FFF +NV_gpu_shader5 enum: + INT8_NV = 0x8FE0 + INT8_VEC2_NV = 0x8FE1 + INT8_VEC3_NV = 0x8FE2 + INT8_VEC4_NV = 0x8FE3 + INT16_NV = 0x8FE4 + INT16_VEC2_NV = 0x8FE5 + INT16_VEC3_NV = 0x8FE6 + INT16_VEC4_NV = 0x8FE7 + INT64_VEC2_NV = 0x8FE9 + INT64_VEC3_NV = 0x8FEA + INT64_VEC4_NV = 0x8FEB + UNSIGNED_INT8_NV = 0x8FEC + UNSIGNED_INT8_VEC2_NV = 0x8FED + UNSIGNED_INT8_VEC3_NV = 0x8FEE + UNSIGNED_INT8_VEC4_NV = 0x8FEF + UNSIGNED_INT16_NV = 0x8FF0 + UNSIGNED_INT16_VEC2_NV = 0x8FF1 + UNSIGNED_INT16_VEC3_NV = 0x8FF2 + UNSIGNED_INT16_VEC4_NV = 0x8FF3 + UNSIGNED_INT64_VEC2_NV = 0x8FF5 + UNSIGNED_INT64_VEC3_NV = 0x8FF6 + UNSIGNED_INT64_VEC4_NV = 0x8FF7 + FLOAT16_NV = 0x8FF8 + FLOAT16_VEC2_NV = 0x8FF9 + FLOAT16_VEC3_NV = 0x8FFA + FLOAT16_VEC4_NV = 0x8FFB + +ARB_gpu_shader_fp64 enum: (additional; see above) + DOUBLE_VEC2 = 0x8FFC + DOUBLE_VEC3 = 0x8FFD + DOUBLE_VEC4 = 0x8FFE + +EXT_vertex_attrib_64bit enum: + DOUBLE_VEC2_EXT = 0x8FFC + DOUBLE_VEC3_EXT = 0x8FFD + DOUBLE_VEC4_EXT = 0x8FFE + +# NV_future_use: 0x8FFF ############################################################################### @@ -7312,7 +7696,13 @@ EXT_texture_snorm enum: LUMINANCE16_ALPHA16_SNORM = 0x901A INTENSITY16_SNORM = 0x901B -# AMD_future_use: 0x901C-0x901F +AMD_blend_minmax_factor enum: + FACTOR_MIN_AMD = 0x901C + FACTOR_MAX_AMD = 0x901D + +AMD_depth_clamp_separate enum: + DEPTH_CLAMP_NEAR_AMD = 0x901E + DEPTH_CLAMP_FAR_AMD = 0x901F ############################################################################### @@ -7320,37 +7710,103 @@ EXT_texture_snorm enum: # Assigned for Pat Brown (Khronos bug 4935) NV_video_capture enum: - VIDEO_BUFFER_NV = 0x9020 - VIDEO_BUFFER_BINDING_NV = 0x9021 - FIELD_UPPER_NV = 0x9022 - FIELD_LOWER_NV = 0x9023 - NUM_VIDEO_CAPTURE_STREAMS_NV = 0x9024 - NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV = 0x9025 - VIDEO_CAPTURE_TO_422_SUPPORTED_NV = 0x9026 - LAST_VIDEO_CAPTURE_STATUS_NV = 0x9027 - VIDEO_BUFFER_PITCH_NV = 0x9028 - VIDEO_COLOR_CONVERSION_MATRIX_NV = 0x9029 - VIDEO_COLOR_CONVERSION_MAX_NV = 0x902A - VIDEO_COLOR_CONVERSION_MIN_NV = 0x902B - VIDEO_COLOR_CONVERSION_OFFSET_NV = 0x902C - VIDEO_BUFFER_INTERNAL_FORMAT_NV = 0x902D - PARTIAL_SUCCESS_NV = 0x902E - SUCCESS_NV = 0x902F - FAILURE_NV = 0x9030 - YCBYCR8_422_NV = 0x9031 - YCBAYCR8A_4224_NV = 0x9032 - Z6Y10Z6CB10Z6Y10Z6CR10_422_NV = 0x9033 - Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV = 0x9034 - Z4Y12Z4CB12Z4Y12Z4CR12_422_NV = 0x9035 - Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV = 0x9036 - Z4Y12Z4CB12Z4CR12_444_NV = 0x9037 - VIDEO_CAPTURE_FRAME_WIDTH_NV = 0x9038 - VIDEO_CAPTURE_FRAME_HEIGHT_NV = 0x9039 - VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV = 0x903A - VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV = 0x903B - VIDEO_CAPTURE_SURFACE_ORIGIN_NV = 0x903C + VIDEO_BUFFER_NV = 0x9020 + VIDEO_BUFFER_BINDING_NV = 0x9021 + FIELD_UPPER_NV = 0x9022 + FIELD_LOWER_NV = 0x9023 + NUM_VIDEO_CAPTURE_STREAMS_NV = 0x9024 + NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV = 0x9025 + VIDEO_CAPTURE_TO_422_SUPPORTED_NV = 0x9026 + LAST_VIDEO_CAPTURE_STATUS_NV = 0x9027 + VIDEO_BUFFER_PITCH_NV = 0x9028 + VIDEO_COLOR_CONVERSION_MATRIX_NV = 0x9029 + VIDEO_COLOR_CONVERSION_MAX_NV = 0x902A + VIDEO_COLOR_CONVERSION_MIN_NV = 0x902B + VIDEO_COLOR_CONVERSION_OFFSET_NV = 0x902C + VIDEO_BUFFER_INTERNAL_FORMAT_NV = 0x902D + PARTIAL_SUCCESS_NV = 0x902E + SUCCESS_NV = 0x902F + FAILURE_NV = 0x9030 + YCBYCR8_422_NV = 0x9031 + YCBAYCR8A_4224_NV = 0x9032 + Z6Y10Z6CB10Z6Y10Z6CR10_422_NV = 0x9033 + Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV = 0x9034 + Z4Y12Z4CB12Z4Y12Z4CR12_422_NV = 0x9035 + Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV = 0x9036 + Z4Y12Z4CB12Z4CR12_444_NV = 0x9037 + VIDEO_CAPTURE_FRAME_WIDTH_NV = 0x9038 + VIDEO_CAPTURE_FRAME_HEIGHT_NV = 0x9039 + VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV = 0x903A + VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV = 0x903B + VIDEO_CAPTURE_SURFACE_ORIGIN_NV = 0x903C -# NV_future_use: 0x903D-0x90FF +# NV_future_use: 0x903D-0x9044 + +NV_texture_multisample enum: + TEXTURE_COVERAGE_SAMPLES_NV = 0x9045 + TEXTURE_COLOR_SAMPLES_NV = 0x9046 + +# NV_future_use: 0x9047-0x904B + +EXT_shader_image_load_store enum: + IMAGE_1D_EXT = 0x904C + IMAGE_2D_EXT = 0x904D + IMAGE_3D_EXT = 0x904E + IMAGE_2D_RECT_EXT = 0x904F + IMAGE_CUBE_EXT = 0x9050 + IMAGE_BUFFER_EXT = 0x9051 + IMAGE_1D_ARRAY_EXT = 0x9052 + IMAGE_2D_ARRAY_EXT = 0x9053 + IMAGE_CUBE_MAP_ARRAY_EXT = 0x9054 + IMAGE_2D_MULTISAMPLE_EXT = 0x9055 + IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9056 + INT_IMAGE_1D_EXT = 0x9057 + INT_IMAGE_2D_EXT = 0x9058 + INT_IMAGE_3D_EXT = 0x9059 + INT_IMAGE_2D_RECT_EXT = 0x905A + INT_IMAGE_CUBE_EXT = 0x905B + INT_IMAGE_BUFFER_EXT = 0x905C + INT_IMAGE_1D_ARRAY_EXT = 0x905D + INT_IMAGE_2D_ARRAY_EXT = 0x905E + INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x905F + INT_IMAGE_2D_MULTISAMPLE_EXT = 0x9060 + INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9061 + UNSIGNED_INT_IMAGE_1D_EXT = 0x9062 + UNSIGNED_INT_IMAGE_2D_EXT = 0x9063 + UNSIGNED_INT_IMAGE_3D_EXT = 0x9064 + UNSIGNED_INT_IMAGE_2D_RECT_EXT = 0x9065 + UNSIGNED_INT_IMAGE_CUBE_EXT = 0x9066 + UNSIGNED_INT_IMAGE_BUFFER_EXT = 0x9067 + UNSIGNED_INT_IMAGE_1D_ARRAY_EXT = 0x9068 + UNSIGNED_INT_IMAGE_2D_ARRAY_EXT = 0x9069 + UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x906A + UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x906B + UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x906C + MAX_IMAGE_SAMPLES_EXT = 0x906D + IMAGE_BINDING_FORMAT_EXT = 0x906E +# ??? Not clear where to put new types of mask bits yet + VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT = 0x00000001 + ELEMENT_ARRAY_BARRIER_BIT_EXT = 0x00000002 + UNIFORM_BARRIER_BIT_EXT = 0x00000004 + TEXTURE_FETCH_BARRIER_BIT_EXT = 0x00000008 + SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT = 0x00000020 + COMMAND_BARRIER_BIT_EXT = 0x00000040 + PIXEL_BUFFER_BARRIER_BIT_EXT = 0x00000080 + TEXTURE_UPDATE_BARRIER_BIT_EXT = 0x00000100 + BUFFER_UPDATE_BARRIER_BIT_EXT = 0x00000200 + FRAMEBUFFER_BARRIER_BIT_EXT = 0x00000400 + TRANSFORM_FEEDBACK_BARRIER_BIT_EXT = 0x00000800 + ATOMIC_COUNTER_BARRIER_BIT_EXT = 0x00001000 + ALL_BARRIER_BITS_EXT = 0xFFFFFFFF + +# Adds to mask bits for EXT_shader_image_load_store above +NV_shader_buffer_store enum: + SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV = 0x00000010 + +ARB_texture_rgb10_a2ui enum: + RGB10_A2UI = 0x906F + +# NV_future_use: 0x9070-0x90FF ############################################################################### @@ -7466,10 +7922,73 @@ IMG_multisampled_render_to_texture enum: (OpenGL ES only) ############################################################################### -# AMD: 0x9140-0x91BF (Khronos bugs 5899, 6004) +# AMD: 0x9140-0x923F (Khronos bugs 5899, 6004) -# AMD_future_use: 0x9140-0x91BF -# AMD_future_use: 0x91C0-0x923F +# AMD_future_use: 0x9140-0x9142 + +ARB_debug_output enum: (additional; see above) + MAX_DEBUG_MESSAGE_LENGTH_ARB = 0x9143 + MAX_DEBUG_LOGGED_MESSAGES_ARB = 0x9144 + DEBUG_LOGGED_MESSAGES_ARB = 0x9145 + DEBUG_SEVERITY_HIGH_ARB = 0x9146 + DEBUG_SEVERITY_MEDIUM_ARB = 0x9147 + DEBUG_SEVERITY_LOW_ARB = 0x9148 + +AMD_debug_output enum: + MAX_DEBUG_LOGGED_MESSAGES_AMD = 0x9144 + DEBUG_LOGGED_MESSAGES_AMD = 0x9145 + DEBUG_SEVERITY_HIGH_AMD = 0x9146 + DEBUG_SEVERITY_MEDIUM_AMD = 0x9147 + DEBUG_SEVERITY_LOW_AMD = 0x9148 + DEBUG_CATEGORY_API_ERROR_AMD = 0x9149 + DEBUG_CATEGORY_WINDOW_SYSTEM_AMD = 0x914A + DEBUG_CATEGORY_DEPRECATION_AMD = 0x914B + DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD = 0x914C + DEBUG_CATEGORY_PERFORMANCE_AMD = 0x914D + DEBUG_CATEGORY_SHADER_COMPILER_AMD = 0x914E + DEBUG_CATEGORY_APPLICATION_AMD = 0x914F + DEBUG_CATEGORY_OTHER_AMD = 0x9150 + +AMD_name_gen_delete enum: + DATA_BUFFER_AMD = 0x9151 + PERFORMANCE_MONITOR_AMD = 0x9152 + QUERY_OBJECT_AMD = 0x9153 + VERTEX_ARRAY_OBJECT_AMD = 0x9154 + SAMPLER_OBJECT_AMD = 0x9155 + +# AMD_future_use: 0x9156-0x923F + +############################################################################### + +# WebGL Working Group: 0x9240-0x924F (Khronos bug 6473) + +# UNPACK_FLIP_Y_WEBGL = 0x9240 +# UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241 +# CONTEXT_LOST_WEBGL = 0x9242 + +# Khronos bug 6884 + +# UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243 +# BROWSER_DEFAULT_WEBGL = 0x9244 + +# WebGL_future_use: 0x9245-0x924F + +############################################################################### + +# DMP: 0x9250-0x925F (email from Eisaku Ohbuchi) + +DMP_shader_binary enum: (OpenGL ES only) + SHADER_BINARY_DMP = 0x9250 + +# DMP_future_use: 0x9251-0x925F + +############################################################################### + +# Fujitsu: 0x9260-0x926F (Khronos bug 7486) + +# FJ_shader_binary enum: (OpenGL ES only) + +# FJ_future_use: 0x9260-0x926F ############################################################################### ### Please remember that new enumerant allocations must be obtained by request @@ -7477,14 +7996,12 @@ IMG_multisampled_render_to_texture enum: (OpenGL ES only) ### File requests in the Khronos Bugzilla, OpenGL project, Registry component. ############################################################################### -# Any_vendor_future_use: 0x9140-0xFFFF +# Any_vendor_future_use: 0x9260-0xFFFF # # This range must be the last range in the file. To generate a new # range, allocate multiples of 16 from the beginning of the # Any_vendor_future_use range and update enum.spec -# (NOTE: first fill the gap from 0x8FE0-0x8FFF before proceeding here) - ############################################################################### # ARB: 100000-100999 (GLU enumerants only) diff --git a/src/glx/apple/specs/enumext.spec b/src/glx/apple/specs/enumext.spec index 6302ed446f1..a132cdbed6d 100644 --- a/src/glx/apple/specs/enumext.spec +++ b/src/glx/apple/specs/enumext.spec @@ -1,6 +1,6 @@ # enumext.spec - list of GL enumerants for glext.h header # -# $Revision: 10971 $ on $Date: 2010-04-09 02:45:33 -0700 (Fri, 09 Apr 2010) $ +# $Revision: 14384 $ on $Date: 2011-04-05 23:05:03 -0700 (Tue, 05 Apr 2011) $ # This is derived from the master GL enumerant registry (enum.spec). # @@ -1380,7 +1380,7 @@ VERSION_3_1 enum: passthru: /* Reuse tokens from ARB_copy_buffer */ use ARB_copy_buffer COPY_READ_BUFFER use ARB_copy_buffer COPY_WRITE_BUFFER -passthru: /* Would reuse tokens from ARB_draw_instanced, but it has none */ +passthru: /* Reuse tokens from ARB_draw_instanced (none) */ passthru: /* Reuse tokens from ARB_uniform_buffer_object */ use ARB_uniform_buffer_object UNIFORM_BUFFER use ARB_uniform_buffer_object UNIFORM_BUFFER_BINDING @@ -1447,8 +1447,8 @@ VERSION_3_2 enum: use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER passthru: /* Reuse tokens from ARB_depth_clamp */ use ARB_depth_clamp DEPTH_CLAMP -passthru: /* Would reuse tokens from ARB_draw_elements_base_vertex, but it has none */ -passthru: /* Would reuse tokens from ARB_fragment_coord_conventions, but it has none */ +passthru: /* Reuse tokens from ARB_draw_elements_base_vertex (none) */ +passthru: /* Reuse tokens from ARB_fragment_coord_conventions (none) */ passthru: /* Reuse tokens from ARB_provoking_vertex */ use ARB_provoking_vertex QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION use ARB_provoking_vertex FIRST_VERTEX_CONVENTION @@ -1504,17 +1504,18 @@ passthru: /* Don't need to reuse tokens from ARB_vertex_array_bgra since they're ############################################################################### VERSION_3_3 enum: + VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88FE # ARB_instanced_arrays passthru: /* Reuse tokens from ARB_blend_func_extended */ use ARB_blend_func_extended SRC1_COLOR use ARB_blend_func_extended ONE_MINUS_SRC1_COLOR use ARB_blend_func_extended ONE_MINUS_SRC1_ALPHA use ARB_blend_func_extended MAX_DUAL_SOURCE_DRAW_BUFFERS -passthru: /* Would reuse tokens from ARB_explicit_attrib_location, but it has none */ +passthru: /* Reuse tokens from ARB_explicit_attrib_location (none) */ passthru: /* Reuse tokens from ARB_occlusion_query2 */ use ARB_occlusion_query2 ANY_SAMPLES_PASSED passthru: /* Reuse tokens from ARB_sampler_objects */ use ARB_sampler_objects SAMPLER_BINDING -passthru: /* Would reuse tokens from ARB_shader_bit_encoding, but it has none */ +passthru: /* Reuse tokens from ARB_shader_bit_encoding (none) */ passthru: /* Reuse tokens from ARB_texture_rgb10_a2ui */ use ARB_texture_rgb10_a2ui RGB10_A2UI passthru: /* Reuse tokens from ARB_texture_swizzle */ @@ -1536,6 +1537,19 @@ passthru: /* Reuse tokens from ARB_vertex_type_2_10_10_10_rev */ ############################################################################### VERSION_4_0 enum: + SAMPLE_SHADING = 0x8C36 # ARB_sample_shading + MIN_SAMPLE_SHADING_VALUE = 0x8C37 # ARB_sample_shading + MIN_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5E # ARB_texture_gather + MAX_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5F # ARB_texture_gather + TEXTURE_CUBE_MAP_ARRAY = 0x9009 # ARB_texture_cube_map_array + TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A # ARB_texture_cube_map_array + PROXY_TEXTURE_CUBE_MAP_ARRAY = 0x900B # ARB_texture_cube_map_array + SAMPLER_CUBE_MAP_ARRAY = 0x900C # ARB_texture_cube_map_array + SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D # ARB_texture_cube_map_array + INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E # ARB_texture_cube_map_array + UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F # ARB_texture_cube_map_array +passthru: /* Reuse tokens from ARB_texture_query_lod (none) */ +passthru: /* Reuse tokens from ARB_draw_buffers_blend (none) */ passthru: /* Reuse tokens from ARB_draw_indirect */ use ARB_draw_indirect DRAW_INDIRECT_BUFFER use ARB_draw_indirect DRAW_INDIRECT_BUFFER_BINDING @@ -1602,7 +1616,7 @@ passthru: /* Reuse tokens from ARB_tessellation_shader */ use ARB_tessellation_shader UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER use ARB_tessellation_shader TESS_EVALUATION_SHADER use ARB_tessellation_shader TESS_CONTROL_SHADER -passthru: /* Would reuse tokens from ARB_texture_buffer_object_rgb32, but it has none */ +passthru: /* Reuse tokens from ARB_texture_buffer_object_rgb32 (none) */ passthru: /* Reuse tokens from ARB_transform_feedback2 */ use ARB_tessellation_shader TRANSFORM_FEEDBACK use ARB_tessellation_shader TRANSFORM_FEEDBACK_BUFFER_PAUSED @@ -1612,6 +1626,53 @@ passthru: /* Reuse tokens from ARB_transform_feedback3 */ use ARB_tessellation_shader MAX_TRANSFORM_FEEDBACK_BUFFERS use ARB_tessellation_shader MAX_VERTEX_STREAMS +############################################################################### +# +# OpenGL 4.1 enums +# +############################################################################### + +VERSION_4_1 enum: +passthru: /* Reuse tokens from ARB_ES2_compatibility */ + use ARB_ES2_compatibility FIXED + use ARB_ES2_compatibility IMPLEMENTATION_COLOR_READ_TYPE + use ARB_ES2_compatibility IMPLEMENTATION_COLOR_READ_FORMAT + use ARB_ES2_compatibility LOW_FLOAT + use ARB_ES2_compatibility MEDIUM_FLOAT + use ARB_ES2_compatibility HIGH_FLOAT + use ARB_ES2_compatibility LOW_INT + use ARB_ES2_compatibility MEDIUM_INT + use ARB_ES2_compatibility HIGH_INT + use ARB_ES2_compatibility SHADER_COMPILER + use ARB_ES2_compatibility NUM_SHADER_BINARY_FORMATS + use ARB_ES2_compatibility MAX_VERTEX_UNIFORM_VECTORS + use ARB_ES2_compatibility MAX_VARYING_VECTORS + use ARB_ES2_compatibility MAX_FRAGMENT_UNIFORM_VECTORS +passthru: /* Reuse tokens from ARB_get_program_binary */ + use ARB_get_program_binary PROGRAM_BINARY_RETRIEVABLE_HINT + use ARB_get_program_binary PROGRAM_BINARY_LENGTH + use ARB_get_program_binary NUM_PROGRAM_BINARY_FORMATS + use ARB_get_program_binary PROGRAM_BINARY_FORMATS +passthru: /* Reuse tokens from ARB_separate_shader_objects */ + use ARB_separate_shader_objects VERTEX_SHADER_BIT + use ARB_separate_shader_objects FRAGMENT_SHADER_BIT + use ARB_separate_shader_objects GEOMETRY_SHADER_BIT + use ARB_separate_shader_objects TESS_CONTROL_SHADER_BIT + use ARB_separate_shader_objects TESS_EVALUATION_SHADER_BIT + use ARB_separate_shader_objects ALL_SHADER_BITS + use ARB_separate_shader_objects PROGRAM_SEPARABLE + use ARB_separate_shader_objects ACTIVE_PROGRAM + use ARB_separate_shader_objects PROGRAM_PIPELINE_BINDING +passthru: /* Reuse tokens from ARB_shader_precision (none) */ +passthru: /* Reuse tokens from ARB_vertex_attrib_64bit - all are in GL 3.0 and 4.0 already */ +passthru: /* Reuse tokens from ARB_viewport_array - some are in GL 1.1 and ARB_provoking_vertex already */ + use ARB_viewport_array MAX_VIEWPORTS + use ARB_viewport_array VIEWPORT_SUBPIXEL_BITS + use ARB_viewport_array VIEWPORT_BOUNDS_RANGE + use ARB_viewport_array LAYER_PROVOKING_VERTEX + use ARB_viewport_array VIEWPORT_INDEX_PROVOKING_VERTEX + use ARB_viewport_array UNDEFINED_VERTEX + ############################################################################### # @@ -2433,7 +2494,7 @@ ARB_half_float_vertex enum: # ARB Extension #49 ARB_instanced_arrays enum: - VERTEX_ATTRIB_ARRAY_DIVISOR_ARB = 0x88FE + VERTEX_ATTRIB_ARRAY_DIVISOR_ARB = 0x88FE ############################################################################### @@ -2652,33 +2713,29 @@ ARB_vertex_array_bgra enum: # No new tokens # ARB Extension #69 ARB_draw_buffers_blend enum: -#@@@ Add ARB suffixes here & functions! ############################################################################### # ARB Extension #70 -#@@@ Add ARB suffixes here & functions! ARB_sample_shading enum: - SAMPLE_SHADING = 0x8C36 - MIN_SAMPLE_SHADING_VALUE = 0x8C37 + SAMPLE_SHADING_ARB = 0x8C36 + MIN_SAMPLE_SHADING_VALUE_ARB = 0x8C37 ############################################################################### # ARB Extension #71 -#@@@ Add ARB suffixes here & functions! ARB_texture_cube_map_array enum: - TEXTURE_CUBE_MAP_ARRAY = 0x9009 - TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A - PROXY_TEXTURE_CUBE_MAP_ARRAY = 0x900B - SAMPLER_CUBE_MAP_ARRAY = 0x900C - SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D - INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E - UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F + TEXTURE_CUBE_MAP_ARRAY_ARB = 0x9009 + TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB = 0x900A + PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x900B + SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900C + SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB = 0x900D + INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900E + UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900F ############################################################################### # ARB Extension #72 -#@@@ Add ARB suffixes here & functions! ARB_texture_gather enum: MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5E MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5F @@ -2792,7 +2849,7 @@ ARB_gpu_shader5 enum: MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D - MAX_VERTEX_STREAMS = 0x8E71 + use ARB_texture_multisample MAX_VERTEX_STREAMS ############################################################################### @@ -2894,6 +2951,149 @@ ARB_transform_feedback3 enum: MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70 MAX_VERTEX_STREAMS = 0x8E71 +############################################################################### + +# ARB Extension #95 +ARB_ES2_compatibility enum: + FIXED = 0x140C + IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A + IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B + LOW_FLOAT = 0x8DF0 + MEDIUM_FLOAT = 0x8DF1 + HIGH_FLOAT = 0x8DF2 + LOW_INT = 0x8DF3 + MEDIUM_INT = 0x8DF4 + HIGH_INT = 0x8DF5 + SHADER_COMPILER = 0x8DFA + NUM_SHADER_BINARY_FORMATS = 0x8DF9 + MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB + MAX_VARYING_VECTORS = 0x8DFC + MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD + +############################################################################### + +# ARB Extension #96 +ARB_get_program_binary enum: + PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257 + PROGRAM_BINARY_LENGTH = 0x8741 + NUM_PROGRAM_BINARY_FORMATS = 0x87FE + PROGRAM_BINARY_FORMATS = 0x87FF + +############################################################################### + +# ARB Extension #97 +ARB_separate_shader_objects enum: + VERTEX_SHADER_BIT = 0x00000001 + FRAGMENT_SHADER_BIT = 0x00000002 + GEOMETRY_SHADER_BIT = 0x00000004 + TESS_CONTROL_SHADER_BIT = 0x00000008 + TESS_EVALUATION_SHADER_BIT = 0x00000010 + ALL_SHADER_BITS = 0xFFFFFFFF + PROGRAM_SEPARABLE = 0x8258 + ACTIVE_PROGRAM = 0x8259 + PROGRAM_PIPELINE_BINDING = 0x825A + +############################################################################### + +# No new tokens +# ARB Extension #98 +ARB_shader_precision enum: + +############################################################################### + +# ARB Extension #99 +ARB_vertex_attrib_64bit enum: + use VERSION_3_0 RGB32I + use ARB_gpu_shader_fp64 DOUBLE_VEC2 + use ARB_gpu_shader_fp64 DOUBLE_VEC3 + use ARB_gpu_shader_fp64 DOUBLE_VEC4 + use ARB_gpu_shader_fp64 DOUBLE_MAT2 + use ARB_gpu_shader_fp64 DOUBLE_MAT3 + use ARB_gpu_shader_fp64 DOUBLE_MAT4 + use ARB_gpu_shader_fp64 DOUBLE_MAT2x3 + use ARB_gpu_shader_fp64 DOUBLE_MAT2x4 + use ARB_gpu_shader_fp64 DOUBLE_MAT3x2 + use ARB_gpu_shader_fp64 DOUBLE_MAT3x4 + use ARB_gpu_shader_fp64 DOUBLE_MAT4x2 + use ARB_gpu_shader_fp64 DOUBLE_MAT4x3 + +############################################################################### + +# ARB Extension #100 +ARB_viewport_array enum: + use VERSION_1_1 SCISSOR_BOX + use VERSION_1_1 VIEWPORT + use VERSION_1_1 DEPTH_RANGE + use VERSION_1_1 SCISSOR_TEST + MAX_VIEWPORTS = 0x825B + VIEWPORT_SUBPIXEL_BITS = 0x825C + VIEWPORT_BOUNDS_RANGE = 0x825D + LAYER_PROVOKING_VERTEX = 0x825E + VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F + UNDEFINED_VERTEX = 0x8260 + use ARB_provoking_vertex FIRST_VERTEX_CONVENTION + use ARB_provoking_vertex LAST_VERTEX_CONVENTION + use ARB_provoking_vertex PROVOKING_VERTEX + +############################################################################### + +# No new tokens +# ARB Extension #101 - GLX_ARB_create_context_robustness +# ARB Extension #102 - WGL_ARB_create_context_robustness + +############################################################################### + +# ARB Extension #103 +ARB_cl_event enum: + SYNC_CL_EVENT_ARB = 0x8240 + SYNC_CL_EVENT_COMPLETE_ARB = 0x8241 + +############################################################################### + +# ARB Extension #104 +ARB_debug_output enum: + DEBUG_OUTPUT_SYNCHRONOUS_ARB = 0x8242 + DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB = 0x8243 + DEBUG_CALLBACK_FUNCTION_ARB = 0x8244 + DEBUG_CALLBACK_USER_PARAM_ARB = 0x8245 + DEBUG_SOURCE_API_ARB = 0x8246 + DEBUG_SOURCE_WINDOW_SYSTEM_ARB = 0x8247 + DEBUG_SOURCE_SHADER_COMPILER_ARB = 0x8248 + DEBUG_SOURCE_THIRD_PARTY_ARB = 0x8249 + DEBUG_SOURCE_APPLICATION_ARB = 0x824A + DEBUG_SOURCE_OTHER_ARB = 0x824B + DEBUG_TYPE_ERROR_ARB = 0x824C + DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB = 0x824D + DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB = 0x824E + DEBUG_TYPE_PORTABILITY_ARB = 0x824F + DEBUG_TYPE_PERFORMANCE_ARB = 0x8250 + DEBUG_TYPE_OTHER_ARB = 0x8251 + MAX_DEBUG_MESSAGE_LENGTH_ARB = 0x9143 + MAX_DEBUG_LOGGED_MESSAGES_ARB = 0x9144 + DEBUG_LOGGED_MESSAGES_ARB = 0x9145 + DEBUG_SEVERITY_HIGH_ARB = 0x9146 + DEBUG_SEVERITY_MEDIUM_ARB = 0x9147 + DEBUG_SEVERITY_LOW_ARB = 0x9148 + +############################################################################### + +# ARB Extension #105 +ARB_robustness enum: + use VERSION_1_1 NO_ERROR + CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB = 0x00000004 + LOSE_CONTEXT_ON_RESET_ARB = 0x8252 + GUILTY_CONTEXT_RESET_ARB = 0x8253 + INNOCENT_CONTEXT_RESET_ARB = 0x8254 + UNKNOWN_CONTEXT_RESET_ARB = 0x8255 + RESET_NOTIFICATION_STRATEGY_ARB = 0x8256 + NO_RESET_NOTIFICATION_ARB = 0x8261 + +############################################################################### + +# No new tokens +# ARB Extension #106 +ARB_shader_stencil_export enum: + ############################################################################### # @@ -5362,11 +5562,10 @@ APPLE_client_storage enum: ############################################################################### # Extension #271 -# (extends ATI_element_array???) APPLE_element_array enum: - ELEMENT_ARRAY_APPLE = 0x8768 - ELEMENT_ARRAY_TYPE_APPLE = 0x8769 - ELEMENT_ARRAY_POINTER_APPLE = 0x876A + ELEMENT_ARRAY_APPLE = 0x8A0C + ELEMENT_ARRAY_TYPE_APPLE = 0x8A0D + ELEMENT_ARRAY_POINTER_APPLE = 0x8A0E ############################################################################### @@ -5387,12 +5586,12 @@ APPLE_vertex_array_object enum: ############################################################################### # Extension #274 -# (How does this interact with NV_vertex_array_range???) APPLE_vertex_array_range enum: VERTEX_ARRAY_RANGE_APPLE = 0x851D VERTEX_ARRAY_RANGE_LENGTH_APPLE = 0x851E VERTEX_ARRAY_STORAGE_HINT_APPLE = 0x851F VERTEX_ARRAY_RANGE_POINTER_APPLE = 0x8521 + STORAGE_CLIENT_APPLE = 0x85B4 STORAGE_CACHED_APPLE = 0x85BE STORAGE_SHARED_APPLE = 0x85BF @@ -6083,6 +6282,12 @@ NV_transform_feedback enum: SEPARATE_ATTRIBS_NV = 0x8C8D TRANSFORM_FEEDBACK_BUFFER_NV = 0x8C8E TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8C8F + LAYER_NV = 0x8DAA + NEXT_BUFFER_NV = -2 # Requires ARB_transform_feedback3 + SKIP_COMPONENTS4_NV = -3 # Requires ARB_transform_feedback3 + SKIP_COMPONENTS3_NV = -4 # Requires ARB_transform_feedback3 + SKIP_COMPONENTS2_NV = -5 # Requires ARB_transform_feedback3 + SKIP_COMPONENTS1_NV = -6 # Requires ARB_transform_feedback3 ############################################################################### @@ -6511,6 +6716,9 @@ NV_vertex_buffer_unified_memory enum: SECONDARY_COLOR_ARRAY_LENGTH_NV = 0x8F31 FOG_COORD_ARRAY_LENGTH_NV = 0x8F32 ELEMENT_ARRAY_LENGTH_NV = 0x8F33 + DRAW_INDIRECT_UNIFIED_NV = 0x8F40 # Requires ARB_draw_indirect + DRAW_INDIRECT_ADDRESS_NV = 0x8F41 # Requires ARB_draw_indirect + DRAW_INDIRECT_LENGTH_NV = 0x8F42 # Requires ARB_draw_indirect ############################################################################### @@ -6528,7 +6736,7 @@ AMD_shader_stencil_export enum: # Extension #383 AMD_seamless_cubemap_per_texture enum: - use ARB_seamless_cube_map TEXTURE_CUBE_MAP_SEAMLESS_ARB + use ARB_seamless_cube_map TEXTURE_CUBE_MAP_SEAMLESS ############################################################################### @@ -6540,3 +6748,246 @@ AMD_seamless_cubemap_per_texture enum: # Extension #385 AMD_conservative_depth enum: +############################################################################### + +# Extension #386 +EXT_shader_image_load_store enum: + MAX_IMAGE_UNITS_EXT = 0x8F38 + MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT = 0x8F39 + IMAGE_BINDING_NAME_EXT = 0x8F3A + IMAGE_BINDING_LEVEL_EXT = 0x8F3B + IMAGE_BINDING_LAYERED_EXT = 0x8F3C + IMAGE_BINDING_LAYER_EXT = 0x8F3D + IMAGE_BINDING_ACCESS_EXT = 0x8F3E + IMAGE_1D_EXT = 0x904C + IMAGE_2D_EXT = 0x904D + IMAGE_3D_EXT = 0x904E + IMAGE_2D_RECT_EXT = 0x904F + IMAGE_CUBE_EXT = 0x9050 + IMAGE_BUFFER_EXT = 0x9051 + IMAGE_1D_ARRAY_EXT = 0x9052 + IMAGE_2D_ARRAY_EXT = 0x9053 + IMAGE_CUBE_MAP_ARRAY_EXT = 0x9054 + IMAGE_2D_MULTISAMPLE_EXT = 0x9055 + IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9056 + INT_IMAGE_1D_EXT = 0x9057 + INT_IMAGE_2D_EXT = 0x9058 + INT_IMAGE_3D_EXT = 0x9059 + INT_IMAGE_2D_RECT_EXT = 0x905A + INT_IMAGE_CUBE_EXT = 0x905B + INT_IMAGE_BUFFER_EXT = 0x905C + INT_IMAGE_1D_ARRAY_EXT = 0x905D + INT_IMAGE_2D_ARRAY_EXT = 0x905E + INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x905F + INT_IMAGE_2D_MULTISAMPLE_EXT = 0x9060 + INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9061 + UNSIGNED_INT_IMAGE_1D_EXT = 0x9062 + UNSIGNED_INT_IMAGE_2D_EXT = 0x9063 + UNSIGNED_INT_IMAGE_3D_EXT = 0x9064 + UNSIGNED_INT_IMAGE_2D_RECT_EXT = 0x9065 + UNSIGNED_INT_IMAGE_CUBE_EXT = 0x9066 + UNSIGNED_INT_IMAGE_BUFFER_EXT = 0x9067 + UNSIGNED_INT_IMAGE_1D_ARRAY_EXT = 0x9068 + UNSIGNED_INT_IMAGE_2D_ARRAY_EXT = 0x9069 + UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x906A + UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x906B + UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x906C + MAX_IMAGE_SAMPLES_EXT = 0x906D + IMAGE_BINDING_FORMAT_EXT = 0x906E +# ??? Not clear where to put new types of mask bits yet + VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT = 0x00000001 + ELEMENT_ARRAY_BARRIER_BIT_EXT = 0x00000002 + UNIFORM_BARRIER_BIT_EXT = 0x00000004 + TEXTURE_FETCH_BARRIER_BIT_EXT = 0x00000008 + SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT = 0x00000020 + COMMAND_BARRIER_BIT_EXT = 0x00000040 + PIXEL_BUFFER_BARRIER_BIT_EXT = 0x00000080 + TEXTURE_UPDATE_BARRIER_BIT_EXT = 0x00000100 + BUFFER_UPDATE_BARRIER_BIT_EXT = 0x00000200 + FRAMEBUFFER_BARRIER_BIT_EXT = 0x00000400 + TRANSFORM_FEEDBACK_BARRIER_BIT_EXT = 0x00000800 + ATOMIC_COUNTER_BARRIER_BIT_EXT = 0x00001000 + ALL_BARRIER_BITS_EXT = 0xFFFFFFFF + +############################################################################### + +# Extension #387 +EXT_vertex_attrib_64bit enum: + use VERSION_1_1 DOUBLE + DOUBLE_VEC2_EXT = 0x8FFC + DOUBLE_VEC3_EXT = 0x8FFD + DOUBLE_VEC4_EXT = 0x8FFE + DOUBLE_MAT2_EXT = 0x8F46 + DOUBLE_MAT3_EXT = 0x8F47 + DOUBLE_MAT4_EXT = 0x8F48 + DOUBLE_MAT2x3_EXT = 0x8F49 + DOUBLE_MAT2x4_EXT = 0x8F4A + DOUBLE_MAT3x2_EXT = 0x8F4B + DOUBLE_MAT3x4_EXT = 0x8F4C + DOUBLE_MAT4x2_EXT = 0x8F4D + DOUBLE_MAT4x3_EXT = 0x8F4E + +############################################################################### + +# Extension #388 +NV_gpu_program5 enum: + MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV = 0x8E5A + MIN_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5B + MAX_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5C + FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV = 0x8E5D + MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5E + MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5F + MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV = 0x8F44 # Requires ARB_shader_subroutine + MAX_PROGRAM_SUBROUTINE_NUM_NV = 0x8F45 # Requires ARB_shader_subroutine + +############################################################################### + +# Extension #389 +NV_gpu_shader5 enum: + INT64_NV = 0x140E + UNSIGNED_INT64_NV = 0x140F + INT8_NV = 0x8FE0 + INT8_VEC2_NV = 0x8FE1 + INT8_VEC3_NV = 0x8FE2 + INT8_VEC4_NV = 0x8FE3 + INT16_NV = 0x8FE4 + INT16_VEC2_NV = 0x8FE5 + INT16_VEC3_NV = 0x8FE6 + INT16_VEC4_NV = 0x8FE7 + INT64_VEC2_NV = 0x8FE9 + INT64_VEC3_NV = 0x8FEA + INT64_VEC4_NV = 0x8FEB + UNSIGNED_INT8_NV = 0x8FEC + UNSIGNED_INT8_VEC2_NV = 0x8FED + UNSIGNED_INT8_VEC3_NV = 0x8FEE + UNSIGNED_INT8_VEC4_NV = 0x8FEF + UNSIGNED_INT16_NV = 0x8FF0 + UNSIGNED_INT16_VEC2_NV = 0x8FF1 + UNSIGNED_INT16_VEC3_NV = 0x8FF2 + UNSIGNED_INT16_VEC4_NV = 0x8FF3 + UNSIGNED_INT64_VEC2_NV = 0x8FF5 + UNSIGNED_INT64_VEC3_NV = 0x8FF6 + UNSIGNED_INT64_VEC4_NV = 0x8FF7 + FLOAT16_NV = 0x8FF8 + FLOAT16_VEC2_NV = 0x8FF9 + FLOAT16_VEC3_NV = 0x8FFA + FLOAT16_VEC4_NV = 0x8FFB + use ARB_tessellation_shader PATCHES + +############################################################################### + +# Extension #390 +NV_shader_buffer_store enum: + SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV = 0x00000010 + use VERSION_1_5 READ_WRITE + use VERSION_1_5 WRITE_ONLY + +############################################################################### + +# Extension #391 +NV_tessellation_program5 enum: + MAX_PROGRAM_PATCH_ATTRIBS_NV = 0x86D8 + TESS_CONTROL_PROGRAM_NV = 0x891E + TESS_EVALUATION_PROGRAM_NV = 0x891F + TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV = 0x8C74 + TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV = 0x8C75 + +############################################################################### + +# Extension #392 +NV_vertex_attrib_integer_64bit enum: + use NV_gpu_shader5 INT64_NV + use NV_gpu_shader5 UNSIGNED_INT64_NV + +############################################################################### + +# Extension #393 +# Reuses SAMPLES enum as COVERAGE_SAMPLES +NV_multisample_coverage enum: + COVERAGE_SAMPLES_NV = 0x80A9 + COLOR_SAMPLES_NV = 0x8E20 + +############################################################################### + +# Extension #394 +AMD_name_gen_delete enum: + DATA_BUFFER_AMD = 0x9151 + PERFORMANCE_MONITOR_AMD = 0x9152 + QUERY_OBJECT_AMD = 0x9153 + VERTEX_ARRAY_OBJECT_AMD = 0x9154 + SAMPLER_OBJECT_AMD = 0x9155 + +############################################################################### + +# Extension #395 +AMD_debug_output enum: + MAX_DEBUG_LOGGED_MESSAGES_AMD = 0x9144 + DEBUG_LOGGED_MESSAGES_AMD = 0x9145 + DEBUG_SEVERITY_HIGH_AMD = 0x9146 + DEBUG_SEVERITY_MEDIUM_AMD = 0x9147 + DEBUG_SEVERITY_LOW_AMD = 0x9148 + DEBUG_CATEGORY_API_ERROR_AMD = 0x9149 + DEBUG_CATEGORY_WINDOW_SYSTEM_AMD = 0x914A + DEBUG_CATEGORY_DEPRECATION_AMD = 0x914B + DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD = 0x914C + DEBUG_CATEGORY_PERFORMANCE_AMD = 0x914D + DEBUG_CATEGORY_SHADER_COMPILER_AMD = 0x914E + DEBUG_CATEGORY_APPLICATION_AMD = 0x914F + DEBUG_CATEGORY_OTHER_AMD = 0x9150 + +############################################################################### + +# Extension #396 +NV_vdpau_interop enum: + SURFACE_STATE_NV = 0x86EB + SURFACE_REGISTERED_NV = 0x86FD + SURFACE_MAPPED_NV = 0x8700 + WRITE_DISCARD_NV = 0x88BE + +############################################################################### + +# No new tokens +# Extension #397 +AMD_transform_feedback3_lines_triangles enum: + +############################################################################### + +# Extension #398 - GLX_AMD_gpu_association +# Extension #399 - GLX_EXT_create_context_es2_profile +# Extension #400 - WGL_EXT_create_context_es2_profile + +############################################################################### + +# Extension #401 +AMD_depth_clamp_separate enum: + DEPTH_CLAMP_NEAR_AMD = 0x901E + DEPTH_CLAMP_FAR_AMD = 0x901F + +############################################################################### + +# Extension #402 +EXT_texture_sRGB_decode enum: + TEXTURE_SRGB_DECODE_EXT = 0x8A48 + DECODE_EXT = 0x8A49 + SKIP_DECODE_EXT = 0x8A4A + + +############################################################################### + +# Extension #403 +NV_texture_multisample enum: + TEXTURE_COVERAGE_SAMPLES_NV = 0x9045 + TEXTURE_COLOR_SAMPLES_NV = 0x9046 + +############################################################################### + +# Extension #404 +AMD_blend_minmax_factor enum: + FACTOR_MIN_AMD = 0x901C + FACTOR_MAX_AMD = 0x901D + +############################################################################### + +# Extension #505 +#AMD_sample_positions enum: +# SUBSAMPLE_DISTANCE_AMD = 0x883F diff --git a/src/glx/apple/specs/gl.spec b/src/glx/apple/specs/gl.spec index bc054f8643d..9dfefbe6036 100644 --- a/src/glx/apple/specs/gl.spec +++ b/src/glx/apple/specs/gl.spec @@ -7,7 +7,7 @@ # This document is licensed under the SGI Free Software B License Version # 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . # -# $Revision: 10971 $ on $Date: 2010-04-09 02:45:33 -0700 (Fri, 09 Apr 2010) $ +# $Revision: 14384 $ on $Date: 2011-04-05 23:05:03 -0700 (Tue, 05 Apr 2011) $ required-props: # Description of a parameter @@ -21,7 +21,7 @@ vectorequiv: * # Category this function falls in. While there are many categories for # early GL 1.0 functions, later functions just have a core version # (e.g. VERSION_major_minor) or extension name for the category. -category: display-list drawing drawing-control feedback framebuf misc modeling pixel-op pixel-rw state-req xform VERSION_1_0 VERSION_1_0_DEPRECATED VERSION_1_1 VERSION_1_1_DEPRECATED VERSION_1_2 VERSION_1_2_DEPRECATED VERSION_1_3 VERSION_1_3_DEPRECATED VERSION_1_4 VERSION_1_4_DEPRECATED VERSION_1_5 VERSION_2_0 VERSION_2_1 VERSION_3_0 VERSION_3_0_DEPRECATED VERSION_3_1 VERSION_3_2 VERSION_3_3 VERSION_4_0 ATI_element_array ATI_envmap_bumpmap ATI_fragment_shader ATI_pn_triangles ATI_vertex_array_object ATI_vertex_streams EXT_blend_color EXT_blend_minmax EXT_convolution EXT_copy_texture EXT_histogram EXT_polygon_offset EXT_subtexture EXT_texture3D EXT_texture_object EXT_vertex_array EXT_vertex_shader SGIS_detail_texture SGIS_multisample SGIS_pixel_texture ARB_point_parameters EXT_point_parameters SGIS_point_parameters SGIS_sharpen_texture SGIS_texture4D SGIS_texture_filter4 SGIX_async SGIX_flush_raster SGIX_fragment_lighting SGIX_framezoom SGIX_igloo_interface SGIX_instruments SGIX_list_priority SGIX_pixel_texture SGIX_polynomial_ffd SGIX_reference_plane SGIX_sprite SGIX_tag_sample_buffer SGI_color_table ARB_multitexture ARB_multisample ARB_texture_compression ARB_transpose_matrix ARB_vertex_blend ARB_matrix_palette EXT_compiled_vertex_array EXT_cull_vertex EXT_index_func EXT_index_material EXT_draw_range_elements EXT_vertex_weighting INGR_blend_func_separate NV_evaluators NV_fence NV_occlusion_query NV_point_sprite NV_register_combiners NV_register_combiners2 NV_vertex_array_range NV_vertex_program NV_vertex_program1_1_dcc MESA_resize_buffers MESA_window_pos PGI_misc_hints EXT_fog_coord EXT_blend_func_separate EXT_color_subtable EXT_coordinate_frame EXT_light_texture EXT_multi_draw_arrays EXT_paletted_texture EXT_pixel_transform EXT_secondary_color EXT_texture_perturb_normal HP_image_transform IBM_multimode_draw_arrays IBM_vertex_array_lists INTEL_parallel_arrays SUNX_constant_data SUN_global_alpha SUN_mesh_array SUN_triangle_list SUN_vertex 3DFX_tbuffer EXT_multisample SGIS_fog_function SGIS_texture_color_mask ARB_window_pos EXT_stencil_two_side EXT_depth_bounds_test EXT_blend_equation_separate ARB_vertex_program ARB_fragment_program ARB_vertex_buffer_object ARB_occlusion_query ARB_shader_objects ARB_vertex_shader ARB_fragment_shader S3_s3tc ATI_draw_buffers ATI_texture_env_combine3 ATI_texture_float NV_float_buffer NV_fragment_program NV_half_float NV_pixel_data_range NV_primitive_restart NV_texture_expand_normal NV_texture_expand_normal NV_vertex_program2 APPLE_element_array APPLE_fence APPLE_vertex_array_object APPLE_vertex_array_range ATI_draw_buffers NV_fragment_program NV_half_float NV_pixel_data_range NV_primitive_restart ATI_map_object_buffer ATI_separate_stencil ATI_vertex_attrib_array_object ARB_draw_buffers ARB_texture_rectangle ARB_color_buffer_float EXT_framebuffer_object GREMEDY_string_marker EXT_stencil_clear_tag EXT_framebuffer_blit EXT_framebuffer_multisample MESAX_texture_stack EXT_timer_query EXT_gpu_program_parameters APPLE_flush_buffer_range NV_gpu_program4 NV_geometry_program4 EXT_geometry_shader4 NV_vertex_program4 EXT_gpu_shader4 EXT_draw_instanced EXT_texture_buffer_object NV_depth_buffer_float NV_framebuffer_multisample_coverage NV_parameter_buffer_object EXT_draw_buffers2 NV_transform_feedback EXT_bindable_uniform EXT_texture_integer GREMEDY_frame_terminator NV_conditional_render NV_present_video EXT_transform_feedback ARB_depth_buffer_float ARB_draw_instanced ARB_framebuffer_object ARB_framebuffer_sRGB ARB_geometry_shader4 ARB_half_float_vertex ARB_instanced_arrays ARB_map_buffer_range ARB_texture_buffer_object ARB_texture_compression_rgtc ARB_texture_rg ARB_vertex_array_object EXT_direct_state_access EXT_vertex_array_bgra EXT_texture_swizzle NV_explicit_multisample NV_transform_feedback2 ATI_meminfo AMD_performance_monitor AMD_vertex_shader_tesselator EXT_provoking_vertex ARB_uniform_buffer_object ARB_copy_buffer EXT_texture_snorm AMD_draw_buffers_blend APPLE_texture_range APPLE_float_pixels APPLE_vertex_program_evaluators APPLE_aux_depth_stencil APPLE_object_purgeable APPLE_row_bytes ARB_draw_elements_base_vertex ARB_provoking_vertex ARB_sync ARB_texture_multisample ARB_draw_buffers_blend ARB_sample_shading NV_video_capture NV_copy_image EXT_separate_shader_objects NV_parameter_buffer_object2 NV_shader_buffer_load NV_vertex_buffer_unified_memory NV_texture_barrier ARB_shading_language_include ARB_blend_func_extended ARB_sampler_objects ARB_timer_query ARB_vertex_type_2_10_10_10_rev ARB_draw_indirect ARB_gpu_shader_fp64 ARB_shader_subroutine ARB_tessellation_shader ARB_transform_feedback2 ARB_transform_feedback3 AMD_conservative_depth +category: display-list drawing drawing-control feedback framebuf misc modeling pixel-op pixel-rw state-req xform VERSION_1_0 VERSION_1_0_DEPRECATED VERSION_1_1 VERSION_1_1_DEPRECATED VERSION_1_2 VERSION_1_2_DEPRECATED VERSION_1_3 VERSION_1_3_DEPRECATED VERSION_1_4 VERSION_1_4_DEPRECATED VERSION_1_5 VERSION_2_0 VERSION_2_1 VERSION_3_0 VERSION_3_0_DEPRECATED VERSION_3_1 VERSION_3_2 VERSION_3_3 VERSION_4_0 VERSION_4_1 VERSION_4_1_DEPRECATED ATI_element_array ATI_envmap_bumpmap ATI_fragment_shader ATI_pn_triangles ATI_vertex_array_object ATI_vertex_streams EXT_blend_color EXT_blend_minmax EXT_convolution EXT_copy_texture EXT_histogram EXT_polygon_offset EXT_subtexture EXT_texture3D EXT_texture_object EXT_vertex_array EXT_vertex_shader SGIS_detail_texture SGIS_multisample SGIS_pixel_texture ARB_point_parameters EXT_point_parameters SGIS_point_parameters SGIS_sharpen_texture SGIS_texture4D SGIS_texture_filter4 SGIX_async SGIX_flush_raster SGIX_fragment_lighting SGIX_framezoom SGIX_igloo_interface SGIX_instruments SGIX_list_priority SGIX_pixel_texture SGIX_polynomial_ffd SGIX_reference_plane SGIX_sprite SGIX_tag_sample_buffer SGI_color_table ARB_multitexture ARB_multisample ARB_texture_compression ARB_transpose_matrix ARB_vertex_blend ARB_matrix_palette EXT_compiled_vertex_array EXT_cull_vertex EXT_index_func EXT_index_material EXT_draw_range_elements EXT_vertex_weighting INGR_blend_func_separate NV_evaluators NV_fence NV_occlusion_query NV_point_sprite NV_register_combiners NV_register_combiners2 NV_vertex_array_range NV_vertex_program NV_vertex_program1_1_dcc MESA_resize_buffers MESA_window_pos PGI_misc_hints EXT_fog_coord EXT_blend_func_separate EXT_color_subtable EXT_coordinate_frame EXT_light_texture EXT_multi_draw_arrays EXT_paletted_texture EXT_pixel_transform EXT_secondary_color EXT_texture_perturb_normal HP_image_transform IBM_multimode_draw_arrays IBM_vertex_array_lists INTEL_parallel_arrays SUNX_constant_data SUN_global_alpha SUN_mesh_array SUN_triangle_list SUN_vertex 3DFX_tbuffer EXT_multisample SGIS_fog_function SGIS_texture_color_mask ARB_window_pos EXT_stencil_two_side EXT_depth_bounds_test EXT_blend_equation_separate ARB_vertex_program ARB_fragment_program ARB_vertex_buffer_object ARB_occlusion_query ARB_shader_objects ARB_vertex_shader ARB_fragment_shader S3_s3tc ATI_draw_buffers ATI_texture_env_combine3 ATI_texture_float NV_float_buffer NV_fragment_program NV_half_float NV_pixel_data_range NV_primitive_restart NV_texture_expand_normal NV_texture_expand_normal NV_vertex_program2 APPLE_element_array APPLE_fence APPLE_vertex_array_object APPLE_vertex_array_range ATI_draw_buffers NV_fragment_program NV_half_float NV_pixel_data_range NV_primitive_restart ATI_map_object_buffer ATI_separate_stencil ATI_vertex_attrib_array_object ARB_draw_buffers ARB_texture_rectangle ARB_color_buffer_float EXT_framebuffer_object GREMEDY_string_marker EXT_stencil_clear_tag EXT_framebuffer_blit EXT_framebuffer_multisample MESAX_texture_stack EXT_timer_query EXT_gpu_program_parameters APPLE_flush_buffer_range NV_gpu_program4 NV_geometry_program4 EXT_geometry_shader4 NV_vertex_program4 EXT_gpu_shader4 EXT_draw_instanced EXT_texture_buffer_object NV_depth_buffer_float NV_framebuffer_multisample_coverage NV_parameter_buffer_object EXT_draw_buffers2 NV_transform_feedback EXT_bindable_uniform EXT_texture_integer GREMEDY_frame_terminator NV_conditional_render NV_present_video EXT_transform_feedback ARB_depth_buffer_float ARB_draw_instanced ARB_framebuffer_object ARB_framebuffer_sRGB ARB_geometry_shader4 ARB_half_float_vertex ARB_instanced_arrays ARB_map_buffer_range ARB_texture_buffer_object ARB_texture_compression_rgtc ARB_texture_rg ARB_vertex_array_object EXT_direct_state_access EXT_vertex_array_bgra EXT_texture_swizzle NV_explicit_multisample NV_transform_feedback2 ATI_meminfo AMD_performance_monitor AMD_vertex_shader_tesselator EXT_provoking_vertex ARB_uniform_buffer_object ARB_copy_buffer EXT_texture_snorm AMD_draw_buffers_blend APPLE_texture_range APPLE_float_pixels APPLE_vertex_program_evaluators APPLE_aux_depth_stencil APPLE_object_purgeable APPLE_row_bytes ARB_draw_elements_base_vertex ARB_provoking_vertex ARB_sync ARB_texture_multisample ARB_draw_buffers_blend ARB_sample_shading NV_video_capture NV_copy_image EXT_separate_shader_objects NV_parameter_buffer_object2 NV_shader_buffer_load NV_vertex_buffer_unified_memory NV_texture_barrier ARB_shading_language_include ARB_blend_func_extended ARB_sampler_objects ARB_timer_query ARB_vertex_type_2_10_10_10_rev ARB_draw_indirect ARB_gpu_shader_fp64 ARB_shader_subroutine ARB_tessellation_shader ARB_transform_feedback2 ARB_transform_feedback3 AMD_conservative_depth NV_vdpau_interop ARB_ES2_compatibility ARB_get_program_binary ARB_separate_shader_objects ARB_vertex_attrib_64bit ARB_viewport_array ARB_cl_event ARB_debug_output ARB_robustness EXT_shader_image_load_store EXT_vertex_attrib_64bit NV_gpu_shader5 NV_vertex_attrib_integer_64bit AMD_name_gen_delete AMD_debug_output NV_vdpau_interop NV_gpu_program5 NV_texture_multisample # Categories for extensions with no functions - need not be included now # ARB_texture_env_add ARB_texture_cube_map ARB_texture_border_clamp @@ -61,10 +61,11 @@ category: display-list drawing drawing-control feedback framebuf misc modeling p # ARB_seamless_cube_map ARB_vertex_array_bgra ARB_texture_cube_map_array # ARB_texture_gather ARB_texture_query_lod # AMD_shader_stencil_export AMD_seamless_cubemap_per_texture +# AMD_blend_minmax_factor commands # Core version in which a function was introduced, or against # which an extension can be implemented -version: 1.0 1.1 1.2 1.3 1.4 1.5 2.0 2.1 3.0 3.1 3.2 3.3 4.0 +version: 1.0 1.1 1.2 1.3 1.4 1.5 2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 # Core version in which a function was removed deprecated: 3.1 # GLX Single, Rendering, or Vendor Private opcode @@ -90,7 +91,7 @@ glextmask: * # # glxsingle, glxropcode, and other GLX allocations to vendors # are used here, but the master registry for GLX is in -# /ogl/trunk/doc/registry/extensions.reserved +# /repos/ogl/trunk/doc/registry/extensions.reserved # # XFree86 dispatch offsets: 0-645 # 578-641 NV_vertex_program @@ -104,14 +105,13 @@ glextmask: * # # - append new ARB and non-ARB extensions to the appropriate portion of # the spec file, in extension number order. -# - use tabs, not spaces +# - leading tabs are suggested. Whitespace of any sort may be used elsewhere. # - set glxflags to "ignore" until GLX is updated to support the new command # - add new data types to typemaps/spec2wire.map # - add extension name in alphabetical order to category list # - add commands within an extension in spec order # - use existing command entries as a model (where possible) -# - when reserving new glxropcodes, update -# gfx/lib/opengl/doc/glspec/extensions.reserved to indicate this +# - when reserving new glxropcodes, update extensions.reserved (per above) # ############################################################################### @@ -194,12 +194,30 @@ passthru: typedef int64_t GLint64EXT; passthru: typedef uint64_t GLuint64EXT; passthru: #endif passthru: -passthru: #ifndef ARB_sync +passthru: #ifndef GL_ARB_sync passthru: typedef int64_t GLint64; passthru: typedef uint64_t GLuint64; passthru: typedef struct __GLsync *GLsync; passthru: #endif passthru: +passthru: #ifndef GL_ARB_cl_event +passthru: /* These incomplete types let us declare types compatible with OpenCL's cl_context and cl_event */ +passthru: struct _cl_context; +passthru: struct _cl_event; +passthru: #endif +passthru: +passthru: #ifndef GL_ARB_debug_output +passthru: typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam); +passthru: #endif +passthru: +passthru: #ifndef GL_AMD_debug_output +passthru: typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam); +passthru: #endif +passthru: +passthru: #ifndef GL_NV_vdpau_interop +passthru: typedef GLintptr GLvdpauSurfaceNV; +passthru: #endif +passthru: ############################################################################### ############################################################################### @@ -5046,8 +5064,8 @@ BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha) MultiDrawArrays(mode, first, count, primcount) return void param mode BeginMode in value - param first Int32 out array [COMPSIZE(count)] - param count SizeI out array [COMPSIZE(primcount)] + param first Int32 in array [COMPSIZE(count)] + param count SizeI in array [COMPSIZE(primcount)] param primcount SizeI in value category VERSION_1_4 version 1.4 @@ -5793,10 +5811,10 @@ StencilOpSeparate(face, sfail, dpfail, dppass) glxflags ignore offset ? -StencilFuncSeparate(frontfunc, backfunc, ref, mask) +StencilFuncSeparate(face, func, ref, mask) return void - param frontfunc StencilFunction in value - param backfunc StencilFunction in value + param face StencilFaceDirection in value + param func StencilFunction in value param ref ClampedStencilValue in value param mask MaskedStencilValue in value category VERSION_2_0 @@ -6066,7 +6084,7 @@ GetUniformfv(program, location, params) return void param program UInt32 in value param location Int32 in value - param params Float32 out array [location] + param params Float32 out array [COMPSIZE(location)] category VERSION_2_0 dlflags notlistable version 2.0 @@ -6079,7 +6097,7 @@ GetUniformiv(program, location, params) return void param program UInt32 in value param location Int32 in value - param params Int32 out array [location] + param params Int32 out array [COMPSIZE(location)] category VERSION_2_0 dlflags notlistable version 2.0 @@ -7828,18 +7846,8 @@ GetBufferParameteri64v(target, pname, params) # OpenGL 3.2 (ARB_fragment_coord_conventions) commands - none # OpenGL 3.2 (ARB_geometry_shader4) commands - -ProgramParameteri(program, pname, value) - return void - param program UInt32 in value - param pname GLenum in value - param value Int32 in value - category VERSION_3_2 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? +# ProgramParameteriARB was NOT promoted to core 3.2, but +# IS part of core 4.1 through other ARB extensions. FramebufferTexture(target, attachment, texture, level) return void @@ -7878,8 +7886,19 @@ passthru: /* ARB_texture_multisample */ ############################################################################### ############################################################################### -# New commands in OpenGL 3.3 - none -newcategory: VERSION_3_3 +# New commands in OpenGL 3.3 + +# OpenGL 3.3 (ARB_instanced_arrays) commands + +VertexAttribDivisor(index, divisor) + return void + param index UInt32 in value + param divisor UInt32 in value + category VERSION_3_3 + version 1.1 + extension + glfflags ignore + glxflags ignore passthru: /* OpenGL 3.3 also reuses entry points from these extensions: */ passthru: /* ARB_blend_func_extended */ @@ -7902,18 +7921,104 @@ passthru: /* ARB_vertex_type_2_10_10_10_rev */ ############################################################################### # New commands in OpenGL 4.0 - none -newcategory: VERSION_4_0 + +# OpenGL 4.0 (ARB_sample_shading) commands + +MinSampleShading(value) + return void + param value ClampedColorF in value + category VERSION_4_0 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +# OpenGL 4.0 (ARB_draw_buffers_blend) commands + +BlendEquationi(buf, mode) + return void + param buf UInt32 in value + param mode GLenum in value + category VERSION_4_0 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +BlendEquationSeparatei(buf, modeRGB, modeAlpha) + return void + param buf UInt32 in value + param modeRGB GLenum in value + param modeAlpha GLenum in value + category VERSION_4_0 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +BlendFunci(buf, src, dst) + return void + param buf UInt32 in value + param src GLenum in value + param dst GLenum in value + category VERSION_4_0 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +BlendFuncSeparatei(buf, srcRGB, dstRGB, srcAlpha, dstAlpha) + return void + param buf UInt32 in value + param srcRGB GLenum in value + param dstRGB GLenum in value + param srcAlpha GLenum in value + param dstAlpha GLenum in value + category VERSION_4_0 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? passthru: /* OpenGL 4.0 also reuses entry points from these extensions: */ +passthru: /* ARB_texture_query_lod (no entry points) */ +passthru: /* ARB_draw_indirect */ passthru: /* ARB_gpu_shader5 (no entry points) */ passthru: /* ARB_gpu_shader_fp64 */ passthru: /* ARB_shader_subroutine */ passthru: /* ARB_tessellation_shader */ passthru: /* ARB_texture_buffer_object_rgb32 (no entry points) */ +passthru: /* ARB_texture_cube_map_array (no entry points) */ +passthru: /* ARB_texture_gather (no entry points) */ passthru: /* ARB_transform_feedback2 */ passthru: /* ARB_transform_feedback3 */ +############################################################################### +############################################################################### +# +# OpenGL 4.1 commands +# +############################################################################### +############################################################################### + +# New commands in OpenGL 4.1 - none +newcategory: VERSION_4_1 + +passthru: /* OpenGL 4.1 also reuses entry points from these extensions: */ +passthru: /* ARB_ES2_compatibility */ +passthru: /* ARB_get_program_binary */ +passthru: /* ARB_separate_shader_objects */ +passthru: /* ARB_shader_precision (no entry points) */ +passthru: /* ARB_vertex_attrib_64bit */ +passthru: /* ARB_viewport_array */ + + ############################################################################### ############################################################################### # @@ -10299,7 +10404,7 @@ GetUniformfvARB(programObj, location, params) return void param programObj handleARB in value param location Int32 in value - param params Float32 out array [location] + param params Float32 out array [COMPSIZE(location)] category ARB_shader_objects dlflags notlistable version 1.2 @@ -10312,7 +10417,7 @@ GetUniformivARB(programObj, location, params) return void param programObj handleARB in value param location Int32 in value - param params Int32 out array [location] + param params Int32 out array [COMPSIZE(location)] category ARB_shader_objects dlflags notlistable version 1.2 @@ -10574,6 +10679,8 @@ IsRenderbuffer(renderbuffer) glxflags ignore offset ? +# GLX opcode changed so it can be differentiated from BindRenderbufferEXT +# (see ARB_framebuffer_object extension spec revision 23) BindRenderbuffer(target, renderbuffer) return void param target RenderbufferTarget in value @@ -10581,7 +10688,7 @@ BindRenderbuffer(target, renderbuffer) category ARB_framebuffer_object version 3.0 extension - glxropcode 4316 + glxropcode 235 glxflags ignore offset ? @@ -10643,6 +10750,8 @@ IsFramebuffer(framebuffer) glxflags ignore offset ? +# GLX opcode changed so it can be differentiated from BindFramebufferEXT +# (see ARB_framebuffer_object extension spec revision 23) BindFramebuffer(target, framebuffer) return void param target FramebufferTarget in value @@ -10650,7 +10759,7 @@ BindFramebuffer(target, framebuffer) category ARB_framebuffer_object version 3.0 extension - glxropcode 4319 + glxropcode 236 glxflags ignore offset ? @@ -10810,7 +10919,8 @@ FramebufferTextureLayer(target, attachment, texture, level, layer) extension soft WINSOFT dlflags notlistable glfflags ignore - glxflags ignore + glxropcode 237 + offset ? ############################################################################### @@ -10840,6 +10950,7 @@ ProgramParameteriARB(program, pname, value) extension soft WINSOFT glfflags ignore glxflags ignore + alias ProgramParameteri FramebufferTextureARB(target, attachment, texture, level) return void @@ -11466,8 +11577,7 @@ newcategory: ARB_vertex_array_bgra # ############################################################################### -@@@ Add ARB suffixes here & functions! -BlendEquationi(buf, mode) +BlendEquationiARB(buf, mode) return void param buf UInt32 in value param mode GLenum in value @@ -11477,8 +11587,9 @@ BlendEquationi(buf, mode) glxropcode ? glxflags ignore offset ? + alias BlendEquationi -BlendEquationSeparatei(buf, modeRGB, modeAlpha) +BlendEquationSeparateiARB(buf, modeRGB, modeAlpha) return void param buf UInt32 in value param modeRGB GLenum in value @@ -11489,8 +11600,9 @@ BlendEquationSeparatei(buf, modeRGB, modeAlpha) glxropcode ? glxflags ignore offset ? + alias BlendEquationSeparatei -BlendFunci(buf, src, dst) +BlendFunciARB(buf, src, dst) return void param buf UInt32 in value param src GLenum in value @@ -11501,8 +11613,9 @@ BlendFunci(buf, src, dst) glxropcode ? glxflags ignore offset ? + alias BlendFunci -BlendFuncSeparatei(buf, srcRGB, dstRGB, srcAlpha, dstAlpha) +BlendFuncSeparateiARB(buf, srcRGB, dstRGB, srcAlpha, dstAlpha) return void param buf UInt32 in value param srcRGB GLenum in value @@ -11515,6 +11628,7 @@ BlendFuncSeparatei(buf, srcRGB, dstRGB, srcAlpha, dstAlpha) glxropcode ? glxflags ignore offset ? + alias BlendFuncSeparatei ############################################################################### # @@ -11523,8 +11637,7 @@ BlendFuncSeparatei(buf, srcRGB, dstRGB, srcAlpha, dstAlpha) # ############################################################################### -@@@ Add ARB suffixes here & functions! -MinSampleShading(value) +MinSampleShadingARB(value) return void param value ClampedColorF in value category ARB_sample_shading @@ -11533,6 +11646,7 @@ MinSampleShading(value) glxropcode ? glxflags ignore offset ? + alias MinSampleShading ############################################################################### # @@ -11578,8 +11692,6 @@ newcategory: ARB_texture_query_lod # ############################################################################### -# ??? VERIFY DONE ??? - NamedStringARB(type, namelen, name, stringlen, string) return void param type GLenum in value @@ -11665,7 +11777,8 @@ GetNamedStringivARB(namelen, name, pname, params) # ############################################################################### -# ??? VERIFY DONE ??? +# (none) +newcategory: ARB_texture_compression_bptc ############################################################################### # @@ -11674,8 +11787,6 @@ GetNamedStringivARB(namelen, name, pname, params) # ############################################################################### -# ??? VERIFY DONE ??? - BindFragDataLocationIndexed(program, colorNumber, index, name) return void param program UInt32 in value @@ -11708,7 +11819,8 @@ GetFragDataIndex(program, name) # ############################################################################### -# ??? VERIFY DONE ??? +# (none) +newcategory: ARB_explicit_attrib_location ############################################################################### # @@ -11717,7 +11829,8 @@ GetFragDataIndex(program, name) # ############################################################################### -# ??? VERIFY DONE ??? +# (none) +newcategory: ARB_occlusion_query2 ############################################################################### # @@ -11726,8 +11839,6 @@ GetFragDataIndex(program, name) # ############################################################################### -# ??? VERIFY DONE ??? - GenSamplers(count, samplers) return void param count SizeI in value @@ -11762,7 +11873,7 @@ IsSampler(sampler) BindSampler(unit, sampler) return void - param unit GLenum in value + param unit UInt32 in value param sampler UInt32 in value category ARB_sampler_objects version 1.2 @@ -11882,11 +11993,11 @@ GetSamplerParameterfv(sampler, pname, params) glxflags ignore offset ? -GetSamplerParameterIfv(sampler, pname, params) +GetSamplerParameterIuiv(sampler, pname, params) return void param sampler UInt32 in value param pname GLenum in value - param params Float32 out array [COMPSIZE(pname)] + param params UInt32 out array [COMPSIZE(pname)] category ARB_sampler_objects dlflags notlistable version 1.2 @@ -11902,7 +12013,8 @@ GetSamplerParameterIfv(sampler, pname, params) # ############################################################################### -# ??? VERIFY DONE ??? +# (none) +newcategroy: ARB_shader_bit_encoding ############################################################################### # @@ -11911,7 +12023,8 @@ GetSamplerParameterIfv(sampler, pname, params) # ############################################################################### -# ??? VERIFY DONE ??? +# (none) +newcategory: ARB_texture_rgb10_a2ui ############################################################################### # @@ -11920,7 +12033,8 @@ GetSamplerParameterIfv(sampler, pname, params) # ############################################################################### -# ??? VERIFY DONE ??? +# (none) +newcategory: ARB_texture_swizzle ############################################################################### # @@ -11929,8 +12043,6 @@ GetSamplerParameterIfv(sampler, pname, params) # ############################################################################### -# ??? VERIFY DONE ??? - QueryCounter(id, target) return void param id UInt32 in value @@ -11975,8 +12087,6 @@ GetQueryObjectui64v(id, pname, params) # ############################################################################### -# ??? VERIFY DONE ??? - VertexP2ui(type, value) return void param type GLenum in value @@ -12426,8 +12536,6 @@ VertexAttribP4uiv(index, type, normalized, value) # ############################################################################### -# ??? VERIFY DONE ??? - DrawArraysIndirect(mode, indirect) return void param mode GLenum in value @@ -12458,7 +12566,8 @@ DrawElementsIndirect(mode, type, indirect) # ############################################################################### -# ??? VERIFY DONE ??? +# (none) +newcategory: ARB_gpu_shader5 ############################################################################### # @@ -12467,8 +12576,6 @@ DrawElementsIndirect(mode, type, indirect) # ############################################################################### -# ??? VERIFY DONE ??? - Uniform1d(location, x) return void param location Int32 in value @@ -12688,7 +12795,7 @@ GetUniformdv(program, location, params) return void param program UInt32 in value param location Int32 in value - param params Float64 out array [location] + param params Float64 out array [COMPSIZE(location)] category ARB_gpu_shader_fp64 dlflags notlistable version 1.2 @@ -12697,238 +12804,6 @@ GetUniformdv(program, location, params) glxflags ignore offset ? -ProgramUniform1dEXT(program, location, x) - return void - param program UInt32 in value - param location Int32 in value - param x Float64 in value - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2dEXT(program, location, x, y) - return void - param program UInt32 in value - param location Int32 in value - param x Float64 in value - param y Float64 in value - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3dEXT(program, location, x, y, z) - return void - param program UInt32 in value - param location Int32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4dEXT(program, location, x, y, z, w) - return void - param program UInt32 in value - param location Int32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform1dvEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2dvEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3dvEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4dvEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix2dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix3dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix4dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix2x3dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix2x4dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix3x2dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix3x4dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix4x2dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix4x3dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - ############################################################################### # # ARB Extension #90 @@ -12936,8 +12811,6 @@ ProgramUniformMatrix4x3dvEXT(program, location, count, transpose, value) # ############################################################################### -# ??? VERIFY DONE ??? - GetSubroutineUniformLocation(program, shadertype, name) return Int32 param program UInt32 in value @@ -13057,8 +12930,6 @@ GetProgramStageiv(program, shadertype, pname, values) # ############################################################################### -# ??? VERIFY DONE ??? - PatchParameteri(pname, value) return void param pname GLenum in value @@ -13088,7 +12959,8 @@ PatchParameterfv(pname, values) # ############################################################################### -# ??? VERIFY DONE ??? +# (none) +newcategory: ARB_texture_buffer_object_rgb32 ############################################################################### # @@ -13097,8 +12969,6 @@ PatchParameterfv(pname, values) # ############################################################################### -# ??? VERIFY DONE ??? - BindTransformFeedback(target, id) return void param target GLenum in value @@ -13178,8 +13048,6 @@ DrawTransformFeedback(mode, id) # ############################################################################### -# ??? VERIFY DONE ??? - DrawTransformFeedbackStream(mode, id, stream) return void param mode GLenum in value @@ -13229,6 +13097,1581 @@ GetQueryIndexediv(target, index, pname, params) glxflags ignore offset ? +############################################################################### +# +# ARB Extension #95 +# ARB_ES2_compatibility commands +# +############################################################################### + +ReleaseShaderCompiler() + return void + category ARB_ES2_compatibility + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ShaderBinary(count, shaders, binaryformat, binary, length) + return void + param count SizeI in value + param shaders UInt32 in array [count] + param binaryformat GLenum in value + param binary Void in array [length] + param length SizeI in value + category ARB_ES2_compatibility + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +GetShaderPrecisionFormat(shadertype, precisiontype, range, precision) + return void + param shadertype GLenum in value + param precisiontype GLenum in value + param range Int32 out array [2] + param precision Int32 out array [2] + category ARB_ES2_compatibility + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +DepthRangef(n, f) + return void + param n ClampedFloat32 in value + param f ClampedFloat32 in value + category ARB_ES2_compatibility + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ClearDepthf(d) + return void + param d ClampedFloat32 in value + category ARB_ES2_compatibility + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +############################################################################### +# +# ARB Extension #96 +# ARB_get_program_binary commands +# +############################################################################### + +GetProgramBinary(program, bufSize, length, binaryFormat, binary) + return void + param program UInt32 in value + param bufSize SizeI in value + param length SizeI out array [1] + param binaryFormat GLenum out array [1] + param binary Void out array [COMPSIZE(length)] + category ARB_get_program_binary + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +ProgramBinary(program, binaryFormat, binary, length) + return void + param program UInt32 in value + param binaryFormat GLenum in value + param binary Void in array [length] + param length SizeI in value + category ARB_get_program_binary + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramParameteri(program, pname, value) + return void + param program UInt32 in value + param pname ProgramParameterPName in value + param value Int32 in value + category ARB_get_program_binary + version 3.0 + extension soft WINSOFT + glfflags ignore + glxflags ignore + +############################################################################### +# +# ARB Extension #97 +# ARB_separate_shader_objects commands +# +############################################################################### + +UseProgramStages(pipeline, stages, program) + return void + param pipeline UInt32 in value + param stages GLbitfield in value + param program UInt32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ActiveShaderProgram(pipeline, program) + return void + param pipeline UInt32 in value + param program UInt32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +CreateShaderProgramv(type, count, strings) + return UInt32 + param type GLenum in value + param count SizeI in value + param strings CharPointer in array [count] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +BindProgramPipeline(pipeline) + return void + param pipeline UInt32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +DeleteProgramPipelines(n, pipelines) + return void + param n SizeI in value + param pipelines UInt32 in array [n] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +GenProgramPipelines(n, pipelines) + return void + param n SizeI in value + param pipelines UInt32 out array [n] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +IsProgramPipeline(pipeline) + return Boolean + param pipeline UInt32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +#@ ProgramParameteri also in ARB_get_program_binary + +GetProgramPipelineiv(pipeline, pname, params) + return void + param pipeline UInt32 in value + param pname GLenum in value + param params Int32 out array [COMPSIZE(pname)] + category ARB_separate_shader_objects + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +ProgramUniform1i(program, location, v0) + return void + param program UInt32 in value + param location Int32 in value + param v0 Int32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform1iv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Int32 in array [1] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform1f(program, location, v0) + return void + param program UInt32 in value + param location Int32 in value + param v0 Float32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform1fv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Float32 in array [1] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform1d(program, location, v0) + return void + param program UInt32 in value + param location Int32 in value + param v0 Float64 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform1dv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Float64 in array [1] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform1ui(program, location, v0) + return void + param program UInt32 in value + param location Int32 in value + param v0 UInt32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform1uiv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value UInt32 in array [1] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2i(program, location, v0, v1) + return void + param program UInt32 in value + param location Int32 in value + param v0 Int32 in value + param v1 Int32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2iv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Int32 in array [2] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2f(program, location, v0, v1) + return void + param program UInt32 in value + param location Int32 in value + param v0 Float32 in value + param v1 Float32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2fv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Float32 in array [2] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2d(program, location, v0, v1) + return void + param program UInt32 in value + param location Int32 in value + param v0 Float64 in value + param v1 Float64 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2dv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Float64 in array [2] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2ui(program, location, v0, v1) + return void + param program UInt32 in value + param location Int32 in value + param v0 UInt32 in value + param v1 UInt32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2uiv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value UInt32 in array [2] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3i(program, location, v0, v1, v2) + return void + param program UInt32 in value + param location Int32 in value + param v0 Int32 in value + param v1 Int32 in value + param v2 Int32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3iv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Int32 in array [3] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3f(program, location, v0, v1, v2) + return void + param program UInt32 in value + param location Int32 in value + param v0 Float32 in value + param v1 Float32 in value + param v2 Float32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3fv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Float32 in array [3] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3d(program, location, v0, v1, v2) + return void + param program UInt32 in value + param location Int32 in value + param v0 Float64 in value + param v1 Float64 in value + param v2 Float64 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3dv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Float64 in array [3] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3ui(program, location, v0, v1, v2) + return void + param program UInt32 in value + param location Int32 in value + param v0 UInt32 in value + param v1 UInt32 in value + param v2 UInt32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3uiv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value UInt32 in array [3] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4i(program, location, v0, v1, v2, v3) + return void + param program UInt32 in value + param location Int32 in value + param v0 Int32 in value + param v1 Int32 in value + param v2 Int32 in value + param v3 Int32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4iv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Int32 in array [4] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4f(program, location, v0, v1, v2, v3) + return void + param program UInt32 in value + param location Int32 in value + param v0 Float32 in value + param v1 Float32 in value + param v2 Float32 in value + param v3 Float32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4fv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Float32 in array [4] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4d(program, location, v0, v1, v2, v3) + return void + param program UInt32 in value + param location Int32 in value + param v0 Float64 in value + param v1 Float64 in value + param v2 Float64 in value + param v3 Float64 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4dv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Float64 in array [4] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4ui(program, location, v0, v1, v2, v3) + return void + param program UInt32 in value + param location Int32 in value + param v0 UInt32 in value + param v1 UInt32 in value + param v2 UInt32 in value + param v3 UInt32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4uiv(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value UInt32 in array [4] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix2fv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float32 in array [2] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix3fv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float32 in array [3] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix4fv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float32 in array [4] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix2dv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [2] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix3dv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [3] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix4dv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [4] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix2x3fv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float32 in array [count] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix3x2fv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float32 in array [count] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix2x4fv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float32 in array [count] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix4x2fv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float32 in array [count] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix3x4fv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float32 in array [count] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix4x3fv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float32 in array [count] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix2x3dv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix3x2dv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix2x4dv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix4x2dv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix3x4dv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix4x3dv(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ValidateProgramPipeline(pipeline) + return void + param pipeline UInt32 in value + category ARB_separate_shader_objects + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +GetProgramPipelineInfoLog(pipeline, bufSize, length, infoLog) + return void + param pipeline UInt32 in value + param bufSize SizeI in value + param length SizeI out array [1] + param infoLog Char out array [COMPSIZE(length)] + category ARB_separate_shader_objects + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +############################################################################### +# +# ARB Extension #98 +# ARB_shader_precision commands +# +############################################################################### + +############################################################################### +# +# ARB Extension #99 +# ARB_vertex_attrib_64bit commands +# +############################################################################### + +VertexAttribL1d(index, x) + return void + param index UInt32 in value + param x Float64 in value + category ARB_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL2d(index, x, y) + return void + param index UInt32 in value + param x Float64 in value + param y Float64 in value + category ARB_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL3d(index, x, y, z) + return void + param index UInt32 in value + param x Float64 in value + param y Float64 in value + param z Float64 in value + category ARB_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL4d(index, x, y, z, w) + return void + param index UInt32 in value + param x Float64 in value + param y Float64 in value + param z Float64 in value + param w Float64 in value + category ARB_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL1dv(index, v) + return void + param index UInt32 in value + param v Float64 in array [1] + category ARB_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL2dv(index, v) + return void + param index UInt32 in value + param v Float64 in array [2] + category ARB_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL3dv(index, v) + return void + param index UInt32 in value + param v Float64 in array [3] + category ARB_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL4dv(index, v) + return void + param index UInt32 in value + param v Float64 in array [4] + category ARB_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribLPointer(index, size, type, stride, pointer) + return void + param index UInt32 in value + param size Int32 in value + param type GLenum in value + param stride SizeI in value + param pointer Void in array [size] + category ARB_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +GetVertexAttribLdv(index, pname, params) + return void + param index UInt32 in value + param pname GLenum in value + param params Float64 out array [COMPSIZE(pname)] + category ARB_vertex_attrib_64bit + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +#@ VertexArrayVertexAttribLOffsetEXT also in EXT_vertex_attrib_64bit + +############################################################################### +# +# ARB Extension #100 +# ARB_viewport_array commands +# +############################################################################### + +ViewportArrayv(first, count, v) + return void + param first UInt32 in value + param count SizeI in value + param v Float32 in array [COMPSIZE(count)] + category ARB_viewport_array + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ViewportIndexedf(index, x, y, w, h) + return void + param index UInt32 in value + param x Float32 in value + param y Float32 in value + param w Float32 in value + param h Float32 in value + category ARB_viewport_array + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ViewportIndexedfv(index, v) + return void + param index UInt32 in value + param v Float32 in array [4] + category ARB_viewport_array + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ScissorArrayv(first, count, v) + return void + param first UInt32 in value + param count SizeI in value + param v Int32 in array [COMPSIZE(count)] + category ARB_viewport_array + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ScissorIndexed(index, left, bottom, width, height) + return void + param index UInt32 in value + param left Int32 in value + param bottom Int32 in value + param width SizeI in value + param height SizeI in value + category ARB_viewport_array + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ScissorIndexedv(index, v) + return void + param index UInt32 in value + param v Int32 in array [4] + category ARB_viewport_array + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +DepthRangeArrayv(first, count, v) + return void + param first UInt32 in value + param count SizeI in value + param v ClampedFloat64 in array [COMPSIZE(count)] + category ARB_viewport_array + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +DepthRangeIndexed(index, n, f) + return void + param index UInt32 in value + param n ClampedFloat64 in value + param f ClampedFloat64 in value + category ARB_viewport_array + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +GetFloati_v(target, index, data) + return void + param target GLenum in value + param index UInt32 in value + param data Float32 out array [COMPSIZE(target)] + category ARB_viewport_array + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetDoublei_v(target, index, data) + return void + param target GLenum in value + param index UInt32 in value + param data Float64 out array [COMPSIZE(target)] + category ARB_viewport_array + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +############################################################################### +# +# ARB Extension #101 - GLX_ARB_create_context_robustness +# ARB Extension #102 - WGL_ARB_create_context_robustness +# +############################################################################### + +############################################################################### +# +# ARB Extension #103 +# ARB_cl_event commands +# +############################################################################### + +CreateSyncFromCLeventARB(context, event, flags) + return sync + param context cl_context in value + param event cl_event in value + param flags GLbitfield in value + category ARB_cl_event + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +############################################################################### +# +# ARB Extension #104 +# ARB_debug_output commands +# +############################################################################### + +DebugMessageControlARB(source, type, severity, count, ids, enabled) + return void + param source GLenum in value + param type GLenum in value + param severity GLenum in value + param count SizeI in value + param ids UInt32 in array [count] + param enabled Boolean in value + category ARB_debug_output + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +DebugMessageInsertARB(source, type, id, severity, length, buf) + return void + param source GLenum in value + param type GLenum in value + param id UInt32 in value + param severity GLenum in value + param length SizeI in value + param buf Char in array [length] + category ARB_debug_output + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +DebugMessageCallbackARB(callback, userParam) + return void + param callback GLDEBUGPROCARB in value + param userParam Void in array [COMPSIZE(callback)] + category ARB_debug_output + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +GetDebugMessageLogARB(count, bufsize, sources, types, ids, severities, lengths, messageLog) + return UInt32 + param count UInt32 in value + param bufsize SizeI in value + param sources GLenum out array [count] + param types GLenum out array [count] + param ids UInt32 out array [count] + param severities GLenum out array [count] + param lengths SizeI out array [count] + param messageLog Char out array [COMPSIZE(lengths)] + category ARB_debug_output + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +#@ GetPointerv is redeclared in this extension + +############################################################################### +# +# ARB Extension #105 +# ARB_robustness commands +# +############################################################################### + +GetGraphicsResetStatusARB() + return GLenum + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnMapdvARB(target, query, bufSize, v) + return void + param target GLenum in value + param query GLenum in value + param bufSize SizeI in value + param v Float64 out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnMapfvARB(target, query, bufSize, v) + return void + param target GLenum in value + param query GLenum in value + param bufSize SizeI in value + param v Float32 out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnMapivARB(target, query, bufSize, v) + return void + param target GLenum in value + param query GLenum in value + param bufSize SizeI in value + param v Int32 out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnPixelMapfvARB(map, bufSize, values) + return void + param map GLenum in value + param bufSize SizeI in value + param values Float32 out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnPixelMapuivARB(map, bufSize, values) + return void + param map GLenum in value + param bufSize SizeI in value + param values UInt32 out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnPixelMapusvARB(map, bufSize, values) + return void + param map GLenum in value + param bufSize SizeI in value + param values UInt16 out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnPolygonStippleARB(bufSize, pattern) + return void + param bufSize SizeI in value + param pattern UInt8 out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnColorTableARB(target, format, type, bufSize, table) + return void + param target GLenum in value + param format GLenum in value + param type GLenum in value + param bufSize SizeI in value + param table Void out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnConvolutionFilterARB(target, format, type, bufSize, image) + return void + param target GLenum in value + param format GLenum in value + param type GLenum in value + param bufSize SizeI in value + param image Void out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnSeparableFilterARB(target, format, type, rowBufSize, row, columnBufSize, column, span) + return void + param target GLenum in value + param format GLenum in value + param type GLenum in value + param rowBufSize SizeI in value + param row Void out array [rowBufSize] + param columnBufSize SizeI in value + param column Void out array [columnBufSize] + param span Void out array [0] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnHistogramARB(target, reset, format, type, bufSize, values) + return void + param target GLenum in value + param reset Boolean in value + param format GLenum in value + param type GLenum in value + param bufSize SizeI in value + param values Void out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnMinmaxARB(target, reset, format, type, bufSize, values) + return void + param target GLenum in value + param reset Boolean in value + param format GLenum in value + param type GLenum in value + param bufSize SizeI in value + param values Void out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnTexImageARB(target, level, format, type, bufSize, img) + return void + param target GLenum in value + param level Int32 in value + param format GLenum in value + param type GLenum in value + param bufSize SizeI in value + param img Void out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +ReadnPixelsARB(x, y, width, height, format, type, bufSize, data) + return void + param x Int32 in value + param y Int32 in value + param width SizeI in value + param height SizeI in value + param format GLenum in value + param type GLenum in value + param bufSize SizeI in value + param data Void out array [bufSize] + category ARB_robustness + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +GetnCompressedTexImageARB(target, lod, bufSize, img) + return void + param target GLenum in value + param lod Int32 in value + param bufSize SizeI in value + param img Void out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnUniformfvARB(program, location, bufSize, params) + return void + param program UInt32 in value + param location Int32 in value + param bufSize SizeI in value + param params Float32 out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnUniformivARB(program, location, bufSize, params) + return void + param program UInt32 in value + param location Int32 in value + param bufSize SizeI in value + param params Int32 out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnUniformuivARB(program, location, bufSize, params) + return void + param program UInt32 in value + param location Int32 in value + param bufSize SizeI in value + param params UInt32 out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetnUniformdvARB(program, location, bufSize, params) + return void + param program UInt32 in value + param location Int32 in value + param bufSize SizeI in value + param params Float64 out array [bufSize] + category ARB_robustness + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +############################################################################### +# +# ARB Extension #106 +# ARB_shader_stencil_export commands +# +############################################################################### + +# (none) +newcategory: ARB_shader_stencil_export + ############################################################################### ############################################################################### @@ -16307,8 +17750,8 @@ TextureNormalEXT(mode) MultiDrawArraysEXT(mode, first, count, primcount) return void param mode BeginMode in value - param first Int32 out array [COMPSIZE(primcount)] - param count SizeI out array [COMPSIZE(primcount)] + param first Int32 in array [COMPSIZE(primcount)] + param count SizeI in array [COMPSIZE(primcount)] param primcount SizeI in value category EXT_multi_draw_arrays version 1.1 @@ -18962,7 +20405,7 @@ ProgramParameters4dvNV(target, index, count, v) return void param target VertexAttribEnumNV in value param index UInt32 in value - param count UInt32 in value + param count SizeI in value param v Float64 in array [count*4] category NV_vertex_program version 1.2 @@ -18970,13 +20413,11 @@ ProgramParameters4dvNV(target, index, count, v) glxropcode 4187 offset 598 -#??? 'count' was SizeI in the latest NVIDIA gl.spec, but UInt32 in the -#??? extension specification in the registry. ProgramParameters4fvNV(target, index, count, v) return void param target VertexAttribEnumNV in value param index UInt32 in value - param count UInt32 in value + param count SizeI in value param v Float32 in array [count*4] category NV_vertex_program version 1.2 @@ -22753,6 +24194,7 @@ IsRenderbufferEXT(renderbuffer) glxflags ignore alias IsRenderbuffer +# Not aliased to BindRenderbuffer BindRenderbufferEXT(target, renderbuffer) return void param target RenderbufferTarget in value @@ -22762,7 +24204,6 @@ BindRenderbufferEXT(target, renderbuffer) extension glxropcode 4316 glxflags ignore - alias BindRenderbuffer DeleteRenderbuffersEXT(n, renderbuffers) return void @@ -22822,6 +24263,7 @@ IsFramebufferEXT(framebuffer) glxflags ignore alias IsFramebuffer +# Not aliased to BindFramebuffer BindFramebufferEXT(target, framebuffer) return void param target FramebufferTarget in value @@ -22831,7 +24273,6 @@ BindFramebufferEXT(target, framebuffer) extension glxropcode 4319 glxflags ignore - alias BindFramebuffer DeleteFramebuffersEXT(n, framebuffers) return void @@ -24282,11 +25723,11 @@ BindBufferBaseNV(target, index, buffer) extension soft WINSOFT alias BindBufferBase -TransformFeedbackVaryingsNV(program, count, varyings, bufferMode) +TransformFeedbackVaryingsNV(program, count, locations, bufferMode) return void param program UInt32 in value param count SizeI in value - param varyings CharPointer in array [count] + param locations Int32 in array [count] param bufferMode GLenum in value category NV_transform_feedback version 1.5 @@ -24347,6 +25788,24 @@ GetTransformFeedbackVaryingNV(program, index, location) glxflags ignore alias GetTransformFeedbackVarying +# These commands require ARB_transform_feedback3 +#@@ void TransformFeedbackStreamAttribsNV(sizei count, const int * attribs, sizei nbuffers, const int *bufstreams, enum bufferMode); + +TransformFeedbackStreamAttribsNV(count, attribs, nbuffers, bufstreams, bufferMode) + return void + param count SizeI in value + param attribs Int32 in array [count] + param nbuffers SizeI in value + param bufstreams Int32 in array [nbuffers] + param bufferMode GLenum in value + category NV_transform_feedback + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + + ############################################################################### # # Extension #342 @@ -26945,6 +28404,42 @@ UnmapNamedBufferEXT(buffer) glxflags ignore glfflags ignore +MapNamedBufferRangeEXT(buffer, offset, length, access) + return VoidPointer + param buffer UInt32 in value + param offset Intptr in value + param length Sizeiptr in value + param access BufferAccessMask in value + category EXT_direct_state_access + extension soft WINSOFT + dlflags notlistable + glxflags ignore + glfflags ignore + +FlushMappedNamedBufferRangeEXT(buffer, offset, length) + return void + param buffer UInt32 in value + param offset Intptr in value + param length Sizeiptr in value + category EXT_direct_state_access + extension soft WINSOFT + dlflags notlistable + glxflags ignore + glfflags ignore + +NamedCopyBufferSubDataEXT(readBuffer, writeBuffer, readOffset, writeOffset, size) + return void + param readBuffer UInt32 in value + param writeBuffer UInt32 in value + param readOffset Intptr in value + param writeOffset Intptr in value + param size Sizeiptr in value + category EXT_direct_state_access + extension soft WINSOFT + dlflags notlistable + glxflags ignore + glfflags ignore + # New named buffer queries GetNamedBufferParameterivEXT(buffer, pname, params) @@ -27307,6 +28802,257 @@ MultiTexRenderbufferEXT(texunit, target, renderbuffer) glxflags ignore glextmask GL_MASK_NV_explicit_multisample +# New ARB_gpu_shader_fp64 commands + +ProgramUniform1dEXT(program, location, x) + return void + param program UInt32 in value + param location Int32 in value + param x Float64 in value + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2dEXT(program, location, x, y) + return void + param program UInt32 in value + param location Int32 in value + param x Float64 in value + param y Float64 in value + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3dEXT(program, location, x, y, z) + return void + param program UInt32 in value + param location Int32 in value + param x Float64 in value + param y Float64 in value + param z Float64 in value + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4dEXT(program, location, x, y, z, w) + return void + param program UInt32 in value + param location Int32 in value + param x Float64 in value + param y Float64 in value + param z Float64 in value + param w Float64 in value + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform1dvEXT(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Float64 in array [count] + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2dvEXT(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Float64 in array [count] + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3dvEXT(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Float64 in array [count] + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4dvEXT(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Float64 in array [count] + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix2dvEXT(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix3dvEXT(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix4dvEXT(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix2x3dvEXT(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix2x4dvEXT(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix3x2dvEXT(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix3x4dvEXT(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix4x2dvEXT(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniformMatrix4x3dvEXT(program, location, count, transpose, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param transpose Boolean in value + param value Float64 in array [count] + category EXT_direct_state_access + subcategory ARB_gpu_shader_fp64 + version 1.2 + extension + glxropcode ? + glxflags ignore + offset ? + ############################################################################### # # Extension #354 @@ -27509,7 +29255,7 @@ GetPerfMonitorCounterInfoAMD(group, counter, pname, data) param group UInt32 in value param counter UInt32 in value param pname GLenum in value - param data void out array [COMPSIZE(pname)] + param data Void out array [COMPSIZE(pname)] category AMD_performance_monitor dlflags notlistable version 1.2 @@ -28191,6 +29937,7 @@ CreateShaderProgramEXT(type, string) # ############################################################################### +# (none) newcategory: NV_parameter_buffer_object2 ############################################################################### @@ -28535,6 +30282,7 @@ TextureBarrierNV() # ############################################################################### +# (none) newcategory: AMD_shader_stencil_export ############################################################################### @@ -28544,6 +30292,7 @@ newcategory: AMD_shader_stencil_export # ############################################################################### +# (none) newcategory: AMD_seamless_cubemap_per_texture ############################################################################### @@ -28559,5 +30308,1310 @@ newcategory: AMD_seamless_cubemap_per_texture # ############################################################################### +# (none) newcategory: AMD_conservative_depth +############################################################################### +# +# Extension #386 +# EXT_shader_image_load_store commands +# +############################################################################### + +BindImageTextureEXT(index, texture, level, layered, layer, access, format) + return void + param index UInt32 in value + param texture UInt32 in value + param level Int32 in value + param layered Boolean in value + param layer Int32 in value + param access GLenum in value + param format Int32 in value + category EXT_shader_image_load_store + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +MemoryBarrierEXT(barriers) + return void + param barriers GLbitfield in value + category EXT_shader_image_load_store + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +############################################################################### +# +# Extension #387 +# EXT_vertex_attrib_64bit commands +# +############################################################################### + +VertexAttribL1dEXT(index, x) + return void + param index UInt32 in value + param x Float64 in value + category EXT_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL2dEXT(index, x, y) + return void + param index UInt32 in value + param x Float64 in value + param y Float64 in value + category EXT_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL3dEXT(index, x, y, z) + return void + param index UInt32 in value + param x Float64 in value + param y Float64 in value + param z Float64 in value + category EXT_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL4dEXT(index, x, y, z, w) + return void + param index UInt32 in value + param x Float64 in value + param y Float64 in value + param z Float64 in value + param w Float64 in value + category EXT_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL1dvEXT(index, v) + return void + param index UInt32 in value + param v Float64 in array [1] + category EXT_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL2dvEXT(index, v) + return void + param index UInt32 in value + param v Float64 in array [2] + category EXT_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL3dvEXT(index, v) + return void + param index UInt32 in value + param v Float64 in array [3] + category EXT_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL4dvEXT(index, v) + return void + param index UInt32 in value + param v Float64 in array [4] + category EXT_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribLPointerEXT(index, size, type, stride, pointer) + return void + param index UInt32 in value + param size Int32 in value + param type GLenum in value + param stride SizeI in value + param pointer Void in array [size] + category EXT_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +GetVertexAttribLdvEXT(index, pname, params) + return void + param index UInt32 in value + param pname GLenum in value + param params Float64 out array [COMPSIZE(pname)] + category EXT_vertex_attrib_64bit + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +# Also in ARB_vertex_array_64bit. Supposedly dependent on another +# unregistered extension, EXT_direct_state_access_memory + +VertexArrayVertexAttribLOffsetEXT(vaobj, buffer, index, size, type, stride, offset) + return void + param vaobj UInt32 in value + param buffer UInt32 in value + param index UInt32 in value + param size Int32 in value + param type GLenum in value + param stride SizeI in value + param offset BufferOffset in value + category EXT_vertex_attrib_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +############################################################################### +# +# Extension #388 +# NV_gpu_program5 commands +# +############################################################################### + +# These commands require ARB_shader_subroutine +#@@ void ProgramSubroutineParametersuivNV(enum target, sizei count, const uint *params); +#@@ void GetProgramSubroutineParameteruivNV(enum target, uint index, uint *param); + +ProgramSubroutineParametersuivNV(target, count, params) + return void + param target GLenum in value + param count SizeI in value + param params UInt32 in array [count] + category NV_gpu_program5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +GetProgramSubroutineParameteruivNV(target, index, param) + return void + param target GLenum in value + param index UInt32 in value + param param UInt32 out array [COMPSIZE(target)] + category NV_gpu_program5 + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +############################################################################### +# +# Extension #389 +# NV_gpu_shader5 commands +# +############################################################################### + +Uniform1i64NV(location, x) + return void + param location Int32 in value + param x Int64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform2i64NV(location, x, y) + return void + param location Int32 in value + param x Int64EXT in value + param y Int64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform3i64NV(location, x, y, z) + return void + param location Int32 in value + param x Int64EXT in value + param y Int64EXT in value + param z Int64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform4i64NV(location, x, y, z, w) + return void + param location Int32 in value + param x Int64EXT in value + param y Int64EXT in value + param z Int64EXT in value + param w Int64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform1i64vNV(location, count, value) + return void + param location Int32 in value + param count SizeI in value + param value Int64EXT in array [count] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform2i64vNV(location, count, value) + return void + param location Int32 in value + param count SizeI in value + param value Int64EXT in array [COMPSIZE(count*2)] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform3i64vNV(location, count, value) + return void + param location Int32 in value + param count SizeI in value + param value Int64EXT in array [COMPSIZE(count*3)] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform4i64vNV(location, count, value) + return void + param location Int32 in value + param count SizeI in value + param value Int64EXT in array [COMPSIZE(count*4)] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform1ui64NV(location, x) + return void + param location Int32 in value + param x UInt64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform2ui64NV(location, x, y) + return void + param location Int32 in value + param x UInt64EXT in value + param y UInt64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform3ui64NV(location, x, y, z) + return void + param location Int32 in value + param x UInt64EXT in value + param y UInt64EXT in value + param z UInt64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform4ui64NV(location, x, y, z, w) + return void + param location Int32 in value + param x UInt64EXT in value + param y UInt64EXT in value + param z UInt64EXT in value + param w UInt64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform1ui64vNV(location, count, value) + return void + param location Int32 in value + param count SizeI in value + param value UInt64EXT in array [count] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform2ui64vNV(location, count, value) + return void + param location Int32 in value + param count SizeI in value + param value UInt64EXT in array [COMPSIZE(count*2)] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform3ui64vNV(location, count, value) + return void + param location Int32 in value + param count SizeI in value + param value UInt64EXT in array [COMPSIZE(count*3)] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +Uniform4ui64vNV(location, count, value) + return void + param location Int32 in value + param count SizeI in value + param value UInt64EXT in array [COMPSIZE(count*4)] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +GetUniformi64vNV(program, location, params) + return void + param program UInt32 in value + param location Int32 in value + param params Int64EXT out array [COMPSIZE(location)] + category NV_gpu_shader5 + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +ProgramUniform1i64NV(program, location, x) + return void + param program UInt32 in value + param location Int32 in value + param x Int64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2i64NV(program, location, x, y) + return void + param program UInt32 in value + param location Int32 in value + param x Int64EXT in value + param y Int64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3i64NV(program, location, x, y, z) + return void + param program UInt32 in value + param location Int32 in value + param x Int64EXT in value + param y Int64EXT in value + param z Int64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4i64NV(program, location, x, y, z, w) + return void + param program UInt32 in value + param location Int32 in value + param x Int64EXT in value + param y Int64EXT in value + param z Int64EXT in value + param w Int64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform1i64vNV(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Int64EXT in array [count] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2i64vNV(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Int64EXT in array [COMPSIZE(count*2)] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3i64vNV(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Int64EXT in array [COMPSIZE(count*3)] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4i64vNV(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value Int64EXT in array [COMPSIZE(count*4)] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform1ui64NV(program, location, x) + return void + param program UInt32 in value + param location Int32 in value + param x UInt64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2ui64NV(program, location, x, y) + return void + param program UInt32 in value + param location Int32 in value + param x UInt64EXT in value + param y UInt64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3ui64NV(program, location, x, y, z) + return void + param program UInt32 in value + param location Int32 in value + param x UInt64EXT in value + param y UInt64EXT in value + param z UInt64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4ui64NV(program, location, x, y, z, w) + return void + param program UInt32 in value + param location Int32 in value + param x UInt64EXT in value + param y UInt64EXT in value + param z UInt64EXT in value + param w UInt64EXT in value + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform1ui64vNV(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value UInt64EXT in array [count] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform2ui64vNV(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value UInt64EXT in array [COMPSIZE(count*2)] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform3ui64vNV(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value UInt64EXT in array [COMPSIZE(count*3)] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +ProgramUniform4ui64vNV(program, location, count, value) + return void + param program UInt32 in value + param location Int32 in value + param count SizeI in value + param value UInt64EXT in array [COMPSIZE(count*4)] + category NV_gpu_shader5 + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +#@ GetUniformui64vNV also in NV_shader_buffer_load + +############################################################################### +# +# Extension #390 +# NV_shader_buffer_store commands +# +############################################################################### + +# (none) +newcategory: NV_shader_buffer_store + +############################################################################### +# +# Extension #391 +# NV_tessellation_program5 commands +# +############################################################################### + +# (none) +newcategory: NV_tessellation_program5 + +############################################################################### +# +# Extension #392 +# NV_vertex_attrib_integer_64bit commands +# +############################################################################### + +VertexAttribL1i64NV(index, x) + return void + param index UInt32 in value + param x Int64EXT in value + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL2i64NV(index, x, y) + return void + param index UInt32 in value + param x Int64EXT in value + param y Int64EXT in value + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL3i64NV(index, x, y, z) + return void + param index UInt32 in value + param x Int64EXT in value + param y Int64EXT in value + param z Int64EXT in value + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL4i64NV(index, x, y, z, w) + return void + param index UInt32 in value + param x Int64EXT in value + param y Int64EXT in value + param z Int64EXT in value + param w Int64EXT in value + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL1i64vNV(index, v) + return void + param index UInt32 in value + param v Int64EXT in array [1] + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL2i64vNV(index, v) + return void + param index UInt32 in value + param v Int64EXT in array [2] + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL3i64vNV(index, v) + return void + param index UInt32 in value + param v Int64EXT in array [3] + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL4i64vNV(index, v) + return void + param index UInt32 in value + param v Int64EXT in array [4] + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL1ui64NV(index, x) + return void + param index UInt32 in value + param x UInt64EXT in value + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL2ui64NV(index, x, y) + return void + param index UInt32 in value + param x UInt64EXT in value + param y UInt64EXT in value + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL3ui64NV(index, x, y, z) + return void + param index UInt32 in value + param x UInt64EXT in value + param y UInt64EXT in value + param z UInt64EXT in value + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL4ui64NV(index, x, y, z, w) + return void + param index UInt32 in value + param x UInt64EXT in value + param y UInt64EXT in value + param z UInt64EXT in value + param w UInt64EXT in value + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL1ui64vNV(index, v) + return void + param index UInt32 in value + param v UInt64EXT in array [1] + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL2ui64vNV(index, v) + return void + param index UInt32 in value + param v UInt64EXT in array [2] + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL3ui64vNV(index, v) + return void + param index UInt32 in value + param v UInt64EXT in array [3] + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VertexAttribL4ui64vNV(index, v) + return void + param index UInt32 in value + param v UInt64EXT in array [4] + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +GetVertexAttribLi64vNV(index, pname, params) + return void + param index UInt32 in value + param pname GLenum in value + param params Int64EXT out array [COMPSIZE(pname)] + category NV_vertex_attrib_integer_64bit + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +GetVertexAttribLui64vNV(index, pname, params) + return void + param index UInt32 in value + param pname GLenum in value + param params UInt64EXT out array [COMPSIZE(pname)] + category NV_vertex_attrib_integer_64bit + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +#@ VertexAttribLFormatNV also requires NV_vertex_buffer_unified_memory + +VertexAttribLFormatNV(index, size, type, stride) + return void + param index UInt32 in value + param size Int32 in value + param type GLenum in value + param stride SizeI in value + category NV_vertex_attrib_integer_64bit + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +############################################################################### +# +# Extension #393 +# NV_multisample_coverage commands +# +############################################################################### + +# (none) +newcategory: NV_multisample_coverage + +############################################################################### +# +# Extension #394 +# AMD_name_gen_delete commands +# +############################################################################### + +GenNamesAMD(identifier, num, names) + return void + param identifier GLenum in value + param num UInt32 in value + param names UInt32 out array [num] + category AMD_name_gen_delete + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +DeleteNamesAMD(identifier, num, names) + return void + param identifier GLenum in value + param num UInt32 in value + param names UInt32 in array [num] + category AMD_name_gen_delete + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +IsNameAMD(identifier, name) + return Boolean + param identifier GLenum in value + param name UInt32 in value + category AMD_name_gen_delete + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +############################################################################### +# +# Extension #395 +# AMD_debug_output commands +# +############################################################################### + +DebugMessageEnableAMD(category, severity, count, ids, enabled) + return void + param category GLenum in value + param severity GLenum in value + param count SizeI in value + param ids UInt32 in array [count] + param enabled Boolean in value + category AMD_debug_output + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +DebugMessageInsertAMD(category, severity, id, length, buf) + return void + param category GLenum in value + param severity GLenum in value + param id UInt32 in value + param length SizeI in value + param buf Char in array [length] + category AMD_debug_output + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +DebugMessageCallbackAMD(callback, userParam) + return void + param callback GLDEBUGPROCAMD in value + param userParam Void out reference + category AMD_debug_output + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +GetDebugMessageLogAMD(count, bufsize, categories, severities, ids, lengths, message) + return UInt32 + param count UInt32 in value + param bufsize SizeI in value + param categories GLenum out array [count] + param severities UInt32 out array [count] + param ids UInt32 out array [count] + param lengths SizeI out array [count] + param message Char out array [bufsize] + category AMD_debug_output + dlflags notlistable + version 4.1 + extension + glxsingle ? + glxflags ignore + offset ? + +############################################################################### +# +# Extension #396 +# NV_vdpau_interop commands +# +############################################################################### + +VDPAUInitNV(vdpDevice, getProcAddress) + return void + param vdpDevice Void in reference + param getProcAddress Void in reference + category NV_vdpau_interop + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VDPAUFiniNV() + return void + category NV_vdpau_interop + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VDPAURegisterVideoSurfaceNV(vdpSurface, target, numTextureNames, textureNames) + return vdpauSurfaceNV + param vdpSurface Void out reference + param target GLenum in value + param numTextureNames SizeI in value + param textureNames UInt32 in array [numTextureNames] + category NV_vdpau_interop + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VDPAURegisterOutputSurfaceNV(vdpSurface, target, numTextureNames, textureNames) + return vdpauSurfaceNV + param vdpSurface Void out reference + param target GLenum in value + param numTextureNames SizeI in value + param textureNames UInt32 in array [numTextureNames] + category NV_vdpau_interop + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VDPAUIsSurfaceNV(surface) + return void + param surface vdpauSurfaceNV in value + category NV_vdpau_interop + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VDPAUUnregisterSurfaceNV(surface) + return void + param surface vdpauSurfaceNV in value + category NV_vdpau_interop + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VDPAUGetSurfaceivNV(surface, pname, bufSize, length, values) + return void + param surface vdpauSurfaceNV in value + param pname GLenum in value + param bufSize SizeI in value + param length SizeI out reference + param values Int32 out array [length] + category NV_vdpau_interop + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VDPAUSurfaceAccessNV(surface, access) + return void + param surface vdpauSurfaceNV in value + param access GLenum in value + category NV_vdpau_interop + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VDPAUMapSurfacesNV(numSurfaces, surfaces) + return void + param numSurfaces SizeI in value + param surfaces vdpauSurfaceNV in array [numSurfaces] + category NV_vdpau_interop + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +VDPAUUnmapSurfacesNV(numSurface, surfaces) + return void + param numSurface SizeI in value + param surfaces vdpauSurfaceNV in array [numSurface] + category NV_vdpau_interop + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + + +############################################################################### +# +# Extension #397 +# AMD_transform_feedback3_lines_triangles commands +# +############################################################################### + +# (none) +newcategory: AMD_transform_feedback3_lines_triangles + +############################################################################### +# +# Extension #398 - GLX_AMD_gpu_association +# Extension #399 - GLX_EXT_create_context_es2_profile +# Extension #400 - WGL_EXT_create_context_es2_profile +# +############################################################################### + +############################################################################### +# +# Extension #401 +# AMD_depth_clamp_separate commands +# +############################################################################### + +# (none) +newcategory: AMD_depth_clamp_separate + +############################################################################### +# +# Extension #402 +# EXT_texture_sRGB_decode commands +# +############################################################################### + +# (none) +newcategory: EXT_texture_sRGB_decode + +############################################################################### +# +# Extension #403 +# NV_texture_multisample commands +# +############################################################################### + +TexImage2DMultisampleCoverageNV(target, coverageSamples, colorSamples, internalFormat, width, height, fixedSampleLocations) + return void + param target GLenum in value + param coverageSamples SizeI in value + param colorSamples SizeI in value + param internalFormat Int32 in value + param width SizeI in value + param height SizeI in value + param fixedSampleLocations Boolean in value + category NV_texture_multisample + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +TexImage3DMultisampleCoverageNV(target, coverageSamples, colorSamples, internalFormat, width, height, depth, fixedSampleLocations) + return void + param target GLenum in value + param coverageSamples SizeI in value + param colorSamples SizeI in value + param internalFormat Int32 in value + param width SizeI in value + param height SizeI in value + param depth SizeI in value + param fixedSampleLocations Boolean in value + category NV_texture_multisample + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +TextureImage2DMultisampleNV(texture, target, samples, internalFormat, width, height, fixedSampleLocations) + return void + param texture UInt32 in value + param target GLenum in value + param samples SizeI in value + param internalFormat Int32 in value + param width SizeI in value + param height SizeI in value + param fixedSampleLocations Boolean in value + category NV_texture_multisample + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +TextureImage3DMultisampleNV(texture, target, samples, internalFormat, width, height, depth, fixedSampleLocations) + return void + param texture UInt32 in value + param target GLenum in value + param samples SizeI in value + param internalFormat Int32 in value + param width SizeI in value + param height SizeI in value + param depth SizeI in value + param fixedSampleLocations Boolean in value + category NV_texture_multisample + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +TextureImage2DMultisampleCoverageNV(texture, target, coverageSamples, colorSamples, internalFormat, width, height, fixedSampleLocations) + return void + param texture UInt32 in value + param target GLenum in value + param coverageSamples SizeI in value + param colorSamples SizeI in value + param internalFormat Int32 in value + param width SizeI in value + param height SizeI in value + param fixedSampleLocations Boolean in value + category NV_texture_multisample + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + +TextureImage3DMultisampleCoverageNV(texture, target, coverageSamples, colorSamples, internalFormat, width, height, depth, fixedSampleLocations) + return void + param texture UInt32 in value + param target GLenum in value + param coverageSamples SizeI in value + param colorSamples SizeI in value + param internalFormat Int32 in value + param width SizeI in value + param height SizeI in value + param depth SizeI in value + param fixedSampleLocations Boolean in value + category NV_texture_multisample + version 4.1 + extension + glxropcode ? + glxflags ignore + offset ? + + +############################################################################### +# +# Extension #404 +# AMD_blend_minmax_factor commands +# +############################################################################### + +# (none) +newcategory: AMD_blend_minmax_factor + +############################################################################### +# +# Extension #405 (awaiting spec clarification) +# AMD_sample_positions commands +# +############################################################################### + +#@GL_AMD_sample_positions +#@void SetMultisamplefv(enum pname, uint index, const float *val); diff --git a/src/glx/apple/specs/gl.tm b/src/glx/apple/specs/gl.tm index fb4f8515cdd..f7b3856ac6e 100644 --- a/src/glx/apple/specs/gl.tm +++ b/src/glx/apple/specs/gl.tm @@ -297,17 +297,14 @@ sync,*,*, GLsync,*,*, Int64EXT,*,*, GLint64EXT,*,* UInt64EXT,*,*, GLuint64EXT,*,* # EXT_direct_state_access -FramebufferAttachment,*,*, GLenum,*,* FramebufferAttachmentParameterName,*,*, GLenum,*,* Framebuffer,*,*, GLuint,*,* FramebufferStatus,*,*, GLenum,*,* -FramebufferTarget,*,*, GLenum,*,* GetFramebufferParameter,*,*, GLenum,*,* Intptr,*,*, GLintptr,*,* ProgramFormat,*,*, GLenum,*,* ProgramProperty,*,*, GLenum,*,* ProgramStringProperty,*,*, GLenum,*,* -ProgramTarget,*,*, GLenum,*,* Renderbuffer,*,*, GLuint,*,* RenderbufferParameterName,*,*, GLenum,*,* Sizeiptr,*,*, GLsizeiptr,*,* @@ -320,3 +317,12 @@ BufferAccessMask,*,*, GLbitfield,*,* # NV_explicit_multisample GetMultisamplePNameNV,*,*, GLenum,*,* SampleMaskNV,*,*, GLbitfield,*,* +# ARB_debug_output +GLDEBUGPROCARB,*,*, GLDEBUGPROCARB,*,* +# AMD_debug_output +GLDEBUGPROCAMD,*,*, GLDEBUGPROCAMD,*,* +# NV_vdpau_interop +vdpauSurfaceNV,*,*, GLvdpauSurfaceNV,*,*, +# External API types +cl_context,*,*, struct _cl_context *,*,* +cl_event,*,*, struct _cl_event *,*,* diff --git a/src/glx/apple/specs/glxenum.spec b/src/glx/apple/specs/glxenum.spec index 547f19e1c25..4bf6462fbb1 100644 --- a/src/glx/apple/specs/glxenum.spec +++ b/src/glx/apple/specs/glxenum.spec @@ -4,7 +4,7 @@ # This document is licensed under the SGI Free Software B License Version # 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . # -# $Revision: 10796 $ on $Date: 2010-03-19 17:31:10 -0700 (Fri, 19 Mar 2010) $ +# $Revision: 12183 $ on $Date: 2010-08-06 02:53:05 -0700 (Fri, 06 Aug 2010) $ # This is the GLX enumerant registry. # @@ -126,15 +126,17 @@ GLXBindToTextureTargetMask enum: TEXTURE_2D_BIT_EXT = 0x00000002 TEXTURE_RECTANGLE_BIT_EXT = 0x00000004 -# CONTEXT_FLAGS_ARB bits +# CONTEXT_FLAGS_ARB bits (shared with WGL and GL) GLXContextFlags enum: CONTEXT_DEBUG_BIT_ARB = 0x00000001 # ARB_create_context CONTEXT_FORWARD_COMPATIBLE_BIT_ARB = 0x00000002 # ARB_create_context + CONTEXT_ROBUST_ACCESS_BIT_ARB = 0x00000004 # ARB_create_context_robustness # CONTEXT_PROFILE_MASK_ARB bits GLXContextProfileMask enum: CONTEXT_CORE_PROFILE_BIT_ARB = 0x00000001 # ARB_create_context_profile CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB = 0x00000002 # ARB_create_context_profile + CONTEXT_ES2_PROFILE_BIT_EXT = 0x00000004 # EXT_create_context_es2_profile GLXAttribute enum: USE_GL = 1 # Visual attributes @@ -250,16 +252,29 @@ GLXAttribute enum: SAMPLES_ARB = 100001 # " SAMPLE_BUFFERS = 100000 # Visual attribute (GLX 1.4 core - alias of SGIS_multisample) SAMPLES = 100001 # " + COVERAGE_SAMPLES_NV = 100001 # Visual attribute (NV_multisample_coverage - reuse SAMPLES_ARB) ############################################################################### -# ARB: 0x2070-0x209F (shared with WGL) +# AMD: 0x1F00-0x1F02 (additional; see below; equivalent to corresponding WGL/GL tokens) + +############################################################################### + +# ARB: 0x2070-0x209F + +# Shared with WGL, synchronize create_context_* enums with wglenum.spec! # Also includes a bitmask - see ContextFlags above # ARB_create_context enum: CONTEXT_MAJOR_VERSION_ARB = 0x2091 CONTEXT_MINOR_VERSION_ARB = 0x2092 +# 0x2093 used for WGL_CONTEXT_LAYER_PLANE_ARB CONTEXT_FLAGS_ARB = 0x2094 +# 0x2095 collides with WGL_ERROR_INVALID_VERSION_ARB! + CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB = 0x2095 +# 0x2096 used for WGL_ERROR_INVALID_PROFILE_ARB + +# ARB_future_use: 0x2097-0x209F ############################################################################### @@ -269,10 +284,14 @@ GLXAttribute enum: FLOAT_COMPONENTS_NV = 0x20B0 # EXT_fbconfig_packed_float enum: RGBA_UNSIGNED_FLOAT_TYPE_EXT = 0x20B1 +# ARB_framebuffer_sRGB enum: + FRAMEBUFFER_SRGB_CAPABLE_ARB = 0x20B2 # EXT_framebuffer_sRGB enum: FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x20B2 +# NV_multisample_coverage enum: + COLOR_SAMPLES_NV = 0x20B3 -# NV_future_use: 0x20B3-0x20B8 +# NV_future_use: 0x20B4-0x20B8 # ARB_fbconfig_float enum: RGBA_FLOAT_TYPE_ARB = 0x20B9 @@ -341,6 +360,28 @@ EXT_swap_control enum: ############################################################################### +# AMD: 0x21A0-0x21AF + +# Shared with WGL, synchronize with wglenum.spec! + +# WGL extensions: 0x21A0-0x21A1 + +GLX_AMD_gpu_association enum: + GPU_VENDOR_AMD = 0x1F00 + GPU_RENDERER_STRING_AMD = 0x1F01 + GPU_OPENGL_VERSION_STRING_AMD = 0x1F02 + GPU_FASTEST_TARGET_GPUS_AMD = 0x21A2 + GPU_RAM_AMD = 0x21A3 + GPU_CLOCK_AMD = 0x21A4 + GPU_NUM_PIPES_AMD = 0x21A5 + GPU_NUM_SIMD_AMD = 0x21A6 + GPU_NUM_RB_AMD = 0x21A7 + GPU_NUM_SPI_AMD = 0x21A8 + +# AMD_future_use: 0x21A9-0x21AF + +############################################################################### + # MESA (not in a reserved block) # MESA_set_3dfx_mode enum: @@ -404,17 +445,35 @@ INTEL_future_use: 0x8183-0x818F ### Please remember that new GLX enum allocations must be obtained by request ### to the Khronos API Registrar (see comments at the top of this file) ### File requests in the Khronos Bugzilla, OpenGL project, Registry component. +### Also note that some GLX enum values are shared with GL and WGL, and +### new ranges should be allocated with such overlaps in mind. ############################################################################### -# Any_vendor_future_use: 0x8180-0x9125 +# Any_vendor_future_use: 0x8190-0x824F + +############################################################################### + +# ARB: 0x8250-0x826F +# No additional values should be used from this range, which includes +# the range used by GL_ARB_robustness rounded up to multiples of 16. + +# Also includes a bitmask - see ContextFlags above +# All values are shared with GLX and GL +GLX_ARB_create_context_robustness enum: + LOSE_CONTEXT_ON_RESET_ARB = 0x8252 # shared with GL_ARB_robustness + CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256 # shared with GL_ARB_robustness + NO_RESET_NOTIFICATION_ARB = 0x8261 # shared with GL_ARB_robustness + +# Any_vendor_future_use: 0x8270-0x9125 # Also includes a bitmask - see ContextProfileMask above -# ARB_create_context_profile enum: (equivalent to corresponding GL token) +# All values are shared with GLX and GL +ARB_create_context_profile enum: CONTEXT_PROFILE_MASK_ARB = 0x9126 # Any_vendor_future_use: 0x9127-0xFFFF # # This range must be the last range in the file. To generate a new -# range, allocate multiples of 16 from the beginning of the +# range, allocate multiples of 16 from the beginning of the first # Any_vendor_future_use range and update glxenum.spec, glxenumext.spec, # and extensions.reserved. diff --git a/src/glx/apple/specs/glxenumext.spec b/src/glx/apple/specs/glxenumext.spec index 797e6970dd2..835bff2a181 100644 --- a/src/glx/apple/specs/glxenumext.spec +++ b/src/glx/apple/specs/glxenumext.spec @@ -4,7 +4,7 @@ # This document is licensed under the SGI Free Software B License Version # 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . # -# $Revision: 10796 $ on $Date: 2010-03-19 17:31:10 -0700 (Fri, 19 Mar 2010) $ +# $Revision: 12183 $ on $Date: 2010-08-06 02:53:05 -0700 (Fri, 06 Aug 2010) $ # List of GLX enumerants for glxext.h header # @@ -25,9 +25,9 @@ passthru: passthru: /* Header file version number, required by OpenGL ABI for Linux */ -passthru: /* glxext.h last updated 2010/02/10 */ +passthru: /* glxext.h last updated 2010/08/06 */ passthru: /* Current version at http://www.opengl.org/registry/ */ -passthru: #define GLX_GLXEXT_VERSION 27 +passthru: #define GLX_GLXEXT_VERSION 32 ############################################################################### # @@ -124,6 +124,12 @@ ARB_multisample enum: ############################################################################### +# ARB Extension #28 +ARB_vertex_buffer_object enum: + CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB = 0x2095 + +############################################################################### + # ARB Extension #39 ARB_fbconfig_float enum: RGBA_FLOAT_TYPE_ARB = 0x20B9 @@ -131,6 +137,12 @@ ARB_fbconfig_float enum: ############################################################################### +# ARB Extension #46 +ARB_framebuffer_sRGB enum: + FRAMEBUFFER_SRGB_CAPABLE_ARB = 0x20B2 + +############################################################################### + # ARB Extension #56 ARB_create_context enum: CONTEXT_DEBUG_BIT_ARB = 0x00000001 @@ -147,6 +159,15 @@ ARB_create_context_profile enum: CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB = 0x00000002 CONTEXT_PROFILE_MASK_ARB = 0x9126 +############################################################################### + +# ARB Extension #101 +# All values are shared with GLX and GL +ARB_create_context_robustness enum: + CONTEXT_ROBUST_ACCESS_BIT_ARB = 0x00000004 + LOSE_CONTEXT_ON_RESET_ARB = 0x8252 + CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256 + NO_RESET_NOTIFICATION_ARB = 0x8261 ############################################################################### # @@ -513,3 +534,32 @@ INTEL_swap_event enum: EXCHANGE_COMPLETE_INTEL = 0x8180 COPY_COMPLETE_INTEL = 0x8181 FLIP_COMPLETE_INTEL = 0x8182 + +############################################################################### + +# Extension #393 +NV_multisample_coverage enum: + COVERAGE_SAMPLES_NV = 100001 + COLOR_SAMPLES_NV = 0x20B3 + +############################################################################### + +# Extension #398 +AMD_gpu_association enum: + GPU_VENDOR_AMD = 0x1F00 + GPU_RENDERER_STRING_AMD = 0x1F01 + GPU_OPENGL_VERSION_STRING_AMD = 0x1F02 + GPU_FASTEST_TARGET_GPUS_AMD = 0x21A2 + GPU_RAM_AMD = 0x21A3 + GPU_CLOCK_AMD = 0x21A4 + GPU_NUM_PIPES_AMD = 0x21A5 + GPU_NUM_SIMD_AMD = 0x21A6 + GPU_NUM_RB_AMD = 0x21A7 + GPU_NUM_SPI_AMD = 0x21A8 + +############################################################################### + +# Extension #399 +# All values are shared with WGL and GL +EXT_create_context_es2_profile enum: + CONTEXT_ES2_PROFILE_BIT_EXT = 0x00000004 diff --git a/src/glx/apple/specs/glxext.spec b/src/glx/apple/specs/glxext.spec index c25b7e6b38d..4719caf5622 100644 --- a/src/glx/apple/specs/glxext.spec +++ b/src/glx/apple/specs/glxext.spec @@ -7,14 +7,14 @@ # This document is licensed under the SGI Free Software B License Version # 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . # -# $Revision: 10796 $ on $Date: 2010-03-19 17:31:10 -0700 (Fri, 19 Mar 2010) $ +# $Revision: 12183 $ on $Date: 2010-08-06 02:53:05 -0700 (Fri, 06 Aug 2010) $ required-props: param: retval retained glxflags: client-handcode client-intercept server-handcode glxvendorglx: * vectorequiv: * -category: VERSION_1_3 VERSION_1_4 ARB_get_proc_address ARB_multisample ARB_fbconfig_float EXT_import_context SGIX_dmbuffer SGIX_fbconfig SGIX_pbuffer SGIX_swap_barrier SGIX_swap_group SGIX_video_resize SGIX_video_source SGI_cushion SGI_make_current_read SGI_swap_control SGI_video_sync SUN_get_transparent_index MESA_agp_offset MESA_copy_sub_buffer MESA_pixmap_colormap MESA_release_buffers MESA_set_3dfx_mode SGIX_visual_select_group OML_sync_control SGIX_hyperpipe EXT_texture_from_pixmap NV_swap_group NV_video_output NV_present_video ARB_create_context NV_video_capture NV_copy_image EXT_swap_control +category: VERSION_1_3 VERSION_1_4 ARB_get_proc_address ARB_multisample ARB_fbconfig_float EXT_import_context SGIX_dmbuffer SGIX_fbconfig SGIX_pbuffer SGIX_swap_barrier SGIX_swap_group SGIX_video_resize SGIX_video_source SGI_cushion SGI_make_current_read SGI_swap_control SGI_video_sync SUN_get_transparent_index MESA_agp_offset MESA_copy_sub_buffer MESA_pixmap_colormap MESA_release_buffers MESA_set_3dfx_mode SGIX_visual_select_group OML_sync_control SGIX_hyperpipe EXT_texture_from_pixmap NV_swap_group NV_video_output NV_present_video ARB_create_context NV_video_capture NV_copy_image EXT_swap_control ARB_framebuffer_sRGB glxopcode: * # @@ -312,6 +312,16 @@ newcategory: ARB_multisample # (none) newcategory: ARB_fbconfig_float +############################################################################### +# +# ARB Extension #46 +# ARB_framebuffer_sRGB commands +# +############################################################################### + +# (none) +newcategory: ARB_framebuffer_sRGB + ############################################################################### # # ARB Extension #56 @@ -340,6 +350,16 @@ CreateContextAttribsARB(dpy, config, share_context, direct, attrib_list) # (none) newcategory: ARB_create_context_profile +############################################################################### +# +# ARB Extension #101 +# ARB_create_context_robustness commands +# +############################################################################### + +# (none) +newcategory: ARB_create_context_robustness + ############################################################################### # @@ -1328,3 +1348,145 @@ CopyImageSubDataNV(dpy, srcCtx, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, # (none) newcategory: INTEL_swap_event + +############################################################################### +# +# Extension #393 +# NV_multisample_coverage commands +# +############################################################################### + +# (none) +newcategory: NV_multisample_coverage + +############################################################################### +# +# Extension #399 +# AMD_gpu_association commands +# +############################################################################### + +# These are a weird mishmash of X and Windows types - are they correct? +# Leave out of glxext.h for the time being. + +#@ UINT glXGetGPUIDsAMD(UINT maxCount, UINT *ids); +#@ INT glXGetGPUInfoAMD(UINT id, INT property, GLenum dataType, +#@ UINT size, void *data) +#@ UINT glXGetContextGPUIDAMD(GLXContext ctx); +#@ HGLRC glXCreateAssociatedContextAMD(UINT id, GLXContext share_list); +#@ HGLRC glXCreateAssociatedContextAttribsAMD(UINT id, GLXContext share_context, +#@ const int *attribList); +#@ BOOL glXDeleteAssociatedContextAMD(GLXContext ctx); +#@ BOOL glXMakeAssociatedContextCurrentAMD(GLXContext ctx); +#@ HGLRC glXGetCurrentAssociatedContextAMD(void); +#@ VOID glXBlitContextFramebufferAMD(GLXContext dstCtx, GLint srcX0, GLint srcY0, +#@ GLint srcX1, GLint srcY1, GLint dstX0, +#@ GLint dstY0, GLint dstX1, GLint dstY1, +#@ GLbitfield mask, GLenum filter); + +#@ glXGetGPUIDsAMD(maxCount, ids) +#@ return UINT +#@ param maxCount UINT in value +#@ param ids UINT in array [???] +#@ category AMD_gpu_association +#@ version 4.1 +#@ extension +#@ glxropcode ? +#@ glxflags ignore +#@ offset ? +#@ +#@ glXGetGPUInfoAMD(id, property, dataType, size, data) +#@ return INT +#@ param id UINT in value +#@ param property INT in value +#@ param dataType GLenum in value +#@ param size UINT in value +#@ param data void in array [???] +#@ category AMD_gpu_association +#@ version 4.1 +#@ extension +#@ glxropcode ? +#@ glxflags ignore +#@ offset ? +#@ +#@ glXGetContextGPUIDAMD(ctx) +#@ return UINT +#@ param ctx GLXContext in value +#@ category AMD_gpu_association +#@ version 4.1 +#@ extension +#@ glxropcode ? +#@ glxflags ignore +#@ offset ? +#@ +#@ glXCreateAssociatedContextAMD(id, share_list) +#@ return HGLRC +#@ param id UINT in value +#@ param share_list GLXContext in value +#@ category AMD_gpu_association +#@ version 4.1 +#@ extension +#@ glxropcode ? +#@ glxflags ignore +#@ offset ? +#@ +#@ glXCreateAssociatedContextAttribsAMD(id, share_context, attribList) +#@ return HGLRC +#@ param id UINT in value +#@ param share_context GLXContext in value +#@ param attribList Int32 in array [???] +#@ category AMD_gpu_association +#@ version 4.1 +#@ extension +#@ glxropcode ? +#@ glxflags ignore +#@ offset ? +#@ +#@ glXDeleteAssociatedContextAMD(ctx) +#@ return BOOL +#@ param ctx GLXContext in value +#@ category AMD_gpu_association +#@ version 4.1 +#@ extension +#@ glxropcode ? +#@ glxflags ignore +#@ offset ? +#@ +#@ glXMakeAssociatedContextCurrentAMD(ctx) +#@ return BOOL +#@ param ctx GLXContext in value +#@ category AMD_gpu_association +#@ version 4.1 +#@ extension +#@ glxropcode ? +#@ glxflags ignore +#@ offset ? +#@ +#@ glXGetCurrentAssociatedContextAMD() +#@ return HGLRC +#@ category AMD_gpu_association +#@ version 4.1 +#@ extension +#@ glxropcode ? +#@ glxflags ignore +#@ offset ? +#@ +#@ glXBlitContextFramebufferAMD(dstCtx, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter) +#@ return VOID +#@ param dstCtx GLXContext in value +#@ param srcX0 GLint in value +#@ param srcY0 GLint in value +#@ param srcX1 GLint in value +#@ param srcY1 GLint in value +#@ param dstX0 GLint in value +#@ param dstY0 GLint in value +#@ param dstX1 GLint in value +#@ param dstY1 GLint in value +#@ param mask GLbitfield in value +#@ param filter GLenum in value +#@ category AMD_gpu_association +#@ version 4.1 +#@ extension +#@ glxropcode ? +#@ glxflags ignore +#@ offset ? From 4c9bab78a118953baf307e31cd53e731299f0151 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 5 Jun 2011 16:56:01 -0400 Subject: [PATCH 010/145] apple: Rename glcontextmodes.[ch] to glxconfig.[ch] Fixes regression introduced by: 65d98e25770487456eb3d7eb8ec3ec8272f170b1 Signed-off-by: Jeremy Huddleston --- src/glx/apple/Makefile | 2 +- src/glx/apple/apple_glx_pbuffer.c | 2 +- src/glx/apple/apple_glx_pixmap.c | 2 +- src/glx/apple/apple_visual.c | 2 +- src/glx/apple/glx_empty.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/glx/apple/Makefile b/src/glx/apple/Makefile index fd47b3d39c2..757e811691e 100644 --- a/src/glx/apple/Makefile +++ b/src/glx/apple/Makefile @@ -38,7 +38,7 @@ SOURCES = \ appledri.c \ ../clientattrib.c \ ../compsize.c \ - ../glcontextmodes.c \ + ../glxconfig.c \ glx_empty.c \ glx_error.c \ ../glx_pbuffer.c \ diff --git a/src/glx/apple/apple_glx_pbuffer.c b/src/glx/apple/apple_glx_pbuffer.c index a5ef59ccf82..d79125d180f 100644 --- a/src/glx/apple/apple_glx_pbuffer.c +++ b/src/glx/apple/apple_glx_pbuffer.c @@ -44,7 +44,7 @@ #include #include #include "apple_glx.h" -#include "glcontextmodes.h" +#include "glxconfig.h" #include "apple_cgl.h" /* mesa defines in glew.h, Apple in glext.h. diff --git a/src/glx/apple/apple_glx_pixmap.c b/src/glx/apple/apple_glx_pixmap.c index fec05e02de6..4586707909b 100644 --- a/src/glx/apple/apple_glx_pixmap.c +++ b/src/glx/apple/apple_glx_pixmap.c @@ -40,7 +40,7 @@ #include "apple_visual.h" #include "apple_glx_drawable.h" #include "appledri.h" -#include "glcontextmodes.h" +#include "glxconfig.h" static bool pixmap_make_current(struct apple_glx_context *ac, struct apple_glx_drawable *d); diff --git a/src/glx/apple/apple_visual.c b/src/glx/apple/apple_visual.c index 7a9525e8170..29c6f16c4ac 100644 --- a/src/glx/apple/apple_visual.c +++ b/src/glx/apple/apple_visual.c @@ -47,7 +47,7 @@ #include "apple_cgl.h" #include "apple_visual.h" #include "apple_glx.h" -#include "glcontextmodes.h" +#include "glxconfig.h" enum { diff --git a/src/glx/apple/glx_empty.c b/src/glx/apple/glx_empty.c index 5967ecabc1a..1e9593c6d45 100644 --- a/src/glx/apple/glx_empty.c +++ b/src/glx/apple/glx_empty.c @@ -1,6 +1,6 @@ #include "glxclient.h" #include "glxextensions.h" -#include "glcontextmodes.h" +#include "glxconfig.h" /* ** GLX_SGI_swap_control From bb621cb61e0c6d7fcd06df5a77c75efe5c76926d Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 5 Jun 2011 17:02:33 -0400 Subject: [PATCH 011/145] apple: Rename __GLcontextModes to struct glx_config Fixes regression introduced by: 6ddf66e9230ee862ac341c4767cf6b3b2dd2552b Signed-off-by: Jeremy Huddleston --- src/glx/apple/apple_glx_pbuffer.c | 2 +- src/glx/glx_pbuffer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glx/apple/apple_glx_pbuffer.c b/src/glx/apple/apple_glx_pbuffer.c index d79125d180f..2817cda23b7 100644 --- a/src/glx/apple/apple_glx_pbuffer.c +++ b/src/glx/apple/apple_glx_pbuffer.c @@ -128,7 +128,7 @@ apple_glx_pbuffer_create(Display * dpy, GLXFBConfig config, Window root; int screen; Pixmap xid; - struct glx_config *modes = (__GLcontextModes *) config; + struct glx_config *modes = (struct glx_config *) config; root = DefaultRootWindow(dpy); screen = DefaultScreen(dpy); diff --git a/src/glx/glx_pbuffer.c b/src/glx/glx_pbuffer.c index 5c76c74a2c1..1f4c0f309fc 100644 --- a/src/glx/glx_pbuffer.c +++ b/src/glx/glx_pbuffer.c @@ -835,7 +835,7 @@ glXCreatePixmap(Display * dpy, GLXFBConfig config, Pixmap pixmap, WARN_ONCE_GLX_1_3(dpy, __func__); #ifdef GLX_USE_APPLEGL - const struct glx_config *modes = (const __GLcontextModes *) config; + const struct glx_config *modes = (const struct glx_config *) config; if (apple_glx_pixmap_create(dpy, modes->screen, pixmap, modes)) return None; From 22613d1670e3aafcfd3b95191b908a0adabe3eb9 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 5 Jun 2011 17:22:56 -0400 Subject: [PATCH 012/145] apple: Rename GLXcontext Fixes regression introduced by: c356f5867f2c1fad7155df538b9affa8dbdcf869 Signed-off-by: Jeremy Huddleston --- src/glx/apple/apple_xgl_api_read.c | 4 ++-- src/glx/apple/apple_xgl_api_stereo.c | 4 ++-- src/glx/apple/apple_xgl_api_viewport.c | 2 +- src/glx/apple/glx_error.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/glx/apple/apple_xgl_api_read.c b/src/glx/apple/apple_xgl_api_read.c index 0798f45bbfb..45850b97088 100644 --- a/src/glx/apple/apple_xgl_api_read.c +++ b/src/glx/apple/apple_xgl_api_read.c @@ -48,7 +48,7 @@ struct apple_xgl_saved_state static void SetRead(struct apple_xgl_saved_state *saved) { - GLXContext gc = __glXGetCurrentContext(); + struct glx_context *gc = __glXGetCurrentContext(); /* * By default indicate that the state was not swapped, so that UnsetRead @@ -81,7 +81,7 @@ static void UnsetRead(struct apple_xgl_saved_state *saved) { if (saved->swapped) { - GLXContext gc = __glXGetCurrentContext(); + struct glx_context *gc = __glXGetCurrentContext(); Display *dpy = glXGetCurrentDisplay(); if (apple_glx_make_current_context(dpy, gc->driContext, gc->driContext, diff --git a/src/glx/apple/apple_xgl_api_stereo.c b/src/glx/apple/apple_xgl_api_stereo.c index 64a15f74861..5637dd4c627 100644 --- a/src/glx/apple/apple_xgl_api_stereo.c +++ b/src/glx/apple/apple_xgl_api_stereo.c @@ -49,7 +49,7 @@ extern struct apple_xgl_api __gl_api; void glDrawBuffer(GLenum mode) { - GLXContext gc = glXGetCurrentContext(); + struct glx_context * gc = __glXGetCurrentContext(); if (gc && apple_glx_context_uses_stereo(gc->driContext)) { GLenum buf[2]; @@ -84,7 +84,7 @@ glDrawBuffer(GLenum mode) void glDrawBuffers(GLsizei n, const GLenum * bufs) { - GLXContext gc = glXGetCurrentContext(); + struct glx_context * gc = __glXGetCurrentContext(); if (gc && apple_glx_context_uses_stereo(gc->driContext)) { GLenum newbuf[n + 2]; diff --git a/src/glx/apple/apple_xgl_api_viewport.c b/src/glx/apple/apple_xgl_api_viewport.c index e39ab152235..e29eba82534 100644 --- a/src/glx/apple/apple_xgl_api_viewport.c +++ b/src/glx/apple/apple_xgl_api_viewport.c @@ -36,7 +36,7 @@ extern struct apple_xgl_api __gl_api; void glViewport(GLint x, GLint y, GLsizei width, GLsizei height) { - GLXContext gc = __glXGetCurrentContext(); + struct glx_context *gc = __glXGetCurrentContext(); Display *dpy = glXGetCurrentDisplay(); if (gc && gc->driContext) diff --git a/src/glx/apple/glx_error.c b/src/glx/apple/glx_error.c index 282f7ae40b1..b3a071c307b 100644 --- a/src/glx/apple/glx_error.c +++ b/src/glx/apple/glx_error.c @@ -40,7 +40,7 @@ __glXSendError(Display * dpy, int errorCode, unsigned long resourceID, unsigned long minorCode, bool coreX11error) { XExtDisplayInfo *info = __glXFindDisplay(dpy); - GLXContext gc = __glXGetCurrentContext(); + struct glx_context *gc = __glXGetCurrentContext(); xError error; LockDisplay(dpy); From 488d6c739f5b6cdfa2c670322057c699644d4e52 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 5 Jun 2011 18:02:44 -0400 Subject: [PATCH 013/145] apple: Re-add driContext and do_destroy Fixes regression introduced by: c491e585e43d48a2aeec96ccc4008da6c443fb42 Signed-off-by: Jeremy Huddleston --- src/glx/glxclient.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h index a443f780672..f9ab222d16e 100644 --- a/src/glx/glxclient.h +++ b/src/glx/glxclient.h @@ -333,6 +333,11 @@ struct glx_context */ Bool isDirect; +#if defined(GLX_DIRECT_RENDERING) && defined(GLX_USE_APPLEGL) + void *driContext; + Bool do_destroy; +#endif + /** * \c dpy of current display for this context. Will be \c NULL if not * current to any display, or if this is the "dummy context". From b7f0ed8444544b7fc927823a903db93ebf723cad Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 5 Jun 2011 18:19:59 -0400 Subject: [PATCH 014/145] apple: Rename _gl_context_modes_find_visual to glx_config_find_visual Fixes regression introduced by: 6ddf66e9230ee862ac341c4767cf6b3b2dd2552b Signed-off-by: Jeremy Huddleston --- src/glx/glxcmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 8b4151d0b4b..2011b112996 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -602,7 +602,7 @@ glXCreateGLXPixmap(Display * dpy, XVisualInfo * vis, Pixmap pixmap) struct glx_screen *const psc = GetGLXScreenConfigs(dpy, screen); const struct glx_config *config; - config = _gl_context_modes_find_visual(psc->visuals, vis->visualid); + config = glx_config_find_visual(psc->visuals, vis->visualid); if(apple_glx_pixmap_create(dpy, vis->screen, pixmap, config)) return None; From 279e471750e3ee6a4841ebf16ef2d038e1c12077 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 5 Jun 2011 18:22:47 -0400 Subject: [PATCH 015/145] apple: Rename GLXcontext Fixes regression introduced by: c356f5867f2c1fad7155df538b9affa8dbdcf869 Signed-off-by: Jeremy Huddleston --- src/glx/glxcmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 2011b112996..5bd989e7dcf 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -706,7 +706,7 @@ _X_EXPORT void glXSwapBuffers(Display * dpy, GLXDrawable drawable) { #ifdef GLX_USE_APPLEGL - GLXContext gc = glXGetCurrentContext(); + struct glx_context * gc = __glXGetCurrentContext(); if(gc && apple_glx_is_current_drawable(dpy, gc->driContext, drawable)) { apple_glx_swap_buffers(gc->driContext); } else { From 1d24e6ec1d13c2b88b858997900aa8b69de92b13 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Mon, 6 Jun 2011 10:17:59 +1000 Subject: [PATCH 016/145] dri/nouveau: fix gnome-shell segfault Signed-off-by: Ben Skeggs --- src/mesa/drivers/dri/nouveau/nouveau_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/nouveau/nouveau_context.c b/src/mesa/drivers/dri/nouveau/nouveau_context.c index 71dde413873..22b99571e73 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_context.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_context.c @@ -261,7 +261,7 @@ nouveau_update_renderbuffers(__DRIcontext *dri_ctx, __DRIdrawable *draw) assert(!ret); } - _mesa_resize_framebuffer(NULL, fb, draw->w, draw->h); + _mesa_resize_framebuffer(ctx, fb, draw->w, draw->h); } static void From 7cdf969527fa6d753ad2eb3dd971fe16725eb440 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 5 Jun 2011 19:26:19 -0400 Subject: [PATCH 017/145] apple: Change from XExtDisplayInfo to struct glx_display Fixes regression introduced by: ab434f6b7641a64d30725a9ac24929240362d466 and c356f5867f2c1fad7155df538b9affa8dbdcf869 Signed-off-by: Jeremy Huddleston --- src/glx/apple/glx_error.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/glx/apple/glx_error.c b/src/glx/apple/glx_error.c index b3a071c307b..d44a80ca659 100644 --- a/src/glx/apple/glx_error.c +++ b/src/glx/apple/glx_error.c @@ -27,22 +27,24 @@ prior written authorization. */ #include +#include #include #include #include #include "glxclient.h" #include "glx_error.h" -extern XExtDisplayInfo *__glXFindDisplay(Display * dpy); - void __glXSendError(Display * dpy, int errorCode, unsigned long resourceID, unsigned long minorCode, bool coreX11error) { - XExtDisplayInfo *info = __glXFindDisplay(dpy); + struct glx_display *glx_dpy = __glXInitialize(dpy); struct glx_context *gc = __glXGetCurrentContext(); xError error; + assert(glx_dpy); + assert(gc); + LockDisplay(dpy); error.type = X_Error; @@ -51,7 +53,7 @@ __glXSendError(Display * dpy, int errorCode, unsigned long resourceID, error.errorCode = errorCode; } else { - error.errorCode = info->codes->first_error + errorCode; + error.errorCode = glx_dpy->codes->first_error + errorCode; } error.sequenceNumber = dpy->request; From 8593bb32eae5368c1ba52504133b0bf200bf8e74 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 5 Jun 2011 19:57:52 -0400 Subject: [PATCH 018/145] apple: ifdef out come glapi-foo on darwin Signed-off-by: Jeremy Huddleston --- src/glx/glxcurrent.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/glx/glxcurrent.c b/src/glx/glxcurrent.c index 1f845ce65e1..27a0ef9fcda 100644 --- a/src/glx/glxcurrent.c +++ b/src/glx/glxcurrent.c @@ -216,6 +216,7 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw, struct glx_context *oldGC = __glXGetCurrentContext(); int ret = Success; +#ifndef GLX_USE_APPLEGL /* XXX: If this is left out, then libGL ends up not having this * symbol, and drivers using it fail to load. Compare the * implementation of this symbol to _glapi_noop_enable_warnings(), @@ -225,6 +226,7 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw, * library, though. */ (void)_glthread_GetID(); +#endif /* Make sure that the new context has a nonzero ID. In the request, * a zero context ID is used only to mean that we bind to no current @@ -244,7 +246,9 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw, return False; } +#ifndef GLX_USE_APPLEGL _glapi_check_multithread(); +#endif __glXLock(); if (oldGC == gc && From 3843bbcb4ca4de232dbae6ba3ae619ddfc93508b Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 5 Jun 2011 19:55:51 -0400 Subject: [PATCH 019/145] glx: Dead code removal Remove a redundant ifndef GLX_USE_APPLEGL Signed-off-by: Jeremy Huddleston --- src/glx/glxcurrent.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/glx/glxcurrent.c b/src/glx/glxcurrent.c index 27a0ef9fcda..b3009580d13 100644 --- a/src/glx/glxcurrent.c +++ b/src/glx/glxcurrent.c @@ -160,12 +160,10 @@ _X_HIDDEN void __glXSetCurrentContextNull(void) { __glXSetCurrentContext(&dummyContext); -#ifndef GLX_USE_APPLEGL #if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) _glapi_set_dispatch(NULL); /* no-op functions */ _glapi_set_context(NULL); #endif -#endif } _X_EXPORT GLXContext From 1885cf27c9c4642a049c60a8236cb84735cb9eba Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 5 Jun 2011 18:50:55 -0400 Subject: [PATCH 020/145] apple: Build darwin using applegl rather than indirect This reverts portions of 6849916170c0275c13510251a7b217c20f2b993e that caused the darwin config to fail to build due to missing implementations in that commit. See https://bugs.freedesktop.org/show_bug.cgi?id=29162 Signed-off-by: Jeremy Huddleston --- src/glx/glxclient.h | 12 ++++++++++++ src/glx/glxcmds.c | 4 ++++ src/glx/glxext.c | 7 ++++--- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h index f9ab222d16e..9262f86f1f3 100644 --- a/src/glx/glxclient.h +++ b/src/glx/glxclient.h @@ -769,7 +769,19 @@ GarbageCollectDRIDrawables(struct glx_screen *psc); extern __GLXDRIdrawable * GetGLXDRIDrawable(Display *dpy, GLXDrawable drawable); +#endif +#ifdef GLX_USE_APPLEGL +extern struct glx_screen * +applegl_create_screen(int screen, struct glx_display * priv); + +extern struct glx_context * +applegl_create_context(struct glx_screen *psc, + struct glx_config *mode, + struct glx_context *shareList, int renderType); + +extern int +applegl_create_display(struct glx_display *display); #endif extern struct glx_context dummyContext; diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 5bd989e7dcf..783a1594512 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -224,10 +224,14 @@ CreateContext(Display *dpy, int generic_id, struct glx_config *config, return NULL; gc = NULL; +#ifdef GLX_USE_APPLEGL + gc = applegl_create_context(psc, config, shareList, renderType); +#else if (allowDirect && psc->vtable->create_context) gc = psc->vtable->create_context(psc, config, shareList, renderType); if (!gc) gc = indirect_create_context(psc, config, shareList, renderType); +#endif if (!gc) return NULL; diff --git a/src/glx/glxext.c b/src/glx/glxext.c index 278c71978fa..73c332793a0 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -779,11 +779,12 @@ AllocAndFetchScreenConfigs(Display * dpy, struct glx_display * priv) psc = (*priv->driswDisplay->createScreen) (i, priv); #endif #if defined(GLX_USE_APPLEGL) - if (psc == NULL && priv->appleglDisplay) - psc = (*priv->appleglDisplay->createScreen) (i, priv); -#endif + if (psc == NULL) + psc = applegl_create_screen(i, priv); +#else if (psc == NULL) psc = indirect_create_screen(i, priv); +#endif priv->screens[i] = psc; } SyncHandle(); From 5d35343d12ab462100c9eec50a579b73463e465a Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Sun, 5 Jun 2011 21:19:40 -0400 Subject: [PATCH 021/145] apple: Fix multiple build failures in applegl_glx.c It is still not building, but this gets us many steps closer See https://bugs.freedesktop.org/show_bug.cgi?id=29162 Signed-off-by: Jeremy Huddleston --- src/glx/apple/Makefile | 3 ++- src/glx/applegl_glx.c | 40 +++++++++++++++++++++++++++------------- 2 files changed, 29 insertions(+), 14 deletions(-) diff --git a/src/glx/apple/Makefile b/src/glx/apple/Makefile index 757e811691e..1196701ad99 100644 --- a/src/glx/apple/Makefile +++ b/src/glx/apple/Makefile @@ -49,7 +49,8 @@ SOURCES = \ ../glxextensions.c \ glxreply.c \ ../pixel.c \ - ../xfont.c + ../xfont.c \ + ../applegl_glx.c include $(TOP)/src/mesa/sources.mak diff --git a/src/glx/applegl_glx.c b/src/glx/applegl_glx.c index 3da1f19323f..660566f3171 100644 --- a/src/glx/applegl_glx.c +++ b/src/glx/applegl_glx.c @@ -1,5 +1,6 @@ /* * Copyright © 2010 Intel Corporation + * Copyright © 2011 Apple Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Soft- @@ -32,6 +33,13 @@ #if defined(GLX_USE_APPLEGL) +#include + +#include "glxclient.h" +#include "apple_glx_context.h" +#include "apple_glx.h" +#include "glx_error.h" + static void applegl_destroy_context(struct glx_context *gc) { @@ -42,13 +50,14 @@ static int applegl_bind_context(struct glx_context *gc, struct glx_context *old, GLXDrawable draw, GLXDrawable read) { + Display *dpy = gc->psc->dpy; bool error = apple_glx_make_current_context(dpy, - (oldGC && oldGC != &dummyContext) ? oldGC->driContext : NUL~ + (oldGC && oldGC != &dummyContext) ? oldGC->driContext : NULL gc ? gc->driContext : NULL, draw); apple_glx_diagnostic("%s: error %s\n", __func__, error ? "YES" : "NO"); if (error) - return GLXBadContext; + return 1; /* GLXBadContext is the same as Success (0) */ return Success; } @@ -67,7 +76,8 @@ applegl_wait_gl(struct glx_context *gc) static void applegl_wait_x(struct glx_context *gc) { - apple_glx_waitx(gc->dpy, gc->driContext); + Display *dpy = gc->psc->dpy; + apple_glx_waitx(dpy, gc->driContext); } static const struct glx_context_vtable applegl_context_vtable = { @@ -81,7 +91,7 @@ static const struct glx_context_vtable applegl_context_vtable = { NULL, /* release_tex_image, */ }; -static struct glx_context * +struct glx_context * applegl_create_context(struct glx_screen *psc, struct glx_config *mode, struct glx_context *shareList, int renderType) @@ -89,20 +99,22 @@ applegl_create_context(struct glx_screen *psc, struct glx_context *gc; int errorcode; bool x11error; + Display *dpy; /* TODO: Integrate this with apple_glx_create_context and make * struct apple_glx_context inherit from struct glx_context. */ - gc = Xmalloc(sizeof *gc); - if (pcp == NULL) + gc = Xcalloc(1, sizeof (*gc)); + if (gc == NULL) return NULL; - memset(gc, 0, sizeof *gc); - if (!glx_context_init(&gc->base, &psc->base, mode)) { + if (!glx_context_init(gc, psc, mode)) { Xfree(gc); return NULL; } + dpy = gc->psc->dpy; + gc->vtable = &applegl_context_vtable; gc->driContext = NULL; gc->do_destroy = False; @@ -118,14 +130,14 @@ applegl_create_context(struct glx_screen *psc, gc->currentContextTag = -1; gc->mode = fbconfig; - gc->isDirect = allowDirect; + gc->isDirect = 1; gc->xid = 1; /* Just something not None, so we know when to destroy * it in MakeContextCurrent. */ return gc; } -struct glx_screen_vtable appegl_screen_vtable = { +struct glx_screen_vtable applegl_screen_vtable = { applegl_create_context }; @@ -146,10 +158,12 @@ applegl_create_screen(int screen, struct glx_display * priv) } _X_HIDDEN int -applegl_create_display(struct glx_display *display) +applegl_create_display(struct glx_display *glx_dpy) { - /* create applegl display and stuff in display->appleglDisplay */ - apple_init_glx(display); + if(!apple_init_glx(glx_dpy->dpy)) + return 1; + + return GLXBadContext; } #endif From fb40f1f532b5ea9fb9069f81af9e80835c18b3de Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Sun, 5 Jun 2011 21:00:28 +0200 Subject: [PATCH 022/145] nv50: fix nv50_sampler_state_delete array overflow num_samplers is array of 3 elements, not 5 --- src/gallium/drivers/nv50/nv50_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nv50/nv50_state.c b/src/gallium/drivers/nv50/nv50_state.c index 8d75dd07c4d..fb125f3a8d8 100644 --- a/src/gallium/drivers/nv50/nv50_state.c +++ b/src/gallium/drivers/nv50/nv50_state.c @@ -508,7 +508,7 @@ nv50_sampler_state_delete(struct pipe_context *pipe, void *hwcso) { unsigned s, i; - for (s = 0; s < 5; ++s) + for (s = 0; s < 3; ++s) for (i = 0; i < nv50_context(pipe)->num_samplers[s]; ++i) if (nv50_context(pipe)->samplers[s][i] == hwcso) nv50_context(pipe)->samplers[s][i] = NULL; From 155cf15ce216c3b67c13da1041401cbcc1c43b1e Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Mon, 16 May 2011 21:53:06 +0200 Subject: [PATCH 023/145] util: add \n to debug_checkpoint_full MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: José Fonseca --- src/gallium/auxiliary/util/u_debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_debug.h b/src/gallium/auxiliary/util/u_debug.h index c47c13c64cf..b5ea4050633 100644 --- a/src/gallium/auxiliary/util/u_debug.h +++ b/src/gallium/auxiliary/util/u_debug.h @@ -192,7 +192,7 @@ void _debug_assert_fail(const char *expr, */ #ifdef DEBUG #define debug_checkpoint_full() \ - _debug_printf("%s:%u:%s", __FILE__, __LINE__, __FUNCTION__) + _debug_printf("%s:%u:%s\n", __FILE__, __LINE__, __FUNCTION__) #else #define debug_checkpoint_full() \ ((void)0) From b438005d961bc7fcc8cbedc34b8b15dfd09365b1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 6 Jun 2011 08:06:34 -0600 Subject: [PATCH 024/145] st/mesa: fix renderbuffer internal format for accum buffer Fixes an accum buffer regression since switching to the table-based format selection code. --- src/mesa/state_tracker/st_cb_fbo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index 64424f77634..5b9e2037423 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -270,7 +270,8 @@ st_new_renderbuffer_fb(enum pipe_format format, int samples, boolean sw) strb->Base.InternalFormat = GL_STENCIL_INDEX8_EXT; break; case PIPE_FORMAT_R16G16B16A16_SNORM: - strb->Base.InternalFormat = GL_RGBA16; + /* accum buffer */ + strb->Base.InternalFormat = GL_RGBA16_SNORM; break; case PIPE_FORMAT_R8_UNORM: strb->Base.InternalFormat = GL_R8; From f4537f99cc83cb8133f66dc97c613e95dc0fe162 Mon Sep 17 00:00:00 2001 From: Andreas Faenger Date: Mon, 6 Jun 2011 07:13:16 +0000 Subject: [PATCH 025/145] softpipe: Anisotropic filtering extension. Reference implementation which produces high quality renderings. Based on Higher Quality Elliptical Weighted Avarage Filter (EWA). Signed-off-by: Brian Paul --- src/gallium/drivers/softpipe/sp_screen.c | 4 +- src/gallium/drivers/softpipe/sp_tex_sample.c | 338 ++++++++++++++++++- 2 files changed, 336 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index 48aabc18da3..30f53a9e674 100644 --- a/src/gallium/drivers/softpipe/sp_screen.c +++ b/src/gallium/drivers/softpipe/sp_screen.c @@ -81,7 +81,7 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_SM3: return 1; case PIPE_CAP_ANISOTROPIC_FILTER: - return 0; + return 1; case PIPE_CAP_POINT_SPRITE: return 1; case PIPE_CAP_MAX_RENDER_TARGETS: @@ -161,7 +161,7 @@ softpipe_get_paramf(struct pipe_screen *screen, enum pipe_cap param) case PIPE_CAP_MAX_POINT_WIDTH_AA: return 255.0; /* arbitrary */ case PIPE_CAP_MAX_TEXTURE_ANISOTROPY: - return 16.0; /* not actually signficant at this time */ + return 16.0; case PIPE_CAP_MAX_TEXTURE_LOD_BIAS: return 16.0; /* arbitrary */ default: diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c index 1446aee2aa4..90766f4119c 100644 --- a/src/gallium/drivers/softpipe/sp_tex_sample.c +++ b/src/gallium/drivers/softpipe/sp_tex_sample.c @@ -1709,6 +1709,317 @@ mip_filter_none(struct tgsi_sampler *tgsi_sampler, } +/* For anisotropic filtering */ +#define WEIGHT_LUT_SIZE 1024 + +static float *weightLut = NULL; + +/** + * Creates the look-up table used to speed-up EWA sampling + */ +static void +create_filter_table(void) +{ + unsigned i; + if (!weightLut) { + weightLut = (float *) malloc(WEIGHT_LUT_SIZE * sizeof(float)); + + for (i = 0; i < WEIGHT_LUT_SIZE; ++i) { + float alpha = 2; + float r2 = (float) i / (float) (WEIGHT_LUT_SIZE - 1); + float weight = (float) exp(-alpha * r2); + weightLut[i] = weight; + } + } +} + + +/** + * Elliptical weighted average (EWA) filter for producing high quality + * anisotropic filtered results. + * Based on the Higher Quality Elliptical Weighted Avarage Filter + * published by Paul S. Heckbert in his Master's Thesis + * "Fundamentals of Texture Mapping and Image Warping" (1989) + */ +static void +img_filter_2d_ewa(struct tgsi_sampler *tgsi_sampler, + const float s[QUAD_SIZE], + const float t[QUAD_SIZE], + const float p[QUAD_SIZE], + const float c0[QUAD_SIZE], + enum tgsi_sampler_control control, + const float dudx, const float dvdx, + const float dudy, const float dvdy, + float rgba[NUM_CHANNELS][QUAD_SIZE]) +{ + const struct sp_sampler_variant *samp = sp_sampler_variant(tgsi_sampler); + const struct pipe_resource *texture = samp->view->texture; + + unsigned level0 = samp->level > 0 ? samp->level : 0; + float scaling = 1.0 / (1 << level0); + int width = u_minify(texture->width0, level0); + int height = u_minify(texture->height0, level0); + + float ux = dudx * scaling; + float vx = dvdx * scaling; + float uy = dudy * scaling; + float vy = dvdy * scaling; + + /* compute ellipse coefficients to bound the region: + * A*x*x + B*x*y + C*y*y = F. + */ + float A = vx*vx+vy*vy+1; + float B = -2*(ux*vx+uy*vy); + float C = ux*ux+uy*uy+1; + float F = A*C-B*B/4.0; + + /* check if it is an ellipse */ + /* ASSERT(F > 0.0); */ + + /* Compute the ellipse's (u,v) bounding box in texture space */ + float d = -B*B+4.0*C*A; + float box_u = 2.0 / d * sqrt(d*C*F); /* box_u -> half of bbox with */ + float box_v = 2.0 / d * sqrt(A*d*F); /* box_v -> half of bbox height */ + + float rgba_temp[NUM_CHANNELS][QUAD_SIZE]; + float s_buffer[QUAD_SIZE]; + float t_buffer[QUAD_SIZE]; + float weight_buffer[QUAD_SIZE]; + unsigned buffer_next; + int j; + float den;// = 0.0F; + float ddq; + float U;// = u0 - tex_u; + int v; + + /* Scale ellipse formula to directly index the Filter Lookup Table. + * i.e. scale so that F = WEIGHT_LUT_SIZE-1 + */ + double formScale = (double) (WEIGHT_LUT_SIZE - 1) / F; + A *= formScale; + B *= formScale; + C *= formScale; + /* F *= formScale; */ /* no need to scale F as we don't use it below here */ + + /* For each quad, the du and dx values are the same and so the ellipse is + * also the same. Note that texel/image access can only be performed using + * a quad, i.e. it is not possible to get the pixel value for a single + * tex coord. In order to have a better performance, the access is buffered + * using the s_buffer/t_buffer and weight_buffer. Only when the buffer is full, + * then the pixel values are read from the image. + */ + ddq = 2 * A; + + for (j = 0; j < QUAD_SIZE; j++) { + /* Heckbert MS thesis, p. 59; scan over the bounding box of the ellipse + * and incrementally update the value of Ax^2+Bxy*Cy^2; when this + * value, q, is less than F, we're inside the ellipse + */ + float tex_u=-0.5 + s[j] * texture->width0 * scaling; + float tex_v=-0.5 + t[j] * texture->height0 * scaling; + + int u0 = floor(tex_u - box_u); + int u1 = ceil (tex_u + box_u); + int v0 = floor(tex_v - box_v); + int v1 = ceil (tex_v + box_v); + + float num[4] = {0.0F, 0.0F, 0.0F, 0.0F}; + buffer_next = 0; + den = 0; + U = u0 - tex_u; + for (v = v0; v <= v1; ++v) { + float V = v - tex_v; + float dq = A * (2 * U + 1) + B * V; + float q = (C * V + B * U) * V + A * U * U; + + int u; + for (u = u0; u <= u1; ++u) { + /* Note that the ellipse has been pre-scaled so F = WEIGHT_LUT_SIZE - 1 */ + if (q < WEIGHT_LUT_SIZE) { + /* as a LUT is used, q must never be negative; + * should not happen, though + */ + const int qClamped = q >= 0.0F ? q : 0; + float weight = weightLut[qClamped]; + + weight_buffer[buffer_next] = weight; + s_buffer[buffer_next] = u / ((float) width); + t_buffer[buffer_next] = v / ((float) height); + + buffer_next++; + if (buffer_next == QUAD_SIZE) { + /* 4 texel coords are in the buffer -> read it now */ + int jj; + /* it is assumed that samp->min_img_filter is set to + * img_filter_2d_nearest or one of the + * accelerated img_filter_2d_nearest_XXX functions. + */ + samp->min_img_filter(tgsi_sampler, s_buffer, t_buffer, p, NULL, + tgsi_sampler_lod_bias, rgba_temp); + for (jj = 0; jj < buffer_next; jj++) { + num[0] += weight_buffer[jj] * rgba_temp[0][jj]; + num[1] += weight_buffer[jj] * rgba_temp[1][jj]; + num[2] += weight_buffer[jj] * rgba_temp[2][jj]; + num[3] += weight_buffer[jj] * rgba_temp[3][jj]; + } + + buffer_next = 0; + } + + den += weight; + } + q += dq; + dq += ddq; + } + } + + /* if the tex coord buffer contains unread values, we will read them now. + * Note that in most cases we have to read more pixel values than required, + * however, as the img_filter_2d_nearest function(s) does not have a count + * parameter, we need to read the whole quad and ignore the unused values + */ + if (buffer_next > 0) { + int jj; + /* it is assumed that samp->min_img_filter is set to + * img_filter_2d_nearest or one of the + * accelerated img_filter_2d_nearest_XXX functions. + */ + samp->min_img_filter(tgsi_sampler, s_buffer, t_buffer, p, NULL, + tgsi_sampler_lod_bias, rgba_temp); + for (jj = 0; jj < buffer_next; jj++) { + num[0] += weight_buffer[jj] * rgba_temp[0][jj]; + num[1] += weight_buffer[jj] * rgba_temp[1][jj]; + num[2] += weight_buffer[jj] * rgba_temp[2][jj]; + num[3] += weight_buffer[jj] * rgba_temp[3][jj]; + } + } + + if (den <= 0.0F) { + /* Reaching this place would mean + * that no pixels intersected the ellipse. + * This should never happen because + * the filter we use always + * intersects at least one pixel. + */ + + /*rgba[0]=0; + rgba[1]=0; + rgba[2]=0; + rgba[3]=0;*/ + /* not enough pixels in resampling, resort to direct interpolation */ + samp->min_img_filter(tgsi_sampler, s, t, p, NULL, tgsi_sampler_lod_bias, rgba_temp); + den = 1; + num[0] = rgba_temp[0][j]; + num[1] = rgba_temp[1][j]; + num[2] = rgba_temp[2][j]; + num[3] = rgba_temp[3][j]; + } + + rgba[0][j] = num[0] / den; + rgba[1][j] = num[1] / den; + rgba[2][j] = num[2] / den; + rgba[3][j] = num[3] / den; + } +} + + +/** + * Sample 2D texture using an anisotropic filter. + */ +static void +mip_filter_linear_aniso(struct tgsi_sampler *tgsi_sampler, + const float s[QUAD_SIZE], + const float t[QUAD_SIZE], + const float p[QUAD_SIZE], + const float c0[QUAD_SIZE], + enum tgsi_sampler_control control, + float rgba[NUM_CHANNELS][QUAD_SIZE]) +{ + struct sp_sampler_variant *samp = sp_sampler_variant(tgsi_sampler); + const struct pipe_resource *texture = samp->view->texture; + int level0; + float lambda; + float lod[QUAD_SIZE]; + + float s_to_u = u_minify(texture->width0, samp->view->u.tex.first_level); + float t_to_v = u_minify(texture->height0, samp->view->u.tex.first_level); + float dudx = (s[QUAD_BOTTOM_RIGHT] - s[QUAD_BOTTOM_LEFT]) * s_to_u; + float dudy = (s[QUAD_TOP_LEFT] - s[QUAD_BOTTOM_LEFT]) * s_to_u; + float dvdx = (t[QUAD_BOTTOM_RIGHT] - t[QUAD_BOTTOM_LEFT]) * t_to_v; + float dvdy = (t[QUAD_TOP_LEFT] - t[QUAD_BOTTOM_LEFT]) * t_to_v; + + if (control == tgsi_sampler_lod_bias) { + /* note: instead of working with Px and Py, we will use the + * squared length instead, to avoid sqrt. + */ + float Px2 = dudx * dudx + dvdx * dvdx; + float Py2 = dudy * dudy + dvdy * dvdy; + + float Pmax2; + float Pmin2; + float e; + const float maxEccentricity = samp->sampler->max_anisotropy * samp->sampler->max_anisotropy; + + if (Px2 < Py2) { + Pmax2 = Py2; + Pmin2 = Px2; + } + else { + Pmax2 = Px2; + Pmin2 = Py2; + } + + /* if the eccentricity of the ellipse is too big, scale up the shorter + * of the two vectors to limit the maximum amount of work per pixel + */ + e = Pmax2 / Pmin2; + if (e > maxEccentricity) { + /* float s=e / maxEccentricity; + minor[0] *= s; + minor[1] *= s; + Pmin2 *= s; */ + Pmin2 = Pmax2 / maxEccentricity; + } + + /* note: we need to have Pmin=sqrt(Pmin2) here, but we can avoid + * this since 0.5*log(x) = log(sqrt(x)) + */ + lambda = 0.5 * util_fast_log2(Pmin2) + samp->sampler->lod_bias; + compute_lod(samp->sampler, lambda, c0, lod); + } + else { + assert(control == tgsi_sampler_lod_explicit); + + memcpy(lod, c0, sizeof(lod)); + } + + /* XXX: Take into account all lod values. + */ + lambda = lod[0]; + level0 = samp->view->u.tex.first_level + (int)lambda; + + /* If the ellipse covers the whole image, we can + * simply return the average of the whole image. + */ + if (level0 >= texture->last_level) { + samp->level = texture->last_level; + samp->min_img_filter(tgsi_sampler, s, t, p, NULL, tgsi_sampler_lod_bias, rgba); + } + else { + /* don't bother interpolating between multiple LODs; it doesn't + * seem to be worth the extra running time. + */ + samp->level = level0; + img_filter_2d_ewa(tgsi_sampler, s, t, p, NULL, tgsi_sampler_lod_bias, + dudx, dvdx, dudy, dvdy, rgba); + } + + if (DEBUG_TEX) { + print_sample(__FUNCTION__, rgba); + } +} + + /** * Specialized version of mip_filter_linear with hard-wired calls to @@ -2316,14 +2627,33 @@ sp_create_sampler_variant( const struct pipe_sampler_state *sampler, sampler->normalized_coords && sampler->wrap_s == PIPE_TEX_WRAP_REPEAT && sampler->wrap_t == PIPE_TEX_WRAP_REPEAT && - sampler->min_img_filter == PIPE_TEX_FILTER_LINEAR) - { + sampler->min_img_filter == PIPE_TEX_FILTER_LINEAR) { samp->mip_filter = mip_filter_linear_2d_linear_repeat_POT; } - else - { + else { samp->mip_filter = mip_filter_linear; } + + /* Anisotropic filtering extension. */ + if (sampler->max_anisotropy > 1) { + samp->mip_filter = mip_filter_linear_aniso; + + /* Override min_img_filter: + * min_img_filter needs to be set to NEAREST since we need to access + * each texture pixel as it is and weight it later; using linear + * filters will have incorrect results. + * By setting the filter to NEAREST here, we can avoid calling the + * generic img_filter_2d_nearest in the anisotropic filter function, + * making it possible to use one of the accelerated implementations + */ + samp->min_img_filter = get_img_filter(key, PIPE_TEX_FILTER_NEAREST, sampler); + + /* on first access create the lookup table containing the filter weights. */ + if (!weightLut) { + create_filter_table(); + } + } + break; } From 7c5f37c032231ad144a8a5c5a0b18f3e26c0aea7 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Mon, 6 Jun 2011 11:15:32 -0400 Subject: [PATCH 026/145] apple: More fixes for compilation failures Signed-off-by: Jeremy Huddleston --- src/glx/applegl_glx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/glx/applegl_glx.c b/src/glx/applegl_glx.c index 660566f3171..ff899df3770 100644 --- a/src/glx/applegl_glx.c +++ b/src/glx/applegl_glx.c @@ -52,7 +52,7 @@ applegl_bind_context(struct glx_context *gc, struct glx_context *old, { Display *dpy = gc->psc->dpy; bool error = apple_glx_make_current_context(dpy, - (oldGC && oldGC != &dummyContext) ? oldGC->driContext : NULL + (old && old != &dummyContext) ? old->driContext : NULL, gc ? gc->driContext : NULL, draw); apple_glx_diagnostic("%s: error %s\n", __func__, error ? "YES" : "NO"); @@ -93,7 +93,7 @@ static const struct glx_context_vtable applegl_context_vtable = { struct glx_context * applegl_create_context(struct glx_screen *psc, - struct glx_config *mode, + struct glx_config *config, struct glx_context *shareList, int renderType) { struct glx_context *gc; @@ -108,7 +108,7 @@ applegl_create_context(struct glx_screen *psc, if (gc == NULL) return NULL; - if (!glx_context_init(gc, psc, mode)) { + if (!glx_context_init(gc, psc, config)) { Xfree(gc); return NULL; } @@ -120,7 +120,7 @@ applegl_create_context(struct glx_screen *psc, gc->do_destroy = False; /* TODO: darwin: Integrate with above to do indirect */ - if(apple_glx_create_context(&gc->driContext, dpy, screen, fbconfig, + if(apple_glx_create_context(&gc->driContext, dpy, screen, config, shareList ? shareList->driContext : NULL, &errorcode, &x11error)) { __glXSendError(dpy, errorcode, 0, X_GLXCreateContext, x11error); @@ -129,8 +129,8 @@ applegl_create_context(struct glx_screen *psc, } gc->currentContextTag = -1; - gc->mode = fbconfig; - gc->isDirect = 1; + gc->config = config; + gc->isDirect = GL_TRUE; gc->xid = 1; /* Just something not None, so we know when to destroy * it in MakeContextCurrent. */ From 2ee5272e1671aff8c8d9e0c12bf37ed006717283 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Mon, 6 Jun 2011 11:27:19 -0400 Subject: [PATCH 027/145] apple: Finish build fixes for applegl_glx.c libGL.dylib now *builds* on darwin. Signed-off-by: Jeremy Huddleston --- src/glx/applegl_glx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/glx/applegl_glx.c b/src/glx/applegl_glx.c index ff899df3770..9b8605f4075 100644 --- a/src/glx/applegl_glx.c +++ b/src/glx/applegl_glx.c @@ -99,7 +99,8 @@ applegl_create_context(struct glx_screen *psc, struct glx_context *gc; int errorcode; bool x11error; - Display *dpy; + Display *dpy = psc->dpy; + int screen = psc->scr; /* TODO: Integrate this with apple_glx_create_context and make * struct apple_glx_context inherit from struct glx_context. */ @@ -113,8 +114,6 @@ applegl_create_context(struct glx_screen *psc, return NULL; } - dpy = gc->psc->dpy; - gc->vtable = &applegl_context_vtable; gc->driContext = NULL; gc->do_destroy = False; From d563009cd1134557178ddddc29d45b664e58bbed Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Mon, 6 Jun 2011 11:38:05 -0400 Subject: [PATCH 028/145] darwin: Define GALLIUM_DRIVERS_DIRS in darwin config Signed-off-by: Jeremy Huddleston --- configs/darwin | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/darwin b/configs/darwin index 990610724b5..9c126ea3db6 100644 --- a/configs/darwin +++ b/configs/darwin @@ -57,3 +57,5 @@ GLU_DIRS = sgi DRIVER_DIRS = osmesa #DRIVER_DIRS = dri DRI_DIRS = swrast +GALLIUM_DRIVERS_DIRS = softpipe trace rbug noop identity galahad failover +#GALLIUM_DRIVERS_DIRS += llvmpipe From e5d241ddb231758e0a0f41eee28435d170d583c0 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Mon, 6 Jun 2011 12:48:08 -0400 Subject: [PATCH 029/145] apple: Package applegl source into MesaLib tarball Signed-off-by: Jeremy Huddleston --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 7a5dae76288..f3c0a20a3c2 100644 --- a/Makefile +++ b/Makefile @@ -364,12 +364,24 @@ GALLIUM_FILES = \ $(DIRECTORY)/src/gallium/*/*/*/*.[ch] \ $(DIRECTORY)/src/gallium/*/*/*/*.py +APPLE_DRI_FILES = \ + $(DIRECTORY)/src/glx/apple/Makefile \ + $(DIRECTORY)/src/glx/apple/*.[ch] \ + $(DIRECTORY)/src/glx/apple/*.tcl \ + $(DIRECTORY)/src/glx/apple/apple_exports.list \ + $(DIRECTORY)/src/glx/apple/GL_aliases \ + $(DIRECTORY)/src/glx/apple/GL_extensions \ + $(DIRECTORY)/src/glx/apple/GL_noop \ + $(DIRECTORY)/src/glx/apple/GL_promoted \ + $(DIRECTORY)/src/glx/apple/specs/*.spec \ + $(DIRECTORY)/src/glx/apple/specs/*.tm DRI_FILES = \ $(DIRECTORY)/include/GL/internal/dri_interface.h \ $(DIRECTORY)/include/GL/internal/sarea.h \ $(DIRECTORY)/src/glx/Makefile \ $(DIRECTORY)/src/glx/*.[ch] \ + $(APPLE_DRI_FILES) \ $(DIRECTORY)/src/mesa/drivers/dri/Makefile \ $(DIRECTORY)/src/mesa/drivers/dri/Makefile.template \ $(DIRECTORY)/src/mesa/drivers/dri/dri.pc.in \ From f9a3200adb1bc70f789c829661a92e3d24023dcf Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 17 May 2011 14:28:20 -0700 Subject: [PATCH 030/145] i965: Update SF_CLIP_VIEWPORT state dumping for Ivybridge. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_state_dump.c | 40 ++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_state_dump.c b/src/mesa/drivers/dri/i965/brw_state_dump.c index ef58619702d..b520e648878 100644 --- a/src/mesa/drivers/dri/i965/brw_state_dump.c +++ b/src/mesa/drivers/dri/i965/brw_state_dump.c @@ -210,6 +210,8 @@ static void dump_sf_viewport_state(struct brw_context *brw) struct brw_sf_viewport *vp; uint32_t vp_off; + assert(intel->gen < 7); + drm_intel_bo_map(intel->batch.bo, GL_FALSE); vp = intel->batch.bo->virtual + brw->sf.vp_offset; @@ -237,6 +239,8 @@ static void dump_clip_viewport_state(struct brw_context *brw) struct brw_clipper_viewport *vp; uint32_t vp_off; + assert(intel->gen < 7); + drm_intel_bo_map(intel->batch.bo, GL_FALSE); vp = intel->batch.bo->virtual + brw->clip.vp_offset; @@ -249,6 +253,34 @@ static void dump_clip_viewport_state(struct brw_context *brw) drm_intel_bo_unmap(intel->batch.bo); } +static void dump_sf_clip_viewport_state(struct brw_context *brw) +{ + struct intel_context *intel = &brw->intel; + const char *name = "SF_CLIP VP"; + struct gen7_sf_clip_viewport *vp; + uint32_t vp_off; + + assert(intel->gen >= 7); + + drm_intel_bo_map(intel->batch.bo, GL_FALSE); + + vp = intel->batch.bo->virtual + brw->sf.vp_offset; + vp_off = intel->batch.bo->offset + brw->sf.vp_offset; + + state_out(name, vp, vp_off, 0, "m00 = %f\n", vp->viewport.m00); + state_out(name, vp, vp_off, 1, "m11 = %f\n", vp->viewport.m11); + state_out(name, vp, vp_off, 2, "m22 = %f\n", vp->viewport.m22); + state_out(name, vp, vp_off, 3, "m30 = %f\n", vp->viewport.m30); + state_out(name, vp, vp_off, 4, "m31 = %f\n", vp->viewport.m31); + state_out(name, vp, vp_off, 5, "m32 = %f\n", vp->viewport.m32); + state_out(name, vp, vp_off, 6, "guardband xmin = %f\n", vp->guardband.xmin); + state_out(name, vp, vp_off, 7, "guardband xmax = %f\n", vp->guardband.xmax); + state_out(name, vp, vp_off, 8, "guardband ymin = %f\n", vp->guardband.ymin); + state_out(name, vp, vp_off, 9, "guardband ymax = %f\n", vp->guardband.ymax); + drm_intel_bo_unmap(intel->batch.bo); +} + + static void dump_cc_viewport_state(struct brw_context *brw) { struct intel_context *intel = &brw->intel; @@ -406,7 +438,12 @@ void brw_debug_batch(struct intel_context *intel) sizeof(struct brw_sf_unit_state)); brw_debug_prog("SF prog", brw->sf.prog_bo); } - dump_sf_viewport_state(brw); + if (intel->gen >= 7) + dump_sf_clip_viewport_state(brw); + else + dump_sf_viewport_state(brw); + if (intel->gen == 6) + dump_clip_viewport_state(brw); if (intel->gen < 6) state_struct_out("WM", intel->batch.bo, brw->wm.state_offset, @@ -415,7 +452,6 @@ void brw_debug_batch(struct intel_context *intel) if (intel->gen >= 6) { dump_cc_viewport_state(brw); - dump_clip_viewport_state(brw); dump_depth_stencil_state(brw); dump_cc_state(brw); dump_blend_state(brw); From 4ba9cfe4b8b9690ec3d9e62dd2a15616428339ac Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 17 May 2011 14:22:16 -0700 Subject: [PATCH 031/145] i965: Update SAMPLER_STATE dumping for Ivybridge. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_state_dump.c | 54 +++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_state_dump.c b/src/mesa/drivers/dri/i965/brw_state_dump.c index b520e648878..6d2d54f03bd 100644 --- a/src/mesa/drivers/dri/i965/brw_state_dump.c +++ b/src/mesa/drivers/dri/i965/brw_state_dump.c @@ -148,6 +148,8 @@ static void dump_wm_sampler_state(struct brw_context *brw) struct gl_context *ctx = &brw->intel.ctx; int i; + assert(intel->gen < 7); + drm_intel_bo_map(intel->batch.bo, GL_FALSE); for (i = 0; i < BRW_MAX_TEX_UNIT; i++) { unsigned int offset; @@ -203,6 +205,53 @@ static void dump_wm_sampler_state(struct brw_context *brw) drm_intel_bo_unmap(intel->batch.bo); } +static void dump_gen7_sampler_state(struct brw_context *brw) +{ + struct intel_context *intel = &brw->intel; + struct gl_context *ctx = &brw->intel.ctx; + int i; + + assert(intel->gen >= 7); + + drm_intel_bo_map(intel->batch.bo, GL_FALSE); + for (i = 0; i < BRW_MAX_TEX_UNIT; i++) { + unsigned int offset; + uint32_t sdc_offset; + struct gen7_sampler_state *samp; + char name[20]; + + if (!ctx->Texture.Unit[i]._ReallyEnabled) { + fprintf(stderr, "WM SAMP%d: disabled\n", i); + continue; + } + + offset = (intel->batch.bo->offset + + brw->wm.sampler_offset + + i * sizeof(struct gen7_sampler_state)); + samp = (struct gen7_sampler_state *) + (intel->batch.bo->virtual + brw->wm.sampler_offset + + i * sizeof(struct gen7_sampler_state)); + + sprintf(name, "WM SAMP%d", i); + state_out(name, samp, offset, 0, "filtering\n"); + state_out(name, samp, offset, 1, "wrapping, lod\n"); + state_out(name, samp, offset, 2, "default color pointer\n"); + state_out(name, samp, offset, 3, "chroma key, aniso\n"); + + sprintf(name, " WM SDC%d", i); + + sdc_offset = intel->batch.bo->offset + brw->wm.sdc_offset[i]; + struct brw_sampler_default_color *sdc = + intel->batch.bo->virtual + brw->wm.sdc_offset[i]; + state_out(name, sdc, sdc_offset, 0, "r %f\n", sdc->color[0]); + state_out(name, sdc, sdc_offset, 1, "g %f\n", sdc->color[1]); + state_out(name, sdc, sdc_offset, 2, "b %f\n", sdc->color[2]); + state_out(name, sdc, sdc_offset, 3, "a %f\n", sdc->color[3]); + } + drm_intel_bo_unmap(intel->batch.bo); +} + + static void dump_sf_viewport_state(struct brw_context *brw) { struct intel_context *intel = &brw->intel; @@ -421,7 +470,10 @@ void brw_debug_batch(struct intel_context *intel) brw->wm.bind_bo_offset, 4 * brw->wm.nr_surfaces); dump_wm_surface_state(brw); - dump_wm_sampler_state(brw); + if (intel->gen < 7) + dump_wm_sampler_state(brw); + else + dump_gen7_sampler_state(brw); if (intel->gen < 6) state_struct_out("VS", intel->batch.bo, brw->vs.state_offset, From c2e659037f4d0687e948e3d17f2d950d3e2dae1b Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 17 May 2011 14:37:18 -0700 Subject: [PATCH 032/145] i965: Update SURFACE_STATE dumping for Ivybridge. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_state_dump.c | 46 ++++++++++++++++++++-- 1 file changed, 43 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_state_dump.c b/src/mesa/drivers/dri/i965/brw_state_dump.c index 6d2d54f03bd..ff06cb3a91e 100644 --- a/src/mesa/drivers/dri/i965/brw_state_dump.c +++ b/src/mesa/drivers/dri/i965/brw_state_dump.c @@ -141,6 +141,44 @@ static void dump_wm_surface_state(struct brw_context *brw) drm_intel_bo_unmap(bo); } +static void dump_gen7_surface_state(struct brw_context *brw) +{ + dri_bo *bo; + GLubyte *base; + int i; + + bo = brw->intel.batch.bo; + drm_intel_bo_map(bo, GL_FALSE); + base = bo->virtual; + + for (i = 0; i < brw->wm.nr_surfaces; i++) { + unsigned int surfoff; + struct gen7_surface_state *surf; + char name[20]; + + if (brw->wm.surf_offset[i] == 0) { + fprintf(stderr, "WM SURF%d: NULL\n", i); + continue; + } + surfoff = bo->offset + brw->wm.surf_offset[i]; + surf = (struct gen7_surface_state *) (base + brw->wm.surf_offset[i]); + + sprintf(name, "WM SURF%d", i); + state_out(name, surf, surfoff, 0, "%s %s\n", + get_965_surfacetype(surf->ss0.surface_type), + get_965_surface_format(surf->ss0.surface_format)); + state_out(name, surf, surfoff, 1, "offset\n"); + state_out(name, surf, surfoff, 2, "%dx%d size, %d mips\n", + surf->ss2.width + 1, surf->ss2.height + 1, surf->ss5.mip_count); + state_out(name, surf, surfoff, 3, "pitch %d, %stiled\n", + surf->ss3.pitch + 1, surf->ss0.tiled_surface ? "" : "not "); + state_out(name, surf, surfoff, 4, "mip base %d\n", + surf->ss5.min_lod); + state_out(name, surf, surfoff, 5, "x,y offset: %d,%d\n", + surf->ss5.x_offset, surf->ss5.y_offset); + } + drm_intel_bo_unmap(bo); +} static void dump_wm_sampler_state(struct brw_context *brw) { @@ -469,11 +507,13 @@ void brw_debug_batch(struct intel_context *intel) brw->intel.batch.bo, brw->wm.bind_bo_offset, 4 * brw->wm.nr_surfaces); - dump_wm_surface_state(brw); - if (intel->gen < 7) + if (intel->gen < 7) { + dump_wm_surface_state(brw); dump_wm_sampler_state(brw); - else + } else { + dump_gen7_surface_state(brw); dump_gen7_sampler_state(brw); + } if (intel->gen < 6) state_struct_out("VS", intel->batch.bo, brw->vs.state_offset, From 1af8b7250f477cfb36cbd8d4885f0cfb9a2e9779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= Date: Wed, 1 Jun 2011 10:37:13 -0700 Subject: [PATCH 033/145] llvmpipe: use $(CXX) instead of g++ for linking. This allows setting the path to the C++ compiler. --- src/gallium/drivers/llvmpipe/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/Makefile b/src/gallium/drivers/llvmpipe/Makefile index 4068bed393c..ba9705bebee 100644 --- a/src/gallium/drivers/llvmpipe/Makefile +++ b/src/gallium/drivers/llvmpipe/Makefile @@ -71,7 +71,7 @@ lp_tile_soa.c: lp_tile_soa.py ../../auxiliary/util/u_format_parse.py ../../auxil LDFLAGS += $(LLVM_LDFLAGS) LIBS += -L../../auxiliary/ -lgallium libllvmpipe.a $(LLVM_LIBS) $(GL_LIB_DEPS) -LD=g++ +LD=$(CXX) $(PROGS): lp_test_main.o libllvmpipe.a From 3103c08ae91f6bcd42a223a5fe7f9d38746565c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= Date: Wed, 1 Jun 2011 15:32:39 -0700 Subject: [PATCH 034/145] i915g: don't destroy a texture buffer if it's NULL. --- src/gallium/drivers/i915/i915_resource_texture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/i915/i915_resource_texture.c b/src/gallium/drivers/i915/i915_resource_texture.c index e05b059706d..b74b19d0fe4 100644 --- a/src/gallium/drivers/i915/i915_resource_texture.c +++ b/src/gallium/drivers/i915/i915_resource_texture.c @@ -700,7 +700,8 @@ i915_texture_destroy(struct pipe_screen *screen, struct i915_winsys *iws = i915_screen(screen)->iws; uint i; - iws->buffer_destroy(iws, tex->buffer); + if (tex->buffer) + iws->buffer_destroy(iws, tex->buffer); for (i = 0; i < Elements(tex->image_offset); i++) if (tex->image_offset[i]) From cec2082ae515bc91e6b29084ba4b8deac28ef923 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= Date: Wed, 1 Jun 2011 20:51:59 -0700 Subject: [PATCH 035/145] Gallium: fix indentation in u_blitter.c --- src/gallium/auxiliary/util/u_blitter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index a4c399052fd..528f344a0f7 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -770,7 +770,7 @@ void util_blitter_copy_region(struct blitter_context *blitter, /* Check if we can sample from and render to the surfaces. */ /* (assuming copying a stencil buffer is not possible) */ - if ((!ignore_stencil && is_stencil) || + if ((!ignore_stencil && is_stencil) || !screen->is_format_supported(screen, dst->format, dst->target, dst->nr_samples, bind) || !screen->is_format_supported(screen, src->format, src->target, From 3d3ecb8520ccca0863026a94e7fda9840aff6c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= Date: Fri, 3 Jun 2011 17:03:09 -0700 Subject: [PATCH 036/145] dri2: protect dri2FlushFrontBuffer against NULL buffers. --- src/glx/dri2_glx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 69b47ae45e2..506754ccc1f 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -457,6 +457,12 @@ static void dri2FlushFrontBuffer(__DRIdrawable *driDrawable, void *loaderPrivate) { struct dri2_drawable *pdraw = loaderPrivate; + if (!pdraw) + return; + + if (!pdraw->base.psc) + return; + struct glx_display *priv = __glXInitialize(pdraw->base.psc->dpy); struct dri2_display *pdp = (struct dri2_display *)priv->dri2Display; struct glx_context *gc = __glXGetCurrentContext(); From 893b92adffe25a42468cb310dc5d13642472f0cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= Date: Fri, 3 Jun 2011 17:03:37 -0700 Subject: [PATCH 037/145] i915g: add missing and unsupported PIPE_CAPs to avoid debug messages. --- src/gallium/drivers/i915/i915_screen.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c index da96b420f2c..c86baa58b28 100644 --- a/src/gallium/drivers/i915/i915_screen.c +++ b/src/gallium/drivers/i915/i915_screen.c @@ -134,6 +134,11 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap) case PIPE_CAP_TEXTURE_MIRROR_CLAMP: case PIPE_CAP_TEXTURE_SWIZZLE: case PIPE_CAP_TIMER_QUERY: + case PIPE_CAP_SM3: + case PIPE_CAP_SEAMLESS_CUBE_MAP: + case PIPE_CAP_SEAMLESS_CUBE_MAP_PER_TEXTURE: + case PIPE_CAP_FRAGMENT_COLOR_CLAMP_CONTROL: + case PIPE_CAP_MIXED_COLORBUFFER_FORMATS: return 0; /* Features we can lie about (boolean caps). */ From 0ce977a66e65ce862f5b29ded6098de91464f304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= Date: Fri, 3 Jun 2011 17:06:59 -0700 Subject: [PATCH 038/145] i915g: handle varyings properly. --- src/gallium/drivers/i915/i915_fpc_translate.c | 10 +++++-- src/gallium/drivers/i915/i915_state_derived.c | 26 ++++++++++++++----- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c index b145b58be30..9f3c766cb81 100644 --- a/src/gallium/drivers/i915/i915_fpc_translate.c +++ b/src/gallium/drivers/i915/i915_fpc_translate.c @@ -192,8 +192,14 @@ src_vector(struct i915_fp_compile *p, src = swizzle(src, W, W, W, W); break; case TGSI_SEMANTIC_GENERIC: - /* usually a texcoord */ - src = i915_emit_decl(p, REG_TYPE_T, T_TEX0 + sem_ind, D0_CHANNEL_ALL); + if (sem_ind < 8) + /* a texcoord */ + src = i915_emit_decl(p, REG_TYPE_T, T_TEX0 + sem_ind, D0_CHANNEL_ALL); + else if ( (sem_ind >= 10) && (sem_ind < 18) ) + /* a varying */ + src = i915_emit_decl(p, REG_TYPE_T, T_TEX0 + sem_ind - 10, D0_CHANNEL_ALL); + else + debug_printf("%s: unhandled generic %d\n", __func__, sem_ind); break; default: i915_program_error(p, "Bad source->Index"); diff --git a/src/gallium/drivers/i915/i915_state_derived.c b/src/gallium/drivers/i915/i915_state_derived.c index 59ac2f7292a..47bea8bbd8b 100644 --- a/src/gallium/drivers/i915/i915_state_derived.c +++ b/src/gallium/drivers/i915/i915_state_derived.c @@ -46,12 +46,12 @@ static void calculate_vertex_layout(struct i915_context *i915) const struct i915_fragment_shader *fs = i915->fs; const enum interp_mode colorInterp = i915->rasterizer->color_interp; struct vertex_info vinfo; - boolean texCoords[8], colors[2], fog, needW; + boolean texCoords[8], colors[2], fog, needW, have_varyings; uint i; int src; memset(texCoords, 0, sizeof(texCoords)); - colors[0] = colors[1] = fog = needW = FALSE; + colors[0] = colors[1] = fog = needW = have_varyings = FALSE; memset(&vinfo, 0, sizeof(vinfo)); /* Determine which fragment program inputs are needed. Setup HW vertex @@ -66,10 +66,19 @@ static void calculate_vertex_layout(struct i915_context *i915) colors[fs->info.input_semantic_index[i]] = TRUE; break; case TGSI_SEMANTIC_GENERIC: - /* usually a texcoord */ { - const uint unit = fs->info.input_semantic_index[i]; + /* texcoords/varyings */ + /* XXX handle back/front face and point size */ + uint unit = fs->info.input_semantic_index[i]; + + /* Route varyings as tex coords */ + if ( (unit >= 10) && (unit < 18) ) { + have_varyings = TRUE; + unit -= 10; + } + assert(unit < 8); + texCoords[unit] = TRUE; needW = TRUE; } @@ -82,7 +91,7 @@ static void calculate_vertex_layout(struct i915_context *i915) } } - + /* pos */ src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_POSITION, 0); if (needW) { @@ -120,12 +129,15 @@ static void calculate_vertex_layout(struct i915_context *i915) vinfo.hwfmt[0] |= S4_VFMT_FOG_PARAM; } - /* texcoords */ + /* texcoords/varyings */ for (i = 0; i < 8; i++) { uint hwtc; if (texCoords[i]) { hwtc = TEXCOORDFMT_4D; - src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_GENERIC, i); + if (!have_varyings) + src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_GENERIC, i); + else + src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_GENERIC, i + 10); draw_emit_vertex_attr(&vinfo, EMIT_4F, INTERP_PERSPECTIVE, src); } else { From 0f091333d1ef403a67a8639ac13d9a9bbe93092a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= Date: Fri, 3 Jun 2011 18:57:16 -0700 Subject: [PATCH 039/145] i915g: implement TGSI_OPCODE_SEQ. --- src/gallium/drivers/i915/i915_fpc_translate.c | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c index 9f3c766cb81..695a3966bbb 100644 --- a/src/gallium/drivers/i915/i915_fpc_translate.c +++ b/src/gallium/drivers/i915/i915_fpc_translate.c @@ -852,6 +852,34 @@ i915_translate_instruction(struct i915_fp_compile *p, emit_simple_arith_swap2(p, inst, A0_SLT, 2); break; + case TGSI_OPCODE_SEQ: + /* if we're both >= and <= then we're == */ + src0 = src_vector(p, &inst->Src[0]); + src1 = src_vector(p, &inst->Src[1]); + tmp = i915_get_utemp(p); + + i915_emit_arith(p, + A0_SGE, + tmp, A0_DEST_CHANNEL_ALL, 0, + src0, + src1, 0); + + i915_emit_arith(p, + A0_SGE, + get_result_vector(p, &inst->Dst[0]), + A0_DEST_CHANNEL_ALL, 0, + src1, + src0, 0); + + i915_emit_arith(p, + A0_MUL, + get_result_vector(p, &inst->Dst[0]), + A0_DEST_CHANNEL_ALL, 0, + get_result_vector(p, &inst->Dst[0]), + tmp, 0); + + break; + case TGSI_OPCODE_SUB: src0 = src_vector(p, &inst->Src[0]); src1 = src_vector(p, &inst->Src[1]); From 2292025c49f2165b59f578c926d320913b08b1b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= Date: Mon, 6 Jun 2011 12:32:17 -0700 Subject: [PATCH 040/145] i915g: implement more opcodes. --- src/gallium/drivers/i915/i915_fpc_translate.c | 94 ++++++++++++++++--- 1 file changed, 82 insertions(+), 12 deletions(-) diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c index 695a3966bbb..51766cd6da1 100644 --- a/src/gallium/drivers/i915/i915_fpc_translate.c +++ b/src/gallium/drivers/i915/i915_fpc_translate.c @@ -501,6 +501,17 @@ i915_translate_instruction(struct i915_fp_compile *p, i915_emit_const4fv(p, cos_constants), 0); break; + case TGSI_OPCODE_DP2: + src0 = src_vector(p, &inst->Src[0]); + src1 = src_vector(p, &inst->Src[1]); + + i915_emit_arith(p, + A0_DP3, + get_result_vector(p, &inst->Dst[0]), + get_result_flags(inst), 0, + swizzle(src0, X, Y, ZERO, ZERO), src1, 0); + break; + case TGSI_OPCODE_DP3: emit_simple_arith(p, inst, A0_DP3, 2); break; @@ -706,7 +717,7 @@ i915_translate_instruction(struct i915_fp_compile *p, i915_emit_arith(p, A0_RCP, get_result_vector(p, &inst->Dst[0]), - get_result_flags(inst), 0, + get_result_flags(inst), 0, swizzle(src0, X, X, X, X), 0, 0); break; @@ -784,13 +795,36 @@ i915_translate_instruction(struct i915_fp_compile *p, } break; - case TGSI_OPCODE_SGE: - emit_simple_arith(p, inst, A0_SGE, 2); + case TGSI_OPCODE_SEQ: + /* if we're both >= and <= then we're == */ + src0 = src_vector(p, &inst->Src[0]); + src1 = src_vector(p, &inst->Src[1]); + tmp = i915_get_utemp(p); + + i915_emit_arith(p, + A0_SGE, + tmp, A0_DEST_CHANNEL_ALL, 0, + src0, + src1, 0); + + i915_emit_arith(p, + A0_SGE, + get_result_vector(p, &inst->Dst[0]), + A0_DEST_CHANNEL_ALL, 0, + src1, + src0, 0); + + i915_emit_arith(p, + A0_MUL, + get_result_vector(p, &inst->Dst[0]), + A0_DEST_CHANNEL_ALL, 0, + get_result_vector(p, &inst->Dst[0]), + tmp, 0); + break; - case TGSI_OPCODE_SLE: - /* like SGE, but swap reg0, reg1 */ - emit_simple_arith_swap2(p, inst, A0_SGE, 2); + case TGSI_OPCODE_SGE: + emit_simple_arith(p, inst, A0_SGE, 2); break; case TGSI_OPCODE_SIN: @@ -843,6 +877,11 @@ i915_translate_instruction(struct i915_fp_compile *p, i915_emit_const4fv(p, sin_constants), 0); break; + case TGSI_OPCODE_SLE: + /* like SGE, but swap reg0, reg1 */ + emit_simple_arith_swap2(p, inst, A0_SGE, 2); + break; + case TGSI_OPCODE_SLT: emit_simple_arith(p, inst, A0_SLT, 2); break; @@ -852,32 +891,59 @@ i915_translate_instruction(struct i915_fp_compile *p, emit_simple_arith_swap2(p, inst, A0_SLT, 2); break; - case TGSI_OPCODE_SEQ: - /* if we're both >= and <= then we're == */ + case TGSI_OPCODE_SNE: + /* if we're neither < nor > then we're != */ src0 = src_vector(p, &inst->Src[0]); src1 = src_vector(p, &inst->Src[1]); tmp = i915_get_utemp(p); i915_emit_arith(p, - A0_SGE, - tmp, A0_DEST_CHANNEL_ALL, 0, + A0_SLT, + tmp, + A0_DEST_CHANNEL_ALL, 0, src0, src1, 0); i915_emit_arith(p, - A0_SGE, + A0_SLT, get_result_vector(p, &inst->Dst[0]), A0_DEST_CHANNEL_ALL, 0, src1, src0, 0); i915_emit_arith(p, - A0_MUL, + A0_ADD, get_result_vector(p, &inst->Dst[0]), A0_DEST_CHANNEL_ALL, 0, get_result_vector(p, &inst->Dst[0]), tmp, 0); + break; + case TGSI_OPCODE_SSG: + /* compute (src>0) - (src<0) */ + src0 = src_vector(p, &inst->Src[0]); + tmp = i915_get_utemp(p); + + i915_emit_arith(p, + A0_SLT, + tmp, + A0_DEST_CHANNEL_ALL, 0, + src0, + swizzle(src0, ZERO, ZERO, ZERO, ZERO), 0); + + i915_emit_arith(p, + A0_SLT, + get_result_vector(p, &inst->Dst[0]), + A0_DEST_CHANNEL_ALL, 0, + swizzle(src0, ZERO, ZERO, ZERO, ZERO), + src0, 0); + + i915_emit_arith(p, + A0_ADD, + get_result_vector(p, &inst->Dst[0]), + A0_DEST_CHANNEL_ALL, 0, + get_result_vector(p, &inst->Dst[0]), + negate(tmp, 1, 1, 1, 1), 0); break; case TGSI_OPCODE_SUB: @@ -895,6 +961,10 @@ i915_translate_instruction(struct i915_fp_compile *p, emit_tex(p, inst, T0_TEXLD); break; + case TGSI_OPCODE_TRUNC: + emit_simple_arith(p, inst, A0_TRC, 1); + break; + case TGSI_OPCODE_TXB: emit_tex(p, inst, T0_TEXLDB); break; From 6cd3534676a58e92ac479eee7040df2ad27fdac0 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 3 Jun 2011 15:24:55 +1000 Subject: [PATCH 041/145] r600g: don't need to call the packet dirty function if not dirty. also fix a unneeded dirty check and add a dirty check speedup. Signed-off-by: Dave Airlie --- .../winsys/r600/drm/evergreen_hw_context.c | 7 ++++--- src/gallium/winsys/r600/drm/r600_hw_context.c | 20 +++++++++++-------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/gallium/winsys/r600/drm/evergreen_hw_context.c b/src/gallium/winsys/r600/drm/evergreen_hw_context.c index cf8ae5185b4..aa789e69d19 100644 --- a/src/gallium/winsys/r600/drm/evergreen_hw_context.c +++ b/src/gallium/winsys/r600/drm/evergreen_hw_context.c @@ -1066,8 +1066,8 @@ static inline void evergreen_context_pipe_state_set_sampler(struct r600_context block->reg[i] = state->regs[i].value; } } - - r600_context_dirty_block(ctx, block, dirty, 2); + if (dirty) + r600_context_dirty_block(ctx, block, dirty, 2); } static inline void evergreen_context_ps_partial_flush(struct r600_context *ctx) @@ -1119,7 +1119,8 @@ static inline void evergreen_context_pipe_state_set_sampler_border(struct r600_c if (dirty & R600_BLOCK_STATUS_DIRTY) evergreen_context_ps_partial_flush(ctx); - r600_context_dirty_block(ctx, block, dirty, 4); + if (dirty) + r600_context_dirty_block(ctx, block, dirty, 4); } void evergreen_context_pipe_state_set_ps_sampler(struct r600_context *ctx, struct r600_pipe_state *state, unsigned id) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index a3c8945a722..4c21d606723 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -920,13 +920,14 @@ void r600_context_reg(struct r600_context *ctx, dirty |= R600_BLOCK_STATUS_DIRTY; block->reg[id] = new_val; } - r600_context_dirty_block(ctx, block, dirty, id); + if (dirty) + r600_context_dirty_block(ctx, block, dirty, id); } void r600_context_dirty_block(struct r600_context *ctx, struct r600_block *block, int dirty, int index) { - if (dirty && (index + 1) > block->nreg_dirty) + if ((index + 1) > block->nreg_dirty) block->nreg_dirty = index + 1; if ((dirty != (block->status & R600_BLOCK_STATUS_DIRTY)) || !(block->status & R600_BLOCK_STATUS_ENABLED)) { @@ -970,7 +971,8 @@ void r600_context_pipe_state_set(struct r600_context *ctx, struct r600_pipe_stat dirty |= R600_BLOCK_STATUS_DIRTY; } - r600_context_dirty_block(ctx, block, dirty, id); + if (dirty) + r600_context_dirty_block(ctx, block, dirty, id); } } @@ -998,7 +1000,7 @@ void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_ dirty = block->status & R600_BLOCK_STATUS_DIRTY; for (i = 0; i < num_regs; i++) { - if (block->reg[i] != state->regs[i].value) { + if (dirty || (block->reg[i] != state->regs[i].value)) { dirty |= R600_BLOCK_STATUS_DIRTY; block->reg[i] = state->regs[i].value; } @@ -1045,7 +1047,8 @@ void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_ state->regs[2].bo->bo->binding |= BO_BOUND_TEXTURE; } } - r600_context_dirty_block(ctx, block, dirty, num_regs - 1); + if (dirty) + r600_context_dirty_block(ctx, block, dirty, num_regs - 1); } void r600_context_pipe_state_set_ps_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned rid) @@ -1091,7 +1094,8 @@ static inline void r600_context_pipe_state_set_sampler(struct r600_context *ctx, } } - r600_context_dirty_block(ctx, block, dirty, 2); + if (dirty) + r600_context_dirty_block(ctx, block, dirty, 2); } static inline void r600_context_ps_partial_flush(struct r600_context *ctx) @@ -1135,8 +1139,8 @@ static inline void r600_context_pipe_state_set_sampler_border(struct r600_contex * will end up using the new border color. */ if (dirty & R600_BLOCK_STATUS_DIRTY) r600_context_ps_partial_flush(ctx); - - r600_context_dirty_block(ctx, block, dirty, 3); + if (dirty) + r600_context_dirty_block(ctx, block, dirty, 3); } void r600_context_pipe_state_set_ps_sampler(struct r600_context *ctx, struct r600_pipe_state *state, unsigned id) From eb4bb48ef41483750fa678ab21ef52accbf4e628 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 6 Jun 2011 11:15:10 +1000 Subject: [PATCH 042/145] r600g: only call bo loop if nbos is positive. we don't need to loop over all the registers unless we have some bos in the block, also avoid setting the ctx flags, and move the optional stuff down below this chunk. Signed-off-by: Dave Airlie --- src/gallium/winsys/r600/drm/r600_hw_context.c | 34 ++++++++++--------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 4c21d606723..1be485400fc 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -1183,31 +1183,33 @@ void r600_context_block_emit_dirty(struct r600_context *ctx, struct r600_block * { int id; int optional = block->nbo == 0 && !(block->flags & REG_FLAG_DIRTY_ALWAYS); - int cp_dwords = block->pm4_ndwords, start_dword; - int new_dwords; + int cp_dwords = block->pm4_ndwords, start_dword = 0; + int new_dwords = 0; if (block->nreg_dirty == 0 && optional) { goto out; } - optional &= (block->nreg_dirty != block->nreg); + if (block->nbo) { + ctx->flags |= R600_CONTEXT_CHECK_EVENT_FLUSH; - ctx->flags |= R600_CONTEXT_CHECK_EVENT_FLUSH; - for (int j = 0; j < block->nreg; j++) { - if (block->pm4_bo_index[j]) { - /* find relocation */ - id = block->pm4_bo_index[j]; - r600_context_bo_reloc(ctx, - &block->pm4[block->reloc[id].bo_pm4_index], - block->reloc[id].bo); - r600_context_bo_flush(ctx, - block->reloc[id].flush_flags, - block->reloc[id].flush_mask, - block->reloc[id].bo); + for (int j = 0; j < block->nreg; j++) { + if (block->pm4_bo_index[j]) { + /* find relocation */ + id = block->pm4_bo_index[j]; + r600_context_bo_reloc(ctx, + &block->pm4[block->reloc[id].bo_pm4_index], + block->reloc[id].bo); + r600_context_bo_flush(ctx, + block->reloc[id].flush_flags, + block->reloc[id].flush_mask, + block->reloc[id].bo); + } } + ctx->flags &= ~R600_CONTEXT_CHECK_EVENT_FLUSH; } - ctx->flags &= ~R600_CONTEXT_CHECK_EVENT_FLUSH; + optional &= (block->nreg_dirty != block->nreg); if (optional) { new_dwords = block->nreg_dirty; start_dword = ctx->pm4_cdwords; From cf0f02e501eb2eb8edcf2c4f6db826b0cdd31c9b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 3 Jun 2011 15:34:31 +1000 Subject: [PATCH 043/145] r600g: move resource setting to its own structures. resource setting could be a fair bit more lightweight, this patch just separates the resource structs from the standard reg tracking structs in the driver, later patches will improve the winsys. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/evergreen_state.c | 106 +++++++----------- src/gallium/drivers/r600/r600.h | 18 ++- src/gallium/drivers/r600/r600_pipe.h | 20 ++-- src/gallium/drivers/r600/r600_state.c | 94 +++++++--------- src/gallium/drivers/r600/r600_state_common.c | 16 +-- .../winsys/r600/drm/evergreen_hw_context.c | 6 +- src/gallium/winsys/r600/drm/r600_hw_context.c | 50 +++++---- src/gallium/winsys/r600/drm/r600_priv.h | 2 +- 8 files changed, 140 insertions(+), 172 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index 54f5410c324..17abdff49cd 100644 --- a/src/gallium/drivers/r600/evergreen_state.c +++ b/src/gallium/drivers/r600/evergreen_state.c @@ -380,9 +380,8 @@ static struct pipe_sampler_view *evergreen_create_sampler_view(struct pipe_conte struct pipe_resource *texture, const struct pipe_sampler_view *state) { - struct r600_pipe_context *rctx = (struct r600_pipe_context *)ctx; struct r600_pipe_sampler_view *resource = CALLOC_STRUCT(r600_pipe_sampler_view); - struct r600_pipe_state *rstate; + struct r600_pipe_resource_state *rstate; const struct util_format_description *desc; struct r600_resource_texture *tmp; struct r600_resource *rbuffer; @@ -438,35 +437,27 @@ static struct pipe_sampler_view *evergreen_create_sampler_view(struct pipe_conte array_mode = tmp->array_mode[0]; tile_type = tmp->tile_type; - r600_pipe_state_add_reg(rstate, R_030000_RESOURCE0_WORD0, - S_030000_DIM(r600_tex_dim(texture->target)) | - S_030000_PITCH((pitch / 8) - 1) | - S_030000_NON_DISP_TILING_ORDER(tile_type) | - S_030000_TEX_WIDTH(texture->width0 - 1), 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_030004_RESOURCE0_WORD1, - S_030004_TEX_HEIGHT(texture->height0 - 1) | - S_030004_TEX_DEPTH(texture->depth0 - 1) | - S_030004_ARRAY_MODE(array_mode), - 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_030008_RESOURCE0_WORD2, - (tmp->offset[0] + r600_bo_offset(bo[0])) >> 8, 0xFFFFFFFF, bo[0]); - r600_pipe_state_add_reg(rstate, R_03000C_RESOURCE0_WORD3, - (tmp->offset[1] + r600_bo_offset(bo[1])) >> 8, 0xFFFFFFFF, bo[1]); - r600_pipe_state_add_reg(rstate, R_030010_RESOURCE0_WORD4, - word4 | - S_030010_SRF_MODE_ALL(V_030010_SRF_MODE_ZERO_CLAMP_MINUS_ONE) | - S_030010_ENDIAN_SWAP(endian) | - S_030010_BASE_LEVEL(state->u.tex.first_level), 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_030014_RESOURCE0_WORD5, - S_030014_LAST_LEVEL(state->u.tex.last_level) | - S_030014_BASE_ARRAY(0) | - S_030014_LAST_ARRAY(0), 0xffffffff, NULL); - r600_pipe_state_add_reg(rstate, R_030018_RESOURCE0_WORD6, - S_030018_MAX_ANISO(4 /* max 16 samples */), - 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_03001C_RESOURCE0_WORD7, - S_03001C_DATA_FORMAT(format) | - S_03001C_TYPE(V_03001C_SQ_TEX_VTX_VALID_TEXTURE), 0xFFFFFFFF, NULL); + rstate->bo[0] = bo[0]; + rstate->bo[1] = bo[1]; + rstate->val[0] = (S_030000_DIM(r600_tex_dim(texture->target)) | + S_030000_PITCH((pitch / 8) - 1) | + S_030000_NON_DISP_TILING_ORDER(tile_type) | + S_030000_TEX_WIDTH(texture->width0 - 1)); + rstate->val[1] = (S_030004_TEX_HEIGHT(texture->height0 - 1) | + S_030004_TEX_DEPTH(texture->depth0 - 1) | + S_030004_ARRAY_MODE(array_mode)); + rstate->val[2] = (tmp->offset[0] + r600_bo_offset(bo[0])) >> 8; + rstate->val[3] = (tmp->offset[1] + r600_bo_offset(bo[1])) >> 8; + rstate->val[4] = (word4 | + S_030010_SRF_MODE_ALL(V_030010_SRF_MODE_ZERO_CLAMP_MINUS_ONE) | + S_030010_ENDIAN_SWAP(endian) | + S_030010_BASE_LEVEL(state->u.tex.first_level)); + rstate->val[5] = (S_030014_LAST_LEVEL(state->u.tex.last_level) | + S_030014_BASE_ARRAY(0) | + S_030014_LAST_ARRAY(0)); + rstate->val[6] = (S_030018_MAX_ANISO(4 /* max 16 samples */)); + rstate->val[7] = (S_03001C_DATA_FORMAT(format) | + S_03001C_TYPE(V_03001C_SQ_TEX_VTX_VALID_TEXTURE)); return &resource->base; } @@ -1769,45 +1760,32 @@ void *evergreen_create_db_flush_dsa(struct r600_pipe_context *rctx) } void evergreen_pipe_init_buffer_resource(struct r600_pipe_context *rctx, - struct r600_pipe_state *rstate, - struct r600_resource *rbuffer, - unsigned offset, unsigned stride) + struct r600_pipe_resource_state *rstate) { rstate->id = R600_PIPE_STATE_RESOURCE; - rstate->nregs = 0; - r600_pipe_state_add_reg(rstate, R_030000_RESOURCE0_WORD0, - offset, 0xFFFFFFFF, rbuffer->bo); - r600_pipe_state_add_reg(rstate, R_030004_RESOURCE0_WORD1, - rbuffer->bo_size - offset - 1, 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_030008_RESOURCE0_WORD2, - S_030008_ENDIAN_SWAP(r600_endian_swap(32)) | - S_030008_STRIDE(stride), 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_03000C_RESOURCE0_WORD3, - S_03000C_DST_SEL_X(V_03000C_SQ_SEL_X) | - S_03000C_DST_SEL_Y(V_03000C_SQ_SEL_Y) | - S_03000C_DST_SEL_Z(V_03000C_SQ_SEL_Z) | - S_03000C_DST_SEL_W(V_03000C_SQ_SEL_W), - 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_030010_RESOURCE0_WORD4, - 0x00000000, 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_030014_RESOURCE0_WORD5, - 0x00000000, 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_030018_RESOURCE0_WORD6, - 0x00000000, 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_03001C_RESOURCE0_WORD7, - 0xC0000000, 0xFFFFFFFF, NULL); + + rstate->val[0] = 0; + rstate->bo[0] = NULL; + rstate->val[1] = 0; + rstate->val[2] = S_030008_ENDIAN_SWAP(r600_endian_swap(32)); + rstate->val[3] = S_03000C_DST_SEL_X(V_03000C_SQ_SEL_X) | + S_03000C_DST_SEL_Y(V_03000C_SQ_SEL_Y) | + S_03000C_DST_SEL_Z(V_03000C_SQ_SEL_Z) | + S_03000C_DST_SEL_W(V_03000C_SQ_SEL_W); + rstate->val[4] = 0; + rstate->val[5] = 0; + rstate->val[6] = 0; + rstate->val[7] = 0xc0000000; } -void evergreen_pipe_mod_buffer_resource(struct r600_pipe_state *rstate, +void evergreen_pipe_mod_buffer_resource(struct r600_pipe_resource_state *rstate, struct r600_resource *rbuffer, unsigned offset, unsigned stride) { - rstate->nregs = 0; - r600_pipe_state_mod_reg_bo(rstate, offset, rbuffer->bo); - r600_pipe_state_mod_reg(rstate, rbuffer->bo_size - offset - 1); - r600_pipe_state_mod_reg(rstate, S_030008_ENDIAN_SWAP(r600_endian_swap(32)) | - S_030008_STRIDE(stride)); - rstate->nregs = 8; - + rstate->bo[0] = rbuffer->bo; + rstate->val[0] = offset; + rstate->val[1] = rbuffer->bo_size - offset - 1; + rstate->val[2] = S_030008_ENDIAN_SWAP(r600_endian_swap(32)) | + S_030008_STRIDE(stride); } diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h index 23e7181a86e..5d6240aef24 100644 --- a/src/gallium/drivers/r600/r600.h +++ b/src/gallium/drivers/r600/r600.h @@ -170,6 +170,12 @@ struct r600_pipe_state { struct r600_pipe_reg regs[R600_BLOCK_MAX_REG]; }; +struct r600_pipe_resource_state { + unsigned id; + u32 val[8]; + struct r600_bo *bo[2]; +}; + #define R600_BLOCK_STATUS_ENABLED (1 << 0) #define R600_BLOCK_STATUS_DIRTY (1 << 1) @@ -275,9 +281,9 @@ struct r600_draw { int r600_context_init(struct r600_context *ctx, struct radeon *radeon); void r600_context_fini(struct r600_context *ctx); void r600_context_pipe_state_set(struct r600_context *ctx, struct r600_pipe_state *state); -void r600_context_pipe_state_set_ps_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned rid); -void r600_context_pipe_state_set_vs_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned rid); -void r600_context_pipe_state_set_fs_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned rid); +void r600_context_pipe_state_set_ps_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid); +void r600_context_pipe_state_set_vs_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid); +void r600_context_pipe_state_set_fs_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid); void r600_context_pipe_state_set_ps_sampler(struct r600_context *ctx, struct r600_pipe_state *state, unsigned id); void r600_context_pipe_state_set_vs_sampler(struct r600_context *ctx, struct r600_pipe_state *state, unsigned id); void r600_context_flush(struct r600_context *ctx); @@ -303,9 +309,9 @@ void r600_context_flush_dest_caches(struct r600_context *ctx); int evergreen_context_init(struct r600_context *ctx, struct radeon *radeon); void evergreen_context_draw(struct r600_context *ctx, const struct r600_draw *draw); void evergreen_context_flush_dest_caches(struct r600_context *ctx); -void evergreen_context_pipe_state_set_ps_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned rid); -void evergreen_context_pipe_state_set_vs_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned rid); -void evergreen_context_pipe_state_set_fs_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned rid); +void evergreen_context_pipe_state_set_ps_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid); +void evergreen_context_pipe_state_set_vs_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid); +void evergreen_context_pipe_state_set_fs_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid); void evergreen_context_pipe_state_set_ps_sampler(struct r600_context *ctx, struct r600_pipe_state *state, unsigned id); void evergreen_context_pipe_state_set_vs_sampler(struct r600_context *ctx, struct r600_pipe_state *state, unsigned id); diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 8002d943abd..f40d6fd3fa2 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -82,7 +82,7 @@ struct r600_screen { struct r600_pipe_sampler_view { struct pipe_sampler_view base; - struct r600_pipe_state state; + struct r600_pipe_resource_state state; }; struct r600_pipe_rasterizer { @@ -173,7 +173,7 @@ struct r600_pipe_context { struct r600_pipe_state *states[R600_PIPE_NSTATES]; struct r600_context ctx; struct r600_vertex_element *vertex_elements; - struct r600_pipe_state fs_resource[PIPE_MAX_ATTRIBS]; + struct r600_pipe_resource_state fs_resource[PIPE_MAX_ATTRIBS]; struct pipe_framebuffer_state framebuffer; struct pipe_index_buffer index_buffer; unsigned cb_target_mask; @@ -185,9 +185,9 @@ struct r600_pipe_context { struct r600_pipe_shader *ps_shader; struct r600_pipe_shader *vs_shader; struct r600_pipe_state vs_const_buffer; - struct r600_pipe_state vs_const_buffer_resource[R600_MAX_CONST_BUFFERS]; + struct r600_pipe_resource_state vs_const_buffer_resource[R600_MAX_CONST_BUFFERS]; struct r600_pipe_state ps_const_buffer; - struct r600_pipe_state ps_const_buffer_resource[R600_MAX_CONST_BUFFERS]; + struct r600_pipe_resource_state ps_const_buffer_resource[R600_MAX_CONST_BUFFERS]; struct r600_pipe_rasterizer *rasterizer; struct r600_pipe_state vgt; struct r600_pipe_state spi; @@ -224,10 +224,8 @@ void evergreen_fetch_shader(struct pipe_context *ctx, struct r600_vertex_element void *evergreen_create_db_flush_dsa(struct r600_pipe_context *rctx); void evergreen_polygon_offset_update(struct r600_pipe_context *rctx); void evergreen_pipe_init_buffer_resource(struct r600_pipe_context *rctx, - struct r600_pipe_state *rstate, - struct r600_resource *rbuffer, - unsigned offset, unsigned stride); -void evergreen_pipe_mod_buffer_resource(struct r600_pipe_state *rstate, + struct r600_pipe_resource_state *rstate); +void evergreen_pipe_mod_buffer_resource(struct r600_pipe_resource_state *rstate, struct r600_resource *rbuffer, unsigned offset, unsigned stride); @@ -268,10 +266,8 @@ void r600_fetch_shader(struct pipe_context *ctx, struct r600_vertex_element *ve) void *r600_create_db_flush_dsa(struct r600_pipe_context *rctx); void r600_polygon_offset_update(struct r600_pipe_context *rctx); void r600_pipe_init_buffer_resource(struct r600_pipe_context *rctx, - struct r600_pipe_state *rstate, - struct r600_resource *rbuffer, - unsigned offset, unsigned stride); -void r600_pipe_mod_buffer_resource(struct r600_pipe_state *rstate, + struct r600_pipe_resource_state *rstate); +void r600_pipe_mod_buffer_resource(struct r600_pipe_resource_state *rstate, struct r600_resource *rbuffer, unsigned offset, unsigned stride); diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index e9011de9fe0..4e62857343e 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gallium/drivers/r600/r600_state.c @@ -409,7 +409,7 @@ static struct pipe_sampler_view *r600_create_sampler_view(struct pipe_context *c { struct r600_pipe_context *rctx = (struct r600_pipe_context *)ctx; struct r600_pipe_sampler_view *resource = CALLOC_STRUCT(r600_pipe_sampler_view); - struct r600_pipe_state *rstate; + struct r600_pipe_resource_state *rstate; const struct util_format_description *desc; struct r600_resource_texture *tmp; struct r600_resource *rbuffer; @@ -472,33 +472,29 @@ static struct pipe_sampler_view *r600_create_sampler_view(struct pipe_context *c depth = texture->array_size; } - r600_pipe_state_add_reg(rstate, R_038000_RESOURCE0_WORD0, - S_038000_DIM(r600_tex_dim(texture->target)) | - S_038000_TILE_MODE(array_mode) | - S_038000_TILE_TYPE(tile_type) | - S_038000_PITCH((pitch / 8) - 1) | - S_038000_TEX_WIDTH(texture->width0 - 1), 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_038004_RESOURCE0_WORD1, - S_038004_TEX_HEIGHT(height - 1) | - S_038004_TEX_DEPTH(depth - 1) | - S_038004_DATA_FORMAT(format), 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_038008_RESOURCE0_WORD2, - (tmp->offset[0] + r600_bo_offset(bo[0])) >> 8, 0xFFFFFFFF, bo[0]); - r600_pipe_state_add_reg(rstate, R_03800C_RESOURCE0_WORD3, - (tmp->offset[1] + r600_bo_offset(bo[1])) >> 8, 0xFFFFFFFF, bo[1]); - r600_pipe_state_add_reg(rstate, R_038010_RESOURCE0_WORD4, - word4 | - S_038010_SRF_MODE_ALL(V_038010_SRF_MODE_ZERO_CLAMP_MINUS_ONE) | - S_038010_REQUEST_SIZE(1) | - S_038010_ENDIAN_SWAP(endian) | - S_038010_BASE_LEVEL(state->u.tex.first_level), 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_038014_RESOURCE0_WORD5, - S_038014_LAST_LEVEL(state->u.tex.last_level) | - S_038014_BASE_ARRAY(state->u.tex.first_layer) | - S_038014_LAST_ARRAY(state->u.tex.last_layer), 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_038018_RESOURCE0_WORD6, - S_038018_TYPE(V_038010_SQ_TEX_VTX_VALID_TEXTURE) | - S_038018_MAX_ANISO(4 /* max 16 samples */), 0xFFFFFFFF, NULL); + rstate->bo[0] = bo[0]; + rstate->bo[1] = bo[1]; + + rstate->val[0] = (S_038000_DIM(r600_tex_dim(texture->target)) | + S_038000_TILE_MODE(array_mode) | + S_038000_TILE_TYPE(tile_type) | + S_038000_PITCH((pitch / 8) - 1) | + S_038000_TEX_WIDTH(texture->width0 - 1)); + rstate->val[1] = (S_038004_TEX_HEIGHT(height - 1) | + S_038004_TEX_DEPTH(depth - 1) | + S_038004_DATA_FORMAT(format)); + rstate->val[2] = (tmp->offset[0] + r600_bo_offset(bo[0])) >> 8; + rstate->val[3] = (tmp->offset[1] + r600_bo_offset(bo[1])) >> 8; + rstate->val[4] = (word4 | + S_038010_SRF_MODE_ALL(V_038010_SRF_MODE_ZERO_CLAMP_MINUS_ONE) | + S_038010_REQUEST_SIZE(1) | + S_038010_ENDIAN_SWAP(endian) | + S_038010_BASE_LEVEL(state->u.tex.first_level)); + rstate->val[5] = (S_038014_LAST_LEVEL(state->u.tex.last_level) | + S_038014_BASE_ARRAY(state->u.tex.first_layer) | + S_038014_LAST_ARRAY(state->u.tex.last_layer)); + rstate->val[6] = (S_038018_TYPE(V_038010_SQ_TEX_VTX_VALID_TEXTURE) | + S_038018_MAX_ANISO(4 /* max 16 samples */)); return &resource->base; } @@ -1481,37 +1477,27 @@ void *r600_create_db_flush_dsa(struct r600_pipe_context *rctx) } void r600_pipe_init_buffer_resource(struct r600_pipe_context *rctx, - struct r600_pipe_state *rstate, - struct r600_resource *rbuffer, - unsigned offset, unsigned stride) + struct r600_pipe_resource_state *rstate) { rstate->id = R600_PIPE_STATE_RESOURCE; - rstate->nregs = 0; - r600_pipe_state_add_reg(rstate, R_038000_RESOURCE0_WORD0, - offset, 0xFFFFFFFF, rbuffer->bo); - r600_pipe_state_add_reg(rstate, R_038004_RESOURCE0_WORD1, - rbuffer->bo_size - offset - 1, 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_038008_RESOURCE0_WORD2, - S_038008_ENDIAN_SWAP(r600_endian_swap(32)) | - S_038008_STRIDE(stride), 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_03800C_RESOURCE0_WORD3, - 0x00000000, 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_038010_RESOURCE0_WORD4, - 0x00000000, 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_038014_RESOURCE0_WORD5, - 0x00000000, 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_038018_RESOURCE0_WORD6, - 0xC0000000, 0xFFFFFFFF, NULL); + + rstate->bo[0] = NULL; + rstate->val[0] = 0; + rstate->val[1] = 0; + rstate->val[2] = 0; + rstate->val[3] = 0; + rstate->val[4] = 0; + rstate->val[5] = 0; + rstate->val[6] = 0xc0000000; } -void r600_pipe_mod_buffer_resource(struct r600_pipe_state *rstate, +void r600_pipe_mod_buffer_resource(struct r600_pipe_resource_state *rstate, struct r600_resource *rbuffer, unsigned offset, unsigned stride) { - rstate->nregs = 0; - r600_pipe_state_mod_reg_bo(rstate, offset, rbuffer->bo); - r600_pipe_state_mod_reg(rstate, rbuffer->bo_size - offset - 1); - r600_pipe_state_mod_reg(rstate, S_038008_ENDIAN_SWAP(r600_endian_swap(32)) | - S_038008_STRIDE(stride)); - rstate->nregs = 7; + rstate->val[0] = offset; + rstate->bo[0] = rbuffer->bo; + rstate->val[1] = rbuffer->bo_size - offset - 1; + rstate->val[2] = S_038008_ENDIAN_SWAP(r600_endian_swap(32)) | + S_038008_STRIDE(stride); } diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c index 48ab15f9323..0928d964dc2 100644 --- a/src/gallium/drivers/r600/r600_state_common.c +++ b/src/gallium/drivers/r600/r600_state_common.c @@ -388,7 +388,7 @@ void r600_set_constant_buffer(struct pipe_context *ctx, uint shader, uint index, { struct r600_pipe_context *rctx = (struct r600_pipe_context *)ctx; struct r600_resource_buffer *rbuffer = r600_buffer(buffer); - struct r600_pipe_state *rstate; + struct r600_pipe_resource_state *rstate; uint32_t offset; /* Note that the state tracker can unbind constant buffers by @@ -416,9 +416,9 @@ void r600_set_constant_buffer(struct pipe_context *ctx, uint shader, uint index, rstate = &rctx->vs_const_buffer_resource[index]; if (!rstate->id) { if (rctx->family >= CHIP_CEDAR) { - evergreen_pipe_init_buffer_resource(rctx, rstate, &rbuffer->r, offset, 16); + evergreen_pipe_init_buffer_resource(rctx, rstate); } else { - r600_pipe_init_buffer_resource(rctx, rstate, &rbuffer->r, offset, 16); + r600_pipe_init_buffer_resource(rctx, rstate); } } @@ -444,9 +444,9 @@ void r600_set_constant_buffer(struct pipe_context *ctx, uint shader, uint index, rstate = &rctx->ps_const_buffer_resource[index]; if (!rstate->id) { if (rctx->family >= CHIP_CEDAR) { - evergreen_pipe_init_buffer_resource(rctx, rstate, &rbuffer->r, offset, 16); + evergreen_pipe_init_buffer_resource(rctx, rstate); } else { - r600_pipe_init_buffer_resource(rctx, rstate, &rbuffer->r, offset, 16); + r600_pipe_init_buffer_resource(rctx, rstate); } } if (rctx->family >= CHIP_CEDAR) { @@ -468,7 +468,7 @@ void r600_set_constant_buffer(struct pipe_context *ctx, uint shader, uint index, static void r600_vertex_buffer_update(struct r600_pipe_context *rctx) { - struct r600_pipe_state *rstate; + struct r600_pipe_resource_state *rstate; struct r600_resource *rbuffer; struct pipe_vertex_buffer *vertex_buffer; unsigned i, count, offset; @@ -503,9 +503,9 @@ static void r600_vertex_buffer_update(struct r600_pipe_context *rctx) if (!rstate->id) { if (rctx->family >= CHIP_CEDAR) { - evergreen_pipe_init_buffer_resource(rctx, rstate, rbuffer, offset, vertex_buffer->stride); + evergreen_pipe_init_buffer_resource(rctx, rstate); } else { - r600_pipe_init_buffer_resource(rctx, rstate, rbuffer, offset, vertex_buffer->stride); + r600_pipe_init_buffer_resource(rctx, rstate); } } diff --git a/src/gallium/winsys/r600/drm/evergreen_hw_context.c b/src/gallium/winsys/r600/drm/evergreen_hw_context.c index aa789e69d19..701d4e9401f 100644 --- a/src/gallium/winsys/r600/drm/evergreen_hw_context.c +++ b/src/gallium/winsys/r600/drm/evergreen_hw_context.c @@ -1023,21 +1023,21 @@ out_err: return r; } -void evergreen_context_pipe_state_set_ps_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned rid) +void evergreen_context_pipe_state_set_ps_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid) { unsigned offset = R_030000_SQ_TEX_RESOURCE_WORD0_0 + 0x20 * rid; r600_context_pipe_state_set_resource(ctx, state, offset); } -void evergreen_context_pipe_state_set_vs_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned rid) +void evergreen_context_pipe_state_set_vs_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid) { unsigned offset = R_030000_SQ_TEX_RESOURCE_WORD0_0 + 0x1600 + 0x20 * rid; r600_context_pipe_state_set_resource(ctx, state, offset); } -void evergreen_context_pipe_state_set_fs_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned rid) +void evergreen_context_pipe_state_set_fs_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid) { unsigned offset = R_030000_SQ_TEX_RESOURCE_WORD0_0 + 0x7C00 + 0x20 * rid; diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 1be485400fc..2039e8afdab 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -976,13 +976,14 @@ void r600_context_pipe_state_set(struct r600_context *ctx, struct r600_pipe_stat } } -void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned offset) +void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned offset) { struct r600_range *range; struct r600_block *block; int i; int dirty; int num_regs = ctx->radeon->chip_class >= EVERGREEN ? 8 : 7; + boolean is_vertex; range = &ctx->range[CTX_RANGE_ID(offset)]; block = range->blocks[CTX_BLOCK_ID(offset)]; @@ -997,12 +998,13 @@ void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_ return; } + is_vertex = ((state->val[num_regs-1] & 0xc0000000) == 0xc0000000); dirty = block->status & R600_BLOCK_STATUS_DIRTY; for (i = 0; i < num_regs; i++) { - if (dirty || (block->reg[i] != state->regs[i].value)) { + if (dirty || (block->reg[i] != state->val[i])) { dirty |= R600_BLOCK_STATUS_DIRTY; - block->reg[i] = state->regs[i].value; + block->reg[i] = state->val[i]; } } @@ -1011,61 +1013,61 @@ void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_ dirty |= R600_BLOCK_STATUS_DIRTY; if (!dirty) { - if (state->regs[0].bo) { - if ((block->reloc[1].bo->bo->handle != state->regs[0].bo->bo->handle) || - (block->reloc[2].bo->bo->handle != state->regs[0].bo->bo->handle)) + if (is_vertex) { + if ((block->reloc[1].bo->bo->handle != state->bo[0]->bo->handle) || + (block->reloc[2].bo->bo->handle != state->bo[0]->bo->handle)) dirty |= R600_BLOCK_STATUS_DIRTY; } else { - if ((block->reloc[1].bo->bo->handle != state->regs[2].bo->bo->handle) || - (block->reloc[2].bo->bo->handle != state->regs[3].bo->bo->handle)) + if ((block->reloc[1].bo->bo->handle != state->bo[0]->bo->handle) || + (block->reloc[2].bo->bo->handle != state->bo[1]->bo->handle)) dirty |= R600_BLOCK_STATUS_DIRTY; } } if (!dirty) { - if (state->regs[0].bo) - state->regs[0].bo->fence = ctx->radeon->fence; + if (is_vertex) + state->bo[0]->fence = ctx->radeon->fence; else { - state->regs[2].bo->fence = ctx->radeon->fence; - state->regs[3].bo->fence = ctx->radeon->fence; + state->bo[0]->fence = ctx->radeon->fence; + state->bo[1]->fence = ctx->radeon->fence; } } else { r600_bo_reference(ctx->radeon, &block->reloc[1].bo, NULL); r600_bo_reference(ctx->radeon, &block->reloc[2].bo, NULL); - if (state->regs[0].bo) { + if (is_vertex) { /* VERTEX RESOURCE, we preted there is 2 bo to relocate so * we have single case btw VERTEX & TEXTURE resource */ - r600_bo_reference(ctx->radeon, &block->reloc[1].bo, state->regs[0].bo); - r600_bo_reference(ctx->radeon, &block->reloc[2].bo, state->regs[0].bo); - state->regs[0].bo->fence = ctx->radeon->fence; + r600_bo_reference(ctx->radeon, &block->reloc[1].bo, state->bo[0]); + r600_bo_reference(ctx->radeon, &block->reloc[2].bo, state->bo[0]); + state->bo[0]->fence = ctx->radeon->fence; } else { /* TEXTURE RESOURCE */ - r600_bo_reference(ctx->radeon, &block->reloc[1].bo, state->regs[2].bo); - r600_bo_reference(ctx->radeon, &block->reloc[2].bo, state->regs[3].bo); - state->regs[2].bo->fence = ctx->radeon->fence; - state->regs[3].bo->fence = ctx->radeon->fence; - state->regs[2].bo->bo->binding |= BO_BOUND_TEXTURE; + r600_bo_reference(ctx->radeon, &block->reloc[1].bo, state->bo[0]); + r600_bo_reference(ctx->radeon, &block->reloc[2].bo, state->bo[1]); + state->bo[0]->fence = ctx->radeon->fence; + state->bo[1]->fence = ctx->radeon->fence; + state->bo[0]->bo->binding |= BO_BOUND_TEXTURE; } } if (dirty) r600_context_dirty_block(ctx, block, dirty, num_regs - 1); } -void r600_context_pipe_state_set_ps_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned rid) +void r600_context_pipe_state_set_ps_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid) { unsigned offset = R_038000_SQ_TEX_RESOURCE_WORD0_0 + 0x1C * rid; r600_context_pipe_state_set_resource(ctx, state, offset); } -void r600_context_pipe_state_set_vs_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned rid) +void r600_context_pipe_state_set_vs_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid) { unsigned offset = R_038000_SQ_TEX_RESOURCE_WORD0_0 + 0x1180 + 0x1C * rid; r600_context_pipe_state_set_resource(ctx, state, offset); } -void r600_context_pipe_state_set_fs_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned rid) +void r600_context_pipe_state_set_fs_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid) { unsigned offset = R_038000_SQ_TEX_RESOURCE_WORD0_0 + 0x2300 + 0x1C * rid; diff --git a/src/gallium/winsys/r600/drm/r600_priv.h b/src/gallium/winsys/r600/drm/r600_priv.h index 9be5c358f85..1790f770897 100644 --- a/src/gallium/winsys/r600/drm/r600_priv.h +++ b/src/gallium/winsys/r600/drm/r600_priv.h @@ -158,7 +158,7 @@ void r600_context_bo_flush(struct r600_context *ctx, unsigned flush_flags, struct r600_bo *r600_context_reg_bo(struct r600_context *ctx, unsigned offset); int r600_context_add_block(struct r600_context *ctx, const struct r600_reg *reg, unsigned nreg, unsigned opcode, unsigned offset_base); -void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_pipe_state *state, unsigned offset); +void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned offset); void r600_context_block_emit_dirty(struct r600_context *ctx, struct r600_block *block); void r600_context_dirty_block(struct r600_context *ctx, struct r600_block *block, int dirty, int index); From be7af43f5a725b65701ab1e37a5c373d715be9b0 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 6 Jun 2011 14:33:23 +1000 Subject: [PATCH 044/145] r600g: split out block init This just splits this function up as pre-cursor to reusing the internals of it. Signed-off-by: Dave Airlie --- src/gallium/winsys/r600/drm/r600_hw_context.c | 101 ++++++++++-------- 1 file changed, 55 insertions(+), 46 deletions(-) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 2039e8afdab..41d32d85776 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -79,6 +79,60 @@ static void INLINE r600_context_fence_wraparound(struct r600_context *ctx, unsig } } +static void r600_init_block(struct r600_context *ctx, + struct r600_block *block, + const struct r600_reg *reg, int index, int nreg, + unsigned opcode, unsigned offset_base) +{ + int i = index; + int j, n = nreg; + + /* initialize block */ + block->status |= R600_BLOCK_STATUS_DIRTY; /* dirty all blocks at start */ + block->start_offset = reg[i].offset; + block->pm4[block->pm4_ndwords++] = PKT3(opcode, n, 0); + block->pm4[block->pm4_ndwords++] = (block->start_offset - offset_base) >> 2; + block->reg = &block->pm4[block->pm4_ndwords]; + block->pm4_ndwords += n; + block->nreg = n; + block->nreg_dirty = n; + block->flags = 0; + LIST_INITHEAD(&block->list); + + for (j = 0; j < n; j++) { + if (reg[i+j].flags & REG_FLAG_DIRTY_ALWAYS) { + block->flags |= REG_FLAG_DIRTY_ALWAYS; + } + if (reg[i+j].flags & REG_FLAG_NEED_BO) { + block->nbo++; + assert(block->nbo < R600_BLOCK_MAX_BO); + block->pm4_bo_index[j] = block->nbo; + block->pm4[block->pm4_ndwords++] = PKT3(PKT3_NOP, 0, 0); + block->pm4[block->pm4_ndwords++] = 0x00000000; + if (reg[i+j].flags & REG_FLAG_RV6XX_SBU) { + block->reloc[block->nbo].flush_flags = 0; + block->reloc[block->nbo].flush_mask = 0; + } else { + block->reloc[block->nbo].flush_flags = reg[i+j].flush_flags; + block->reloc[block->nbo].flush_mask = reg[i+j].flush_mask; + } + block->reloc[block->nbo].bo_pm4_index = block->pm4_ndwords - 1; + } + if ((ctx->radeon->family > CHIP_R600) && + (ctx->radeon->family < CHIP_RV770) && reg[i+j].flags & REG_FLAG_RV6XX_SBU) { + block->pm4[block->pm4_ndwords++] = PKT3(PKT3_SURFACE_BASE_UPDATE, 0, 0); + block->pm4[block->pm4_ndwords++] = reg[i+j].flush_flags; + } + } + for (j = 0; j < n; j++) { + if (reg[i+j].flush_flags) { + block->pm4_flush_ndwords += 7; + } + } + /* check that we stay in limit */ + assert(block->pm4_ndwords < R600_BLOCK_MAX_REG); +} + int r600_context_add_block(struct r600_context *ctx, const struct r600_reg *reg, unsigned nreg, unsigned opcode, unsigned offset_base) { @@ -87,8 +141,6 @@ int r600_context_add_block(struct r600_context *ctx, const struct r600_reg *reg, int offset; for (unsigned i = 0, n = 0; i < nreg; i += n) { - u32 j; - /* ignore new block balise */ if (reg[i].offset == GROUP_FORCE_NEW_BLOCK) { n = 1; @@ -131,50 +183,7 @@ int r600_context_add_block(struct r600_context *ctx, const struct r600_reg *reg, range->blocks[CTX_BLOCK_ID(reg[i + j].offset)] = block; } - /* initialize block */ - block->status |= R600_BLOCK_STATUS_DIRTY; /* dirty all blocks at start */ - block->start_offset = reg[i].offset; - block->pm4[block->pm4_ndwords++] = PKT3(opcode, n, 0); - block->pm4[block->pm4_ndwords++] = (block->start_offset - offset_base) >> 2; - block->reg = &block->pm4[block->pm4_ndwords]; - block->pm4_ndwords += n; - block->nreg = n; - block->nreg_dirty = n; - block->flags = 0; - LIST_INITHEAD(&block->list); - - for (j = 0; j < n; j++) { - if (reg[i+j].flags & REG_FLAG_DIRTY_ALWAYS) { - block->flags |= REG_FLAG_DIRTY_ALWAYS; - } - if (reg[i+j].flags & REG_FLAG_NEED_BO) { - block->nbo++; - assert(block->nbo < R600_BLOCK_MAX_BO); - block->pm4_bo_index[j] = block->nbo; - block->pm4[block->pm4_ndwords++] = PKT3(PKT3_NOP, 0, 0); - block->pm4[block->pm4_ndwords++] = 0x00000000; - if (reg[i+j].flags & REG_FLAG_RV6XX_SBU) { - block->reloc[block->nbo].flush_flags = 0; - block->reloc[block->nbo].flush_mask = 0; - } else { - block->reloc[block->nbo].flush_flags = reg[i+j].flush_flags; - block->reloc[block->nbo].flush_mask = reg[i+j].flush_mask; - } - block->reloc[block->nbo].bo_pm4_index = block->pm4_ndwords - 1; - } - if ((ctx->radeon->family > CHIP_R600) && - (ctx->radeon->family < CHIP_RV770) && reg[i+j].flags & REG_FLAG_RV6XX_SBU) { - block->pm4[block->pm4_ndwords++] = PKT3(PKT3_SURFACE_BASE_UPDATE, 0, 0); - block->pm4[block->pm4_ndwords++] = reg[i+j].flush_flags; - } - } - for (j = 0; j < n; j++) { - if (reg[i+j].flush_flags) { - block->pm4_flush_ndwords += 7; - } - } - /* check that we stay in limit */ - assert(block->pm4_ndwords < R600_BLOCK_MAX_REG); + r600_init_block(ctx, block, reg, i, n, opcode, offset_base); } return 0; } From f356bb74de7ab9ad1085a0fc2f16c1dae4ff171e Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 6 Jun 2011 18:00:36 +1000 Subject: [PATCH 045/145] r600g/winsys: overhaul resource range/blocks. There isn't much point taking the overhead of range/block lookups on resources we aren't going to be getting resource registers at wierd offsets. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600.h | 4 + .../winsys/r600/drm/evergreen_hw_context.c | 50 ++++---- src/gallium/winsys/r600/drm/r600_hw_context.c | 118 ++++++++++++------ src/gallium/winsys/r600/drm/r600_priv.h | 3 +- 4 files changed, 110 insertions(+), 65 deletions(-) diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h index 5d6240aef24..cc70600610e 100644 --- a/src/gallium/drivers/r600/r600.h +++ b/src/gallium/drivers/r600/r600.h @@ -267,6 +267,10 @@ struct r600_context { unsigned num_dest_buffers; unsigned flags; boolean predicate_drawing; + struct r600_range ps_resources; + struct r600_range vs_resources; + struct r600_range fs_resources; + int num_ps_resources, num_vs_resources, num_fs_resources; }; struct r600_draw { diff --git a/src/gallium/winsys/r600/drm/evergreen_hw_context.c b/src/gallium/winsys/r600/drm/evergreen_hw_context.c index 701d4e9401f..7072461dc59 100644 --- a/src/gallium/winsys/r600/drm/evergreen_hw_context.c +++ b/src/gallium/winsys/r600/drm/evergreen_hw_context.c @@ -817,7 +817,7 @@ static const struct r600_reg cayman_context_reg_list[] = { }; /* SHADER RESOURCE R600/R700 */ -static int evergreen_state_resource_init(struct r600_context *ctx, u32 offset) +static int r600_resource_range_init(struct r600_context *ctx, struct r600_range *range, unsigned offset, unsigned nblocks, unsigned stride) { struct r600_reg r600_shader_resource[] = { {R_030000_RESOURCE0_WORD0, 0, 0, 0}, @@ -831,10 +831,7 @@ static int evergreen_state_resource_init(struct r600_context *ctx, u32 offset) }; unsigned nreg = Elements(r600_shader_resource); - for (int i = 0; i < nreg; i++) { - r600_shader_resource[i].offset += offset; - } - return r600_context_add_block(ctx, r600_shader_resource, nreg, PKT3_SET_RESOURCE, EVERGREEN_RESOURCE_OFFSET); + return r600_resource_init(ctx, range, offset, nblocks, stride, r600_shader_resource, nreg, EVERGREEN_RESOURCE_OFFSET); } /* SHADER SAMPLER R600/R700 */ @@ -960,24 +957,19 @@ int evergreen_context_init(struct r600_context *ctx, struct radeon *radeon) if (r) goto out_err; } - /* PS RESOURCE */ - for (int j = 0, offset = 0; j < 176; j++, offset += 0x20) { - r = evergreen_state_resource_init(ctx, offset); - if (r) - goto out_err; - } - /* VS RESOURCE */ - for (int j = 0, offset = 0x1600; j < 160; j++, offset += 0x20) { - r = evergreen_state_resource_init(ctx, offset); - if (r) - goto out_err; - } - /* FS RESOURCE */ - for (int j = 0, offset = 0x7C00; j < 16; j++, offset += 0x20) { - r = evergreen_state_resource_init(ctx, offset); - if (r) - goto out_err; - } + + ctx->num_ps_resources = 176; + ctx->num_vs_resources = 160; + ctx->num_fs_resources = 16; + r = r600_resource_range_init(ctx, &ctx->ps_resources, 0, 176, 0x20); + if (r) + goto out_err; + r = r600_resource_range_init(ctx, &ctx->vs_resources, 0x1600, 160, 0x20); + if (r) + goto out_err; + r = r600_resource_range_init(ctx, &ctx->fs_resources, 0x7C00, 16, 0x20); + if (r) + goto out_err; /* PS loop const */ evergreen_loop_const_init(ctx, 0); @@ -1025,23 +1017,23 @@ out_err: void evergreen_context_pipe_state_set_ps_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid) { - unsigned offset = R_030000_SQ_TEX_RESOURCE_WORD0_0 + 0x20 * rid; + struct r600_block *block = ctx->ps_resources.blocks[rid]; - r600_context_pipe_state_set_resource(ctx, state, offset); + r600_context_pipe_state_set_resource(ctx, state, block); } void evergreen_context_pipe_state_set_vs_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid) { - unsigned offset = R_030000_SQ_TEX_RESOURCE_WORD0_0 + 0x1600 + 0x20 * rid; + struct r600_block *block = ctx->vs_resources.blocks[rid]; - r600_context_pipe_state_set_resource(ctx, state, offset); + r600_context_pipe_state_set_resource(ctx, state, block); } void evergreen_context_pipe_state_set_fs_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid) { - unsigned offset = R_030000_SQ_TEX_RESOURCE_WORD0_0 + 0x7C00 + 0x20 * rid; + struct r600_block *block = ctx->fs_resources.blocks[rid]; - r600_context_pipe_state_set_resource(ctx, state, offset); + r600_context_pipe_state_set_resource(ctx, state, block); } static inline void evergreen_context_pipe_state_set_sampler(struct r600_context *ctx, struct r600_pipe_state *state, unsigned offset) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 41d32d85776..1fd6d344798 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -561,7 +561,31 @@ static const struct r600_reg r600_context_reg_list[] = { }; /* SHADER RESOURCE R600/R700 */ -static int r600_state_resource_init(struct r600_context *ctx, u32 offset) +int r600_resource_init(struct r600_context *ctx, struct r600_range *range, unsigned offset, unsigned nblocks, unsigned stride, struct r600_reg *reg, int nreg, unsigned offset_base) +{ + int i; + struct r600_block *block; + range->blocks = calloc(nblocks, sizeof(struct r600_block *)); + if (range->blocks == NULL) + return -ENOMEM; + + reg[0].offset += offset; + for (i = 0; i < nblocks; i++) { + block = calloc(1, sizeof(struct r600_block)); + if (block == NULL) { + return -ENOMEM; + } + ctx->nblocks++; + range->blocks[i] = block; + r600_init_block(ctx, block, reg, 0, nreg, PKT3_SET_RESOURCE, offset_base); + + reg[0].offset += stride; + } + return 0; +} + + +static int r600_resource_range_init(struct r600_context *ctx, struct r600_range *range, unsigned offset, unsigned nblocks, unsigned stride) { struct r600_reg r600_shader_resource[] = { {R_038000_RESOURCE0_WORD0, 0, 0, 0}, @@ -574,10 +598,7 @@ static int r600_state_resource_init(struct r600_context *ctx, u32 offset) }; unsigned nreg = Elements(r600_shader_resource); - for (int i = 0; i < nreg; i++) { - r600_shader_resource[i].offset += offset; - } - return r600_context_add_block(ctx, r600_shader_resource, nreg, PKT3_SET_RESOURCE, R600_RESOURCE_OFFSET); + return r600_resource_init(ctx, range, offset, nblocks, stride, r600_shader_resource, nreg, R600_RESOURCE_OFFSET); } /* SHADER SAMPLER R600/R700 */ @@ -639,6 +660,22 @@ static void r600_context_clear_fenced_bo(struct r600_context *ctx) } } +static void r600_free_resource_range(struct r600_context *ctx, struct r600_range *range, int nblocks) +{ + struct r600_block *block; + int i; + for (i = 0; i < nblocks; i++) { + block = range->blocks[i]; + if (block) { + for (int k = 1; k <= block->nbo; k++) + r600_bo_reference(ctx->radeon, &block->reloc[k].bo, NULL); + free(block); + } + } + free(range->blocks); + +} + /* initialize */ void r600_context_fini(struct r600_context *ctx) { @@ -663,6 +700,9 @@ void r600_context_fini(struct r600_context *ctx) } free(ctx->range[i].blocks); } + r600_free_resource_range(ctx, &ctx->ps_resources, ctx->num_ps_resources); + r600_free_resource_range(ctx, &ctx->vs_resources, ctx->num_vs_resources); + r600_free_resource_range(ctx, &ctx->fs_resources, ctx->num_fs_resources); free(ctx->range); free(ctx->blocks); free(ctx->reloc); @@ -673,13 +713,26 @@ void r600_context_fini(struct r600_context *ctx) memset(ctx, 0, sizeof(struct r600_context)); } +static void r600_add_resource_block(struct r600_context *ctx, struct r600_range *range, int num_blocks, int *index) +{ + int c = *index; + for (int j = 0; j < num_blocks; j++) { + if (!range->blocks[j]) + continue; + + ctx->blocks[c++] = range->blocks[j]; + } + *index = c; +} + int r600_setup_block_table(struct r600_context *ctx) { /* setup block table */ + int c = 0; ctx->blocks = calloc(ctx->nblocks, sizeof(void*)); if (!ctx->blocks) return -ENOMEM; - for (int i = 0, c = 0; i < NUM_RANGES; i++) { + for (int i = 0; i < NUM_RANGES; i++) { if (!ctx->range[i].blocks) continue; for (int j = 0, add; j < (1 << HASH_SHIFT); j++) { @@ -700,6 +753,10 @@ int r600_setup_block_table(struct r600_context *ctx) } } } + + r600_add_resource_block(ctx, &ctx->ps_resources, ctx->num_ps_resources, &c); + r600_add_resource_block(ctx, &ctx->vs_resources, ctx->num_vs_resources, &c); + r600_add_resource_block(ctx, &ctx->fs_resources, ctx->num_fs_resources, &c); return 0; } @@ -756,24 +813,19 @@ int r600_context_init(struct r600_context *ctx, struct radeon *radeon) if (r) goto out_err; } - /* PS RESOURCE */ - for (int j = 0, offset = 0; j < 160; j++, offset += 0x1C) { - r = r600_state_resource_init(ctx, offset); - if (r) - goto out_err; - } - /* VS RESOURCE */ - for (int j = 0, offset = 0x1180; j < 160; j++, offset += 0x1C) { - r = r600_state_resource_init(ctx, offset); - if (r) - goto out_err; - } - /* FS RESOURCE */ - for (int j = 0, offset = 0x2300; j < 16; j++, offset += 0x1C) { - r = r600_state_resource_init(ctx, offset); - if (r) - goto out_err; - } + + ctx->num_ps_resources = 160; + ctx->num_vs_resources = 160; + ctx->num_fs_resources = 16; + r = r600_resource_range_init(ctx, &ctx->ps_resources, 0, 160, 0x1c); + if (r) + goto out_err; + r = r600_resource_range_init(ctx, &ctx->vs_resources, 0x1180, 160, 0x1c); + if (r) + goto out_err; + r = r600_resource_range_init(ctx, &ctx->fs_resources, 0x2300, 16, 0x1c); + if (r) + goto out_err; /* PS loop const */ r600_loop_const_init(ctx, 0); @@ -985,17 +1037,13 @@ void r600_context_pipe_state_set(struct r600_context *ctx, struct r600_pipe_stat } } -void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned offset) +void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, struct r600_block *block) { - struct r600_range *range; - struct r600_block *block; int i; int dirty; int num_regs = ctx->radeon->chip_class >= EVERGREEN ? 8 : 7; boolean is_vertex; - range = &ctx->range[CTX_RANGE_ID(offset)]; - block = range->blocks[CTX_BLOCK_ID(offset)]; if (state == NULL) { block->status &= ~(R600_BLOCK_STATUS_ENABLED | R600_BLOCK_STATUS_DIRTY); if (block->reloc[1].bo) @@ -1064,23 +1112,23 @@ void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_ void r600_context_pipe_state_set_ps_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid) { - unsigned offset = R_038000_SQ_TEX_RESOURCE_WORD0_0 + 0x1C * rid; + struct r600_block *block = ctx->ps_resources.blocks[rid]; - r600_context_pipe_state_set_resource(ctx, state, offset); + r600_context_pipe_state_set_resource(ctx, state, block); } void r600_context_pipe_state_set_vs_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid) { - unsigned offset = R_038000_SQ_TEX_RESOURCE_WORD0_0 + 0x1180 + 0x1C * rid; + struct r600_block *block = ctx->vs_resources.blocks[rid]; - r600_context_pipe_state_set_resource(ctx, state, offset); + r600_context_pipe_state_set_resource(ctx, state, block); } void r600_context_pipe_state_set_fs_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid) { - unsigned offset = R_038000_SQ_TEX_RESOURCE_WORD0_0 + 0x2300 + 0x1C * rid; + struct r600_block *block = ctx->fs_resources.blocks[rid]; - r600_context_pipe_state_set_resource(ctx, state, offset); + r600_context_pipe_state_set_resource(ctx, state, block); } static inline void r600_context_pipe_state_set_sampler(struct r600_context *ctx, struct r600_pipe_state *state, unsigned offset) diff --git a/src/gallium/winsys/r600/drm/r600_priv.h b/src/gallium/winsys/r600/drm/r600_priv.h index 1790f770897..3e0fd6d7a71 100644 --- a/src/gallium/winsys/r600/drm/r600_priv.h +++ b/src/gallium/winsys/r600/drm/r600_priv.h @@ -158,7 +158,7 @@ void r600_context_bo_flush(struct r600_context *ctx, unsigned flush_flags, struct r600_bo *r600_context_reg_bo(struct r600_context *ctx, unsigned offset); int r600_context_add_block(struct r600_context *ctx, const struct r600_reg *reg, unsigned nreg, unsigned opcode, unsigned offset_base); -void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned offset); +void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, struct r600_block *block); void r600_context_block_emit_dirty(struct r600_context *ctx, struct r600_block *block); void r600_context_dirty_block(struct r600_context *ctx, struct r600_block *block, int dirty, int index); @@ -167,6 +167,7 @@ void r600_context_reg(struct r600_context *ctx, unsigned offset, unsigned value, unsigned mask); void r600_init_cs(struct r600_context *ctx); +int r600_resource_init(struct r600_context *ctx, struct r600_range *range, unsigned offset, unsigned nblocks, unsigned stride, struct r600_reg *reg, int nreg, unsigned offset_base); /* * r600_bo.c */ From 63184bc8b278ba82f5462798b323774c67a019e6 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 3 Jun 2011 09:59:12 +1000 Subject: [PATCH 046/145] r600g: use an enabled list to track enabled blocks. At the end of flushing we were scanning over 450 blocks with generally about 50 enabled. This reduces the scanning to just the list of enabled blocks. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600.h | 2 + .../winsys/r600/drm/evergreen_hw_context.c | 46 ++++++++++--------- src/gallium/winsys/r600/drm/r600_hw_context.c | 42 +++++++++++------ src/gallium/winsys/r600/drm/r600_priv.h | 1 + 4 files changed, 56 insertions(+), 35 deletions(-) diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h index cc70600610e..b1444bf94f4 100644 --- a/src/gallium/drivers/r600/r600.h +++ b/src/gallium/drivers/r600/r600.h @@ -188,6 +188,7 @@ struct r600_block_reloc { struct r600_block { struct list_head list; + struct list_head enable_list; unsigned status; unsigned flags; unsigned start_offset; @@ -251,6 +252,7 @@ struct r600_context { unsigned nblocks; struct r600_block **blocks; struct list_head dirty; + struct list_head enable_list; unsigned pm4_ndwords; unsigned pm4_cdwords; unsigned pm4_dirty_cdwords; diff --git a/src/gallium/winsys/r600/drm/evergreen_hw_context.c b/src/gallium/winsys/r600/drm/evergreen_hw_context.c index 7072461dc59..7a1be87f3dc 100644 --- a/src/gallium/winsys/r600/drm/evergreen_hw_context.c +++ b/src/gallium/winsys/r600/drm/evergreen_hw_context.c @@ -43,31 +43,31 @@ static const struct r600_reg evergreen_config_reg_list[] = { {R_008958_VGT_PRIMITIVE_TYPE, 0, 0, 0}, {R_008A14_PA_CL_ENHANCE, 0, 0, 0}, - {R_008C00_SQ_CONFIG, 0, 0, 0}, - {R_008C04_SQ_GPR_RESOURCE_MGMT_1, 0, 0, 0}, - {R_008C08_SQ_GPR_RESOURCE_MGMT_2, 0, 0, 0}, - {R_008C0C_SQ_THREAD_RESOURCE_MGMT, 0, 0, 0}, - {R_008C18_SQ_THREAD_RESOURCE_MGMT_1, 0, 0, 0}, - {R_008C1C_SQ_THREAD_RESOURCE_MGMT_2, 0, 0, 0}, - {R_008C20_SQ_STACK_RESOURCE_MGMT_1, 0, 0, 0}, - {R_008C24_SQ_STACK_RESOURCE_MGMT_2, 0, 0, 0}, - {R_008C28_SQ_STACK_RESOURCE_MGMT_3, 0, 0, 0}, - {R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, 0, 0, 0}, - {R_009100_SPI_CONFIG_CNTL, 0, 0, 0}, - {R_00913C_SPI_CONFIG_CNTL_1, 0, 0, 0}, + {R_008C00_SQ_CONFIG, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C04_SQ_GPR_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C08_SQ_GPR_RESOURCE_MGMT_2, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C0C_SQ_THREAD_RESOURCE_MGMT, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C18_SQ_THREAD_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C1C_SQ_THREAD_RESOURCE_MGMT_2, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C20_SQ_STACK_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C24_SQ_STACK_RESOURCE_MGMT_2, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C28_SQ_STACK_RESOURCE_MGMT_3, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_009100_SPI_CONFIG_CNTL, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_00913C_SPI_CONFIG_CNTL_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, }; static const struct r600_reg cayman_config_reg_list[] = { {R_008958_VGT_PRIMITIVE_TYPE, 0, 0, 0}, {R_008A14_PA_CL_ENHANCE, 0, 0, 0}, - {R_008C00_SQ_CONFIG, 0, 0, 0}, - {R_008C04_SQ_GPR_RESOURCE_MGMT_1, 0, 0, 0}, - {CM_R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, 0, 0, 0}, - {CM_R_008C14_SQ_GLOBAL_GPR_RESOURCE_MGMT_2, 0, 0, 0}, - {R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, 0, 0, 0}, - {R_009100_SPI_CONFIG_CNTL, 0, 0, 0}, - {R_00913C_SPI_CONFIG_CNTL_1, 0, 0, 0}, + {R_008C00_SQ_CONFIG, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C04_SQ_GPR_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {CM_R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {CM_R_008C14_SQ_GLOBAL_GPR_RESOURCE_MGMT_2, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_009100_SPI_CONFIG_CNTL, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_00913C_SPI_CONFIG_CNTL_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, }; static const struct r600_reg evergreen_ctl_const_list[] = { @@ -904,6 +904,10 @@ int evergreen_context_init(struct r600_context *ctx, struct radeon *radeon) ctx->radeon = radeon; LIST_INITHEAD(&ctx->query_list); + /* init dirty list */ + LIST_INITHEAD(&ctx->dirty); + LIST_INITHEAD(&ctx->enable_list); + ctx->range = calloc(NUM_RANGES, sizeof(struct r600_range)); if (!ctx->range) { r = -ENOMEM; @@ -1007,8 +1011,6 @@ int evergreen_context_init(struct r600_context *ctx, struct radeon *radeon) LIST_INITHEAD(&ctx->fenced_bo); - /* init dirty list */ - LIST_INITHEAD(&ctx->dirty); return 0; out_err: r600_context_fini(ctx); @@ -1048,6 +1050,7 @@ static inline void evergreen_context_pipe_state_set_sampler(struct r600_context if (state == NULL) { block->status &= ~(R600_BLOCK_STATUS_ENABLED | R600_BLOCK_STATUS_DIRTY); LIST_DELINIT(&block->list); + LIST_DELINIT(&block->enable_list); return; } dirty = block->status & R600_BLOCK_STATUS_DIRTY; @@ -1086,6 +1089,7 @@ static inline void evergreen_context_pipe_state_set_sampler_border(struct r600_c if (state == NULL) { block->status &= ~(R600_BLOCK_STATUS_ENABLED | R600_BLOCK_STATUS_DIRTY); LIST_DELINIT(&block->list); + LIST_DELINIT(&block->enable_list); return; } if (state->nregs <= 3) { diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 1fd6d344798..c5551b2674c 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -98,11 +98,17 @@ static void r600_init_block(struct r600_context *ctx, block->nreg_dirty = n; block->flags = 0; LIST_INITHEAD(&block->list); + LIST_INITHEAD(&block->enable_list); for (j = 0; j < n; j++) { if (reg[i+j].flags & REG_FLAG_DIRTY_ALWAYS) { block->flags |= REG_FLAG_DIRTY_ALWAYS; } + if (reg[i+j].flags & REG_FLAG_ENABLE_ALWAYS) { + block->status |= R600_BLOCK_STATUS_ENABLED; + LIST_ADDTAIL(&block->enable_list, &ctx->enable_list); + } + if (reg[i+j].flags & REG_FLAG_NEED_BO) { block->nbo++; assert(block->nbo < R600_BLOCK_MAX_BO); @@ -184,6 +190,7 @@ int r600_context_add_block(struct r600_context *ctx, const struct r600_reg *reg, } r600_init_block(ctx, block, reg, i, n, opcode, offset_base); + } return 0; } @@ -768,6 +775,10 @@ int r600_context_init(struct r600_context *ctx, struct radeon *radeon) ctx->radeon = radeon; LIST_INITHEAD(&ctx->query_list); + /* init dirty list */ + LIST_INITHEAD(&ctx->dirty); + LIST_INITHEAD(&ctx->enable_list); + ctx->range = calloc(NUM_RANGES, sizeof(struct r600_range)); if (!ctx->range) { r = -ENOMEM; @@ -861,9 +872,6 @@ int r600_context_init(struct r600_context *ctx, struct radeon *radeon) LIST_INITHEAD(&ctx->fenced_bo); - /* init dirty list */ - LIST_INITHEAD(&ctx->dirty); - ctx->max_db = 4; return 0; @@ -985,17 +993,20 @@ void r600_context_reg(struct r600_context *ctx, r600_context_dirty_block(ctx, block, dirty, id); } -void r600_context_dirty_block(struct r600_context *ctx, struct r600_block *block, +void r600_context_dirty_block(struct r600_context *ctx, + struct r600_block *block, int dirty, int index) { if ((index + 1) > block->nreg_dirty) block->nreg_dirty = index + 1; if ((dirty != (block->status & R600_BLOCK_STATUS_DIRTY)) || !(block->status & R600_BLOCK_STATUS_ENABLED)) { - - block->status |= R600_BLOCK_STATUS_ENABLED; block->status |= R600_BLOCK_STATUS_DIRTY; ctx->pm4_dirty_cdwords += block->pm4_ndwords + block->pm4_flush_ndwords; + if (!(block->status & R600_BLOCK_STATUS_ENABLED)) { + block->status |= R600_BLOCK_STATUS_ENABLED; + LIST_ADDTAIL(&block->enable_list, &ctx->enable_list); + } LIST_ADDTAIL(&block->list,&ctx->dirty); } } @@ -1052,6 +1063,7 @@ void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_ r600_bo_reference(ctx->radeon, &block->reloc[1].bo, NULL); r600_bo_reference(ctx->radeon , &block->reloc[2].bo, NULL); LIST_DELINIT(&block->list); + LIST_DELINIT(&block->enable_list); return; } @@ -1143,6 +1155,7 @@ static inline void r600_context_pipe_state_set_sampler(struct r600_context *ctx, if (state == NULL) { block->status &= ~(R600_BLOCK_STATUS_ENABLED | R600_BLOCK_STATUS_DIRTY); LIST_DELINIT(&block->list); + LIST_DELINIT(&block->enable_list); return; } dirty = block->status & R600_BLOCK_STATUS_DIRTY; @@ -1180,6 +1193,7 @@ static inline void r600_context_pipe_state_set_sampler_border(struct r600_contex if (state == NULL) { block->status &= ~(R600_BLOCK_STATUS_ENABLED | R600_BLOCK_STATUS_DIRTY); LIST_DELINIT(&block->list); + LIST_DELINIT(&block->enable_list); return; } if (state->nregs <= 3) { @@ -1407,6 +1421,7 @@ void r600_context_flush(struct r600_context *ctx) uint64_t chunk_array[2]; unsigned fence; int r; + struct r600_block *enable_block = NULL, *next_block; if (!ctx->pm4_cdwords) return; @@ -1480,15 +1495,14 @@ void r600_context_flush(struct r600_context *ctx) /* set all valid group as dirty so they get reemited on * next draw command */ - for (int i = 0; i < ctx->nblocks; i++) { - if (ctx->blocks[i]->status & R600_BLOCK_STATUS_ENABLED) { - if(!(ctx->blocks[i]->status & R600_BLOCK_STATUS_DIRTY)) { - LIST_ADDTAIL(&ctx->blocks[i]->list,&ctx->dirty); - } - ctx->pm4_dirty_cdwords += ctx->blocks[i]->pm4_ndwords + ctx->blocks[i]->pm4_flush_ndwords; - ctx->blocks[i]->status |= R600_BLOCK_STATUS_DIRTY; - ctx->blocks[i]->nreg_dirty = ctx->blocks[i]->nreg; + LIST_FOR_EACH_ENTRY(enable_block, &ctx->enable_list, enable_list) { + if(!(enable_block->status & R600_BLOCK_STATUS_DIRTY)) { + LIST_ADDTAIL(&enable_block->list,&ctx->dirty); } + ctx->pm4_dirty_cdwords += enable_block->pm4_ndwords + + enable_block->pm4_flush_ndwords; + enable_block->status |= R600_BLOCK_STATUS_DIRTY; + enable_block->nreg_dirty = enable_block->nreg; } } diff --git a/src/gallium/winsys/r600/drm/r600_priv.h b/src/gallium/winsys/r600/drm/r600_priv.h index 3e0fd6d7a71..d9cb52409cd 100644 --- a/src/gallium/winsys/r600/drm/r600_priv.h +++ b/src/gallium/winsys/r600/drm/r600_priv.h @@ -66,6 +66,7 @@ struct radeon { #define REG_FLAG_DIRTY_ALWAYS 2 #define REG_FLAG_RV6XX_SBU 4 #define REG_FLAG_NOT_R600 8 +#define REG_FLAG_ENABLE_ALWAYS 16 struct r600_reg { unsigned offset; From ca01fe007d3962386cb98aef762d5a2ff114e4aa Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 6 Jun 2011 20:03:13 +1000 Subject: [PATCH 047/145] r600g: optimise the draw emission packets for r600/eg This just reduces code size a bit for this chunk. Signed-off-by: Dave Airlie --- .../winsys/r600/drm/evergreen_hw_context.c | 33 ++++++++++-------- src/gallium/winsys/r600/drm/r600_hw_context.c | 34 +++++++++++-------- 2 files changed, 37 insertions(+), 30 deletions(-) diff --git a/src/gallium/winsys/r600/drm/evergreen_hw_context.c b/src/gallium/winsys/r600/drm/evergreen_hw_context.c index 7a1be87f3dc..3cf41c1f9f9 100644 --- a/src/gallium/winsys/r600/drm/evergreen_hw_context.c +++ b/src/gallium/winsys/r600/drm/evergreen_hw_context.c @@ -1143,6 +1143,7 @@ void evergreen_context_draw(struct r600_context *ctx, const struct r600_draw *dr unsigned ndwords = 7; struct r600_block *dirty_block = NULL; struct r600_block *next_block; + uint32_t *pm4; if (draw->indices) { ndwords = 11; @@ -1184,24 +1185,26 @@ void evergreen_context_draw(struct r600_context *ctx, const struct r600_draw *dr } /* draw packet */ - ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_INDEX_TYPE, 0, ctx->predicate_drawing); - ctx->pm4[ctx->pm4_cdwords++] = draw->vgt_index_type; - ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_NUM_INSTANCES, 0, ctx->predicate_drawing); - ctx->pm4[ctx->pm4_cdwords++] = draw->vgt_num_instances; + pm4 = &ctx->pm4[ctx->pm4_cdwords]; + pm4[0] = PKT3(PKT3_INDEX_TYPE, 0, ctx->predicate_drawing); + pm4[1] = draw->vgt_index_type; + pm4[2] = PKT3(PKT3_NUM_INSTANCES, 0, ctx->predicate_drawing); + pm4[3] = draw->vgt_num_instances; if (draw->indices) { - ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_DRAW_INDEX, 3, ctx->predicate_drawing); - ctx->pm4[ctx->pm4_cdwords++] = draw->indices_bo_offset + r600_bo_offset(draw->indices); - ctx->pm4[ctx->pm4_cdwords++] = 0; - ctx->pm4[ctx->pm4_cdwords++] = draw->vgt_num_indices; - ctx->pm4[ctx->pm4_cdwords++] = draw->vgt_draw_initiator; - ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_NOP, 0, ctx->predicate_drawing); - ctx->pm4[ctx->pm4_cdwords++] = 0; - r600_context_bo_reloc(ctx, &ctx->pm4[ctx->pm4_cdwords - 1], draw->indices); + pm4[4] = PKT3(PKT3_DRAW_INDEX, 3, ctx->predicate_drawing); + pm4[5] = draw->indices_bo_offset + r600_bo_offset(draw->indices); + pm4[6] = 0; + pm4[7] = draw->vgt_num_indices; + pm4[8] = draw->vgt_draw_initiator; + pm4[9] = PKT3(PKT3_NOP, 0, ctx->predicate_drawing); + pm4[10] = 0; + r600_context_bo_reloc(ctx, &pm4[10], draw->indices); } else { - ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_DRAW_INDEX_AUTO, 1, ctx->predicate_drawing); - ctx->pm4[ctx->pm4_cdwords++] = draw->vgt_num_indices; - ctx->pm4[ctx->pm4_cdwords++] = draw->vgt_draw_initiator; + pm4[4] = PKT3(PKT3_DRAW_INDEX_AUTO, 1, ctx->predicate_drawing); + pm4[5] = draw->vgt_num_indices; + pm4[6] = draw->vgt_draw_initiator; } + ctx->pm4_cdwords += ndwords; ctx->flags |= (R600_CONTEXT_DRAW_PENDING | R600_CONTEXT_DST_CACHES_DIRTY); diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index c5551b2674c..cb244f2b9ee 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -1347,6 +1347,7 @@ void r600_context_draw(struct r600_context *ctx, const struct r600_draw *draw) unsigned ndwords = 7; struct r600_block *dirty_block = NULL; struct r600_block *next_block; + uint32_t *pm4; if (draw->indices) { ndwords = 11; @@ -1389,24 +1390,27 @@ void r600_context_draw(struct r600_context *ctx, const struct r600_draw *draw) } /* draw packet */ - ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_INDEX_TYPE, 0, ctx->predicate_drawing); - ctx->pm4[ctx->pm4_cdwords++] = draw->vgt_index_type; - ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_NUM_INSTANCES, 0, ctx->predicate_drawing); - ctx->pm4[ctx->pm4_cdwords++] = draw->vgt_num_instances; + pm4 = &ctx->pm4[ctx->pm4_cdwords]; + + pm4[0] = PKT3(PKT3_INDEX_TYPE, 0, ctx->predicate_drawing); + pm4[1] = draw->vgt_index_type; + pm4[2] = PKT3(PKT3_NUM_INSTANCES, 0, ctx->predicate_drawing); + pm4[3] = draw->vgt_num_instances; if (draw->indices) { - ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_DRAW_INDEX, 3, ctx->predicate_drawing); - ctx->pm4[ctx->pm4_cdwords++] = draw->indices_bo_offset + r600_bo_offset(draw->indices); - ctx->pm4[ctx->pm4_cdwords++] = 0; - ctx->pm4[ctx->pm4_cdwords++] = draw->vgt_num_indices; - ctx->pm4[ctx->pm4_cdwords++] = draw->vgt_draw_initiator; - ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_NOP, 0, ctx->predicate_drawing); - ctx->pm4[ctx->pm4_cdwords++] = 0; - r600_context_bo_reloc(ctx, &ctx->pm4[ctx->pm4_cdwords - 1], draw->indices); + pm4[4] = PKT3(PKT3_DRAW_INDEX, 3, ctx->predicate_drawing); + pm4[5] = draw->indices_bo_offset + r600_bo_offset(draw->indices); + pm4[6] = 0; + pm4[7] = draw->vgt_num_indices; + pm4[8] = draw->vgt_draw_initiator; + pm4[9] = PKT3(PKT3_NOP, 0, ctx->predicate_drawing); + pm4[10] = 0; + r600_context_bo_reloc(ctx, &pm4[10], draw->indices); } else { - ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_DRAW_INDEX_AUTO, 1, ctx->predicate_drawing); - ctx->pm4[ctx->pm4_cdwords++] = draw->vgt_num_indices; - ctx->pm4[ctx->pm4_cdwords++] = draw->vgt_draw_initiator; + pm4[4] = PKT3(PKT3_DRAW_INDEX_AUTO, 1, ctx->predicate_drawing); + pm4[5] = draw->vgt_num_indices; + pm4[6] = draw->vgt_draw_initiator; } + ctx->pm4_cdwords += ndwords; ctx->flags |= (R600_CONTEXT_DST_CACHES_DIRTY | R600_CONTEXT_DRAW_PENDING); From 22c320aa2c459474a0d220a40b849bf7e4864251 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Mon, 6 Jun 2011 19:54:55 -0400 Subject: [PATCH 048/145] darwin: Set VG_LIB_{NAME,GLOB} to fix make install Signed-off-by: Jeremy Huddleston --- configs/darwin | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/configs/darwin b/configs/darwin index 9c126ea3db6..3cf1110b40e 100644 --- a/configs/darwin +++ b/configs/darwin @@ -31,18 +31,20 @@ CXXFLAGS = -ggdb3 -Os -Wall -fno-strict-aliasing \ -I$(INSTALL_DIR)/include -I$(X11_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) # Library names (actual file names) -GL_LIB_NAME = libGL.dylib -GLU_LIB_NAME = libGLU.dylib -GLUT_LIB_NAME = libglut.dylib -GLW_LIB_NAME = libGLw.dylib -OSMESA_LIB_NAME = libOSMesa.dylib +GL_LIB_NAME = lib$(GL_LIB).dylib +GLU_LIB_NAME = lib$(GLU_LIB).dylib +GLUT_LIB_NAME = lib$(GLUT_LIB).dylib +GLW_LIB_NAME = lib$(GLW_LIB).dylib +OSMESA_LIB_NAME = lib$(OSMESA_LIB).dylib +VG_LIB_NAME = lib$(VG_LIB).dylib # globs used to install the lib and all symlinks -GL_LIB_GLOB = libGL.*dylib -GLU_LIB_GLOB = libGLU.*dylib -GLUT_LIB_GLOB = libglut.*dylib -GLW_LIB_GLOB = libGLw.*dylib -OSMESA_LIB_GLOB = libOSMesa.*dylib +GL_LIB_GLOB = lib$(GL_LIB).*dylib +GLU_LIB_GLOB = lib$(GLU_LIB).*dylib +GLUT_LIB_GLOB = lib$(GLUT_LIB).*dylib +GLW_LIB_GLOB = lib$(GLW_LIB).*dylib +OSMESA_LIB_GLOB = lib$(OSMESA_LIB).*dylib +VG_LIB_GLOB = lib$(VG_LIB).*.dylib GL_LIB_DEPS = -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXext -lm -lpthread OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) From abb436526974bd090853c0927ece0839f9143393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Marchesin?= Date: Mon, 6 Jun 2011 20:40:16 -0700 Subject: [PATCH 049/145] i915g: Do generic remapping. With complex shaders there are often "holes" in the fs inputs, and we only have 8 tex coorsd to map those to. To fix this, we remap fs inputs to [0..8]. This lets us to run many more GLSL programs. --- src/gallium/drivers/i915/i915_context.h | 6 + src/gallium/drivers/i915/i915_fpc_translate.c | 170 ++++++++++-------- src/gallium/drivers/i915/i915_state_derived.c | 35 ++-- 3 files changed, 119 insertions(+), 92 deletions(-) diff --git a/src/gallium/drivers/i915/i915_context.h b/src/gallium/drivers/i915/i915_context.h index dacf50e870d..964948edc0e 100644 --- a/src/gallium/drivers/i915/i915_context.h +++ b/src/gallium/drivers/i915/i915_context.h @@ -124,6 +124,12 @@ struct i915_fragment_shader * Else, the bitmask indicates which components are occupied by immediates. */ ubyte constant_flags[I915_MAX_CONSTANT]; + + /** + * The mapping between generics and hw texture coords. + * We need to share this between the vertex and fragment stages. + **/ + int generic_mapping[I915_TEX_UNITS]; }; diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c index 51766cd6da1..27f100843bf 100644 --- a/src/gallium/drivers/i915/i915_fpc_translate.c +++ b/src/gallium/drivers/i915/i915_fpc_translate.c @@ -133,7 +133,21 @@ i915_program_error(struct i915_fp_compile *p, const char *msg, ...) p->error = 1; } - +static uint get_mapping(struct i915_fragment_shader* fs, int unit) +{ + int i; + for (i = 0; i < I915_TEX_UNITS; i++) + { + if (fs->generic_mapping[i] == -1) { + fs->generic_mapping[i] = unit; + return i; + } + if (fs->generic_mapping[i] == unit) + return i; + } + debug_printf("Exceeded max generics\n"); + return 0; +} /** * Construct a ureg for the given source register. Will emit @@ -141,7 +155,8 @@ i915_program_error(struct i915_fp_compile *p, const char *msg, ...) */ static uint src_vector(struct i915_fp_compile *p, - const struct tgsi_full_src_register *source) + const struct tgsi_full_src_register *source, + struct i915_fragment_shader* fs) { uint index = source->Register.Index; uint src = 0, sem_name, sem_ind; @@ -192,15 +207,11 @@ src_vector(struct i915_fp_compile *p, src = swizzle(src, W, W, W, W); break; case TGSI_SEMANTIC_GENERIC: - if (sem_ind < 8) - /* a texcoord */ - src = i915_emit_decl(p, REG_TYPE_T, T_TEX0 + sem_ind, D0_CHANNEL_ALL); - else if ( (sem_ind >= 10) && (sem_ind < 18) ) - /* a varying */ - src = i915_emit_decl(p, REG_TYPE_T, T_TEX0 + sem_ind - 10, D0_CHANNEL_ALL); - else - debug_printf("%s: unhandled generic %d\n", __func__, sem_ind); - break; + { + int real_tex_unit = get_mapping(fs, sem_ind); + src = i915_emit_decl(p, REG_TYPE_T, T_TEX0 + real_tex_unit, D0_CHANNEL_ALL); + break; + } default: i915_program_error(p, "Bad source->Index"); return 0; @@ -342,13 +353,14 @@ translate_tex_src_target(struct i915_fp_compile *p, uint tex) static void emit_tex(struct i915_fp_compile *p, const struct tgsi_full_instruction *inst, - uint opcode) + uint opcode, + struct i915_fragment_shader* fs) { uint texture = inst->Texture.Texture; uint unit = inst->Src[1].Register.Index; uint tex = translate_tex_src_target( p, texture ); uint sampler = i915_emit_decl(p, REG_TYPE_S, unit, tex); - uint coord = src_vector( p, &inst->Src[0]); + uint coord = src_vector( p, &inst->Src[0], fs); i915_emit_texld( p, get_result_vector( p, &inst->Dst[0] ), @@ -367,15 +379,16 @@ emit_tex(struct i915_fp_compile *p, static void emit_simple_arith(struct i915_fp_compile *p, const struct tgsi_full_instruction *inst, - uint opcode, uint numArgs) + uint opcode, uint numArgs, + struct i915_fragment_shader* fs) { uint arg1, arg2, arg3; assert(numArgs <= 3); - arg1 = (numArgs < 1) ? 0 : src_vector( p, &inst->Src[0] ); - arg2 = (numArgs < 2) ? 0 : src_vector( p, &inst->Src[1] ); - arg3 = (numArgs < 3) ? 0 : src_vector( p, &inst->Src[2] ); + arg1 = (numArgs < 1) ? 0 : src_vector( p, &inst->Src[0], fs ); + arg2 = (numArgs < 2) ? 0 : src_vector( p, &inst->Src[1], fs ); + arg3 = (numArgs < 3) ? 0 : src_vector( p, &inst->Src[2], fs ); i915_emit_arith( p, opcode, @@ -391,7 +404,8 @@ emit_simple_arith(struct i915_fp_compile *p, static void emit_simple_arith_swap2(struct i915_fp_compile *p, const struct tgsi_full_instruction *inst, - uint opcode, uint numArgs) + uint opcode, uint numArgs, + struct i915_fragment_shader* fs) { struct tgsi_full_instruction inst2; @@ -402,7 +416,7 @@ emit_simple_arith_swap2(struct i915_fp_compile *p, inst2.Src[0] = inst->Src[1]; inst2.Src[1] = inst->Src[0]; - emit_simple_arith(p, &inst2, opcode, numArgs); + emit_simple_arith(p, &inst2, opcode, numArgs, fs); } @@ -421,7 +435,8 @@ emit_simple_arith_swap2(struct i915_fp_compile *p, */ static void i915_translate_instruction(struct i915_fp_compile *p, - const struct tgsi_full_instruction *inst) + const struct tgsi_full_instruction *inst, + struct i915_fragment_shader *fs) { uint writemask; uint src0, src1, src2, flags; @@ -429,7 +444,7 @@ i915_translate_instruction(struct i915_fp_compile *p, switch (inst->Instruction.Opcode) { case TGSI_OPCODE_ABS: - src0 = src_vector(p, &inst->Src[0]); + src0 = src_vector(p, &inst->Src[0], fs); i915_emit_arith(p, A0_MAX, get_result_vector(p, &inst->Dst[0]), @@ -438,13 +453,13 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_ADD: - emit_simple_arith(p, inst, A0_ADD, 2); + emit_simple_arith(p, inst, A0_ADD, 2, fs); break; case TGSI_OPCODE_CMP: - src0 = src_vector(p, &inst->Src[0]); - src1 = src_vector(p, &inst->Src[1]); - src2 = src_vector(p, &inst->Src[2]); + src0 = src_vector(p, &inst->Src[0], fs); + src1 = src_vector(p, &inst->Src[1], fs); + src2 = src_vector(p, &inst->Src[2], fs); i915_emit_arith(p, A0_CMP, get_result_vector(p, &inst->Dst[0]), get_result_flags(inst), @@ -452,7 +467,7 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_COS: - src0 = src_vector(p, &inst->Src[0]); + src0 = src_vector(p, &inst->Src[0], fs); tmp = i915_get_utemp(p); i915_emit_arith(p, @@ -502,8 +517,8 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_DP2: - src0 = src_vector(p, &inst->Src[0]); - src1 = src_vector(p, &inst->Src[1]); + src0 = src_vector(p, &inst->Src[0], fs); + src1 = src_vector(p, &inst->Src[1], fs); i915_emit_arith(p, A0_DP3, @@ -513,16 +528,16 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_DP3: - emit_simple_arith(p, inst, A0_DP3, 2); + emit_simple_arith(p, inst, A0_DP3, 2, fs); break; case TGSI_OPCODE_DP4: - emit_simple_arith(p, inst, A0_DP4, 2); + emit_simple_arith(p, inst, A0_DP4, 2, fs); break; case TGSI_OPCODE_DPH: - src0 = src_vector(p, &inst->Src[0]); - src1 = src_vector(p, &inst->Src[1]); + src0 = src_vector(p, &inst->Src[0], fs); + src1 = src_vector(p, &inst->Src[1], fs); i915_emit_arith(p, A0_DP4, @@ -532,8 +547,8 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_DST: - src0 = src_vector(p, &inst->Src[0]); - src1 = src_vector(p, &inst->Src[1]); + src0 = src_vector(p, &inst->Src[0], fs); + src1 = src_vector(p, &inst->Src[1], fs); /* result[0] = 1 * 1; * result[1] = a[1] * b[1]; @@ -553,7 +568,7 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_EX2: - src0 = src_vector(p, &inst->Src[0]); + src0 = src_vector(p, &inst->Src[0], fs); i915_emit_arith(p, A0_EXP, @@ -563,16 +578,16 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_FLR: - emit_simple_arith(p, inst, A0_FLR, 1); + emit_simple_arith(p, inst, A0_FLR, 1, fs); break; case TGSI_OPCODE_FRC: - emit_simple_arith(p, inst, A0_FRC, 1); + emit_simple_arith(p, inst, A0_FRC, 1, fs); break; case TGSI_OPCODE_KIL: /* kill if src[0].x < 0 || src[0].y < 0 ... */ - src0 = src_vector(p, &inst->Src[0]); + src0 = src_vector(p, &inst->Src[0], fs); tmp = i915_get_utemp(p); i915_emit_texld(p, @@ -588,7 +603,7 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_LG2: - src0 = src_vector(p, &inst->Src[0]); + src0 = src_vector(p, &inst->Src[0], fs); i915_emit_arith(p, A0_LOG, @@ -598,7 +613,7 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_LIT: - src0 = src_vector(p, &inst->Src[0]); + src0 = src_vector(p, &inst->Src[0], fs); tmp = i915_get_utemp(p); /* tmp = max( a.xyzw, a.00zw ) @@ -631,9 +646,9 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_LRP: - src0 = src_vector(p, &inst->Src[0]); - src1 = src_vector(p, &inst->Src[1]); - src2 = src_vector(p, &inst->Src[2]); + src0 = src_vector(p, &inst->Src[0], fs); + src1 = src_vector(p, &inst->Src[1], fs); + src2 = src_vector(p, &inst->Src[2], fs); flags = get_result_flags(inst); tmp = i915_get_utemp(p); @@ -653,16 +668,16 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_MAD: - emit_simple_arith(p, inst, A0_MAD, 3); + emit_simple_arith(p, inst, A0_MAD, 3, fs); break; case TGSI_OPCODE_MAX: - emit_simple_arith(p, inst, A0_MAX, 2); + emit_simple_arith(p, inst, A0_MAX, 2, fs); break; case TGSI_OPCODE_MIN: - src0 = src_vector(p, &inst->Src[0]); - src1 = src_vector(p, &inst->Src[1]); + src0 = src_vector(p, &inst->Src[0], fs); + src1 = src_vector(p, &inst->Src[1], fs); tmp = i915_get_utemp(p); flags = get_result_flags(inst); @@ -679,16 +694,16 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_MOV: - emit_simple_arith(p, inst, A0_MOV, 1); + emit_simple_arith(p, inst, A0_MOV, 1, fs); break; case TGSI_OPCODE_MUL: - emit_simple_arith(p, inst, A0_MUL, 2); + emit_simple_arith(p, inst, A0_MUL, 2, fs); break; case TGSI_OPCODE_POW: - src0 = src_vector(p, &inst->Src[0]); - src1 = src_vector(p, &inst->Src[1]); + src0 = src_vector(p, &inst->Src[0], fs); + src1 = src_vector(p, &inst->Src[1], fs); tmp = i915_get_utemp(p); flags = get_result_flags(inst); @@ -712,7 +727,7 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_RCP: - src0 = src_vector(p, &inst->Src[0]); + src0 = src_vector(p, &inst->Src[0], fs); i915_emit_arith(p, A0_RCP, @@ -722,7 +737,7 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_RSQ: - src0 = src_vector(p, &inst->Src[0]); + src0 = src_vector(p, &inst->Src[0], fs); i915_emit_arith(p, A0_RSQ, @@ -732,7 +747,7 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_SCS: - src0 = src_vector(p, &inst->Src[0]); + src0 = src_vector(p, &inst->Src[0], fs); tmp = i915_get_utemp(p); /* @@ -797,8 +812,8 @@ i915_translate_instruction(struct i915_fp_compile *p, case TGSI_OPCODE_SEQ: /* if we're both >= and <= then we're == */ - src0 = src_vector(p, &inst->Src[0]); - src1 = src_vector(p, &inst->Src[1]); + src0 = src_vector(p, &inst->Src[0], fs); + src1 = src_vector(p, &inst->Src[1], fs); tmp = i915_get_utemp(p); i915_emit_arith(p, @@ -824,11 +839,11 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_SGE: - emit_simple_arith(p, inst, A0_SGE, 2); + emit_simple_arith(p, inst, A0_SGE, 2, fs); break; case TGSI_OPCODE_SIN: - src0 = src_vector(p, &inst->Src[0]); + src0 = src_vector(p, &inst->Src[0], fs); tmp = i915_get_utemp(p); i915_emit_arith(p, @@ -879,22 +894,22 @@ i915_translate_instruction(struct i915_fp_compile *p, case TGSI_OPCODE_SLE: /* like SGE, but swap reg0, reg1 */ - emit_simple_arith_swap2(p, inst, A0_SGE, 2); + emit_simple_arith_swap2(p, inst, A0_SGE, 2, fs); break; case TGSI_OPCODE_SLT: - emit_simple_arith(p, inst, A0_SLT, 2); + emit_simple_arith(p, inst, A0_SLT, 2, fs); break; case TGSI_OPCODE_SGT: /* like SLT, but swap reg0, reg1 */ - emit_simple_arith_swap2(p, inst, A0_SLT, 2); + emit_simple_arith_swap2(p, inst, A0_SLT, 2, fs); break; case TGSI_OPCODE_SNE: /* if we're neither < nor > then we're != */ - src0 = src_vector(p, &inst->Src[0]); - src1 = src_vector(p, &inst->Src[1]); + src0 = src_vector(p, &inst->Src[0], fs); + src1 = src_vector(p, &inst->Src[1], fs); tmp = i915_get_utemp(p); i915_emit_arith(p, @@ -921,7 +936,7 @@ i915_translate_instruction(struct i915_fp_compile *p, case TGSI_OPCODE_SSG: /* compute (src>0) - (src<0) */ - src0 = src_vector(p, &inst->Src[0]); + src0 = src_vector(p, &inst->Src[0], fs); tmp = i915_get_utemp(p); i915_emit_arith(p, @@ -947,8 +962,8 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_SUB: - src0 = src_vector(p, &inst->Src[0]); - src1 = src_vector(p, &inst->Src[1]); + src0 = src_vector(p, &inst->Src[0], fs); + src1 = src_vector(p, &inst->Src[1], fs); i915_emit_arith(p, A0_ADD, @@ -958,19 +973,19 @@ i915_translate_instruction(struct i915_fp_compile *p, break; case TGSI_OPCODE_TEX: - emit_tex(p, inst, T0_TEXLD); + emit_tex(p, inst, T0_TEXLD, fs); break; case TGSI_OPCODE_TRUNC: - emit_simple_arith(p, inst, A0_TRC, 1); + emit_simple_arith(p, inst, A0_TRC, 1, fs); break; case TGSI_OPCODE_TXB: - emit_tex(p, inst, T0_TEXLDB); + emit_tex(p, inst, T0_TEXLDB, fs); break; case TGSI_OPCODE_TXP: - emit_tex(p, inst, T0_TEXLDP); + emit_tex(p, inst, T0_TEXLDP, fs); break; case TGSI_OPCODE_XPD: @@ -980,8 +995,8 @@ i915_translate_instruction(struct i915_fp_compile *p, * result.z = src0.x * src1.y - src0.y * src1.x; * result.w = undef; */ - src0 = src_vector(p, &inst->Src[0]); - src1 = src_vector(p, &inst->Src[1]); + src0 = src_vector(p, &inst->Src[0], fs); + src1 = src_vector(p, &inst->Src[1], fs); tmp = i915_get_utemp(p); i915_emit_arith(p, @@ -1016,7 +1031,8 @@ i915_translate_instruction(struct i915_fp_compile *p, */ static void i915_translate_instructions(struct i915_fp_compile *p, - const struct tgsi_token *tokens) + const struct tgsi_token *tokens, + struct i915_fragment_shader *fs) { struct i915_fragment_shader *ifs = p->shader; struct tgsi_parse_context parse; @@ -1097,7 +1113,7 @@ i915_translate_instructions(struct i915_fp_compile *p, p->first_instruction = FALSE; } - i915_translate_instruction(p, &parse.FullToken.FullInstruction); + i915_translate_instruction(p, &parse.FullToken.FullInstruction, fs); break; default: @@ -1115,6 +1131,7 @@ i915_init_compile(struct i915_context *i915, struct i915_fragment_shader *ifs) { struct i915_fp_compile *p = CALLOC_STRUCT(i915_fp_compile); + int i; p->shader = ifs; @@ -1127,6 +1144,9 @@ i915_init_compile(struct i915_context *i915, ifs->num_constants = 0; memset(ifs->constant_flags, 0, sizeof(ifs->constant_flags)); + for (i = 0; i < I915_TEX_UNITS; i++) + ifs->generic_mapping[i] = -1; + p->first_instruction = TRUE; p->nr_tex_indirect = 1; /* correct? */ @@ -1296,7 +1316,7 @@ i915_translate_fragment_program( struct i915_context *i915, p = i915_init_compile(i915, fs); i915_find_wpos_space(p); - i915_translate_instructions(p, tokens); + i915_translate_instructions(p, tokens, fs); i915_fixup_depth_write(p); i915_fini_compile(i915, p); diff --git a/src/gallium/drivers/i915/i915_state_derived.c b/src/gallium/drivers/i915/i915_state_derived.c index 47bea8bbd8b..bf6b30a4530 100644 --- a/src/gallium/drivers/i915/i915_state_derived.c +++ b/src/gallium/drivers/i915/i915_state_derived.c @@ -35,6 +35,18 @@ #include "i915_debug.h" #include "i915_reg.h" +static uint find_mapping(struct i915_fragment_shader* fs, int unit) +{ + int i; + for (i = 0; i < I915_TEX_UNITS ; i++) + { + if (fs->generic_mapping[i] == unit) + return i; + } + debug_printf("Mapping not found\n"); + return 0; +} + /*********************************************************************** @@ -46,12 +58,12 @@ static void calculate_vertex_layout(struct i915_context *i915) const struct i915_fragment_shader *fs = i915->fs; const enum interp_mode colorInterp = i915->rasterizer->color_interp; struct vertex_info vinfo; - boolean texCoords[8], colors[2], fog, needW, have_varyings; + boolean texCoords[I915_TEX_UNITS], colors[2], fog, needW; uint i; int src; memset(texCoords, 0, sizeof(texCoords)); - colors[0] = colors[1] = fog = needW = have_varyings = FALSE; + colors[0] = colors[1] = fog = needW = FALSE; memset(&vinfo, 0, sizeof(vinfo)); /* Determine which fragment program inputs are needed. Setup HW vertex @@ -67,19 +79,11 @@ static void calculate_vertex_layout(struct i915_context *i915) break; case TGSI_SEMANTIC_GENERIC: { - /* texcoords/varyings */ + /* texcoords/varyings/other generic */ /* XXX handle back/front face and point size */ uint unit = fs->info.input_semantic_index[i]; - /* Route varyings as tex coords */ - if ( (unit >= 10) && (unit < 18) ) { - have_varyings = TRUE; - unit -= 10; - } - - assert(unit < 8); - - texCoords[unit] = TRUE; + texCoords[find_mapping(fs, unit)] = TRUE; needW = TRUE; } break; @@ -130,14 +134,11 @@ static void calculate_vertex_layout(struct i915_context *i915) } /* texcoords/varyings */ - for (i = 0; i < 8; i++) { + for (i = 0; i < I915_TEX_UNITS; i++) { uint hwtc; if (texCoords[i]) { hwtc = TEXCOORDFMT_4D; - if (!have_varyings) - src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_GENERIC, i); - else - src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_GENERIC, i + 10); + src = draw_find_shader_output(i915->draw, TGSI_SEMANTIC_GENERIC, fs->generic_mapping[i]); draw_emit_vertex_attr(&vinfo, EMIT_4F, INTERP_PERSPECTIVE, src); } else { From ef59049c5242a1be7fa59a182d342191185dd62b Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 5 Jun 2011 23:20:57 -0700 Subject: [PATCH 050/145] i965: Fix flipped GT1 vs GT2 URB VS entry count limits. --- src/mesa/drivers/dri/i965/brw_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 0256ab9061f..d6a99ab06e2 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -203,12 +203,12 @@ GLboolean brwCreateContext( int api, brw->wm_max_threads = 40; brw->vs_max_threads = 60; brw->urb.size = 64; /* volume 5c.5 section 5.1 */ - brw->urb.max_vs_entries = 128; /* volume 2a (see 3DSTATE_URB) */ + brw->urb.max_vs_entries = 256; /* volume 2a (see 3DSTATE_URB) */ } else { brw->wm_max_threads = 40; brw->vs_max_threads = 24; brw->urb.size = 32; /* volume 5c.5 section 5.1 */ - brw->urb.max_vs_entries = 256; /* volume 2a (see 3DSTATE_URB) */ + brw->urb.max_vs_entries = 128; /* volume 2a (see 3DSTATE_URB) */ } } else if (intel->gen == 5) { brw->urb.size = 1024; From 57f2f84f0e2a06313d30b3d9341229f6643683a1 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 6 Jun 2011 14:33:05 -0600 Subject: [PATCH 051/145] draw: s/1/TRUE/ --- src/gallium/auxiliary/draw/draw_context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index d99f94edc43..f8196bb476f 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -128,8 +128,8 @@ boolean draw_init(struct draw_context *draw) ASSIGN_4V( draw->plane[4], 0, 0, 1, 1 ); /* yes these are correct */ ASSIGN_4V( draw->plane[5], 0, 0, -1, 1 ); /* mesa's a bit wonky */ draw->nr_planes = 6; - draw->clip_xy = 1; - draw->clip_z = 1; + draw->clip_xy = TRUE; + draw->clip_z = TRUE; draw->reduced_prim = ~0; /* != any of PIPE_PRIM_x */ From 47f3d5d42d107b79c94b0713354c93b484c4c813 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 7 Jun 2011 07:31:34 -0600 Subject: [PATCH 052/145] draw/llvm: whitespace, formatting fixes --- src/gallium/auxiliary/draw/draw_llvm.c | 89 +++++++++++++++----------- 1 file changed, 51 insertions(+), 38 deletions(-) diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index a1b8fc38880..56c26f57cce 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.c @@ -435,6 +435,7 @@ draw_llvm_create_variant(struct draw_llvm *llvm, return variant; } + static void generate_vs(struct draw_llvm *llvm, LLVMBuilderRef builder, @@ -464,8 +465,7 @@ generate_vs(struct draw_llvm *llvm, tgsi_dump(tokens, 0); } - if (llvm->draw->num_sampler_views && - llvm->draw->num_samplers) + if (llvm->draw->num_sampler_views && llvm->draw->num_samplers) sampler = draw_sampler; lp_build_tgsi_soa(llvm->gallivm, @@ -480,8 +480,7 @@ generate_vs(struct draw_llvm *llvm, sampler, &llvm->draw->vs.vertex_shader->info); - if(clamp_vertex_color) - { + if (clamp_vertex_color) { LLVMValueRef out; unsigned chan, attrib; struct lp_build_context bld; @@ -489,8 +488,8 @@ generate_vs(struct draw_llvm *llvm, lp_build_context_init(&bld, llvm->gallivm, vs_type); for (attrib = 0; attrib < info->num_outputs; ++attrib) { - for(chan = 0; chan < NUM_CHANNELS; ++chan) { - if(outputs[attrib][chan]) { + for (chan = 0; chan < NUM_CHANNELS; ++chan) { + if (outputs[attrib][chan]) { switch (info->output_semantic_name[attrib]) { case TGSI_SEMANTIC_COLOR: case TGSI_SEMANTIC_BCOLOR: @@ -505,6 +504,7 @@ generate_vs(struct draw_llvm *llvm, } } + #if DEBUG_STORE static void print_vectorf(LLVMBuilderRef builder, LLVMValueRef vec) @@ -523,6 +523,7 @@ static void print_vectorf(LLVMBuilderRef builder, } #endif + static void generate_fetch(struct gallivm_state *gallivm, LLVMValueRef vbuffers_ptr, @@ -566,6 +567,7 @@ generate_fetch(struct gallivm_state *gallivm, *res = draw_llvm_translate_from(gallivm, vbuffer_ptr, velem->src_format); } + static LLVMValueRef aos_to_soa(struct gallivm_state *gallivm, LLVMValueRef val0, @@ -609,6 +611,7 @@ aos_to_soa(struct gallivm_state *gallivm, return res; } + static void soa_to_aos(struct gallivm_state *gallivm, LLVMValueRef soa[NUM_CHANNELS], @@ -645,6 +648,7 @@ soa_to_aos(struct gallivm_state *gallivm, } } + static void convert_to_soa(struct gallivm_state *gallivm, LLVMValueRef (*aos)[NUM_CHANNELS], @@ -672,6 +676,7 @@ convert_to_soa(struct gallivm_state *gallivm, } } + static void store_aos(struct gallivm_state *gallivm, LLVMValueRef io_ptr, @@ -748,6 +753,7 @@ store_aos(struct gallivm_state *gallivm, #endif } + static void store_aos_array(struct gallivm_state *gallivm, LLVMValueRef io_ptr, @@ -796,6 +802,7 @@ store_aos_array(struct gallivm_state *gallivm, store_aos(gallivm, io3_ptr, attr_index, aos[3], clipmask3); } + static void convert_to_aos(struct gallivm_state *gallivm, LLVMValueRef io, @@ -813,8 +820,8 @@ convert_to_aos(struct gallivm_state *gallivm, for (attrib = 0; attrib < num_outputs; ++attrib) { LLVMValueRef soa[4]; LLVMValueRef aos[4]; - for(chan = 0; chan < NUM_CHANNELS; ++chan) { - if(outputs[attrib][chan]) { + for (chan = 0; chan < NUM_CHANNELS; ++chan) { + if (outputs[attrib][chan]) { LLVMValueRef out = LLVMBuildLoad(builder, outputs[attrib][chan], ""); lp_build_name(out, "output%u.%c", attrib, "xyzw"[chan]); /*lp_build_printf(builder, "output %d : %d ", @@ -822,8 +829,10 @@ convert_to_aos(struct gallivm_state *gallivm, LLVMConstInt(LLVMInt32Type(), chan, 0)); print_vectorf(builder, out);*/ soa[chan] = out; - } else + } + else { soa[chan] = 0; + } } soa_to_aos(gallivm, soa, aos); store_aos_array(gallivm, @@ -838,7 +847,8 @@ convert_to_aos(struct gallivm_state *gallivm, #endif } -/* + +/** * Stores original vertex positions in clip coordinates * There is probably a more efficient way to do this, 4 floats at once * rather than extracting each element one by one. @@ -880,7 +890,7 @@ store_clip(struct gallivm_state *gallivm, clip_ptr2 = draw_jit_header_clip(gallivm, io2_ptr); clip_ptr3 = draw_jit_header_clip(gallivm, io3_ptr); - for (i = 0; i<4; i++){ + for (i = 0; i<4; i++) { clip0_ptr = LLVMBuildGEP(builder, clip_ptr0, indices, 2, ""); /* x0 */ clip1_ptr = LLVMBuildGEP(builder, clip_ptr1, indices, 2, ""); /* x1 */ clip2_ptr = LLVMBuildGEP(builder, clip_ptr2, indices, 2, ""); /* x2 */ @@ -901,7 +911,9 @@ store_clip(struct gallivm_state *gallivm, } -/* Equivalent of _mm_set1_ps(a) + +/** + * Equivalent of _mm_set1_ps(a) */ static LLVMValueRef vec4f_from_scalar(struct gallivm_state *gallivm, @@ -912,7 +924,7 @@ vec4f_from_scalar(struct gallivm_state *gallivm, LLVMValueRef res = LLVMGetUndef(LLVMVectorType(float_type, 4)); int i; - for(i = 0; i < 4; ++i) { + for (i = 0; i < 4; ++i) { LLVMValueRef index = lp_build_const_int32(gallivm, i); res = LLVMBuildInsertElement(gallivm->builder, res, a, index, i == 3 ? name : ""); @@ -921,7 +933,8 @@ vec4f_from_scalar(struct gallivm_state *gallivm, return res; } -/* + +/** * Transforms the outputs for viewport mapping */ static void @@ -942,7 +955,7 @@ generate_viewport(struct draw_llvm *llvm, LLVMBuildStore(builder, out3, outputs[0][3]); /* Viewport Mapping */ - for (i=0; i<3; i++){ + for (i=0; i<3; i++) { LLVMValueRef out = LLVMBuildLoad(builder, outputs[0][i], ""); /*x0 x1 x2 x3*/ LLVMValueRef scale; LLVMValueRef trans; @@ -973,7 +986,7 @@ generate_viewport(struct draw_llvm *llvm, } -/* +/** * Returns clipmask as 4xi32 bitmask for the 4 vertices */ static LLVMValueRef @@ -992,9 +1005,7 @@ generate_clipmask(struct gallivm_state *gallivm, LLVMValueRef zero, shift; LLVMValueRef pos_x, pos_y, pos_z, pos_w; LLVMValueRef plane1, planes, plane_ptr, sum; - unsigned i; - struct lp_type f32_type = lp_type_float_vec(32); mask = lp_build_const_int_vec(gallivm, lp_type_int_vec(32), 0); @@ -1009,7 +1020,7 @@ generate_clipmask(struct gallivm_state *gallivm, pos_w = LLVMBuildLoad(builder, outputs[0][3], ""); /*w0 w1 w2 w3*/ /* Cliptest, for hardwired planes */ - if (clip_xy){ + if (clip_xy) { /* plane 1 */ test = lp_build_compare(gallivm, f32_type, PIPE_FUNC_GREATER, pos_x , pos_w); temp = shift; @@ -1037,15 +1048,15 @@ generate_clipmask(struct gallivm_state *gallivm, mask = LLVMBuildOr(builder, mask, test, ""); } - if (clip_z){ + if (clip_z) { temp = lp_build_const_int_vec(gallivm, lp_type_int_vec(32), 16); - if (clip_halfz){ + if (clip_halfz) { /* plane 5 */ test = lp_build_compare(gallivm, f32_type, PIPE_FUNC_GREATER, zero, pos_z); test = LLVMBuildAnd(builder, test, temp, ""); mask = LLVMBuildOr(builder, mask, test, ""); } - else{ + else { /* plane 5 */ test = LLVMBuildFAdd(builder, pos_z, pos_w, ""); test = lp_build_compare(gallivm, f32_type, PIPE_FUNC_GREATER, zero, test); @@ -1059,7 +1070,7 @@ generate_clipmask(struct gallivm_state *gallivm, mask = LLVMBuildOr(builder, mask, test, ""); } - if (clip_user){ + if (clip_user) { LLVMValueRef planes_ptr = draw_jit_context_planes(gallivm, context_ptr); LLVMValueRef indices[3]; temp = lp_build_const_int_vec(gallivm, lp_type_int_vec(32), 32); @@ -1105,7 +1116,8 @@ generate_clipmask(struct gallivm_state *gallivm, return mask; } -/* + +/** * Returns boolean if any clipping has occurred * Used zero/non-zero i32 value to represent boolean */ @@ -1119,7 +1131,7 @@ clipmask_bool(struct gallivm_state *gallivm, LLVMValueRef temp; int i; - for (i=0; i<4; i++){ + for (i=0; i<4; i++) { temp = LLVMBuildExtractElement(builder, clipmask, lp_build_const_int32(gallivm, i) , ""); ret = LLVMBuildOr(builder, ret, temp, ""); @@ -1128,6 +1140,7 @@ clipmask_bool(struct gallivm_state *gallivm, LLVMBuildStore(builder, ret, ret_ptr); } + static void draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant) { @@ -1172,8 +1185,8 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant) variant->function = LLVMAddFunction(gallivm->module, "draw_llvm_shader", func_type); LLVMSetFunctionCallConv(variant->function, LLVMCCallConv); - for(i = 0; i < Elements(arg_types); ++i) - if(LLVMGetTypeKind(arg_types[i]) == LLVMPointerTypeKind) + for (i = 0; i < Elements(arg_types); ++i) + if (LLVMGetTypeKind(arg_types[i]) == LLVMPointerTypeKind) LLVMAddAttribute(LLVMGetParam(variant->function, i), LLVMNoAliasAttribute); context_ptr = LLVMGetParam(variant->function, 0); @@ -1271,7 +1284,7 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant) store_clip(gallivm, io, outputs); /* do cliptest */ - if (enable_cliptest){ + if (enable_cliptest) { /* allocate clipmask, assign it integer type */ clipmask = generate_clipmask(gallivm, outputs, variant->key.clip_xy, @@ -1283,12 +1296,12 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant) /* return clipping boolean value for function */ clipmask_bool(gallivm, clipmask, ret_ptr); } - else{ + else { clipmask = lp_build_const_int_vec(gallivm, lp_type_int_vec(32), 0); } /* do viewport mapping */ - if (!bypass_viewport){ + if (!bypass_viewport) { generate_viewport(llvm, builder, outputs, context_ptr); } @@ -1308,7 +1321,7 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant) * Translate the LLVM IR into machine code. */ #ifdef DEBUG - if(LLVMVerifyFunction(variant->function, LLVMPrintMessageAction)) { + if (LLVMVerifyFunction(variant->function, LLVMPrintMessageAction)) { lp_debug_dump_value(variant->function); assert(0); } @@ -1375,8 +1388,8 @@ draw_llvm_generate_elts(struct draw_llvm *llvm, struct draw_llvm_variant *varian variant->function_elts = LLVMAddFunction(gallivm->module, "draw_llvm_shader_elts", func_type); LLVMSetFunctionCallConv(variant->function_elts, LLVMCCallConv); - for(i = 0; i < Elements(arg_types); ++i) - if(LLVMGetTypeKind(arg_types[i]) == LLVMPointerTypeKind) + for (i = 0; i < Elements(arg_types); ++i) + if (LLVMGetTypeKind(arg_types[i]) == LLVMPointerTypeKind) LLVMAddAttribute(LLVMGetParam(variant->function_elts, i), LLVMNoAliasAttribute); @@ -1483,7 +1496,7 @@ draw_llvm_generate_elts(struct draw_llvm *llvm, struct draw_llvm_variant *varian store_clip(gallivm, io, outputs); /* do cliptest */ - if (enable_cliptest){ + if (enable_cliptest) { /* allocate clipmask, assign it integer type */ clipmask = generate_clipmask(gallivm, outputs, variant->key.clip_xy, @@ -1495,12 +1508,12 @@ draw_llvm_generate_elts(struct draw_llvm *llvm, struct draw_llvm_variant *varian /* return clipping boolean value for function */ clipmask_bool(gallivm, clipmask, ret_ptr); } - else{ + else { clipmask = lp_build_const_int_vec(gallivm, lp_type_int_vec(32), 0); } /* do viewport mapping */ - if (!bypass_viewport){ + if (!bypass_viewport) { generate_viewport(llvm, builder, outputs, context_ptr); } @@ -1523,7 +1536,7 @@ draw_llvm_generate_elts(struct draw_llvm *llvm, struct draw_llvm_variant *varian * Translate the LLVM IR into machine code. */ #ifdef DEBUG - if(LLVMVerifyFunction(variant->function_elts, LLVMPrintMessageAction)) { + if (LLVMVerifyFunction(variant->function_elts, LLVMPrintMessageAction)) { lp_debug_dump_value(variant->function_elts); assert(0); } @@ -1595,6 +1608,7 @@ draw_llvm_make_variant_key(struct draw_llvm *llvm, char *store) return key; } + void draw_llvm_set_mapped_texture(struct draw_context *draw, unsigned sampler_idx, @@ -1609,7 +1623,6 @@ draw_llvm_set_mapped_texture(struct draw_context *draw, assert(sampler_idx < PIPE_MAX_VERTEX_SAMPLERS); - jit_tex = &draw->llvm->jit_context.textures[sampler_idx]; jit_tex->width = width; From b3e75a61eed372cde15b56dcd51c251c129a22c8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 7 Jun 2011 07:55:06 -0600 Subject: [PATCH 053/145] draw: rename draw_vs_varient.c to draw_vs_variant.c --- src/gallium/auxiliary/Makefile | 2 +- src/gallium/auxiliary/SConscript | 2 +- .../auxiliary/draw/{draw_vs_varient.c => draw_vs_variant.c} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/gallium/auxiliary/draw/{draw_vs_varient.c => draw_vs_variant.c} (100%) diff --git a/src/gallium/auxiliary/Makefile b/src/gallium/auxiliary/Makefile index 2be4509b7a5..d10f9cd49cb 100644 --- a/src/gallium/auxiliary/Makefile +++ b/src/gallium/auxiliary/Makefile @@ -44,7 +44,7 @@ C_SOURCES = \ draw/draw_vs_exec.c \ draw/draw_vs_ppc.c \ draw/draw_vs_sse.c \ - draw/draw_vs_varient.c \ + draw/draw_vs_variant.c \ indices/u_indices_gen.c \ indices/u_unfilled_gen.c \ os/os_misc.c \ diff --git a/src/gallium/auxiliary/SConscript b/src/gallium/auxiliary/SConscript index 96ca566ff66..457911d2f1f 100644 --- a/src/gallium/auxiliary/SConscript +++ b/src/gallium/auxiliary/SConscript @@ -88,7 +88,7 @@ source = [ 'draw/draw_vs_exec.c', 'draw/draw_vs_ppc.c', 'draw/draw_vs_sse.c', - 'draw/draw_vs_varient.c', + 'draw/draw_vs_variant.c', #'indices/u_indices.c', #'indices/u_unfilled_indices.c', 'indices/u_indices_gen.c', diff --git a/src/gallium/auxiliary/draw/draw_vs_varient.c b/src/gallium/auxiliary/draw/draw_vs_variant.c similarity index 100% rename from src/gallium/auxiliary/draw/draw_vs_varient.c rename to src/gallium/auxiliary/draw/draw_vs_variant.c From 681ed756c05ad0be03425417dce18fb1d525e0bd Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 7 Jun 2011 07:57:04 -0600 Subject: [PATCH 054/145] tgsi: s/varient/variant/ --- src/gallium/auxiliary/tgsi/tgsi_ureg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.h b/src/gallium/auxiliary/tgsi/tgsi_ureg.h index 9d5553f0ea0..e3a4915d03c 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.h +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.h @@ -65,7 +65,7 @@ struct ureg_src /* Very similar to a tgsi_dst_register, removing unsupported fields * and adding a Saturate flag. It's easier to push saturate into the - * destination register than to try and create a _SAT varient of each + * destination register than to try and create a _SAT variant of each * instruction function. */ struct ureg_dst @@ -434,7 +434,7 @@ ureg_fixup_label(struct ureg_program *ureg, /* Generic instruction emitter. Use if you need to pass the opcode as - * a parameter, rather than using the emit_OP() varients below. + * a parameter, rather than using the emit_OP() variants below. */ void ureg_insn(struct ureg_program *ureg, From 09f83ce4da3d8c6320929bdd7feacc9914b55ac6 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 30 May 2011 11:58:32 +0200 Subject: [PATCH 055/145] Add intel pci id lists Reviewed-by: Alex Deucher --- Makefile | 1 + include/pci_ids/i810_pci_ids.h | 4 ++++ include/pci_ids/i915_pci_ids.h | 15 +++++++++++++++ include/pci_ids/i965_pci_ids.h | 27 +++++++++++++++++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 include/pci_ids/i810_pci_ids.h create mode 100644 include/pci_ids/i915_pci_ids.h create mode 100644 include/pci_ids/i965_pci_ids.h diff --git a/Makefile b/Makefile index f3c0a20a3c2..e77e64925d2 100644 --- a/Makefile +++ b/Makefile @@ -230,6 +230,7 @@ MAIN_FILES = \ $(DIRECTORY)/include/GL/vms_x_fix.h \ $(DIRECTORY)/include/GL/wglext.h \ $(DIRECTORY)/include/GL/wmesa.h \ + $(DIRECTORY)/include/pci_ids/*.h \ $(DIRECTORY)/src/getopt/SConscript \ $(DIRECTORY)/src/getopt/getopt*.[ch] \ $(DIRECTORY)/src/glsl/Makefile \ diff --git a/include/pci_ids/i810_pci_ids.h b/include/pci_ids/i810_pci_ids.h new file mode 100644 index 00000000000..7f681925dc9 --- /dev/null +++ b/include/pci_ids/i810_pci_ids.h @@ -0,0 +1,4 @@ +CHIPSET(0x7121, I810, i8xx) +CHIPSET(0x7123, I810_DC100, i8xx) +CHIPSET(0x7125, I810_E, i8xx) +CHIPSET(0x1132, I815, i8xx) diff --git a/include/pci_ids/i915_pci_ids.h b/include/pci_ids/i915_pci_ids.h new file mode 100644 index 00000000000..551c010a9a7 --- /dev/null +++ b/include/pci_ids/i915_pci_ids.h @@ -0,0 +1,15 @@ +CHIPSET(0x3577, I830_M, i8xx) +CHIPSET(0x2562, 845_G, i8xx) +CHIPSET(0x3582, I855_GM, i8xx) +CHIPSET(0x2572, I865_G, i8xx) +CHIPSET(0x2582, I915_G, i915) +CHIPSET(0x258A, E7221_G, i915) +CHIPSET(0x2592, I915_GM, i915) +CHIPSET(0x2772, I945_G, i945) +CHIPSET(0x27A2, I945_GM, i945) +CHIPSET(0x27AE, I945_GME, i945) +CHIPSET(0x29B2, Q35_G, i945) +CHIPSET(0x29C2, G33_G, i945) +CHIPSET(0x29D2, Q33_G, i945) +CHIPSET(0xA011, IGD_GM, i945) +CHIPSET(0xA001, IGD_G, i945) diff --git a/include/pci_ids/i965_pci_ids.h b/include/pci_ids/i965_pci_ids.h new file mode 100644 index 00000000000..d37a2eed4b0 --- /dev/null +++ b/include/pci_ids/i965_pci_ids.h @@ -0,0 +1,27 @@ +CHIPSET(0x29A2, I965_G, i965) +CHIPSET(0x2992, I965_Q, i965) +CHIPSET(0x2982, I965_G_1, i965) +CHIPSET(0x2972, I946_GZ, i965) +CHIPSET(0x2A02, I965_GM, i965) +CHIPSET(0x2A12, I965_GME, i965) +CHIPSET(0x2A42, GM45_GM, g4x) +CHIPSET(0x2E02, IGD_E_G, g4x) +CHIPSET(0x2E12, Q45_G, g4x) +CHIPSET(0x2E22, G45_G, g4x) +CHIPSET(0x2E32, G41_G, g4x) +CHIPSET(0x2E42, B43_G, g4x) +CHIPSET(0x2E92, B43_G1, g4x) +CHIPSET(0x0042, ILD_G, ilk) +CHIPSET(0x0046, ILM_G, ilk) +CHIPSET(0x0102, SANDYBRIDGE_GT1, snb_gt1) +CHIPSET(0x0112, SANDYBRIDGE_GT2, snb_gt2) +CHIPSET(0x0122, SANDYBRIDGE_GT2_PLUS, snb_gt2) +CHIPSET(0x0106, SANDYBRIDGE_M_GT1, snb_gt1) +CHIPSET(0x0116, SANDYBRIDGE_M_GT2, snb_gt2) +CHIPSET(0x0126, SANDYBRIDGE_M_GT2_PLUS, snb_gt2) +CHIPSET(0x010A, SANDYBRIDGE_S, snb_gt1) +CHIPSET(0x0152, IVYBRIDGE_GT1, ivb_gt1) +CHIPSET(0x0162, IVYBRIDGE_GT2, ivb_gt2) +CHIPSET(0x0156, IVYBRIDGE_M_GT1, ivb_gt1) +CHIPSET(0x0166, IVYBRIDGE_M_GT2, ivb_gt2) +CHIPSET(0x015a, IVYBRIDGE_S_GT1, ivb_gt1) From 88fd16d548f556665f6321c2c00edd4650fc99cd Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 26 May 2011 14:54:38 +0200 Subject: [PATCH 056/145] Add radeon pci id lists Reviewed-by: Alex Deucher --- include/pci_ids/r200_pci_ids.h | 22 +++ include/pci_ids/r300_pci_ids.h | 218 +++++++++++++++++++++++++ include/pci_ids/r600_pci_ids.h | 263 +++++++++++++++++++++++++++++++ include/pci_ids/radeon_pci_ids.h | 23 +++ 4 files changed, 526 insertions(+) create mode 100644 include/pci_ids/r200_pci_ids.h create mode 100644 include/pci_ids/r300_pci_ids.h create mode 100644 include/pci_ids/r600_pci_ids.h create mode 100644 include/pci_ids/radeon_pci_ids.h diff --git a/include/pci_ids/r200_pci_ids.h b/include/pci_ids/r200_pci_ids.h new file mode 100644 index 00000000000..1fac6c17eec --- /dev/null +++ b/include/pci_ids/r200_pci_ids.h @@ -0,0 +1,22 @@ +CHIPSET(0x5148, R200_QH, R200) +CHIPSET(0x514C, R200_QL, R200) +CHIPSET(0x514D, R200_QM, R200) +CHIPSET(0x4242, R200_BB, R200) + +CHIPSET(0x4966, RV250_If, RV250) +CHIPSET(0x4967, RV250_Ig, RV250) +CHIPSET(0x4C64, RV250_Ld, RV250) +CHIPSET(0x4C66, RV250_Lf, RV250) +CHIPSET(0x4C67, RV250_Lg, RV250) + +CHIPSET(0x5960, RV280_5960, RV280) +CHIPSET(0x5961, RV280_5961, RV280) +CHIPSET(0x5962, RV280_5962, RV280) +CHIPSET(0x5964, RV280_5964, RV280) +CHIPSET(0x5965, RV280_5965, RV280) +CHIPSET(0x5C61, RV280_5C61, RV280) +CHIPSET(0x5C63, RV280_5C63, RV280) +CHIPSET(0x5834, RS300_5834, RS300) +CHIPSET(0x5835, RS300_5835, RS300) +CHIPSET(0x7834, RS350_7834, RS300) +CHIPSET(0x7835, RS350_7835, RS300) diff --git a/include/pci_ids/r300_pci_ids.h b/include/pci_ids/r300_pci_ids.h new file mode 100644 index 00000000000..720a7469003 --- /dev/null +++ b/include/pci_ids/r300_pci_ids.h @@ -0,0 +1,218 @@ +CHIPSET(0x4144, R300_AD, R300) +CHIPSET(0x4145, R300_AE, R300) +CHIPSET(0x4146, R300_AF, R300) +CHIPSET(0x4147, R300_AG, R300) +CHIPSET(0x4E44, R300_ND, R300) +CHIPSET(0x4E45, R300_NE, R300) +CHIPSET(0x4E46, R300_NF, R300) +CHIPSET(0x4E47, R300_NG, R300) +CHIPSET(0x4E48, R350_NH, R350) + +CHIPSET(0x4E49, R350_NI, R350) +CHIPSET(0x4E4B, R350_NK, R350) +CHIPSET(0x4148, R350_AH, R350) +CHIPSET(0x4149, R350_AI, R350) +CHIPSET(0x414A, R350_AJ, R350) +CHIPSET(0x414B, R350_AK, R350) +CHIPSET(0x4E4A, R360_NJ, R350) + +CHIPSET(0x4150, RV350_AP, RV350) +CHIPSET(0x4151, RV350_AQ, RV350) +CHIPSET(0x4152, RV350_AR, RV350) +CHIPSET(0x4153, RV350_AS, RV350) +CHIPSET(0x4154, RV350_AT, RV350) +CHIPSET(0x4155, RV350_AU, RV350) +CHIPSET(0x4156, RV350_AV, RV350) +CHIPSET(0x4E50, RV350_NP, RV350) +CHIPSET(0x4E51, RV350_NQ, RV350) +CHIPSET(0x4E52, RV350_NR, RV350) +CHIPSET(0x4E53, RV350_NS, RV350) +CHIPSET(0x4E54, RV350_NT, RV350) +CHIPSET(0x4E56, RV350_NV, RV350) + +CHIPSET(0x5460, RV370_5460, RV380) +CHIPSET(0x5462, RV370_5462, RV380) +CHIPSET(0x5464, RV370_5464, RV380) +CHIPSET(0x5B60, RV370_5B60, RV380) +CHIPSET(0x5B62, RV370_5B62, RV380) +CHIPSET(0x5B63, RV370_5B63, RV380) +CHIPSET(0x5B64, RV370_5B64, RV380) +CHIPSET(0x5B65, RV370_5B65, RV380) +CHIPSET(0x3150, RV380_3150, RV380) +CHIPSET(0x3152, RV380_3152, RV380) +CHIPSET(0x3154, RV380_3154, RV380) +CHIPSET(0x3155, RV380_3155, RV380) +CHIPSET(0x3E50, RV380_3E50, RV380) +CHIPSET(0x3E54, RV380_3E54, RV380) + +CHIPSET(0x4A48, R420_JH, R420) +CHIPSET(0x4A49, R420_JI, R420) +CHIPSET(0x4A4A, R420_JJ, R420) +CHIPSET(0x4A4B, R420_JK, R420) +CHIPSET(0x4A4C, R420_JL, R420) +CHIPSET(0x4A4D, R420_JM, R420) +CHIPSET(0x4A4E, R420_JN, R420) +CHIPSET(0x4A4F, R420_JO, R420) +CHIPSET(0x4A50, R420_JP, R420) +CHIPSET(0x4A54, R420_JT, R420) +CHIPSET(0x5548, R423_UH, R420) +CHIPSET(0x5549, R423_UI, R420) +CHIPSET(0x554A, R423_UJ, R420) +CHIPSET(0x554B, R423_UK, R420) +CHIPSET(0x5550, R423_5550, R420) +CHIPSET(0x5551, R423_UQ, R420) +CHIPSET(0x5552, R423_UR, R420) +CHIPSET(0x5554, R423_UT, R420) +CHIPSET(0x5D57, R423_5D57, R420) +CHIPSET(0x554C, R430_554C, R420) +CHIPSET(0x554D, R430_554D, R420) +CHIPSET(0x554E, R430_554E, R420) +CHIPSET(0x554F, R430_554F, R420) +CHIPSET(0x5D48, R430_5D48, R420) +CHIPSET(0x5D49, R430_5D49, R420) +CHIPSET(0x5D4A, R430_5D4A, R420) +CHIPSET(0x5D4C, R480_5D4C, R420) +CHIPSET(0x5D4D, R480_5D4D, R420) +CHIPSET(0x5D4E, R480_5D4E, R420) +CHIPSET(0x5D4F, R480_5D4F, R420) +CHIPSET(0x5D50, R480_5D50, R420) +CHIPSET(0x5D52, R480_5D52, R420) +CHIPSET(0x4B49, R481_4B49, R420) +CHIPSET(0x4B4A, R481_4B4A, R420) +CHIPSET(0x4B4B, R481_4B4B, R420) +CHIPSET(0x4B4C, R481_4B4C, R420) + +CHIPSET(0x564A, RV410_564A, RV410) +CHIPSET(0x564B, RV410_564B, RV410) +CHIPSET(0x564F, RV410_564F, RV410) +CHIPSET(0x5652, RV410_5652, RV410) +CHIPSET(0x5653, RV410_5653, RV410) +CHIPSET(0x5657, RV410_5657, RV410) +CHIPSET(0x5E48, RV410_5E48, RV410) +CHIPSET(0x5E4A, RV410_5E4A, RV410) +CHIPSET(0x5E4B, RV410_5E4B, RV410) +CHIPSET(0x5E4C, RV410_5E4C, RV410) +CHIPSET(0x5E4D, RV410_5E4D, RV410) +CHIPSET(0x5E4F, RV410_5E4F, RV410) + +CHIPSET(0x5A41, RS400_5A41, RS400) +CHIPSET(0x5A42, RS400_5A42, RS400) +CHIPSET(0x5A61, RC410_5A61, RS400) +CHIPSET(0x5A62, RC410_5A62, RS400) +CHIPSET(0x5954, RS480_5954, RS400) +CHIPSET(0x5955, RS480_5955, RS400) +CHIPSET(0x5974, RS482_5974, RS400) +CHIPSET(0x5975, RS482_5975, RS400) + +CHIPSET(0x7100, R520_7100, R520) +CHIPSET(0x7101, R520_7101, R520) +CHIPSET(0x7102, R520_7102, R520) +CHIPSET(0x7103, R520_7103, R520) +CHIPSET(0x7104, R520_7104, R520) +CHIPSET(0x7105, R520_7105, R520) +CHIPSET(0x7106, R520_7106, R520) +CHIPSET(0x7108, R520_7108, R520) +CHIPSET(0x7109, R520_7109, R520) +CHIPSET(0x710A, R520_710A, R520) +CHIPSET(0x710B, R520_710B, R520) +CHIPSET(0x710C, R520_710C, R520) +CHIPSET(0x710E, R520_710E, R520) +CHIPSET(0x710F, R520_710F, R520) + +CHIPSET(0x7140, RV515_7140, RV515) +CHIPSET(0x7141, RV515_7141, RV515) +CHIPSET(0x7142, RV515_7142, RV515) +CHIPSET(0x7143, RV515_7143, RV515) +CHIPSET(0x7144, RV515_7144, RV515) +CHIPSET(0x7145, RV515_7145, RV515) +CHIPSET(0x7146, RV515_7146, RV515) +CHIPSET(0x7147, RV515_7147, RV515) +CHIPSET(0x7149, RV515_7149, RV515) +CHIPSET(0x714A, RV515_714A, RV515) +CHIPSET(0x714B, RV515_714B, RV515) +CHIPSET(0x714C, RV515_714C, RV515) +CHIPSET(0x714D, RV515_714D, RV515) +CHIPSET(0x714E, RV515_714E, RV515) +CHIPSET(0x714F, RV515_714F, RV515) +CHIPSET(0x7151, RV515_7151, RV515) +CHIPSET(0x7152, RV515_7152, RV515) +CHIPSET(0x7153, RV515_7153, RV515) +CHIPSET(0x715E, RV515_715E, RV515) +CHIPSET(0x715F, RV515_715F, RV515) +CHIPSET(0x7180, RV515_7180, RV515) +CHIPSET(0x7181, RV515_7181, RV515) +CHIPSET(0x7183, RV515_7183, RV515) +CHIPSET(0x7186, RV515_7186, RV515) +CHIPSET(0x7187, RV515_7187, RV515) +CHIPSET(0x7188, RV515_7188, RV515) +CHIPSET(0x718A, RV515_718A, RV515) +CHIPSET(0x718B, RV515_718B, RV515) +CHIPSET(0x718C, RV515_718C, RV515) +CHIPSET(0x718D, RV515_718D, RV515) +CHIPSET(0x718F, RV515_718F, RV515) +CHIPSET(0x7193, RV515_7193, RV515) +CHIPSET(0x7196, RV515_7196, RV515) +CHIPSET(0x719B, RV515_719B, RV515) +CHIPSET(0x719F, RV515_719F, RV515) +CHIPSET(0x7200, RV515_7200, RV515) +CHIPSET(0x7210, RV515_7210, RV515) +CHIPSET(0x7211, RV515_7211, RV515) + +CHIPSET(0x71C0, RV530_71C0, RV530) +CHIPSET(0x71C1, RV530_71C1, RV530) +CHIPSET(0x71C2, RV530_71C2, RV530) +CHIPSET(0x71C3, RV530_71C3, RV530) +CHIPSET(0x71C4, RV530_71C4, RV530) +CHIPSET(0x71C5, RV530_71C5, RV530) +CHIPSET(0x71C6, RV530_71C6, RV530) +CHIPSET(0x71C7, RV530_71C7, RV530) +CHIPSET(0x71CD, RV530_71CD, RV530) +CHIPSET(0x71CE, RV530_71CE, RV530) +CHIPSET(0x71D2, RV530_71D2, RV530) +CHIPSET(0x71D4, RV530_71D4, RV530) +CHIPSET(0x71D5, RV530_71D5, RV530) +CHIPSET(0x71D6, RV530_71D6, RV530) +CHIPSET(0x71DA, RV530_71DA, RV530) +CHIPSET(0x71DE, RV530_71DE, RV530) + +CHIPSET(0x7281, RV560_7281, RV560) +CHIPSET(0x7283, RV560_7283, RV560) +CHIPSET(0x7287, RV560_7287, RV560) +CHIPSET(0x7290, RV560_7290, RV560) +CHIPSET(0x7291, RV560_7291, RV560) +CHIPSET(0x7293, RV560_7293, RV560) +CHIPSET(0x7297, RV560_7297, RV560) + +CHIPSET(0x7280, RV570_7280, RV570) +CHIPSET(0x7288, RV570_7288, RV570) +CHIPSET(0x7289, RV570_7289, RV570) +CHIPSET(0x728B, RV570_728B, RV570) +CHIPSET(0x728C, RV570_728C, RV570) + +CHIPSET(0x7240, R580_7240, R580) +CHIPSET(0x7243, R580_7243, R580) +CHIPSET(0x7244, R580_7244, R580) +CHIPSET(0x7245, R580_7245, R580) +CHIPSET(0x7246, R580_7246, R580) +CHIPSET(0x7247, R580_7247, R580) +CHIPSET(0x7248, R580_7248, R580) +CHIPSET(0x7249, R580_7249, R580) +CHIPSET(0x724A, R580_724A, R580) +CHIPSET(0x724B, R580_724B, R580) +CHIPSET(0x724C, R580_724C, R580) +CHIPSET(0x724D, R580_724D, R580) +CHIPSET(0x724E, R580_724E, R580) +CHIPSET(0x724F, R580_724F, R580) +CHIPSET(0x7284, R580_7284, R580) + +CHIPSET(0x793F, RS600_793F, RS600) +CHIPSET(0x7941, RS600_7941, RS600) +CHIPSET(0x7942, RS600_7942, RS600) + +CHIPSET(0x791E, RS690_791E, RS690) +CHIPSET(0x791F, RS690_791F, RS690) + +CHIPSET(0x796C, RS740_796C, RS740) +CHIPSET(0x796D, RS740_796D, RS740) +CHIPSET(0x796E, RS740_796E, RS740) +CHIPSET(0x796F, RS740_796F, RS740) diff --git a/include/pci_ids/r600_pci_ids.h b/include/pci_ids/r600_pci_ids.h new file mode 100644 index 00000000000..3340458d011 --- /dev/null +++ b/include/pci_ids/r600_pci_ids.h @@ -0,0 +1,263 @@ +CHIPSET(0x9400, R600_9400, R600) +CHIPSET(0x9401, R600_9401, R600) +CHIPSET(0x9402, R600_9402, R600) +CHIPSET(0x9403, R600_9403, R600) +CHIPSET(0x9405, R600_9405, R600) +CHIPSET(0x940A, R600_940A, R600) +CHIPSET(0x940B, R600_940B, R600) +CHIPSET(0x940F, R600_940F, R600) + +CHIPSET(0x94C0, RV610_94C0, RV610) +CHIPSET(0x94C1, RV610_94C1, RV610) +CHIPSET(0x94C3, RV610_94C3, RV610) +CHIPSET(0x94C4, RV610_94C4, RV610) +CHIPSET(0x94C5, RV610_94C5, RV610) +CHIPSET(0x94C6, RV610_94C6, RV610) +CHIPSET(0x94C7, RV610_94C7, RV610) +CHIPSET(0x94C8, RV610_94C8, RV610) +CHIPSET(0x94C9, RV610_94C9, RV610) +CHIPSET(0x94CB, RV610_94CB, RV610) +CHIPSET(0x94CC, RV610_94CC, RV610) +CHIPSET(0x94CD, RV610_94CD, RV610) + +CHIPSET(0x9580, RV630_9580, RV630) +CHIPSET(0x9581, RV630_9581, RV630) +CHIPSET(0x9583, RV630_9583, RV630) +CHIPSET(0x9586, RV630_9586, RV630) +CHIPSET(0x9587, RV630_9587, RV630) +CHIPSET(0x9588, RV630_9588, RV630) +CHIPSET(0x9589, RV630_9589, RV630) +CHIPSET(0x958A, RV630_958A, RV630) +CHIPSET(0x958B, RV630_958B, RV630) +CHIPSET(0x958C, RV630_958C, RV630) +CHIPSET(0x958D, RV630_958D, RV630) +CHIPSET(0x958E, RV630_958E, RV630) +CHIPSET(0x958F, RV630_958F, RV630) + +CHIPSET(0x9500, RV670_9500, RV670) +CHIPSET(0x9501, RV670_9501, RV670) +CHIPSET(0x9504, RV670_9504, RV670) +CHIPSET(0x9505, RV670_9505, RV670) +CHIPSET(0x9506, RV670_9506, RV670) +CHIPSET(0x9507, RV670_9507, RV670) +CHIPSET(0x9508, RV670_9508, RV670) +CHIPSET(0x9509, RV670_9509, RV670) +CHIPSET(0x950F, RV670_950F, RV670) +CHIPSET(0x9511, RV670_9511, RV670) +CHIPSET(0x9515, RV670_9515, RV670) +CHIPSET(0x9517, RV670_9517, RV670) +CHIPSET(0x9519, RV670_9519, RV670) + +CHIPSET(0x95C0, RV620_95C0, RV620) +CHIPSET(0x95C2, RV620_95C2, RV620) +CHIPSET(0x95C4, RV620_95C4, RV620) +CHIPSET(0x95C5, RV620_95C5, RV620) +CHIPSET(0x95C6, RV620_95C6, RV620) +CHIPSET(0x95C7, RV620_95C7, RV620) +CHIPSET(0x95C9, RV620_95C9, RV620) +CHIPSET(0x95CC, RV620_95CC, RV620) +CHIPSET(0x95CD, RV620_95CD, RV620) +CHIPSET(0x95CE, RV620_95CE, RV620) +CHIPSET(0x95CF, RV620_95CF, RV620) + +CHIPSET(0x9590, RV635_9590, RV635) +CHIPSET(0x9591, RV635_9591, RV635) +CHIPSET(0x9593, RV635_9593, RV635) +CHIPSET(0x9595, RV635_9595, RV635) +CHIPSET(0x9596, RV635_9596, RV635) +CHIPSET(0x9597, RV635_9597, RV635) +CHIPSET(0x9598, RV635_9598, RV635) +CHIPSET(0x9599, RV635_9599, RV635) +CHIPSET(0x959B, RV635_959B, RV635) + +CHIPSET(0x9610, RS780_9610, RS780) +CHIPSET(0x9611, RS780_9611, RS780) +CHIPSET(0x9612, RS780_9612, RS780) +CHIPSET(0x9613, RS780_9613, RS780) +CHIPSET(0x9614, RS780_9614, RS780) +CHIPSET(0x9615, RS780_9615, RS780) +CHIPSET(0x9616, RS780_9616, RS780) + +CHIPSET(0x9710, RS880_9710, RS880) +CHIPSET(0x9711, RS880_9711, RS880) +CHIPSET(0x9712, RS880_9712, RS880) +CHIPSET(0x9713, RS880_9713, RS880) +CHIPSET(0x9714, RS880_9714, RS880) +CHIPSET(0x9715, RS880_9715, RS880) + +CHIPSET(0x9440, RV770_9440, RV770) +CHIPSET(0x9441, RV770_9441, RV770) +CHIPSET(0x9442, RV770_9442, RV770) +CHIPSET(0x9443, RV770_9443, RV770) +CHIPSET(0x9444, RV770_9444, RV770) +CHIPSET(0x9446, RV770_9446, RV770) +CHIPSET(0x944A, RV770_944A, RV770) +CHIPSET(0x944B, RV770_944B, RV770) +CHIPSET(0x944C, RV770_944C, RV770) +CHIPSET(0x944E, RV770_944E, RV770) +CHIPSET(0x9450, RV770_9450, RV770) +CHIPSET(0x9452, RV770_9452, RV770) +CHIPSET(0x9456, RV770_9456, RV770) +CHIPSET(0x945A, RV770_945A, RV770) +CHIPSET(0x945B, RV770_945B, RV770) +CHIPSET(0x945E, RV770_945E, RV770) +CHIPSET(0x9460, RV790_9460, RV770) +CHIPSET(0x9462, RV790_9462, RV770) +CHIPSET(0x946A, RV770_946A, RV770) +CHIPSET(0x946B, RV770_946B, RV770) +CHIPSET(0x947A, RV770_947A, RV770) +CHIPSET(0x947B, RV770_947B, RV770) + +CHIPSET(0x9480, RV730_9480, RV730) +CHIPSET(0x9487, RV730_9487, RV730) +CHIPSET(0x9488, RV730_9488, RV730) +CHIPSET(0x9489, RV730_9489, RV730) +CHIPSET(0x948A, RV730_948A, RV730) +CHIPSET(0x948F, RV730_948F, RV730) +CHIPSET(0x9490, RV730_9490, RV730) +CHIPSET(0x9491, RV730_9491, RV730) +CHIPSET(0x9495, RV730_9495, RV730) +CHIPSET(0x9498, RV730_9498, RV730) +CHIPSET(0x949C, RV730_949C, RV730) +CHIPSET(0x949E, RV730_949E, RV730) +CHIPSET(0x949F, RV730_949F, RV730) + +CHIPSET(0x9540, RV710_9540, RV710) +CHIPSET(0x9541, RV710_9541, RV710) +CHIPSET(0x9542, RV710_9542, RV710) +CHIPSET(0x954E, RV710_954E, RV710) +CHIPSET(0x954F, RV710_954F, RV710) +CHIPSET(0x9552, RV710_9552, RV710) +CHIPSET(0x9553, RV710_9553, RV710) +CHIPSET(0x9555, RV710_9555, RV710) +CHIPSET(0x9557, RV710_9557, RV710) +CHIPSET(0x955F, RV710_955F, RV710) + +CHIPSET(0x94A0, RV740_94A0, RV740) +CHIPSET(0x94A1, RV740_94A1, RV740) +CHIPSET(0x94A3, RV740_94A3, RV740) +CHIPSET(0x94B1, RV740_94B1, RV740) +CHIPSET(0x94B3, RV740_94B3, RV740) +CHIPSET(0x94B4, RV740_94B4, RV740) +CHIPSET(0x94B5, RV740_94B5, RV740) +CHIPSET(0x94B9, RV740_94B9, RV740) + +CHIPSET(0x68E0, CEDAR_68E0, CEDAR) +CHIPSET(0x68E1, CEDAR_68E1, CEDAR) +CHIPSET(0x68E4, CEDAR_68E4, CEDAR) +CHIPSET(0x68E5, CEDAR_68E5, CEDAR) +CHIPSET(0x68E8, CEDAR_68E8, CEDAR) +CHIPSET(0x68E9, CEDAR_68E9, CEDAR) +CHIPSET(0x68F1, CEDAR_68F1, CEDAR) +CHIPSET(0x68F2, CEDAR_68F2, CEDAR) +CHIPSET(0x68F8, CEDAR_68F8, CEDAR) +CHIPSET(0x68F9, CEDAR_68F9, CEDAR) +CHIPSET(0x68FE, CEDAR_68FE, CEDAR) + +CHIPSET(0x68C0, REDWOOD_68C0, REDWOOD) +CHIPSET(0x68C1, REDWOOD_68C1, REDWOOD) +CHIPSET(0x68C8, REDWOOD_68C8, REDWOOD) +CHIPSET(0x68C9, REDWOOD_68C9, REDWOOD) +CHIPSET(0x68D8, REDWOOD_68D8, REDWOOD) +CHIPSET(0x68D9, REDWOOD_68D9, REDWOOD) +CHIPSET(0x68DA, REDWOOD_68DA, REDWOOD) +CHIPSET(0x68DE, REDWOOD_68DE, REDWOOD) + +CHIPSET(0x68A0, JUNIPER_68A0, JUNIPER) +CHIPSET(0x68A1, JUNIPER_68A1, JUNIPER) +CHIPSET(0x68A8, JUNIPER_68A8, JUNIPER) +CHIPSET(0x68A9, JUNIPER_68A9, JUNIPER) +CHIPSET(0x68B0, JUNIPER_68B0, JUNIPER) +CHIPSET(0x68B8, JUNIPER_68B8, JUNIPER) +CHIPSET(0x68B9, JUNIPER_68B9, JUNIPER) +CHIPSET(0x68BA, JUNIPER_68BA, JUNIPER) +CHIPSET(0x68BE, JUNIPER_68BE, JUNIPER) +CHIPSET(0x68BF, JUNIPER_68BF, JUNIPER) + +CHIPSET(0x6880, CYPRESS_6880, CYPRESS) +CHIPSET(0x6888, CYPRESS_6888, CYPRESS) +CHIPSET(0x6889, CYPRESS_6889, CYPRESS) +CHIPSET(0x688A, CYPRESS_688A, CYPRESS) +CHIPSET(0x6898, CYPRESS_6898, CYPRESS) +CHIPSET(0x6899, CYPRESS_6899, CYPRESS) +CHIPSET(0x689B, CYPRESS_689B, CYPRESS) +CHIPSET(0x689E, CYPRESS_689E, CYPRESS) + +CHIPSET(0x689C, HEMLOCK_689C, HEMLOCK) +CHIPSET(0x689D, HEMLOCK_689D, HEMLOCK) + +CHIPSET(0x9802, PALM_9802, PALM) +CHIPSET(0x9803, PALM_9803, PALM) +CHIPSET(0x9804, PALM_9804, PALM) +CHIPSET(0x9805, PALM_9805, PALM) +CHIPSET(0x9806, PALM_9806, PALM) +CHIPSET(0x9807, PALM_9807, PALM) + +CHIPSET(0x9640, SUMO_9640, SUMO) +CHIPSET(0x9641, SUMO_9641, SUMO) +CHIPSET(0x9642, SUMO2_9642, SUMO2) +CHIPSET(0x9643, SUMO2_9643, SUMO2) +CHIPSET(0x9644, SUMO2_9644, SUMO2) +CHIPSET(0x9645, SUMO2_9645, SUMO2) +CHIPSET(0x9647, SUMO_9647, SUMO) +CHIPSET(0x9648, SUMO_9648, SUMO) +CHIPSET(0x964a, SUMO_964A, SUMO) +CHIPSET(0x964e, SUMO_964E, SUMO) +CHIPSET(0x964f, SUMO_964F, SUMO) + +#ifndef RADEON_CLASSIC +CHIPSET(0x6700, CAYMAN_6700, CAYMAN) +CHIPSET(0x6701, CAYMAN_6701, CAYMAN) +CHIPSET(0x6702, CAYMAN_6702, CAYMAN) +CHIPSET(0x6703, CAYMAN_6703, CAYMAN) +CHIPSET(0x6704, CAYMAN_6704, CAYMAN) +CHIPSET(0x6705, CAYMAN_6705, CAYMAN) +CHIPSET(0x6706, CAYMAN_6706, CAYMAN) +CHIPSET(0x6707, CAYMAN_6707, CAYMAN) +CHIPSET(0x6708, CAYMAN_6708, CAYMAN) +CHIPSET(0x6709, CAYMAN_6709, CAYMAN) +CHIPSET(0x6718, CAYMAN_6718, CAYMAN) +CHIPSET(0x6719, CAYMAN_6719, CAYMAN) +CHIPSET(0x671C, CAYMAN_671C, CAYMAN) +CHIPSET(0x671D, CAYMAN_671D, CAYMAN) +CHIPSET(0x671F, CAYMAN_671F, CAYMAN) +#endif + +CHIPSET(0x6720, BARTS_6720, BARTS) +CHIPSET(0x6721, BARTS_6721, BARTS) +CHIPSET(0x6722, BARTS_6722, BARTS) +CHIPSET(0x6723, BARTS_6723, BARTS) +CHIPSET(0x6724, BARTS_6724, BARTS) +CHIPSET(0x6725, BARTS_6725, BARTS) +CHIPSET(0x6726, BARTS_6726, BARTS) +CHIPSET(0x6727, BARTS_6727, BARTS) +CHIPSET(0x6728, BARTS_6728, BARTS) +CHIPSET(0x6729, BARTS_6729, BARTS) +CHIPSET(0x6738, BARTS_6738, BARTS) +CHIPSET(0x6739, BARTS_6739, BARTS) +CHIPSET(0x673E, BARTS_673E, BARTS) +CHIPSET(0x6740, TURKS_6740, TURKS) +CHIPSET(0x6741, TURKS_6741, TURKS) +CHIPSET(0x6742, TURKS_6742, TURKS) +CHIPSET(0x6743, TURKS_6743, TURKS) +CHIPSET(0x6744, TURKS_6744, TURKS) +CHIPSET(0x6745, TURKS_6745, TURKS) +CHIPSET(0x6746, TURKS_6746, TURKS) +CHIPSET(0x6747, TURKS_6747, TURKS) +CHIPSET(0x6748, TURKS_6748, TURKS) +CHIPSET(0x6749, TURKS_6749, TURKS) +CHIPSET(0x6750, TURKS_6750, TURKS) +CHIPSET(0x6758, TURKS_6758, TURKS) +CHIPSET(0x6759, TURKS_6759, TURKS) + +CHIPSET(0x6760, CAICOS_6760, CAICOS) +CHIPSET(0x6761, CAICOS_6761, CAICOS) +CHIPSET(0x6762, CAICOS_6762, CAICOS) +CHIPSET(0x6763, CAICOS_6763, CAICOS) +CHIPSET(0x6764, CAICOS_6764, CAICOS) +CHIPSET(0x6765, CAICOS_6765, CAICOS) +CHIPSET(0x6766, CAICOS_6766, CAICOS) +CHIPSET(0x6767, CAICOS_6767, CAICOS) +CHIPSET(0x6768, CAICOS_6768, CAICOS) +CHIPSET(0x6770, CAICOS_6770, CAICOS) +CHIPSET(0x6779, CAICOS_6779, CAICOS) diff --git a/include/pci_ids/radeon_pci_ids.h b/include/pci_ids/radeon_pci_ids.h new file mode 100644 index 00000000000..a9efc767dad --- /dev/null +++ b/include/pci_ids/radeon_pci_ids.h @@ -0,0 +1,23 @@ +CHIPSET(0x4C57, RADEON_LW, RV200) +CHIPSET(0x4C58, RADEON_LX, RV200) +CHIPSET(0x4C59, RADEON_LY, RV100) +CHIPSET(0x4C5A, RADEON_LZ, RV100) +CHIPSET(0x5144, RADEON_QD, R100) +CHIPSET(0x5145, RADEON_QE, R100) +CHIPSET(0x5146, RADEON_QF, R100) +CHIPSET(0x5147, RADEON_QG, R100) +CHIPSET(0x5159, RADEON_QY, RV100) +CHIPSET(0x515A, RADEON_QZ, RV100) + +CHIPSET(0x5157, RV200_QW, RV200) +CHIPSET(0x5158, RV200_QX, RV200) + +CHIPSET(0x515E, RN50_515E, UNKNOWN) +CHIPSET(0x5969, RN50_5969, UNKNOWN) + +CHIPSET(0x4136, RS100_4136, RS100) +CHIPSET(0x4336, RS100_4336, RS100) +CHIPSET(0x4137, RS200_4137, RS200) +CHIPSET(0x4337, RS200_4337, RS200) +CHIPSET(0x4237, RS250_4237, RS200) +CHIPSET(0x4437, RS250_4437, RS200) From 7f881c43dfb4f1aeeab3a84125b5c106c191a43f Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 30 May 2011 10:49:55 +0200 Subject: [PATCH 057/145] egl_dri2: Use external driver pci list Reviewed-by: Alex Deucher --- include/pci_ids/pci_id_driver_map.h | 77 ++++ src/egl/drivers/dri2/Makefile | 2 +- src/egl/drivers/dri2/common.c | 111 +++++ src/egl/drivers/dri2/egl_dri2.h | 2 + src/egl/drivers/dri2/platform_drm.c | 665 +--------------------------- 5 files changed, 193 insertions(+), 664 deletions(-) create mode 100644 include/pci_ids/pci_id_driver_map.h create mode 100644 src/egl/drivers/dri2/common.c diff --git a/include/pci_ids/pci_id_driver_map.h b/include/pci_ids/pci_id_driver_map.h new file mode 100644 index 00000000000..9112efd378b --- /dev/null +++ b/include/pci_ids/pci_id_driver_map.h @@ -0,0 +1,77 @@ +#ifndef _PCI_ID_DRIVER_MAP_H_ +#define _PCI_ID_DRIVER_MAP_H_ + +#include + +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) +#endif + +#if !defined(DRIVER_MAP_DRI2_ONLY) && !defined(DRIVER_MAP_GALLIUM_ONLY) +static const int i810_chip_ids[] = { +#define CHIPSET(chip, desc, misc) chip, +#include "pci_ids/i810_pci_ids.h" +#undef CHIPSET +}; +#endif + +static const int i915_chip_ids[] = { +#define CHIPSET(chip, desc, misc) chip, +#include "pci_ids/i915_pci_ids.h" +#undef CHIPSET +}; + +static const int i965_chip_ids[] = { +#define CHIPSET(chip, desc, misc) chip, +#include "pci_ids/i965_pci_ids.h" +#undef CHIPSET +}; + +#ifndef DRIVER_MAP_GALLIUM_ONLY +static const int r100_chip_ids[] = { +#define CHIPSET(chip, name, family) chip, +#include "pci_ids/radeon_pci_ids.h" +#undef CHIPSET +}; + +static const int r200_chip_ids[] = { +#define CHIPSET(chip, name, family) chip, +#include "pci_ids/r200_pci_ids.h" +#undef CHIPSET +}; +#endif + +static const int r300_chip_ids[] = { +#define CHIPSET(chip, name, family) chip, +#include "pci_ids/r300_pci_ids.h" +#undef CHIPSET +}; + +static const int r600_chip_ids[] = { +#define CHIPSET(chip, name, family) chip, +#include "pci_ids/r600_pci_ids.h" +#undef CHIPSET +}; + +static const struct { + int vendor_id; + const char *driver; + const int *chip_ids; + int num_chips_ids; +} driver_map[] = { +#if !defined(DRIVER_MAP_DRI2_ONLY) && !defined(DRIVER_MAP_GALLIUM_ONLY) + { 0x8086, "i810", i810_chip_ids, ARRAY_SIZE(i810_chip_ids) }, +#endif + { 0x8086, "i915", i915_chip_ids, ARRAY_SIZE(i915_chip_ids) }, + { 0x8086, "i965", i965_chip_ids, ARRAY_SIZE(i965_chip_ids) }, +#ifndef DRIVER_MAP_GALLIUM_ONLY + { 0x1002, "radeon", r100_chip_ids, ARRAY_SIZE(r100_chip_ids) }, + { 0x1002, "r200", r200_chip_ids, ARRAY_SIZE(r200_chip_ids) }, +#endif + { 0x1002, "r300", r300_chip_ids, ARRAY_SIZE(r300_chip_ids) }, + { 0x1002, "r600", r600_chip_ids, ARRAY_SIZE(r600_chip_ids) }, + { 0x10de, "nouveau", NULL, -1 }, + { 0x0000, NULL, NULL, 0 }, +}; + +#endif /* _PCI_ID_DRIVER_MAP_H_ */ diff --git a/src/egl/drivers/dri2/Makefile b/src/egl/drivers/dri2/Makefile index 447babd6747..f8ff82b49c2 100644 --- a/src/egl/drivers/dri2/Makefile +++ b/src/egl/drivers/dri2/Makefile @@ -4,7 +4,7 @@ TOP = ../../../.. include $(TOP)/configs/current EGL_DRIVER = egl_dri2 -EGL_SOURCES = egl_dri2.c platform_drm.c +EGL_SOURCES = egl_dri2.c platform_drm.c common.c EGL_INCLUDES = \ -I$(TOP)/include \ diff --git a/src/egl/drivers/dri2/common.c b/src/egl/drivers/dri2/common.c new file mode 100644 index 00000000000..1860a3f738e --- /dev/null +++ b/src/egl/drivers/dri2/common.c @@ -0,0 +1,111 @@ +#include +#include + +#include + +#include +#include +#include + +#include "egl_dri2.h" +#define DRIVER_MAP_DRI2_ONLY +#include "pci_ids/pci_id_driver_map.h" + +static struct udev_device * +dri2_udev_device_new_from_fd(struct udev *udev, int fd) +{ + struct udev_device *device; + struct stat buf; + + if (fstat(fd, &buf) < 0) { + _eglLog(_EGL_WARNING, "EGL-DRI2: failed to stat fd %d", fd); + return NULL; + } + + device = udev_device_new_from_devnum(udev, 'c', buf.st_rdev); + if (device == NULL) { + _eglLog(_EGL_WARNING, + "EGL-DRI2: could not create udev device for fd %d", fd); + return NULL; + } + + return device; +} + +char * +dri2_get_device_name_for_fd(int fd) +{ + struct udev *udev; + struct udev_device *device; + const char *const_device_name; + char *device_name = NULL; + + udev = udev_new(); + device = dri2_udev_device_new_from_fd(udev, fd); + if (device == NULL) + return NULL; + + const_device_name = udev_device_get_devnode(device); + if (!const_device_name) + goto out; + device_name = strdup(const_device_name); + +out: + udev_device_unref(device); + udev_unref(udev); + + return device_name; +} + +char * +dri2_get_driver_for_fd(int fd) +{ + struct udev *udev; + struct udev_device *device, *parent; + const char *pci_id; + char *driver = NULL; + int vendor_id, chip_id, i, j; + + udev = udev_new(); + device = dri2_udev_device_new_from_fd(udev, fd); + if (device == NULL) + return NULL; + + parent = udev_device_get_parent(device); + if (parent == NULL) { + _eglLog(_EGL_WARNING, "DRI2: could not get parent device"); + goto out; + } + + pci_id = udev_device_get_property_value(parent, "PCI_ID"); + if (pci_id == NULL || + sscanf(pci_id, "%x:%x", &vendor_id, &chip_id) != 2) { + _eglLog(_EGL_WARNING, "EGL-DRI2: malformed or no PCI ID"); + goto out; + } + + for (i = 0; driver_map[i].driver; i++) { + if (vendor_id != driver_map[i].vendor_id) + continue; + if (driver_map[i].num_chips_ids == -1) { + driver = strdup(driver_map[i].driver); + _eglLog(_EGL_DEBUG, "pci id for %d: %04x:%04x, driver %s", + fd, vendor_id, chip_id, driver); + goto out; + } + + for (j = 0; j < driver_map[i].num_chips_ids; j++) + if (driver_map[i].chip_ids[j] == chip_id) { + driver = strdup(driver_map[i].driver); + _eglLog(_EGL_DEBUG, "pci id for %d: %04x:%04x, driver %s", + fd, vendor_id, chip_id, driver); + goto out; + } + } + +out: + udev_device_unref(device); + udev_unref(udev); + + return driver; +} diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index efcb366568e..97f541b5e83 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -205,5 +205,7 @@ dri2_initialize_wayland(_EGLDriver *drv, _EGLDisplay *disp); char * dri2_get_driver_for_fd(int fd); +char * +dri2_get_device_name_for_fd(int fd); #endif /* EGL_DRI2_INCLUDED */ diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c index 215c1bdae3d..bea93aea6ba 100644 --- a/src/egl/drivers/dri2/platform_drm.c +++ b/src/egl/drivers/dri2/platform_drm.c @@ -26,671 +26,12 @@ */ #include -#include #include -#include -#include -#include -#include -#include +#include #include -#include -#include - -#ifdef HAVE_LIBUDEV -#include -#endif #include "egl_dri2.h" - -#ifdef HAVE_LIBUDEV - -struct dri2_driver_map { - int vendor_id; - const char *driver; - const int *chip_ids; - int num_chips_ids; -}; - -const int i915_chip_ids[] = { - 0x3577, /* PCI_CHIP_I830_M */ - 0x2562, /* PCI_CHIP_845_G */ - 0x3582, /* PCI_CHIP_I855_GM */ - 0x2572, /* PCI_CHIP_I865_G */ - 0x2582, /* PCI_CHIP_I915_G */ - 0x258a, /* PCI_CHIP_E7221_G */ - 0x2592, /* PCI_CHIP_I915_GM */ - 0x2772, /* PCI_CHIP_I945_G */ - 0x27a2, /* PCI_CHIP_I945_GM */ - 0x27ae, /* PCI_CHIP_I945_GME */ - 0x29b2, /* PCI_CHIP_Q35_G */ - 0x29c2, /* PCI_CHIP_G33_G */ - 0x29d2, /* PCI_CHIP_Q33_G */ - 0xa001, /* PCI_CHIP_IGD_G */ - 0xa011, /* Pineview */ -}; - -const int i965_chip_ids[] = { - 0x0042, /* PCI_CHIP_ILD_G */ - 0x0046, /* PCI_CHIP_ILM_G */ - 0x0102, /* PCI_CHIP_SANDYBRIDGE_GT1 */ - 0x0106, /* PCI_CHIP_SANDYBRIDGE_M_GT1 */ - 0x010a, /* PCI_CHIP_SANDYBRIDGE_S */ - 0x0112, /* PCI_CHIP_SANDYBRIDGE_GT2 */ - 0x0116, /* PCI_CHIP_SANDYBRIDGE_M_GT2 */ - 0x0122, /* PCI_CHIP_SANDYBRIDGE_GT2_PLUS */ - 0x0126, /* PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS */ - 0x0152, /* PCI_CHIP_IVYBRIDGE_GT1 */ - 0x0162, /* PCI_CHIP_IVYBRIDGE_GT2 */ - 0x0156, /* PCI_CHIP_IVYBRIDGE_M_GT1 */ - 0x0166, /* PCI_CHIP_IVYBRIDGE_M_GT2 */ - 0x015a, /* PCI_CHIP_IVYBRIDGE_S_GT1 */ - 0x29a2, /* PCI_CHIP_I965_G */ - 0x2992, /* PCI_CHIP_I965_Q */ - 0x2982, /* PCI_CHIP_I965_G_1 */ - 0x2972, /* PCI_CHIP_I946_GZ */ - 0x2a02, /* PCI_CHIP_I965_GM */ - 0x2a12, /* PCI_CHIP_I965_GME */ - 0x2a42, /* PCI_CHIP_GM45_GM */ - 0x2e02, /* PCI_CHIP_IGD_E_G */ - 0x2e12, /* PCI_CHIP_Q45_G */ - 0x2e22, /* PCI_CHIP_G45_G */ - 0x2e32, /* PCI_CHIP_G41_G */ - 0x2e42, /* PCI_CHIP_B43_G */ - 0x2e92, /* PCI_CHIP_B43_G1 */ -}; - -const int r100_chip_ids[] = { - 0x4C57, /* PCI_CHIP_RADEON_LW */ - 0x4C58, /* PCI_CHIP_RADEON_LX */ - 0x4C59, /* PCI_CHIP_RADEON_LY */ - 0x4C5A, /* PCI_CHIP_RADEON_LZ */ - 0x5144, /* PCI_CHIP_RADEON_QD */ - 0x5145, /* PCI_CHIP_RADEON_QE */ - 0x5146, /* PCI_CHIP_RADEON_QF */ - 0x5147, /* PCI_CHIP_RADEON_QG */ - 0x5159, /* PCI_CHIP_RADEON_QY */ - 0x515A, /* PCI_CHIP_RADEON_QZ */ - 0x5157, /* PCI_CHIP_RV200_QW */ - 0x5158, /* PCI_CHIP_RV200_QX */ - 0x515E, /* PCI_CHIP_RN50_515E */ - 0x5969, /* PCI_CHIP_RN50_5969 */ - 0x4136, /* PCI_CHIP_RS100_4136 */ - 0x4336, /* PCI_CHIP_RS100_4336 */ - 0x4137, /* PCI_CHIP_RS200_4137 */ - 0x4337, /* PCI_CHIP_RS200_4337 */ - 0x4237, /* PCI_CHIP_RS250_4237 */ - 0x4437, /* PCI_CHIP_RS250_4437 */ -}; - -const int r200_chip_ids[] = { - 0x5148, /* PCI_CHIP_R200_QH */ - 0x514C, /* PCI_CHIP_R200_QL */ - 0x514D, /* PCI_CHIP_R200_QM */ - 0x4242, /* PCI_CHIP_R200_BB */ - 0x4966, /* PCI_CHIP_RV250_If */ - 0x4967, /* PCI_CHIP_RV250_Ig */ - 0x4C64, /* PCI_CHIP_RV250_Ld */ - 0x4C66, /* PCI_CHIP_RV250_Lf */ - 0x4C67, /* PCI_CHIP_RV250_Lg */ - 0x5960, /* PCI_CHIP_RV280_5960 */ - 0x5961, /* PCI_CHIP_RV280_5961 */ - 0x5962, /* PCI_CHIP_RV280_5962 */ - 0x5964, /* PCI_CHIP_RV280_5964 */ - 0x5965, /* PCI_CHIP_RV280_5965 */ - 0x5C61, /* PCI_CHIP_RV280_5C61 */ - 0x5C63, /* PCI_CHIP_RV280_5C63 */ - 0x5834, /* PCI_CHIP_RS300_5834 */ - 0x5835, /* PCI_CHIP_RS300_5835 */ - 0x7834, /* PCI_CHIP_RS350_7834 */ - 0x7835, /* PCI_CHIP_RS350_7835 */ -}; - -const int r300_chip_ids[] = { - 0x4144, /* PCI_CHIP_R300_AD */ - 0x4145, /* PCI_CHIP_R300_AE */ - 0x4146, /* PCI_CHIP_R300_AF */ - 0x4147, /* PCI_CHIP_R300_AG */ - 0x4E44, /* PCI_CHIP_R300_ND */ - 0x4E45, /* PCI_CHIP_R300_NE */ - 0x4E46, /* PCI_CHIP_R300_NF */ - 0x4E47, /* PCI_CHIP_R300_NG */ - 0x4E48, /* PCI_CHIP_R350_NH */ - 0x4E49, /* PCI_CHIP_R350_NI */ - 0x4E4B, /* PCI_CHIP_R350_NK */ - 0x4148, /* PCI_CHIP_R350_AH */ - 0x4149, /* PCI_CHIP_R350_AI */ - 0x414A, /* PCI_CHIP_R350_AJ */ - 0x414B, /* PCI_CHIP_R350_AK */ - 0x4E4A, /* PCI_CHIP_R360_NJ */ - 0x4150, /* PCI_CHIP_RV350_AP */ - 0x4151, /* PCI_CHIP_RV350_AQ */ - 0x4152, /* PCI_CHIP_RV350_AR */ - 0x4153, /* PCI_CHIP_RV350_AS */ - 0x4154, /* PCI_CHIP_RV350_AT */ - 0x4155, /* PCI_CHIP_RV350_AU */ - 0x4156, /* PCI_CHIP_RV350_AV */ - 0x4E50, /* PCI_CHIP_RV350_NP */ - 0x4E51, /* PCI_CHIP_RV350_NQ */ - 0x4E52, /* PCI_CHIP_RV350_NR */ - 0x4E53, /* PCI_CHIP_RV350_NS */ - 0x4E54, /* PCI_CHIP_RV350_NT */ - 0x4E56, /* PCI_CHIP_RV350_NV */ - 0x5460, /* PCI_CHIP_RV370_5460 */ - 0x5462, /* PCI_CHIP_RV370_5462 */ - 0x5464, /* PCI_CHIP_RV370_5464 */ - 0x5B60, /* PCI_CHIP_RV370_5B60 */ - 0x5B62, /* PCI_CHIP_RV370_5B62 */ - 0x5B63, /* PCI_CHIP_RV370_5B63 */ - 0x5B64, /* PCI_CHIP_RV370_5B64 */ - 0x5B65, /* PCI_CHIP_RV370_5B65 */ - 0x3150, /* PCI_CHIP_RV380_3150 */ - 0x3152, /* PCI_CHIP_RV380_3152 */ - 0x3154, /* PCI_CHIP_RV380_3154 */ - 0x3155, /* PCI_CHIP_RV380_3155 */ - 0x3E50, /* PCI_CHIP_RV380_3E50 */ - 0x3E54, /* PCI_CHIP_RV380_3E54 */ - 0x4A48, /* PCI_CHIP_R420_JH */ - 0x4A49, /* PCI_CHIP_R420_JI */ - 0x4A4A, /* PCI_CHIP_R420_JJ */ - 0x4A4B, /* PCI_CHIP_R420_JK */ - 0x4A4C, /* PCI_CHIP_R420_JL */ - 0x4A4D, /* PCI_CHIP_R420_JM */ - 0x4A4E, /* PCI_CHIP_R420_JN */ - 0x4A4F, /* PCI_CHIP_R420_JO */ - 0x4A50, /* PCI_CHIP_R420_JP */ - 0x4A54, /* PCI_CHIP_R420_JT */ - 0x5548, /* PCI_CHIP_R423_UH */ - 0x5549, /* PCI_CHIP_R423_UI */ - 0x554A, /* PCI_CHIP_R423_UJ */ - 0x554B, /* PCI_CHIP_R423_UK */ - 0x5550, /* PCI_CHIP_R423_5550 */ - 0x5551, /* PCI_CHIP_R423_UQ */ - 0x5552, /* PCI_CHIP_R423_UR */ - 0x5554, /* PCI_CHIP_R423_UT */ - 0x5D57, /* PCI_CHIP_R423_5D57 */ - 0x554C, /* PCI_CHIP_R430_554C */ - 0x554D, /* PCI_CHIP_R430_554D */ - 0x554E, /* PCI_CHIP_R430_554E */ - 0x554F, /* PCI_CHIP_R430_554F */ - 0x5D48, /* PCI_CHIP_R430_5D48 */ - 0x5D49, /* PCI_CHIP_R430_5D49 */ - 0x5D4A, /* PCI_CHIP_R430_5D4A */ - 0x5D4C, /* PCI_CHIP_R480_5D4C */ - 0x5D4D, /* PCI_CHIP_R480_5D4D */ - 0x5D4E, /* PCI_CHIP_R480_5D4E */ - 0x5D4F, /* PCI_CHIP_R480_5D4F */ - 0x5D50, /* PCI_CHIP_R480_5D50 */ - 0x5D52, /* PCI_CHIP_R480_5D52 */ - 0x4B49, /* PCI_CHIP_R481_4B49 */ - 0x4B4A, /* PCI_CHIP_R481_4B4A */ - 0x4B4B, /* PCI_CHIP_R481_4B4B */ - 0x4B4C, /* PCI_CHIP_R481_4B4C */ - 0x564A, /* PCI_CHIP_RV410_564A */ - 0x564B, /* PCI_CHIP_RV410_564B */ - 0x564F, /* PCI_CHIP_RV410_564F */ - 0x5652, /* PCI_CHIP_RV410_5652 */ - 0x5653, /* PCI_CHIP_RV410_5653 */ - 0x5657, /* PCI_CHIP_RV410_5657 */ - 0x5E48, /* PCI_CHIP_RV410_5E48 */ - 0x5E4A, /* PCI_CHIP_RV410_5E4A */ - 0x5E4B, /* PCI_CHIP_RV410_5E4B */ - 0x5E4C, /* PCI_CHIP_RV410_5E4C */ - 0x5E4D, /* PCI_CHIP_RV410_5E4D */ - 0x5E4F, /* PCI_CHIP_RV410_5E4F */ - 0x5A41, /* PCI_CHIP_RS400_5A41 */ - 0x5A42, /* PCI_CHIP_RS400_5A42 */ - 0x5A61, /* PCI_CHIP_RC410_5A61 */ - 0x5A62, /* PCI_CHIP_RC410_5A62 */ - 0x5954, /* PCI_CHIP_RS480_5954 */ - 0x5955, /* PCI_CHIP_RS480_5955 */ - 0x5974, /* PCI_CHIP_RS482_5974 */ - 0x5975, /* PCI_CHIP_RS482_5975 */ - 0x7100, /* PCI_CHIP_R520_7100 */ - 0x7101, /* PCI_CHIP_R520_7101 */ - 0x7102, /* PCI_CHIP_R520_7102 */ - 0x7103, /* PCI_CHIP_R520_7103 */ - 0x7104, /* PCI_CHIP_R520_7104 */ - 0x7105, /* PCI_CHIP_R520_7105 */ - 0x7106, /* PCI_CHIP_R520_7106 */ - 0x7108, /* PCI_CHIP_R520_7108 */ - 0x7109, /* PCI_CHIP_R520_7109 */ - 0x710A, /* PCI_CHIP_R520_710A */ - 0x710B, /* PCI_CHIP_R520_710B */ - 0x710C, /* PCI_CHIP_R520_710C */ - 0x710E, /* PCI_CHIP_R520_710E */ - 0x710F, /* PCI_CHIP_R520_710F */ - 0x7140, /* PCI_CHIP_RV515_7140 */ - 0x7141, /* PCI_CHIP_RV515_7141 */ - 0x7142, /* PCI_CHIP_RV515_7142 */ - 0x7143, /* PCI_CHIP_RV515_7143 */ - 0x7144, /* PCI_CHIP_RV515_7144 */ - 0x7145, /* PCI_CHIP_RV515_7145 */ - 0x7146, /* PCI_CHIP_RV515_7146 */ - 0x7147, /* PCI_CHIP_RV515_7147 */ - 0x7149, /* PCI_CHIP_RV515_7149 */ - 0x714A, /* PCI_CHIP_RV515_714A */ - 0x714B, /* PCI_CHIP_RV515_714B */ - 0x714C, /* PCI_CHIP_RV515_714C */ - 0x714D, /* PCI_CHIP_RV515_714D */ - 0x714E, /* PCI_CHIP_RV515_714E */ - 0x714F, /* PCI_CHIP_RV515_714F */ - 0x7151, /* PCI_CHIP_RV515_7151 */ - 0x7152, /* PCI_CHIP_RV515_7152 */ - 0x7153, /* PCI_CHIP_RV515_7153 */ - 0x715E, /* PCI_CHIP_RV515_715E */ - 0x715F, /* PCI_CHIP_RV515_715F */ - 0x7180, /* PCI_CHIP_RV515_7180 */ - 0x7181, /* PCI_CHIP_RV515_7181 */ - 0x7183, /* PCI_CHIP_RV515_7183 */ - 0x7186, /* PCI_CHIP_RV515_7186 */ - 0x7187, /* PCI_CHIP_RV515_7187 */ - 0x7188, /* PCI_CHIP_RV515_7188 */ - 0x718A, /* PCI_CHIP_RV515_718A */ - 0x718B, /* PCI_CHIP_RV515_718B */ - 0x718C, /* PCI_CHIP_RV515_718C */ - 0x718D, /* PCI_CHIP_RV515_718D */ - 0x718F, /* PCI_CHIP_RV515_718F */ - 0x7193, /* PCI_CHIP_RV515_7193 */ - 0x7196, /* PCI_CHIP_RV515_7196 */ - 0x719B, /* PCI_CHIP_RV515_719B */ - 0x719F, /* PCI_CHIP_RV515_719F */ - 0x7200, /* PCI_CHIP_RV515_7200 */ - 0x7210, /* PCI_CHIP_RV515_7210 */ - 0x7211, /* PCI_CHIP_RV515_7211 */ - 0x71C0, /* PCI_CHIP_RV530_71C0 */ - 0x71C1, /* PCI_CHIP_RV530_71C1 */ - 0x71C2, /* PCI_CHIP_RV530_71C2 */ - 0x71C3, /* PCI_CHIP_RV530_71C3 */ - 0x71C4, /* PCI_CHIP_RV530_71C4 */ - 0x71C5, /* PCI_CHIP_RV530_71C5 */ - 0x71C6, /* PCI_CHIP_RV530_71C6 */ - 0x71C7, /* PCI_CHIP_RV530_71C7 */ - 0x71CD, /* PCI_CHIP_RV530_71CD */ - 0x71CE, /* PCI_CHIP_RV530_71CE */ - 0x71D2, /* PCI_CHIP_RV530_71D2 */ - 0x71D4, /* PCI_CHIP_RV530_71D4 */ - 0x71D5, /* PCI_CHIP_RV530_71D5 */ - 0x71D6, /* PCI_CHIP_RV530_71D6 */ - 0x71DA, /* PCI_CHIP_RV530_71DA */ - 0x71DE, /* PCI_CHIP_RV530_71DE */ - 0x7281, /* PCI_CHIP_RV560_7281 */ - 0x7283, /* PCI_CHIP_RV560_7283 */ - 0x7287, /* PCI_CHIP_RV560_7287 */ - 0x7290, /* PCI_CHIP_RV560_7290 */ - 0x7291, /* PCI_CHIP_RV560_7291 */ - 0x7293, /* PCI_CHIP_RV560_7293 */ - 0x7297, /* PCI_CHIP_RV560_7297 */ - 0x7280, /* PCI_CHIP_RV570_7280 */ - 0x7288, /* PCI_CHIP_RV570_7288 */ - 0x7289, /* PCI_CHIP_RV570_7289 */ - 0x728B, /* PCI_CHIP_RV570_728B */ - 0x728C, /* PCI_CHIP_RV570_728C */ - 0x7240, /* PCI_CHIP_R580_7240 */ - 0x7243, /* PCI_CHIP_R580_7243 */ - 0x7244, /* PCI_CHIP_R580_7244 */ - 0x7245, /* PCI_CHIP_R580_7245 */ - 0x7246, /* PCI_CHIP_R580_7246 */ - 0x7247, /* PCI_CHIP_R580_7247 */ - 0x7248, /* PCI_CHIP_R580_7248 */ - 0x7249, /* PCI_CHIP_R580_7249 */ - 0x724A, /* PCI_CHIP_R580_724A */ - 0x724B, /* PCI_CHIP_R580_724B */ - 0x724C, /* PCI_CHIP_R580_724C */ - 0x724D, /* PCI_CHIP_R580_724D */ - 0x724E, /* PCI_CHIP_R580_724E */ - 0x724F, /* PCI_CHIP_R580_724F */ - 0x7284, /* PCI_CHIP_R580_7284 */ - 0x793F, /* PCI_CHIP_RS600_793F */ - 0x7941, /* PCI_CHIP_RS600_7941 */ - 0x7942, /* PCI_CHIP_RS600_7942 */ - 0x791E, /* PCI_CHIP_RS690_791E */ - 0x791F, /* PCI_CHIP_RS690_791F */ - 0x796C, /* PCI_CHIP_RS740_796C */ - 0x796D, /* PCI_CHIP_RS740_796D */ - 0x796E, /* PCI_CHIP_RS740_796E */ - 0x796F, /* PCI_CHIP_RS740_796F */ -}; - -const int r600_chip_ids[] = { - 0x9400, /* PCI_CHIP_R600_9400 */ - 0x9401, /* PCI_CHIP_R600_9401 */ - 0x9402, /* PCI_CHIP_R600_9402 */ - 0x9403, /* PCI_CHIP_R600_9403 */ - 0x9405, /* PCI_CHIP_R600_9405 */ - 0x940A, /* PCI_CHIP_R600_940A */ - 0x940B, /* PCI_CHIP_R600_940B */ - 0x940F, /* PCI_CHIP_R600_940F */ - 0x94C0, /* PCI_CHIP_RV610_94C0 */ - 0x94C1, /* PCI_CHIP_RV610_94C1 */ - 0x94C3, /* PCI_CHIP_RV610_94C3 */ - 0x94C4, /* PCI_CHIP_RV610_94C4 */ - 0x94C5, /* PCI_CHIP_RV610_94C5 */ - 0x94C6, /* PCI_CHIP_RV610_94C6 */ - 0x94C7, /* PCI_CHIP_RV610_94C7 */ - 0x94C8, /* PCI_CHIP_RV610_94C8 */ - 0x94C9, /* PCI_CHIP_RV610_94C9 */ - 0x94CB, /* PCI_CHIP_RV610_94CB */ - 0x94CC, /* PCI_CHIP_RV610_94CC */ - 0x94CD, /* PCI_CHIP_RV610_94CD */ - 0x9580, /* PCI_CHIP_RV630_9580 */ - 0x9581, /* PCI_CHIP_RV630_9581 */ - 0x9583, /* PCI_CHIP_RV630_9583 */ - 0x9586, /* PCI_CHIP_RV630_9586 */ - 0x9587, /* PCI_CHIP_RV630_9587 */ - 0x9588, /* PCI_CHIP_RV630_9588 */ - 0x9589, /* PCI_CHIP_RV630_9589 */ - 0x958A, /* PCI_CHIP_RV630_958A */ - 0x958B, /* PCI_CHIP_RV630_958B */ - 0x958C, /* PCI_CHIP_RV630_958C */ - 0x958D, /* PCI_CHIP_RV630_958D */ - 0x958E, /* PCI_CHIP_RV630_958E */ - 0x958F, /* PCI_CHIP_RV630_958F */ - 0x9500, /* PCI_CHIP_RV670_9500 */ - 0x9501, /* PCI_CHIP_RV670_9501 */ - 0x9504, /* PCI_CHIP_RV670_9504 */ - 0x9505, /* PCI_CHIP_RV670_9505 */ - 0x9506, /* PCI_CHIP_RV670_9506 */ - 0x9507, /* PCI_CHIP_RV670_9507 */ - 0x9508, /* PCI_CHIP_RV670_9508 */ - 0x9509, /* PCI_CHIP_RV670_9509 */ - 0x950F, /* PCI_CHIP_RV670_950F */ - 0x9511, /* PCI_CHIP_RV670_9511 */ - 0x9515, /* PCI_CHIP_RV670_9515 */ - 0x9517, /* PCI_CHIP_RV670_9517 */ - 0x9519, /* PCI_CHIP_RV670_9519 */ - 0x95C0, /* PCI_CHIP_RV620_95C0 */ - 0x95C2, /* PCI_CHIP_RV620_95C2 */ - 0x95C4, /* PCI_CHIP_RV620_95C4 */ - 0x95C5, /* PCI_CHIP_RV620_95C5 */ - 0x95C6, /* PCI_CHIP_RV620_95C6 */ - 0x95C7, /* PCI_CHIP_RV620_95C7 */ - 0x95C9, /* PCI_CHIP_RV620_95C9 */ - 0x95CC, /* PCI_CHIP_RV620_95CC */ - 0x95CD, /* PCI_CHIP_RV620_95CD */ - 0x95CE, /* PCI_CHIP_RV620_95CE */ - 0x95CF, /* PCI_CHIP_RV620_95CF */ - 0x9590, /* PCI_CHIP_RV635_9590 */ - 0x9591, /* PCI_CHIP_RV635_9591 */ - 0x9593, /* PCI_CHIP_RV635_9593 */ - 0x9595, /* PCI_CHIP_RV635_9595 */ - 0x9596, /* PCI_CHIP_RV635_9596 */ - 0x9597, /* PCI_CHIP_RV635_9597 */ - 0x9598, /* PCI_CHIP_RV635_9598 */ - 0x9599, /* PCI_CHIP_RV635_9599 */ - 0x959B, /* PCI_CHIP_RV635_959B */ - 0x9610, /* PCI_CHIP_RS780_9610 */ - 0x9611, /* PCI_CHIP_RS780_9611 */ - 0x9612, /* PCI_CHIP_RS780_9612 */ - 0x9613, /* PCI_CHIP_RS780_9613 */ - 0x9614, /* PCI_CHIP_RS780_9614 */ - 0x9615, /* PCI_CHIP_RS780_9615 */ - 0x9616, /* PCI_CHIP_RS780_9616 */ - 0x9710, /* PCI_CHIP_RS880_9710 */ - 0x9711, /* PCI_CHIP_RS880_9711 */ - 0x9712, /* PCI_CHIP_RS880_9712 */ - 0x9713, /* PCI_CHIP_RS880_9713 */ - 0x9714, /* PCI_CHIP_RS880_9714 */ - 0x9715, /* PCI_CHIP_RS880_9715 */ - 0x9440, /* PCI_CHIP_RV770_9440 */ - 0x9441, /* PCI_CHIP_RV770_9441 */ - 0x9442, /* PCI_CHIP_RV770_9442 */ - 0x9443, /* PCI_CHIP_RV770_9443 */ - 0x9444, /* PCI_CHIP_RV770_9444 */ - 0x9446, /* PCI_CHIP_RV770_9446 */ - 0x944A, /* PCI_CHIP_RV770_944A */ - 0x944B, /* PCI_CHIP_RV770_944B */ - 0x944C, /* PCI_CHIP_RV770_944C */ - 0x944E, /* PCI_CHIP_RV770_944E */ - 0x9450, /* PCI_CHIP_RV770_9450 */ - 0x9452, /* PCI_CHIP_RV770_9452 */ - 0x9456, /* PCI_CHIP_RV770_9456 */ - 0x945A, /* PCI_CHIP_RV770_945A */ - 0x945B, /* PCI_CHIP_RV770_945B */ - 0x945E, /* PCI_CHIP_RV770_945E */ - 0x9460, /* PCI_CHIP_RV790_9460 */ - 0x9462, /* PCI_CHIP_RV790_9462 */ - 0x946A, /* PCI_CHIP_RV770_946A */ - 0x946B, /* PCI_CHIP_RV770_946B */ - 0x947A, /* PCI_CHIP_RV770_947A */ - 0x947B, /* PCI_CHIP_RV770_947B */ - 0x9480, /* PCI_CHIP_RV730_9480 */ - 0x9487, /* PCI_CHIP_RV730_9487 */ - 0x9488, /* PCI_CHIP_RV730_9488 */ - 0x9489, /* PCI_CHIP_RV730_9489 */ - 0x948A, /* PCI_CHIP_RV730_948A */ - 0x948F, /* PCI_CHIP_RV730_948F */ - 0x9490, /* PCI_CHIP_RV730_9490 */ - 0x9491, /* PCI_CHIP_RV730_9491 */ - 0x9495, /* PCI_CHIP_RV730_9495 */ - 0x9498, /* PCI_CHIP_RV730_9498 */ - 0x949C, /* PCI_CHIP_RV730_949C */ - 0x949E, /* PCI_CHIP_RV730_949E */ - 0x949F, /* PCI_CHIP_RV730_949F */ - 0x9540, /* PCI_CHIP_RV710_9540 */ - 0x9541, /* PCI_CHIP_RV710_9541 */ - 0x9542, /* PCI_CHIP_RV710_9542 */ - 0x954E, /* PCI_CHIP_RV710_954E */ - 0x954F, /* PCI_CHIP_RV710_954F */ - 0x9552, /* PCI_CHIP_RV710_9552 */ - 0x9553, /* PCI_CHIP_RV710_9553 */ - 0x9555, /* PCI_CHIP_RV710_9555 */ - 0x9557, /* PCI_CHIP_RV710_9557 */ - 0x955F, /* PCI_CHIP_RV710_955F */ - 0x94A0, /* PCI_CHIP_RV740_94A0 */ - 0x94A1, /* PCI_CHIP_RV740_94A1 */ - 0x94A3, /* PCI_CHIP_RV740_94A3 */ - 0x94B1, /* PCI_CHIP_RV740_94B1 */ - 0x94B3, /* PCI_CHIP_RV740_94B3 */ - 0x94B4, /* PCI_CHIP_RV740_94B4 */ - 0x94B5, /* PCI_CHIP_RV740_94B5 */ - 0x94B9, /* PCI_CHIP_RV740_94B9 */ - 0x68E0, /* PCI_CHIP_CEDAR_68E0 */ - 0x68E1, /* PCI_CHIP_CEDAR_68E1 */ - 0x68E4, /* PCI_CHIP_CEDAR_68E4 */ - 0x68E5, /* PCI_CHIP_CEDAR_68E5 */ - 0x68E8, /* PCI_CHIP_CEDAR_68E8 */ - 0x68E9, /* PCI_CHIP_CEDAR_68E9 */ - 0x68F1, /* PCI_CHIP_CEDAR_68F1 */ - 0x68F2, /* PCI_CHIP_CEDAR_68F2 */ - 0x68F8, /* PCI_CHIP_CEDAR_68F8 */ - 0x68F9, /* PCI_CHIP_CEDAR_68F9 */ - 0x68FE, /* PCI_CHIP_CEDAR_68FE */ - 0x68C0, /* PCI_CHIP_REDWOOD_68C0 */ - 0x68C1, /* PCI_CHIP_REDWOOD_68C1 */ - 0x68C8, /* PCI_CHIP_REDWOOD_68C8 */ - 0x68C9, /* PCI_CHIP_REDWOOD_68C9 */ - 0x68D8, /* PCI_CHIP_REDWOOD_68D8 */ - 0x68D9, /* PCI_CHIP_REDWOOD_68D9 */ - 0x68DA, /* PCI_CHIP_REDWOOD_68DA */ - 0x68DE, /* PCI_CHIP_REDWOOD_68DE */ - 0x68A0, /* PCI_CHIP_JUNIPER_68A0 */ - 0x68A1, /* PCI_CHIP_JUNIPER_68A1 */ - 0x68A8, /* PCI_CHIP_JUNIPER_68A8 */ - 0x68A9, /* PCI_CHIP_JUNIPER_68A9 */ - 0x68B0, /* PCI_CHIP_JUNIPER_68B0 */ - 0x68B8, /* PCI_CHIP_JUNIPER_68B8 */ - 0x68B9, /* PCI_CHIP_JUNIPER_68B9 */ - 0x68BA, /* PCI_CHIP_JUNIPER_68BA */ - 0x68BE, /* PCI_CHIP_JUNIPER_68BE */ - 0x68BF, /* PCI_CHIP_JUNIPER_68BF */ - 0x6880, /* PCI_CHIP_CYPRESS_6880 */ - 0x6888, /* PCI_CHIP_CYPRESS_6888 */ - 0x6889, /* PCI_CHIP_CYPRESS_6889 */ - 0x688A, /* PCI_CHIP_CYPRESS_688A */ - 0x6898, /* PCI_CHIP_CYPRESS_6898 */ - 0x6899, /* PCI_CHIP_CYPRESS_6899 */ - 0x689B, /* PCI_CHIP_CYPRESS_689B */ - 0x689E, /* PCI_CHIP_CYPRESS_689E */ - 0x689C, /* PCI_CHIP_HEMLOCK_689C */ - 0x689D, /* PCI_CHIP_HEMLOCK_689D */ - 0x9802, /* PCI_CHIP_PALM_9802 */ - 0x9803, /* PCI_CHIP_PALM_9803 */ - 0x9804, /* PCI_CHIP_PALM_9804 */ - 0x9805, /* PCI_CHIP_PALM_9805 */ - 0x9806, /* PCI_CHIP_PALM_9806 */ - 0x9807, /* PCI_CHIP_PALM_9807 */ - 0x6700, /* PCI_CHIP_CAYMAN_6700 */ - 0x6701, /* PCI_CHIP_CAYMAN_6701 */ - 0x6702, /* PCI_CHIP_CAYMAN_6702 */ - 0x6703, /* PCI_CHIP_CAYMAN_6703 */ - 0x6704, /* PCI_CHIP_CAYMAN_6704 */ - 0x6705, /* PCI_CHIP_CAYMAN_6705 */ - 0x6706, /* PCI_CHIP_CAYMAN_6706 */ - 0x6707, /* PCI_CHIP_CAYMAN_6707 */ - 0x6708, /* PCI_CHIP_CAYMAN_6708 */ - 0x6709, /* PCI_CHIP_CAYMAN_6709 */ - 0x6718, /* PCI_CHIP_CAYMAN_6718 */ - 0x6719, /* PCI_CHIP_CAYMAN_6719 */ - 0x671C, /* PCI_CHIP_CAYMAN_671C */ - 0x671D, /* PCI_CHIP_CAYMAN_671D */ - 0x671F, /* PCI_CHIP_CAYMAN_671F */ - 0x6720, /* PCI_CHIP_BARTS_6720 */ - 0x6721, /* PCI_CHIP_BARTS_6721 */ - 0x6722, /* PCI_CHIP_BARTS_6722 */ - 0x6723, /* PCI_CHIP_BARTS_6723 */ - 0x6724, /* PCI_CHIP_BARTS_6724 */ - 0x6725, /* PCI_CHIP_BARTS_6725 */ - 0x6726, /* PCI_CHIP_BARTS_6726 */ - 0x6727, /* PCI_CHIP_BARTS_6727 */ - 0x6728, /* PCI_CHIP_BARTS_6728 */ - 0x6729, /* PCI_CHIP_BARTS_6729 */ - 0x6738, /* PCI_CHIP_BARTS_6738 */ - 0x6739, /* PCI_CHIP_BARTS_6738 */ - 0x673E, /* PCI_CHIP_BARTS_673E */ - 0x6740, /* PCI_CHIP_TURKS_6740 */ - 0x6741, /* PCI_CHIP_TURKS_6741 */ - 0x6742, /* PCI_CHIP_TURKS_6742 */ - 0x6743, /* PCI_CHIP_TURKS_6743 */ - 0x6744, /* PCI_CHIP_TURKS_6744 */ - 0x6745, /* PCI_CHIP_TURKS_6745 */ - 0x6746, /* PCI_CHIP_TURKS_6746 */ - 0x6747, /* PCI_CHIP_TURKS_6747 */ - 0x6748, /* PCI_CHIP_TURKS_6748 */ - 0x6749, /* PCI_CHIP_TURKS_6749 */ - 0x6750, /* PCI_CHIP_TURKS_6750 */ - 0x6758, /* PCI_CHIP_TURKS_6758 */ - 0x6759, /* PCI_CHIP_TURKS_6759 */ - 0x6760, /* PCI_CHIP_CAICOS_6760 */ - 0x6761, /* PCI_CHIP_CAICOS_6761 */ - 0x6762, /* PCI_CHIP_CAICOS_6762 */ - 0x6763, /* PCI_CHIP_CAICOS_6763 */ - 0x6764, /* PCI_CHIP_CAICOS_6764 */ - 0x6765, /* PCI_CHIP_CAICOS_6765 */ - 0x6766, /* PCI_CHIP_CAICOS_6766 */ - 0x6767, /* PCI_CHIP_CAICOS_6767 */ - 0x6768, /* PCI_CHIP_CAICOS_6768 */ - 0x6770, /* PCI_CHIP_CAICOS_6770 */ - 0x6779, /* PCI_CHIP_CAICOS_6779 */ -}; - -const struct dri2_driver_map driver_map[] = { - { 0x8086, "i915", i915_chip_ids, ARRAY_SIZE(i915_chip_ids) }, - { 0x8086, "i965", i965_chip_ids, ARRAY_SIZE(i965_chip_ids) }, - { 0x1002, "radeon", r100_chip_ids, ARRAY_SIZE(r100_chip_ids) }, - { 0x1002, "r200", r200_chip_ids, ARRAY_SIZE(r200_chip_ids) }, - { 0x1002, "r300", r300_chip_ids, ARRAY_SIZE(r300_chip_ids) }, - { 0x1002, "r600", r600_chip_ids, ARRAY_SIZE(r600_chip_ids) }, - { 0x10de, "nouveau", NULL, -1 }, -}; - -static char * -dri2_get_device_name(int fd) -{ - struct udev *udev; - struct udev_device *device; - struct stat buf; - const char *const_device_name; - char *device_name = NULL; - - udev = udev_new(); - if (fstat(fd, &buf) < 0) { - _eglLog(_EGL_WARNING, "EGL-DRI2: failed to stat fd %d", fd); - goto out; - } - - device = udev_device_new_from_devnum(udev, 'c', buf.st_rdev); - if (device == NULL) { - _eglLog(_EGL_WARNING, - "EGL-DRI2: could not create udev device for fd %d", fd); - goto out; - } - - const_device_name = udev_device_get_devnode(device); - if (!const_device_name) { - goto out; - } - device_name = strdup(const_device_name); - - out: - udev_device_unref(device); - udev_unref(udev); - - return device_name; -} - -char * -dri2_get_driver_for_fd(int fd) -{ - struct udev *udev; - struct udev_device *device, *parent; - struct stat buf; - const char *pci_id; - char *driver = NULL; - int vendor_id, chip_id, i, j; - - udev = udev_new(); - if (fstat(fd, &buf) < 0) { - _eglLog(_EGL_WARNING, "EGL-DRI2: failed to stat fd %d", fd); - goto out; - } - - device = udev_device_new_from_devnum(udev, 'c', buf.st_rdev); - if (device == NULL) { - _eglLog(_EGL_WARNING, - "EGL-DRI2: could not create udev device for fd %d", fd); - goto out; - } - - parent = udev_device_get_parent(device); - if (parent == NULL) { - _eglLog(_EGL_WARNING, "DRI2: could not get parent device"); - goto out; - } - - pci_id = udev_device_get_property_value(parent, "PCI_ID"); - if (pci_id == NULL || sscanf(pci_id, "%x:%x", &vendor_id, &chip_id) != 2) { - _eglLog(_EGL_WARNING, "EGL-DRI2: malformed or no PCI ID"); - goto out; - } - - for (i = 0; i < ARRAY_SIZE(driver_map); i++) { - if (vendor_id != driver_map[i].vendor_id) - continue; - if (driver_map[i].num_chips_ids == -1) { - driver = strdup(driver_map[i].driver); - _eglLog(_EGL_DEBUG, "pci id for %d: %04x:%04x, driver %s", - fd, vendor_id, chip_id, driver); - goto out; - } - - for (j = 0; j < driver_map[i].num_chips_ids; j++) - if (driver_map[i].chip_ids[j] == chip_id) { - driver = strdup(driver_map[i].driver); - _eglLog(_EGL_DEBUG, "pci id for %d: %04x:%04x, driver %s", - fd, vendor_id, chip_id, driver); - goto out; - } - } - - out: - udev_device_unref(device); - udev_unref(udev); - - return driver; -} - static int dri2_drm_authenticate(_EGLDisplay *disp, uint32_t id) { @@ -718,7 +59,7 @@ dri2_initialize_drm(_EGLDriver *drv, _EGLDisplay *disp) if (dri2_dpy->driver_name == NULL) return _eglError(EGL_BAD_ALLOC, "DRI2: failed to get driver name"); - dri2_dpy->device_name = dri2_get_device_name(dri2_dpy->fd); + dri2_dpy->device_name = dri2_get_device_name_for_fd(dri2_dpy->fd); if (dri2_dpy->device_name == NULL) { _eglError(EGL_BAD_ALLOC, "DRI2: failed to get device name"); goto cleanup_driver_name; @@ -757,5 +98,3 @@ dri2_initialize_drm(_EGLDriver *drv, _EGLDisplay *disp) return EGL_FALSE; } - -#endif From a433755ec5c48088a0d8a340851a1a8be9e58897 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 30 May 2011 09:55:14 +0200 Subject: [PATCH 058/145] targets/egl: Support driver name lookup using pci lists Make use of this in drm and wayland st/egl backends. Reviewed-by: Alex Deucher --- .../state_trackers/egl/drm/native_drm.c | 33 +------- .../state_trackers/egl/wayland/native_drm.c | 40 +-------- src/gallium/targets/egl/egl.c | 81 ++++++++++++++++++- 3 files changed, 83 insertions(+), 71 deletions(-) diff --git a/src/gallium/state_trackers/egl/drm/native_drm.c b/src/gallium/state_trackers/egl/drm/native_drm.c index c89a6d4767e..725fe28e4e2 100644 --- a/src/gallium/state_trackers/egl/drm/native_drm.c +++ b/src/gallium/state_trackers/egl/drm/native_drm.c @@ -33,10 +33,6 @@ #include "native_drm.h" -/* see get_drm_screen_name */ -#include -#include "radeon/drm/radeon_drm_public.h" - #ifdef HAVE_LIBUDEV #include #endif @@ -140,27 +136,6 @@ drm_display_destroy(struct native_display *ndpy) FREE(drmdpy); } -static const char * -get_drm_screen_name(int fd, drmVersionPtr version) -{ - const char *name = version->name; - - if (name && !strcmp(name, "radeon")) { - int chip_id; - struct drm_radeon_info info; - - memset(&info, 0, sizeof(info)); - info.request = RADEON_INFO_DEVICE_ID; - info.value = pointer_to_intptr(&chip_id); - if (drmCommandWriteRead(fd, DRM_RADEON_INFO, &info, sizeof(info)) != 0) - return NULL; - - name = is_r3xx(chip_id) ? "r300" : "r600"; - } - - return name; -} - /** * Initialize KMS and pipe screen. */ @@ -169,7 +144,6 @@ drm_display_init_screen(struct native_display *ndpy) { struct drm_display *drmdpy = drm_display(ndpy); drmVersionPtr version; - const char *name; version = drmGetVersion(drmdpy->fd); if (!version) { @@ -177,11 +151,8 @@ drm_display_init_screen(struct native_display *ndpy) return FALSE; } - name = get_drm_screen_name(drmdpy->fd, version); - if (name) { - drmdpy->base.screen = - drmdpy->event_handler->new_drm_screen(&drmdpy->base, name, drmdpy->fd); - } + drmdpy->base.screen = + drmdpy->event_handler->new_drm_screen(&drmdpy->base, NULL, drmdpy->fd); drmFreeVersion(version); if (!drmdpy->base.screen) { diff --git a/src/gallium/state_trackers/egl/wayland/native_drm.c b/src/gallium/state_trackers/egl/wayland/native_drm.c index f643c7cbbba..15383e89301 100644 --- a/src/gallium/state_trackers/egl/wayland/native_drm.c +++ b/src/gallium/state_trackers/egl/wayland/native_drm.c @@ -37,10 +37,6 @@ #include "native_wayland.h" -/* see get_drm_screen_name */ -#include -#include "radeon/drm/radeon_drm_public.h" - #include #include "wayland-drm-client-protocol.h" #include "wayland-egl-priv.h" @@ -143,27 +139,6 @@ wayland_create_drm_buffer(struct wayland_display *display, width, height, wsh.stride, visual); } -static const char * -get_drm_screen_name(int fd, drmVersionPtr version) -{ - const char *name = version->name; - - if (name && !strcmp(name, "radeon")) { - int chip_id; - struct drm_radeon_info info; - - memset(&info, 0, sizeof(info)); - info.request = RADEON_INFO_DEVICE_ID; - info.value = pointer_to_intptr(&chip_id); - if (drmCommandWriteRead(fd, DRM_RADEON_INFO, &info, sizeof(info)) != 0) - return NULL; - - name = is_r3xx(chip_id) ? "r300" : "r600"; - } - - return name; -} - static void drm_handle_device(void *data, struct wl_drm *drm, const char *device) { @@ -202,8 +177,6 @@ static boolean wayland_drm_display_init_screen(struct native_display *ndpy) { struct wayland_drm_display *drmdpy = wayland_drm_display(ndpy); - drmVersionPtr version; - const char *driver_name; uint32_t id; id = wl_display_get_global(drmdpy->base.dpy, "wl_drm", 1); @@ -226,20 +199,9 @@ wayland_drm_display_init_screen(struct native_display *ndpy) if (!drmdpy->authenticated) return FALSE; - version = drmGetVersion(drmdpy->fd); - if (!version) { - _eglLog(_EGL_WARNING, "invalid fd %d", drmdpy->fd); - return FALSE; - } - - /* FIXME: share this with native_drm or egl_dri2 */ - driver_name = get_drm_screen_name(drmdpy->fd, version); - drmdpy->base.base.screen = drmdpy->event_handler->new_drm_screen(&drmdpy->base.base, - driver_name, drmdpy->fd); - drmFreeVersion(version); - + NULL, drmdpy->fd); if (!drmdpy->base.base.screen) { _eglLog(_EGL_WARNING, "failed to create DRM screen"); return FALSE; diff --git a/src/gallium/targets/egl/egl.c b/src/gallium/targets/egl/egl.c index 61fe5069e91..3467aea9991 100644 --- a/src/gallium/targets/egl/egl.c +++ b/src/gallium/targets/egl/egl.c @@ -37,6 +37,12 @@ #include "state_tracker/drm_driver.h" #include "common/egl_g3d_loader.h" +#ifdef HAVE_LIBUDEV +#include +#define DRIVER_MAP_GALLIUM_ONLY +#include "pci_ids/pci_id_driver_map.h" +#endif + #include "egl.h" struct egl_g3d_loader egl_g3d_loader; @@ -306,10 +312,83 @@ get_pipe_module(const char *name) return pmod; } +static char * +drm_fd_get_screen_name(int fd) +{ + char *driver = NULL; +#ifdef HAVE_LIBUDEV + struct udev *udev; + struct udev_device *device, *parent; + struct stat buf; + const char *pci_id; + int vendor_id, chip_id, i, j; + + udev = udev_new(); + if (fstat(fd, &buf) < 0) { + _eglLog(_EGL_WARNING, "failed to stat fd %d", fd); + return NULL; + } + + device = udev_device_new_from_devnum(udev, 'c', buf.st_rdev); + if (device == NULL) { + _eglLog(_EGL_WARNING, + "could not create udev device for fd %d", fd); + return NULL; + } + + parent = udev_device_get_parent(device); + if (parent == NULL) { + _eglLog(_EGL_WARNING, "could not get parent device"); + goto out; + } + + pci_id = udev_device_get_property_value(parent, "PCI_ID"); + if (pci_id == NULL || + sscanf(pci_id, "%x:%x", &vendor_id, &chip_id) != 2) { + _eglLog(_EGL_WARNING, "malformed or no PCI ID"); + goto out; + } + + for (i = 0; driver_map[i].driver; i++) { + if (vendor_id != driver_map[i].vendor_id) + continue; + if (driver_map[i].num_chips_ids == -1) { + driver = strdup(driver_map[i].driver); + _eglLog(_EGL_WARNING, + "pci id for %d: %04x:%04x, driver %s", + fd, vendor_id, chip_id, driver); + goto out; + } + + for (j = 0; j < driver_map[i].num_chips_ids; j++) + if (driver_map[i].chip_ids[j] == chip_id) { + driver = strdup(driver_map[i].driver); + _eglLog(_EGL_WARNING, + "pci id for %d: %04x:%04x, driver %s", + fd, vendor_id, chip_id, driver); + goto out; + } + } + +out: + udev_device_unref(device); + udev_unref(udev); + +#endif + return driver; +} + static struct pipe_screen * create_drm_screen(const char *name, int fd) { - struct pipe_module *pmod = get_pipe_module(name); + struct pipe_module *pmod; + const char *screen_name = name; + + if (screen_name == NULL) + if ((screen_name = drm_fd_get_screen_name(fd)) == NULL) + return NULL; + pmod = get_pipe_module(screen_name); + return (pmod && pmod->drmdd && pmod->drmdd->create_screen) ? pmod->drmdd->create_screen(fd) : NULL; } From 6b821936779d6e3ab76bd353dfa8bdd17124654d Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 6 Jun 2011 13:12:26 +0200 Subject: [PATCH 059/145] radeon: Use pciid list to generate PCI_CHIP__ defines Reviewed-by: Alex Deucher --- src/mesa/drivers/dri/radeon/radeon_chipset.h | 500 +------------------ 1 file changed, 9 insertions(+), 491 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_chipset.h b/src/mesa/drivers/dri/radeon/radeon_chipset.h index bd236625122..fd64e2180cb 100644 --- a/src/mesa/drivers/dri/radeon/radeon_chipset.h +++ b/src/mesa/drivers/dri/radeon/radeon_chipset.h @@ -9,498 +9,16 @@ * r300 includes R300, RV350, RV370. * (RS* denotes IGP) */ -#define PCI_CHIP_RV380_3150 0x3150 -#define PCI_CHIP_RV380_3152 0x3152 -#define PCI_CHIP_RV380_3154 0x3154 -#define PCI_CHIP_RV380_3155 0x3155 -#define PCI_CHIP_RV380_3E50 0x3E50 -#define PCI_CHIP_RV380_3E54 0x3E54 -#define PCI_CHIP_RS100_4136 0x4136 -#define PCI_CHIP_RS200_4137 0x4137 -#define PCI_CHIP_R300_AD 0x4144 -#define PCI_CHIP_R300_AE 0x4145 -#define PCI_CHIP_R300_AF 0x4146 -#define PCI_CHIP_R300_AG 0x4147 -#define PCI_CHIP_R350_AH 0x4148 -#define PCI_CHIP_R350_AI 0x4149 -#define PCI_CHIP_R350_AJ 0x414A -#define PCI_CHIP_R350_AK 0x414B -#define PCI_CHIP_RV350_AP 0x4150 -#define PCI_CHIP_RV350_AQ 0x4151 -#define PCI_CHIP_RV350_AR 0x4152 -#define PCI_CHIP_RV350_AS 0x4153 -#define PCI_CHIP_RV350_AT 0x4154 -#define PCI_CHIP_RV350_AU 0x4155 -#define PCI_CHIP_RV350_AV 0x4156 -#define PCI_CHIP_RS250_4237 0x4237 -#define PCI_CHIP_R200_BB 0x4242 -#define PCI_CHIP_RS100_4336 0x4336 -#define PCI_CHIP_RS200_4337 0x4337 -#define PCI_CHIP_RS250_4437 0x4437 -#define PCI_CHIP_RV250_If 0x4966 -#define PCI_CHIP_RV250_Ig 0x4967 -#define PCI_CHIP_R420_JH 0x4A48 -#define PCI_CHIP_R420_JI 0x4A49 -#define PCI_CHIP_R420_JJ 0x4A4A -#define PCI_CHIP_R420_JK 0x4A4B -#define PCI_CHIP_R420_JL 0x4A4C -#define PCI_CHIP_R420_JM 0x4A4D -#define PCI_CHIP_R420_JN 0x4A4E -#define PCI_CHIP_R420_JO 0x4A4F -#define PCI_CHIP_R420_JP 0x4A50 -#define PCI_CHIP_R420_JT 0x4A54 -#define PCI_CHIP_R481_4B49 0x4B49 -#define PCI_CHIP_R481_4B4A 0x4B4A -#define PCI_CHIP_R481_4B4B 0x4B4B -#define PCI_CHIP_R481_4B4C 0x4B4C -#define PCI_CHIP_RADEON_LW 0x4C57 -#define PCI_CHIP_RADEON_LX 0x4C58 -#define PCI_CHIP_RADEON_LY 0x4C59 -#define PCI_CHIP_RADEON_LZ 0x4C5A -#define PCI_CHIP_RV250_Ld 0x4C64 -#define PCI_CHIP_RV250_Lf 0x4C66 -#define PCI_CHIP_RV250_Lg 0x4C67 -#define PCI_CHIP_R300_ND 0x4E44 -#define PCI_CHIP_R300_NE 0x4E45 -#define PCI_CHIP_R300_NF 0x4E46 -#define PCI_CHIP_R300_NG 0x4E47 -#define PCI_CHIP_R350_NH 0x4E48 -#define PCI_CHIP_R350_NI 0x4E49 -#define PCI_CHIP_R360_NJ 0x4E4A -#define PCI_CHIP_R350_NK 0x4E4B -#define PCI_CHIP_RV350_NP 0x4E50 -#define PCI_CHIP_RV350_NQ 0x4E51 -#define PCI_CHIP_RV350_NR 0x4E52 -#define PCI_CHIP_RV350_NS 0x4E53 -#define PCI_CHIP_RV350_NT 0x4E54 -#define PCI_CHIP_RV350_NV 0x4E56 -#define PCI_CHIP_RADEON_QD 0x5144 -#define PCI_CHIP_RADEON_QE 0x5145 -#define PCI_CHIP_RADEON_QF 0x5146 -#define PCI_CHIP_RADEON_QG 0x5147 -#define PCI_CHIP_R200_QH 0x5148 -#define PCI_CHIP_R200_QL 0x514C -#define PCI_CHIP_R200_QM 0x514D -#define PCI_CHIP_RV200_QW 0x5157 -#define PCI_CHIP_RV200_QX 0x5158 -#define PCI_CHIP_RADEON_QY 0x5159 -#define PCI_CHIP_RADEON_QZ 0x515A -#define PCI_CHIP_RN50_515E 0x515E -#define PCI_CHIP_RV370_5460 0x5460 -#define PCI_CHIP_RV370_5462 0x5462 -#define PCI_CHIP_RV370_5464 0x5464 -#define PCI_CHIP_R423_UH 0x5548 -#define PCI_CHIP_R423_UI 0x5549 -#define PCI_CHIP_R423_UJ 0x554A -#define PCI_CHIP_R423_UK 0x554B -#define PCI_CHIP_R430_554C 0x554C -#define PCI_CHIP_R430_554D 0x554D -#define PCI_CHIP_R430_554E 0x554E -#define PCI_CHIP_R430_554F 0x554F -#define PCI_CHIP_R423_5550 0x5550 -#define PCI_CHIP_R423_UQ 0x5551 -#define PCI_CHIP_R423_UR 0x5552 -#define PCI_CHIP_R423_UT 0x5554 -#define PCI_CHIP_RV410_564A 0x564A -#define PCI_CHIP_RV410_564B 0x564B -#define PCI_CHIP_RV410_564F 0x564F -#define PCI_CHIP_RV410_5652 0x5652 -#define PCI_CHIP_RV410_5653 0x5653 -#define PCI_CHIP_RV410_5657 0x5657 -#define PCI_CHIP_RS300_5834 0x5834 -#define PCI_CHIP_RS300_5835 0x5835 -#define PCI_CHIP_RS480_5954 0x5954 -#define PCI_CHIP_RS480_5955 0x5955 -#define PCI_CHIP_RV280_5960 0x5960 -#define PCI_CHIP_RV280_5961 0x5961 -#define PCI_CHIP_RV280_5962 0x5962 -#define PCI_CHIP_RV280_5964 0x5964 -#define PCI_CHIP_RV280_5965 0x5965 -#define PCI_CHIP_RN50_5969 0x5969 -#define PCI_CHIP_RS482_5974 0x5974 -#define PCI_CHIP_RS482_5975 0x5975 -#define PCI_CHIP_RS400_5A41 0x5A41 -#define PCI_CHIP_RS400_5A42 0x5A42 -#define PCI_CHIP_RC410_5A61 0x5A61 -#define PCI_CHIP_RC410_5A62 0x5A62 -#define PCI_CHIP_RV370_5B60 0x5B60 -#define PCI_CHIP_RV370_5B62 0x5B62 -#define PCI_CHIP_RV370_5B63 0x5B63 -#define PCI_CHIP_RV370_5B64 0x5B64 -#define PCI_CHIP_RV370_5B65 0x5B65 -#define PCI_CHIP_RV280_5C61 0x5C61 -#define PCI_CHIP_RV280_5C63 0x5C63 -#define PCI_CHIP_R430_5D48 0x5D48 -#define PCI_CHIP_R430_5D49 0x5D49 -#define PCI_CHIP_R430_5D4A 0x5D4A -#define PCI_CHIP_R480_5D4C 0x5D4C -#define PCI_CHIP_R480_5D4D 0x5D4D -#define PCI_CHIP_R480_5D4E 0x5D4E -#define PCI_CHIP_R480_5D4F 0x5D4F -#define PCI_CHIP_R480_5D50 0x5D50 -#define PCI_CHIP_R480_5D52 0x5D52 -#define PCI_CHIP_R423_5D57 0x5D57 -#define PCI_CHIP_RV410_5E48 0x5E48 -#define PCI_CHIP_RV410_5E4A 0x5E4A -#define PCI_CHIP_RV410_5E4B 0x5E4B -#define PCI_CHIP_RV410_5E4C 0x5E4C -#define PCI_CHIP_RV410_5E4D 0x5E4D -#define PCI_CHIP_RV410_5E4F 0x5E4F -#define PCI_CHIP_R520_7100 0x7100 -#define PCI_CHIP_R520_7101 0x7101 -#define PCI_CHIP_R520_7102 0x7102 -#define PCI_CHIP_R520_7103 0x7103 -#define PCI_CHIP_R520_7104 0x7104 -#define PCI_CHIP_R520_7105 0x7105 -#define PCI_CHIP_R520_7106 0x7106 -#define PCI_CHIP_R520_7108 0x7108 -#define PCI_CHIP_R520_7109 0x7109 -#define PCI_CHIP_R520_710A 0x710A -#define PCI_CHIP_R520_710B 0x710B -#define PCI_CHIP_R520_710C 0x710C -#define PCI_CHIP_R520_710E 0x710E -#define PCI_CHIP_R520_710F 0x710F -#define PCI_CHIP_RV515_7140 0x7140 -#define PCI_CHIP_RV515_7141 0x7141 -#define PCI_CHIP_RV515_7142 0x7142 -#define PCI_CHIP_RV515_7143 0x7143 -#define PCI_CHIP_RV515_7144 0x7144 -#define PCI_CHIP_RV515_7145 0x7145 -#define PCI_CHIP_RV515_7146 0x7146 -#define PCI_CHIP_RV515_7147 0x7147 -#define PCI_CHIP_RV515_7149 0x7149 -#define PCI_CHIP_RV515_714A 0x714A -#define PCI_CHIP_RV515_714B 0x714B -#define PCI_CHIP_RV515_714C 0x714C -#define PCI_CHIP_RV515_714D 0x714D -#define PCI_CHIP_RV515_714E 0x714E -#define PCI_CHIP_RV515_714F 0x714F -#define PCI_CHIP_RV515_7151 0x7151 -#define PCI_CHIP_RV515_7152 0x7152 -#define PCI_CHIP_RV515_7153 0x7153 -#define PCI_CHIP_RV515_715E 0x715E -#define PCI_CHIP_RV515_715F 0x715F -#define PCI_CHIP_RV515_7180 0x7180 -#define PCI_CHIP_RV515_7181 0x7181 -#define PCI_CHIP_RV515_7183 0x7183 -#define PCI_CHIP_RV515_7186 0x7186 -#define PCI_CHIP_RV515_7187 0x7187 -#define PCI_CHIP_RV515_7188 0x7188 -#define PCI_CHIP_RV515_718A 0x718A -#define PCI_CHIP_RV515_718B 0x718B -#define PCI_CHIP_RV515_718C 0x718C -#define PCI_CHIP_RV515_718D 0x718D -#define PCI_CHIP_RV515_718F 0x718F -#define PCI_CHIP_RV515_7193 0x7193 -#define PCI_CHIP_RV515_7196 0x7196 -#define PCI_CHIP_RV515_719B 0x719B -#define PCI_CHIP_RV515_719F 0x719F -#define PCI_CHIP_RV530_71C0 0x71C0 -#define PCI_CHIP_RV530_71C1 0x71C1 -#define PCI_CHIP_RV530_71C2 0x71C2 -#define PCI_CHIP_RV530_71C3 0x71C3 -#define PCI_CHIP_RV530_71C4 0x71C4 -#define PCI_CHIP_RV530_71C5 0x71C5 -#define PCI_CHIP_RV530_71C6 0x71C6 -#define PCI_CHIP_RV530_71C7 0x71C7 -#define PCI_CHIP_RV530_71CD 0x71CD -#define PCI_CHIP_RV530_71CE 0x71CE -#define PCI_CHIP_RV530_71D2 0x71D2 -#define PCI_CHIP_RV530_71D4 0x71D4 -#define PCI_CHIP_RV530_71D5 0x71D5 -#define PCI_CHIP_RV530_71D6 0x71D6 -#define PCI_CHIP_RV530_71DA 0x71DA -#define PCI_CHIP_RV530_71DE 0x71DE -#define PCI_CHIP_RV515_7200 0x7200 -#define PCI_CHIP_RV515_7210 0x7210 -#define PCI_CHIP_RV515_7211 0x7211 -#define PCI_CHIP_R580_7240 0x7240 -#define PCI_CHIP_R580_7243 0x7243 -#define PCI_CHIP_R580_7244 0x7244 -#define PCI_CHIP_R580_7245 0x7245 -#define PCI_CHIP_R580_7246 0x7246 -#define PCI_CHIP_R580_7247 0x7247 -#define PCI_CHIP_R580_7248 0x7248 -#define PCI_CHIP_R580_7249 0x7249 -#define PCI_CHIP_R580_724A 0x724A -#define PCI_CHIP_R580_724B 0x724B -#define PCI_CHIP_R580_724C 0x724C -#define PCI_CHIP_R580_724D 0x724D -#define PCI_CHIP_R580_724E 0x724E -#define PCI_CHIP_R580_724F 0x724F -#define PCI_CHIP_RV570_7280 0x7280 -#define PCI_CHIP_RV560_7281 0x7281 -#define PCI_CHIP_RV560_7283 0x7283 -#define PCI_CHIP_R580_7284 0x7284 -#define PCI_CHIP_RV560_7287 0x7287 -#define PCI_CHIP_RV570_7288 0x7288 -#define PCI_CHIP_RV570_7289 0x7289 -#define PCI_CHIP_RV570_728B 0x728B -#define PCI_CHIP_RV570_728C 0x728C -#define PCI_CHIP_RV560_7290 0x7290 -#define PCI_CHIP_RV560_7291 0x7291 -#define PCI_CHIP_RV560_7293 0x7293 -#define PCI_CHIP_RV560_7297 0x7297 - -#define PCI_CHIP_RS350_7834 0x7834 -#define PCI_CHIP_RS350_7835 0x7835 -#define PCI_CHIP_RS690_791E 0x791E -#define PCI_CHIP_RS690_791F 0x791F -#define PCI_CHIP_RS600_793F 0x793F -#define PCI_CHIP_RS600_7941 0x7941 -#define PCI_CHIP_RS600_7942 0x7942 -#define PCI_CHIP_RS740_796C 0x796C -#define PCI_CHIP_RS740_796D 0x796D -#define PCI_CHIP_RS740_796E 0x796E -#define PCI_CHIP_RS740_796F 0x796F - -#define PCI_CHIP_R600_9400 0x9400 -#define PCI_CHIP_R600_9401 0x9401 -#define PCI_CHIP_R600_9402 0x9402 -#define PCI_CHIP_R600_9403 0x9403 -#define PCI_CHIP_R600_9405 0x9405 -#define PCI_CHIP_R600_940A 0x940A -#define PCI_CHIP_R600_940B 0x940B -#define PCI_CHIP_R600_940F 0x940F - -#define PCI_CHIP_RV610_94C0 0x94C0 -#define PCI_CHIP_RV610_94C1 0x94C1 -#define PCI_CHIP_RV610_94C3 0x94C3 -#define PCI_CHIP_RV610_94C4 0x94C4 -#define PCI_CHIP_RV610_94C5 0x94C5 -#define PCI_CHIP_RV610_94C6 0x94C6 -#define PCI_CHIP_RV610_94C7 0x94C7 -#define PCI_CHIP_RV610_94C8 0x94C8 -#define PCI_CHIP_RV610_94C9 0x94C9 -#define PCI_CHIP_RV610_94CB 0x94CB -#define PCI_CHIP_RV610_94CC 0x94CC -#define PCI_CHIP_RV610_94CD 0x94CD - -#define PCI_CHIP_RV630_9580 0x9580 -#define PCI_CHIP_RV630_9581 0x9581 -#define PCI_CHIP_RV630_9583 0x9583 -#define PCI_CHIP_RV630_9586 0x9586 -#define PCI_CHIP_RV630_9587 0x9587 -#define PCI_CHIP_RV630_9588 0x9588 -#define PCI_CHIP_RV630_9589 0x9589 -#define PCI_CHIP_RV630_958A 0x958A -#define PCI_CHIP_RV630_958B 0x958B -#define PCI_CHIP_RV630_958C 0x958C -#define PCI_CHIP_RV630_958D 0x958D -#define PCI_CHIP_RV630_958E 0x958E -#define PCI_CHIP_RV630_958F 0x958F - -#define PCI_CHIP_RV670_9500 0x9500 -#define PCI_CHIP_RV670_9501 0x9501 -#define PCI_CHIP_RV670_9504 0x9504 -#define PCI_CHIP_RV670_9505 0x9505 -#define PCI_CHIP_RV670_9506 0x9506 -#define PCI_CHIP_RV670_9507 0x9507 -#define PCI_CHIP_RV670_9508 0x9508 -#define PCI_CHIP_RV670_9509 0x9509 -#define PCI_CHIP_RV670_950F 0x950F -#define PCI_CHIP_RV670_9511 0x9511 -#define PCI_CHIP_RV670_9515 0x9515 -#define PCI_CHIP_RV670_9517 0x9517 -#define PCI_CHIP_RV670_9519 0x9519 - -#define PCI_CHIP_RV620_95C0 0x95C0 -#define PCI_CHIP_RV620_95C2 0x95C2 -#define PCI_CHIP_RV620_95C4 0x95C4 -#define PCI_CHIP_RV620_95C5 0x95C5 -#define PCI_CHIP_RV620_95C6 0x95C6 -#define PCI_CHIP_RV620_95C7 0x95C7 -#define PCI_CHIP_RV620_95C9 0x95C9 -#define PCI_CHIP_RV620_95CC 0x95CC -#define PCI_CHIP_RV620_95CD 0x95CD -#define PCI_CHIP_RV620_95CE 0x95CE -#define PCI_CHIP_RV620_95CF 0x95CF - -#define PCI_CHIP_RV635_9590 0x9590 -#define PCI_CHIP_RV635_9591 0x9591 -#define PCI_CHIP_RV635_9593 0x9593 -#define PCI_CHIP_RV635_9595 0x9595 -#define PCI_CHIP_RV635_9596 0x9596 -#define PCI_CHIP_RV635_9597 0x9597 -#define PCI_CHIP_RV635_9598 0x9598 -#define PCI_CHIP_RV635_9599 0x9599 -#define PCI_CHIP_RV635_959B 0x959B - -#define PCI_CHIP_RS780_9610 0x9610 -#define PCI_CHIP_RS780_9611 0x9611 -#define PCI_CHIP_RS780_9612 0x9612 -#define PCI_CHIP_RS780_9613 0x9613 -#define PCI_CHIP_RS780_9614 0x9614 -#define PCI_CHIP_RS780_9615 0x9615 -#define PCI_CHIP_RS780_9616 0x9616 - -#define PCI_CHIP_RS880_9710 0x9710 -#define PCI_CHIP_RS880_9711 0x9711 -#define PCI_CHIP_RS880_9712 0x9712 -#define PCI_CHIP_RS880_9713 0x9713 -#define PCI_CHIP_RS880_9714 0x9714 -#define PCI_CHIP_RS880_9715 0x9715 - -#define PCI_CHIP_RV770_9440 0x9440 -#define PCI_CHIP_RV770_9441 0x9441 -#define PCI_CHIP_RV770_9442 0x9442 -#define PCI_CHIP_RV770_9443 0x9443 -#define PCI_CHIP_RV770_9444 0x9444 -#define PCI_CHIP_RV770_9446 0x9446 -#define PCI_CHIP_RV770_944A 0x944A -#define PCI_CHIP_RV770_944B 0x944B -#define PCI_CHIP_RV770_944C 0x944C -#define PCI_CHIP_RV770_944E 0x944E -#define PCI_CHIP_RV770_9450 0x9450 -#define PCI_CHIP_RV770_9452 0x9452 -#define PCI_CHIP_RV770_9456 0x9456 -#define PCI_CHIP_RV770_945A 0x945A -#define PCI_CHIP_RV770_945B 0x945B -#define PCI_CHIP_RV770_945E 0x945E -#define PCI_CHIP_RV790_9460 0x9460 -#define PCI_CHIP_RV790_9462 0x9462 -#define PCI_CHIP_RV770_946A 0x946A -#define PCI_CHIP_RV770_946B 0x946B -#define PCI_CHIP_RV770_947A 0x947A -#define PCI_CHIP_RV770_947B 0x947B - -#define PCI_CHIP_RV730_9480 0x9480 -#define PCI_CHIP_RV730_9487 0x9487 -#define PCI_CHIP_RV730_9488 0x9488 -#define PCI_CHIP_RV730_9489 0x9489 -#define PCI_CHIP_RV730_948A 0x948A -#define PCI_CHIP_RV730_948F 0x948F -#define PCI_CHIP_RV730_9490 0x9490 -#define PCI_CHIP_RV730_9491 0x9491 -#define PCI_CHIP_RV730_9495 0x9495 -#define PCI_CHIP_RV730_9498 0x9498 -#define PCI_CHIP_RV730_949C 0x949C -#define PCI_CHIP_RV730_949E 0x949E -#define PCI_CHIP_RV730_949F 0x949F - -#define PCI_CHIP_RV710_9540 0x9540 -#define PCI_CHIP_RV710_9541 0x9541 -#define PCI_CHIP_RV710_9542 0x9542 -#define PCI_CHIP_RV710_954E 0x954E -#define PCI_CHIP_RV710_954F 0x954F -#define PCI_CHIP_RV710_9552 0x9552 -#define PCI_CHIP_RV710_9553 0x9553 -#define PCI_CHIP_RV710_9555 0x9555 -#define PCI_CHIP_RV710_9557 0x9557 -#define PCI_CHIP_RV710_955F 0x955F - -#define PCI_CHIP_RV740_94A0 0x94A0 -#define PCI_CHIP_RV740_94A1 0x94A1 -#define PCI_CHIP_RV740_94A3 0x94A3 -#define PCI_CHIP_RV740_94B1 0x94B1 -#define PCI_CHIP_RV740_94B3 0x94B3 -#define PCI_CHIP_RV740_94B4 0x94B4 -#define PCI_CHIP_RV740_94B5 0x94B5 -#define PCI_CHIP_RV740_94B9 0x94B9 - -#define PCI_CHIP_CEDAR_68E0 0x68E0 -#define PCI_CHIP_CEDAR_68E1 0x68E1 -#define PCI_CHIP_CEDAR_68E4 0x68E4 -#define PCI_CHIP_CEDAR_68E5 0x68E5 -#define PCI_CHIP_CEDAR_68E8 0x68E8 -#define PCI_CHIP_CEDAR_68E9 0x68E9 -#define PCI_CHIP_CEDAR_68F1 0x68F1 -#define PCI_CHIP_CEDAR_68F2 0x68F2 -#define PCI_CHIP_CEDAR_68F8 0x68F8 -#define PCI_CHIP_CEDAR_68F9 0x68F9 -#define PCI_CHIP_CEDAR_68FE 0x68FE - -#define PCI_CHIP_REDWOOD_68C0 0x68C0 -#define PCI_CHIP_REDWOOD_68C1 0x68C1 -#define PCI_CHIP_REDWOOD_68C8 0x68C8 -#define PCI_CHIP_REDWOOD_68C9 0x68C9 -#define PCI_CHIP_REDWOOD_68D8 0x68D8 -#define PCI_CHIP_REDWOOD_68D9 0x68D9 -#define PCI_CHIP_REDWOOD_68DA 0x68DA -#define PCI_CHIP_REDWOOD_68DE 0x68DE - -#define PCI_CHIP_JUNIPER_68A0 0x68A0 -#define PCI_CHIP_JUNIPER_68A1 0x68A1 -#define PCI_CHIP_JUNIPER_68A8 0x68A8 -#define PCI_CHIP_JUNIPER_68A9 0x68A9 -#define PCI_CHIP_JUNIPER_68B0 0x68B0 -#define PCI_CHIP_JUNIPER_68B8 0x68B8 -#define PCI_CHIP_JUNIPER_68B9 0x68B9 -#define PCI_CHIP_JUNIPER_68BA 0x68BA -#define PCI_CHIP_JUNIPER_68BE 0x68BE -#define PCI_CHIP_JUNIPER_68BF 0x68BF - -#define PCI_CHIP_CYPRESS_6880 0x6880 -#define PCI_CHIP_CYPRESS_6888 0x6888 -#define PCI_CHIP_CYPRESS_6889 0x6889 -#define PCI_CHIP_CYPRESS_688A 0x688A -#define PCI_CHIP_CYPRESS_6898 0x6898 -#define PCI_CHIP_CYPRESS_6899 0x6899 -#define PCI_CHIP_CYPRESS_689B 0x689B -#define PCI_CHIP_CYPRESS_689E 0x689E - -#define PCI_CHIP_HEMLOCK_689C 0x689C -#define PCI_CHIP_HEMLOCK_689D 0x689D - -#define PCI_CHIP_PALM_9802 0x9802 -#define PCI_CHIP_PALM_9803 0x9803 -#define PCI_CHIP_PALM_9804 0x9804 -#define PCI_CHIP_PALM_9805 0x9805 -#define PCI_CHIP_PALM_9806 0x9806 -#define PCI_CHIP_PALM_9807 0x9807 - -#define PCI_CHIP_SUMO_9640 0x9640 -#define PCI_CHIP_SUMO_9641 0x9641 -#define PCI_CHIP_SUMO2_9642 0x9642 -#define PCI_CHIP_SUMO2_9643 0x9643 -#define PCI_CHIP_SUMO2_9644 0x9644 -#define PCI_CHIP_SUMO2_9645 0x9645 -#define PCI_CHIP_SUMO_9647 0x9647 -#define PCI_CHIP_SUMO_9648 0x9648 -#define PCI_CHIP_SUMO_964A 0x964a -#define PCI_CHIP_SUMO_964E 0x964e -#define PCI_CHIP_SUMO_964F 0x964f - -#define PCI_CHIP_BARTS_6720 0x6720 -#define PCI_CHIP_BARTS_6721 0x6721 -#define PCI_CHIP_BARTS_6722 0x6722 -#define PCI_CHIP_BARTS_6723 0x6723 -#define PCI_CHIP_BARTS_6724 0x6724 -#define PCI_CHIP_BARTS_6725 0x6725 -#define PCI_CHIP_BARTS_6726 0x6726 -#define PCI_CHIP_BARTS_6727 0x6727 -#define PCI_CHIP_BARTS_6728 0x6728 -#define PCI_CHIP_BARTS_6729 0x6729 -#define PCI_CHIP_BARTS_6738 0x6738 -#define PCI_CHIP_BARTS_6739 0x6739 -#define PCI_CHIP_BARTS_673E 0x673E - -#define PCI_CHIP_TURKS_6740 0x6740 -#define PCI_CHIP_TURKS_6741 0x6741 -#define PCI_CHIP_TURKS_6742 0x6742 -#define PCI_CHIP_TURKS_6743 0x6743 -#define PCI_CHIP_TURKS_6744 0x6744 -#define PCI_CHIP_TURKS_6745 0x6745 -#define PCI_CHIP_TURKS_6746 0x6746 -#define PCI_CHIP_TURKS_6747 0x6747 -#define PCI_CHIP_TURKS_6748 0x6748 -#define PCI_CHIP_TURKS_6749 0x6749 -#define PCI_CHIP_TURKS_6750 0x6750 -#define PCI_CHIP_TURKS_6758 0x6758 -#define PCI_CHIP_TURKS_6759 0x6759 - -#define PCI_CHIP_CAICOS_6760 0x6760 -#define PCI_CHIP_CAICOS_6761 0x6761 -#define PCI_CHIP_CAICOS_6762 0x6762 -#define PCI_CHIP_CAICOS_6763 0x6763 -#define PCI_CHIP_CAICOS_6764 0x6764 -#define PCI_CHIP_CAICOS_6765 0x6765 -#define PCI_CHIP_CAICOS_6766 0x6766 -#define PCI_CHIP_CAICOS_6767 0x6767 -#define PCI_CHIP_CAICOS_6768 0x6768 -#define PCI_CHIP_CAICOS_6770 0x6770 -#define PCI_CHIP_CAICOS_6779 0x6779 +enum { +#define RADEON_CLASSIC 1 +#define CHIPSET(id, name, family) PCI_CHIP_##name = id, +#include "pci_ids/radeon_pci_ids.h" +#include "pci_ids/r200_pci_ids.h" +#include "pci_ids/r300_pci_ids.h" +#include "pci_ids/r600_pci_ids.h" +#undef CHIPSET +}; enum { CHIP_FAMILY_R100, From 2bb253120ef43768dce26e8e58090eac771013b2 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 6 Jun 2011 13:13:01 +0200 Subject: [PATCH 060/145] r600g: Use radeon pciid list for the family lookup table Reviewed-by: Alex Deucher --- src/gallium/winsys/r600/drm/Makefile | 1 + src/gallium/winsys/r600/drm/radeon_pciid.c | 486 +-------------------- 2 files changed, 6 insertions(+), 481 deletions(-) diff --git a/src/gallium/winsys/r600/drm/Makefile b/src/gallium/winsys/r600/drm/Makefile index 7310734f051..fb7b09b3a0d 100644 --- a/src/gallium/winsys/r600/drm/Makefile +++ b/src/gallium/winsys/r600/drm/Makefile @@ -15,6 +15,7 @@ C_SOURCES = \ r600_bomgr.c LIBRARY_INCLUDES = -I$(TOP)/src/gallium/drivers/r600 \ + -I$(TOP)/include \ $(shell pkg-config libdrm --cflags-only-I) include ../../../Makefile.template diff --git a/src/gallium/winsys/r600/drm/radeon_pciid.c b/src/gallium/winsys/r600/drm/radeon_pciid.c index 5c41a10bdba..ff6821fcb52 100644 --- a/src/gallium/winsys/r600/drm/radeon_pciid.c +++ b/src/gallium/winsys/r600/drm/radeon_pciid.c @@ -33,487 +33,11 @@ struct pci_id { }; static const struct pci_id radeon_pci_id[] = { - {0x1002, 0x3150, CHIP_RV380}, - {0x1002, 0x3152, CHIP_RV380}, - {0x1002, 0x3154, CHIP_RV380}, - {0x1002, 0x3E50, CHIP_RV380}, - {0x1002, 0x3E54, CHIP_RV380}, - {0x1002, 0x4136, CHIP_RS100}, - {0x1002, 0x4137, CHIP_RS200}, - {0x1002, 0x4144, CHIP_R300}, - {0x1002, 0x4145, CHIP_R300}, - {0x1002, 0x4146, CHIP_R300}, - {0x1002, 0x4147, CHIP_R300}, - {0x1002, 0x4148, CHIP_R350}, - {0x1002, 0x4149, CHIP_R350}, - {0x1002, 0x414A, CHIP_R350}, - {0x1002, 0x414B, CHIP_R350}, - {0x1002, 0x4150, CHIP_RV350}, - {0x1002, 0x4151, CHIP_RV350}, - {0x1002, 0x4152, CHIP_RV350}, - {0x1002, 0x4153, CHIP_RV350}, - {0x1002, 0x4154, CHIP_RV350}, - {0x1002, 0x4155, CHIP_RV350}, - {0x1002, 0x4156, CHIP_RV350}, - {0x1002, 0x4237, CHIP_RS200}, - {0x1002, 0x4242, CHIP_R200}, - {0x1002, 0x4243, CHIP_R200}, - {0x1002, 0x4336, CHIP_RS100}, - {0x1002, 0x4337, CHIP_RS200}, - {0x1002, 0x4437, CHIP_RS200}, - {0x1002, 0x4966, CHIP_RV250}, - {0x1002, 0x4967, CHIP_RV250}, - {0x1002, 0x4A48, CHIP_R420}, - {0x1002, 0x4A49, CHIP_R420}, - {0x1002, 0x4A4A, CHIP_R420}, - {0x1002, 0x4A4B, CHIP_R420}, - {0x1002, 0x4A4C, CHIP_R420}, - {0x1002, 0x4A4D, CHIP_R420}, - {0x1002, 0x4A4E, CHIP_R420}, - {0x1002, 0x4A4F, CHIP_R420}, - {0x1002, 0x4A50, CHIP_R420}, - {0x1002, 0x4A54, CHIP_R420}, - {0x1002, 0x4B48, CHIP_R420}, - {0x1002, 0x4B49, CHIP_R420}, - {0x1002, 0x4B4A, CHIP_R420}, - {0x1002, 0x4B4B, CHIP_R420}, - {0x1002, 0x4B4C, CHIP_R420}, - {0x1002, 0x4C57, CHIP_RV200}, - {0x1002, 0x4C58, CHIP_RV200}, - {0x1002, 0x4C59, CHIP_RV100}, - {0x1002, 0x4C5A, CHIP_RV100}, - {0x1002, 0x4C64, CHIP_RV250}, - {0x1002, 0x4C66, CHIP_RV250}, - {0x1002, 0x4C67, CHIP_RV250}, - {0x1002, 0x4E44, CHIP_R300}, - {0x1002, 0x4E45, CHIP_R300}, - {0x1002, 0x4E46, CHIP_R300}, - {0x1002, 0x4E47, CHIP_R300}, - {0x1002, 0x4E48, CHIP_R350}, - {0x1002, 0x4E49, CHIP_R350}, - {0x1002, 0x4E4A, CHIP_R350}, - {0x1002, 0x4E4B, CHIP_R350}, - {0x1002, 0x4E50, CHIP_RV350}, - {0x1002, 0x4E51, CHIP_RV350}, - {0x1002, 0x4E52, CHIP_RV350}, - {0x1002, 0x4E53, CHIP_RV350}, - {0x1002, 0x4E54, CHIP_RV350}, - {0x1002, 0x4E56, CHIP_RV350}, - {0x1002, 0x5144, CHIP_R100}, - {0x1002, 0x5145, CHIP_R100}, - {0x1002, 0x5146, CHIP_R100}, - {0x1002, 0x5147, CHIP_R100}, - {0x1002, 0x5148, CHIP_R200}, - {0x1002, 0x514C, CHIP_R200}, - {0x1002, 0x514D, CHIP_R200}, - {0x1002, 0x5157, CHIP_RV200}, - {0x1002, 0x5158, CHIP_RV200}, - {0x1002, 0x5159, CHIP_RV100}, - {0x1002, 0x515A, CHIP_RV100}, - {0x1002, 0x515E, CHIP_RV100}, - {0x1002, 0x5460, CHIP_RV380}, - {0x1002, 0x5462, CHIP_RV380}, - {0x1002, 0x5464, CHIP_RV380}, - {0x1002, 0x5657, CHIP_RV380}, - {0x1002, 0x5548, CHIP_R423}, - {0x1002, 0x5549, CHIP_R423}, - {0x1002, 0x554A, CHIP_R423}, - {0x1002, 0x554B, CHIP_R423}, - {0x1002, 0x554C, CHIP_R423}, - {0x1002, 0x554D, CHIP_R423}, - {0x1002, 0x554E, CHIP_R423}, - {0x1002, 0x554F, CHIP_R423}, - {0x1002, 0x5550, CHIP_R423}, - {0x1002, 0x5551, CHIP_R423}, - {0x1002, 0x5552, CHIP_R423}, - {0x1002, 0x5554, CHIP_R423}, - {0x1002, 0x564A, CHIP_RV410}, - {0x1002, 0x564B, CHIP_RV410}, - {0x1002, 0x564F, CHIP_RV410}, - {0x1002, 0x5652, CHIP_RV410}, - {0x1002, 0x5653, CHIP_RV410}, - {0x1002, 0x5834, CHIP_RS300}, - {0x1002, 0x5835, CHIP_RS300}, - {0x1002, 0x5954, CHIP_RS480}, - {0x1002, 0x5955, CHIP_RS480}, - {0x1002, 0x5974, CHIP_RS480}, - {0x1002, 0x5975, CHIP_RS480}, - {0x1002, 0x5960, CHIP_RV280}, - {0x1002, 0x5961, CHIP_RV280}, - {0x1002, 0x5962, CHIP_RV280}, - {0x1002, 0x5964, CHIP_RV280}, - {0x1002, 0x5965, CHIP_RV280}, - {0x1002, 0x5969, CHIP_RV100}, - {0x1002, 0x5a41, CHIP_RS400}, - {0x1002, 0x5a42, CHIP_RS400}, - {0x1002, 0x5a61, CHIP_RS400}, - {0x1002, 0x5a62, CHIP_RS400}, - {0x1002, 0x5b60, CHIP_RV380}, - {0x1002, 0x5b62, CHIP_RV380}, - {0x1002, 0x5b63, CHIP_RV380}, - {0x1002, 0x5b64, CHIP_RV380}, - {0x1002, 0x5b65, CHIP_RV380}, - {0x1002, 0x5c61, CHIP_RV280}, - {0x1002, 0x5c63, CHIP_RV280}, - {0x1002, 0x5d48, CHIP_R423}, - {0x1002, 0x5d49, CHIP_R423}, - {0x1002, 0x5d4a, CHIP_R423}, - {0x1002, 0x5d4c, CHIP_R423}, - {0x1002, 0x5d4d, CHIP_R423}, - {0x1002, 0x5d4e, CHIP_R423}, - {0x1002, 0x5d4f, CHIP_R423}, - {0x1002, 0x5d50, CHIP_R423}, - {0x1002, 0x5d52, CHIP_R423}, - {0x1002, 0x5d57, CHIP_R423}, - {0x1002, 0x5e48, CHIP_RV410}, - {0x1002, 0x5e4a, CHIP_RV410}, - {0x1002, 0x5e4b, CHIP_RV410}, - {0x1002, 0x5e4c, CHIP_RV410}, - {0x1002, 0x5e4d, CHIP_RV410}, - {0x1002, 0x5e4f, CHIP_RV410}, - {0x1002, 0x6880, CHIP_CYPRESS}, - {0x1002, 0x6888, CHIP_CYPRESS}, - {0x1002, 0x6889, CHIP_CYPRESS}, - {0x1002, 0x688A, CHIP_CYPRESS}, - {0x1002, 0x6898, CHIP_CYPRESS}, - {0x1002, 0x6899, CHIP_CYPRESS}, - {0x1002, 0x689b, CHIP_CYPRESS}, - {0x1002, 0x689c, CHIP_HEMLOCK}, - {0x1002, 0x689d, CHIP_HEMLOCK}, - {0x1002, 0x689e, CHIP_CYPRESS}, - {0x1002, 0x68a0, CHIP_JUNIPER}, - {0x1002, 0x68a1, CHIP_JUNIPER}, - {0x1002, 0x68a8, CHIP_JUNIPER}, - {0x1002, 0x68a9, CHIP_JUNIPER}, - {0x1002, 0x68b0, CHIP_JUNIPER}, - {0x1002, 0x68b8, CHIP_JUNIPER}, - {0x1002, 0x68b9, CHIP_JUNIPER}, - {0x1002, 0x68ba, CHIP_JUNIPER}, - {0x1002, 0x68be, CHIP_JUNIPER}, - {0x1002, 0x68bf, CHIP_JUNIPER}, - {0x1002, 0x68c0, CHIP_REDWOOD}, - {0x1002, 0x68c1, CHIP_REDWOOD}, - {0x1002, 0x68c8, CHIP_REDWOOD}, - {0x1002, 0x68c9, CHIP_REDWOOD}, - {0x1002, 0x68d8, CHIP_REDWOOD}, - {0x1002, 0x68d9, CHIP_REDWOOD}, - {0x1002, 0x68da, CHIP_REDWOOD}, - {0x1002, 0x68de, CHIP_REDWOOD}, - {0x1002, 0x68e0, CHIP_CEDAR}, - {0x1002, 0x68e1, CHIP_CEDAR}, - {0x1002, 0x68e4, CHIP_CEDAR}, - {0x1002, 0x68e5, CHIP_CEDAR}, - {0x1002, 0x68e8, CHIP_CEDAR}, - {0x1002, 0x68e9, CHIP_CEDAR}, - {0x1002, 0x68f1, CHIP_CEDAR}, - {0x1002, 0x68f2, CHIP_CEDAR}, - {0x1002, 0x68f8, CHIP_CEDAR}, - {0x1002, 0x68f9, CHIP_CEDAR}, - {0x1002, 0x68fe, CHIP_CEDAR}, - {0x1002, 0x7100, CHIP_R520}, - {0x1002, 0x7101, CHIP_R520}, - {0x1002, 0x7102, CHIP_R520}, - {0x1002, 0x7103, CHIP_R520}, - {0x1002, 0x7104, CHIP_R520}, - {0x1002, 0x7105, CHIP_R520}, - {0x1002, 0x7106, CHIP_R520}, - {0x1002, 0x7108, CHIP_R520}, - {0x1002, 0x7109, CHIP_R520}, - {0x1002, 0x710A, CHIP_R520}, - {0x1002, 0x710B, CHIP_R520}, - {0x1002, 0x710C, CHIP_R520}, - {0x1002, 0x710E, CHIP_R520}, - {0x1002, 0x710F, CHIP_R520}, - {0x1002, 0x7140, CHIP_RV515}, - {0x1002, 0x7141, CHIP_RV515}, - {0x1002, 0x7142, CHIP_RV515}, - {0x1002, 0x7143, CHIP_RV515}, - {0x1002, 0x7144, CHIP_RV515}, - {0x1002, 0x7145, CHIP_RV515}, - {0x1002, 0x7146, CHIP_RV515}, - {0x1002, 0x7147, CHIP_RV515}, - {0x1002, 0x7149, CHIP_RV515}, - {0x1002, 0x714A, CHIP_RV515}, - {0x1002, 0x714B, CHIP_RV515}, - {0x1002, 0x714C, CHIP_RV515}, - {0x1002, 0x714D, CHIP_RV515}, - {0x1002, 0x714E, CHIP_RV515}, - {0x1002, 0x714F, CHIP_RV515}, - {0x1002, 0x7151, CHIP_RV515}, - {0x1002, 0x7152, CHIP_RV515}, - {0x1002, 0x7153, CHIP_RV515}, - {0x1002, 0x715E, CHIP_RV515}, - {0x1002, 0x715F, CHIP_RV515}, - {0x1002, 0x7180, CHIP_RV515}, - {0x1002, 0x7181, CHIP_RV515}, - {0x1002, 0x7183, CHIP_RV515}, - {0x1002, 0x7186, CHIP_RV515}, - {0x1002, 0x7187, CHIP_RV515}, - {0x1002, 0x7188, CHIP_RV515}, - {0x1002, 0x718A, CHIP_RV515}, - {0x1002, 0x718B, CHIP_RV515}, - {0x1002, 0x718C, CHIP_RV515}, - {0x1002, 0x718D, CHIP_RV515}, - {0x1002, 0x718F, CHIP_RV515}, - {0x1002, 0x7193, CHIP_RV515}, - {0x1002, 0x7196, CHIP_RV515}, - {0x1002, 0x719B, CHIP_RV515}, - {0x1002, 0x719F, CHIP_RV515}, - {0x1002, 0x71C0, CHIP_RV530}, - {0x1002, 0x71C1, CHIP_RV530}, - {0x1002, 0x71C2, CHIP_RV530}, - {0x1002, 0x71C3, CHIP_RV530}, - {0x1002, 0x71C4, CHIP_RV530}, - {0x1002, 0x71C5, CHIP_RV530}, - {0x1002, 0x71C6, CHIP_RV530}, - {0x1002, 0x71C7, CHIP_RV530}, - {0x1002, 0x71CD, CHIP_RV530}, - {0x1002, 0x71CE, CHIP_RV530}, - {0x1002, 0x71D2, CHIP_RV530}, - {0x1002, 0x71D4, CHIP_RV530}, - {0x1002, 0x71D5, CHIP_RV530}, - {0x1002, 0x71D6, CHIP_RV530}, - {0x1002, 0x71DA, CHIP_RV530}, - {0x1002, 0x71DE, CHIP_RV530}, - {0x1002, 0x7200, CHIP_RV515}, - {0x1002, 0x7210, CHIP_RV515}, - {0x1002, 0x7211, CHIP_RV515}, - {0x1002, 0x7240, CHIP_R580}, - {0x1002, 0x7243, CHIP_R580}, - {0x1002, 0x7244, CHIP_R580}, - {0x1002, 0x7245, CHIP_R580}, - {0x1002, 0x7246, CHIP_R580}, - {0x1002, 0x7247, CHIP_R580}, - {0x1002, 0x7248, CHIP_R580}, - {0x1002, 0x7249, CHIP_R580}, - {0x1002, 0x724A, CHIP_R580}, - {0x1002, 0x724B, CHIP_R580}, - {0x1002, 0x724C, CHIP_R580}, - {0x1002, 0x724D, CHIP_R580}, - {0x1002, 0x724E, CHIP_R580}, - {0x1002, 0x724F, CHIP_R580}, - {0x1002, 0x7280, CHIP_RV570}, - {0x1002, 0x7281, CHIP_RV560}, - {0x1002, 0x7283, CHIP_RV560}, - {0x1002, 0x7284, CHIP_R580}, - {0x1002, 0x7287, CHIP_RV560}, - {0x1002, 0x7288, CHIP_RV570}, - {0x1002, 0x7289, CHIP_RV570}, - {0x1002, 0x728B, CHIP_RV570}, - {0x1002, 0x728C, CHIP_RV570}, - {0x1002, 0x7290, CHIP_RV560}, - {0x1002, 0x7291, CHIP_RV560}, - {0x1002, 0x7293, CHIP_RV560}, - {0x1002, 0x7297, CHIP_RV560}, - {0x1002, 0x7834, CHIP_RS300}, - {0x1002, 0x7835, CHIP_RS300}, - {0x1002, 0x791e, CHIP_RS690}, - {0x1002, 0x791f, CHIP_RS690}, - {0x1002, 0x793f, CHIP_RS600}, - {0x1002, 0x7941, CHIP_RS600}, - {0x1002, 0x7942, CHIP_RS600}, - {0x1002, 0x796c, CHIP_RS740}, - {0x1002, 0x796d, CHIP_RS740}, - {0x1002, 0x796e, CHIP_RS740}, - {0x1002, 0x796f, CHIP_RS740}, - {0x1002, 0x9400, CHIP_R600}, - {0x1002, 0x9401, CHIP_R600}, - {0x1002, 0x9402, CHIP_R600}, - {0x1002, 0x9403, CHIP_R600}, - {0x1002, 0x9405, CHIP_R600}, - {0x1002, 0x940A, CHIP_R600}, - {0x1002, 0x940B, CHIP_R600}, - {0x1002, 0x940F, CHIP_R600}, - {0x1002, 0x94A0, CHIP_RV740}, - {0x1002, 0x94A1, CHIP_RV740}, - {0x1002, 0x94A3, CHIP_RV740}, - {0x1002, 0x94B1, CHIP_RV740}, - {0x1002, 0x94B3, CHIP_RV740}, - {0x1002, 0x94B4, CHIP_RV740}, - {0x1002, 0x94B5, CHIP_RV740}, - {0x1002, 0x94B9, CHIP_RV740}, - {0x1002, 0x9440, CHIP_RV770}, - {0x1002, 0x9441, CHIP_RV770}, - {0x1002, 0x9442, CHIP_RV770}, - {0x1002, 0x9443, CHIP_RV770}, - {0x1002, 0x9444, CHIP_RV770}, - {0x1002, 0x9446, CHIP_RV770}, - {0x1002, 0x944A, CHIP_RV770}, - {0x1002, 0x944B, CHIP_RV770}, - {0x1002, 0x944C, CHIP_RV770}, - {0x1002, 0x944E, CHIP_RV770}, - {0x1002, 0x9450, CHIP_RV770}, - {0x1002, 0x9452, CHIP_RV770}, - {0x1002, 0x9456, CHIP_RV770}, - {0x1002, 0x945A, CHIP_RV770}, - {0x1002, 0x945B, CHIP_RV770}, - {0x1002, 0x9460, CHIP_RV770}, - {0x1002, 0x9462, CHIP_RV770}, - {0x1002, 0x946A, CHIP_RV770}, - {0x1002, 0x946B, CHIP_RV770}, - {0x1002, 0x947A, CHIP_RV770}, - {0x1002, 0x947B, CHIP_RV770}, - {0x1002, 0x9480, CHIP_RV730}, - {0x1002, 0x9487, CHIP_RV730}, - {0x1002, 0x9488, CHIP_RV730}, - {0x1002, 0x9489, CHIP_RV730}, - {0x1002, 0x948F, CHIP_RV730}, - {0x1002, 0x9490, CHIP_RV730}, - {0x1002, 0x9491, CHIP_RV730}, - {0x1002, 0x9495, CHIP_RV730}, - {0x1002, 0x9498, CHIP_RV730}, - {0x1002, 0x949C, CHIP_RV730}, - {0x1002, 0x949E, CHIP_RV730}, - {0x1002, 0x949F, CHIP_RV730}, - {0x1002, 0x94C0, CHIP_RV610}, - {0x1002, 0x94C1, CHIP_RV610}, - {0x1002, 0x94C3, CHIP_RV610}, - {0x1002, 0x94C4, CHIP_RV610}, - {0x1002, 0x94C5, CHIP_RV610}, - {0x1002, 0x94C6, CHIP_RV610}, - {0x1002, 0x94C7, CHIP_RV610}, - {0x1002, 0x94C8, CHIP_RV610}, - {0x1002, 0x94C9, CHIP_RV610}, - {0x1002, 0x94CB, CHIP_RV610}, - {0x1002, 0x94CC, CHIP_RV610}, - {0x1002, 0x94CD, CHIP_RV610}, - {0x1002, 0x9500, CHIP_RV670}, - {0x1002, 0x9501, CHIP_RV670}, - {0x1002, 0x9504, CHIP_RV670}, - {0x1002, 0x9505, CHIP_RV670}, - {0x1002, 0x9506, CHIP_RV670}, - {0x1002, 0x9507, CHIP_RV670}, - {0x1002, 0x9508, CHIP_RV670}, - {0x1002, 0x9509, CHIP_RV670}, - {0x1002, 0x950F, CHIP_RV670}, - {0x1002, 0x9511, CHIP_RV670}, - {0x1002, 0x9515, CHIP_RV670}, - {0x1002, 0x9517, CHIP_RV670}, - {0x1002, 0x9519, CHIP_RV670}, - {0x1002, 0x9540, CHIP_RV710}, - {0x1002, 0x9541, CHIP_RV710}, - {0x1002, 0x9542, CHIP_RV710}, - {0x1002, 0x954E, CHIP_RV710}, - {0x1002, 0x954F, CHIP_RV710}, - {0x1002, 0x9552, CHIP_RV710}, - {0x1002, 0x9553, CHIP_RV710}, - {0x1002, 0x9555, CHIP_RV710}, - {0x1002, 0x9557, CHIP_RV710}, - {0x1002, 0x9580, CHIP_RV630}, - {0x1002, 0x9581, CHIP_RV630}, - {0x1002, 0x9583, CHIP_RV630}, - {0x1002, 0x9586, CHIP_RV630}, - {0x1002, 0x9587, CHIP_RV630}, - {0x1002, 0x9588, CHIP_RV630}, - {0x1002, 0x9589, CHIP_RV630}, - {0x1002, 0x958A, CHIP_RV630}, - {0x1002, 0x958B, CHIP_RV630}, - {0x1002, 0x958C, CHIP_RV630}, - {0x1002, 0x958D, CHIP_RV630}, - {0x1002, 0x958E, CHIP_RV630}, - {0x1002, 0x958F, CHIP_RV630}, - {0x1002, 0x9590, CHIP_RV635}, - {0x1002, 0x9591, CHIP_RV635}, - {0x1002, 0x9593, CHIP_RV635}, - {0x1002, 0x9595, CHIP_RV635}, - {0x1002, 0x9596, CHIP_RV635}, - {0x1002, 0x9597, CHIP_RV635}, - {0x1002, 0x9598, CHIP_RV635}, - {0x1002, 0x9599, CHIP_RV635}, - {0x1002, 0x959B, CHIP_RV635}, - {0x1002, 0x95C0, CHIP_RV620}, - {0x1002, 0x95C2, CHIP_RV620}, - {0x1002, 0x95C4, CHIP_RV620}, - {0x1002, 0x95C5, CHIP_RV620}, - {0x1002, 0x95C6, CHIP_RV620}, - {0x1002, 0x95C7, CHIP_RV620}, - {0x1002, 0x95C9, CHIP_RV620}, - {0x1002, 0x95CC, CHIP_RV620}, - {0x1002, 0x95CD, CHIP_RV620}, - {0x1002, 0x95CE, CHIP_RV620}, - {0x1002, 0x95CF, CHIP_RV620}, - {0x1002, 0x9610, CHIP_RS780}, - {0x1002, 0x9611, CHIP_RS780}, - {0x1002, 0x9612, CHIP_RS780}, - {0x1002, 0x9613, CHIP_RS780}, - {0x1002, 0x9614, CHIP_RS780}, - {0x1002, 0x9615, CHIP_RS780}, - {0x1002, 0x9616, CHIP_RS780}, - {0x1002, 0x9640, CHIP_SUMO}, - {0x1002, 0x9641, CHIP_SUMO}, - {0x1002, 0x9642, CHIP_SUMO2}, - {0x1002, 0x9643, CHIP_SUMO2}, - {0x1002, 0x9644, CHIP_SUMO2}, - {0x1002, 0x9645, CHIP_SUMO2}, - {0x1002, 0x9647, CHIP_SUMO}, - {0x1002, 0x9648, CHIP_SUMO}, - {0x1002, 0x964a, CHIP_SUMO}, - {0x1002, 0x964e, CHIP_SUMO}, - {0x1002, 0x964f, CHIP_SUMO}, - {0x1002, 0x9710, CHIP_RS880}, - {0x1002, 0x9711, CHIP_RS880}, - {0x1002, 0x9712, CHIP_RS880}, - {0x1002, 0x9713, CHIP_RS880}, - {0x1002, 0x9714, CHIP_RS880}, - {0x1002, 0x9715, CHIP_RS880}, - {0x1002, 0x9802, CHIP_PALM}, - {0x1002, 0x9803, CHIP_PALM}, - {0x1002, 0x9804, CHIP_PALM}, - {0x1002, 0x9805, CHIP_PALM}, - {0x1002, 0x9806, CHIP_PALM}, - {0x1002, 0x9807, CHIP_PALM}, - {0x1002, 0x6700, CHIP_CAYMAN}, - {0x1002, 0x6701, CHIP_CAYMAN}, - {0x1002, 0x6702, CHIP_CAYMAN}, - {0x1002, 0x6703, CHIP_CAYMAN}, - {0x1002, 0x6704, CHIP_CAYMAN}, - {0x1002, 0x6705, CHIP_CAYMAN}, - {0x1002, 0x6706, CHIP_CAYMAN}, - {0x1002, 0x6707, CHIP_CAYMAN}, - {0x1002, 0x6708, CHIP_CAYMAN}, - {0x1002, 0x6709, CHIP_CAYMAN}, - {0x1002, 0x6718, CHIP_CAYMAN}, - {0x1002, 0x6719, CHIP_CAYMAN}, - {0x1002, 0x671C, CHIP_CAYMAN}, - {0x1002, 0x671D, CHIP_CAYMAN}, - {0x1002, 0x671F, CHIP_CAYMAN}, - {0x1002, 0x6720, CHIP_BARTS}, - {0x1002, 0x6721, CHIP_BARTS}, - {0x1002, 0x6722, CHIP_BARTS}, - {0x1002, 0x6723, CHIP_BARTS}, - {0x1002, 0x6724, CHIP_BARTS}, - {0x1002, 0x6725, CHIP_BARTS}, - {0x1002, 0x6726, CHIP_BARTS}, - {0x1002, 0x6727, CHIP_BARTS}, - {0x1002, 0x6728, CHIP_BARTS}, - {0x1002, 0x6729, CHIP_BARTS}, - {0x1002, 0x6738, CHIP_BARTS}, - {0x1002, 0x6739, CHIP_BARTS}, - {0x1002, 0x673e, CHIP_BARTS}, - {0x1002, 0x6740, CHIP_TURKS}, - {0x1002, 0x6741, CHIP_TURKS}, - {0x1002, 0x6742, CHIP_TURKS}, - {0x1002, 0x6743, CHIP_TURKS}, - {0x1002, 0x6744, CHIP_TURKS}, - {0x1002, 0x6745, CHIP_TURKS}, - {0x1002, 0x6746, CHIP_TURKS}, - {0x1002, 0x6747, CHIP_TURKS}, - {0x1002, 0x6748, CHIP_TURKS}, - {0x1002, 0x6749, CHIP_TURKS}, - {0x1002, 0x6750, CHIP_TURKS}, - {0x1002, 0x6758, CHIP_TURKS}, - {0x1002, 0x6759, CHIP_TURKS}, - {0x1002, 0x6760, CHIP_CAICOS}, - {0x1002, 0x6761, CHIP_CAICOS}, - {0x1002, 0x6762, CHIP_CAICOS}, - {0x1002, 0x6763, CHIP_CAICOS}, - {0x1002, 0x6764, CHIP_CAICOS}, - {0x1002, 0x6765, CHIP_CAICOS}, - {0x1002, 0x6766, CHIP_CAICOS}, - {0x1002, 0x6767, CHIP_CAICOS}, - {0x1002, 0x6768, CHIP_CAICOS}, - {0x1002, 0x6770, CHIP_CAICOS}, - {0x1002, 0x6779, CHIP_CAICOS}, +#define CHIPSET(chip, name, family) { 0x1002, chip, CHIP_##family }, +#include "pci_ids/radeon_pci_ids.h" +#include "pci_ids/r200_pci_ids.h" +#include "pci_ids/r300_pci_ids.h" +#include "pci_ids/r600_pci_ids.h" {0, 0}, }; From 42ba8d141fe07fcfa6f39623d8226919bf27be9f Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 6 Jun 2011 18:31:12 +0200 Subject: [PATCH 061/145] r300g: Remove is_r3xx Use r300_pci_ids.h instead. Reviewed-by: Alex Deucher --- src/gallium/winsys/radeon/drm/Makefile | 3 +- .../winsys/radeon/drm/radeon_drm_public.h | 212 ------------------ .../winsys/radeon/drm/radeon_drm_winsys.c | 9 +- 3 files changed, 9 insertions(+), 215 deletions(-) diff --git a/src/gallium/winsys/radeon/drm/Makefile b/src/gallium/winsys/radeon/drm/Makefile index d44b7c14250..913e6ad186a 100644 --- a/src/gallium/winsys/radeon/drm/Makefile +++ b/src/gallium/winsys/radeon/drm/Makefile @@ -9,7 +9,8 @@ C_SOURCES = \ radeon_drm_cs.c \ radeon_drm_winsys.c -LIBRARY_INCLUDES = $(shell pkg-config libdrm --cflags-only-I) +LIBRARY_INCLUDES = -I$(TOP)/include \ + $(shell pkg-config libdrm --cflags-only-I) include ../../../Makefile.template diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_public.h b/src/gallium/winsys/radeon/drm/radeon_drm_public.h index 76d9dda422d..4fc62f1a400 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_public.h +++ b/src/gallium/winsys/radeon/drm/radeon_drm_public.h @@ -7,216 +7,4 @@ struct radeon_winsys; struct radeon_winsys *radeon_drm_winsys_create(int fd); -static INLINE boolean is_r3xx(int pciid) -{ - switch (pciid) { - case 0x4144: /* PCI_CHIP_R300_AD */ - case 0x4145: /* PCI_CHIP_R300_AE */ - case 0x4146: /* PCI_CHIP_R300_AF */ - case 0x4147: /* PCI_CHIP_R300_AG */ - case 0x4E44: /* PCI_CHIP_R300_ND */ - case 0x4E45: /* PCI_CHIP_R300_NE */ - case 0x4E46: /* PCI_CHIP_R300_NF */ - case 0x4E47: /* PCI_CHIP_R300_NG */ - case 0x4E48: /* PCI_CHIP_R350_NH */ - case 0x4E49: /* PCI_CHIP_R350_NI */ - case 0x4E4B: /* PCI_CHIP_R350_NK */ - case 0x4148: /* PCI_CHIP_R350_AH */ - case 0x4149: /* PCI_CHIP_R350_AI */ - case 0x414A: /* PCI_CHIP_R350_AJ */ - case 0x414B: /* PCI_CHIP_R350_AK */ - case 0x4E4A: /* PCI_CHIP_R360_NJ */ - case 0x4150: /* PCI_CHIP_RV350_AP */ - case 0x4151: /* PCI_CHIP_RV350_AQ */ - case 0x4152: /* PCI_CHIP_RV350_AR */ - case 0x4153: /* PCI_CHIP_RV350_AS */ - case 0x4154: /* PCI_CHIP_RV350_AT */ - case 0x4155: /* PCI_CHIP_RV350_AU */ - case 0x4156: /* PCI_CHIP_RV350_AV */ - case 0x4E50: /* PCI_CHIP_RV350_NP */ - case 0x4E51: /* PCI_CHIP_RV350_NQ */ - case 0x4E52: /* PCI_CHIP_RV350_NR */ - case 0x4E53: /* PCI_CHIP_RV350_NS */ - case 0x4E54: /* PCI_CHIP_RV350_NT */ - case 0x4E56: /* PCI_CHIP_RV350_NV */ - case 0x5460: /* PCI_CHIP_RV370_5460 */ - case 0x5462: /* PCI_CHIP_RV370_5462 */ - case 0x5464: /* PCI_CHIP_RV370_5464 */ - case 0x5B60: /* PCI_CHIP_RV370_5B60 */ - case 0x5B62: /* PCI_CHIP_RV370_5B62 */ - case 0x5B63: /* PCI_CHIP_RV370_5B63 */ - case 0x5B64: /* PCI_CHIP_RV370_5B64 */ - case 0x5B65: /* PCI_CHIP_RV370_5B65 */ - case 0x3150: /* PCI_CHIP_RV380_3150 */ - case 0x3152: /* PCI_CHIP_RV380_3152 */ - case 0x3154: /* PCI_CHIP_RV380_3154 */ - case 0x3155: /* PCI_CHIP_RV380_3155 */ - case 0x3E50: /* PCI_CHIP_RV380_3E50 */ - case 0x3E54: /* PCI_CHIP_RV380_3E54 */ - case 0x4A48: /* PCI_CHIP_R420_JH */ - case 0x4A49: /* PCI_CHIP_R420_JI */ - case 0x4A4A: /* PCI_CHIP_R420_JJ */ - case 0x4A4B: /* PCI_CHIP_R420_JK */ - case 0x4A4C: /* PCI_CHIP_R420_JL */ - case 0x4A4D: /* PCI_CHIP_R420_JM */ - case 0x4A4E: /* PCI_CHIP_R420_JN */ - case 0x4A4F: /* PCI_CHIP_R420_JO */ - case 0x4A50: /* PCI_CHIP_R420_JP */ - case 0x4A54: /* PCI_CHIP_R420_JT */ - case 0x5548: /* PCI_CHIP_R423_UH */ - case 0x5549: /* PCI_CHIP_R423_UI */ - case 0x554A: /* PCI_CHIP_R423_UJ */ - case 0x554B: /* PCI_CHIP_R423_UK */ - case 0x5550: /* PCI_CHIP_R423_5550 */ - case 0x5551: /* PCI_CHIP_R423_UQ */ - case 0x5552: /* PCI_CHIP_R423_UR */ - case 0x5554: /* PCI_CHIP_R423_UT */ - case 0x5D57: /* PCI_CHIP_R423_5D57 */ - case 0x554C: /* PCI_CHIP_R430_554C */ - case 0x554D: /* PCI_CHIP_R430_554D */ - case 0x554E: /* PCI_CHIP_R430_554E */ - case 0x554F: /* PCI_CHIP_R430_554F */ - case 0x5D48: /* PCI_CHIP_R430_5D48 */ - case 0x5D49: /* PCI_CHIP_R430_5D49 */ - case 0x5D4A: /* PCI_CHIP_R430_5D4A */ - case 0x5D4C: /* PCI_CHIP_R480_5D4C */ - case 0x5D4D: /* PCI_CHIP_R480_5D4D */ - case 0x5D4E: /* PCI_CHIP_R480_5D4E */ - case 0x5D4F: /* PCI_CHIP_R480_5D4F */ - case 0x5D50: /* PCI_CHIP_R480_5D50 */ - case 0x5D52: /* PCI_CHIP_R480_5D52 */ - case 0x4B49: /* PCI_CHIP_R481_4B49 */ - case 0x4B4A: /* PCI_CHIP_R481_4B4A */ - case 0x4B4B: /* PCI_CHIP_R481_4B4B */ - case 0x4B4C: /* PCI_CHIP_R481_4B4C */ - case 0x564A: /* PCI_CHIP_RV410_564A */ - case 0x564B: /* PCI_CHIP_RV410_564B */ - case 0x564F: /* PCI_CHIP_RV410_564F */ - case 0x5652: /* PCI_CHIP_RV410_5652 */ - case 0x5653: /* PCI_CHIP_RV410_5653 */ - case 0x5657: /* PCI_CHIP_RV410_5657 */ - case 0x5E48: /* PCI_CHIP_RV410_5E48 */ - case 0x5E4A: /* PCI_CHIP_RV410_5E4A */ - case 0x5E4B: /* PCI_CHIP_RV410_5E4B */ - case 0x5E4C: /* PCI_CHIP_RV410_5E4C */ - case 0x5E4D: /* PCI_CHIP_RV410_5E4D */ - case 0x5E4F: /* PCI_CHIP_RV410_5E4F */ - case 0x5A41: /* PCI_CHIP_RS400_5A41 */ - case 0x5A42: /* PCI_CHIP_RS400_5A42 */ - case 0x5A61: /* PCI_CHIP_RC410_5A61 */ - case 0x5A62: /* PCI_CHIP_RC410_5A62 */ - case 0x5954: /* PCI_CHIP_RS480_5954 */ - case 0x5955: /* PCI_CHIP_RS480_5955 */ - case 0x5974: /* PCI_CHIP_RS482_5974 */ - case 0x5975: /* PCI_CHIP_RS482_5975 */ - case 0x7100: /* PCI_CHIP_R520_7100 */ - case 0x7101: /* PCI_CHIP_R520_7101 */ - case 0x7102: /* PCI_CHIP_R520_7102 */ - case 0x7103: /* PCI_CHIP_R520_7103 */ - case 0x7104: /* PCI_CHIP_R520_7104 */ - case 0x7105: /* PCI_CHIP_R520_7105 */ - case 0x7106: /* PCI_CHIP_R520_7106 */ - case 0x7108: /* PCI_CHIP_R520_7108 */ - case 0x7109: /* PCI_CHIP_R520_7109 */ - case 0x710A: /* PCI_CHIP_R520_710A */ - case 0x710B: /* PCI_CHIP_R520_710B */ - case 0x710C: /* PCI_CHIP_R520_710C */ - case 0x710E: /* PCI_CHIP_R520_710E */ - case 0x710F: /* PCI_CHIP_R520_710F */ - case 0x7140: /* PCI_CHIP_RV515_7140 */ - case 0x7141: /* PCI_CHIP_RV515_7141 */ - case 0x7142: /* PCI_CHIP_RV515_7142 */ - case 0x7143: /* PCI_CHIP_RV515_7143 */ - case 0x7144: /* PCI_CHIP_RV515_7144 */ - case 0x7145: /* PCI_CHIP_RV515_7145 */ - case 0x7146: /* PCI_CHIP_RV515_7146 */ - case 0x7147: /* PCI_CHIP_RV515_7147 */ - case 0x7149: /* PCI_CHIP_RV515_7149 */ - case 0x714A: /* PCI_CHIP_RV515_714A */ - case 0x714B: /* PCI_CHIP_RV515_714B */ - case 0x714C: /* PCI_CHIP_RV515_714C */ - case 0x714D: /* PCI_CHIP_RV515_714D */ - case 0x714E: /* PCI_CHIP_RV515_714E */ - case 0x714F: /* PCI_CHIP_RV515_714F */ - case 0x7151: /* PCI_CHIP_RV515_7151 */ - case 0x7152: /* PCI_CHIP_RV515_7152 */ - case 0x7153: /* PCI_CHIP_RV515_7153 */ - case 0x715E: /* PCI_CHIP_RV515_715E */ - case 0x715F: /* PCI_CHIP_RV515_715F */ - case 0x7180: /* PCI_CHIP_RV515_7180 */ - case 0x7181: /* PCI_CHIP_RV515_7181 */ - case 0x7183: /* PCI_CHIP_RV515_7183 */ - case 0x7186: /* PCI_CHIP_RV515_7186 */ - case 0x7187: /* PCI_CHIP_RV515_7187 */ - case 0x7188: /* PCI_CHIP_RV515_7188 */ - case 0x718A: /* PCI_CHIP_RV515_718A */ - case 0x718B: /* PCI_CHIP_RV515_718B */ - case 0x718C: /* PCI_CHIP_RV515_718C */ - case 0x718D: /* PCI_CHIP_RV515_718D */ - case 0x718F: /* PCI_CHIP_RV515_718F */ - case 0x7193: /* PCI_CHIP_RV515_7193 */ - case 0x7196: /* PCI_CHIP_RV515_7196 */ - case 0x719B: /* PCI_CHIP_RV515_719B */ - case 0x719F: /* PCI_CHIP_RV515_719F */ - case 0x7200: /* PCI_CHIP_RV515_7200 */ - case 0x7210: /* PCI_CHIP_RV515_7210 */ - case 0x7211: /* PCI_CHIP_RV515_7211 */ - case 0x71C0: /* PCI_CHIP_RV530_71C0 */ - case 0x71C1: /* PCI_CHIP_RV530_71C1 */ - case 0x71C2: /* PCI_CHIP_RV530_71C2 */ - case 0x71C3: /* PCI_CHIP_RV530_71C3 */ - case 0x71C4: /* PCI_CHIP_RV530_71C4 */ - case 0x71C5: /* PCI_CHIP_RV530_71C5 */ - case 0x71C6: /* PCI_CHIP_RV530_71C6 */ - case 0x71C7: /* PCI_CHIP_RV530_71C7 */ - case 0x71CD: /* PCI_CHIP_RV530_71CD */ - case 0x71CE: /* PCI_CHIP_RV530_71CE */ - case 0x71D2: /* PCI_CHIP_RV530_71D2 */ - case 0x71D4: /* PCI_CHIP_RV530_71D4 */ - case 0x71D5: /* PCI_CHIP_RV530_71D5 */ - case 0x71D6: /* PCI_CHIP_RV530_71D6 */ - case 0x71DA: /* PCI_CHIP_RV530_71DA */ - case 0x71DE: /* PCI_CHIP_RV530_71DE */ - case 0x7281: /* PCI_CHIP_RV560_7281 */ - case 0x7283: /* PCI_CHIP_RV560_7283 */ - case 0x7287: /* PCI_CHIP_RV560_7287 */ - case 0x7290: /* PCI_CHIP_RV560_7290 */ - case 0x7291: /* PCI_CHIP_RV560_7291 */ - case 0x7293: /* PCI_CHIP_RV560_7293 */ - case 0x7297: /* PCI_CHIP_RV560_7297 */ - case 0x7280: /* PCI_CHIP_RV570_7280 */ - case 0x7288: /* PCI_CHIP_RV570_7288 */ - case 0x7289: /* PCI_CHIP_RV570_7289 */ - case 0x728B: /* PCI_CHIP_RV570_728B */ - case 0x728C: /* PCI_CHIP_RV570_728C */ - case 0x7240: /* PCI_CHIP_R580_7240 */ - case 0x7243: /* PCI_CHIP_R580_7243 */ - case 0x7244: /* PCI_CHIP_R580_7244 */ - case 0x7245: /* PCI_CHIP_R580_7245 */ - case 0x7246: /* PCI_CHIP_R580_7246 */ - case 0x7247: /* PCI_CHIP_R580_7247 */ - case 0x7248: /* PCI_CHIP_R580_7248 */ - case 0x7249: /* PCI_CHIP_R580_7249 */ - case 0x724A: /* PCI_CHIP_R580_724A */ - case 0x724B: /* PCI_CHIP_R580_724B */ - case 0x724C: /* PCI_CHIP_R580_724C */ - case 0x724D: /* PCI_CHIP_R580_724D */ - case 0x724E: /* PCI_CHIP_R580_724E */ - case 0x724F: /* PCI_CHIP_R580_724F */ - case 0x7284: /* PCI_CHIP_R580_7284 */ - case 0x793F: /* PCI_CHIP_RS600_793F */ - case 0x7941: /* PCI_CHIP_RS600_7941 */ - case 0x7942: /* PCI_CHIP_RS600_7942 */ - case 0x791E: /* PCI_CHIP_RS690_791E */ - case 0x791F: /* PCI_CHIP_RS690_791F */ - case 0x796C: /* PCI_CHIP_RS740_796C */ - case 0x796D: /* PCI_CHIP_RS740_796D */ - case 0x796E: /* PCI_CHIP_RS740_796E */ - case 0x796F: /* PCI_CHIP_RS740_796F */ - return TRUE; - default: - return FALSE; - } -} - #endif diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c index 3ac57d25b5e..0474b381ade 100644 --- a/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c +++ b/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c @@ -270,8 +270,13 @@ struct radeon_winsys *radeon_drm_winsys_create(int fd) ws->fd = fd; do_ioctls(ws); - if (!is_r3xx(ws->pci_id)) { - goto fail; + switch (ws->pci_id) { +#define CHIPSET(pci_id, name, family) case pci_id: +#include "pci_ids/r300_pci_ids.h" +#undef CHIPSET + break; + default: + goto fail; } /* Create managers. */ From ed0e4bb4c19a3236e2836bfe61e700fc12e8ed82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 7 Jun 2011 18:45:23 +0200 Subject: [PATCH 062/145] r300_pci_ids: add missing 4B48 Found in r300_chipset.h. --- include/pci_ids/r300_pci_ids.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/pci_ids/r300_pci_ids.h b/include/pci_ids/r300_pci_ids.h index 720a7469003..8f57ca77eeb 100644 --- a/include/pci_ids/r300_pci_ids.h +++ b/include/pci_ids/r300_pci_ids.h @@ -77,6 +77,7 @@ CHIPSET(0x5D4E, R480_5D4E, R420) CHIPSET(0x5D4F, R480_5D4F, R420) CHIPSET(0x5D50, R480_5D50, R420) CHIPSET(0x5D52, R480_5D52, R420) +CHIPSET(0x4B48, R481_4B48, R420) CHIPSET(0x4B49, R481_4B49, R420) CHIPSET(0x4B4A, R481_4B4A, R420) CHIPSET(0x4B4B, R481_4B4B, R420) From cebdffaa2a11ef499383a17956c936791e284343 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 7 Jun 2011 13:06:44 -0400 Subject: [PATCH 063/145] darwin: Don't link against libGL when building libOSMesa Everything should be resolved through glapi. Signed-off-by: Jeremy Huddleston --- configs/darwin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/darwin b/configs/darwin index 3cf1110b40e..ff580142af0 100644 --- a/configs/darwin +++ b/configs/darwin @@ -47,7 +47,7 @@ OSMESA_LIB_GLOB = lib$(OSMESA_LIB).*dylib VG_LIB_GLOB = lib$(VG_LIB).*.dylib GL_LIB_DEPS = -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXext -lm -lpthread -OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) +OSMESA_LIB_DEPS = GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXmu -lXi -lXext GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXt From 6ea70600b9dc76662360eddb41ff658e8ee1aaff Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 7 Jun 2011 13:07:26 -0400 Subject: [PATCH 064/145] darwin: Fix VG_LIB_GLOB to also match the unversioned symlink Signed-off-by: Jeremy Huddleston --- configs/darwin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/darwin b/configs/darwin index ff580142af0..9d3bbcf985c 100644 --- a/configs/darwin +++ b/configs/darwin @@ -44,7 +44,7 @@ GLU_LIB_GLOB = lib$(GLU_LIB).*dylib GLUT_LIB_GLOB = lib$(GLUT_LIB).*dylib GLW_LIB_GLOB = lib$(GLW_LIB).*dylib OSMESA_LIB_GLOB = lib$(OSMESA_LIB).*dylib -VG_LIB_GLOB = lib$(VG_LIB).*.dylib +VG_LIB_GLOB = lib$(VG_LIB).*dylib GL_LIB_DEPS = -L$(INSTALL_DIR)/$(LIB_DIR) -L$(X11_DIR)/$(LIB_DIR) -lX11 -lXext -lm -lpthread OSMESA_LIB_DEPS = From 23b6f9606dc247488835745668b3686218612536 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 31 May 2011 12:32:06 -0700 Subject: [PATCH 065/145] intel: Implement glFinish() correctly by waiting on all previous rendering. Before, we were waiting for (most of) the current framebuffer to be done, which is not quite the same thing. --- src/mesa/drivers/dri/intel/intel_batchbuffer.c | 9 ++++++--- src/mesa/drivers/dri/intel/intel_context.c | 16 +++------------- src/mesa/drivers/dri/intel/intel_context.h | 4 ++++ 3 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.c b/src/mesa/drivers/dri/intel/intel_batchbuffer.c index 377989bcc14..77edc3a6bfe 100644 --- a/src/mesa/drivers/dri/intel/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.c @@ -55,10 +55,12 @@ static void clear_cache( struct intel_context *intel ) void intel_batchbuffer_reset(struct intel_context *intel) { - if (intel->batch.bo != NULL) { - drm_intel_bo_unreference(intel->batch.bo); - intel->batch.bo = NULL; + if (intel->batch.last_bo != NULL) { + drm_intel_bo_unreference(intel->batch.last_bo); + intel->batch.last_bo = NULL; } + intel->batch.last_bo = intel->batch.bo; + clear_cache(intel); intel->batch.bo = drm_intel_bo_alloc(intel->bufmgr, "batchbuffer", @@ -72,6 +74,7 @@ intel_batchbuffer_reset(struct intel_context *intel) void intel_batchbuffer_free(struct intel_context *intel) { + drm_intel_bo_unreference(intel->batch.last_bo); drm_intel_bo_unreference(intel->batch.bo); clear_cache(intel); } diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 2ea52c26106..b6a017a876c 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -579,23 +579,13 @@ intel_glFlush(struct gl_context *ctx) void intelFinish(struct gl_context * ctx) { - struct gl_framebuffer *fb = ctx->DrawBuffer; - int i; + struct intel_context *intel = intel_context(ctx); intel_flush(ctx); intel_flush_front(ctx); - for (i = 0; i < fb->_NumColorDrawBuffers; i++) { - struct intel_renderbuffer *irb; - - irb = intel_renderbuffer(fb->_ColorDrawBuffers[i]); - - if (irb && irb->region && irb->region->buffer) - drm_intel_bo_wait_rendering(irb->region->buffer); - } - if (fb->_DepthBuffer) { - /* XXX: Wait on buffer idle */ - } + if (intel->batch.last_bo) + drm_intel_bo_wait_rendering(intel->batch.last_bo); } void diff --git a/src/mesa/drivers/dri/intel/intel_context.h b/src/mesa/drivers/dri/intel/intel_context.h index f599861cba8..80dee4ef38e 100644 --- a/src/mesa/drivers/dri/intel/intel_context.h +++ b/src/mesa/drivers/dri/intel/intel_context.h @@ -177,7 +177,11 @@ struct intel_context int urb_size; struct intel_batchbuffer { + /** Current batchbuffer being queued up. */ drm_intel_bo *bo; + /** Last BO submitted to the hardware. Used for glFinish(). */ + drm_intel_bo *last_bo; + struct cached_batch_item *cached_items; uint16_t emit, total; From 6d894f68af7ebbb861594c35c25680ac3633a494 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 5 Jun 2011 23:05:20 -0700 Subject: [PATCH 066/145] intel: Update intel-decode.c from intel-gpu-tools. --- src/mesa/drivers/dri/intel/intel_chipset.h | 8 + src/mesa/drivers/dri/intel/intel_decode.c | 863 ++++++++++++++++++--- 2 files changed, 784 insertions(+), 87 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_chipset.h b/src/mesa/drivers/dri/intel/intel_chipset.h index ca5c295545f..2e9fb2dcca6 100644 --- a/src/mesa/drivers/dri/intel/intel_chipset.h +++ b/src/mesa/drivers/dri/intel/intel_chipset.h @@ -162,3 +162,11 @@ #define IS_9XX(devid) (IS_915(devid) || \ IS_945(devid) || \ IS_965(devid)) + +#define IS_GEN3(devid) (IS_915(devid) || \ + IS_945(devid)) + +#define IS_GEN2(devid) (devid == PCI_CHIP_I830_M || \ + devid == PCI_CHIP_845_G || \ + devid == PCI_CHIP_I855_GM || \ + devid == PCI_CHIP_I865_G) diff --git a/src/mesa/drivers/dri/intel/intel_decode.c b/src/mesa/drivers/dri/intel/intel_decode.c index 688b8fee642..ac8d69074ab 100644 --- a/src/mesa/drivers/dri/intel/intel_decode.c +++ b/src/mesa/drivers/dri/intel/intel_decode.c @@ -89,6 +89,9 @@ decode_mi(uint32_t *data, int count, uint32_t hw_offset, int *failures) { 0x24, 0x3f, 3, 3, "MI_STORE_REGISTER_MEM" }, { 0x02, 0, 1, 1, "MI_USER_INTERRUPT" }, { 0x03, 0, 1, 1, "MI_WAIT_FOR_EVENT" }, + { 0x16, 0x7f, 3, 3, "MI_SEMAPHORE_MBOX" }, + { 0x26, 0x1f, 3, 4, "MI_FLUSH_DW" }, + { 0x0b, 0, 1, 1, "MI_SUSPEND_FLUSH" }, }; switch ((data[0] & 0x1f800000) >> 23) { @@ -299,7 +302,8 @@ decode_3d_1c(uint32_t *data, int count, uint32_t hw_offset, int *failures) instr_out(data, hw_offset, 0, "3DSTATE_DEPTH_SUBRECTANGLE_DISABLE\n"); return 1; case 0x10: - instr_out(data, hw_offset, 0, "3DSTATE_SCISSOR_ENABLE\n"); + instr_out(data, hw_offset, 0, "3DSTATE_SCISSOR_ENABLE %s\n", + data[0]&1?"enabled":"disabled"); return 1; case 0x01: instr_out(data, hw_offset, 0, "3DSTATE_MAP_COORD_SET_I830\n"); @@ -786,6 +790,90 @@ i915_decode_instruction(uint32_t *data, uint32_t hw_offset, } } +static char * +decode_compare_func(uint32_t op) +{ + switch (op&0x7) { + case 0: return "always"; + case 1: return "never"; + case 2: return "less"; + case 3: return "equal"; + case 4: return "lequal"; + case 5: return "greater"; + case 6: return "notequal"; + case 7: return "gequal"; + } + return ""; +} + +static char * +decode_stencil_op(uint32_t op) +{ + switch (op&0x7) { + case 0: return "keep"; + case 1: return "zero"; + case 2: return "replace"; + case 3: return "incr_sat"; + case 4: return "decr_sat"; + case 5: return "greater"; + case 6: return "incr"; + case 7: return "decr"; + } + return ""; +} + +static char * +decode_blend_fact(uint32_t op) +{ + switch (op&0xf) { + case 1: return "zero"; + case 2: return "one"; + case 3: return "src_colr"; + case 4: return "inv_src_colr"; + case 5: return "src_alpha"; + case 6: return "inv_src_alpha"; + case 7: return "dst_alpha"; + case 8: return "inv_dst_alpha"; + case 9: return "dst_colr"; + case 10: return "inv_dst_colr"; + case 11: return "src_alpha_sat"; + case 12: return "cnst_colr"; + case 13: return "inv_cnst_colr"; + case 14: return "cnst_alpha"; + case 15: return "inv_const_alpha"; + } + return ""; +} + +static char * +decode_tex_coord_mode(uint32_t mode) +{ + switch (mode&0x7) { + case 0: return "wrap"; + case 1: return "mirror"; + case 2: return "clamp_edge"; + case 3: return "cube"; + case 4: return "clamp_border"; + case 5: return "mirror_once"; + } + return ""; +} + +static char * +decode_sample_filter(uint32_t mode) +{ + switch (mode&0x7) { + case 0: return "nearest"; + case 1: return "linear"; + case 2: return "anisotropic"; + case 3: return "4x4_1"; + case 4: return "4x4_2"; + case 5: return "4x4_flat"; + case 6: return "6x5_mono"; + } + return ""; +} + static int decode_3d_1d(uint32_t *data, int count, uint32_t hw_offset, @@ -793,7 +881,7 @@ decode_3d_1d(uint32_t *data, int count, int *failures) { unsigned int len, i, c, idx, word, map, sampler, instr; - char *format; + char *format, *zformat, *type; uint32_t opcode; struct { @@ -803,21 +891,16 @@ decode_3d_1d(uint32_t *data, int count, int max_len; char *name; } opcodes_3d_1d[] = { - { 0x8e, 0, 3, 3, "3DSTATE_BUFFER_INFO" }, { 0x86, 0, 4, 4, "3DSTATE_CHROMA_KEY" }, - { 0x9c, 0, 7, 7, "3DSTATE_CLEAR_PARAMETERS" }, { 0x88, 0, 2, 2, "3DSTATE_CONSTANT_BLEND_COLOR" }, { 0x99, 0, 2, 2, "3DSTATE_DEFAULT_DIFFUSE" }, { 0x9a, 0, 2, 2, "3DSTATE_DEFAULT_SPECULAR" }, { 0x98, 0, 2, 2, "3DSTATE_DEFAULT_Z" }, { 0x97, 0, 2, 2, "3DSTATE_DEPTH_OFFSET_SCALE" }, - { 0x85, 0, 2, 2, "3DSTATE_DEST_BUFFER_VARIABLES" }, - { 0x80, 0, 5, 5, "3DSTATE_DRAWING_RECTANGLE" }, { 0x9d, 0, 65, 65, "3DSTATE_FILTER_COEFFICIENTS_4X4" }, { 0x9e, 0, 4, 4, "3DSTATE_MONO_FILTER" }, { 0x89, 0, 4, 4, "3DSTATE_FOG_MODE" }, { 0x8f, 0, 2, 16, "3DSTATE_MAP_PALLETE_LOAD_32" }, - { 0x81, 0, 3, 3, "3DSTATE_SCISSOR_RECTANGLE" }, { 0x83, 0, 2, 2, "3DSTATE_SPAN_STIPPLE" }, { 0x8c, 1, 2, 2, "3DSTATE_MAP_COORD_TRANSFORM_I830" }, { 0x8b, 1, 2, 2, "3DSTATE_MAP_VERTEX_TRANSFORM_I830" }, @@ -889,18 +972,137 @@ decode_3d_1d(uint32_t *data, int count, BUFFER_FAIL(count, len, "3DSTATE_LOAD_STATE_IMMEDIATE_1"); /* save vertex state for decode */ - if (IS_9XX(devid)) { - if (word == 2) { - saved_s2_set = 1; - saved_s2 = data[i]; - } - if (word == 4) { - saved_s4_set = 1; - saved_s4 = data[i]; - } - } + if (!IS_GEN2(devid)) { + if (word == 2) { + saved_s2_set = 1; + saved_s2 = data[i]; + } + if (word == 4) { + saved_s4_set = 1; + saved_s4 = data[i]; + } - instr_out(data, hw_offset, i++, "S%d\n", word); + switch (word) { + case 0: + instr_out(data, hw_offset, i, "S0: vbo offset: 0x%08x%s\n", + data[i]&(~1),data[i]&1?", auto cache invalidate disabled":""); + break; + case 1: + instr_out(data, hw_offset, i, "S1: vertex width: %i, vertex pitch: %i\n", + (data[i]>>24)&0x3f,(data[i]>>16)&0x3f); + break; + case 2: + instr_out(data, hw_offset, i, "S2: texcoord formats: "); + for (int tex_num = 0; tex_num < 8; tex_num++) { + switch((data[i]>>tex_num*4)&0xf) { + case 0: fprintf(out, "%i=2D ", tex_num); break; + case 1: fprintf(out, "%i=3D ", tex_num); break; + case 2: fprintf(out, "%i=4D ", tex_num); break; + case 3: fprintf(out, "%i=1D ", tex_num); break; + case 4: fprintf(out, "%i=2D_16 ", tex_num); break; + case 5: fprintf(out, "%i=4D_16 ", tex_num); break; + case 0xf: fprintf(out, "%i=NP ", tex_num); break; + } + } + fprintf(out, "\n"); + + break; + case 3: + instr_out(data, hw_offset, i, "S3: not documented\n", word); + break; + case 4: + { + char *cullmode = ""; + char *vfmt_xyzw = ""; + switch((data[i]>>13)&0x3) { + case 0: cullmode = "both"; break; + case 1: cullmode = "none"; break; + case 2: cullmode = "cw"; break; + case 3: cullmode = "ccw"; break; + } + switch(data[i] & (7<<6 | 1<<2)) { + case 1<<6: vfmt_xyzw = "XYZ,"; break; + case 2<<6: vfmt_xyzw = "XYZW,"; break; + case 3<<6: vfmt_xyzw = "XY,"; break; + case 4<<6: vfmt_xyzw = "XYW,"; break; + case 1<<6 | 1<<2: vfmt_xyzw = "XYZF,"; break; + case 2<<6 | 1<<2: vfmt_xyzw = "XYZWF,"; break; + case 3<<6 | 1<<2: vfmt_xyzw = "XYF,"; break; + case 4<<6 | 1<<2: vfmt_xyzw = "XYWF,"; break; + } + instr_out(data, hw_offset, i, "S4: point_width=%i, line_width=%.1f," + "%s%s%s%s%s cullmode=%s, vfmt=%s%s%s%s%s%s " + "%s%s\n", + (data[i]>>23)&0x1ff, + ((data[i]>>19)&0xf) / 2.0, + data[i]&(0xf<<15)?" flatshade=":"", + data[i]&(1<<18)?"Alpha,":"", + data[i]&(1<<17)?"Fog,":"", + data[i]&(1<<16)?"Specular,":"", + data[i]&(1<<15)?"Color,":"", + cullmode, + data[i]&(1<<12)?"PointWidth,":"", + data[i]&(1<<11)?"SpecFog,":"", + data[i]&(1<<10)?"Color,":"", + data[i]&(1<<9)?"DepthOfs,":"", + vfmt_xyzw, + data[i]&(1<<9)?"FogParam,":"", + data[i]&(1<<5)?"force default diffuse, ":"", + data[i]&(1<<4)?"force default specular, ":"", + data[i]&(1<<3)?"local depth ofs enable, ":"", + data[i]&(1<<1)?"point sprite enable, ":"", + data[i]&(1<<0)?"line AA enable, ":""); + break; + } + case 5: + { + instr_out(data, hw_offset, i, "S5:%s%s%s%s%s" + "%s%s%s%s stencil_ref=0x%x, stencil_test=%s, " + "stencil_fail=%s, stencil_pass_z_fail=%s, " + "stencil_pass_z_pass=%s, %s%s%s%s\n", + data[i]&(0xf<<28)?" write_disable=":"", + data[i]&(1<<31)?"Alpha,":"", + data[i]&(1<<30)?"Red,":"", + data[i]&(1<<29)?"Green,":"", + data[i]&(1<<28)?"Blue,":"", + data[i]&(1<<27)?" force default point size,":"", + data[i]&(1<<26)?" last pixel enable,":"", + data[i]&(1<<25)?" global depth ofs enable,":"", + data[i]&(1<<24)?" fog enable,":"", + (data[i]>>16)&0xff, + decode_compare_func(data[i]>>13), + decode_stencil_op(data[i]>>10), + decode_stencil_op(data[i]>>7), + decode_stencil_op(data[i]>>4), + data[i]&(1<<3)?"stencil write enable, ":"", + data[i]&(1<<2)?"stencil test enable, ":"", + data[i]&(1<<1)?"color dither enable, ":"", + data[i]&(1<<0)?"logicop enable, ":""); + } + break; + case 6: + instr_out(data, hw_offset, i, "S6: %salpha_test=%s, alpha_ref=0x%x, " + "depth_test=%s, %ssrc_blnd_fct=%s, dst_blnd_fct=%s, " + "%s%stristrip_provoking_vertex=%i\n", + data[i]&(1<<31)?"alpha test enable, ":"", + decode_compare_func(data[i]>>28), + data[i]&(0xff<<20), + decode_compare_func(data[i]>>16), + data[i]&(1<<15)?"cbuf blend enable, ":"", + decode_blend_fact(data[i]>>8), + decode_blend_fact(data[i]>>4), + data[i]&(1<<3)?"depth write enable, ":"", + data[i]&(1<<2)?"cbuf write enable, ":"", + data[i]&(0x3)); + break; + case 7: + instr_out(data, hw_offset, i, "S7: depth offset constant: 0x%08x\n", data[i]); + break; + } + } else { + instr_out(data, hw_offset, i, "S%d: 0x%08x\n", i, data[i]); + } + i++; } } if (len != i) { @@ -923,11 +1125,22 @@ decode_3d_1d(uint32_t *data, int count, instr_out(data, hw_offset, i++, "TB%dC\n", word - 7); instr_out(data, hw_offset, i++, "TB%dA\n", word - 7); } else if (word >= 11 && word <= 14) { - instr_out(data, hw_offset, i++, "TM%dS0\n", word - 11); - instr_out(data, hw_offset, i++, "TM%dS1\n", word - 11); - instr_out(data, hw_offset, i++, "TM%dS2\n", word - 11); + instr_out(data, hw_offset, i, "TM%dS0: offset=0x%08x, %s\n", + word - 11, + data[i]&0xfffffffe, + data[i]&1?"use fence":""); + i++; + instr_out(data, hw_offset, i, "TM%dS1: height=%i, width=%i, %s\n", + word - 11, + data[i]>>21, (data[i]>>10)&0x3ff, + data[i]&2?(data[i]&1?"y-tiled":"x-tiled"):""); + i++; + instr_out(data, hw_offset, i, "TM%dS2: pitch=%i, \n", + word - 11, + ((data[i]>>21) + 1)*4); + i++; instr_out(data, hw_offset, i++, "TM%dS3\n", word - 11); - instr_out(data, hw_offset, i++, "TM%dS4\n", word - 11); + instr_out(data, hw_offset, i++, "TM%dS4: dflt color\n", word - 11); } } } @@ -950,7 +1163,11 @@ decode_3d_1d(uint32_t *data, int count, if (i + 3 >= count) BUFFER_FAIL(count, len, "3DSTATE_MAP_STATE"); - instr_out(data, hw_offset, i++, "map %d MS2\n", map); + dword = data[i]; + instr_out(data, hw_offset, i++, "map %d MS2 %s%s%s\n", map, + dword&(1<<31)?"untrusted surface, ":"", + dword&(1<<1)?"vertical line stride enable, ":"", + dword&(1<<0)?"vertical ofs enable, ":""); dword = data[i]; width = ((dword >> 10) & ((1 << 11) - 1))+1; @@ -961,11 +1178,84 @@ decode_3d_1d(uint32_t *data, int count, tiling = "fenced"; else if (dword & (1 << 1)) tiling = dword & (1 << 0) ? "Y" : "X"; - instr_out(data, hw_offset, i++, "map %d MS3 [width=%d, height=%d, tiling=%s]\n", map, width, height, tiling); + type = " BAD"; + switch ((dword>>7) & 0x7) { + case 1: + type = "8b"; + switch ((dword>>3) & 0xf) { + case 0: format = "I"; break; + case 1: format = "L"; break; + case 2: format = "A"; break; + case 3: format = " mono"; break; } + break; + case 2: + type = "16b"; + switch ((dword>>3) & 0xf) { + case 0: format = " rgb565"; break; + case 1: format = " argb1555"; break; + case 2: format = " argb4444"; break; + case 5: format = " ay88"; break; + case 6: format = " bump655"; break; + case 7: format = "I"; break; + case 8: format = "L"; break; + case 9: format = "A"; break; } + break; + case 3: + type = "32b"; + switch ((dword>>3) & 0xf) { + case 0: format = " argb8888"; break; + case 1: format = " abgr8888"; break; + case 2: format = " xrgb8888"; break; + case 3: format = " xbgr8888"; break; + case 4: format = " qwvu8888"; break; + case 5: format = " axvu8888"; break; + case 6: format = " lxvu8888"; break; + case 7: format = " xlvu8888"; break; + case 8: format = " argb2101010"; break; + case 9: format = " abgr2101010"; break; + case 10: format = " awvu2101010"; break; + case 11: format = " gr1616"; break; + case 12: format = " vu1616"; break; + case 13: format = " xI824"; break; + case 14: format = " xA824"; break; + case 15: format = " xL824"; break; } + break; + case 5: + type = "422"; + switch ((dword>>3) & 0xf) { + case 0: format = " yuv_swapy"; break; + case 1: format = " yuv"; break; + case 2: format = " yuv_swapuv"; break; + case 3: format = " yuv_swapuvy"; break; } + break; + case 6: + type = "compressed"; + switch ((dword>>3) & 0x7) { + case 0: format = " dxt1"; break; + case 1: format = " dxt2_3"; break; + case 2: format = " dxt4_5"; break; + case 3: format = " fxt1"; break; + case 4: format = " dxt1_rb"; break; } + break; + case 7: + type = "4b indexed"; + switch ((dword>>3) & 0xf) { + case 7: format = " argb8888"; break; } + break; + default: + format = "BAD"; + } + dword = data[i]; + instr_out(data, hw_offset, i++, "map %d MS3 [width=%d, height=%d, format=%s%s, tiling=%s%s]\n", + map, width, height, type, format, tiling, + dword&(1<<9)?" palette select":""); dword = data[i]; pitch = 4*(((dword >> 21) & ((1 << 11) - 1))+1); - instr_out(data, hw_offset, i++, "map %d MS4 [pitch=%d]\n", map, pitch); + instr_out(data, hw_offset, i++, "map %d MS4 [pitch=%d, max_lod=%i, vol_depth=%i, cube_face_ena=%x, %s]\n", + map, pitch, + (dword>>9)&0x3f, dword&0xff, (dword>>15)&0x3f, + dword&(1<<8)?"miplayout legacy":"miplayout right"); } } if (len != i) { @@ -1021,7 +1311,7 @@ decode_3d_1d(uint32_t *data, int count, } return len; case 0x01: - if (!IS_9XX(devid)) + if (IS_GEN2(devid)) break; instr_out(data, hw_offset, 0, "3DSTATE_SAMPLER_STATE\n"); instr_out(data, hw_offset, 1, "mask\n"); @@ -1029,14 +1319,45 @@ decode_3d_1d(uint32_t *data, int count, i = 2; for (sampler = 0; sampler <= 15; sampler++) { if (data[1] & (1 << sampler)) { + uint32_t dword; + char *mip_filter = ""; if (i + 3 >= count) BUFFER_FAIL(count, len, "3DSTATE_SAMPLER_STATE"); - instr_out(data, hw_offset, i++, "sampler %d SS2\n", - sampler); - instr_out(data, hw_offset, i++, "sampler %d SS3\n", - sampler); - instr_out(data, hw_offset, i++, "sampler %d SS4\n", - sampler); + dword = data[i]; + switch ((dword>>20)&0x3) { + case 0: mip_filter = "none"; break; + case 1: mip_filter = "nearest"; break; + case 3: mip_filter = "linear"; break; + } + instr_out(data, hw_offset, i++, "sampler %d SS2:%s%s%s " + "base_mip_level=%i, mip_filter=%s, mag_filter=%s, min_filter=%s " + "lod_bias=%.2f,%s max_aniso=%i, shadow_func=%s\n", sampler, + dword&(1<<31)?" reverse gamma,":"", + dword&(1<<30)?" packed2planar,":"", + dword&(1<<29)?" colorspace conversion,":"", + (dword>>22)&0x1f, + mip_filter, + decode_sample_filter(dword>>17), + decode_sample_filter(dword>>14), + ((dword>>5)&0x1ff)/(0x10*1.0), + dword&(1<<4)?" shadow,":"", + dword&(1<<3)?4:2, + decode_compare_func(dword)); + dword = data[i]; + instr_out(data, hw_offset, i++, "sampler %d SS3: min_lod=%.2f,%s " + "tcmode_x=%s, tcmode_y=%s, tcmode_z=%s,%s texmap_idx=%i,%s\n", + sampler, ((dword>>24)&0xff)/(0x10*1.0), + dword&(1<<17)?" kill pixel enable,":"", + decode_tex_coord_mode(dword>>12), + decode_tex_coord_mode(dword>>9), + decode_tex_coord_mode(dword>>6), + dword&(1<<5)?" normalized coords,":"", + (dword>>1)&0xf, + dword&(1<<0)?" deinterlacer,":""); + dword = data[i]; + instr_out(data, hw_offset, i++, "sampler %d SS4: border color\n", + sampler, ((dword>>24)&0xff)/(0x10*1.0), + dword); } } if (len != i) { @@ -1069,8 +1390,14 @@ decode_3d_1d(uint32_t *data, int count, case 0xa: format = "a2r10g10b10"; break; default: format = "BAD"; break; } - instr_out(data, hw_offset, 1, "%s format, early Z %sabled\n", - format, + switch ((data[1] >> 2) & 0x3) { + case 0x0: zformat = "u16"; break; + case 0x1: zformat = "f16"; break; + case 0x2: zformat = "u24x8"; break; + default: zformat = "BAD"; break; + } + instr_out(data, hw_offset, 1, "%s format, %s depth format, early Z %sabled\n", + format, zformat, (data[1] & (1 << 31)) ? "en" : "dis"); return len; @@ -1102,12 +1429,70 @@ decode_3d_1d(uint32_t *data, int count, instr_out(data, hw_offset, 2, "address\n"); return len; } + case 0x81: + len = (data[0] & 0x0000000f) + 2; + + if (len != 3) + fprintf(out, "Bad count in 3DSTATE_SCISSOR_RECTANGLE\n"); + if (count < 3) + BUFFER_FAIL(count, len, "3DSTATE_SCISSOR_RECTANGLE"); + + instr_out(data, hw_offset, 0, + "3DSTATE_SCISSOR_RECTANGLE\n"); + instr_out(data, hw_offset, 1, "(%d,%d)\n", + data[1] & 0xffff, data[1] >> 16); + instr_out(data, hw_offset, 2, "(%d,%d)\n", + data[2] & 0xffff, data[2] >> 16); + + return len; + case 0x80: + len = (data[0] & 0x0000000f) + 2; + + if (len != 5) + fprintf(out, "Bad count in 3DSTATE_DRAWING_RECTANGLE\n"); + if (count < 5) + BUFFER_FAIL(count, len, "3DSTATE_DRAWING_RECTANGLE"); + + instr_out(data, hw_offset, 0, + "3DSTATE_DRAWING_RECTANGLE\n"); + instr_out(data, hw_offset, 1, "%s\n", + data[1]&(1<<30)?"depth ofs disabled ":""); + instr_out(data, hw_offset, 2, "(%d,%d)\n", + data[2] & 0xffff, data[2] >> 16); + instr_out(data, hw_offset, 3, "(%d,%d)\n", + data[3] & 0xffff, data[3] >> 16); + instr_out(data, hw_offset, 4, "(%d,%d)\n", + data[4] & 0xffff, data[4] >> 16); + + return len; + case 0x9c: + len = (data[0] & 0x0000000f) + 2; + + if (len != 7) + fprintf(out, "Bad count in 3DSTATE_CLEAR_PARAMETERS\n"); + if (count < 7) + BUFFER_FAIL(count, len, "3DSTATE_CLEAR_PARAMETERS"); + + instr_out(data, hw_offset, 0, + "3DSTATE_CLEAR_PARAMETERS\n"); + instr_out(data, hw_offset, 1, "prim_type=%s, clear=%s%s%s\n", + data[1]&(1<<16)?"CLEAR_RECT":"ZONE_INIT", + data[1]&(1<<2)?"color,":"", + data[1]&(1<<1)?"depth,":"", + data[1]&(1<<0)?"stencil,":""); + instr_out(data, hw_offset, 2, "clear color\n"); + instr_out(data, hw_offset, 3, "clear depth/stencil\n"); + instr_out(data, hw_offset, 4, "color value (rgba8888)\n"); + instr_out(data, hw_offset, 5, "depth value %f\n", + int_as_float(data[5])); + instr_out(data, hw_offset, 6, "clear stencil\n"); + return len; } for (idx = 0; idx < ARRAY_SIZE(opcodes_3d_1d); idx++) { opcode_3d_1d = &opcodes_3d_1d[idx]; - if (opcode_3d_1d->i830_only && IS_9XX(devid)) + if (opcode_3d_1d->i830_only && !IS_GEN2(devid)) continue; if (((data[0] & 0x00ff0000) >> 16) == opcode_3d_1d->opcode) { @@ -1145,7 +1530,7 @@ decode_3d_primitive(uint32_t *data, int count, uint32_t hw_offset, int *failures) { char immediate = (data[0] & (1 << 23)) == 0; - unsigned int len, i, ret; + unsigned int len, i, j, ret; char *primtype; int original_s2 = saved_s2; int original_s4 = saved_s4; @@ -1283,19 +1668,18 @@ decode_3d_primitive(uint32_t *data, int count, uint32_t hw_offset, for (i = 1; i < count; i++) { if ((data[i] & 0xffff) == 0xffff) { instr_out(data, hw_offset, i, - " indices: (terminator)\n"); + " indices: (terminator)\n"); ret = i; goto out; } else if ((data[i] >> 16) == 0xffff) { instr_out(data, hw_offset, i, - " indices: 0x%04x, " - "(terminator)\n", + " indices: 0x%04x, (terminator)\n", data[i] & 0xffff); ret = i; goto out; } else { instr_out(data, hw_offset, i, - " indices: 0x%04x, 0x%04x\n", + " indices: 0x%04x, 0x%04x\n", data[i] & 0xffff, data[i] >> 16); } } @@ -1306,15 +1690,15 @@ decode_3d_primitive(uint32_t *data, int count, uint32_t hw_offset, goto out; } else { /* fixed size vertex index buffer */ - for (i = 0; i < len; i += 2) { + for (j = 1, i = 0; i < len; i += 2, j++) { if (i * 2 == len - 1) { - instr_out(data, hw_offset, i, - " indices: 0x%04x\n", - data[i] & 0xffff); + instr_out(data, hw_offset, j, + " indices: 0x%04x\n", + data[j] & 0xffff); } else { - instr_out(data, hw_offset, i, - " indices: 0x%04x, 0x%04x\n", - data[i] & 0xffff, data[i] >> 16); + instr_out(data, hw_offset, j, + " indices: 0x%04x, 0x%04x\n", + data[j] & 0xffff, data[j] >> 16); } } } @@ -1586,10 +1970,10 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int { 0x6904, 1, 1, "3DSTATE_PIPELINE_SELECT" }, { 0x7800, 7, 7, "3DSTATE_PIPELINED_POINTERS" }, { 0x7801, 6, 6, "3DSTATE_BINDING_TABLE_POINTERS" }, - { 0x780b, 1, 1, "3DSTATE_VF_STATISTICS" }, { 0x7808, 5, 257, "3DSTATE_VERTEX_BUFFERS" }, { 0x7809, 3, 256, "3DSTATE_VERTEX_ELEMENTS" }, { 0x780a, 3, 3, "3DSTATE_INDEX_BUFFER" }, + { 0x780b, 1, 1, "3DSTATE_VF_STATISTICS" }, { 0x7900, 4, 4, "3DSTATE_DRAWING_RECTANGLE" }, { 0x7901, 5, 5, "3DSTATE_CONSTANT_COLOR" }, { 0x7905, 5, 7, "3DSTATE_DEPTH_BUFFER" }, @@ -1605,6 +1989,7 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int { 0x7b00, 6, 6, "3DPRIMITIVE" }, { 0x7802, 4, 4, "3DSTATE_SAMPLER_STATE_POINTERS" }, { 0x7805, 3, 3, "3DSTATE_URB" }, + { 0x780d, 4, 4, "3DSTATE_VIEWPORT_STATE_POINTERS" }, { 0x780e, 4, 4, "3DSTATE_CC_STATE_POINTERS" }, { 0x780f, 2, 2, "3DSTATE_SCISSOR_STATE_POINTERS" }, { 0x7810, 6, 6, "3DSTATE_VS_STATE" }, @@ -1612,7 +1997,6 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int { 0x7812, 4, 4, "3DSTATE_CLIP_STATE" }, { 0x7813, 20, 20, "3DSTATE_SF_STATE" }, { 0x7814, 9, 9, "3DSTATE_WM_STATE" }, - { 0x7812, 4, 4, "3DSTATE_CLIP_STATE" }, { 0x7815, 5, 5, "3DSTATE_CONSTANT_VS_STATE" }, { 0x7816, 5, 5, "3DSTATE_CONSTANT_GS_STATE" }, { 0x7817, 5, 5, "3DSTATE_CONSTANT_PS_STATE" }, @@ -1643,7 +2027,7 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int case 0x6101: if (IS_GEN6(devid)) sba_len = 10; - else if (IS_IRONLAKE(devid)) + else if (IS_GEN5(devid)) sba_len = 8; else sba_len = 6; @@ -1662,14 +2046,14 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int if (IS_GEN6(devid)) state_base_out(data, hw_offset, i++, "dynamic"); state_base_out(data, hw_offset, i++, "indirect"); - if (IS_IRONLAKE(devid) || IS_GEN6(devid)) + if (IS_GEN5(devid) || IS_GEN6(devid)) state_base_out(data, hw_offset, i++, "instruction"); state_max_out(data, hw_offset, i++, "general"); if (IS_GEN6(devid)) state_max_out(data, hw_offset, i++, "dynamic"); state_max_out(data, hw_offset, i++, "indirect"); - if (IS_IRONLAKE(devid) || IS_GEN6(devid)) + if (IS_GEN5(devid) || IS_GEN6(devid)) state_max_out(data, hw_offset, i++, "instruction"); return len; @@ -1711,13 +2095,40 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int "GS mod %d, PS mod %d\n", (data[0] & (1 << 8)) != 0, (data[0] & (1 << 9)) != 0, - (data[0] & (1 << 10)) != 0); + (data[0] & (1 << 12)) != 0); instr_out(data, hw_offset, 1, "VS binding table\n"); instr_out(data, hw_offset, 2, "GS binding table\n"); instr_out(data, hw_offset, 3, "WM binding table\n"); } return len; + case 0x7802: + len = (data[0] & 0xff) + 2; + if (len != 4) + fprintf(out, "Bad count in 3DSTATE_SAMPLER_STATE_POINTERS\n"); + if (count < 4) + BUFFER_FAIL(count, len, "3DSTATE_SAMPLER_STATE_POINTERS"); + instr_out(data, hw_offset, 0, "3DSTATE_SAMPLER_STATE_POINTERS: VS mod %d, " + "GS mod %d, PS mod %d\n", + (data[0] & (1 << 8)) != 0, + (data[0] & (1 << 9)) != 0, + (data[0] & (1 << 12)) != 0); + instr_out(data, hw_offset, 1, "VS sampler state\n"); + instr_out(data, hw_offset, 2, "GS sampler state\n"); + instr_out(data, hw_offset, 3, "WM sampler state\n"); + return len; + case 0x7805: + len = (data[0] & 0xff) + 2; + if (len != 3) + fprintf(out, "Bad count in 3DSTATE_URB\n"); + if (count < 3) + BUFFER_FAIL(count, len, "3DSTATE_URB"); + instr_out(data, hw_offset, 0, "3DSTATE_URB\n"); + instr_out(data, hw_offset, 1, "VS entries %d, alloc size %d (1024bit row)\n", + data[1] & 0xffff, ((data[1] >> 16) & 0x07f) + 1); + instr_out(data, hw_offset, 2, "GS entries %d, alloc size %d (1024bit row)\n", + (data[2] >> 8) & 0x3ff, (data[2] & 7) + 1); + return len; case 0x7808: len = (data[0] & 0xff) + 2; @@ -1728,9 +2139,17 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int instr_out(data, hw_offset, 0, "3DSTATE_VERTEX_BUFFERS\n"); for (i = 1; i < len;) { + int idx, access; + if (IS_GEN6(devid)) { + idx = 26; + access = 20; + } else { + idx = 27; + access = 26; + } instr_out(data, hw_offset, i, "buffer %d: %s, pitch %db\n", - data[i] >> 27, - data[i] & (1 << 26) ? "random" : "sequential", + data[i] >> idx, + data[i] & (1 << access) ? "random" : "sequential", data[i] & 0x07ff); i++; instr_out(data, hw_offset, i++, "buffer address\n"); @@ -1750,8 +2169,8 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int for (i = 1; i < len;) { instr_out(data, hw_offset, i, "buffer %d: %svalid, type 0x%04x, " "src offset 0x%04x bytes\n", - data[i] >> 27, - data[i] & (1 << 26) ? "" : "in", + data[i] >> (IS_GEN6(devid) ? 26 : 27), + data[i] & (1 << (IS_GEN6(devid) ? 25 : 26)) ? "" : "in", (data[i] >> 16) & 0x1ff, data[i] & 0x07ff); i++; @@ -1789,6 +2208,224 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int instr_out(data, hw_offset, 2, "ending buffer address\n"); return len; + case 0x780e: + len = (data[0] & 0xff) + 2; + if (len != 4) + fprintf(out, "Bad count in 3DSTATE_CC_STATE_POINTERS\n"); + if (count < 4) + BUFFER_FAIL(count, len, "3DSTATE_CC_STATE_POINTERS"); + instr_out(data, hw_offset, 0, "3DSTATE_CC_STATE_POINTERS\n"); + instr_out(data, hw_offset, 1, "blend change %d\n", data[1] & 1); + instr_out(data, hw_offset, 2, "depth stencil change %d\n", data[2] & 1); + instr_out(data, hw_offset, 3, "cc change %d\n", data[3] & 1); + return len; + + case 0x780f: + len = (data[0] & 0xff) + 2; + if (len != 2) + fprintf(out, "Bad count in 3DSTATE_SCISSOR_POINTERS\n"); + if (count < 2) + BUFFER_FAIL(count, len, "3DSTATE_SCISSOR_POINTERS"); + instr_out(data, hw_offset, 0, "3DSTATE_SCISSOR_POINTERS\n"); + instr_out(data, hw_offset, 1, "scissor rect offset\n"); + return len; + + case 0x7810: + len = (data[0] & 0xff) + 2; + if (len != 6) + fprintf(out, "Bad count in 3DSTATE_VS\n"); + if (count < 6) + BUFFER_FAIL(count, len, "3DSTATE_VS"); + instr_out(data, hw_offset, 0, "3DSTATE_VS\n"); + instr_out(data, hw_offset, 1, "kernel pointer\n"); + instr_out(data, hw_offset, 2, "SPF=%d, VME=%d, Sampler Count %d, " + "Binding table count %d\n", + (data[2] >> 31) & 1, + (data[2] >> 30) & 1, + (data[2] >> 27) & 7, + (data[2] >> 18) & 0xff); + instr_out(data, hw_offset, 3, "scratch offset\n"); + instr_out(data, hw_offset, 4, "Dispatch GRF start %d, VUE read length %d, " + "VUE read offset %d\n", + (data[4] >> 20) & 0x1f, + (data[4] >> 11) & 0x3f, + (data[4] >> 4) & 0x3f); + instr_out(data, hw_offset, 5, "Max Threads %d, Vertex Cache %sable, " + "VS func %sable\n", + ((data[5] >> 25) & 0x7f) + 1, + (data[5] & (1 << 1)) != 0 ? "dis" : "en", + (data[5] & 1) != 0 ? "en" : "dis"); + return len; + + case 0x7811: + len = (data[0] & 0xff) + 2; + if (len != 7) + fprintf(out, "Bad count in 3DSTATE_GS\n"); + if (count < 7) + BUFFER_FAIL(count, len, "3DSTATE_GS"); + instr_out(data, hw_offset, 0, "3DSTATE_GS\n"); + instr_out(data, hw_offset, 1, "kernel pointer\n"); + instr_out(data, hw_offset, 2, "SPF=%d, VME=%d, Sampler Count %d, " + "Binding table count %d\n", + (data[2] >> 31) & 1, + (data[2] >> 30) & 1, + (data[2] >> 27) & 7, + (data[2] >> 18) & 0xff); + instr_out(data, hw_offset, 3, "scratch offset\n"); + instr_out(data, hw_offset, 4, "Dispatch GRF start %d, VUE read length %d, " + "VUE read offset %d\n", + (data[4] & 0xf), + (data[4] >> 11) & 0x3f, + (data[4] >> 4) & 0x3f); + instr_out(data, hw_offset, 5, "Max Threads %d, Rendering %sable\n", + ((data[5] >> 25) & 0x7f) + 1, + (data[5] & (1 << 8)) != 0 ? "en" : "dis"); + instr_out(data, hw_offset, 6, "Reorder %sable, Discard Adjaceny %sable, " + "GS %sable\n", + (data[6] & (1 << 30)) != 0 ? "en" : "dis", + (data[6] & (1 << 29)) != 0 ? "en" : "dis", + (data[6] & (1 << 15)) != 0 ? "en" : "dis"); + return len; + + case 0x7812: + len = (data[0] & 0xff) + 2; + if (len != 4) + fprintf(out, "Bad count in 3DSTATE_CLIP\n"); + if (count < 4) + BUFFER_FAIL(count, len, "3DSTATE_CLIP"); + instr_out(data, hw_offset, 0, "3DSTATE_CLIP\n"); + instr_out(data, hw_offset, 1, "UserClip distance cull test mask 0x%x\n", + data[1] & 0xff); + instr_out(data, hw_offset, 2, "Clip %sable, API mode %s, Viewport XY test %sable, " + "Viewport Z test %sable, Guardband test %sable, Clip mode %d, " + "Perspective Divide %sable, Non-Perspective Barycentric %sable, " + "Tri Provoking %d, Line Provoking %d, Trifan Provoking %d\n", + (data[2] & (1 << 31)) != 0 ? "en" : "dis", + (data[2] & (1 << 30)) != 0 ? "D3D" : "OGL", + (data[2] & (1 << 28)) != 0 ? "en" : "dis", + (data[2] & (1 << 27)) != 0 ? "en" : "dis", + (data[2] & (1 << 26)) != 0 ? "en" : "dis", + (data[2] >> 13) & 7, + (data[2] & (1 << 9)) != 0 ? "dis" : "en", + (data[2] & (1 << 8)) != 0 ? "en" : "dis", + (data[2] >> 4) & 3, + (data[2] >> 2) & 3, + (data[2] & 3)); + instr_out(data, hw_offset, 3, "Min PointWidth %d, Max PointWidth %d, " + "Force Zero RTAIndex %sable, Max VPIndex %d\n", + (data[3] >> 17) & 0x7ff, + (data[3] >> 6) & 0x7ff, + (data[3] & (1 << 5)) != 0 ? "en" : "dis", + (data[3] & 0xf)); + return len; + + case 0x7813: + len = (data[0] & 0xff) + 2; + if (len != 20) + fprintf(out, "Bad count in 3DSTATE_SF\n"); + if (count < 20) + BUFFER_FAIL(count, len, "3DSTATE_SF"); + instr_out(data, hw_offset, 0, "3DSTATE_SF\n"); + instr_out(data, hw_offset, 1, "Attrib Out %d, Attrib Swizzle %sable, VUE read length %d, " + "VUE read offset %d\n", + (data[1] >> 22) & 0x3f, + (data[1] & (1 << 21)) != 0 ? "en" : "dis", + (data[1] >> 11) & 0x1f, + (data[1] >> 4) & 0x3f); + instr_out(data, hw_offset, 2, "Legacy Global DepthBias %sable, FrontFace fill %d, BF fill %d, " + "VP transform %sable, FrontWinding_%s\n", + (data[2] & (1 << 11)) != 0 ? "en" : "dis", + (data[2] >> 5) & 3, + (data[2] >> 3) & 3, + (data[2] & (1 << 1)) != 0 ? "en" : "dis", + (data[2] & 1) != 0 ? "CCW" : "CW"); + instr_out(data, hw_offset, 3, "AA %sable, CullMode %d, Scissor %sable, Multisample m ode %d\n", + (data[3] & (1 << 31)) != 0 ? "en" : "dis", + (data[3] >> 29) & 3, + (data[3] & (1 << 11)) != 0 ? "en" : "dis", + (data[3] >> 8) & 3); + instr_out(data, hw_offset, 4, "Last Pixel %sable, SubPixel Precision %d, Use PixelWidth %d\n", + (data[4] & (1 << 31)) != 0 ? "en" : "dis", + (data[4] & (1 << 12)) != 0 ? 4 : 8, + (data[4] & (1 << 11)) != 0); + instr_out(data, hw_offset, 5, "Global Depth Offset Constant %f\n", data[5]); + instr_out(data, hw_offset, 6, "Global Depth Offset Scale %f\n", data[6]); + instr_out(data, hw_offset, 7, "Global Depth Offset Clamp %f\n", data[7]); + int i, j; + for (i = 0, j = 0; i < 8; i++, j+=2) + instr_out(data, hw_offset, i+8, "Attrib %d (Override %s%s%s%s, Const Source %d, Swizzle Select %d, " + "Source %d); Attrib %d (Override %s%s%s%s, Const Source %d, Swizzle Select %d, Source %d)\n", + j+1, + (data[8+i] & (1 << 31)) != 0 ? "W":"", + (data[8+i] & (1 << 30)) != 0 ? "Z":"", + (data[8+i] & (1 << 29)) != 0 ? "Y":"", + (data[8+i] & (1 << 28)) != 0 ? "X":"", + (data[8+i] >> 25) & 3, (data[8+i] >> 22) & 3, + (data[8+i] >> 16) & 0x1f, + j, + (data[8+i] & (1 << 15)) != 0 ? "W":"", + (data[8+i] & (1 << 14)) != 0 ? "Z":"", + (data[8+i] & (1 << 13)) != 0 ? "Y":"", + (data[8+i] & (1 << 12)) != 0 ? "X":"", + (data[8+i] >> 9) & 3, (data[8+i] >> 6) & 3, + (data[8+i] & 0x1f)); + instr_out(data, hw_offset, 16, "Point Sprite TexCoord Enable\n"); + instr_out(data, hw_offset, 17, "Const Interp Enable\n"); + instr_out(data, hw_offset, 18, "Attrib 7-0 WrapShortest Enable\n"); + instr_out(data, hw_offset, 19, "Attrib 15-8 WrapShortest Enable\n"); + + return len; + + case 0x7814: + len = (data[0] & 0xff) + 2; + if (len != 9) + fprintf(out, "Bad count in 3DSTATE_WM\n"); + if (count < 9) + BUFFER_FAIL(count, len, "3DSTATE_WM"); + instr_out(data, hw_offset, 0, "3DSTATE_WM\n"); + instr_out(data, hw_offset, 1, "kernel start pointer 0\n"); + instr_out(data, hw_offset, 2, "SPF=%d, VME=%d, Sampler Count %d, " + "Binding table count %d\n", + (data[2] >> 31) & 1, + (data[2] >> 30) & 1, + (data[2] >> 27) & 7, + (data[2] >> 18) & 0xff); + instr_out(data, hw_offset, 3, "scratch offset\n"); + instr_out(data, hw_offset, 4, "Depth Clear %d, Depth Resolve %d, HiZ Resolve %d, " + "Dispatch GRF start[0] %d, start[1] %d, start[2] %d\n", + (data[4] & (1 << 30)) != 0, + (data[4] & (1 << 28)) != 0, + (data[4] & (1 << 27)) != 0, + (data[4] >> 16) & 0x7f, + (data[4] >> 8) & 0x7f, + (data[4] & 0x7f)); + instr_out(data, hw_offset, 5, "MaxThreads %d, PS KillPixel %d, PS computed Z %d, " + "PS use sourceZ %d, Thread Dispatch %d, PS use sourceW %d, Dispatch32 %d, " + "Dispatch16 %d, Dispatch8 %d\n", + ((data[5] >> 25) & 0x7f) + 1, + (data[5] & (1 << 22)) != 0, + (data[5] & (1 << 21)) != 0, + (data[5] & (1 << 20)) != 0, + (data[5] & (1 << 19)) != 0, + (data[5] & (1 << 8)) != 0, + (data[5] & (1 << 2)) != 0, + (data[5] & (1 << 1)) != 0, + (data[5] & (1 << 0)) != 0); + instr_out(data, hw_offset, 6, "Num SF output %d, Pos XY offset %d, ZW interp mode %d , " + "Barycentric interp mode 0x%x, Point raster rule %d, Multisample mode %d, " + "Multisample Dispatch mode %d\n", + (data[6] >> 20) & 0x3f, + (data[6] >> 18) & 3, + (data[6] >> 16) & 3, + (data[6] >> 10) & 0x3f, + (data[6] & (1 << 9)) != 0, + (data[6] >> 1) & 3, + (data[6] & 1)); + instr_out(data, hw_offset, 7, "kernel start pointer 1\n"); + instr_out(data, hw_offset, 8, "kernel start pointer 2\n"); + + return len; + case 0x7900: if (len != 4) fprintf(out, "Bad count in 3DSTATE_DRAWING_RECTANGLE\n"); @@ -1817,11 +2454,20 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int instr_out(data, hw_offset, 0, "3DSTATE_DEPTH_BUFFER\n"); - instr_out(data, hw_offset, 1, "%s, %s, pitch = %d bytes, %stiled\n", - get_965_surfacetype(data[1] >> 29), - get_965_depthformat((data[1] >> 18) & 0x7), - (data[1] & 0x0001ffff) + 1, - data[1] & (1 << 27) ? "" : "not "); + if (IS_GEN5(devid) || IS_GEN6(devid)) + instr_out(data, hw_offset, 1, "%s, %s, pitch = %d bytes, %stiled, HiZ %d, Seperate Stencil %d\n", + get_965_surfacetype(data[1] >> 29), + get_965_depthformat((data[1] >> 18) & 0x7), + (data[1] & 0x0001ffff) + 1, + data[1] & (1 << 27) ? "" : "not ", + (data[1] & (1 << 22)) != 0, + (data[1] & (1 << 21)) != 0); + else + instr_out(data, hw_offset, 1, "%s, %s, pitch = %d bytes, %stiled\n", + get_965_surfacetype(data[1] >> 29), + get_965_depthformat((data[1] >> 18) & 0x7), + (data[1] & 0x0001ffff) + 1, + data[1] & (1 << 27) ? "" : "not "); instr_out(data, hw_offset, 2, "depth offset\n"); instr_out(data, hw_offset, 3, "%dx%d\n", ((data[3] & 0x0007ffc0) >> 6) + 1, @@ -1829,36 +2475,79 @@ decode_3d_965(uint32_t *data, int count, uint32_t hw_offset, uint32_t devid, int instr_out(data, hw_offset, 4, "volume depth\n"); if (len >= 6) instr_out(data, hw_offset, 5, "\n"); - if (len >= 7) - instr_out(data, hw_offset, 6, "render target view extent\n"); + if (len >= 7) { + if (IS_GEN6(devid)) + instr_out(data, hw_offset, 6, "\n"); + else + instr_out(data, hw_offset, 6, "render target view extent\n"); + } + return len; case 0x7a00: - len = (data[0] & 0xff) + 2; - if (len != 4) - fprintf(out, "Bad count in PIPE_CONTROL\n"); - if (count < len) - BUFFER_FAIL(count, len, "PIPE_CONTROL"); + if (IS_GEN6(devid)) { + int i; + len = (data[0] & 0xff) + 2; + if (len != 4 && len != 5) + fprintf(out, "Bad count in PIPE_CONTROL\n"); + if (count < len) + BUFFER_FAIL(count, len, "PIPE_CONTROL"); - switch ((data[0] >> 14) & 0x3) { - case 0: desc1 = "no write"; break; - case 1: desc1 = "qword write"; break; - case 2: desc1 = "PS_DEPTH_COUNT write"; break; - case 3: desc1 = "TIMESTAMP write"; break; + switch ((data[1] >> 14) & 0x3) { + case 0: desc1 = "no write"; break; + case 1: desc1 = "qword write"; break; + case 2: desc1 = "PS_DEPTH_COUNT write"; break; + case 3: desc1 = "TIMESTAMP write"; break; + } + instr_out(data, hw_offset, 0, "PIPE_CONTROL\n"); + instr_out(data, hw_offset, 1, + "%s, %scs stall, %stlb invalidate, " + "%ssync gfdt, %sdepth stall, %sRC write flush, " + "%sinst flush, %sTC flush\n", + desc1, + data[1] & (1 << 20) ? "" : "no ", + data[1] & (1 << 18) ? "" : "no ", + data[1] & (1 << 17) ? "" : "no ", + data[1] & (1 << 13) ? "" : "no ", + data[1] & (1 << 12) ? "" : "no ", + data[1] & (1 << 11) ? "" : "no ", + data[1] & (1 << 10) ? "" : "no "); + if (len == 5) { + instr_out(data, hw_offset, 2, "destination address\n"); + instr_out(data, hw_offset, 3, "immediate dword low\n"); + instr_out(data, hw_offset, 4, "immediate dword high\n"); + } else { + for (i = 2; i < len; i++) { + instr_out(data, hw_offset, i, "\n"); + } + } + return len; + } else { + len = (data[0] & 0xff) + 2; + if (len != 4) + fprintf(out, "Bad count in PIPE_CONTROL\n"); + if (count < len) + BUFFER_FAIL(count, len, "PIPE_CONTROL"); + + switch ((data[0] >> 14) & 0x3) { + case 0: desc1 = "no write"; break; + case 1: desc1 = "qword write"; break; + case 2: desc1 = "PS_DEPTH_COUNT write"; break; + case 3: desc1 = "TIMESTAMP write"; break; + } + instr_out(data, hw_offset, 0, + "PIPE_CONTROL: %s, %sdepth stall, %sRC write flush, " + "%sinst flush\n", + desc1, + data[0] & (1 << 13) ? "" : "no ", + data[0] & (1 << 12) ? "" : "no ", + data[0] & (1 << 11) ? "" : "no "); + instr_out(data, hw_offset, 1, "destination address\n"); + instr_out(data, hw_offset, 2, "immediate dword low\n"); + instr_out(data, hw_offset, 3, "immediate dword high\n"); + return len; } - instr_out(data, hw_offset, 0, - "PIPE_CONTROL: %s, %sdepth stall, %sRC write flush, " - "%sinst flush\n", - desc1, - data[0] & (1 << 13) ? "" : "no ", - data[0] & (1 << 12) ? "" : "no ", - data[0] & (1 << 11) ? "" : "no "); - instr_out(data, hw_offset, 1, "destination address\n"); - instr_out(data, hw_offset, 2, "immediate dword low\n"); - instr_out(data, hw_offset, 3, "immediate dword high\n"); - return len; - case 0x7b00: len = (data[0] & 0xff) + 2; if (len != 6) @@ -2027,7 +2716,7 @@ intel_decode(uint32_t *data, int count, index += decode_3d_965(data + index, count - index, hw_offset + index * 4, devid, &failures); - } else if (IS_9XX(devid)) { + } else if (IS_GEN3(devid)) { index += decode_3d(data + index, count - index, hw_offset + index * 4, devid, &failures); From eaae63b7155f1fd00fe36a3db4cb8b94aa5ad7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 7 Jun 2011 20:51:03 +0200 Subject: [PATCH 067/145] r600g: add missing r300 families Wondering why r600g needs to include r300_pci_ids.h --- src/gallium/drivers/r600/r600.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h index b1444bf94f4..3d6f9c23ece 100644 --- a/src/gallium/drivers/r600/r600.h +++ b/src/gallium/drivers/r600/r600.h @@ -59,11 +59,16 @@ enum radeon_family { CHIP_R300, CHIP_R350, CHIP_RV350, + CHIP_RV370, CHIP_RV380, CHIP_R420, CHIP_R423, + CHIP_R430, + CHIP_R480, + CHIP_R481, CHIP_RV410, CHIP_RS400, + CHIP_RC410, CHIP_RS480, CHIP_RS600, CHIP_RS690, From 4123131f3cc17942ab02b13d2a3bc338951051d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 7 Jun 2011 20:50:32 +0200 Subject: [PATCH 068/145] r300_pci_ids: set families to match r300g --- include/pci_ids/r300_pci_ids.h | 91 ++++++++++++++++++---------------- 1 file changed, 49 insertions(+), 42 deletions(-) diff --git a/include/pci_ids/r300_pci_ids.h b/include/pci_ids/r300_pci_ids.h index 8f57ca77eeb..5821d444da3 100644 --- a/include/pci_ids/r300_pci_ids.h +++ b/include/pci_ids/r300_pci_ids.h @@ -6,8 +6,8 @@ CHIPSET(0x4E44, R300_ND, R300) CHIPSET(0x4E45, R300_NE, R300) CHIPSET(0x4E46, R300_NF, R300) CHIPSET(0x4E47, R300_NG, R300) -CHIPSET(0x4E48, R350_NH, R350) +CHIPSET(0x4E48, R350_NH, R350) CHIPSET(0x4E49, R350_NI, R350) CHIPSET(0x4E4B, R350_NK, R350) CHIPSET(0x4148, R350_AH, R350) @@ -30,14 +30,15 @@ CHIPSET(0x4E53, RV350_NS, RV350) CHIPSET(0x4E54, RV350_NT, RV350) CHIPSET(0x4E56, RV350_NV, RV350) -CHIPSET(0x5460, RV370_5460, RV380) -CHIPSET(0x5462, RV370_5462, RV380) -CHIPSET(0x5464, RV370_5464, RV380) -CHIPSET(0x5B60, RV370_5B60, RV380) -CHIPSET(0x5B62, RV370_5B62, RV380) -CHIPSET(0x5B63, RV370_5B63, RV380) -CHIPSET(0x5B64, RV370_5B64, RV380) -CHIPSET(0x5B65, RV370_5B65, RV380) +CHIPSET(0x5460, RV370_5460, RV370) +CHIPSET(0x5462, RV370_5462, RV370) +CHIPSET(0x5464, RV370_5464, RV370) +CHIPSET(0x5B60, RV370_5B60, RV370) +CHIPSET(0x5B62, RV370_5B62, RV370) +CHIPSET(0x5B63, RV370_5B63, RV370) +CHIPSET(0x5B64, RV370_5B64, RV370) +CHIPSET(0x5B65, RV370_5B65, RV370) + CHIPSET(0x3150, RV380_3150, RV380) CHIPSET(0x3152, RV380_3152, RV380) CHIPSET(0x3154, RV380_3154, RV380) @@ -55,33 +56,37 @@ CHIPSET(0x4A4E, R420_JN, R420) CHIPSET(0x4A4F, R420_JO, R420) CHIPSET(0x4A50, R420_JP, R420) CHIPSET(0x4A54, R420_JT, R420) -CHIPSET(0x5548, R423_UH, R420) -CHIPSET(0x5549, R423_UI, R420) -CHIPSET(0x554A, R423_UJ, R420) -CHIPSET(0x554B, R423_UK, R420) -CHIPSET(0x5550, R423_5550, R420) -CHIPSET(0x5551, R423_UQ, R420) -CHIPSET(0x5552, R423_UR, R420) -CHIPSET(0x5554, R423_UT, R420) -CHIPSET(0x5D57, R423_5D57, R420) -CHIPSET(0x554C, R430_554C, R420) -CHIPSET(0x554D, R430_554D, R420) -CHIPSET(0x554E, R430_554E, R420) -CHIPSET(0x554F, R430_554F, R420) -CHIPSET(0x5D48, R430_5D48, R420) -CHIPSET(0x5D49, R430_5D49, R420) -CHIPSET(0x5D4A, R430_5D4A, R420) -CHIPSET(0x5D4C, R480_5D4C, R420) -CHIPSET(0x5D4D, R480_5D4D, R420) -CHIPSET(0x5D4E, R480_5D4E, R420) -CHIPSET(0x5D4F, R480_5D4F, R420) -CHIPSET(0x5D50, R480_5D50, R420) -CHIPSET(0x5D52, R480_5D52, R420) -CHIPSET(0x4B48, R481_4B48, R420) -CHIPSET(0x4B49, R481_4B49, R420) -CHIPSET(0x4B4A, R481_4B4A, R420) -CHIPSET(0x4B4B, R481_4B4B, R420) -CHIPSET(0x4B4C, R481_4B4C, R420) + +CHIPSET(0x5548, R423_UH, R423) +CHIPSET(0x5549, R423_UI, R423) +CHIPSET(0x554A, R423_UJ, R423) +CHIPSET(0x554B, R423_UK, R423) +CHIPSET(0x5550, R423_5550, R423) +CHIPSET(0x5551, R423_UQ, R423) +CHIPSET(0x5552, R423_UR, R423) +CHIPSET(0x5554, R423_UT, R423) +CHIPSET(0x5D57, R423_5D57, R423) + +CHIPSET(0x554C, R430_554C, R430) +CHIPSET(0x554D, R430_554D, R430) +CHIPSET(0x554E, R430_554E, R430) +CHIPSET(0x554F, R430_554F, R430) +CHIPSET(0x5D48, R430_5D48, R430) +CHIPSET(0x5D49, R430_5D49, R430) +CHIPSET(0x5D4A, R430_5D4A, R430) + +CHIPSET(0x5D4C, R480_5D4C, R480) +CHIPSET(0x5D4D, R480_5D4D, R480) +CHIPSET(0x5D4E, R480_5D4E, R480) +CHIPSET(0x5D4F, R480_5D4F, R480) +CHIPSET(0x5D50, R480_5D50, R480) +CHIPSET(0x5D52, R480_5D52, R480) + +CHIPSET(0x4B48, R481_4B48, R481) +CHIPSET(0x4B49, R481_4B49, R481) +CHIPSET(0x4B4A, R481_4B4A, R481) +CHIPSET(0x4B4B, R481_4B4B, R481) +CHIPSET(0x4B4C, R481_4B4C, R481) CHIPSET(0x564A, RV410_564A, RV410) CHIPSET(0x564B, RV410_564B, RV410) @@ -98,12 +103,14 @@ CHIPSET(0x5E4F, RV410_5E4F, RV410) CHIPSET(0x5A41, RS400_5A41, RS400) CHIPSET(0x5A42, RS400_5A42, RS400) -CHIPSET(0x5A61, RC410_5A61, RS400) -CHIPSET(0x5A62, RC410_5A62, RS400) -CHIPSET(0x5954, RS480_5954, RS400) -CHIPSET(0x5955, RS480_5955, RS400) -CHIPSET(0x5974, RS482_5974, RS400) -CHIPSET(0x5975, RS482_5975, RS400) + +CHIPSET(0x5A61, RC410_5A61, RC410) +CHIPSET(0x5A62, RC410_5A62, RC410) + +CHIPSET(0x5954, RS480_5954, RS480) +CHIPSET(0x5955, RS480_5955, RS480) +CHIPSET(0x5974, RS482_5974, RS480) +CHIPSET(0x5975, RS482_5975, RS480) CHIPSET(0x7100, R520_7100, R520) CHIPSET(0x7101, R520_7101, R520) From d7111353bd52fa54ae6c0defd6d1c4a86fbfb3b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 7 Jun 2011 20:59:56 +0200 Subject: [PATCH 069/145] r300g: consolidate deducing chipset info Use the new PCI ID table, make it simpler. --- src/gallium/drivers/r300/Makefile | 3 +- src/gallium/drivers/r300/r300_chipset.c | 476 +++++------------------- src/gallium/drivers/r300/r300_chipset.h | 14 +- src/gallium/drivers/r300/r300_screen.c | 8 +- 4 files changed, 108 insertions(+), 393 deletions(-) diff --git a/src/gallium/drivers/r300/Makefile b/src/gallium/drivers/r300/Makefile index c9401b99f1c..4088216adcb 100644 --- a/src/gallium/drivers/r300/Makefile +++ b/src/gallium/drivers/r300/Makefile @@ -29,7 +29,8 @@ C_SOURCES = \ r300_transfer.c LIBRARY_INCLUDES = \ - -I$(TOP)/src/mesa/drivers/dri/r300/compiler + -I$(TOP)/src/mesa/drivers/dri/r300/compiler \ + -I$(TOP)/include COMPILER_ARCHIVE = $(TOP)/src/mesa/drivers/dri/r300/compiler/libr300compiler.a diff --git a/src/gallium/drivers/r300/r300_chipset.c b/src/gallium/drivers/r300/r300_chipset.c index 4949703120d..571986c3011 100644 --- a/src/gallium/drivers/r300/r300_chipset.c +++ b/src/gallium/drivers/r300/r300_chipset.c @@ -1,5 +1,6 @@ /* * Copyright 2008 Corbin Simpson + * Copyright 2011 Marek Olšák * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -32,392 +33,109 @@ /* Parse a PCI ID and fill an r300_capabilities struct with information. */ void r300_parse_chipset(struct r300_capabilities* caps) { - /* Reasonable defaults */ - caps->num_vert_fpus = 2; - caps->num_tex_units = 16; - caps->has_tcl = debug_get_bool_option("RADEON_NO_TCL", FALSE) ? FALSE : TRUE; - caps->hiz_ram = 0; - caps->is_r400 = FALSE; - caps->is_r500 = FALSE; - caps->high_second_pipe = FALSE; - - /* Note: These are not ordered by PCI ID. I leave that task to GCC, - * which will perform the ordering while collating jump tables. Instead, - * I've tried to group them according to capabilities and age. */ switch (caps->pci_id) { - case 0x4144: - caps->family = CHIP_FAMILY_R300; - caps->high_second_pipe = TRUE; - caps->num_vert_fpus = 4; - caps->hiz_ram = R300_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; +#define CHIPSET(pci_id, name, chipfamily) \ + case pci_id: \ + caps->family = CHIP_FAMILY_##chipfamily; \ break; +#include "pci_ids/r300_pci_ids.h" +#undef CHIPSET - case 0x4145: - case 0x4146: - case 0x4147: - case 0x4E44: - case 0x4E45: - case 0x4E46: - case 0x4E47: - caps->family = CHIP_FAMILY_R300; - caps->high_second_pipe = TRUE; - caps->num_vert_fpus = 4; - caps->hiz_ram = R300_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x4150: - case 0x4151: - case 0x4152: - case 0x4153: - case 0x4154: - case 0x4155: - case 0x4156: - case 0x4E50: - case 0x4E51: - case 0x4E52: - case 0x4E53: - case 0x4E54: - case 0x4E56: - caps->family = CHIP_FAMILY_RV350; - caps->high_second_pipe = TRUE; - caps->zmask_ram = RV3xx_ZMASK_SIZE; - break; - - case 0x4148: - case 0x4149: - case 0x414A: - case 0x414B: - case 0x4E48: - case 0x4E49: - case 0x4E4B: - caps->family = CHIP_FAMILY_R350; - caps->high_second_pipe = TRUE; - caps->num_vert_fpus = 4; - caps->hiz_ram = R300_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x4E4A: - caps->family = CHIP_FAMILY_R360; - caps->high_second_pipe = TRUE; - caps->num_vert_fpus = 4; - caps->hiz_ram = R300_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x5460: - case 0x5462: - case 0x5464: - case 0x5B60: - case 0x5B62: - case 0x5B63: - case 0x5B64: - case 0x5B65: - caps->family = CHIP_FAMILY_RV370; - caps->high_second_pipe = TRUE; - caps->zmask_ram = RV3xx_ZMASK_SIZE; - break; - - case 0x3150: - case 0x3152: - case 0x3154: - case 0x3155: - case 0x3E50: - case 0x3E54: - caps->family = CHIP_FAMILY_RV380; - caps->high_second_pipe = TRUE; - caps->hiz_ram = R300_HIZ_LIMIT; - caps->zmask_ram = RV3xx_ZMASK_SIZE; - break; - - case 0x4A48: - case 0x4A49: - case 0x4A4A: - case 0x4A4B: - case 0x4A4C: - case 0x4A4D: - case 0x4A4E: - case 0x4A4F: - case 0x4A50: - case 0x4A54: - caps->family = CHIP_FAMILY_R420; - caps->num_vert_fpus = 6; - caps->is_r400 = TRUE; - caps->hiz_ram = R300_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x5548: - case 0x5549: - case 0x554A: - case 0x554B: - case 0x5550: - case 0x5551: - case 0x5552: - case 0x5554: - case 0x5D57: - caps->family = CHIP_FAMILY_R423; - caps->num_vert_fpus = 6; - caps->is_r400 = TRUE; - caps->hiz_ram = R300_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x554C: - case 0x554D: - case 0x554E: - case 0x554F: - case 0x5D48: - case 0x5D49: - case 0x5D4A: - caps->family = CHIP_FAMILY_R430; - caps->num_vert_fpus = 6; - caps->is_r400 = TRUE; - caps->hiz_ram = R300_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x5D4C: - case 0x5D4D: - case 0x5D4E: - case 0x5D4F: - case 0x5D50: - case 0x5D52: - caps->family = CHIP_FAMILY_R480; - caps->num_vert_fpus = 6; - caps->is_r400 = TRUE; - caps->hiz_ram = R300_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x4B48: - case 0x4B49: - case 0x4B4A: - case 0x4B4B: - case 0x4B4C: - caps->family = CHIP_FAMILY_R481; - caps->num_vert_fpus = 6; - caps->is_r400 = TRUE; - caps->hiz_ram = R300_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x5E4C: - case 0x5E4F: - case 0x564A: - case 0x564B: - case 0x564F: - case 0x5652: - case 0x5653: - case 0x5657: - case 0x5E48: - case 0x5E4A: - case 0x5E4B: - case 0x5E4D: - caps->family = CHIP_FAMILY_RV410; - caps->num_vert_fpus = 6; - caps->is_r400 = TRUE; - caps->hiz_ram = R300_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x5954: - case 0x5955: - caps->family = CHIP_FAMILY_RS480; - caps->has_tcl = FALSE; - caps->zmask_ram = RV3xx_ZMASK_SIZE; - break; - - case 0x5974: - case 0x5975: - caps->family = CHIP_FAMILY_RS482; - caps->has_tcl = FALSE; - caps->zmask_ram = RV3xx_ZMASK_SIZE; - break; - - case 0x5A41: - case 0x5A42: - caps->family = CHIP_FAMILY_RS400; - caps->has_tcl = FALSE; - break; - - case 0x5A61: - case 0x5A62: - caps->family = CHIP_FAMILY_RC410; - caps->has_tcl = FALSE; - caps->zmask_ram = RV3xx_ZMASK_SIZE; - break; - - case 0x791E: - case 0x791F: - caps->family = CHIP_FAMILY_RS690; - caps->has_tcl = FALSE; - caps->is_r400 = TRUE; - break; - - case 0x793F: - case 0x7941: - case 0x7942: - caps->family = CHIP_FAMILY_RS600; - caps->has_tcl = FALSE; - caps->is_r400 = TRUE; - break; - - case 0x796C: - case 0x796D: - case 0x796E: - case 0x796F: - caps->family = CHIP_FAMILY_RS740; - caps->has_tcl = FALSE; - caps->is_r400 = TRUE; - break; - - case 0x7100: - case 0x7101: - case 0x7102: - case 0x7103: - case 0x7104: - case 0x7105: - case 0x7106: - case 0x7108: - case 0x7109: - case 0x710A: - case 0x710B: - case 0x710C: - case 0x710E: - case 0x710F: - caps->family = CHIP_FAMILY_R520; - caps->num_vert_fpus = 8; - caps->is_r500 = TRUE; - caps->hiz_ram = R300_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x7140: - case 0x7141: - case 0x7142: - case 0x7143: - case 0x7144: - case 0x7145: - case 0x7146: - case 0x7147: - case 0x7149: - case 0x714A: - case 0x714B: - case 0x714C: - case 0x714D: - case 0x714E: - case 0x714F: - case 0x7151: - case 0x7152: - case 0x7153: - case 0x715E: - case 0x715F: - case 0x7180: - case 0x7181: - case 0x7183: - case 0x7186: - case 0x7187: - case 0x7188: - case 0x718A: - case 0x718B: - case 0x718C: - case 0x718D: - case 0x718F: - case 0x7193: - case 0x7196: - case 0x719B: - case 0x719F: - case 0x7200: - case 0x7210: - case 0x7211: - caps->family = CHIP_FAMILY_RV515; - caps->num_vert_fpus = 2; - caps->is_r500 = TRUE; - caps->hiz_ram = R300_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x71C0: - case 0x71C1: - case 0x71C2: - case 0x71C3: - case 0x71C4: - case 0x71C5: - case 0x71C6: - case 0x71C7: - case 0x71CD: - case 0x71CE: - case 0x71D2: - case 0x71D4: - case 0x71D5: - case 0x71D6: - case 0x71DA: - case 0x71DE: - caps->family = CHIP_FAMILY_RV530; - caps->num_vert_fpus = 5; - caps->is_r500 = TRUE; - caps->hiz_ram = RV530_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x7240: - case 0x7243: - case 0x7244: - case 0x7245: - case 0x7246: - case 0x7247: - case 0x7248: - case 0x7249: - case 0x724A: - case 0x724B: - case 0x724C: - case 0x724D: - case 0x724E: - case 0x724F: - case 0x7284: - caps->family = CHIP_FAMILY_R580; - caps->num_vert_fpus = 8; - caps->is_r500 = TRUE; - caps->hiz_ram = RV530_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x7280: - caps->family = CHIP_FAMILY_RV570; - caps->num_vert_fpus = 8; - caps->is_r500 = TRUE; - caps->hiz_ram = RV530_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - case 0x7281: - case 0x7283: - case 0x7287: - case 0x7288: - case 0x7289: - case 0x728B: - case 0x728C: - case 0x7290: - case 0x7291: - case 0x7293: - case 0x7297: - caps->family = CHIP_FAMILY_RV560; - caps->num_vert_fpus = 8; - caps->is_r500 = TRUE; - caps->hiz_ram = RV530_HIZ_LIMIT; - caps->zmask_ram = PIPE_ZMASK_SIZE; - break; - - default: - fprintf(stderr, "r300: Warning: Unknown chipset 0x%x\n", - caps->pci_id); + default: + fprintf(stderr, "r300: Warning: Unknown chipset 0x%x\nAborting...", + caps->pci_id); + abort(); } + /* Defaults. */ + caps->high_second_pipe = FALSE; + caps->num_vert_fpus = 0; + caps->hiz_ram = 0; + caps->zmask_ram = 0; + + + switch (caps->family) { + case CHIP_FAMILY_R300: + case CHIP_FAMILY_R350: + caps->high_second_pipe = TRUE; + caps->num_vert_fpus = 4; + caps->hiz_ram = R300_HIZ_LIMIT; + caps->zmask_ram = PIPE_ZMASK_SIZE; + break; + + case CHIP_FAMILY_RV350: + case CHIP_FAMILY_RV370: + caps->high_second_pipe = TRUE; + caps->num_vert_fpus = 2; + caps->zmask_ram = RV3xx_ZMASK_SIZE; + break; + + case CHIP_FAMILY_RV380: + caps->high_second_pipe = TRUE; + caps->num_vert_fpus = 2; + caps->hiz_ram = R300_HIZ_LIMIT; + caps->zmask_ram = RV3xx_ZMASK_SIZE; + break; + + case CHIP_FAMILY_RS400: + case CHIP_FAMILY_RS600: + case CHIP_FAMILY_RS690: + case CHIP_FAMILY_RS740: + break; + + case CHIP_FAMILY_RC410: + case CHIP_FAMILY_RS480: + caps->zmask_ram = RV3xx_ZMASK_SIZE; + break; + + case CHIP_FAMILY_R420: + case CHIP_FAMILY_R423: + case CHIP_FAMILY_R430: + case CHIP_FAMILY_R480: + case CHIP_FAMILY_R481: + case CHIP_FAMILY_RV410: + caps->num_vert_fpus = 6; + caps->hiz_ram = R300_HIZ_LIMIT; + caps->zmask_ram = PIPE_ZMASK_SIZE; + break; + + case CHIP_FAMILY_R520: + caps->num_vert_fpus = 8; + caps->hiz_ram = R300_HIZ_LIMIT; + caps->zmask_ram = PIPE_ZMASK_SIZE; + break; + + case CHIP_FAMILY_RV515: + caps->num_vert_fpus = 2; + caps->hiz_ram = R300_HIZ_LIMIT; + caps->zmask_ram = PIPE_ZMASK_SIZE; + break; + + case CHIP_FAMILY_RV530: + caps->num_vert_fpus = 5; + caps->hiz_ram = RV530_HIZ_LIMIT; + caps->zmask_ram = PIPE_ZMASK_SIZE; + break; + + case CHIP_FAMILY_R580: + case CHIP_FAMILY_RV560: + case CHIP_FAMILY_RV570: + caps->num_vert_fpus = 8; + caps->hiz_ram = RV530_HIZ_LIMIT; + caps->zmask_ram = PIPE_ZMASK_SIZE; + break; + } + + caps->num_tex_units = 16; + caps->is_r400 = caps->family >= CHIP_FAMILY_R420 && caps->family < CHIP_FAMILY_RV515; + caps->is_r500 = caps->family >= CHIP_FAMILY_RV515; caps->is_rv350 = caps->family >= CHIP_FAMILY_RV350; caps->z_compress = caps->is_rv350 ? R300_ZCOMP_8X8 : R300_ZCOMP_4X4; caps->dxtc_swizzle = caps->is_r400 || caps->is_r500; caps->has_us_format = caps->family == CHIP_FAMILY_R520; + caps->has_tcl = caps->num_vert_fpus > 0; + + if (caps->has_tcl) { + caps->has_tcl = debug_get_bool_option("RADEON_NO_TCL", FALSE) ? FALSE : TRUE; + } } diff --git a/src/gallium/drivers/r300/r300_chipset.h b/src/gallium/drivers/r300/r300_chipset.h index d0050bed2e8..4df6b5b6292 100644 --- a/src/gallium/drivers/r300/r300_chipset.h +++ b/src/gallium/drivers/r300/r300_chipset.h @@ -96,26 +96,24 @@ struct r300_capabilities { /* Enumerations for legibility and telling which card we're running on. */ enum { - CHIP_FAMILY_R300 = 0, + CHIP_FAMILY_R300 = 0, /* R3xx-based cores. */ CHIP_FAMILY_R350, - CHIP_FAMILY_R360, CHIP_FAMILY_RV350, CHIP_FAMILY_RV370, CHIP_FAMILY_RV380, - CHIP_FAMILY_R420, + CHIP_FAMILY_RS400, + CHIP_FAMILY_RC410, + CHIP_FAMILY_RS480, + CHIP_FAMILY_R420, /* R4xx-based cores. */ CHIP_FAMILY_R423, CHIP_FAMILY_R430, CHIP_FAMILY_R480, CHIP_FAMILY_R481, CHIP_FAMILY_RV410, - CHIP_FAMILY_RS400, - CHIP_FAMILY_RC410, - CHIP_FAMILY_RS480, - CHIP_FAMILY_RS482, CHIP_FAMILY_RS600, CHIP_FAMILY_RS690, CHIP_FAMILY_RS740, - CHIP_FAMILY_RV515, + CHIP_FAMILY_RV515, /* R5xx-based cores. */ CHIP_FAMILY_R520, CHIP_FAMILY_RV530, CHIP_FAMILY_R580, diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index 7a1366a4f8f..fae03acb6d1 100644 --- a/src/gallium/drivers/r300/r300_screen.c +++ b/src/gallium/drivers/r300/r300_screen.c @@ -48,20 +48,18 @@ static const char* r300_get_vendor(struct pipe_screen* pscreen) static const char* chip_families[] = { "ATI R300", "ATI R350", - "ATI R360", "ATI RV350", "ATI RV370", "ATI RV380", + "ATI RS400", + "ATI RC410", + "ATI RS480", "ATI R420", "ATI R423", "ATI R430", "ATI R480", "ATI R481", "ATI RV410", - "ATI RS400", - "ATI RC410", - "ATI RS480", - "ATI RS482", "ATI RS600", "ATI RS690", "ATI RS740", From 7c1d4781920e34ad5419b4c5cf9d54ae14938844 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Tue, 7 Jun 2011 16:44:40 -0400 Subject: [PATCH 070/145] r600g: always clear query memory According to the hw documentation, the driver needs to: - allocate 128 bits for each possible DB - clear the 128 bits for each possible DB - write 1 to bits 127 and 63 for upper DBs that don't exist on a particular asic Previously we were only doing these steps if the asic had less than the max possible DBs. Signed-off-by: Alex Deucher --- src/gallium/winsys/r600/drm/r600_hw_context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index cb244f2b9ee..2159d410f7e 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -1667,7 +1667,7 @@ void r600_query_begin(struct r600_context *ctx, struct r600_query *query) } if (query->type == PIPE_QUERY_OCCLUSION_COUNTER && - num_backends > 0 && num_backends < ctx->max_db) { + num_backends > 0) { /* as per info on ZPASS the driver must set the unusued DB top bits */ u32 *results; int i; @@ -1675,7 +1675,7 @@ void r600_query_begin(struct r600_context *ctx, struct r600_query *query) results = r600_bo_map(ctx->radeon, query->buffer, PB_USAGE_DONTBLOCK | PB_USAGE_CPU_WRITE, NULL); if (results) { memset(results + (query->num_results * 4), 0, ctx->max_db * 4 * 4); - + for (i = num_backends; i < ctx->max_db; i++) { results[(i * 4)+1] = 0x80000000; results[(i * 4)+3] = 0x80000000; @@ -1683,7 +1683,7 @@ void r600_query_begin(struct r600_context *ctx, struct r600_query *query) r600_bo_unmap(ctx->radeon, query->buffer); } } - + /* emit begin query */ if (query->type == PIPE_QUERY_TIME_ELAPSED) { ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_EVENT_WRITE_EOP, 4, 0); From 5d4c4798223c3463dbf67c47b9563f82c9057e7f Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Tue, 7 Jun 2011 16:59:04 -0400 Subject: [PATCH 071/145] r600g: remove pre-r6xx asic families and pci ids Not sure why these were included originally. Signed-off-by: Alex Deucher --- src/gallium/drivers/r600/r600.h | 32 ---------------------- src/gallium/winsys/r600/drm/radeon_pciid.c | 3 -- 2 files changed, 35 deletions(-) diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h index 3d6f9c23ece..84232b10037 100644 --- a/src/gallium/drivers/r600/r600.h +++ b/src/gallium/drivers/r600/r600.h @@ -47,38 +47,6 @@ struct winsys_handle; enum radeon_family { CHIP_UNKNOWN, - CHIP_R100, - CHIP_RV100, - CHIP_RS100, - CHIP_RV200, - CHIP_RS200, - CHIP_R200, - CHIP_RV250, - CHIP_RS300, - CHIP_RV280, - CHIP_R300, - CHIP_R350, - CHIP_RV350, - CHIP_RV370, - CHIP_RV380, - CHIP_R420, - CHIP_R423, - CHIP_R430, - CHIP_R480, - CHIP_R481, - CHIP_RV410, - CHIP_RS400, - CHIP_RC410, - CHIP_RS480, - CHIP_RS600, - CHIP_RS690, - CHIP_RS740, - CHIP_RV515, - CHIP_R520, - CHIP_RV530, - CHIP_RV560, - CHIP_RV570, - CHIP_R580, CHIP_R600, CHIP_RV610, CHIP_RV630, diff --git a/src/gallium/winsys/r600/drm/radeon_pciid.c b/src/gallium/winsys/r600/drm/radeon_pciid.c index ff6821fcb52..f54a7c8fe72 100644 --- a/src/gallium/winsys/r600/drm/radeon_pciid.c +++ b/src/gallium/winsys/r600/drm/radeon_pciid.c @@ -34,9 +34,6 @@ struct pci_id { static const struct pci_id radeon_pci_id[] = { #define CHIPSET(chip, name, family) { 0x1002, chip, CHIP_##family }, -#include "pci_ids/radeon_pci_ids.h" -#include "pci_ids/r200_pci_ids.h" -#include "pci_ids/r300_pci_ids.h" #include "pci_ids/r600_pci_ids.h" {0, 0}, }; From bdf2e112856659816d000699fce606adc4ee9926 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Tue, 7 Jun 2011 17:40:37 -0400 Subject: [PATCH 072/145] r600g : fix incorrect size computation in r600_query_result query->num_results already has the size in dwords of the query buffer. There no need to multiply again. We were reading past the end of the buffer, resulting in reading garbage. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=37028 agd5f: clarify the comment. Signed-off-by: Alex Deucher --- src/gallium/winsys/r600/drm/r600_hw_context.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 2159d410f7e..6b62d163860 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -1629,7 +1629,8 @@ static boolean r600_query_result(struct r600_context *ctx, struct r600_query *qu if (!results) return FALSE; - size = query->num_results * (query->type == PIPE_QUERY_OCCLUSION_COUNTER ? ctx->max_db : 1); + /* query->num_results contains how many dwords were used for the query */ + size = query->num_results; for (i = 0; i < size; i += 4) { start = (u64)results[i] | (u64)results[i + 1] << 32; end = (u64)results[i + 2] | (u64)results[i + 3] << 32; From ec2b08de774a6aaeb9db201b4f363ff712b83f18 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 7 Jun 2011 21:59:02 +0200 Subject: [PATCH 073/145] egl_dri2: Use libudev only if available Broken since 7f881c43dfb4f1aeeab3a84125b5c106c191a43f. --- src/egl/drivers/dri2/common.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/egl/drivers/dri2/common.c b/src/egl/drivers/dri2/common.c index 1860a3f738e..38f5b257400 100644 --- a/src/egl/drivers/dri2/common.c +++ b/src/egl/drivers/dri2/common.c @@ -1,16 +1,19 @@ #include #include -#include - #include #include #include #include "egl_dri2.h" + +#ifdef HAVE_LIBUDEV + #define DRIVER_MAP_DRI2_ONLY #include "pci_ids/pci_id_driver_map.h" +#include + static struct udev_device * dri2_udev_device_new_from_fd(struct udev *udev, int fd) { @@ -109,3 +112,5 @@ out: return driver; } + +#endif /* HAVE_LIBUDEV */ From 3b11d67ef6f97e4ee3ff85750f038ab4f5618573 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 7 Jun 2011 22:15:32 +0200 Subject: [PATCH 074/145] egl_dri2: Add missing license --- src/egl/drivers/dri2/common.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/egl/drivers/dri2/common.c b/src/egl/drivers/dri2/common.c index 38f5b257400..a88948493e4 100644 --- a/src/egl/drivers/dri2/common.c +++ b/src/egl/drivers/dri2/common.c @@ -1,3 +1,31 @@ +/* + * Copyright © 2011 Intel Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + * Authors: + * Kristian Høgsberg + * Benjamin Franzke + */ + #include #include From ac3c2c8ece9bf4778239e2f81903a685248ab791 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 7 Jun 2011 22:19:21 +0200 Subject: [PATCH 075/145] egl_dri2: Add missing header --- src/egl/drivers/dri2/platform_drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c index bea93aea6ba..27846de39d2 100644 --- a/src/egl/drivers/dri2/platform_drm.c +++ b/src/egl/drivers/dri2/platform_drm.c @@ -29,6 +29,7 @@ #include #include #include +#include #include "egl_dri2.h" From 1d71bbed3bbeb99d954cc137e4923c5db6e063c8 Mon Sep 17 00:00:00 2001 From: Nicolas Kaiser Date: Tue, 7 Jun 2011 23:56:03 +0200 Subject: [PATCH 076/145] mga: enable GL_ARB_vertex_array_object extension Tested on a Matrox G550 AGP. Signed-off-by: Nicolas Kaiser Signed-off-by: Brian Paul --- src/mesa/drivers/dri/mga/mga_xmesa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/mga/mga_xmesa.c b/src/mesa/drivers/dri/mga/mga_xmesa.c index eb7df9785c1..6ec99dbc3ba 100644 --- a/src/mesa/drivers/dri/mga/mga_xmesa.c +++ b/src/mesa/drivers/dri/mga/mga_xmesa.c @@ -66,6 +66,7 @@ #include "GL/internal/dri_interface.h" +#define need_GL_ARB_vertex_array_object #define need_GL_ARB_vertex_program #define need_GL_EXT_fog_coord #define need_GL_EXT_gpu_program_parameters @@ -382,6 +383,7 @@ static const struct dri_extension g400_extensions[] = static const struct dri_extension card_extensions[] = { { "GL_ARB_texture_rectangle", NULL }, + { "GL_ARB_vertex_array_object", GL_ARB_vertex_array_object_functions }, { "GL_EXT_blend_logic_op", NULL }, { "GL_EXT_fog_coord", GL_EXT_fog_coord_functions }, /* paletted_textures currently doesn't work, but we could fix them later */ From 7f9c17aaa82f5a8a1d5f077eba4d5889d3c3b298 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 7 Jun 2011 12:27:04 -0700 Subject: [PATCH 077/145] mesa: Don't try to clear a NULL renderbuffer In an ES2 context (or if GL_ARB_ES2_compatibility) is supported, the framebuffer can be complete with some attachments be missing. In this case the _ColorDrawBuffers pointer will be NULL. Fixes the crash in piglit test fbo-missing-attachment-clear. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37739 Reviewed-by: Brian Paul Reviewed-by: Eric Anholt NOTE: This is a candidate for the stable branches. --- src/mesa/swrast/s_clear.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/mesa/swrast/s_clear.c b/src/mesa/swrast/s_clear.c index 75805f9605d..9e9b5311684 100644 --- a/src/mesa/swrast/s_clear.c +++ b/src/mesa/swrast/s_clear.c @@ -165,6 +165,14 @@ clear_color_buffers(struct gl_context *ctx) for (buf = 0; buf < ctx->DrawBuffer->_NumColorDrawBuffers; buf++) { struct gl_renderbuffer *rb = ctx->DrawBuffer->_ColorDrawBuffers[buf]; + + /* If this is an ES2 context or GL_ARB_ES2_compatibility is supported, + * the framebuffer can be complete with some attachments be missing. In + * this case the _ColorDrawBuffers pointer will be NULL. + */ + if (rb == NULL) + continue; + if (ctx->Color.ColorMask[buf][0] == 0 || ctx->Color.ColorMask[buf][1] == 0 || ctx->Color.ColorMask[buf][2] == 0 || From bb4758669c82f8979a56524db1c04ce662c783d8 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 7 Jun 2011 12:38:39 -0700 Subject: [PATCH 078/145] mesa: Ignore blits to/from missing buffers The EXT_framebuffer_object spec (and later specs) say: "If a buffer is specified in and does not exist in both the read and draw framebuffers, the corresponding bit is silently ignored." Check for color, depth, and stencil that the source and destination FBOs have the specified buffers. If the buffer is missing, remove the bit from the blit request mask and continue. Fixes the crash in piglit test 'fbo-missing-attachment-blit from', and fixes 'fbo-missing-attachment-blit es2 from'. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37739 Reviewed-by: Brian Paul Reviewed-by: Eric Anholt NOTE: This is a candidate for the stable branches. --- src/mesa/main/fbobject.c | 45 +++++++++++++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index d4400709aef..2230b262336 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -2429,6 +2429,17 @@ _mesa_BlitFramebufferEXT(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, if (mask & GL_COLOR_BUFFER_BIT) { colorReadRb = readFb->_ColorReadBuffer; colorDrawRb = drawFb->_ColorDrawBuffers[0]; + + /* From the EXT_framebuffer_object spec: + * + * "If a buffer is specified in and does not exist in both + * the read and draw framebuffers, the corresponding bit is silently + * ignored." + */ + if ((colorReadRb == NULL) || (colorDrawRb == NULL)) { + colorReadRb = colorDrawRb = NULL; + mask &= ~GL_COLOR_BUFFER_BIT; + } } else { colorReadRb = colorDrawRb = NULL; @@ -2437,10 +2448,19 @@ _mesa_BlitFramebufferEXT(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, if (mask & GL_STENCIL_BUFFER_BIT) { struct gl_renderbuffer *readRb = readFb->_StencilBuffer; struct gl_renderbuffer *drawRb = drawFb->_StencilBuffer; - if (!readRb || - !drawRb || - _mesa_get_format_bits(readRb->Format, GL_STENCIL_BITS) != - _mesa_get_format_bits(drawRb->Format, GL_STENCIL_BITS)) { + + /* From the EXT_framebuffer_object spec: + * + * "If a buffer is specified in and does not exist in both + * the read and draw framebuffers, the corresponding bit is silently + * ignored." + */ + if ((readRb == NULL) || (drawRb == NULL)) { + readRb = drawRb = NULL; + mask &= ~GL_STENCIL_BUFFER_BIT; + } + else if (_mesa_get_format_bits(readRb->Format, GL_STENCIL_BITS) != + _mesa_get_format_bits(drawRb->Format, GL_STENCIL_BITS)) { _mesa_error(ctx, GL_INVALID_OPERATION, "glBlitFramebufferEXT(stencil buffer size mismatch)"); return; @@ -2450,10 +2470,19 @@ _mesa_BlitFramebufferEXT(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, if (mask & GL_DEPTH_BUFFER_BIT) { struct gl_renderbuffer *readRb = readFb->_DepthBuffer; struct gl_renderbuffer *drawRb = drawFb->_DepthBuffer; - if (!readRb || - !drawRb || - _mesa_get_format_bits(readRb->Format, GL_DEPTH_BITS) != - _mesa_get_format_bits(drawRb->Format, GL_DEPTH_BITS)) { + + /* From the EXT_framebuffer_object spec: + * + * "If a buffer is specified in and does not exist in both + * the read and draw framebuffers, the corresponding bit is silently + * ignored." + */ + if ((readRb == NULL) || (drawRb == NULL)) { + readRb = drawRb = NULL; + mask &= ~GL_DEPTH_BUFFER_BIT; + } + else if (_mesa_get_format_bits(readRb->Format, GL_DEPTH_BITS) != + _mesa_get_format_bits(drawRb->Format, GL_DEPTH_BITS)) { _mesa_error(ctx, GL_INVALID_OPERATION, "glBlitFramebufferEXT(depth buffer size mismatch)"); return; From e21601e46efa3c17933f5abf079396ee3bdb4c45 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 7 Jun 2011 10:38:46 +1000 Subject: [PATCH 079/145] r600g: use memcmp instead of a loop in state_set_resource Signed-off-by: Dave Airlie --- src/gallium/winsys/r600/drm/r600_hw_context.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 6b62d163860..cd52eadbf5c 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -1070,11 +1070,9 @@ void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_ is_vertex = ((state->val[num_regs-1] & 0xc0000000) == 0xc0000000); dirty = block->status & R600_BLOCK_STATUS_DIRTY; - for (i = 0; i < num_regs; i++) { - if (dirty || (block->reg[i] != state->val[i])) { - dirty |= R600_BLOCK_STATUS_DIRTY; - block->reg[i] = state->val[i]; - } + if (memcmp(block->reg, state->val, num_regs*4)) { + memcpy(block->reg, state->val, num_regs * 4); + dirty |= R600_BLOCK_STATUS_DIRTY; } /* if no BOs on block, force dirty */ From ff298a66d7dffd0e91997a6af4cb3ffb3962f350 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 7 Jun 2011 10:49:50 +1000 Subject: [PATCH 080/145] r600g: no need to drop the references here. We drop them when we reference the new objects in the next line. Signed-off-by: Dave Airlie --- src/gallium/winsys/r600/drm/r600_hw_context.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index cd52eadbf5c..8d387c4e8f2 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -1098,8 +1098,6 @@ void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_ state->bo[1]->fence = ctx->radeon->fence; } } else { - r600_bo_reference(ctx->radeon, &block->reloc[1].bo, NULL); - r600_bo_reference(ctx->radeon, &block->reloc[2].bo, NULL); if (is_vertex) { /* VERTEX RESOURCE, we preted there is 2 bo to relocate so * we have single case btw VERTEX & TEXTURE resource From 4707ae20ad6cd99bbcaa33747fc7b043c85bb084 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 7 Jun 2011 11:03:59 +1000 Subject: [PATCH 081/145] r600g: inline r600_bo_reference. This relies on the reference member being first, so document it. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600.h | 15 +++++++++++++-- src/gallium/winsys/r600/drm/r600_bo.c | 10 ---------- src/gallium/winsys/r600/drm/r600_priv.h | 3 ++- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h index 84232b10037..0d37376594b 100644 --- a/src/gallium/drivers/r600/r600.h +++ b/src/gallium/drivers/r600/r600.h @@ -30,6 +30,7 @@ #include #include #include +#include #include #define RADEON_CTX_MAX_PM4 (64 * 1024 / 4) @@ -103,14 +104,24 @@ struct r600_bo *r600_bo_handle(struct radeon *radeon, unsigned handle, unsigned *array_mode); void *r600_bo_map(struct radeon *radeon, struct r600_bo *bo, unsigned usage, void *ctx); void r600_bo_unmap(struct radeon *radeon, struct r600_bo *bo); -void r600_bo_reference(struct radeon *radeon, struct r600_bo **dst, - struct r600_bo *src); boolean r600_bo_get_winsys_handle(struct radeon *radeon, struct r600_bo *pb_bo, unsigned stride, struct winsys_handle *whandle); static INLINE unsigned r600_bo_offset(struct r600_bo *bo) { return 0; } +void r600_bo_destroy(struct radeon *radeon, struct r600_bo *bo); + +/* this relies on the pipe_reference being the first member of r600_bo */ +static INLINE void r600_bo_reference(struct radeon *radeon, struct r600_bo **dst, struct r600_bo *src) +{ + struct r600_bo *old = *dst; + + if (pipe_reference((struct pipe_reference *)(*dst), (struct pipe_reference *)src)) { + r600_bo_destroy(radeon, old); + } + *dst = src; +} /* R600/R700 STATES */ diff --git a/src/gallium/winsys/r600/drm/r600_bo.c b/src/gallium/winsys/r600/drm/r600_bo.c index 2bfb8e4e193..8bb216dc7a8 100644 --- a/src/gallium/winsys/r600/drm/r600_bo.c +++ b/src/gallium/winsys/r600/drm/r600_bo.c @@ -180,16 +180,6 @@ void r600_bo_destroy(struct radeon *radeon, struct r600_bo *bo) free(bo); } -void r600_bo_reference(struct radeon *radeon, struct r600_bo **dst, struct r600_bo *src) -{ - struct r600_bo *old = *dst; - - if (pipe_reference(&(*dst)->reference, &src->reference)) { - r600_bo_destroy(radeon, old); - } - *dst = src; -} - boolean r600_bo_get_winsys_handle(struct radeon *radeon, struct r600_bo *bo, unsigned stride, struct winsys_handle *whandle) { diff --git a/src/gallium/winsys/r600/drm/r600_priv.h b/src/gallium/winsys/r600/drm/r600_priv.h index d9cb52409cd..da31a42b2a0 100644 --- a/src/gallium/winsys/r600/drm/r600_priv.h +++ b/src/gallium/winsys/r600/drm/r600_priv.h @@ -95,7 +95,8 @@ struct radeon_bo { }; struct r600_bo { - struct pipe_reference reference; + struct pipe_reference reference; /* this must be the first member for the r600_bo_reference inline to work */ + /* DO NOT MOVE THIS ^ */ unsigned size; unsigned tiling_flags; unsigned kernel_pitch; From 138f660b5890f4ceba649df00239111947735842 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 7 Jun 2011 11:30:47 +1000 Subject: [PATCH 082/145] r600g: reorder evergreen draw packets to be smaller. We were always re-emitting lots of unnecessary changes here, avoid doing that. Signed-off-by: Dave Airlie --- src/gallium/winsys/r600/drm/evergreen_hw_context.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/gallium/winsys/r600/drm/evergreen_hw_context.c b/src/gallium/winsys/r600/drm/evergreen_hw_context.c index 3cf41c1f9f9..a95182773a7 100644 --- a/src/gallium/winsys/r600/drm/evergreen_hw_context.c +++ b/src/gallium/winsys/r600/drm/evergreen_hw_context.c @@ -125,6 +125,8 @@ static const struct r600_reg evergreen_context_reg_list[] = { {R_028244_PA_SC_GENERIC_SCISSOR_BR, 0, 0, 0}, {R_028250_PA_SC_VPORT_SCISSOR_0_TL, 0, 0, 0}, {R_028254_PA_SC_VPORT_SCISSOR_0_BR, 0, 0, 0}, + {R_0282D0_PA_SC_VPORT_ZMIN_0, 0, 0, 0}, + {R_0282D4_PA_SC_VPORT_ZMAX_0, 0, 0, 0}, {R_028350_SX_MISC, 0, 0, 0}, {R_028380_SQ_VTX_SEMANTIC_0, 0, 0, 0}, {R_028384_SQ_VTX_SEMANTIC_1, 0, 0, 0}, @@ -158,12 +160,12 @@ static const struct r600_reg evergreen_context_reg_list[] = { {R_0283F4_SQ_VTX_SEMANTIC_29, 0, 0, 0}, {R_0283F8_SQ_VTX_SEMANTIC_30, 0, 0, 0}, {R_0283FC_SQ_VTX_SEMANTIC_31, 0, 0, 0}, - {R_0282D0_PA_SC_VPORT_ZMIN_0, 0, 0, 0}, - {R_0282D4_PA_SC_VPORT_ZMAX_0, 0, 0, 0}, + {GROUP_FORCE_NEW_BLOCK, 0, 0, 0}, {R_028400_VGT_MAX_VTX_INDX, 0, 0, 0}, {R_028404_VGT_MIN_VTX_INDX, 0, 0, 0}, {R_028408_VGT_INDX_OFFSET, 0, 0, 0}, {R_02840C_VGT_MULTI_PRIM_IB_RESET_INDX, 0, 0, 0}, + {GROUP_FORCE_NEW_BLOCK, 0, 0, 0}, {R_028410_SX_ALPHA_TEST_CONTROL, 0, 0, 0}, {R_028414_CB_BLEND_RED, 0, 0, 0}, {R_028418_CB_BLEND_GREEN, 0, 0, 0}, @@ -487,6 +489,8 @@ static const struct r600_reg cayman_context_reg_list[] = { {R_028244_PA_SC_GENERIC_SCISSOR_BR, 0, 0, 0}, {R_028250_PA_SC_VPORT_SCISSOR_0_TL, 0, 0, 0}, {R_028254_PA_SC_VPORT_SCISSOR_0_BR, 0, 0, 0}, + {R_0282D0_PA_SC_VPORT_ZMIN_0, 0, 0, 0}, + {R_0282D4_PA_SC_VPORT_ZMAX_0, 0, 0, 0}, {R_028350_SX_MISC, 0, 0, 0}, {R_028380_SQ_VTX_SEMANTIC_0, 0, 0, 0}, {R_028384_SQ_VTX_SEMANTIC_1, 0, 0, 0}, @@ -520,12 +524,12 @@ static const struct r600_reg cayman_context_reg_list[] = { {R_0283F4_SQ_VTX_SEMANTIC_29, 0, 0, 0}, {R_0283F8_SQ_VTX_SEMANTIC_30, 0, 0, 0}, {R_0283FC_SQ_VTX_SEMANTIC_31, 0, 0, 0}, - {R_0282D0_PA_SC_VPORT_ZMIN_0, 0, 0, 0}, - {R_0282D4_PA_SC_VPORT_ZMAX_0, 0, 0, 0}, + {GROUP_FORCE_NEW_BLOCK, 0, 0, 0}, {R_028400_VGT_MAX_VTX_INDX, 0, 0, 0}, {R_028404_VGT_MIN_VTX_INDX, 0, 0, 0}, {R_028408_VGT_INDX_OFFSET, 0, 0, 0}, {R_02840C_VGT_MULTI_PRIM_IB_RESET_INDX, 0, 0, 0}, + {GROUP_FORCE_NEW_BLOCK, 0, 0, 0}, {R_028410_SX_ALPHA_TEST_CONTROL, 0, 0, 0}, {R_028414_CB_BLEND_RED, 0, 0, 0}, {R_028418_CB_BLEND_GREEN, 0, 0, 0}, From ff8717527dd8b0313905c67712428fa5d4647d9b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 7 Jun 2011 12:33:24 +1000 Subject: [PATCH 083/145] r600g: exit bo per reg scanning loop early. Exit this loop early to avoid pointless iterations later. Move the resource bos to the first two regs, it actually doesn't matter which regs we use for this in resource land. Signed-off-by: Dave Airlie --- src/gallium/winsys/r600/drm/evergreen_hw_context.c | 8 ++++---- src/gallium/winsys/r600/drm/r600_hw_context.c | 14 +++++++++----- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/gallium/winsys/r600/drm/evergreen_hw_context.c b/src/gallium/winsys/r600/drm/evergreen_hw_context.c index a95182773a7..11514156cd0 100644 --- a/src/gallium/winsys/r600/drm/evergreen_hw_context.c +++ b/src/gallium/winsys/r600/drm/evergreen_hw_context.c @@ -824,10 +824,10 @@ static const struct r600_reg cayman_context_reg_list[] = { static int r600_resource_range_init(struct r600_context *ctx, struct r600_range *range, unsigned offset, unsigned nblocks, unsigned stride) { struct r600_reg r600_shader_resource[] = { - {R_030000_RESOURCE0_WORD0, 0, 0, 0}, - {R_030004_RESOURCE0_WORD1, 0, 0, 0}, - {R_030008_RESOURCE0_WORD2, REG_FLAG_NEED_BO, S_0085F0_TC_ACTION_ENA(1) | S_0085F0_VC_ACTION_ENA(1), 0xFFFFFFFF}, - {R_03000C_RESOURCE0_WORD3, REG_FLAG_NEED_BO, S_0085F0_TC_ACTION_ENA(1) | S_0085F0_VC_ACTION_ENA(1), 0xFFFFFFFF}, + {R_030000_RESOURCE0_WORD0, REG_FLAG_NEED_BO, S_0085F0_TC_ACTION_ENA(1) | S_0085F0_VC_ACTION_ENA(1), 0xFFFFFFFF}, + {R_030004_RESOURCE0_WORD1, REG_FLAG_NEED_BO, S_0085F0_TC_ACTION_ENA(1) | S_0085F0_VC_ACTION_ENA(1), 0xFFFFFFFF}, + {R_030008_RESOURCE0_WORD2, 0, 0, 0}, + {R_03000C_RESOURCE0_WORD3, 0, 0, 0}, {R_030010_RESOURCE0_WORD4, 0, 0, 0}, {R_030014_RESOURCE0_WORD5, 0, 0, 0}, {R_030018_RESOURCE0_WORD6, 0, 0, 0}, diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 8d387c4e8f2..7db5a03bce4 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -595,10 +595,10 @@ int r600_resource_init(struct r600_context *ctx, struct r600_range *range, unsig static int r600_resource_range_init(struct r600_context *ctx, struct r600_range *range, unsigned offset, unsigned nblocks, unsigned stride) { struct r600_reg r600_shader_resource[] = { - {R_038000_RESOURCE0_WORD0, 0, 0, 0}, - {R_038004_RESOURCE0_WORD1, 0, 0, 0}, - {R_038008_RESOURCE0_WORD2, REG_FLAG_NEED_BO, S_0085F0_TC_ACTION_ENA(1) | S_0085F0_VC_ACTION_ENA(1), 0xFFFFFFFF}, - {R_03800C_RESOURCE0_WORD3, REG_FLAG_NEED_BO, S_0085F0_TC_ACTION_ENA(1) | S_0085F0_VC_ACTION_ENA(1), 0xFFFFFFFF}, + {R_038000_RESOURCE0_WORD0, REG_FLAG_NEED_BO, S_0085F0_TC_ACTION_ENA(1) | S_0085F0_VC_ACTION_ENA(1), 0xFFFFFFFF}, + {R_038004_RESOURCE0_WORD1, REG_FLAG_NEED_BO, S_0085F0_TC_ACTION_ENA(1) | S_0085F0_VC_ACTION_ENA(1), 0xFFFFFFFF}, + {R_038008_RESOURCE0_WORD2, 0, 0, 0}, + {R_03800C_RESOURCE0_WORD3, 0, 0, 0}, {R_038010_RESOURCE0_WORD4, 0, 0, 0}, {R_038014_RESOURCE0_WORD5, 0, 0, 0}, {R_038018_RESOURCE0_WORD6, 0, 0, 0}, @@ -1254,12 +1254,13 @@ void r600_context_block_emit_dirty(struct r600_context *ctx, struct r600_block * int optional = block->nbo == 0 && !(block->flags & REG_FLAG_DIRTY_ALWAYS); int cp_dwords = block->pm4_ndwords, start_dword = 0; int new_dwords = 0; + int nbo = block->nbo; if (block->nreg_dirty == 0 && optional) { goto out; } - if (block->nbo) { + if (nbo) { ctx->flags |= R600_CONTEXT_CHECK_EVENT_FLUSH; for (int j = 0; j < block->nreg; j++) { @@ -1273,6 +1274,9 @@ void r600_context_block_emit_dirty(struct r600_context *ctx, struct r600_block * block->reloc[id].flush_flags, block->reloc[id].flush_mask, block->reloc[id].bo); + nbo--; + if (nbo == 0) + break; } } ctx->flags &= ~R600_CONTEXT_CHECK_EVENT_FLUSH; From ba78a5a679b3f6b00d0f2070bb1ab6d56443ab16 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 7 Jun 2011 13:21:02 +1000 Subject: [PATCH 084/145] r600g: split resource emit path from main register emit path Since resources don't generally vary in size, this splits the emit path, it also takes into a/c that texture and vertex resources have different number of relocs, and avoids emitting the extra reloc for vertex resources. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600.h | 4 + .../winsys/r600/drm/evergreen_hw_context.c | 5 + src/gallium/winsys/r600/drm/r600_hw_context.c | 111 +++++++++++++++--- src/gallium/winsys/r600/drm/r600_priv.h | 3 + 4 files changed, 106 insertions(+), 17 deletions(-) diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600/r600.h index 0d37376594b..bf7138d9e4e 100644 --- a/src/gallium/drivers/r600/r600.h +++ b/src/gallium/drivers/r600/r600.h @@ -162,6 +162,9 @@ struct r600_pipe_resource_state { #define R600_BLOCK_STATUS_ENABLED (1 << 0) #define R600_BLOCK_STATUS_DIRTY (1 << 1) +#define R600_BLOCK_STATUS_RESOURCE_DIRTY (1 << 2) + +#define R600_BLOCK_STATUS_RESOURCE_VERTEX (1 << 3) struct r600_block_reloc { struct r600_bo *bo; @@ -236,6 +239,7 @@ struct r600_context { unsigned nblocks; struct r600_block **blocks; struct list_head dirty; + struct list_head resource_dirty; struct list_head enable_list; unsigned pm4_ndwords; unsigned pm4_cdwords; diff --git a/src/gallium/winsys/r600/drm/evergreen_hw_context.c b/src/gallium/winsys/r600/drm/evergreen_hw_context.c index 11514156cd0..e9f28bd79a9 100644 --- a/src/gallium/winsys/r600/drm/evergreen_hw_context.c +++ b/src/gallium/winsys/r600/drm/evergreen_hw_context.c @@ -910,6 +910,7 @@ int evergreen_context_init(struct r600_context *ctx, struct radeon *radeon) /* init dirty list */ LIST_INITHEAD(&ctx->dirty); + LIST_INITHEAD(&ctx->resource_dirty); LIST_INITHEAD(&ctx->enable_list); ctx->range = calloc(NUM_RANGES, sizeof(struct r600_range)); @@ -1188,6 +1189,10 @@ void evergreen_context_draw(struct r600_context *ctx, const struct r600_draw *dr r600_context_block_emit_dirty(ctx, dirty_block); } + LIST_FOR_EACH_ENTRY_SAFE(dirty_block, next_block, &ctx->resource_dirty,list) { + r600_context_block_resource_emit_dirty(ctx, dirty_block); + } + /* draw packet */ pm4 = &ctx->pm4[ctx->pm4_cdwords]; pm4[0] = PKT3(PKT3_INDEX_TYPE, 0, ctx->predicate_drawing); diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 7db5a03bce4..7386c002659 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -88,7 +88,13 @@ static void r600_init_block(struct r600_context *ctx, int j, n = nreg; /* initialize block */ - block->status |= R600_BLOCK_STATUS_DIRTY; /* dirty all blocks at start */ + if (opcode == PKT3_SET_RESOURCE) { + block->flags = BLOCK_FLAG_RESOURCE; + block->status |= R600_BLOCK_STATUS_RESOURCE_DIRTY; /* dirty all blocks at start */ + } else { + block->flags = 0; + block->status |= R600_BLOCK_STATUS_DIRTY; /* dirty all blocks at start */ + } block->start_offset = reg[i].offset; block->pm4[block->pm4_ndwords++] = PKT3(opcode, n, 0); block->pm4[block->pm4_ndwords++] = (block->start_offset - offset_base) >> 2; @@ -96,7 +102,6 @@ static void r600_init_block(struct r600_context *ctx, block->pm4_ndwords += n; block->nreg = n; block->nreg_dirty = n; - block->flags = 0; LIST_INITHEAD(&block->list); LIST_INITHEAD(&block->enable_list); @@ -777,6 +782,7 @@ int r600_context_init(struct r600_context *ctx, struct radeon *radeon) /* init dirty list */ LIST_INITHEAD(&ctx->dirty); + LIST_INITHEAD(&ctx->resource_dirty); LIST_INITHEAD(&ctx->enable_list); ctx->range = calloc(NUM_RANGES, sizeof(struct r600_range)); @@ -1048,6 +1054,23 @@ void r600_context_pipe_state_set(struct r600_context *ctx, struct r600_pipe_stat } } +static void r600_context_dirty_resource_block(struct r600_context *ctx, + struct r600_block *block, + int dirty, int index) +{ + block->nreg_dirty = index + 1; + + if ((dirty != (block->status & R600_BLOCK_STATUS_RESOURCE_DIRTY)) || !(block->status & R600_BLOCK_STATUS_ENABLED)) { + block->status |= R600_BLOCK_STATUS_RESOURCE_DIRTY; + ctx->pm4_dirty_cdwords += block->pm4_ndwords + block->pm4_flush_ndwords; + if (!(block->status & R600_BLOCK_STATUS_ENABLED)) { + block->status |= R600_BLOCK_STATUS_ENABLED; + LIST_ADDTAIL(&block->enable_list, &ctx->enable_list); + } + LIST_ADDTAIL(&block->list,&ctx->resource_dirty); + } +} + void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, struct r600_block *block) { int i; @@ -1056,38 +1079,37 @@ void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_ boolean is_vertex; if (state == NULL) { - block->status &= ~(R600_BLOCK_STATUS_ENABLED | R600_BLOCK_STATUS_DIRTY); + block->status &= ~(R600_BLOCK_STATUS_ENABLED | R600_BLOCK_STATUS_RESOURCE_DIRTY); if (block->reloc[1].bo) block->reloc[1].bo->bo->binding &= ~BO_BOUND_TEXTURE; r600_bo_reference(ctx->radeon, &block->reloc[1].bo, NULL); - r600_bo_reference(ctx->radeon , &block->reloc[2].bo, NULL); + r600_bo_reference(ctx->radeon, &block->reloc[2].bo, NULL); LIST_DELINIT(&block->list); LIST_DELINIT(&block->enable_list); return; } is_vertex = ((state->val[num_regs-1] & 0xc0000000) == 0xc0000000); - dirty = block->status & R600_BLOCK_STATUS_DIRTY; + dirty = block->status & R600_BLOCK_STATUS_RESOURCE_DIRTY; if (memcmp(block->reg, state->val, num_regs*4)) { memcpy(block->reg, state->val, num_regs * 4); - dirty |= R600_BLOCK_STATUS_DIRTY; + dirty |= R600_BLOCK_STATUS_RESOURCE_DIRTY; } /* if no BOs on block, force dirty */ if (!block->reloc[1].bo || !block->reloc[2].bo) - dirty |= R600_BLOCK_STATUS_DIRTY; + dirty |= R600_BLOCK_STATUS_RESOURCE_DIRTY; if (!dirty) { if (is_vertex) { - if ((block->reloc[1].bo->bo->handle != state->bo[0]->bo->handle) || - (block->reloc[2].bo->bo->handle != state->bo[0]->bo->handle)) - dirty |= R600_BLOCK_STATUS_DIRTY; + if (block->reloc[1].bo->bo->handle != state->bo[0]->bo->handle) + dirty |= R600_BLOCK_STATUS_RESOURCE_DIRTY; } else { if ((block->reloc[1].bo->bo->handle != state->bo[0]->bo->handle) || (block->reloc[2].bo->bo->handle != state->bo[1]->bo->handle)) - dirty |= R600_BLOCK_STATUS_DIRTY; + dirty |= R600_BLOCK_STATUS_RESOURCE_DIRTY; } } if (!dirty) { @@ -1103,7 +1125,7 @@ void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_ * we have single case btw VERTEX & TEXTURE resource */ r600_bo_reference(ctx->radeon, &block->reloc[1].bo, state->bo[0]); - r600_bo_reference(ctx->radeon, &block->reloc[2].bo, state->bo[0]); + r600_bo_reference(ctx->radeon, &block->reloc[2].bo, NULL); state->bo[0]->fence = ctx->radeon->fence; } else { /* TEXTURE RESOURCE */ @@ -1114,8 +1136,14 @@ void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_ state->bo[0]->bo->binding |= BO_BOUND_TEXTURE; } } - if (dirty) - r600_context_dirty_block(ctx, block, dirty, num_regs - 1); + if (dirty) { + if (is_vertex) + block->status |= R600_BLOCK_STATUS_RESOURCE_VERTEX; + else + block->status &= ~R600_BLOCK_STATUS_RESOURCE_VERTEX; + + r600_context_dirty_resource_block(ctx, block, dirty, num_regs - 1); + } } void r600_context_pipe_state_set_ps_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, unsigned rid) @@ -1305,6 +1333,44 @@ out: LIST_DELINIT(&block->list); } +void r600_context_block_resource_emit_dirty(struct r600_context *ctx, struct r600_block *block) +{ + int id; + int cp_dwords = block->pm4_ndwords, start_dword = 0; + int new_dwords = 0; + int nbo = block->nbo; + + ctx->flags |= R600_CONTEXT_CHECK_EVENT_FLUSH; + + if (block->status & R600_BLOCK_STATUS_RESOURCE_VERTEX) { + nbo = 1; + cp_dwords -= 2; /* don't copy the second NOP */ + } + + for (int j = 0; j < nbo; j++) { + if (block->pm4_bo_index[j]) { + /* find relocation */ + id = block->pm4_bo_index[j]; + r600_context_bo_reloc(ctx, + &block->pm4[block->reloc[id].bo_pm4_index], + block->reloc[id].bo); + r600_context_bo_flush(ctx, + block->reloc[id].flush_flags, + block->reloc[id].flush_mask, + block->reloc[id].bo); + } + } + ctx->flags &= ~R600_CONTEXT_CHECK_EVENT_FLUSH; + + memcpy(&ctx->pm4[ctx->pm4_cdwords], block->pm4, cp_dwords * 4); + ctx->pm4_cdwords += cp_dwords; + +out: + block->status ^= R600_BLOCK_STATUS_RESOURCE_DIRTY; + block->nreg_dirty = 0; + LIST_DELINIT(&block->list); +} + void r600_context_flush_dest_caches(struct r600_context *ctx) { struct r600_bo *cb[8]; @@ -1389,6 +1455,10 @@ void r600_context_draw(struct r600_context *ctx, const struct r600_draw *draw) r600_context_block_emit_dirty(ctx, dirty_block); } + LIST_FOR_EACH_ENTRY_SAFE(dirty_block, next_block, &ctx->resource_dirty, list) { + r600_context_block_resource_emit_dirty(ctx, dirty_block); + } + /* draw packet */ pm4 = &ctx->pm4[ctx->pm4_cdwords]; @@ -1500,12 +1570,19 @@ void r600_context_flush(struct r600_context *ctx) * next draw command */ LIST_FOR_EACH_ENTRY(enable_block, &ctx->enable_list, enable_list) { - if(!(enable_block->status & R600_BLOCK_STATUS_DIRTY)) { - LIST_ADDTAIL(&enable_block->list,&ctx->dirty); + if (!(enable_block->flags & BLOCK_FLAG_RESOURCE)) { + if(!(enable_block->status & R600_BLOCK_STATUS_DIRTY)) { + LIST_ADDTAIL(&enable_block->list,&ctx->dirty); + enable_block->status |= R600_BLOCK_STATUS_DIRTY; + } + } else { + if(!(enable_block->status & R600_BLOCK_STATUS_RESOURCE_DIRTY)) { + LIST_ADDTAIL(&enable_block->list,&ctx->resource_dirty); + enable_block->status |= R600_BLOCK_STATUS_RESOURCE_DIRTY; + } } ctx->pm4_dirty_cdwords += enable_block->pm4_ndwords + enable_block->pm4_flush_ndwords; - enable_block->status |= R600_BLOCK_STATUS_DIRTY; enable_block->nreg_dirty = enable_block->nreg; } } diff --git a/src/gallium/winsys/r600/drm/r600_priv.h b/src/gallium/winsys/r600/drm/r600_priv.h index da31a42b2a0..16deab60c96 100644 --- a/src/gallium/winsys/r600/drm/r600_priv.h +++ b/src/gallium/winsys/r600/drm/r600_priv.h @@ -62,11 +62,13 @@ struct radeon { pipe_mutex bo_handles_mutex; }; +/* these flags are used in register flags and added into block flags */ #define REG_FLAG_NEED_BO 1 #define REG_FLAG_DIRTY_ALWAYS 2 #define REG_FLAG_RV6XX_SBU 4 #define REG_FLAG_NOT_R600 8 #define REG_FLAG_ENABLE_ALWAYS 16 +#define BLOCK_FLAG_RESOURCE 32 struct r600_reg { unsigned offset; @@ -162,6 +164,7 @@ int r600_context_add_block(struct r600_context *ctx, const struct r600_reg *reg, unsigned opcode, unsigned offset_base); void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, struct r600_block *block); void r600_context_block_emit_dirty(struct r600_context *ctx, struct r600_block *block); +void r600_context_block_resource_emit_dirty(struct r600_context *ctx, struct r600_block *block); void r600_context_dirty_block(struct r600_context *ctx, struct r600_block *block, int dirty, int index); int r600_setup_block_table(struct r600_context *ctx); From e66053d01c011e3bdcf1cdab8ea9224b868ae246 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 7 Jun 2011 15:39:29 +1000 Subject: [PATCH 085/145] r600g: take alpha ref update out of line. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600_state_common.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c index 0928d964dc2..a670ac02be2 100644 --- a/src/gallium/drivers/r600/r600_state_common.c +++ b/src/gallium/drivers/r600/r600_state_common.c @@ -318,12 +318,10 @@ void r600_delete_vs_shader(struct pipe_context *ctx, void *state) static void r600_update_alpha_ref(struct r600_pipe_context *rctx) { - unsigned alpha_ref = rctx->alpha_ref; + unsigned alpha_ref; struct r600_pipe_state rstate; - if (!rctx->alpha_ref_dirty) - return; - + alpha_ref = rctx->alpha_ref; rstate.nregs = 0; if (rctx->export_16bpc) alpha_ref &= ~0x1FFF; @@ -595,7 +593,8 @@ void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info) return; } - r600_update_alpha_ref(rctx); + if (rctx->alpha_ref_dirty) + r600_update_alpha_ref(rctx); mask = 0; for (int i = 0; i < rctx->framebuffer.nr_cbufs; i++) { From 745abb53cf3f97600eed2e27361b82eb9727c41d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 7 Jun 2011 15:40:20 +1000 Subject: [PATCH 086/145] r600g: move simple part of bo reloc processing inline. This just moves the messy stuff out of the fast path, and leaves the fast-case in the fast path. Signed-off-by: Dave Airlie --- src/gallium/winsys/r600/drm/r600_hw_context.c | 13 ++----------- src/gallium/winsys/r600/drm/r600_priv.h | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 7386c002659..1d398bf9d7a 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -949,16 +949,9 @@ void r600_context_bo_flush(struct r600_context *ctx, unsigned flush_flags, bo->last_flush = (bo->last_flush | flush_flags) & flush_mask; } -void r600_context_bo_reloc(struct r600_context *ctx, u32 *pm4, struct r600_bo *rbo) +void r600_context_get_reloc(struct r600_context *ctx, struct r600_bo *rbo) { - struct radeon_bo *bo; - - bo = rbo->bo; - assert(bo != NULL); - if (bo->reloc) { - *pm4 = bo->reloc_id; - return; - } + struct radeon_bo *bo = rbo->bo; bo->reloc = &ctx->reloc[ctx->creloc]; bo->reloc_id = ctx->creloc * sizeof(struct r600_reloc) / 4; ctx->reloc[ctx->creloc].handle = bo->handle; @@ -968,8 +961,6 @@ void r600_context_bo_reloc(struct r600_context *ctx, u32 *pm4, struct r600_bo *r radeon_bo_reference(ctx->radeon, &ctx->bo[ctx->creloc], bo); rbo->fence = ctx->radeon->fence; ctx->creloc++; - /* set PKT3 to point to proper reloc */ - *pm4 = bo->reloc_id; } void r600_context_reg(struct r600_context *ctx, diff --git a/src/gallium/winsys/r600/drm/r600_priv.h b/src/gallium/winsys/r600/drm/r600_priv.h index 16deab60c96..082370ae106 100644 --- a/src/gallium/winsys/r600/drm/r600_priv.h +++ b/src/gallium/winsys/r600/drm/r600_priv.h @@ -156,7 +156,7 @@ int radeon_bo_fixed_map(struct radeon *radeon, struct radeon_bo *bo); * r600_hw_context.c */ int r600_context_init_fence(struct r600_context *ctx); -void r600_context_bo_reloc(struct r600_context *ctx, u32 *pm4, struct r600_bo *rbo); +void r600_context_get_reloc(struct r600_context *ctx, struct r600_bo *rbo); void r600_context_bo_flush(struct r600_context *ctx, unsigned flush_flags, unsigned flush_mask, struct r600_bo *rbo); struct r600_bo *r600_context_reg_bo(struct r600_context *ctx, unsigned offset); @@ -173,6 +173,20 @@ void r600_context_reg(struct r600_context *ctx, unsigned mask); void r600_init_cs(struct r600_context *ctx); int r600_resource_init(struct r600_context *ctx, struct r600_range *range, unsigned offset, unsigned nblocks, unsigned stride, struct r600_reg *reg, int nreg, unsigned offset_base); + +static INLINE void r600_context_bo_reloc(struct r600_context *ctx, u32 *pm4, struct r600_bo *rbo) +{ + struct radeon_bo *bo = rbo->bo; + + assert(bo != NULL); + + if (!bo->reloc) + r600_context_get_reloc(ctx, rbo); + + /* set PKT3 to point to proper reloc */ + *pm4 = bo->reloc_id; +} + /* * r600_bo.c */ From a5329d4f789f0336780b38d9513cad1ed5cf1e07 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 8 Jun 2011 13:20:17 +1000 Subject: [PATCH 087/145] r600g: fix regression in recent state changes. We weren't emitting the SQ setup regs at all which really is fail. When a state is always enabled we need to add it to the dirty list as well. Signed-off-by: Dave Airlie --- src/gallium/winsys/r600/drm/r600_hw_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 1d398bf9d7a..50a6dec38ba 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -112,6 +112,7 @@ static void r600_init_block(struct r600_context *ctx, if (reg[i+j].flags & REG_FLAG_ENABLE_ALWAYS) { block->status |= R600_BLOCK_STATUS_ENABLED; LIST_ADDTAIL(&block->enable_list, &ctx->enable_list); + LIST_ADDTAIL(&block->list,&ctx->dirty); } if (reg[i+j].flags & REG_FLAG_NEED_BO) { From f659cc46bc80923694b88d8fc9549705d8ca90aa Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 8 Jun 2011 14:02:00 +1000 Subject: [PATCH 088/145] r600g: only add blocks once to the dirty/enabled lists. This caused a loop in some tests. Signed-off-by: Dave Airlie --- src/gallium/winsys/r600/drm/r600_hw_context.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 50a6dec38ba..42492997df9 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -110,9 +110,11 @@ static void r600_init_block(struct r600_context *ctx, block->flags |= REG_FLAG_DIRTY_ALWAYS; } if (reg[i+j].flags & REG_FLAG_ENABLE_ALWAYS) { - block->status |= R600_BLOCK_STATUS_ENABLED; - LIST_ADDTAIL(&block->enable_list, &ctx->enable_list); - LIST_ADDTAIL(&block->list,&ctx->dirty); + if (!(block->status & R600_BLOCK_STATUS_ENABLED)) { + block->status |= R600_BLOCK_STATUS_ENABLED; + LIST_ADDTAIL(&block->enable_list, &ctx->enable_list); + LIST_ADDTAIL(&block->list,&ctx->dirty); + } } if (reg[i+j].flags & REG_FLAG_NEED_BO) { From c1f9884bbf580ea4390cc71d1696c87eba9f8f2e Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 8 Jun 2011 14:09:59 +1000 Subject: [PATCH 089/145] r600g: enable dynamic GPR resource management on evergreen Evergreen can do this as well as cayman, so we should enable it. This fixes a gpu lockup with glsl-vs-vec4-indexing-temp-dst-in-nested-loop-combined.shader_test I need to add a better workaround for r600/r700. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/evergreen_state.c | 19 +++---------------- src/gallium/drivers/r600/evergreend.h | 6 ++++-- .../winsys/r600/drm/evergreen_hw_context.c | 6 ++++-- 3 files changed, 11 insertions(+), 20 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index 17abdff49cd..ef84db2877e 100644 --- a/src/gallium/drivers/r600/evergreen_state.c +++ b/src/gallium/drivers/r600/evergreen_state.c @@ -1023,7 +1023,7 @@ static void cayman_init_config(struct r600_pipe_context *rctx) tmp |= S_008C00_EXPORT_SRC_C(1); r600_pipe_state_add_reg(rstate, R_008C00_SQ_CONFIG, tmp, 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, CM_R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, (4 << 28), 0xFFFFFFFF, NULL); + r600_pipe_state_add_reg(rstate, R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, (4 << 28), 0xFFFFFFFF, NULL); r600_pipe_state_add_reg(rstate, R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, (1 << 8), 0xFFFFFFFF, NULL); r600_pipe_state_add_reg(rstate, R_028A48_PA_SC_MODE_CNTL_0, 0x0, 0xFFFFFFFF, NULL); @@ -1375,21 +1375,8 @@ void evergreen_init_config(struct r600_pipe_context *rctx) tmp |= S_008C00_ES_PRIO(es_prio); r600_pipe_state_add_reg(rstate, R_008C00_SQ_CONFIG, tmp, 0xFFFFFFFF, NULL); - tmp = 0; - tmp |= S_008C04_NUM_PS_GPRS(num_ps_gprs); - tmp |= S_008C04_NUM_VS_GPRS(num_vs_gprs); - tmp |= S_008C04_NUM_CLAUSE_TEMP_GPRS(num_temp_gprs); - r600_pipe_state_add_reg(rstate, R_008C04_SQ_GPR_RESOURCE_MGMT_1, tmp, 0xFFFFFFFF, NULL); - - tmp = 0; - tmp |= S_008C08_NUM_GS_GPRS(num_gs_gprs); - tmp |= S_008C08_NUM_ES_GPRS(num_es_gprs); - r600_pipe_state_add_reg(rstate, R_008C08_SQ_GPR_RESOURCE_MGMT_2, tmp, 0xFFFFFFFF, NULL); - - tmp = 0; - tmp |= S_008C0C_NUM_HS_GPRS(num_hs_gprs); - tmp |= S_008C0C_NUM_LS_GPRS(num_ls_gprs); - r600_pipe_state_add_reg(rstate, R_008C0C_SQ_GPR_RESOURCE_MGMT_3, tmp, 0xFFFFFFFF, NULL); + r600_pipe_state_add_reg(rstate, R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, (4 << 28), 0xFFFFFFFF, NULL); + r600_pipe_state_add_reg(rstate, R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, (1 << 8), 0xFFFFFFFF, NULL); tmp = 0; tmp |= S_008C18_NUM_PS_THREADS(num_ps_threads); diff --git a/src/gallium/drivers/r600/evergreend.h b/src/gallium/drivers/r600/evergreend.h index ee0c7c9ed9b..0de54463bb8 100644 --- a/src/gallium/drivers/r600/evergreend.h +++ b/src/gallium/drivers/r600/evergreend.h @@ -171,6 +171,10 @@ #define S_008C0C_NUM_LS_GPRS(x) (((x) & 0xFF) << 16) #define G_008C0C_NUM_LS_GPRS(x) (((x) >> 16) & 0xFF) #define C_008C0C_NUM_LS_GPRS(x) 0xFF00FFFF + +#define R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1 0x00008C10 +#define R_008C14_SQ_GLOBAL_GPR_RESOURCE_MGMT_2 0x00008C14 + #define R_008C18_SQ_THREAD_RESOURCE_MGMT_1 0x00008C18 #define S_008C18_NUM_PS_THREADS(x) (((x) & 0xFF) << 0) #define G_008C18_NUM_PS_THREADS(x) (((x) >> 0) & 0xFF) @@ -1948,6 +1952,4 @@ #define CM_R_028C38_PA_SC_AA_MASK_X0Y0_X1Y0 0x28c38 #define CM_R_028C3C_PA_SC_AA_MASK_X0Y1_X1Y1 0x28c3c -#define CM_R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1 0x00008C10 -#define CM_R_008C14_SQ_GLOBAL_GPR_RESOURCE_MGMT_2 0x00008C14 #endif diff --git a/src/gallium/winsys/r600/drm/evergreen_hw_context.c b/src/gallium/winsys/r600/drm/evergreen_hw_context.c index e9f28bd79a9..e4ab690c560 100644 --- a/src/gallium/winsys/r600/drm/evergreen_hw_context.c +++ b/src/gallium/winsys/r600/drm/evergreen_hw_context.c @@ -47,6 +47,8 @@ static const struct r600_reg evergreen_config_reg_list[] = { {R_008C04_SQ_GPR_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, {R_008C08_SQ_GPR_RESOURCE_MGMT_2, REG_FLAG_ENABLE_ALWAYS, 0, 0}, {R_008C0C_SQ_THREAD_RESOURCE_MGMT, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C14_SQ_GLOBAL_GPR_RESOURCE_MGMT_2, REG_FLAG_ENABLE_ALWAYS, 0, 0}, {R_008C18_SQ_THREAD_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, {R_008C1C_SQ_THREAD_RESOURCE_MGMT_2, REG_FLAG_ENABLE_ALWAYS, 0, 0}, {R_008C20_SQ_STACK_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, @@ -63,8 +65,8 @@ static const struct r600_reg cayman_config_reg_list[] = { {R_008A14_PA_CL_ENHANCE, 0, 0, 0}, {R_008C00_SQ_CONFIG, REG_FLAG_ENABLE_ALWAYS, 0, 0}, {R_008C04_SQ_GPR_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, - {CM_R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, - {CM_R_008C14_SQ_GLOBAL_GPR_RESOURCE_MGMT_2, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C14_SQ_GLOBAL_GPR_RESOURCE_MGMT_2, REG_FLAG_ENABLE_ALWAYS, 0, 0}, {R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, REG_FLAG_ENABLE_ALWAYS, 0, 0}, {R_009100_SPI_CONFIG_CNTL, REG_FLAG_ENABLE_ALWAYS, 0, 0}, {R_00913C_SPI_CONFIG_CNTL_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, From e84981dede56a9aae154cb3266e371aad46e15bb Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 8 Jun 2011 14:10:49 +1000 Subject: [PATCH 090/145] r600g: fix warnings in winsys. Signed-off-by: Dave Airlie --- src/gallium/winsys/r600/drm/r600_hw_context.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 42492997df9..234834e4ee2 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -1067,7 +1067,6 @@ static void r600_context_dirty_resource_block(struct r600_context *ctx, void r600_context_pipe_state_set_resource(struct r600_context *ctx, struct r600_pipe_resource_state *state, struct r600_block *block) { - int i; int dirty; int num_regs = ctx->radeon->chip_class >= EVERGREEN ? 8 : 7; boolean is_vertex; @@ -1330,8 +1329,7 @@ out: void r600_context_block_resource_emit_dirty(struct r600_context *ctx, struct r600_block *block) { int id; - int cp_dwords = block->pm4_ndwords, start_dword = 0; - int new_dwords = 0; + int cp_dwords = block->pm4_ndwords; int nbo = block->nbo; ctx->flags |= R600_CONTEXT_CHECK_EVENT_FLUSH; @@ -1359,7 +1357,6 @@ void r600_context_block_resource_emit_dirty(struct r600_context *ctx, struct r60 memcpy(&ctx->pm4[ctx->pm4_cdwords], block->pm4, cp_dwords * 4); ctx->pm4_cdwords += cp_dwords; -out: block->status ^= R600_BLOCK_STATUS_RESOURCE_DIRTY; block->nreg_dirty = 0; LIST_DELINIT(&block->list); @@ -1489,7 +1486,7 @@ void r600_context_flush(struct r600_context *ctx) uint64_t chunk_array[2]; unsigned fence; int r; - struct r600_block *enable_block = NULL, *next_block; + struct r600_block *enable_block = NULL; if (!ctx->pm4_cdwords) return; From 190bfea2deb9a3440aa35469f8651c0e8af377c7 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 8 Jun 2011 14:45:31 +1000 Subject: [PATCH 091/145] r600g: condition evergreen dyn gpr resource management So only with kernel version 2.7 can this work, thanks to Alex for pointing that out. Also add a workaround for a hw bug. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/evergreen_state.c | 29 ++++++++++++++++++++-- src/gallium/drivers/r600/evergreend.h | 6 +++++ 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index ef84db2877e..1af9d5550d3 100644 --- a/src/gallium/drivers/r600/evergreen_state.c +++ b/src/gallium/drivers/r600/evergreen_state.c @@ -1375,8 +1375,33 @@ void evergreen_init_config(struct r600_pipe_context *rctx) tmp |= S_008C00_ES_PRIO(es_prio); r600_pipe_state_add_reg(rstate, R_008C00_SQ_CONFIG, tmp, 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, (4 << 28), 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, (1 << 8), 0xFFFFFFFF, NULL); + /* enable dynamic GPR resource management */ + if (r600_get_minor_version(rctx->radeon) >= 7) { + r600_pipe_state_add_reg(rstate, R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, (4 << 28), 0xFFFFFFFF, NULL); + r600_pipe_state_add_reg(rstate, R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, (1 << 8), 0xFFFFFFFF, NULL); + r600_pipe_state_add_reg(rstate, R_028838_SQ_DYN_GPR_RESOURCE_LIMIT_1, + S_028838_PS_GPRS(0x1e) | + S_028838_VS_GPRS(0x1e) | + S_028838_GS_GPRS(0x1e) | + S_028838_ES_GPRS(0x1e) | + S_028838_HS_GPRS(0x1e) | + S_028838_LS_GPRS(0x1e), 0xFFFFFFFF, NULL); /* workaround for hw issues with dyn gpr - must set all limits to 240 instead of 0, 0x1e == 240 / 8*/ + } else { + tmp = 0; + tmp |= S_008C04_NUM_PS_GPRS(num_ps_gprs); + tmp |= S_008C04_NUM_VS_GPRS(num_vs_gprs); + tmp |= S_008C04_NUM_CLAUSE_TEMP_GPRS(num_temp_gprs); + r600_pipe_state_add_reg(rstate, R_008C04_SQ_GPR_RESOURCE_MGMT_1, tmp, 0xFFFFFFFF, NULL); + + tmp = 0; + tmp |= S_008C08_NUM_GS_GPRS(num_gs_gprs); + tmp |= S_008C08_NUM_ES_GPRS(num_es_gprs); + r600_pipe_state_add_reg(rstate, R_008C08_SQ_GPR_RESOURCE_MGMT_2, tmp, 0xFFFFFFFF, NULL); + + tmp = 0; + tmp |= S_008C0C_NUM_HS_GPRS(num_hs_gprs); + tmp |= S_008C0C_NUM_HS_GPRS(num_ls_gprs); + } tmp = 0; tmp |= S_008C18_NUM_PS_THREADS(num_ps_threads); diff --git a/src/gallium/drivers/r600/evergreend.h b/src/gallium/drivers/r600/evergreend.h index 0de54463bb8..d795f5757ed 100644 --- a/src/gallium/drivers/r600/evergreend.h +++ b/src/gallium/drivers/r600/evergreend.h @@ -1641,6 +1641,12 @@ #define R_028818_PA_CL_VTE_CNTL 0x00028818 #define R_028820_PA_CL_NANINF_CNTL 0x00028820 #define R_028838_SQ_DYN_GPR_RESOURCE_LIMIT_1 0x00028838 +#define S_028838_PS_GPRS(x) (((x) & 0x1F) << 0) +#define S_028838_VS_GPRS(x) (((x) & 0x1F) << 5) +#define S_028838_GS_GPRS(x) (((x) & 0x1F) << 10) +#define S_028838_ES_GPRS(x) (((x) & 0x1F) << 15) +#define S_028838_HS_GPRS(x) (((x) & 0x1F) << 20) +#define S_028838_LS_GPRS(x) (((x) & 0x1F) << 25) #define R_028840_SQ_PGM_START_PS 0x00028840 #define R_02884C_SQ_PGM_EXPORTS_PS 0x0002884C #define S_02884C_EXPORT_COLORS(x) (((x) & 0xF) << 1) From 9fb404b47e304a2676bd047df5f13161a4d957f6 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 8 Jun 2011 14:25:02 +1000 Subject: [PATCH 092/145] r600g: set enable always bits for r600/r700 sq registers. This makes sure these are enabled even if set to 0 at startup. Signed-off-by: Dave Airlie --- src/gallium/winsys/r600/drm/r600_hw_context.c | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/gallium/winsys/r600/drm/r600_hw_context.c b/src/gallium/winsys/r600/drm/r600_hw_context.c index 234834e4ee2..44957db89af 100644 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@ -206,17 +206,17 @@ int r600_context_add_block(struct r600_context *ctx, const struct r600_reg *reg, /* R600/R700 configuration */ static const struct r600_reg r600_config_reg_list[] = { {R_008958_VGT_PRIMITIVE_TYPE, 0, 0, 0}, - {R_008C00_SQ_CONFIG, 0, 0, 0}, - {R_008C04_SQ_GPR_RESOURCE_MGMT_1, 0, 0, 0}, - {R_008C08_SQ_GPR_RESOURCE_MGMT_2, 0, 0, 0}, - {R_008C0C_SQ_THREAD_RESOURCE_MGMT, 0, 0, 0}, - {R_008C10_SQ_STACK_RESOURCE_MGMT_1, 0, 0, 0}, - {R_008C14_SQ_STACK_RESOURCE_MGMT_2, 0, 0, 0}, - {R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, 0, 0, 0}, - {R_009508_TA_CNTL_AUX, 0, 0, 0}, - {R_009714_VC_ENHANCE, 0, 0, 0}, - {R_009830_DB_DEBUG, 0, 0, 0}, - {R_009838_DB_WATERMARKS, 0, 0, 0}, + {R_008C00_SQ_CONFIG, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C04_SQ_GPR_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C08_SQ_GPR_RESOURCE_MGMT_2, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C0C_SQ_THREAD_RESOURCE_MGMT, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C10_SQ_STACK_RESOURCE_MGMT_1, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008C14_SQ_STACK_RESOURCE_MGMT_2, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_009508_TA_CNTL_AUX, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_009714_VC_ENHANCE, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_009830_DB_DEBUG, REG_FLAG_ENABLE_ALWAYS, 0, 0}, + {R_009838_DB_WATERMARKS, REG_FLAG_ENABLE_ALWAYS, 0, 0}, }; static const struct r600_reg r600_ctl_const_list[] = { From 19b9e523c5db746b2debed8306d9d3e4d2f709aa Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 8 Jun 2011 14:52:30 +1000 Subject: [PATCH 093/145] r600g: missed one line in eg dyn gpr fallback. need more sleep or something. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/evergreen_state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index 1af9d5550d3..9114734b406 100644 --- a/src/gallium/drivers/r600/evergreen_state.c +++ b/src/gallium/drivers/r600/evergreen_state.c @@ -1401,6 +1401,7 @@ void evergreen_init_config(struct r600_pipe_context *rctx) tmp = 0; tmp |= S_008C0C_NUM_HS_GPRS(num_hs_gprs); tmp |= S_008C0C_NUM_HS_GPRS(num_ls_gprs); + r600_pipe_state_add_reg(rstate, R_008C0C_SQ_GPR_RESOURCE_MGMT_3, tmp, 0xFFFFFFFF, NULL); } tmp = 0; From 88cec591706ff63870c9c2a04394034b6f761f9c Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 7 Jun 2011 21:00:23 -0400 Subject: [PATCH 094/145] apple: Rename __gl_api to __ogl_framework_api In starting the migration to using mapi, rename __gl_api to __ogl_framework_api since it is a vtable for OpenGL.framework Signed-off-by: Jeremy Huddleston --- src/glx/apple/apple_xgl_api_read.c | 8 ++++---- src/glx/apple/apple_xgl_api_stereo.c | 10 +++++----- src/glx/apple/apple_xgl_api_viewport.c | 4 ++-- src/glx/apple/gen_api_library.tcl | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/glx/apple/apple_xgl_api_read.c b/src/glx/apple/apple_xgl_api_read.c index 45850b97088..4a8873f03ad 100644 --- a/src/glx/apple/apple_xgl_api_read.c +++ b/src/glx/apple/apple_xgl_api_read.c @@ -38,7 +38,7 @@ #include "apple_glx_context.h" #include "apple_xgl_api.h" -extern struct apple_xgl_api __gl_api; +extern struct apple_xgl_api __ogl_framework_api; struct apple_xgl_saved_state { @@ -102,7 +102,7 @@ glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, SetRead(&saved); - __gl_api.ReadPixels(x, y, width, height, format, type, pixels); + __ogl_framework_api.ReadPixels(x, y, width, height, format, type, pixels); UnsetRead(&saved); } @@ -114,7 +114,7 @@ glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type) SetRead(&saved); - __gl_api.CopyPixels(x, y, width, height, type); + __ogl_framework_api.CopyPixels(x, y, width, height, type); UnsetRead(&saved); } @@ -127,7 +127,7 @@ glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, SetRead(&saved); - __gl_api.CopyColorTable(target, internalformat, x, y, width); + __ogl_framework_api.CopyColorTable(target, internalformat, x, y, width); UnsetRead(&saved); } diff --git a/src/glx/apple/apple_xgl_api_stereo.c b/src/glx/apple/apple_xgl_api_stereo.c index 5637dd4c627..a3c2156c259 100644 --- a/src/glx/apple/apple_xgl_api_stereo.c +++ b/src/glx/apple/apple_xgl_api_stereo.c @@ -41,7 +41,7 @@ #include "apple_glx_context.h" #include "apple_xgl_api.h" -extern struct apple_xgl_api __gl_api; +extern struct apple_xgl_api __ogl_framework_api; /* * These are special functions for stereoscopic support * differences in MacOS X. @@ -73,10 +73,10 @@ glDrawBuffer(GLenum mode) break; } - __gl_api.DrawBuffers(n, buf); + __ogl_framework_api.DrawBuffers(n, buf); } else { - __gl_api.DrawBuffer(mode); + __ogl_framework_api.DrawBuffer(mode); } } @@ -114,10 +114,10 @@ glDrawBuffers(GLsizei n, const GLenum * bufs) newbuf[outi++] = GL_FRONT_RIGHT; } - __gl_api.DrawBuffers(outi, newbuf); + __ogl_framework_api.DrawBuffers(outi, newbuf); } else { - __gl_api.DrawBuffers(n, bufs); + __ogl_framework_api.DrawBuffers(n, bufs); } } diff --git a/src/glx/apple/apple_xgl_api_viewport.c b/src/glx/apple/apple_xgl_api_viewport.c index e29eba82534..d4804fcd21e 100644 --- a/src/glx/apple/apple_xgl_api_viewport.c +++ b/src/glx/apple/apple_xgl_api_viewport.c @@ -31,7 +31,7 @@ #include "apple_glx_context.h" #include "apple_xgl_api.h" -extern struct apple_xgl_api __gl_api; +extern struct apple_xgl_api __ogl_framework_api; void glViewport(GLint x, GLint y, GLsizei width, GLsizei height) @@ -42,5 +42,5 @@ glViewport(GLint x, GLint y, GLsizei width, GLsizei height) if (gc && gc->driContext) apple_glx_context_update(dpy, gc->driContext); - __gl_api.Viewport(x, y, width, height); + __ogl_framework_api.Viewport(x, y, width, height); } diff --git a/src/glx/apple/gen_api_library.tcl b/src/glx/apple/gen_api_library.tcl index 159f9c085f1..eb633c24cf6 100644 --- a/src/glx/apple/gen_api_library.tcl +++ b/src/glx/apple/gen_api_library.tcl @@ -121,7 +121,7 @@ proc main {argc argv} { #include "apple_glx_context.h" } - puts $fd "struct apple_xgl_api __gl_api;" + puts $fd "struct apple_xgl_api __ogl_framework_api;" set sorted [lsort -dictionary [array names api]] @@ -176,7 +176,7 @@ proc main {argc argv} { set alias [dict get $attr alias_for] set body "[set return] gl[set alias]([set callvars]);" } else { - set body "[set return]__gl_api.[set f]([set callvars]);" + set body "[set return]__ogl_framework_api.[set f]([set callvars]);" } puts $fd "GLAPI [dict get $attr return] APIENTRY gl[set f]([set pstr]) \{\n\t$body\n\}" @@ -201,7 +201,7 @@ proc main {argc argv} { continue } - puts $fd "\t__gl_api.$f = glsym(handle, \"gl$f\");" + puts $fd "\t__ogl_framework_api.$f = glsym(handle, \"gl$f\");" } puts $fd "\}\n" From 7d215e7c4d0ca8a18d91d4f30f79b97835a6d6c4 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 7 Jun 2011 18:51:17 -0700 Subject: [PATCH 095/145] apple: Use glapi rather than reinventing the wheel With this change, Apple's libGL is now using glapi rather than implementing its own dispatch. In this implementation, two dispatch tables are created: __ogl_framework_api always points into OpenGL.framework. __applegl_api is the vtable that is used. It points into OpenGL.framework or to local implementations that override / interpose this in OpenGL.framework The initialization for __ogl_framework_api was copied from XQuartz with some modifications and probably still needs further edits to better deal with aliases. This is a good step towards supporting both indirect and direct rendering on darwin. Signed-off-by: Jeremy Huddleston --- src/glx/apple/.gitignore | 1 - src/glx/apple/Makefile | 28 +- src/glx/apple/apple_glapi.c | 1005 +++++++++++++++++ src/glx/apple/apple_glx.c | 1 - src/glx/apple/apple_glx.h | 2 + ...e_xgl_api_additional.c => apple_xgl_api.h} | 29 +- src/glx/apple/apple_xgl_api_read.c | 17 +- src/glx/apple/apple_xgl_api_stereo.c | 24 +- src/glx/apple/apple_xgl_api_viewport.c | 9 +- src/glx/apple/gen_api_library.tcl | 2 +- 10 files changed, 1065 insertions(+), 53 deletions(-) create mode 100644 src/glx/apple/apple_glapi.c rename src/glx/apple/{apple_xgl_api_additional.c => apple_xgl_api.h} (63%) diff --git a/src/glx/apple/.gitignore b/src/glx/apple/.gitignore index 3cc2d130138..b135a15c675 100644 --- a/src/glx/apple/.gitignore +++ b/src/glx/apple/.gitignore @@ -1,4 +1,3 @@ -apple_xgl_api.[hc] exports.list stage.[1234] diff --git a/src/glx/apple/Makefile b/src/glx/apple/Makefile index 1196701ad99..c27f7d1e875 100644 --- a/src/glx/apple/Makefile +++ b/src/glx/apple/Makefile @@ -30,8 +30,7 @@ SOURCES = \ apple_glx_pixmap.c \ apple_glx_surface.c \ apple_visual.c \ - apple_xgl_api.c \ - apple_xgl_api_additional.c \ + apple_glapi.c \ apple_xgl_api_read.c \ apple_xgl_api_stereo.c \ apple_xgl_api_viewport.c \ @@ -54,18 +53,18 @@ SOURCES = \ include $(TOP)/src/mesa/sources.mak +# override GLAPI_LIB +GLAPI_LIB = $(TOP)/src/mapi/glapi/libglapi.a + LDFLAGS += -lXplugin -framework ApplicationServices -framework CoreFoundation -MESA_GLAPI_ASM_SOURCES = $(addprefix $(TOP)/src/mesa/, $(GLAPI_ASM_SOURCES)) -MESA_GLAPI_SOURCES = $(addprefix $(TOP)/src/mesa/, $(GLAPI_SOURCES)) -MESA_GLAPI_OBJECTS = $(addprefix $(TOP)/src/mesa/, $(GLAPI_OBJECTS)) - -OBJECTS = $(SOURCES:.c=.o) # $(MESA_GLAPI_OBJECTS) +OBJECTS = $(SOURCES:.c=.o) INCLUDES = -I. -Iinclude -I..\ -I$(TOP)/include \ -I$(TOP)/include/GL/internal \ -I$(TOP)/src/mesa \ + -I$(TOP)/src/mesa/main \ -I$(TOP)/src/mapi \ -I$(TOP)/src/mapi/glapi \ $(LIBDRM_CFLAGS) \ @@ -74,13 +73,6 @@ INCLUDES = -I. -Iinclude -I..\ ##### RULES ##### -$(OBJECTS) : apple_xgl_api.h - -apple_xgl_api.c : apple_xgl_api.h - -apple_xgl_api.h : gen_api_header.tcl gen_api_library.tcl gen_code.tcl gen_defs.tcl gen_exports.tcl gen_funcs.tcl gen_types.tcl - $(TCLSH) gen_code.tcl - .c.o: $(CC) -c $(INCLUDES) $(CFLAGS) $(EXTRA_DEFINES) $< -o $@ @@ -92,11 +84,14 @@ apple_xgl_api.h : gen_api_header.tcl gen_api_library.tcl gen_code.tcl gen_def default: depend $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) # Make libGL -$(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(OBJECTS) Makefile +$(TOP)/$(LIB_DIR)/$(GL_LIB_NAME): $(OBJECTS) $(GLAPI_LIB) Makefile $(MKLIB) -o $(GL_LIB) -linker '$(CC)' -ldflags '$(LDFLAGS)' \ -major 1 -minor 2 $(MKLIB_OPTIONS) \ -install $(TOP)/$(LIB_DIR) -id $(INSTALL_LIB_DIR)/lib$(GL_LIB).1.dylib \ - $(GL_LIB_DEPS) $(OBJECTS) + $(GL_LIB_DEPS) $(OBJECTS) $(GLAPI_LIB) + +$(GLAPI_LIB): + @$(MAKE) -C $(TOP)/src/mapi/glapi depend: $(SOURCES) $(MESA_GLAPI_SOURCES) $(MESA_GLAPI_ASM_SOURCES) Makefile rm -f depend @@ -121,7 +116,6 @@ install: install_libraries clean: -rm -f *.o *.a *~ -rm -f *.c~ *.h~ - -rm -f apple_xgl_api.h apple_xgl_api.c -rm -f *.dylib -rm -f include/GL/gl.h -rm -f $(TOP)/$(LIB_DIR)/$(GL_LIB_GLOB) diff --git a/src/glx/apple/apple_glapi.c b/src/glx/apple/apple_glapi.c new file mode 100644 index 00000000000..88c317fbe38 --- /dev/null +++ b/src/glx/apple/apple_glapi.c @@ -0,0 +1,1005 @@ +/* + * GLX implementation that uses Apple's OpenGL.framework + * + * Copyright (c) 2007-2011 Apple Inc. + * Copyright (c) 2004 Torrey T. Lyons. All Rights Reserved. + * Copyright (c) 2002 Greg Parker. All Rights Reserved. + * + * Portions of this file are copied from Mesa's xf86glx.c, + * which contains the following copyright: + * + * Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +#include +#include +#include +#include +#include + +#include + +#include "glapi.h" +#include "glapitable.h" +#include "glapidispatch.h" + +#include "apple_glx.h" +#include "apple_xgl_api.h" + +#ifndef OPENGL_FRAMEWORK_PATH +#define OPENGL_FRAMEWORK_PATH "/System/Library/Frameworks/OpenGL.framework/OpenGL" +#endif + +__private_extern__ +struct _glapi_table * __ogl_framework_api = NULL; + +__private_extern__ +struct _glapi_table * __applegl_api = NULL; + +__private_extern__ +void apple_xgl_init_direct(void) { + static void *handle; + const char *opengl_framework_path; + + if(__applegl_api) { + _glapi_set_dispatch(__applegl_api); + return; + } + + opengl_framework_path = getenv("OPENGL_FRAMEWORK_PATH"); + if (!opengl_framework_path) { + opengl_framework_path = OPENGL_FRAMEWORK_PATH; + } + + (void) dlerror(); /*drain dlerror */ + handle = dlopen(opengl_framework_path, RTLD_LOCAL); + + if (!handle) { + fprintf(stderr, "error: unable to dlopen %s : %s\n", + opengl_framework_path, dlerror()); + abort(); + } + + __ogl_framework_api = calloc(1, sizeof(struct _glapi_table)); + assert(__ogl_framework_api); + + /* to update: + * for f in $(grep 'define SET_' ../../../glx/dispatch.h | cut -f2 -d' ' | cut -f1 -d\( | sort -u); do grep -q $f indirect.c && echo $f ; done | grep -v by_offset | sed 's:SET_\(.*\)$:SET_\1(__ogl_framework_api, dlsym(handle, "gl\1"))\;:' + */ + + SET_Accum(__ogl_framework_api, dlsym(handle, "glAccum")); + SET_AlphaFunc(__ogl_framework_api, dlsym(handle, "glAlphaFunc")); + SET_AreTexturesResident(__ogl_framework_api, dlsym(handle, "glAreTexturesResident")); + SET_ArrayElement(__ogl_framework_api, dlsym(handle, "glArrayElement")); + SET_Begin(__ogl_framework_api, dlsym(handle, "glBegin")); + SET_BindTexture(__ogl_framework_api, dlsym(handle, "glBindTexture")); + SET_Bitmap(__ogl_framework_api, dlsym(handle, "glBitmap")); + SET_BlendColor(__ogl_framework_api, dlsym(handle, "glBlendColor")); + SET_BlendEquation(__ogl_framework_api, dlsym(handle, "glBlendEquation")); + SET_BlendFunc(__ogl_framework_api, dlsym(handle, "glBlendFunc")); + SET_CallList(__ogl_framework_api, dlsym(handle, "glCallList")); + SET_CallLists(__ogl_framework_api, dlsym(handle, "glCallLists")); + SET_Clear(__ogl_framework_api, dlsym(handle, "glClear")); + SET_ClearAccum(__ogl_framework_api, dlsym(handle, "glClearAccum")); + SET_ClearColor(__ogl_framework_api, dlsym(handle, "glClearColor")); + SET_ClearDepth(__ogl_framework_api, dlsym(handle, "glClearDepth")); + SET_ClearIndex(__ogl_framework_api, dlsym(handle, "glClearIndex")); + SET_ClearStencil(__ogl_framework_api, dlsym(handle, "glClearStencil")); + SET_ClipPlane(__ogl_framework_api, dlsym(handle, "glClipPlane")); + SET_Color3b(__ogl_framework_api, dlsym(handle, "glColor3b")); + SET_Color3bv(__ogl_framework_api, dlsym(handle, "glColor3bv")); + SET_Color3d(__ogl_framework_api, dlsym(handle, "glColor3d")); + SET_Color3dv(__ogl_framework_api, dlsym(handle, "glColor3dv")); + SET_Color3f(__ogl_framework_api, dlsym(handle, "glColor3f")); + SET_Color3fv(__ogl_framework_api, dlsym(handle, "glColor3fv")); + SET_Color3i(__ogl_framework_api, dlsym(handle, "glColor3i")); + SET_Color3iv(__ogl_framework_api, dlsym(handle, "glColor3iv")); + SET_Color3s(__ogl_framework_api, dlsym(handle, "glColor3s")); + SET_Color3sv(__ogl_framework_api, dlsym(handle, "glColor3sv")); + SET_Color3ub(__ogl_framework_api, dlsym(handle, "glColor3ub")); + SET_Color3ubv(__ogl_framework_api, dlsym(handle, "glColor3ubv")); + SET_Color3ui(__ogl_framework_api, dlsym(handle, "glColor3ui")); + SET_Color3uiv(__ogl_framework_api, dlsym(handle, "glColor3uiv")); + SET_Color3us(__ogl_framework_api, dlsym(handle, "glColor3us")); + SET_Color3usv(__ogl_framework_api, dlsym(handle, "glColor3usv")); + SET_Color4b(__ogl_framework_api, dlsym(handle, "glColor4b")); + SET_Color4bv(__ogl_framework_api, dlsym(handle, "glColor4bv")); + SET_Color4d(__ogl_framework_api, dlsym(handle, "glColor4d")); + SET_Color4dv(__ogl_framework_api, dlsym(handle, "glColor4dv")); + SET_Color4f(__ogl_framework_api, dlsym(handle, "glColor4f")); + SET_Color4fv(__ogl_framework_api, dlsym(handle, "glColor4fv")); + SET_Color4i(__ogl_framework_api, dlsym(handle, "glColor4i")); + SET_Color4iv(__ogl_framework_api, dlsym(handle, "glColor4iv")); + SET_Color4s(__ogl_framework_api, dlsym(handle, "glColor4s")); + SET_Color4sv(__ogl_framework_api, dlsym(handle, "glColor4sv")); + SET_Color4ub(__ogl_framework_api, dlsym(handle, "glColor4ub")); + SET_Color4ubv(__ogl_framework_api, dlsym(handle, "glColor4ubv")); + SET_Color4ui(__ogl_framework_api, dlsym(handle, "glColor4ui")); + SET_Color4uiv(__ogl_framework_api, dlsym(handle, "glColor4uiv")); + SET_Color4us(__ogl_framework_api, dlsym(handle, "glColor4us")); + SET_Color4usv(__ogl_framework_api, dlsym(handle, "glColor4usv")); + SET_ColorMask(__ogl_framework_api, dlsym(handle, "glColorMask")); + SET_ColorMaterial(__ogl_framework_api, dlsym(handle, "glColorMaterial")); + SET_ColorPointer(__ogl_framework_api, dlsym(handle, "glColorPointer")); + SET_ColorSubTable(__ogl_framework_api, dlsym(handle, "glColorSubTable")); + SET_ColorTable(__ogl_framework_api, dlsym(handle, "glColorTable")); + SET_ColorTableParameterfv(__ogl_framework_api, dlsym(handle, "glColorTableParameterfv")); + SET_ColorTableParameteriv(__ogl_framework_api, dlsym(handle, "glColorTableParameteriv")); + SET_ConvolutionFilter1D(__ogl_framework_api, dlsym(handle, "glConvolutionFilter1D")); + SET_ConvolutionFilter2D(__ogl_framework_api, dlsym(handle, "glConvolutionFilter2D")); + SET_ConvolutionParameterf(__ogl_framework_api, dlsym(handle, "glConvolutionParameterf")); + SET_ConvolutionParameterfv(__ogl_framework_api, dlsym(handle, "glConvolutionParameterfv")); + SET_ConvolutionParameteri(__ogl_framework_api, dlsym(handle, "glConvolutionParameteri")); + SET_ConvolutionParameteriv(__ogl_framework_api, dlsym(handle, "glConvolutionParameteriv")); + SET_CopyColorSubTable(__ogl_framework_api, dlsym(handle, "glCopyColorSubTable")); + SET_CopyColorTable(__ogl_framework_api, dlsym(handle, "glCopyColorTable")); + SET_CopyConvolutionFilter1D(__ogl_framework_api, dlsym(handle, "glCopyConvolutionFilter1D")); + SET_CopyConvolutionFilter2D(__ogl_framework_api, dlsym(handle, "glCopyConvolutionFilter2D")); + SET_CopyPixels(__ogl_framework_api, dlsym(handle, "glCopyPixels")); + SET_CopyTexImage1D(__ogl_framework_api, dlsym(handle, "glCopyTexImage1D")); + SET_CopyTexImage2D(__ogl_framework_api, dlsym(handle, "glCopyTexImage2D")); + SET_CopyTexSubImage1D(__ogl_framework_api, dlsym(handle, "glCopyTexSubImage1D")); + SET_CopyTexSubImage2D(__ogl_framework_api, dlsym(handle, "glCopyTexSubImage2D")); + SET_CopyTexSubImage3D(__ogl_framework_api, dlsym(handle, "glCopyTexSubImage3D")); + SET_CullFace(__ogl_framework_api, dlsym(handle, "glCullFace")); + SET_DeleteLists(__ogl_framework_api, dlsym(handle, "glDeleteLists")); + SET_DeleteTextures(__ogl_framework_api, dlsym(handle, "glDeleteTextures")); + SET_DepthFunc(__ogl_framework_api, dlsym(handle, "glDepthFunc")); + SET_DepthMask(__ogl_framework_api, dlsym(handle, "glDepthMask")); + SET_DepthRange(__ogl_framework_api, dlsym(handle, "glDepthRange")); + SET_Disable(__ogl_framework_api, dlsym(handle, "glDisable")); + SET_DisableClientState(__ogl_framework_api, dlsym(handle, "glDisableClientState")); + SET_DrawArrays(__ogl_framework_api, dlsym(handle, "glDrawArrays")); + SET_DrawBuffer(__ogl_framework_api, dlsym(handle, "glDrawBuffer")); + SET_DrawElements(__ogl_framework_api, dlsym(handle, "glDrawElements")); + SET_DrawPixels(__ogl_framework_api, dlsym(handle, "glDrawPixels")); + SET_DrawRangeElements(__ogl_framework_api, dlsym(handle, "glDrawRangeElements")); + SET_EdgeFlag(__ogl_framework_api, dlsym(handle, "glEdgeFlag")); + SET_EdgeFlagPointer(__ogl_framework_api, dlsym(handle, "glEdgeFlagPointer")); + SET_EdgeFlagv(__ogl_framework_api, dlsym(handle, "glEdgeFlagv")); + SET_Enable(__ogl_framework_api, dlsym(handle, "glEnable")); + SET_EnableClientState(__ogl_framework_api, dlsym(handle, "glEnableClientState")); + SET_End(__ogl_framework_api, dlsym(handle, "glEnd")); + SET_EndList(__ogl_framework_api, dlsym(handle, "glEndList")); + SET_EvalCoord1d(__ogl_framework_api, dlsym(handle, "glEvalCoord1d")); + SET_EvalCoord1dv(__ogl_framework_api, dlsym(handle, "glEvalCoord1dv")); + SET_EvalCoord1f(__ogl_framework_api, dlsym(handle, "glEvalCoord1f")); + SET_EvalCoord1fv(__ogl_framework_api, dlsym(handle, "glEvalCoord1fv")); + SET_EvalCoord2d(__ogl_framework_api, dlsym(handle, "glEvalCoord2d")); + SET_EvalCoord2dv(__ogl_framework_api, dlsym(handle, "glEvalCoord2dv")); + SET_EvalCoord2f(__ogl_framework_api, dlsym(handle, "glEvalCoord2f")); + SET_EvalCoord2fv(__ogl_framework_api, dlsym(handle, "glEvalCoord2fv")); + SET_EvalMesh1(__ogl_framework_api, dlsym(handle, "glEvalMesh1")); + SET_EvalMesh2(__ogl_framework_api, dlsym(handle, "glEvalMesh2")); + SET_EvalPoint1(__ogl_framework_api, dlsym(handle, "glEvalPoint1")); + SET_EvalPoint2(__ogl_framework_api, dlsym(handle, "glEvalPoint2")); + SET_FeedbackBuffer(__ogl_framework_api, dlsym(handle, "glFeedbackBuffer")); + SET_Finish(__ogl_framework_api, dlsym(handle, "glFinish")); + SET_Flush(__ogl_framework_api, dlsym(handle, "glFlush")); + SET_Fogf(__ogl_framework_api, dlsym(handle, "glFogf")); + SET_Fogfv(__ogl_framework_api, dlsym(handle, "glFogfv")); + SET_Fogi(__ogl_framework_api, dlsym(handle, "glFogi")); + SET_Fogiv(__ogl_framework_api, dlsym(handle, "glFogiv")); + SET_FrontFace(__ogl_framework_api, dlsym(handle, "glFrontFace")); + SET_Frustum(__ogl_framework_api, dlsym(handle, "glFrustum")); + SET_GenLists(__ogl_framework_api, dlsym(handle, "glGenLists")); + SET_GenTextures(__ogl_framework_api, dlsym(handle, "glGenTextures")); + SET_GetBooleanv(__ogl_framework_api, dlsym(handle, "glGetBooleanv")); + SET_GetClipPlane(__ogl_framework_api, dlsym(handle, "glGetClipPlane")); + SET_GetColorTable(__ogl_framework_api, dlsym(handle, "glGetColorTable")); + SET_GetColorTableParameterfv(__ogl_framework_api, dlsym(handle, "glGetColorTableParameterfv")); + SET_GetColorTableParameteriv(__ogl_framework_api, dlsym(handle, "glGetColorTableParameteriv")); + SET_GetConvolutionFilter(__ogl_framework_api, dlsym(handle, "glGetConvolutionFilter")); + SET_GetConvolutionParameterfv(__ogl_framework_api, dlsym(handle, "glGetConvolutionParameterfv")); + SET_GetConvolutionParameteriv(__ogl_framework_api, dlsym(handle, "glGetConvolutionParameteriv")); + SET_GetDoublev(__ogl_framework_api, dlsym(handle, "glGetDoublev")); + SET_GetError(__ogl_framework_api, dlsym(handle, "glGetError")); + SET_GetFloatv(__ogl_framework_api, dlsym(handle, "glGetFloatv")); + SET_GetHistogram(__ogl_framework_api, dlsym(handle, "glGetHistogram")); + SET_GetHistogramParameterfv(__ogl_framework_api, dlsym(handle, "glGetHistogramParameterfv")); + SET_GetHistogramParameteriv(__ogl_framework_api, dlsym(handle, "glGetHistogramParameteriv")); + SET_GetIntegerv(__ogl_framework_api, dlsym(handle, "glGetIntegerv")); + SET_GetLightfv(__ogl_framework_api, dlsym(handle, "glGetLightfv")); + SET_GetLightiv(__ogl_framework_api, dlsym(handle, "glGetLightiv")); + SET_GetMapdv(__ogl_framework_api, dlsym(handle, "glGetMapdv")); + SET_GetMapfv(__ogl_framework_api, dlsym(handle, "glGetMapfv")); + SET_GetMapiv(__ogl_framework_api, dlsym(handle, "glGetMapiv")); + SET_GetMaterialfv(__ogl_framework_api, dlsym(handle, "glGetMaterialfv")); + SET_GetMaterialiv(__ogl_framework_api, dlsym(handle, "glGetMaterialiv")); + SET_GetMinmax(__ogl_framework_api, dlsym(handle, "glGetMinmax")); + SET_GetMinmaxParameterfv(__ogl_framework_api, dlsym(handle, "glGetMinmaxParameterfv")); + SET_GetMinmaxParameteriv(__ogl_framework_api, dlsym(handle, "glGetMinmaxParameteriv")); + SET_GetPixelMapfv(__ogl_framework_api, dlsym(handle, "glGetPixelMapfv")); + SET_GetPixelMapuiv(__ogl_framework_api, dlsym(handle, "glGetPixelMapuiv")); + SET_GetPixelMapusv(__ogl_framework_api, dlsym(handle, "glGetPixelMapusv")); + SET_GetPointerv(__ogl_framework_api, dlsym(handle, "glGetPointerv")); + SET_GetPolygonStipple(__ogl_framework_api, dlsym(handle, "glGetPolygonStipple")); + SET_GetSeparableFilter(__ogl_framework_api, dlsym(handle, "glGetSeparableFilter")); + SET_GetString(__ogl_framework_api, dlsym(handle, "glGetString")); + SET_GetTexEnvfv(__ogl_framework_api, dlsym(handle, "glGetTexEnvfv")); + SET_GetTexEnviv(__ogl_framework_api, dlsym(handle, "glGetTexEnviv")); + SET_GetTexGendv(__ogl_framework_api, dlsym(handle, "glGetTexGendv")); + SET_GetTexGenfv(__ogl_framework_api, dlsym(handle, "glGetTexGenfv")); + SET_GetTexGeniv(__ogl_framework_api, dlsym(handle, "glGetTexGeniv")); + SET_GetTexImage(__ogl_framework_api, dlsym(handle, "glGetTexImage")); + SET_GetTexLevelParameterfv(__ogl_framework_api, dlsym(handle, "glGetTexLevelParameterfv")); + SET_GetTexLevelParameteriv(__ogl_framework_api, dlsym(handle, "glGetTexLevelParameteriv")); + SET_GetTexParameterfv(__ogl_framework_api, dlsym(handle, "glGetTexParameterfv")); + SET_GetTexParameteriv(__ogl_framework_api, dlsym(handle, "glGetTexParameteriv")); + SET_Hint(__ogl_framework_api, dlsym(handle, "glHint")); + SET_Histogram(__ogl_framework_api, dlsym(handle, "glHistogram")); + SET_IndexMask(__ogl_framework_api, dlsym(handle, "glIndexMask")); + SET_IndexPointer(__ogl_framework_api, dlsym(handle, "glIndexPointer")); + SET_Indexd(__ogl_framework_api, dlsym(handle, "glIndexd")); + SET_Indexdv(__ogl_framework_api, dlsym(handle, "glIndexdv")); + SET_Indexf(__ogl_framework_api, dlsym(handle, "glIndexf")); + SET_Indexfv(__ogl_framework_api, dlsym(handle, "glIndexfv")); + SET_Indexi(__ogl_framework_api, dlsym(handle, "glIndexi")); + SET_Indexiv(__ogl_framework_api, dlsym(handle, "glIndexiv")); + SET_Indexs(__ogl_framework_api, dlsym(handle, "glIndexs")); + SET_Indexsv(__ogl_framework_api, dlsym(handle, "glIndexsv")); + SET_Indexub(__ogl_framework_api, dlsym(handle, "glIndexub")); + SET_Indexubv(__ogl_framework_api, dlsym(handle, "glIndexubv")); + SET_InitNames(__ogl_framework_api, dlsym(handle, "glInitNames")); + SET_InterleavedArrays(__ogl_framework_api, dlsym(handle, "glInterleavedArrays")); + SET_IsEnabled(__ogl_framework_api, dlsym(handle, "glIsEnabled")); + SET_IsList(__ogl_framework_api, dlsym(handle, "glIsList")); + SET_IsTexture(__ogl_framework_api, dlsym(handle, "glIsTexture")); + SET_LightModelf(__ogl_framework_api, dlsym(handle, "glLightModelf")); + SET_LightModelfv(__ogl_framework_api, dlsym(handle, "glLightModelfv")); + SET_LightModeli(__ogl_framework_api, dlsym(handle, "glLightModeli")); + SET_LightModeliv(__ogl_framework_api, dlsym(handle, "glLightModeliv")); + SET_Lightf(__ogl_framework_api, dlsym(handle, "glLightf")); + SET_Lightfv(__ogl_framework_api, dlsym(handle, "glLightfv")); + SET_Lighti(__ogl_framework_api, dlsym(handle, "glLighti")); + SET_Lightiv(__ogl_framework_api, dlsym(handle, "glLightiv")); + SET_LineStipple(__ogl_framework_api, dlsym(handle, "glLineStipple")); + SET_LineWidth(__ogl_framework_api, dlsym(handle, "glLineWidth")); + SET_ListBase(__ogl_framework_api, dlsym(handle, "glListBase")); + SET_LoadIdentity(__ogl_framework_api, dlsym(handle, "glLoadIdentity")); + SET_LoadMatrixd(__ogl_framework_api, dlsym(handle, "glLoadMatrixd")); + SET_LoadMatrixf(__ogl_framework_api, dlsym(handle, "glLoadMatrixf")); + SET_LoadName(__ogl_framework_api, dlsym(handle, "glLoadName")); + SET_LogicOp(__ogl_framework_api, dlsym(handle, "glLogicOp")); + SET_Map1d(__ogl_framework_api, dlsym(handle, "glMap1d")); + SET_Map1f(__ogl_framework_api, dlsym(handle, "glMap1f")); + SET_Map2d(__ogl_framework_api, dlsym(handle, "glMap2d")); + SET_Map2f(__ogl_framework_api, dlsym(handle, "glMap2f")); + SET_MapGrid1d(__ogl_framework_api, dlsym(handle, "glMapGrid1d")); + SET_MapGrid1f(__ogl_framework_api, dlsym(handle, "glMapGrid1f")); + SET_MapGrid2d(__ogl_framework_api, dlsym(handle, "glMapGrid2d")); + SET_MapGrid2f(__ogl_framework_api, dlsym(handle, "glMapGrid2f")); + SET_Materialf(__ogl_framework_api, dlsym(handle, "glMaterialf")); + SET_Materialfv(__ogl_framework_api, dlsym(handle, "glMaterialfv")); + SET_Materiali(__ogl_framework_api, dlsym(handle, "glMateriali")); + SET_Materialiv(__ogl_framework_api, dlsym(handle, "glMaterialiv")); + SET_MatrixMode(__ogl_framework_api, dlsym(handle, "glMatrixMode")); + SET_Minmax(__ogl_framework_api, dlsym(handle, "glMinmax")); + SET_MultMatrixd(__ogl_framework_api, dlsym(handle, "glMultMatrixd")); + SET_MultMatrixf(__ogl_framework_api, dlsym(handle, "glMultMatrixf")); + SET_NewList(__ogl_framework_api, dlsym(handle, "glNewList")); + SET_Normal3b(__ogl_framework_api, dlsym(handle, "glNormal3b")); + SET_Normal3bv(__ogl_framework_api, dlsym(handle, "glNormal3bv")); + SET_Normal3d(__ogl_framework_api, dlsym(handle, "glNormal3d")); + SET_Normal3dv(__ogl_framework_api, dlsym(handle, "glNormal3dv")); + SET_Normal3f(__ogl_framework_api, dlsym(handle, "glNormal3f")); + SET_Normal3fv(__ogl_framework_api, dlsym(handle, "glNormal3fv")); + SET_Normal3i(__ogl_framework_api, dlsym(handle, "glNormal3i")); + SET_Normal3iv(__ogl_framework_api, dlsym(handle, "glNormal3iv")); + SET_Normal3s(__ogl_framework_api, dlsym(handle, "glNormal3s")); + SET_Normal3sv(__ogl_framework_api, dlsym(handle, "glNormal3sv")); + SET_NormalPointer(__ogl_framework_api, dlsym(handle, "glNormalPointer")); + SET_Ortho(__ogl_framework_api, dlsym(handle, "glOrtho")); + SET_PassThrough(__ogl_framework_api, dlsym(handle, "glPassThrough")); + SET_PixelMapfv(__ogl_framework_api, dlsym(handle, "glPixelMapfv")); + SET_PixelMapuiv(__ogl_framework_api, dlsym(handle, "glPixelMapuiv")); + SET_PixelMapusv(__ogl_framework_api, dlsym(handle, "glPixelMapusv")); + SET_PixelStoref(__ogl_framework_api, dlsym(handle, "glPixelStoref")); + SET_PixelStorei(__ogl_framework_api, dlsym(handle, "glPixelStorei")); + SET_PixelTransferf(__ogl_framework_api, dlsym(handle, "glPixelTransferf")); + SET_PixelTransferi(__ogl_framework_api, dlsym(handle, "glPixelTransferi")); + SET_PixelZoom(__ogl_framework_api, dlsym(handle, "glPixelZoom")); + SET_PointSize(__ogl_framework_api, dlsym(handle, "glPointSize")); + SET_PolygonMode(__ogl_framework_api, dlsym(handle, "glPolygonMode")); + SET_PolygonOffset(__ogl_framework_api, dlsym(handle, "glPolygonOffset")); + SET_PolygonStipple(__ogl_framework_api, dlsym(handle, "glPolygonStipple")); + SET_PopAttrib(__ogl_framework_api, dlsym(handle, "glPopAttrib")); + SET_PopClientAttrib(__ogl_framework_api, dlsym(handle, "glPopClientAttrib")); + SET_PopMatrix(__ogl_framework_api, dlsym(handle, "glPopMatrix")); + SET_PopName(__ogl_framework_api, dlsym(handle, "glPopName")); + SET_PrioritizeTextures(__ogl_framework_api, dlsym(handle, "glPrioritizeTextures")); + SET_PushAttrib(__ogl_framework_api, dlsym(handle, "glPushAttrib")); + SET_PushClientAttrib(__ogl_framework_api, dlsym(handle, "glPushClientAttrib")); + SET_PushMatrix(__ogl_framework_api, dlsym(handle, "glPushMatrix")); + SET_PushName(__ogl_framework_api, dlsym(handle, "glPushName")); + SET_RasterPos2d(__ogl_framework_api, dlsym(handle, "glRasterPos2d")); + SET_RasterPos2dv(__ogl_framework_api, dlsym(handle, "glRasterPos2dv")); + SET_RasterPos2f(__ogl_framework_api, dlsym(handle, "glRasterPos2f")); + SET_RasterPos2fv(__ogl_framework_api, dlsym(handle, "glRasterPos2fv")); + SET_RasterPos2i(__ogl_framework_api, dlsym(handle, "glRasterPos2i")); + SET_RasterPos2iv(__ogl_framework_api, dlsym(handle, "glRasterPos2iv")); + SET_RasterPos2s(__ogl_framework_api, dlsym(handle, "glRasterPos2s")); + SET_RasterPos2sv(__ogl_framework_api, dlsym(handle, "glRasterPos2sv")); + SET_RasterPos3d(__ogl_framework_api, dlsym(handle, "glRasterPos3d")); + SET_RasterPos3dv(__ogl_framework_api, dlsym(handle, "glRasterPos3dv")); + SET_RasterPos3f(__ogl_framework_api, dlsym(handle, "glRasterPos3f")); + SET_RasterPos3fv(__ogl_framework_api, dlsym(handle, "glRasterPos3fv")); + SET_RasterPos3i(__ogl_framework_api, dlsym(handle, "glRasterPos3i")); + SET_RasterPos3iv(__ogl_framework_api, dlsym(handle, "glRasterPos3iv")); + SET_RasterPos3s(__ogl_framework_api, dlsym(handle, "glRasterPos3s")); + SET_RasterPos3sv(__ogl_framework_api, dlsym(handle, "glRasterPos3sv")); + SET_RasterPos4d(__ogl_framework_api, dlsym(handle, "glRasterPos4d")); + SET_RasterPos4dv(__ogl_framework_api, dlsym(handle, "glRasterPos4dv")); + SET_RasterPos4f(__ogl_framework_api, dlsym(handle, "glRasterPos4f")); + SET_RasterPos4fv(__ogl_framework_api, dlsym(handle, "glRasterPos4fv")); + SET_RasterPos4i(__ogl_framework_api, dlsym(handle, "glRasterPos4i")); + SET_RasterPos4iv(__ogl_framework_api, dlsym(handle, "glRasterPos4iv")); + SET_RasterPos4s(__ogl_framework_api, dlsym(handle, "glRasterPos4s")); + SET_RasterPos4sv(__ogl_framework_api, dlsym(handle, "glRasterPos4sv")); + SET_ReadBuffer(__ogl_framework_api, dlsym(handle, "glReadBuffer")); + SET_ReadPixels(__ogl_framework_api, dlsym(handle, "glReadPixels")); + SET_Rectd(__ogl_framework_api, dlsym(handle, "glRectd")); + SET_Rectdv(__ogl_framework_api, dlsym(handle, "glRectdv")); + SET_Rectf(__ogl_framework_api, dlsym(handle, "glRectf")); + SET_Rectfv(__ogl_framework_api, dlsym(handle, "glRectfv")); + SET_Recti(__ogl_framework_api, dlsym(handle, "glRecti")); + SET_Rectiv(__ogl_framework_api, dlsym(handle, "glRectiv")); + SET_Rects(__ogl_framework_api, dlsym(handle, "glRects")); + SET_Rectsv(__ogl_framework_api, dlsym(handle, "glRectsv")); + SET_RenderMode(__ogl_framework_api, dlsym(handle, "glRenderMode")); + SET_ResetHistogram(__ogl_framework_api, dlsym(handle, "glResetHistogram")); + SET_ResetMinmax(__ogl_framework_api, dlsym(handle, "glResetMinmax")); + SET_Rotated(__ogl_framework_api, dlsym(handle, "glRotated")); + SET_Rotatef(__ogl_framework_api, dlsym(handle, "glRotatef")); + SET_Scaled(__ogl_framework_api, dlsym(handle, "glScaled")); + SET_Scalef(__ogl_framework_api, dlsym(handle, "glScalef")); + SET_Scissor(__ogl_framework_api, dlsym(handle, "glScissor")); + SET_SelectBuffer(__ogl_framework_api, dlsym(handle, "glSelectBuffer")); + SET_SeparableFilter2D(__ogl_framework_api, dlsym(handle, "glSeparableFilter2D")); + SET_ShadeModel(__ogl_framework_api, dlsym(handle, "glShadeModel")); + SET_StencilFunc(__ogl_framework_api, dlsym(handle, "glStencilFunc")); + SET_StencilMask(__ogl_framework_api, dlsym(handle, "glStencilMask")); + SET_StencilOp(__ogl_framework_api, dlsym(handle, "glStencilOp")); + SET_TexCoord1d(__ogl_framework_api, dlsym(handle, "glTexCoord1d")); + SET_TexCoord1dv(__ogl_framework_api, dlsym(handle, "glTexCoord1dv")); + SET_TexCoord1f(__ogl_framework_api, dlsym(handle, "glTexCoord1f")); + SET_TexCoord1fv(__ogl_framework_api, dlsym(handle, "glTexCoord1fv")); + SET_TexCoord1i(__ogl_framework_api, dlsym(handle, "glTexCoord1i")); + SET_TexCoord1iv(__ogl_framework_api, dlsym(handle, "glTexCoord1iv")); + SET_TexCoord1s(__ogl_framework_api, dlsym(handle, "glTexCoord1s")); + SET_TexCoord1sv(__ogl_framework_api, dlsym(handle, "glTexCoord1sv")); + SET_TexCoord2d(__ogl_framework_api, dlsym(handle, "glTexCoord2d")); + SET_TexCoord2dv(__ogl_framework_api, dlsym(handle, "glTexCoord2dv")); + SET_TexCoord2f(__ogl_framework_api, dlsym(handle, "glTexCoord2f")); + SET_TexCoord2fv(__ogl_framework_api, dlsym(handle, "glTexCoord2fv")); + SET_TexCoord2i(__ogl_framework_api, dlsym(handle, "glTexCoord2i")); + SET_TexCoord2iv(__ogl_framework_api, dlsym(handle, "glTexCoord2iv")); + SET_TexCoord2s(__ogl_framework_api, dlsym(handle, "glTexCoord2s")); + SET_TexCoord2sv(__ogl_framework_api, dlsym(handle, "glTexCoord2sv")); + SET_TexCoord3d(__ogl_framework_api, dlsym(handle, "glTexCoord3d")); + SET_TexCoord3dv(__ogl_framework_api, dlsym(handle, "glTexCoord3dv")); + SET_TexCoord3f(__ogl_framework_api, dlsym(handle, "glTexCoord3f")); + SET_TexCoord3fv(__ogl_framework_api, dlsym(handle, "glTexCoord3fv")); + SET_TexCoord3i(__ogl_framework_api, dlsym(handle, "glTexCoord3i")); + SET_TexCoord3iv(__ogl_framework_api, dlsym(handle, "glTexCoord3iv")); + SET_TexCoord3s(__ogl_framework_api, dlsym(handle, "glTexCoord3s")); + SET_TexCoord3sv(__ogl_framework_api, dlsym(handle, "glTexCoord3sv")); + SET_TexCoord4d(__ogl_framework_api, dlsym(handle, "glTexCoord4d")); + SET_TexCoord4dv(__ogl_framework_api, dlsym(handle, "glTexCoord4dv")); + SET_TexCoord4f(__ogl_framework_api, dlsym(handle, "glTexCoord4f")); + SET_TexCoord4fv(__ogl_framework_api, dlsym(handle, "glTexCoord4fv")); + SET_TexCoord4i(__ogl_framework_api, dlsym(handle, "glTexCoord4i")); + SET_TexCoord4iv(__ogl_framework_api, dlsym(handle, "glTexCoord4iv")); + SET_TexCoord4s(__ogl_framework_api, dlsym(handle, "glTexCoord4s")); + SET_TexCoord4sv(__ogl_framework_api, dlsym(handle, "glTexCoord4sv")); + SET_TexCoordPointer(__ogl_framework_api, dlsym(handle, "glTexCoordPointer")); + SET_TexEnvf(__ogl_framework_api, dlsym(handle, "glTexEnvf")); + SET_TexEnvfv(__ogl_framework_api, dlsym(handle, "glTexEnvfv")); + SET_TexEnvi(__ogl_framework_api, dlsym(handle, "glTexEnvi")); + SET_TexEnviv(__ogl_framework_api, dlsym(handle, "glTexEnviv")); + SET_TexGend(__ogl_framework_api, dlsym(handle, "glTexGend")); + SET_TexGendv(__ogl_framework_api, dlsym(handle, "glTexGendv")); + SET_TexGenf(__ogl_framework_api, dlsym(handle, "glTexGenf")); + SET_TexGenfv(__ogl_framework_api, dlsym(handle, "glTexGenfv")); + SET_TexGeni(__ogl_framework_api, dlsym(handle, "glTexGeni")); + SET_TexGeniv(__ogl_framework_api, dlsym(handle, "glTexGeniv")); + + /* Pointer Incompatability: + * internalformat is a GLenum according to /System/Library/Frameworks/OpenGL.framework/Headers/gl.h + * extern void glTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); + * extern void glTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); + * extern void glTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); + * + * and it's a GLint in glx/glapitable.h and according to the man page + * void ( * TexImage1D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid * pixels); + * void ( * TexImage2D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels); + * void ( * TexImage3D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels); + * + * gl.h contains incorrect prototypes for glTexImage[123]D + */ + + SET_TexImage1D(__ogl_framework_api, dlsym(handle, "glTexImage1D")); + SET_TexImage2D(__ogl_framework_api, dlsym(handle, "glTexImage2D")); + SET_TexImage3D(__ogl_framework_api, dlsym(handle, "glTexImage3D")); + SET_TexParameterf(__ogl_framework_api, dlsym(handle, "glTexParameterf")); + SET_TexParameterfv(__ogl_framework_api, dlsym(handle, "glTexParameterfv")); + SET_TexParameteri(__ogl_framework_api, dlsym(handle, "glTexParameteri")); + SET_TexParameteriv(__ogl_framework_api, dlsym(handle, "glTexParameteriv")); + SET_TexSubImage1D(__ogl_framework_api, dlsym(handle, "glTexSubImage1D")); + SET_TexSubImage2D(__ogl_framework_api, dlsym(handle, "glTexSubImage2D")); + SET_TexSubImage3D(__ogl_framework_api, dlsym(handle, "glTexSubImage3D")); + SET_Translated(__ogl_framework_api, dlsym(handle, "glTranslated")); + SET_Translatef(__ogl_framework_api, dlsym(handle, "glTranslatef")); + SET_Vertex2d(__ogl_framework_api, dlsym(handle, "glVertex2d")); + SET_Vertex2dv(__ogl_framework_api, dlsym(handle, "glVertex2dv")); + SET_Vertex2f(__ogl_framework_api, dlsym(handle, "glVertex2f")); + SET_Vertex2fv(__ogl_framework_api, dlsym(handle, "glVertex2fv")); + SET_Vertex2i(__ogl_framework_api, dlsym(handle, "glVertex2i")); + SET_Vertex2iv(__ogl_framework_api, dlsym(handle, "glVertex2iv")); + SET_Vertex2s(__ogl_framework_api, dlsym(handle, "glVertex2s")); + SET_Vertex2sv(__ogl_framework_api, dlsym(handle, "glVertex2sv")); + SET_Vertex3d(__ogl_framework_api, dlsym(handle, "glVertex3d")); + SET_Vertex3dv(__ogl_framework_api, dlsym(handle, "glVertex3dv")); + SET_Vertex3f(__ogl_framework_api, dlsym(handle, "glVertex3f")); + SET_Vertex3fv(__ogl_framework_api, dlsym(handle, "glVertex3fv")); + SET_Vertex3i(__ogl_framework_api, dlsym(handle, "glVertex3i")); + SET_Vertex3iv(__ogl_framework_api, dlsym(handle, "glVertex3iv")); + SET_Vertex3s(__ogl_framework_api, dlsym(handle, "glVertex3s")); + SET_Vertex3sv(__ogl_framework_api, dlsym(handle, "glVertex3sv")); + SET_Vertex4d(__ogl_framework_api, dlsym(handle, "glVertex4d")); + SET_Vertex4dv(__ogl_framework_api, dlsym(handle, "glVertex4dv")); + SET_Vertex4f(__ogl_framework_api, dlsym(handle, "glVertex4f")); + SET_Vertex4fv(__ogl_framework_api, dlsym(handle, "glVertex4fv")); + SET_Vertex4i(__ogl_framework_api, dlsym(handle, "glVertex4i")); + SET_Vertex4iv(__ogl_framework_api, dlsym(handle, "glVertex4iv")); + SET_Vertex4s(__ogl_framework_api, dlsym(handle, "glVertex4s")); + SET_Vertex4sv(__ogl_framework_api, dlsym(handle, "glVertex4sv")); + SET_VertexPointer(__ogl_framework_api, dlsym(handle, "glVertexPointer")); + SET_Viewport(__ogl_framework_api, dlsym(handle, "glViewport")); + + /* GL_VERSION_2_0 */ + SET_AttachShader(__ogl_framework_api, dlsym(handle, "glAttachShader")); + SET_DeleteShader(__ogl_framework_api, dlsym(handle, "glDeleteShader")); + SET_DetachShader(__ogl_framework_api, dlsym(handle, "glDetachShader")); + SET_GetAttachedShaders(__ogl_framework_api, dlsym(handle, "glGetAttachedShaders")); + SET_GetProgramInfoLog(__ogl_framework_api, dlsym(handle, "glGetProgramInfoLog")); + SET_GetShaderInfoLog(__ogl_framework_api, dlsym(handle, "glGetShaderInfoLog")); + SET_GetShaderiv(__ogl_framework_api, dlsym(handle, "glGetShaderiv")); + SET_IsShader(__ogl_framework_api, dlsym(handle, "glIsShader")); + SET_StencilFuncSeparate(__ogl_framework_api, dlsym(handle, "glStencilFuncSeparate")); + SET_StencilMaskSeparate(__ogl_framework_api, dlsym(handle, "glStencilMaskSeparate")); + SET_StencilOpSeparate(__ogl_framework_api, dlsym(handle, "glStencilOpSeparate")); + + /* GL_VERSION_2_1 */ + SET_UniformMatrix2x3fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix2x3fv")); + SET_UniformMatrix2x4fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix2x4fv")); + SET_UniformMatrix3x2fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix3x2fv")); + SET_UniformMatrix3x4fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix3x4fv")); + SET_UniformMatrix4x2fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix4x2fv")); + SET_UniformMatrix4x3fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix4x3fv")); + + /* GL_APPLE_vertex_array_object */ + SET_BindVertexArrayAPPLE(__ogl_framework_api, dlsym(handle, "glBindVertexArrayAPPLE")); + SET_DeleteVertexArraysAPPLE(__ogl_framework_api, dlsym(handle, "glDeleteVertexArraysAPPLE")); + SET_GenVertexArraysAPPLE(__ogl_framework_api, dlsym(handle, "glGenVertexArraysAPPLE")); + SET_IsVertexArrayAPPLE(__ogl_framework_api, dlsym(handle, "glIsVertexArrayAPPLE")); + + /* GL_ARB_draw_buffers */ + SET_DrawBuffersARB(__ogl_framework_api, dlsym(handle, "glDrawBuffersARB")); + + /* GL_ARB_multisample */ + SET_SampleCoverageARB(__ogl_framework_api, dlsym(handle, "glSampleCoverageARB")); + + /* GL_ARB_multitexture */ + SET_ActiveTextureARB(__ogl_framework_api, dlsym(handle, "glActiveTextureARB")); + SET_ClientActiveTextureARB(__ogl_framework_api, dlsym(handle, "glClientActiveTextureARB")); + SET_MultiTexCoord1dARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1dARB")); + SET_MultiTexCoord1dvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1dvARB")); + SET_MultiTexCoord1fARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1fARB")); + SET_MultiTexCoord1fvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1fvARB")); + SET_MultiTexCoord1iARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1iARB")); + SET_MultiTexCoord1ivARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1ivARB")); + SET_MultiTexCoord1sARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1sARB")); + SET_MultiTexCoord1svARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord1svARB")); + SET_MultiTexCoord2dARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2dARB")); + SET_MultiTexCoord2dvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2dvARB")); + SET_MultiTexCoord2fARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2fARB")); + SET_MultiTexCoord2fvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2fvARB")); + SET_MultiTexCoord2iARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2iARB")); + SET_MultiTexCoord2ivARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2ivARB")); + SET_MultiTexCoord2sARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2sARB")); + SET_MultiTexCoord2svARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord2svARB")); + SET_MultiTexCoord3dARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3dARB")); + SET_MultiTexCoord3dvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3dvARB")); + SET_MultiTexCoord3fARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3fARB")); + SET_MultiTexCoord3fvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3fvARB")); + SET_MultiTexCoord3iARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3iARB")); + SET_MultiTexCoord3ivARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3ivARB")); + SET_MultiTexCoord3sARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3sARB")); + SET_MultiTexCoord3svARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord3svARB")); + SET_MultiTexCoord4dARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4dARB")); + SET_MultiTexCoord4dvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4dvARB")); + SET_MultiTexCoord4fARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4fARB")); + SET_MultiTexCoord4fvARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4fvARB")); + SET_MultiTexCoord4iARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4iARB")); + SET_MultiTexCoord4ivARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4ivARB")); + SET_MultiTexCoord4sARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4sARB")); + SET_MultiTexCoord4svARB(__ogl_framework_api, dlsym(handle, "glMultiTexCoord4svARB")); + + /* GL_ARB_occlusion_query */ + SET_BeginQueryARB(__ogl_framework_api, dlsym(handle, "glBeginQueryARB")); + SET_DeleteQueriesARB(__ogl_framework_api, dlsym(handle, "glDeleteQueriesARB")); + SET_EndQueryARB(__ogl_framework_api, dlsym(handle, "glEndQueryARB")); + SET_GenQueriesARB(__ogl_framework_api, dlsym(handle, "glGenQueriesARB")); + SET_GetQueryObjectivARB(__ogl_framework_api, dlsym(handle, "glGetQueryObjectivARB")); + SET_GetQueryObjectuivARB(__ogl_framework_api, dlsym(handle, "glGetQueryObjectuivARB")); + SET_GetQueryivARB(__ogl_framework_api, dlsym(handle, "glGetQueryivARB")); + SET_IsQueryARB(__ogl_framework_api, dlsym(handle, "glIsQueryARB")); + + /* GL_ARB_shader_objects */ + SET_AttachObjectARB(__ogl_framework_api, dlsym(handle, "glAttachObjectARB")); + SET_CompileShaderARB(__ogl_framework_api, dlsym(handle, "glCompileShaderARB")); + SET_DeleteObjectARB(__ogl_framework_api, dlsym(handle, "glDeleteObjectARB")); + SET_GetHandleARB(__ogl_framework_api, dlsym(handle, "glGetHandleARB")); + SET_DetachObjectARB(__ogl_framework_api, dlsym(handle, "glDetachObjectARB")); + SET_CreateProgramObjectARB(__ogl_framework_api, dlsym(handle, "glCreateProgramObjectARB")); + SET_CreateShaderObjectARB(__ogl_framework_api, dlsym(handle, "glCreateShaderObjectARB")); + SET_GetInfoLogARB(__ogl_framework_api, dlsym(handle, "glGetInfoLogARB")); + SET_GetActiveUniformARB(__ogl_framework_api, dlsym(handle, "glGetActiveUniformARB")); + SET_GetAttachedObjectsARB(__ogl_framework_api, dlsym(handle, "glGetAttachedObjectsARB")); + SET_GetObjectParameterfvARB(__ogl_framework_api, dlsym(handle, "glGetObjectParameterfvARB")); + SET_GetObjectParameterivARB(__ogl_framework_api, dlsym(handle, "glGetObjectParameterivARB")); + SET_GetShaderSourceARB(__ogl_framework_api, dlsym(handle, "glGetShaderSourceARB")); + SET_GetUniformLocationARB(__ogl_framework_api, dlsym(handle, "glGetUniformLocationARB")); + SET_GetUniformfvARB(__ogl_framework_api, dlsym(handle, "glGetUniformfvARB")); + SET_GetUniformivARB(__ogl_framework_api, dlsym(handle, "glGetUniformivARB")); + SET_LinkProgramARB(__ogl_framework_api, dlsym(handle, "glLinkProgramARB")); + SET_ShaderSourceARB(__ogl_framework_api, dlsym(handle, "glShaderSourceARB")); + SET_Uniform1fARB(__ogl_framework_api, dlsym(handle, "glUniform1fARB")); + SET_Uniform1fvARB(__ogl_framework_api, dlsym(handle, "glUniform1fvARB")); + SET_Uniform1iARB(__ogl_framework_api, dlsym(handle, "glUniform1iARB")); + SET_Uniform1ivARB(__ogl_framework_api, dlsym(handle, "glUniform1ivARB")); + SET_Uniform2fARB(__ogl_framework_api, dlsym(handle, "glUniform2fARB")); + SET_Uniform2fvARB(__ogl_framework_api, dlsym(handle, "glUniform2fvARB")); + SET_Uniform2iARB(__ogl_framework_api, dlsym(handle, "glUniform2iARB")); + SET_Uniform2ivARB(__ogl_framework_api, dlsym(handle, "glUniform2ivARB")); + SET_Uniform3fARB(__ogl_framework_api, dlsym(handle, "glUniform3fARB")); + SET_Uniform3fvARB(__ogl_framework_api, dlsym(handle, "glUniform3fvARB")); + SET_Uniform3iARB(__ogl_framework_api, dlsym(handle, "glUniform3iARB")); + SET_Uniform3ivARB(__ogl_framework_api, dlsym(handle, "glUniform3ivARB")); + SET_Uniform4fARB(__ogl_framework_api, dlsym(handle, "glUniform4fARB")); + SET_Uniform4fvARB(__ogl_framework_api, dlsym(handle, "glUniform4fvARB")); + SET_Uniform4iARB(__ogl_framework_api, dlsym(handle, "glUniform4iARB")); + SET_Uniform4ivARB(__ogl_framework_api, dlsym(handle, "glUniform4ivARB")); + SET_UniformMatrix2fvARB(__ogl_framework_api, dlsym(handle, "glUniformMatrix2fvARB")); + SET_UniformMatrix3fvARB(__ogl_framework_api, dlsym(handle, "glUniformMatrix3fvARB")); + SET_UniformMatrix4fvARB(__ogl_framework_api, dlsym(handle, "glUniformMatrix4fvARB")); + SET_UseProgramObjectARB(__ogl_framework_api, dlsym(handle, "glUseProgramObjectARB")); + SET_ValidateProgramARB(__ogl_framework_api, dlsym(handle, "glValidateProgramARB")); + + /* GL_ARB_texture_compression */ + SET_CompressedTexImage1DARB(__ogl_framework_api, dlsym(handle, "glCompressedTexImage1DARB")); + SET_CompressedTexImage2DARB(__ogl_framework_api, dlsym(handle, "glCompressedTexImage2DARB")); + SET_CompressedTexImage3DARB(__ogl_framework_api, dlsym(handle, "glCompressedTexImage3DARB")); + SET_CompressedTexSubImage1DARB(__ogl_framework_api, dlsym(handle, "glCompressedTexSubImage1DARB")); + SET_CompressedTexSubImage2DARB(__ogl_framework_api, dlsym(handle, "glCompressedTexSubImage2DARB")); + SET_CompressedTexSubImage3DARB(__ogl_framework_api, dlsym(handle, "glCompressedTexSubImage3DARB")); + SET_GetCompressedTexImageARB(__ogl_framework_api, dlsym(handle, "glGetCompressedTexImageARB")); + + /* GL_ARB_transpose_matrix */ + SET_LoadTransposeMatrixdARB(__ogl_framework_api, dlsym(handle, "glLoadTransposeMatrixdARB")); + SET_LoadTransposeMatrixfARB(__ogl_framework_api, dlsym(handle, "glLoadTransposeMatrixfARB")); + SET_MultTransposeMatrixdARB(__ogl_framework_api, dlsym(handle, "glMultTransposeMatrixdARB")); + SET_MultTransposeMatrixfARB(__ogl_framework_api, dlsym(handle, "glMultTransposeMatrixfARB")); + + /* GL_ARB_vertex_buffer_object */ + SET_BindBufferARB(__ogl_framework_api, dlsym(handle, "glBindBufferARB")); + SET_BufferDataARB(__ogl_framework_api, dlsym(handle, "glBufferDataARB")); + SET_BufferSubDataARB(__ogl_framework_api, dlsym(handle, "glBufferSubDataARB")); + SET_DeleteBuffersARB(__ogl_framework_api, dlsym(handle, "glDeleteBuffersARB")); + SET_GenBuffersARB(__ogl_framework_api, dlsym(handle, "glGenBuffersARB")); + SET_GetBufferParameterivARB(__ogl_framework_api, dlsym(handle, "glGetBufferParameterivARB")); + SET_GetBufferPointervARB(__ogl_framework_api, dlsym(handle, "glGetBufferPointervARB")); + SET_GetBufferSubDataARB(__ogl_framework_api, dlsym(handle, "glGetBufferSubDataARB")); + SET_IsBufferARB(__ogl_framework_api, dlsym(handle, "glIsBufferARB")); + SET_MapBufferARB(__ogl_framework_api, dlsym(handle, "glMapBufferARB")); + SET_UnmapBufferARB(__ogl_framework_api, dlsym(handle, "glUnmapBufferARB")); + + /* GL_ARB_vertex_program */ + SET_DisableVertexAttribArrayARB(__ogl_framework_api, dlsym(handle, "glDisableVertexAttribArrayARB")); + SET_EnableVertexAttribArrayARB(__ogl_framework_api, dlsym(handle, "glEnableVertexAttribArrayARB")); + SET_GetProgramEnvParameterdvARB(__ogl_framework_api, dlsym(handle, "glGetProgramEnvParameterdvARB")); + SET_GetProgramEnvParameterfvARB(__ogl_framework_api, dlsym(handle, "glGetProgramEnvParameterfvARB")); + SET_GetProgramLocalParameterdvARB(__ogl_framework_api, dlsym(handle, "glGetProgramLocalParameterdvARB")); + SET_GetProgramLocalParameterfvARB(__ogl_framework_api, dlsym(handle, "glGetProgramLocalParameterfvARB")); + SET_GetProgramStringARB(__ogl_framework_api, dlsym(handle, "glGetProgramStringARB")); + SET_GetProgramivARB(__ogl_framework_api, dlsym(handle, "glGetProgramivARB")); + SET_GetVertexAttribdvARB(__ogl_framework_api, dlsym(handle, "glGetVertexAttribdvARB")); + SET_GetVertexAttribfvARB(__ogl_framework_api, dlsym(handle, "glGetVertexAttribfvARB")); + SET_GetVertexAttribivARB(__ogl_framework_api, dlsym(handle, "glGetVertexAttribivARB")); + SET_ProgramEnvParameter4dARB(__ogl_framework_api, dlsym(handle, "glProgramEnvParameter4dARB")); + SET_ProgramEnvParameter4dvARB(__ogl_framework_api, dlsym(handle, "glProgramEnvParameter4dvARB")); + SET_ProgramEnvParameter4fARB(__ogl_framework_api, dlsym(handle, "glProgramEnvParameter4fARB")); + SET_ProgramEnvParameter4fvARB(__ogl_framework_api, dlsym(handle, "glProgramEnvParameter4fvARB")); + SET_ProgramLocalParameter4dARB(__ogl_framework_api, dlsym(handle, "glProgramLocalParameter4dARB")); + SET_ProgramLocalParameter4dvARB(__ogl_framework_api, dlsym(handle, "glProgramLocalParameter4dvARB")); + SET_ProgramLocalParameter4fARB(__ogl_framework_api, dlsym(handle, "glProgramLocalParameter4fARB")); + SET_ProgramLocalParameter4fvARB(__ogl_framework_api, dlsym(handle, "glProgramLocalParameter4fvARB")); + SET_ProgramStringARB(__ogl_framework_api, dlsym(handle, "glProgramStringARB")); + SET_VertexAttrib1dARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib1dARB")); + SET_VertexAttrib1dvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib1dvARB")); + SET_VertexAttrib1fARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib1fARB")); + SET_VertexAttrib1fvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib1fvARB")); + SET_VertexAttrib1sARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib1sARB")); + SET_VertexAttrib1svARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib1svARB")); + SET_VertexAttrib2dARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib2dARB")); + SET_VertexAttrib2dvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib2dvARB")); + SET_VertexAttrib2fARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib2fARB")); + SET_VertexAttrib2fvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib2fvARB")); + SET_VertexAttrib2sARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib2sARB")); + SET_VertexAttrib2svARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib2svARB")); + SET_VertexAttrib3dARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib3dARB")); + SET_VertexAttrib3dvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib3dvARB")); + SET_VertexAttrib3fARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib3fARB")); + SET_VertexAttrib3fvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib3fvARB")); + SET_VertexAttrib3sARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib3sARB")); + SET_VertexAttrib3svARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib3svARB")); + SET_VertexAttrib4NbvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NbvARB")); + SET_VertexAttrib4NivARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NivARB")); + SET_VertexAttrib4NsvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NsvARB")); + SET_VertexAttrib4NubARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NubARB")); + SET_VertexAttrib4NubvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NubvARB")); + SET_VertexAttrib4NuivARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NuivARB")); + SET_VertexAttrib4NusvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4NusvARB")); + SET_VertexAttrib4bvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4bvARB")); + SET_VertexAttrib4dARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4dARB")); + SET_VertexAttrib4dvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4dvARB")); + SET_VertexAttrib4fARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4fARB")); + SET_VertexAttrib4fvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4fvARB")); + SET_VertexAttrib4ivARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4ivARB")); + SET_VertexAttrib4sARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4sARB")); + SET_VertexAttrib4svARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4svARB")); + SET_VertexAttrib4ubvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4ubvARB")); + SET_VertexAttrib4uivARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4uivARB")); + SET_VertexAttrib4usvARB(__ogl_framework_api, dlsym(handle, "glVertexAttrib4usvARB")); + SET_VertexAttribPointerARB(__ogl_framework_api, dlsym(handle, "glVertexAttribPointerARB")); + + /* GL_ARB_vertex_shader */ + SET_BindAttribLocationARB(__ogl_framework_api, dlsym(handle, "glBindAttribLocationARB")); + SET_GetActiveAttribARB(__ogl_framework_api, dlsym(handle, "glGetActiveAttribARB")); + SET_GetAttribLocationARB(__ogl_framework_api, dlsym(handle, "glGetAttribLocationARB")); + + /* GL_ARB_window_pos */ + SET_WindowPos2dMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2dARB")); + SET_WindowPos2dvMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2dvARB")); + SET_WindowPos2fMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2fARB")); + SET_WindowPos2fvMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2fvARB")); + SET_WindowPos2iMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2iARB")); + SET_WindowPos2ivMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2ivARB")); + SET_WindowPos2sMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2sARB")); + SET_WindowPos2svMESA(__ogl_framework_api, dlsym(handle, "glWindowPos2svARB")); + SET_WindowPos3dMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3dARB")); + SET_WindowPos3dvMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3dvARB")); + SET_WindowPos3fMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3fARB")); + SET_WindowPos3fvMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3fvARB")); + SET_WindowPos3iMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3iARB")); + SET_WindowPos3ivMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3ivARB")); + SET_WindowPos3sMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3sARB")); + SET_WindowPos3svMESA(__ogl_framework_api, dlsym(handle, "glWindowPos3svARB")); + + /* GL_ATI_fragment_shader / GL_EXT_fragment_shader */ + if(dlsym(handle, "glAlphaFragmentOp1ATI")) { + /* GL_ATI_fragment_shader */ + SET_AlphaFragmentOp1ATI(__ogl_framework_api, dlsym(handle, "glAlphaFragmentOp1ATI")); + SET_AlphaFragmentOp2ATI(__ogl_framework_api, dlsym(handle, "glAlphaFragmentOp2ATI")); + SET_AlphaFragmentOp3ATI(__ogl_framework_api, dlsym(handle, "glAlphaFragmentOp3ATI")); + SET_BeginFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glBeginFragmentShaderATI")); + SET_BindFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glBindFragmentShaderATI")); + SET_ColorFragmentOp1ATI(__ogl_framework_api, dlsym(handle, "glColorFragmentOp1ATI")); + SET_ColorFragmentOp2ATI(__ogl_framework_api, dlsym(handle, "glColorFragmentOp2ATI")); + SET_ColorFragmentOp3ATI(__ogl_framework_api, dlsym(handle, "glColorFragmentOp3ATI")); + SET_DeleteFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glDeleteFragmentShaderATI")); + SET_EndFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glEndFragmentShaderATI")); + SET_GenFragmentShadersATI(__ogl_framework_api, dlsym(handle, "glGenFragmentShadersATI")); + SET_PassTexCoordATI(__ogl_framework_api, dlsym(handle, "glPassTexCoordATI")); + SET_SampleMapATI(__ogl_framework_api, dlsym(handle, "glSampleMapATI")); + SET_SetFragmentShaderConstantATI(__ogl_framework_api, dlsym(handle, "glSetFragmentShaderConstantATI")); + } else { + /* GL_EXT_fragment_shader */ + SET_AlphaFragmentOp1ATI(__ogl_framework_api, dlsym(handle, "glAlphaFragmentOp1EXT")); + SET_AlphaFragmentOp2ATI(__ogl_framework_api, dlsym(handle, "glAlphaFragmentOp2EXT")); + SET_AlphaFragmentOp3ATI(__ogl_framework_api, dlsym(handle, "glAlphaFragmentOp3EXT")); + SET_BeginFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glBeginFragmentShaderEXT")); + SET_BindFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glBindFragmentShaderEXT")); + SET_ColorFragmentOp1ATI(__ogl_framework_api, dlsym(handle, "glColorFragmentOp1EXT")); + SET_ColorFragmentOp2ATI(__ogl_framework_api, dlsym(handle, "glColorFragmentOp2EXT")); + SET_ColorFragmentOp3ATI(__ogl_framework_api, dlsym(handle, "glColorFragmentOp3EXT")); + SET_DeleteFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glDeleteFragmentShaderEXT")); + SET_EndFragmentShaderATI(__ogl_framework_api, dlsym(handle, "glEndFragmentShaderEXT")); + SET_GenFragmentShadersATI(__ogl_framework_api, dlsym(handle, "glGenFragmentShadersEXT")); + SET_PassTexCoordATI(__ogl_framework_api, dlsym(handle, "glPassTexCoordEXT")); + SET_SampleMapATI(__ogl_framework_api, dlsym(handle, "glSampleMapEXT")); + SET_SetFragmentShaderConstantATI(__ogl_framework_api, dlsym(handle, "glSetFragmentShaderConstantEXT")); + } + + /* GL_ATI_separate_stencil */ + SET_StencilFuncSeparateATI(__ogl_framework_api, dlsym(handle, "glStencilFuncSeparateATI")); + + /* GL_EXT_blend_equation_separate */ + SET_BlendEquationSeparateEXT(__ogl_framework_api, dlsym(handle, "glBlendEquationSeparateEXT")); + + /* GL_EXT_blend_func_separate */ + SET_BlendFuncSeparateEXT(__ogl_framework_api, dlsym(handle, "glBlendFuncSeparateEXT")); + + /* GL_EXT_depth_bounds_test */ + SET_DepthBoundsEXT(__ogl_framework_api, dlsym(handle, "glDepthBoundsEXT")); + + /* GL_EXT_compiled_vertex_array */ + SET_LockArraysEXT(__ogl_framework_api, dlsym(handle, "glLockArraysEXT")); + SET_UnlockArraysEXT(__ogl_framework_api, dlsym(handle, "glUnlockArraysEXT")); + + /* GL_EXT_cull_vertex */ +// SET_CullParameterdvEXT(__ogl_framework_api, dlsym(handle, "glCullParameterdvEXT")); +// SET_CullParameterfvEXT(__ogl_framework_api, dlsym(handle, "glCullParameterfvEXT")); + + /* GL_EXT_fog_coord */ + SET_FogCoordPointerEXT(__ogl_framework_api, dlsym(handle, "glFogCoordPointerEXT")); + SET_FogCoorddEXT(__ogl_framework_api, dlsym(handle, "glFogCoorddEXT")); + SET_FogCoorddvEXT(__ogl_framework_api, dlsym(handle, "glFogCoorddvEXT")); + SET_FogCoordfEXT(__ogl_framework_api, dlsym(handle, "glFogCoordfEXT")); + SET_FogCoordfvEXT(__ogl_framework_api, dlsym(handle, "glFogCoordfvEXT")); + + /* GL_EXT_framebuffer_blit */ + SET_BlitFramebufferEXT(__ogl_framework_api, dlsym(handle, "glBlitFramebufferEXT")); + + /* GL_EXT_framebuffer_object */ + SET_BindFramebufferEXT(__ogl_framework_api, dlsym(handle, "glBindFramebufferEXT")); + SET_BindRenderbufferEXT(__ogl_framework_api, dlsym(handle, "glBindRenderbufferEXT")); + SET_CheckFramebufferStatusEXT(__ogl_framework_api, dlsym(handle, "glCheckFramebufferStatusEXT")); + SET_DeleteFramebuffersEXT(__ogl_framework_api, dlsym(handle, "glDeleteFramebuffersEXT")); + SET_DeleteRenderbuffersEXT(__ogl_framework_api, dlsym(handle, "glDeleteRenderbuffersEXT")); + SET_FramebufferRenderbufferEXT(__ogl_framework_api, dlsym(handle, "glFramebufferRenderbufferEXT")); + SET_FramebufferTexture1DEXT(__ogl_framework_api, dlsym(handle, "glFramebufferTexture1DEXT")); + SET_FramebufferTexture2DEXT(__ogl_framework_api, dlsym(handle, "glFramebufferTexture2DEXT")); + SET_FramebufferTexture3DEXT(__ogl_framework_api, dlsym(handle, "glFramebufferTexture3DEXT")); + SET_GenerateMipmapEXT(__ogl_framework_api, dlsym(handle, "glGenerateMipmapEXT")); + SET_GenFramebuffersEXT(__ogl_framework_api, dlsym(handle, "glGenFramebuffersEXT")); + SET_GenRenderbuffersEXT(__ogl_framework_api, dlsym(handle, "glGenRenderbuffersEXT")); + SET_GetFramebufferAttachmentParameterivEXT(__ogl_framework_api, dlsym(handle, "glGetFramebufferAttachmentParameterivEXT")); + SET_GetRenderbufferParameterivEXT(__ogl_framework_api, dlsym(handle, "glGetRenderbufferParameterivEXT")); + SET_IsFramebufferEXT(__ogl_framework_api, dlsym(handle, "glIsFramebufferEXT")); + SET_IsRenderbufferEXT(__ogl_framework_api, dlsym(handle, "glIsRenderbufferEXT")); + SET_RenderbufferStorageEXT(__ogl_framework_api, dlsym(handle, "glRenderbufferStorageEXT")); + + /* GL_EXT_gpu_program_parameters */ + SET_ProgramEnvParameters4fvEXT(__ogl_framework_api, dlsym(handle, "glProgramEnvParameters4fvEXT")); + SET_ProgramLocalParameters4fvEXT(__ogl_framework_api, dlsym(handle, "glProgramLocalParameters4fvEXT")); + + /* Pointer Incompatability: + * This warning can be safely ignored. OpenGL.framework adds const to the + * two pointers. + * + * extern void glMultiDrawArraysEXT (GLenum, const GLint *, const GLsizei *, GLsizei); + * + * void ( * MultiDrawArraysEXT)(GLenum mode, GLint * first, GLsizei * count, GLsizei primcount); + */ + + /* GL_EXT_multi_draw_arrays */ + SET_MultiDrawArraysEXT(__ogl_framework_api, (void *)dlsym(handle, "glMultiDrawArraysEXT")); + SET_MultiDrawElementsEXT(__ogl_framework_api, dlsym(handle, "glMultiDrawElementsEXT")); + + /* GL_EXT_point_parameters / GL_ARB_point_parameters */ + if(dlsym(handle, "glPointParameterfEXT")) { + /* GL_EXT_point_parameters */ + SET_PointParameterfEXT(__ogl_framework_api, dlsym(handle, "glPointParameterfEXT")); + SET_PointParameterfvEXT(__ogl_framework_api, dlsym(handle, "glPointParameterfvEXT")); + } else { + /* GL_ARB_point_parameters */ + SET_PointParameterfEXT(__ogl_framework_api, dlsym(handle, "glPointParameterfARB")); + SET_PointParameterfvEXT(__ogl_framework_api, dlsym(handle, "glPointParameterfvARB")); + } + + /* GL_EXT_polygon_offset */ + SET_PolygonOffsetEXT(__ogl_framework_api, dlsym(handle, "glPolygonOffsetEXT")); + + /* GL_EXT_secondary_color */ + SET_SecondaryColor3bEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3bEXT")); + SET_SecondaryColor3bvEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3bvEXT")); + SET_SecondaryColor3dEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3dEXT")); + SET_SecondaryColor3dvEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3dvEXT")); + SET_SecondaryColor3fEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3fEXT")); + SET_SecondaryColor3fvEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3fvEXT")); + SET_SecondaryColor3iEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3iEXT")); + SET_SecondaryColor3ivEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3ivEXT")); + SET_SecondaryColor3sEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3sEXT")); + SET_SecondaryColor3svEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3svEXT")); + SET_SecondaryColor3ubEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3ubEXT")); + SET_SecondaryColor3ubvEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3ubvEXT")); + SET_SecondaryColor3uiEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3uiEXT")); + SET_SecondaryColor3uivEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3uivEXT")); + SET_SecondaryColor3usEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3usEXT")); + SET_SecondaryColor3usvEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColor3usvEXT")); + SET_SecondaryColorPointerEXT(__ogl_framework_api, dlsym(handle, "glSecondaryColorPointerEXT")); + + /* GL_EXT_stencil_two_side */ + SET_ActiveStencilFaceEXT(__ogl_framework_api, dlsym(handle, "glActiveStencilFaceEXT")); + + /* GL_EXT_timer_query */ + SET_GetQueryObjecti64vEXT(__ogl_framework_api, dlsym(handle, "glGetQueryObjecti64vEXT")); + SET_GetQueryObjectui64vEXT(__ogl_framework_api, dlsym(handle, "glGetQueryObjectui64vEXT")); + + /* GL_EXT_vertex_array */ + SET_ColorPointerEXT(__ogl_framework_api, dlsym(handle, "glColorPointerEXT")); + SET_EdgeFlagPointerEXT(__ogl_framework_api, dlsym(handle, "glEdgeFlagPointerEXT")); + SET_IndexPointerEXT(__ogl_framework_api, dlsym(handle, "glIndexPointerEXT")); + SET_NormalPointerEXT(__ogl_framework_api, dlsym(handle, "glNormalPointerEXT")); + SET_TexCoordPointerEXT(__ogl_framework_api, dlsym(handle, "glTexCoordPointerEXT")); + SET_VertexPointerEXT(__ogl_framework_api, dlsym(handle, "glVertexPointerEXT")); + + /* GL_IBM_multimode_draw_arrays */ + SET_MultiModeDrawArraysIBM(__ogl_framework_api, dlsym(handle, "glMultiModeDrawArraysIBM")); + SET_MultiModeDrawElementsIBM(__ogl_framework_api, dlsym(handle, "glMultiModeDrawElementsIBM")); + + /* GL_MESA_resize_buffers */ + SET_ResizeBuffersMESA(__ogl_framework_api, dlsym(handle, "glResizeBuffersMESA")); + + /* GL_MESA_window_pos */ + SET_WindowPos4dMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4dMESA")); + SET_WindowPos4dvMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4dvMESA")); + SET_WindowPos4fMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4fMESA")); + SET_WindowPos4fvMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4fvMESA")); + SET_WindowPos4iMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4iMESA")); + SET_WindowPos4ivMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4ivMESA")); + SET_WindowPos4sMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4sMESA")); + SET_WindowPos4svMESA(__ogl_framework_api, dlsym(handle, "glWindowPos4svMESA")); + + /* GL_NV_fence */ + SET_DeleteFencesNV(__ogl_framework_api, dlsym(handle, "glDeleteFencesNV")); + SET_FinishFenceNV(__ogl_framework_api, dlsym(handle, "glFinishFenceNV")); + SET_GenFencesNV(__ogl_framework_api, dlsym(handle, "glGenFencesNV")); + SET_GetFenceivNV(__ogl_framework_api, dlsym(handle, "glGetFenceivNV")); + SET_IsFenceNV(__ogl_framework_api, dlsym(handle, "glIsFenceNV")); + SET_SetFenceNV(__ogl_framework_api, dlsym(handle, "glSetFenceNV")); + SET_TestFenceNV(__ogl_framework_api, dlsym(handle, "glTestFenceNV")); + + /* GL_NV_fragment_program */ + SET_GetProgramNamedParameterdvNV(__ogl_framework_api, dlsym(handle, "glGetProgramNamedParameterdvNV")); + SET_GetProgramNamedParameterfvNV(__ogl_framework_api, dlsym(handle, "glGetProgramNamedParameterfvNV")); + SET_ProgramNamedParameter4dNV(__ogl_framework_api, dlsym(handle, "glProgramNamedParameter4dNV")); + SET_ProgramNamedParameter4dvNV(__ogl_framework_api, dlsym(handle, "glProgramNamedParameter4dvNV")); + SET_ProgramNamedParameter4fNV(__ogl_framework_api, dlsym(handle, "glProgramNamedParameter4fNV")); + SET_ProgramNamedParameter4fvNV(__ogl_framework_api, dlsym(handle, "glProgramNamedParameter4fvNV")); + + /* GL_NV_geometry_program4 */ + SET_FramebufferTextureLayerEXT(__ogl_framework_api, dlsym(handle, "glFramebufferTextureLayerEXT")); + + /* GL_NV_point_sprite */ + SET_PointParameteriNV(__ogl_framework_api, dlsym(handle, "glPointParameteriNV")); + SET_PointParameterivNV(__ogl_framework_api, dlsym(handle, "glPointParameterivNV")); + + /* GL_NV_register_combiners */ + SET_CombinerInputNV(__ogl_framework_api, dlsym(handle, "glCombinerInputNV")); + SET_CombinerOutputNV(__ogl_framework_api, dlsym(handle, "glCombinerOutputNV")); + SET_CombinerParameterfNV(__ogl_framework_api, dlsym(handle, "glCombinerParameterfNV")); + SET_CombinerParameterfvNV(__ogl_framework_api, dlsym(handle, "glCombinerParameterfvNV")); + SET_CombinerParameteriNV(__ogl_framework_api, dlsym(handle, "glCombinerParameteriNV")); + SET_CombinerParameterivNV(__ogl_framework_api, dlsym(handle, "glCombinerParameterivNV")); + SET_FinalCombinerInputNV(__ogl_framework_api, dlsym(handle, "glFinalCombinerInputNV")); + SET_GetCombinerInputParameterfvNV(__ogl_framework_api, dlsym(handle, "glGetCombinerInputParameterfvNV")); + SET_GetCombinerInputParameterivNV(__ogl_framework_api, dlsym(handle, "glGetCombinerInputParameterivNV")); + SET_GetCombinerOutputParameterfvNV(__ogl_framework_api, dlsym(handle, "glGetCombinerOutputParameterfvNV")); + SET_GetCombinerOutputParameterivNV(__ogl_framework_api, dlsym(handle, "glGetCombinerOutputParameterivNV")); + SET_GetFinalCombinerInputParameterfvNV(__ogl_framework_api, dlsym(handle, "glGetFinalCombinerInputParameterfvNV")); + SET_GetFinalCombinerInputParameterivNV(__ogl_framework_api, dlsym(handle, "glGetFinalCombinerInputParameterivNV")); + + /* GL_NV_vertex_array_range */ + SET_FlushVertexArrayRangeNV(__ogl_framework_api, dlsym(handle, "glFlushVertexArrayRangeNV")); + SET_VertexArrayRangeNV(__ogl_framework_api, dlsym(handle, "glVertexArrayRangeNV")); + + /* GL_NV_vertex_program */ + SET_AreProgramsResidentNV(__ogl_framework_api, dlsym(handle, "glAreProgramsResidentNV")); + SET_BindProgramNV(__ogl_framework_api, dlsym(handle, "glBindProgramNV")); + SET_DeleteProgramsNV(__ogl_framework_api, dlsym(handle, "glDeleteProgramsNV")); + SET_ExecuteProgramNV(__ogl_framework_api, dlsym(handle, "glExecuteProgramNV")); + SET_GenProgramsNV(__ogl_framework_api, dlsym(handle, "glGenProgramsNV")); + SET_GetProgramParameterdvNV(__ogl_framework_api, dlsym(handle, "glGetProgramParameterdvNV")); + SET_GetProgramParameterfvNV(__ogl_framework_api, dlsym(handle, "glGetProgramParameterfvNV")); + SET_GetProgramStringNV(__ogl_framework_api, dlsym(handle, "glGetProgramStringNV")); + SET_GetProgramivNV(__ogl_framework_api, dlsym(handle, "glGetProgramivNV")); + SET_GetTrackMatrixivNV(__ogl_framework_api, dlsym(handle, "glGetTrackMatrixivNV")); + SET_GetVertexAttribPointervNV(__ogl_framework_api, dlsym(handle, "glGetVertexAttribPointervNV")); + SET_GetVertexAttribdvNV(__ogl_framework_api, dlsym(handle, "glGetVertexAttribdvNV")); + SET_GetVertexAttribfvNV(__ogl_framework_api, dlsym(handle, "glGetVertexAttribfvNV")); + SET_GetVertexAttribivNV(__ogl_framework_api, dlsym(handle, "glGetVertexAttribivNV")); + SET_IsProgramNV(__ogl_framework_api, dlsym(handle, "glIsProgramNV")); + SET_LoadProgramNV(__ogl_framework_api, dlsym(handle, "glLoadProgramNV")); + SET_ProgramParameters4dvNV(__ogl_framework_api, dlsym(handle, "glProgramParameters4dvNV")); + SET_ProgramParameters4fvNV(__ogl_framework_api, dlsym(handle, "glProgramParameters4fvNV")); + SET_RequestResidentProgramsNV(__ogl_framework_api, dlsym(handle, "glRequestResidentProgramsNV")); + SET_TrackMatrixNV(__ogl_framework_api, dlsym(handle, "glTrackMatrixNV")); + SET_VertexAttrib1dNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib1dNV")); + SET_VertexAttrib1dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib1dvNV")); + SET_VertexAttrib1fNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib1fNV")); + SET_VertexAttrib1fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib1fvNV")); + SET_VertexAttrib1sNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib1sNV")); + SET_VertexAttrib1svNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib1svNV")); + SET_VertexAttrib2dNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib2dNV")); + SET_VertexAttrib2dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib2dvNV")); + SET_VertexAttrib2fNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib2fNV")); + SET_VertexAttrib2fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib2fvNV")); + SET_VertexAttrib2sNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib2sNV")); + SET_VertexAttrib2svNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib2svNV")); + SET_VertexAttrib3dNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib3dNV")); + SET_VertexAttrib3dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib3dvNV")); + SET_VertexAttrib3fNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib3fNV")); + SET_VertexAttrib3fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib3fvNV")); + SET_VertexAttrib3sNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib3sNV")); + SET_VertexAttrib3svNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib3svNV")); + SET_VertexAttrib4dNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4dNV")); + SET_VertexAttrib4dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4dvNV")); + SET_VertexAttrib4fNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4fNV")); + SET_VertexAttrib4fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4fvNV")); + SET_VertexAttrib4sNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4sNV")); + SET_VertexAttrib4svNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4svNV")); + SET_VertexAttrib4ubNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4ubNV")); + SET_VertexAttrib4ubvNV(__ogl_framework_api, dlsym(handle, "glVertexAttrib4ubvNV")); + SET_VertexAttribPointerNV(__ogl_framework_api, dlsym(handle, "glVertexAttribPointerNV")); + SET_VertexAttribs1dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs1dvNV")); + SET_VertexAttribs1fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs1fvNV")); + SET_VertexAttribs1svNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs1svNV")); + SET_VertexAttribs2dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs2dvNV")); + SET_VertexAttribs2fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs2fvNV")); + SET_VertexAttribs2svNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs2svNV")); + SET_VertexAttribs3dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs3dvNV")); + SET_VertexAttribs3fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs3fvNV")); + SET_VertexAttribs3svNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs3svNV")); + SET_VertexAttribs4dvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs4dvNV")); + SET_VertexAttribs4fvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs4fvNV")); + SET_VertexAttribs4svNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs4svNV")); + SET_VertexAttribs4ubvNV(__ogl_framework_api, dlsym(handle, "glVertexAttribs4ubvNV")); + + /* GL_SGIS_multisample */ + SET_SampleMaskSGIS(__ogl_framework_api, dlsym(handle, "glSampleMaskSGIS")); + SET_SamplePatternSGIS(__ogl_framework_api, dlsym(handle, "glSamplePatternSGIS")); + + /* GL_SGIS_pixel_texture */ + SET_GetPixelTexGenParameterfvSGIS(__ogl_framework_api, dlsym(handle, "glGetPixelTexGenParameterfvSGIS")); + SET_GetPixelTexGenParameterivSGIS(__ogl_framework_api, dlsym(handle, "glGetPixelTexGenParameterivSGIS")); + SET_PixelTexGenParameterfSGIS(__ogl_framework_api, dlsym(handle, "glPixelTexGenParameterfSGIS")); + SET_PixelTexGenParameterfvSGIS(__ogl_framework_api, dlsym(handle, "glPixelTexGenParameterfvSGIS")); + SET_PixelTexGenParameteriSGIS(__ogl_framework_api, dlsym(handle, "glPixelTexGenParameteriSGIS")); + SET_PixelTexGenParameterivSGIS(__ogl_framework_api, dlsym(handle, "glPixelTexGenParameterivSGIS")); + SET_PixelTexGenSGIX(__ogl_framework_api, dlsym(handle, "glPixelTexGenSGIX")); + + __applegl_api = malloc(sizeof(struct _glapi_table)); + assert(__applegl_api); + memcpy(__applegl_api, __ogl_framework_api, sizeof(struct _glapi_table)); + + SET_ReadPixels(__applegl_api, __applegl_glReadPixels); + SET_CopyPixels(__applegl_api, __applegl_glCopyPixels); + SET_CopyColorTable(__applegl_api, __applegl_glCopyColorTable); + SET_DrawBuffer(__applegl_api, __applegl_glDrawBuffer); + SET_DrawBuffersARB(__applegl_api, __applegl_glDrawBuffersARB); + SET_Viewport(__applegl_api, __applegl_glViewport); + + _glapi_set_dispatch(__applegl_api); +} diff --git a/src/glx/apple/apple_glx.c b/src/glx/apple/apple_glx.c index d9bc0917156..e8f94407ea4 100644 --- a/src/glx/apple/apple_glx.c +++ b/src/glx/apple/apple_glx.c @@ -37,7 +37,6 @@ #include "apple_glx.h" #include "apple_glx_context.h" #include "apple_cgl.h" -#include "apple_xgl_api.h" static bool initialized = false; static int dri_event_base = 0; diff --git a/src/glx/apple/apple_glx.h b/src/glx/apple/apple_glx.h index 9b3643bf156..5e81c5901ab 100644 --- a/src/glx/apple/apple_glx.h +++ b/src/glx/apple/apple_glx.h @@ -46,4 +46,6 @@ void *apple_glx_get_proc_address(const GLubyte * procname); void apple_glx_waitx(Display * dpy, void *ptr); int apple_get_dri_event_base(void); +void apple_xgl_init_direct(void); + #endif diff --git a/src/glx/apple/apple_xgl_api_additional.c b/src/glx/apple/apple_xgl_api.h similarity index 63% rename from src/glx/apple/apple_xgl_api_additional.c rename to src/glx/apple/apple_xgl_api.h index 7d40afe1d7f..c6d8903a0b3 100644 --- a/src/glx/apple/apple_xgl_api_additional.c +++ b/src/glx/apple/apple_xgl_api.h @@ -1,5 +1,5 @@ /* - Copyright (c) 2008, 2009 Apple Inc. + Copyright (c) 2011 Apple Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files @@ -27,11 +27,26 @@ prior written authorization. */ -#define GL_GLEXT_PROTOTYPES -#include +#ifndef APPLE_XGL_API_H -GLAPI void APIENTRY glTexImage3DEXT(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei - depth, GLint border, GLenum format, GLenum type, const void * pixels) { - glTexImage3D(target, level, (GLint)internalformat, width, height, depth, border, format, type, pixels); -} +__private_extern__ void +__applegl_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, + GLenum format, GLenum type, void *pixels); +__private_extern__ void +__applegl_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); + +__private_extern__ void +__applegl_glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, + GLsizei width); + +__private_extern__ void +__applegl_glDrawBuffer(GLenum mode); + +__private_extern__ void +__applegl_glDrawBuffersARB(GLsizei n, const GLenum * bufs); + +__private_extern__ void +__applegl_glViewport(GLint x, GLint y, GLsizei width, GLsizei height); + +#endif diff --git a/src/glx/apple/apple_xgl_api_read.c b/src/glx/apple/apple_xgl_api_read.c index 4a8873f03ad..612f5f7b01f 100644 --- a/src/glx/apple/apple_xgl_api_read.c +++ b/src/glx/apple/apple_xgl_api_read.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2008, 2009 Apple Inc. + Copyright (c) 2008-2011 Apple Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files @@ -37,8 +37,9 @@ #include "glxclient.h" #include "apple_glx_context.h" #include "apple_xgl_api.h" +#include "glapitable.h" -extern struct apple_xgl_api __ogl_framework_api; +extern struct _glapi_table * __ogl_framework_api; struct apple_xgl_saved_state { @@ -95,39 +96,39 @@ UnsetRead(struct apple_xgl_saved_state *saved) } void -glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, +__applegl_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels) { struct apple_xgl_saved_state saved; SetRead(&saved); - __ogl_framework_api.ReadPixels(x, y, width, height, format, type, pixels); + __ogl_framework_api->ReadPixels(x, y, width, height, format, type, pixels); UnsetRead(&saved); } void -glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type) +__applegl_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type) { struct apple_xgl_saved_state saved; SetRead(&saved); - __ogl_framework_api.CopyPixels(x, y, width, height, type); + __ogl_framework_api->CopyPixels(x, y, width, height, type); UnsetRead(&saved); } void -glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, +__applegl_glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width) { struct apple_xgl_saved_state saved; SetRead(&saved); - __ogl_framework_api.CopyColorTable(target, internalformat, x, y, width); + __ogl_framework_api->CopyColorTable(target, internalformat, x, y, width); UnsetRead(&saved); } diff --git a/src/glx/apple/apple_xgl_api_stereo.c b/src/glx/apple/apple_xgl_api_stereo.c index a3c2156c259..2664a3f226b 100644 --- a/src/glx/apple/apple_xgl_api_stereo.c +++ b/src/glx/apple/apple_xgl_api_stereo.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2009 Apple Inc. + Copyright (c) 2009-2011 Apple Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files @@ -40,14 +40,16 @@ #include "glxclient.h" #include "apple_glx_context.h" #include "apple_xgl_api.h" +#include "glapitable.h" + +extern struct _glapi_table * __ogl_framework_api; -extern struct apple_xgl_api __ogl_framework_api; /* * These are special functions for stereoscopic support * differences in MacOS X. */ void -glDrawBuffer(GLenum mode) +__applegl_glDrawBuffer(GLenum mode) { struct glx_context * gc = __glXGetCurrentContext(); @@ -73,16 +75,16 @@ glDrawBuffer(GLenum mode) break; } - __ogl_framework_api.DrawBuffers(n, buf); + __ogl_framework_api->DrawBuffersARB(n, buf); } else { - __ogl_framework_api.DrawBuffer(mode); + __ogl_framework_api->DrawBuffer(mode); } } void -glDrawBuffers(GLsizei n, const GLenum * bufs) +__applegl_glDrawBuffersARB(GLsizei n, const GLenum * bufs) { struct glx_context * gc = __glXGetCurrentContext(); @@ -114,15 +116,9 @@ glDrawBuffers(GLsizei n, const GLenum * bufs) newbuf[outi++] = GL_FRONT_RIGHT; } - __ogl_framework_api.DrawBuffers(outi, newbuf); + __ogl_framework_api->DrawBuffersARB(outi, newbuf); } else { - __ogl_framework_api.DrawBuffers(n, bufs); + __ogl_framework_api->DrawBuffersARB(n, bufs); } } - -void -glDrawBuffersARB(GLsizei n, const GLenum * bufs) -{ - glDrawBuffers(n, bufs); -} diff --git a/src/glx/apple/apple_xgl_api_viewport.c b/src/glx/apple/apple_xgl_api_viewport.c index d4804fcd21e..8f914b425f2 100644 --- a/src/glx/apple/apple_xgl_api_viewport.c +++ b/src/glx/apple/apple_xgl_api_viewport.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2009 Apple Inc. + Copyright (c) 2009-2011 Apple Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files @@ -30,11 +30,12 @@ #include "glxclient.h" #include "apple_glx_context.h" #include "apple_xgl_api.h" +#include "glapitable.h" -extern struct apple_xgl_api __ogl_framework_api; +extern struct _glapi_table * __ogl_framework_api; void -glViewport(GLint x, GLint y, GLsizei width, GLsizei height) +__applegl_glViewport(GLint x, GLint y, GLsizei width, GLsizei height) { struct glx_context *gc = __glXGetCurrentContext(); Display *dpy = glXGetCurrentDisplay(); @@ -42,5 +43,5 @@ glViewport(GLint x, GLint y, GLsizei width, GLsizei height) if (gc && gc->driContext) apple_glx_context_update(dpy, gc->driContext); - __ogl_framework_api.Viewport(x, y, width, height); + __ogl_framework_api->Viewport(x, y, width, height); } diff --git a/src/glx/apple/gen_api_library.tcl b/src/glx/apple/gen_api_library.tcl index eb633c24cf6..2d47ebc20a9 100644 --- a/src/glx/apple/gen_api_library.tcl +++ b/src/glx/apple/gen_api_library.tcl @@ -179,7 +179,7 @@ proc main {argc argv} { set body "[set return]__ogl_framework_api.[set f]([set callvars]);" } - puts $fd "GLAPI [dict get $attr return] APIENTRY gl[set f]([set pstr]) \{\n\t$body\n\}" + puts $fd "GLAPI [dict get $attr return] APIENTRY __apple_gl[set f]([set pstr]) \{\n\t$body\n\}" } puts $fd $::init_code From e157f381f21a1d5307f64b6ec3cc1b26d4ddf576 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 7 Jun 2011 19:26:53 -0700 Subject: [PATCH 096/145] apple: Remove apple_glx_get_proc_address Now that we're using glapi, we don't need to special case this. Signed-off-by: Jeremy Huddleston --- src/glx/apple/apple_glx.c | 47 --------------------------------------- src/glx/apple/apple_glx.h | 1 - src/glx/glxcmds.c | 6 ----- 3 files changed, 54 deletions(-) diff --git a/src/glx/apple/apple_glx.c b/src/glx/apple/apple_glx.c index e8f94407ea4..a76cb4cac1f 100644 --- a/src/glx/apple/apple_glx.c +++ b/src/glx/apple/apple_glx.c @@ -43,12 +43,6 @@ static int dri_event_base = 0; const GLuint __glXDefaultPixelStore[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 1 }; -#ifndef OPENGL_LIB_PATH -#define OPENGL_LIB_PATH "/System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib" -#endif - -static void *libgl_handle = NULL; - static bool diagnostic = false; void @@ -138,7 +132,6 @@ apple_init_glx(Display * dpy) apple_cgl_init(); apple_xgl_init_direct(); - libgl_handle = dlopen(OPENGL_LIB_PATH, RTLD_LAZY); (void) apple_glx_get_client_id(); XAppleDRISetSurfaceNotifyHandler(surface_notify_handler); @@ -160,46 +153,6 @@ apple_glx_swap_buffers(void *ptr) apple_cgl.flush_drawable(ac->context_obj); } -void * -apple_glx_get_proc_address(const GLubyte * procname) -{ - size_t len; - void *h, *s; - char *pname = (char *) procname; - - assert(NULL != procname); - len = strlen(pname); - - if (len < 3) { - return NULL; - } - - if ((pname != strstr(pname, "glX")) && (pname != strstr(pname, "gl"))) { - fprintf(stderr, - "warning: get proc address request is not for a gl or glX function"); - return NULL; - } - - /* Search using the default symbols first. */ - (void) dlerror(); /*drain dlerror */ - h = dlopen(NULL, RTLD_NOW); - if (NULL == h) { - fprintf(stderr, "warning: get proc address: %s\n", dlerror()); - return NULL; - } - - s = dlsym(h, pname); - - if (NULL == s) { - /* Try the libGL.dylib from the OpenGL.framework. */ - s = dlsym(libgl_handle, pname); - } - - dlclose(h); - - return s; -} - void apple_glx_waitx(Display * dpy, void *ptr) { diff --git a/src/glx/apple/apple_glx.h b/src/glx/apple/apple_glx.h index 5e81c5901ab..25f5ea66ee3 100644 --- a/src/glx/apple/apple_glx.h +++ b/src/glx/apple/apple_glx.h @@ -42,7 +42,6 @@ void apple_glx_diagnostic(const char *fmt, ...); xp_client_id apple_glx_get_client_id(void); bool apple_init_glx(Display * dpy); void apple_glx_swap_buffers(void *ptr); -void *apple_glx_get_proc_address(const GLubyte * procname); void apple_glx_waitx(Display * dpy, void *ptr); int apple_get_dri_event_base(void); diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c index 783a1594512..774d38b2634 100644 --- a/src/glx/glxcmds.c +++ b/src/glx/glxcmds.c @@ -2479,7 +2479,6 @@ static const struct name_address_pair GLX_functions[] = { {NULL, NULL} /* end of list */ }; -#ifndef GLX_USE_APPLEGL static const GLvoid * get_glx_proc_address(const char *funcName) { @@ -2493,7 +2492,6 @@ get_glx_proc_address(const char *funcName) return NULL; } -#endif /** * Get the address of a named GL function. This is the pre-GLX 1.4 name for @@ -2516,9 +2514,6 @@ _X_EXPORT void (*glXGetProcAddressARB(const GLubyte * procName)) (void) * DRI based drivers from searching the core GL function table for * internal API functions. */ -#ifdef GLX_USE_APPLEGL - f = (gl_function) apple_glx_get_proc_address(procName); -#else f = (gl_function) get_glx_proc_address((const char *) procName); if ((f == NULL) && (procName[0] == 'g') && (procName[1] == 'l') && (procName[2] != 'X')) { @@ -2528,7 +2523,6 @@ _X_EXPORT void (*glXGetProcAddressARB(const GLubyte * procName)) (void) if (!f) f = (gl_function) _glapi_get_proc_address((const char *) procName); } -#endif return f; } From 3871e74733f47202372b34a0a8aa73a9d927ccd2 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 7 Jun 2011 19:35:09 -0700 Subject: [PATCH 097/145] apple: Dead code removal Now that we're using glapi, all of this is no longer needed. Signed-off-by: Jeremy Huddleston --- Makefile | 10 +- src/glx/apple/.gitignore | 3 - src/glx/apple/GL_aliases | 10 - src/glx/apple/GL_extensions | 106 - src/glx/apple/GL_noop | 15 - src/glx/apple/GL_promoted | 4 - src/glx/apple/OVERALL_DESIGN | 18 - src/glx/apple/README_UPDATING | 8 - src/glx/apple/apple_exports.list | 623 - src/glx/apple/gen_api_header.tcl | 86 - src/glx/apple/gen_api_library.tcl | 212 - src/glx/apple/gen_code.tcl | 50 - src/glx/apple/gen_defs.tcl | 67 - src/glx/apple/gen_exports.tcl | 131 - src/glx/apple/gen_funcs.tcl | 735 - src/glx/apple/gen_types.tcl | 32 - src/glx/apple/specs/enum.spec | 8039 ------- src/glx/apple/specs/enumext.spec | 6993 ------ src/glx/apple/specs/gl.spec | 31617 -------------------------- src/glx/apple/specs/gl.tm | 328 - src/glx/apple/specs/glx.spec | 602 - src/glx/apple/specs/glxenum.spec | 479 - src/glx/apple/specs/glxenumext.spec | 565 - src/glx/apple/specs/glxext.spec | 1492 -- src/glx/apple/specs/update.sh | 4 - 25 files changed, 1 insertion(+), 52228 deletions(-) delete mode 100644 src/glx/apple/.gitignore delete mode 100644 src/glx/apple/GL_aliases delete mode 100644 src/glx/apple/GL_extensions delete mode 100644 src/glx/apple/GL_noop delete mode 100644 src/glx/apple/GL_promoted delete mode 100644 src/glx/apple/OVERALL_DESIGN delete mode 100644 src/glx/apple/README_UPDATING delete mode 100644 src/glx/apple/apple_exports.list delete mode 100644 src/glx/apple/gen_api_header.tcl delete mode 100644 src/glx/apple/gen_api_library.tcl delete mode 100644 src/glx/apple/gen_code.tcl delete mode 100644 src/glx/apple/gen_defs.tcl delete mode 100644 src/glx/apple/gen_exports.tcl delete mode 100644 src/glx/apple/gen_funcs.tcl delete mode 100644 src/glx/apple/gen_types.tcl delete mode 100644 src/glx/apple/specs/enum.spec delete mode 100644 src/glx/apple/specs/enumext.spec delete mode 100644 src/glx/apple/specs/gl.spec delete mode 100644 src/glx/apple/specs/gl.tm delete mode 100644 src/glx/apple/specs/glx.spec delete mode 100644 src/glx/apple/specs/glxenum.spec delete mode 100644 src/glx/apple/specs/glxenumext.spec delete mode 100644 src/glx/apple/specs/glxext.spec delete mode 100755 src/glx/apple/specs/update.sh diff --git a/Makefile b/Makefile index e77e64925d2..2fc35b26c7f 100644 --- a/Makefile +++ b/Makefile @@ -367,15 +367,7 @@ GALLIUM_FILES = \ APPLE_DRI_FILES = \ $(DIRECTORY)/src/glx/apple/Makefile \ - $(DIRECTORY)/src/glx/apple/*.[ch] \ - $(DIRECTORY)/src/glx/apple/*.tcl \ - $(DIRECTORY)/src/glx/apple/apple_exports.list \ - $(DIRECTORY)/src/glx/apple/GL_aliases \ - $(DIRECTORY)/src/glx/apple/GL_extensions \ - $(DIRECTORY)/src/glx/apple/GL_noop \ - $(DIRECTORY)/src/glx/apple/GL_promoted \ - $(DIRECTORY)/src/glx/apple/specs/*.spec \ - $(DIRECTORY)/src/glx/apple/specs/*.tm + $(DIRECTORY)/src/glx/apple/*.[ch] DRI_FILES = \ $(DIRECTORY)/include/GL/internal/dri_interface.h \ diff --git a/src/glx/apple/.gitignore b/src/glx/apple/.gitignore deleted file mode 100644 index b135a15c675..00000000000 --- a/src/glx/apple/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -exports.list -stage.[1234] - diff --git a/src/glx/apple/GL_aliases b/src/glx/apple/GL_aliases deleted file mode 100644 index 8de22383a78..00000000000 --- a/src/glx/apple/GL_aliases +++ /dev/null @@ -1,10 +0,0 @@ -#GL_EXT_texture_object -alias AreTexturesResidentEXT AreTexturesResident -alias BindTextureEXT BindTexture -alias DeleteTexturesEXT DeleteTextures -alias GenTexturesEXT GenTextures -alias IsTextureEXT IsTexture -alias PrioritizeTexturesEXT PrioritizeTextures - -# Due to type conflicts, we handle this differently -#alias TexImage3DEXT TexImage3D diff --git a/src/glx/apple/GL_extensions b/src/glx/apple/GL_extensions deleted file mode 100644 index 073666c367b..00000000000 --- a/src/glx/apple/GL_extensions +++ /dev/null @@ -1,106 +0,0 @@ -extension ARB_transpose_matrix -extension ARB_vertex_program -extension ARB_vertex_blend -extension ARB_window_pos -extension ARB_shader_objects -extension ARB_vertex_shader -extension ARB_shading_language_100 -extension ARB_imaging -extension ARB_point_parameters -extension ARB_texture_env_crossbar -extension ARB_texture_border_clamp -extension ARB_multitexture -extension ARB_texture_env_add -extension ARB_texture_cube_map -extension ARB_texture_env_dot3 -extension ARB_multisample -extension ARB_texture_env_combine -extension ARB_texture_compression -extension ARB_texture_mirrored_repeat -extension ARB_shadow -extension ARB_depth_texture -extension ARB_shadow_ambient -extension ARB_fragment_program -extension ARB_fragment_program_shadow -extension ARB_fragment_shader -extension ARB_occlusion_query -extension ARB_point_sprite -extension ARB_texture_non_power_of_two -extension ARB_vertex_buffer_object -extension ARB_pixel_buffer_object -extension ARB_draw_buffers -extension ARB_shader_texture_lod -extension ARB_texture_rectangle -extension ARB_texture_float -extension ARB_half_float_pixel - -extension EXT_multi_draw_arrays -extension EXT_clip_volume_hint -extension EXT_rescale_normal -extension EXT_draw_range_elements -extension EXT_fog_coord -extension EXT_gpu_program_parameters -extension EXT_geometry_shader4 - -#The gl.spec has the wrong arguments for GetTransformFeedbackVaryingEXT -#extension EXT_transform_feedback -extension EXT_compiled_vertex_array -extension EXT_framebuffer_object -extension EXT_framebuffer_blit -extension EXT_framebuffer_multisample -extension EXT_texture_rectangle -extension EXT_texture_env_add -extension EXT_blend_color -extension EXT_blend_minmax -extension EXT_blend_subtract -extension EXT_texture_lod_bias -extension EXT_abgr -extension EXT_bgra -extension EXT_stencil_wrap -extension EXT_texture_filter_anisotropic -extension EXT_separate_specular_color -extension EXT_secondary_color -extension EXT_blend_func_separate -extension EXT_shadow_funcs -extension EXT_stencil_two_side -extension EXT_texture_compression_s3tc -extension EXT_texture_compression_dxt1 -extension EXT_texture_sRGB -extension EXT_blend_equation_separate -extension EXT_texture_mirror_clamp -extension EXT_packed_depth_stencil - -extension APPLE_client_storage -extension APPLE_specular_vector -extension APPLE_transform_hint -extension APPLE_packed_pixels -#The gl.spec has different argument types for this: -#extension APPLE_fence -extension APPLE_vertex_array_object -extension APPLE_vertex_program_evaluators -extension APPLE_element_array -extension APPLE_flush_render -extension APPLE_aux_depth_stencil -extension APPLE_flush_buffer_range -extension APPLE_ycbcr_422 -#The gl.spec has different argument types for this: -#extension APPLE_vertex_array_range -extension APPLE_texture_range -extension APPLE_float_pixels -extension APPLE_pixel_buffer -extension APPLE_object_purgeable - -#The OpenGL framework has moved this to the core OpenGL, and eliminated EXT_convolution listing. -#extension EXT_convolution - -#Leopard supports these according to nm. -#Applications should use the GL_EXTENSIONS list to determine capabilities. -extension EXT_paletted_texture -extension APPLE_fence -extension NV_vertex_program4 -extension EXT_draw_buffers2 -extension EXT_gpu_shader4 -extension ATI_pn_triangles -extension NV_register_combiners -extension EXT_depth_bounds_test - diff --git a/src/glx/apple/GL_noop b/src/glx/apple/GL_noop deleted file mode 100644 index 2581be1a7d5..00000000000 --- a/src/glx/apple/GL_noop +++ /dev/null @@ -1,15 +0,0 @@ -#These are for compatibility with the old libGL. -noop SGI_color_table -noop EXT_convolution -noop EXT_cull_vertex -noop NV_fence -noop SGIS_detail_texture -noop SGIX_fragment_lighting -noop SGIX_flush_raster -noop EXT_vertex_array -noop SGIX_instruments -noop EXT_histogram -noop NV_vertex_program -noop PGI_misc_hints -noop SGIS_multisample -noop EXT_multisample diff --git a/src/glx/apple/GL_promoted b/src/glx/apple/GL_promoted deleted file mode 100644 index a16dc6ae654..00000000000 --- a/src/glx/apple/GL_promoted +++ /dev/null @@ -1,4 +0,0 @@ -promoted MESA_window_pos -promoted ARB_window_pos -promoted EXT_copy_texture -promoted ARB_vertex_program diff --git a/src/glx/apple/OVERALL_DESIGN b/src/glx/apple/OVERALL_DESIGN deleted file mode 100644 index c394b2115cb..00000000000 --- a/src/glx/apple/OVERALL_DESIGN +++ /dev/null @@ -1,18 +0,0 @@ -A lot of the code is automatically generated. - -The following are generated based on specs/gl.spec and specs/enum.spec (from OpenGL.org): - -apple_xgl_api.h -apple_xgl_api.c -exports.list -include/GL/gl.h -include/GL/glext.h (includes the OpenGL framework glext.h) - -The gen_code.tcl script is what executes the various gen_*.tcl scripts to produce those. - -You will need Tcl 8.5 for the gen_code.tcl script. - -The tests/ directory contains some tests that are built in testbuilds. - -The tests built in testbuilds don't require installation of the library. - diff --git a/src/glx/apple/README_UPDATING b/src/glx/apple/README_UPDATING deleted file mode 100644 index 7b1bbe02c54..00000000000 --- a/src/glx/apple/README_UPDATING +++ /dev/null @@ -1,8 +0,0 @@ -The design of most of this code is such that we extend the GLX structures -with a void * named apple. - -The GLX functions that need to do Apple-specific things are passed -&s->apple in order to initialize the private structures. - -Thus when updating, just run a diff against glxext.c or glxcmds.c, and -manually merge from there as needed. diff --git a/src/glx/apple/apple_exports.list b/src/glx/apple/apple_exports.list deleted file mode 100644 index f4790119a55..00000000000 --- a/src/glx/apple/apple_exports.list +++ /dev/null @@ -1,623 +0,0 @@ -_glAccum -_glAlphaFunc -_glAreTexturesResident -_glArrayElement -_glBegin -_glBindTexture -_glBitmap -_glBlendColor -_glBlendEquation -_glBlendEquationSeparate -_glBlendFunc -_glCallList -_glCallLists -_glClear -_glClearAccum -_glClearColor -_glClearDepth -_glClearIndex -_glClearStencil -_glClipPlane -_glColor3b -_glColor3bv -_glColor3d -_glColor3dv -_glColor3f -_glColor3fv -_glColor3i -_glColor3iv -_glColor3s -_glColor3sv -_glColor3ub -_glColor3ubv -_glColor3ui -_glColor3uiv -_glColor3us -_glColor3usv -_glColor4b -_glColor4bv -_glColor4d -_glColor4dv -_glColor4f -_glColor4fv -_glColor4i -_glColor4iv -_glColor4s -_glColor4sv -_glColor4ub -_glColor4ubv -_glColor4ui -_glColor4uiv -_glColor4us -_glColor4usv -_glColorMask -_glColorMaterial -_glColorPointer -_glColorSubTable -_glColorTable -_glColorTableParameterfv -_glColorTableParameteriv -_glConvolutionFilter1D -_glConvolutionFilter2D -_glConvolutionParameterf -_glConvolutionParameterfv -_glConvolutionParameteri -_glConvolutionParameteriv -_glCopyColorSubTable -_glCopyColorTable -_glCopyConvolutionFilter1D -_glCopyConvolutionFilter2D -_glCopyPixels -_glCopyTexImage1D -_glCopyTexImage2D -_glCopyTexSubImage1D -_glCopyTexSubImage2D -_glCopyTexSubImage3D -_glCullFace -_glDeleteLists -_glDeleteTextures -_glDepthFunc -_glDepthMask -_glDepthRange -_glDisable -_glDisableClientState -_glDrawArrays -_glDrawBuffer -_glDrawElements -_glDrawPixels -_glDrawRangeElements -_glEdgeFlag -_glEdgeFlagPointer -_glEdgeFlagv -_glEnable -_glEnableClientState -_glEnd -_glEndList -_glEvalCoord1d -_glEvalCoord1dv -_glEvalCoord1f -_glEvalCoord1fv -_glEvalCoord2d -_glEvalCoord2dv -_glEvalCoord2f -_glEvalCoord2fv -_glEvalMesh1 -_glEvalMesh2 -_glEvalPoint1 -_glEvalPoint2 -_glFeedbackBuffer -_glFinish -_glFlush -_glFogf -_glFogfv -_glFogi -_glFogiv -_glFrontFace -_glFrustum -_glGenLists -_glGenTextures -_glGetBooleanv -_glGetClipPlane -_glGetColorTable -_glGetColorTableParameterfv -_glGetColorTableParameteriv -_glGetConvolutionFilter -_glGetConvolutionParameterfv -_glGetConvolutionParameteriv -_glGetDoublev -_glGetError -_glGetFloatv -_glGetHistogram -_glGetHistogramParameterfv -_glGetHistogramParameteriv -_glGetIntegerv -_glGetLightfv -_glGetLightiv -_glGetMapdv -_glGetMapfv -_glGetMapiv -_glGetMaterialfv -_glGetMaterialiv -_glGetMinmax -_glGetMinmaxParameterfv -_glGetMinmaxParameteriv -_glGetPixelMapfv -_glGetPixelMapuiv -_glGetPixelMapusv -_glGetPointerv -_glGetPolygonStipple -_glGetSeparableFilter -_glGetString -_glGetTexEnvfv -_glGetTexEnviv -_glGetTexGendv -_glGetTexGenfv -_glGetTexGeniv -_glGetTexImage -_glGetTexLevelParameterfv -_glGetTexLevelParameteriv -_glGetTexParameterfv -_glGetTexParameteriv -_glHint -_glHistogram -_glIndexMask -_glIndexPointer -_glIndexd -_glIndexdv -_glIndexf -_glIndexfv -_glIndexi -_glIndexiv -_glIndexs -_glIndexsv -_glIndexub -_glIndexubv -_glInitNames -_glInterleavedArrays -_glIsEnabled -_glIsList -_glIsTexture -_glLightModelf -_glLightModelfv -_glLightModeli -_glLightModeliv -_glLightf -_glLightfv -_glLighti -_glLightiv -_glLineStipple -_glLineWidth -_glListBase -_glLoadIdentity -_glLoadMatrixd -_glLoadMatrixf -_glLoadName -_glLogicOp -_glMap1d -_glMap1f -_glMap2d -_glMap2f -_glMapGrid1d -_glMapGrid1f -_glMapGrid2d -_glMapGrid2f -_glMaterialf -_glMaterialfv -_glMateriali -_glMaterialiv -_glMatrixMode -_glMinmax -_glMultMatrixd -_glMultMatrixf -_glNewList -_glNormal3b -_glNormal3bv -_glNormal3d -_glNormal3dv -_glNormal3f -_glNormal3fv -_glNormal3i -_glNormal3iv -_glNormal3s -_glNormal3sv -_glNormalPointer -_glOrtho -_glPassThrough -_glPixelMapfv -_glPixelMapuiv -_glPixelMapusv -_glPixelStoref -_glPixelStorei -_glPixelTransferf -_glPixelTransferi -_glPixelZoom -_glPointSize -_glPolygonMode -_glPolygonOffset -_glPolygonStipple -_glPopAttrib -_glPopClientAttrib -_glPopMatrix -_glPopName -_glPrioritizeTextures -_glPushAttrib -_glPushClientAttrib -_glPushMatrix -_glPushName -_glRasterPos2d -_glRasterPos2dv -_glRasterPos2f -_glRasterPos2fv -_glRasterPos2i -_glRasterPos2iv -_glRasterPos2s -_glRasterPos2sv -_glRasterPos3d -_glRasterPos3dv -_glRasterPos3f -_glRasterPos3fv -_glRasterPos3i -_glRasterPos3iv -_glRasterPos3s -_glRasterPos3sv -_glRasterPos4d -_glRasterPos4dv -_glRasterPos4f -_glRasterPos4fv -_glRasterPos4i -_glRasterPos4iv -_glRasterPos4s -_glRasterPos4sv -_glReadBuffer -_glReadPixels -_glRectd -_glRectdv -_glRectf -_glRectfv -_glRecti -_glRectiv -_glRects -_glRectsv -_glRenderMode -_glResetHistogram -_glResetMinmax -_glRotated -_glRotatef -_glScaled -_glScalef -_glScissor -_glSelectBuffer -_glSeparableFilter2D -_glShadeModel -_glStencilFunc -_glStencilMask -_glStencilOp -_glTexCoord1d -_glTexCoord1dv -_glTexCoord1f -_glTexCoord1fv -_glTexCoord1i -_glTexCoord1iv -_glTexCoord1s -_glTexCoord1sv -_glTexCoord2d -_glTexCoord2dv -_glTexCoord2f -_glTexCoord2fv -_glTexCoord2i -_glTexCoord2iv -_glTexCoord2s -_glTexCoord2sv -_glTexCoord3d -_glTexCoord3dv -_glTexCoord3f -_glTexCoord3fv -_glTexCoord3i -_glTexCoord3iv -_glTexCoord3s -_glTexCoord3sv -_glTexCoord4d -_glTexCoord4dv -_glTexCoord4f -_glTexCoord4fv -_glTexCoord4i -_glTexCoord4iv -_glTexCoord4s -_glTexCoord4sv -_glTexCoordPointer -_glTexEnvf -_glTexEnvfv -_glTexEnvi -_glTexEnviv -_glTexGend -_glTexGendv -_glTexGenf -_glTexGenfv -_glTexGeni -_glTexGeniv -_glTexImage1D -_glTexImage2D -_glTexImage3D -_glTexParameterf -_glTexParameterfv -_glTexParameteri -_glTexParameteriv -_glTexSubImage1D -_glTexSubImage2D -_glTexSubImage3D -_glTranslated -_glTranslatef -_glVertex2d -_glVertex2dv -_glVertex2f -_glVertex2fv -_glVertex2i -_glVertex2iv -_glVertex2s -_glVertex2sv -_glVertex3d -_glVertex3dv -_glVertex3f -_glVertex3fv -_glVertex3i -_glVertex3iv -_glVertex3s -_glVertex3sv -_glVertex4d -_glVertex4dv -_glVertex4f -_glVertex4fv -_glVertex4i -_glVertex4iv -_glVertex4s -_glVertex4sv -_glVertexPointer -_glViewport -_glSampleCoverage -_glSamplePass -_glLoadTransposeMatrixf -_glLoadTransposeMatrixd -_glMultTransposeMatrixf -_glMultTransposeMatrixd -_glCompressedTexImage3D -_glCompressedTexImage2D -_glCompressedTexImage1D -_glCompressedTexSubImage3D -_glCompressedTexSubImage2D -_glCompressedTexSubImage1D -_glGetCompressedTexImage -_glActiveTexture -_glClientActiveTexture -_glMultiTexCoord1d -_glMultiTexCoord1dv -_glMultiTexCoord1f -_glMultiTexCoord1fv -_glMultiTexCoord1i -_glMultiTexCoord1iv -_glMultiTexCoord1s -_glMultiTexCoord1sv -_glMultiTexCoord2d -_glMultiTexCoord2dv -_glMultiTexCoord2f -_glMultiTexCoord2fv -_glMultiTexCoord2i -_glMultiTexCoord2iv -_glMultiTexCoord2s -_glMultiTexCoord2sv -_glMultiTexCoord3d -_glMultiTexCoord3dv -_glMultiTexCoord3f -_glMultiTexCoord3fv -_glMultiTexCoord3i -_glMultiTexCoord3iv -_glMultiTexCoord3s -_glMultiTexCoord3sv -_glMultiTexCoord4d -_glMultiTexCoord4dv -_glMultiTexCoord4f -_glMultiTexCoord4fv -_glMultiTexCoord4i -_glMultiTexCoord4iv -_glMultiTexCoord4s -_glMultiTexCoord4sv -_glFogCoordf -_glFogCoordfv -_glFogCoordd -_glFogCoorddv -_glFogCoordPointer -_glSecondaryColor3b -_glSecondaryColor3bv -_glSecondaryColor3d -_glSecondaryColor3dv -_glSecondaryColor3f -_glSecondaryColor3fv -_glSecondaryColor3i -_glSecondaryColor3iv -_glSecondaryColor3s -_glSecondaryColor3sv -_glSecondaryColor3ub -_glSecondaryColor3ubv -_glSecondaryColor3ui -_glSecondaryColor3uiv -_glSecondaryColor3us -_glSecondaryColor3usv -_glSecondaryColorPointer -_glPointParameterf -_glPointParameterfv -_glPointParameteri -_glPointParameteriv -_glBlendFuncSeparate -_glMultiDrawArrays -_glMultiDrawElements -_glWindowPos2d -_glWindowPos2dv -_glWindowPos2f -_glWindowPos2fv -_glWindowPos2i -_glWindowPos2iv -_glWindowPos2s -_glWindowPos2sv -_glWindowPos3d -_glWindowPos3dv -_glWindowPos3f -_glWindowPos3fv -_glWindowPos3i -_glWindowPos3iv -_glWindowPos3s -_glWindowPos3sv -_glGenQueries -_glDeleteQueries -_glIsQuery -_glBeginQuery -_glEndQuery -_glGetQueryiv -_glGetQueryObjectiv -_glGetQueryObjectuiv -_glBindBuffer -_glDeleteBuffers -_glGenBuffers -_glIsBuffer -_glBufferData -_glBufferSubData -_glGetBufferSubData -_glMapBuffer -_glUnmapBuffer -_glGetBufferParameteriv -_glGetBufferPointerv -_glDrawBuffers -_glVertexAttrib1d -_glVertexAttrib1dv -_glVertexAttrib1f -_glVertexAttrib1fv -_glVertexAttrib1s -_glVertexAttrib1sv -_glVertexAttrib2d -_glVertexAttrib2dv -_glVertexAttrib2f -_glVertexAttrib2fv -_glVertexAttrib2s -_glVertexAttrib2sv -_glVertexAttrib3d -_glVertexAttrib3dv -_glVertexAttrib3f -_glVertexAttrib3fv -_glVertexAttrib3s -_glVertexAttrib3sv -_glVertexAttrib4Nbv -_glVertexAttrib4Niv -_glVertexAttrib4Nsv -_glVertexAttrib4Nub -_glVertexAttrib4Nubv -_glVertexAttrib4Nuiv -_glVertexAttrib4Nusv -_glVertexAttrib4bv -_glVertexAttrib4d -_glVertexAttrib4dv -_glVertexAttrib4f -_glVertexAttrib4fv -_glVertexAttrib4iv -_glVertexAttrib4s -_glVertexAttrib4sv -_glVertexAttrib4ubv -_glVertexAttrib4uiv -_glVertexAttrib4usv -_glVertexAttribPointer -_glEnableVertexAttribArray -_glDisableVertexAttribArray -_glGetVertexAttribdv -_glGetVertexAttribfv -_glGetVertexAttribiv -_glGetVertexAttribPointerv -_glDeleteShader -_glDetachShader -_glCreateShader -_glShaderSource -_glCompileShader -_glCreateProgram -_glAttachShader -_glLinkProgram -_glUseProgram -_glDeleteProgram -_glValidateProgram -_glUniform1f -_glUniform2f -_glUniform3f -_glUniform4f -_glUniform1i -_glUniform2i -_glUniform3i -_glUniform4i -_glUniform1fv -_glUniform2fv -_glUniform3fv -_glUniform4fv -_glUniform1iv -_glUniform2iv -_glUniform3iv -_glUniform4iv -_glUniformMatrix2fv -_glUniformMatrix3fv -_glUniformMatrix4fv -_glIsShader -_glIsProgram -_glGetShaderiv -_glGetProgramiv -_glGetAttachedShaders -_glGetShaderInfoLog -_glGetProgramInfoLog -_glGetUniformLocation -_glGetActiveUniform -_glGetUniformfv -_glGetUniformiv -_glGetShaderSource -_glBindAttribLocation -_glGetActiveAttrib -_glGetAttribLocation -_glStencilFuncSeparate -_glStencilOpSeparate -_glStencilMaskSeparate -_glUniformMatrix2x3fv -_glUniformMatrix3x2fv -_glUniformMatrix2x4fv -_glUniformMatrix4x2fv -_glUniformMatrix3x4fv -_glUniformMatrix4x3fv -_glXChooseVisual -_glXCreateContext -_glXDestroyContext -_glXMakeCurrent -_glXCopyContext -_glXSwapBuffers -_glXCreateGLXPixmap -_glXDestroyGLXPixmap -_glXQueryExtension -_glXQueryVersion -_glXIsDirect -_glXGetConfig -_glXGetCurrentContext -_glXGetCurrentDrawable -_glXWaitGL -_glXWaitX -_glXUseXFont -_glXQueryExtensionsString -_glXQueryServerString -_glXGetClientString -_glXGetCurrentDisplay -_glXChooseFBConfig -_glXGetFBConfigAttrib -_glXGetFBConfigs -_glXGetVisualFromFBConfig -_glXCreateWindow -_glXDestroyWindow -_glXCreatePixmap -_glXDestroyPixmap -_glXCreatePbuffer -_glXDestroyPbuffer -_glXQueryDrawable -_glXCreateNewContext -_glXMakeContextCurrent -_glXGetCurrentReadDrawable -_glXQueryContext -_glXSelectEvent -_glXGetSelectedEvent -_glXGetProcAddress diff --git a/src/glx/apple/gen_api_header.tcl b/src/glx/apple/gen_api_header.tcl deleted file mode 100644 index 9e986de5042..00000000000 --- a/src/glx/apple/gen_api_header.tcl +++ /dev/null @@ -1,86 +0,0 @@ - -package require Tcl 8.5 - -set license { -/* - Copyright (c) 2008, 2009 Apple Inc. - - Permission is hereby granted, free of charge, to any person - obtaining a copy of this software and associated documentation files - (the "Software"), to deal in the Software without restriction, - including without limitation the rights to use, copy, modify, merge, - publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, - subject to the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT - HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - DEALINGS IN THE SOFTWARE. - - Except as contained in this notice, the name(s) of the above - copyright holders shall not be used in advertising or otherwise to - promote the sale, use or other dealings in this Software without - prior written authorization. -*/ -} - -set this_script [info script] - -proc main {argc argv} { - if {2 != $argc} { - puts stderr "syntax is: [set ::this_script] serialized-array-file output.h" - return 1 - } - - set fd [open [lindex $argv 0] r] - array set api [read $fd] - close $fd - - set fd [open [lindex $argv 1] w] - - puts $fd "/* This file was automatically generated by [set ::this_script]. */" - puts $fd $::license - - puts $fd " -#ifndef APPLE_XGL_API_H -#define APPLE_XGL_API_H -" - - puts $fd "struct apple_xgl_api \{" - - set sorted [lsort -dictionary [array names api]] - - foreach f $sorted { - set attr $api($f) - set pstr "" - - if {[dict exists $attr alias_for] || [dict exists $attr noop]} { - #Skip this function. - continue - } - - foreach p [dict get $attr parameters] { - append pstr "[lindex $p 0] [lindex $p 1], " - } - - set pstr [string trimright $pstr ", "] - puts $fd "\t[dict get $attr return] (*[set f])([set pstr]);" - } - - puts $fd "\};" - puts $fd "void apple_xgl_init_direct(void); - -#endif /*APPLE_XGL_API_H*/ -" - - return 0 -} -exit [main $::argc $::argv] \ No newline at end of file diff --git a/src/glx/apple/gen_api_library.tcl b/src/glx/apple/gen_api_library.tcl deleted file mode 100644 index 2d47ebc20a9..00000000000 --- a/src/glx/apple/gen_api_library.tcl +++ /dev/null @@ -1,212 +0,0 @@ -package require Tcl 8.5 - -set license { -/* - Copyright (c) 2008, 2009 Apple Inc. - - Permission is hereby granted, free of charge, to any person - obtaining a copy of this software and associated documentation files - (the "Software"), to deal in the Software without restriction, - including without limitation the rights to use, copy, modify, merge, - publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, - subject to the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT - HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - DEALINGS IN THE SOFTWARE. - - Except as contained in this notice, the name(s) of the above - copyright holders shall not be used in advertising or otherwise to - promote the sale, use or other dealings in this Software without - prior written authorization. -*/ -} - -set gl_license { -/* -** License Applicability. Except to the extent portions of this file are -** made subject to an alternative license as permitted in the SGI Free -** Software License B, Version 1.1 (the "License"), the contents of this -** file are subject only to the provisions of the License. You may not use -** this file except in compliance with the License. You may obtain a copy -** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600 -** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at: -** -** http://oss.sgi.com/projects/FreeB -** -** Note that, as provided in the License, the Software is distributed on an -** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS -** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND -** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A -** PARTICULAR PURPOSE, AND NON-INFRINGEMENT. -** -** Original Code. The Original Code is: OpenGL Sample Implementation, -** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics, -** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc. -** Copyright in any portions created by third parties is as indicated -** elsewhere herein. All Rights Reserved. -** -** Additional Notice Provisions: This software was created using the -** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has -** not been independently verified as being compliant with the OpenGL(R) -** version 1.2.1 Specification. -*/ -} - -set init_code { -static void *glsym(void *handle, const char *name) { - void *sym = dlsym(handle, name); - - if(NULL == sym) { - fprintf(stderr, "Error: symbol not found: '%s'. " - "Error information: %s\n", - name, dlerror()); - abort(); - } - - return sym; -} - -} - -set dlopen_code { -#ifndef LIBGLNAME -#define LIBGLNAME "/System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib" -#endif LIBGLNAME - - (void)dlerror(); /*drain dlerror()*/ - - handle = dlopen(LIBGLNAME, RTLD_LAZY); - - if(NULL == handle) { - fprintf(stderr, "error: unable to dlopen " - LIBGLNAME " :" "%s\n", dlerror()); - abort(); - } -} - -set this_script [info script] - -proc main {argc argv} { - if {2 != $argc} { - puts stderr "syntax is: [set ::this_script] serialized-array-file output.c" - return 1 - } - - - set fd [open [lindex $argv 0] r] - array set api [read $fd] - close $fd - - set fd [open [lindex $argv 1] w] - - puts $fd "/* This file was automatically generated by [set ::this_script]. */" - puts $fd $::license - - puts $fd { -#define GL_GLEXT_PROTOTYPES -#include -#include -#include "glxclient.h" -#include "apple_xgl_api.h" -#include "apple_glx_context.h" - } - - puts $fd "struct apple_xgl_api __ogl_framework_api;" - - set sorted [lsort -dictionary [array names api]] - - set exclude [list DrawBuffer DrawBuffers DrawBuffersARB] - - #These are special to glXMakeContextCurrent. - #See also: apple_xgl_api_read.c. - lappend exclude ReadPixels CopyPixels CopyColorTable - - #This is excluded to work with surface updates. - lappend exclude Viewport - - foreach f $sorted { - if {$f in $exclude} { - continue - } - - set attr $api($f) - - set pstr "" - - foreach p [dict get $attr parameters] { - append pstr "[lindex $p 0] [lindex $p 1], " - } - - set pstr [string trimright $pstr ", "] - - if {![string length $pstr]} { - set pstr void - } - - set callvars "" - - foreach p [dict get $attr parameters] { - append callvars "[lindex $p end], " - } - - set callvars [string trimright $callvars ", "] - - set return "" - if {"void" ne [dict get $attr return]} { - set return "return " - } - - if {[dict exists $attr noop]} { - if {"void" eq [dict get $attr return]} { - set body "/*noop*/" - } else { - set body "return 0; /*noop*/" - } - } elseif {[dict exists $attr alias_for]} { - set alias [dict get $attr alias_for] - set body "[set return] gl[set alias]([set callvars]);" - } else { - set body "[set return]__ogl_framework_api.[set f]([set callvars]);" - } - - puts $fd "GLAPI [dict get $attr return] APIENTRY __apple_gl[set f]([set pstr]) \{\n\t$body\n\}" - } - - puts $fd $::init_code - - puts $fd "void apple_xgl_init_direct(void) \{" - puts $fd "\tvoid *handle;" - - puts $fd $::dlopen_code - - foreach f $sorted { - set attr $api($f) - - puts $attr - puts $f - - if {[dict exists $attr alias_for] || [dict exists $attr noop]} { - #Function f is an alias_for another, so we shouldn't try - #to load it. - continue - } - - puts $fd "\t__ogl_framework_api.$f = glsym(handle, \"gl$f\");" - } - - puts $fd "\}\n" - close $fd - - return 0 -} -exit [main $::argc $::argv] diff --git a/src/glx/apple/gen_code.tcl b/src/glx/apple/gen_code.tcl deleted file mode 100644 index bb38d9f1c97..00000000000 --- a/src/glx/apple/gen_code.tcl +++ /dev/null @@ -1,50 +0,0 @@ -if 0 { - Copyright (c) 2008 Apple Inc. - - Permission is hereby granted, free of charge, to any person - obtaining a copy of this software and associated documentation files - (the "Software"), to deal in the Software without restriction, - including without limitation the rights to use, copy, modify, merge, - publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, - subject to the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT - HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - DEALINGS IN THE SOFTWARE. - - Except as contained in this notice, the name(s) of the above - copyright holders shall not be used in advertising or otherwise to - promote the sale, use or other dealings in this Software without - prior written authorization. -} - -package require Tcl 8.5 - -proc main {} { - set tclsh [info nameofexecutable] - - puts TYPES - exec $tclsh ./gen_types.tcl stage.1 - puts DEFS - exec $tclsh ./gen_defs.tcl specs/enum.spec stage.2 - puts FUNCS - exec $tclsh ./gen_funcs.tcl specs/gl.spec stage.3 stage.4 - puts HEADER - exec $tclsh ./gen_api_header.tcl stage.4 apple_xgl_api.h - puts "C API" - exec $tclsh ./gen_api_library.tcl stage.4 apple_xgl_api.c - puts "EXPORTS" - exec $tclsh ./gen_exports.tcl stage.4 exports.list - - return 0 -} -exit [main] diff --git a/src/glx/apple/gen_defs.tcl b/src/glx/apple/gen_defs.tcl deleted file mode 100644 index d32694db72e..00000000000 --- a/src/glx/apple/gen_defs.tcl +++ /dev/null @@ -1,67 +0,0 @@ -#This parses and generates #defines from an enum.spec type of file. - -proc main {argc argv} { - if {2 != $argc} { - puts stderr "syntax is: [info script] input.spec output.h" - exit 1 - } - - set fd [open [lindex $argv 0] r] - set data [read $fd] - close $fd - - set fd [open [lindex $argv 1] w] - - set state "" - - puts $fd "#define GL_VERSION_1_1 1" - puts $fd "#define GL_VERSION_1_2 1" - puts $fd "#define GL_VERSION_1_3 1" - puts $fd "#define GL_VERSION_1_4 1" - puts $fd "#define GL_VERSION_1_5 1" - puts $fd "#define GL_VERSION_2_0 1" - #puts $fd "#define GL_VERSION_3_0 1" - - set mask "" - array set ar {} - - foreach line [split $data \n] { - if {[regexp {^\S*#.*} $line] > 0} { - #puts COMMENT:$line - set state "" - } elseif {"enum" eq $state} { - if {[string match "\t*" $line]} { - if {[regexp {^\tuse.*} $line] > 0} { - lassign [split [string trim $line]] use usemask def - set usemask [string trim $usemask] - set def [string trim $def] - puts $fd "/* GL_$def */" - } else { - lassign [split [string trim $line] =] def value - set def [string trim $def] - set value [string trim $value] - - #Trim out the data like: 0x0B00 # 4 F - set value [lindex [split $value] 0] - - puts $fd "#define GL_$def $value" - - #Save this association with the value. - set d $ar($mask) - dict set d $def $value - set ar($mask) $d - } - } else { - set state "" - } - } elseif {[string match "* enum:*" $line]} { - lassign [split $line] mask _ - puts $fd "\n/*[string trim $mask]*/" - set ar($mask) [dict create] - set state enum - } - } - - close $fd -} -main $::argc $::argv diff --git a/src/glx/apple/gen_exports.tcl b/src/glx/apple/gen_exports.tcl deleted file mode 100644 index ed76929d8aa..00000000000 --- a/src/glx/apple/gen_exports.tcl +++ /dev/null @@ -1,131 +0,0 @@ -if 0 { - Copyright (c) 2008, 2009 Apple Inc. - - Permission is hereby granted, free of charge, to any person - obtaining a copy of this software and associated documentation files - (the "Software"), to deal in the Software without restriction, - including without limitation the rights to use, copy, modify, merge, - publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, - subject to the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT - HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - DEALINGS IN THE SOFTWARE. - - Except as contained in this notice, the name(s) of the above - copyright holders shall not be used in advertising or otherwise to - promote the sale, use or other dealings in this Software without - prior written authorization. -} - -package require Tcl 8.5 - -proc main {argc argv} { - if {2 != $argc} { - puts stderr "syntax is: [info script] serialized-array-file export.list" - return 1 - } - - set fd [open [lindex $argv 0] r] - array set api [read $fd] - close $fd - - #Start with 1.0 - set glxlist [list \ - glXChooseVisual glXCreateContext glXDestroyContext \ - glXMakeCurrent glXCopyContext glXSwapBuffers \ - glXCreateGLXPixmap glXDestroyGLXPixmap \ - glXQueryExtension glXQueryVersion \ - glXIsDirect glXGetConfig \ - glXGetCurrentContext glXGetCurrentDrawable \ - glXWaitGL glXWaitX glXUseXFont] - - #GLX 1.1 and later - lappend glxlist glXQueryExtensionsString glXQueryServerString \ - glXGetClientString - - #GLX 1.2 and later - lappend glxlist glXGetCurrentDisplay - - #GLX 1.3 and later - lappend glxlist glXChooseFBConfig glXGetFBConfigAttrib \ - glXGetFBConfigs glXGetVisualFromFBConfig \ - glXCreateWindow glXDestroyWindow \ - glXCreatePixmap glXDestroyPixmap \ - glXCreatePbuffer glXDestroyPbuffer \ - glXQueryDrawable glXCreateNewContext \ - glXMakeContextCurrent glXGetCurrentReadDrawable \ - glXQueryContext glXSelectEvent glXGetSelectedEvent - - #GLX 1.4 and later - lappend glxlist glXGetProcAddress - - #Extensions - lappend glxlist glXGetProcAddressARB - - #Old extensions we don't support and never really have, but need for - #symbol compatibility. See also: glx_empty.c - lappend glxlist glXSwapIntervalSGI glXSwapIntervalMESA \ - glXGetSwapIntervalMESA glXBeginFrameTrackingMESA \ - glXEndFrameTrackingMESA glXGetFrameUsageMESA \ - glXQueryFrameTrackingMESA glXGetVideoSyncSGI \ - glXWaitVideoSyncSGI glXJoinSwapGroupSGIX \ - glXBindSwapBarrierSGIX glXQueryMaxSwapBarriersSGIX \ - glXGetSyncValuesOML glXSwapBuffersMscOML \ - glXWaitForMscOML glXWaitForSbcOML \ - glXReleaseBuffersMESA \ - glXCreateGLXPixmapMESA glXCopySubBufferMESA \ - glXQueryGLXPbufferSGIX glXCreateGLXPbufferSGIX \ - glXDestroyGLXPbufferSGIX glXSelectEventSGIX \ - glXGetSelectedEventSGIX - - #These are for GLX_SGIX_fbconfig, which isn't implemented, because - #we have the GLX 1.3 GLXFBConfig functions which are in the standard spec. - #It should be possible to support these to some extent. - #The old libGL somewhat supported the GLXFBConfigSGIX code, but lacked - #pbuffer, and pixmap support. - #We mainly just need these stubs for linking with apps, because for - #some reason the OpenGL site suggests using the latest glxext.h, - #and glxext.h defines all GLX extensions, which doesn't seem right for - #compile-time capability detection. - #See also: http://www.mesa3d.org/brianp/sig97/exten.htm#Compile - #which conflicts with: the ABI registry from what I saw on opengl.org. - #By disabling some of the #defines in glxext.h we break some software, - #and by enabling them without the symbols we break others (in Mesa). - #I think a lot of OpenGL-based programs have issues one way or another. - #It seems that even Mesa developers are confused on this issue, because - #Mesa-7.3/progs/xdemos/glxgears_fbconfig.c has comments about breakage - #in some comments. - lappend glxlist glXGetFBConfigAttribSGIX \ - glXChooseFBConfigSGIX \ - glXGetVisualFromFBConfigSGIX \ - glXCreateGLXPixmapWithConfigSGIX \ - glXCreateContextWithConfigSGIX \ - glXGetFBConfigFromVisualSGIX - - - set fd [open [lindex $argv 1] w] - - foreach f [lsort -dictionary [array names api]] { - puts $fd _gl$f - } - - foreach f [lsort -dictionary $glxlist] { - puts $fd _$f - } - - close $fd - - return 0 -} - -exit [main $::argc $::argv] \ No newline at end of file diff --git a/src/glx/apple/gen_funcs.tcl b/src/glx/apple/gen_funcs.tcl deleted file mode 100644 index 1392c155a84..00000000000 --- a/src/glx/apple/gen_funcs.tcl +++ /dev/null @@ -1,735 +0,0 @@ -package require Tcl 8.5 - -#input is specs/gl.spec - -set license { -/* - Copyright (c) 2008, 2009 Apple Inc. - - Permission is hereby granted, free of charge, to any person - obtaining a copy of this software and associated documentation files - (the "Software"), to deal in the Software without restriction, - including without limitation the rights to use, copy, modify, merge, - publish, distribute, sublicense, and/or sell copies of the Software, - and to permit persons to whom the Software is furnished to do so, - subject to the following conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT - HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - DEALINGS IN THE SOFTWARE. - - Except as contained in this notice, the name(s) of the above - copyright holders shall not be used in advertising or otherwise to - promote the sale, use or other dealings in this Software without - prior written authorization. -*/ -} - - -proc extension name { - global extensions - - set extensions($name) 1 -} - -proc alias {from to} { - global aliases - - set aliases($from) $to -} - -proc promoted name { - global promoted - - set promoted($name) 1 -} - -proc noop name { - global noop - - set noop($name) 1 -} - -set dir [file dirname [info script]] - -source [file join $dir GL_extensions] -source [file join $dir GL_aliases] -source [file join $dir GL_promoted] -source [file join $dir GL_noop] - -proc is-extension-supported? name { - global extensions - - return [info exists extensions($name)] -} - -# This is going to need to be updated for future OpenGL versions: -# cat specs/gl.tm | grep -v '^#' | awk -F, '{sub(/[ \t]+/, ""); print " "$1 " \"" $4 "\""}' -# then change void from "*" to "void" -# -# TextureComponentCount is GLenum in SL for everything -# It is GLint in mesa, but is GLenum for glTexImage3DEXT -array set typemap { - AccumOp "GLenum" - AlphaFunction "GLenum" - AttribMask "GLbitfield" - BeginMode "GLenum" - BinormalPointerTypeEXT "GLenum" - BlendEquationMode "GLenum" - BlendEquationModeEXT "GLenum" - BlendFuncSeparateParameterEXT "GLenum" - BlendingFactorDest "GLenum" - BlendingFactorSrc "GLenum" - Boolean "GLboolean" - BooleanPointer "GLboolean*" - Char "GLchar" - CharPointer "GLchar*" - CheckedFloat32 "GLfloat" - CheckedInt32 "GLint" - ClampColorTargetARB "GLenum" - ClampColorModeARB "GLenum" - ClampedColorF "GLclampf" - ClampedFloat32 "GLclampf" - ClampedFloat64 "GLclampd" - ClampedStencilValue "GLint" - ClearBufferMask "GLbitfield" - ClientAttribMask "GLbitfield" - ClipPlaneName "GLenum" - ColorB "GLbyte" - ColorD "GLdouble" - ColorF "GLfloat" - ColorI "GLint" - ColorIndexValueD "GLdouble" - ColorIndexValueF "GLfloat" - ColorIndexValueI "GLint" - ColorIndexValueS "GLshort" - ColorIndexValueUB "GLubyte" - ColorMaterialParameter "GLenum" - ColorPointerType "GLenum" - ColorS "GLshort" - ColorTableParameterPName "GLenum" - ColorTableParameterPNameSGI "GLenum" - ColorTableTarget "GLenum" - ColorTableTargetSGI "GLenum" - ColorUB "GLubyte" - ColorUI "GLuint" - ColorUS "GLushort" - CombinerBiasNV "GLenum" - CombinerComponentUsageNV "GLenum" - CombinerMappingNV "GLenum" - CombinerParameterNV "GLenum" - CombinerPortionNV "GLenum" - CombinerRegisterNV "GLenum" - CombinerScaleNV "GLenum" - CombinerStageNV "GLenum" - CombinerVariableNV "GLenum" - CompressedTextureARB "GLvoid" - ControlPointNV "GLvoid" - ControlPointTypeNV "GLenum" - ConvolutionParameter "GLenum" - ConvolutionParameterEXT "GLenum" - ConvolutionTarget "GLenum" - ConvolutionTargetEXT "GLenum" - CoordD "GLdouble" - CoordF "GLfloat" - CoordI "GLint" - CoordS "GLshort" - CullFaceMode "GLenum" - CullParameterEXT "GLenum" - DepthFunction "GLenum" - DrawBufferMode "GLenum" - DrawBufferName "GLint" - DrawElementsType "GLenum" - ElementPointerTypeATI "GLenum" - EnableCap "GLenum" - ErrorCode "GLenum" - EvalMapsModeNV "GLenum" - EvalTargetNV "GLenum" - FeedbackElement "GLfloat" - FeedbackType "GLenum" - FenceNV "GLuint" - FenceConditionNV "GLenum" - FenceParameterNameNV "GLenum" - FfdMaskSGIX "GLbitfield" - FfdTargetSGIX "GLenum" - Float32 "GLfloat" - Float32Pointer "GLfloat*" - Float64 "GLdouble" - Float64Pointer "GLdouble*" - FogParameter "GLenum" - FogPointerTypeEXT "GLenum" - FogPointerTypeIBM "GLenum" - FragmentLightModelParameterSGIX "GLenum" - FragmentLightNameSGIX "GLenum" - FragmentLightParameterSGIX "GLenum" - FramebufferAttachment "GLenum" - FramebufferTarget "GLenum" - FrontFaceDirection "GLenum" - FunctionPointer "_GLfuncptr" - GetColorTableParameterPName "GLenum" - GetColorTableParameterPNameSGI "GLenum" - GetConvolutionParameterPName "GLenum" - GetHistogramParameterPName "GLenum" - GetHistogramParameterPNameEXT "GLenum" - GetMapQuery "GLenum" - GetMinmaxParameterPName "GLenum" - GetMinmaxParameterPNameEXT "GLenum" - GetPName "GLenum" - GetPointervPName "GLenum" - GetTextureParameter "GLenum" - HintMode "GLenum" - HintTarget "GLenum" - HintTargetPGI "GLenum" - HistogramTarget "GLenum" - HistogramTargetEXT "GLenum" - IglooFunctionSelectSGIX "GLenum" - IglooParameterSGIX "GLvoid" - ImageTransformPNameHP "GLenum" - ImageTransformTargetHP "GLenum" - IndexFunctionEXT "GLenum" - IndexMaterialParameterEXT "GLenum" - IndexPointerType "GLenum" - Int16 "GLshort" - Int32 "GLint" - Int8 "GLbyte" - InterleavedArrayFormat "GLenum" - LightEnvParameterSGIX "GLenum" - LightModelParameter "GLenum" - LightName "GLenum" - LightParameter "GLenum" - LightTextureModeEXT "GLenum" - LightTexturePNameEXT "GLenum" - LineStipple "GLushort" - List "GLuint" - ListMode "GLenum" - ListNameType "GLenum" - ListParameterName "GLenum" - LogicOp "GLenum" - MapAttribParameterNV "GLenum" - MapParameterNV "GLenum" - MapTarget "GLenum" - MapTargetNV "GLenum" - MapTypeNV "GLenum" - MaskedColorIndexValueF "GLfloat" - MaskedColorIndexValueI "GLuint" - MaskedStencilValue "GLuint" - MaterialFace "GLenum" - MaterialParameter "GLenum" - MatrixIndexPointerTypeARB "GLenum" - MatrixMode "GLenum" - MatrixTransformNV "GLenum" - MeshMode1 "GLenum" - MeshMode2 "GLenum" - MinmaxTarget "GLenum" - MinmaxTargetEXT "GLenum" - NormalPointerType "GLenum" - NurbsCallback "GLenum" - NurbsObj "GLUnurbs*" - NurbsProperty "GLenum" - NurbsTrim "GLenum" - OcclusionQueryParameterNameNV "GLenum" - PixelCopyType "GLenum" - PixelFormat "GLenum" - PixelInternalFormat "GLenum" - PixelMap "GLenum" - PixelStoreParameter "GLenum" - PixelTexGenModeSGIX "GLenum" - PixelTexGenParameterNameSGIS "GLenum" - PixelTransferParameter "GLenum" - PixelTransformPNameEXT "GLenum" - PixelTransformTargetEXT "GLenum" - PixelType "GLenum" - PointParameterNameARB "GLenum" - PolygonMode "GLenum" - ProgramNV "GLuint" - ProgramCharacterNV "GLubyte" - ProgramParameterNV "GLenum" - ProgramParameterPName "GLenum" - QuadricCallback "GLenum" - QuadricDrawStyle "GLenum" - QuadricNormal "GLenum" - QuadricObj "GLUquadric*" - QuadricOrientation "GLenum" - ReadBufferMode "GLenum" - RenderbufferTarget "GLenum" - RenderingMode "GLenum" - ReplacementCodeSUN "GLuint" - ReplacementCodeTypeSUN "GLenum" - SamplePassARB "GLenum" - SamplePatternEXT "GLenum" - SamplePatternSGIS "GLenum" - SecondaryColorPointerTypeIBM "GLenum" - SelectName "GLuint" - SeparableTarget "GLenum" - SeparableTargetEXT "GLenum" - ShadingModel "GLenum" - SizeI "GLsizei" - SpriteParameterNameSGIX "GLenum" - StencilFunction "GLenum" - StencilFaceDirection "GLenum" - StencilOp "GLenum" - StencilValue "GLint" - String "const GLubyte *" - StringName "GLenum" - TangentPointerTypeEXT "GLenum" - TessCallback "GLenum" - TessContour "GLenum" - TessProperty "GLenum" - TesselatorObj "GLUtesselator*" - TexCoordPointerType "GLenum" - Texture "GLuint" - TextureComponentCount "GLint" - TextureCoordName "GLenum" - TextureEnvParameter "GLenum" - TextureEnvTarget "GLenum" - TextureFilterSGIS "GLenum" - TextureGenParameter "GLenum" - TextureNormalModeEXT "GLenum" - TextureParameterName "GLenum" - TextureTarget "GLenum" - TextureUnit "GLenum" - UInt16 "GLushort" - UInt32 "GLuint" - UInt8 "GLubyte" - VertexAttribEnum "GLenum" - VertexAttribEnumNV "GLenum" - VertexAttribPointerTypeNV "GLenum" - VertexPointerType "GLenum" - VertexWeightPointerTypeEXT "GLenum" - Void "GLvoid" - VoidPointer "GLvoid*" - ConstVoidPointer "GLvoid* const" - WeightPointerTypeARB "GLenum" - WinCoord "GLint" - void "void" - ArrayObjectPNameATI "GLenum" - ArrayObjectUsageATI "GLenum" - ConstFloat32 "GLfloat" - ConstInt32 "GLint" - ConstUInt32 "GLuint" - ConstVoid "GLvoid" - DataTypeEXT "GLenum" - FragmentOpATI "GLenum" - GetTexBumpParameterATI "GLenum" - GetVariantValueEXT "GLenum" - ParameterRangeEXT "GLenum" - PreserveModeATI "GLenum" - ProgramFormatARB "GLenum" - ProgramTargetARB "GLenum" - ProgramTarget "GLenum" - ProgramPropertyARB "GLenum" - ProgramStringPropertyARB "GLenum" - ScalarType "GLenum" - SwizzleOpATI "GLenum" - TexBumpParameterATI "GLenum" - VariantCapEXT "GLenum" - VertexAttribPointerPropertyARB "GLenum" - VertexAttribPointerTypeARB "GLenum" - VertexAttribPropertyARB "GLenum" - VertexShaderCoordOutEXT "GLenum" - VertexShaderOpEXT "GLenum" - VertexShaderParameterEXT "GLenum" - VertexShaderStorageTypeEXT "GLenum" - VertexShaderTextureUnitParameter "GLenum" - VertexShaderWriteMaskEXT "GLenum" - VertexStreamATI "GLenum" - PNTrianglesPNameATI "GLenum" - BufferOffset "GLintptr" - BufferSize "GLsizeiptr" - BufferAccessARB "GLenum" - BufferOffsetARB "GLintptrARB" - BufferPNameARB "GLenum" - BufferPointerNameARB "GLenum" - BufferSizeARB "GLsizeiptrARB" - BufferTargetARB "GLenum" - BufferUsageARB "GLenum" - ObjectTypeAPPLE "GLenum" - VertexArrayPNameAPPLE "GLenum" - DrawBufferModeATI "GLenum" - Half16NV "GLhalfNV" - PixelDataRangeTargetNV "GLenum" - TypeEnum "GLenum" - GLbitfield "GLbitfield" - GLenum "GLenum" - Int64 "GLint64" - UInt64 "GLuint64" - handleARB "GLhandleARB" - charARB "GLcharARB" - charPointerARB "GLcharARB*" - sync "GLsync" - Int64EXT "GLint64EXT" - UInt64EXT "GLuint64EXT" - FramebufferAttachment "GLenum" - FramebufferAttachmentParameterName "GLenum" - Framebuffer "GLuint" - FramebufferStatus "GLenum" - FramebufferTarget "GLenum" - GetFramebufferParameter "GLenum" - Intptr "GLintptr" - ProgramFormat "GLenum" - ProgramProperty "GLenum" - ProgramStringProperty "GLenum" - ProgramTarget "GLenum" - Renderbuffer "GLuint" - RenderbufferParameterName "GLenum" - Sizeiptr "GLsizeiptr" - TextureInternalFormat "GLenum" - VertexBufferObjectAccess "GLenum" - VertexBufferObjectParameter "GLenum" - VertexBufferObjectUsage "GLenum" - BufferAccessMask "GLbitfield" - GetMultisamplePNameNV "GLenum" - SampleMaskNV "GLbitfield" -} - -proc psplit s { - set r [list] - set token "" - - foreach c [split $s ""] { - if {[string is space -strict $c]} { - if {[string length $token]} { - lappend r $token - } - set token "" - } else { - append token $c - } - } - - if {[string length $token]} { - lappend r $token - } - - return $r -} - -proc is-extension? str { - #Check if the trailing name of the function is NV, or EXT, and so on. - - if {[string is upper [string index $str end]] - && [string is upper [string index $str end-1]]} { - return 1 - } - - return 0 -} - - -proc parse {data arvar} { - upvar 1 $arvar ar - - set state "" - set name "" - - foreach line [split $data \n] { - if {"attr" eq $state} { - if {[string match "\t*" $line]} { - set plist [psplit [lindex [split $line "#"] 0]] - #puts PLIST:$plist - set master $ar($name) - set param [dict get $master parameters] - - switch -- [llength $plist] { - 1 { - dict set master [lindex $plist 0] "" - } - - 2 { - #standard key, value pair - set key [lindex $plist 0] - set value [lindex $plist 1] - - dict set master $key $value - } - - default { - set key [lindex $plist 0] - - #puts PLIST:$plist - - if {"param" eq $key} { - lappend param [list [lindex $plist 1] [lindex $plist 2] [lindex $plist 3] [lindex $plist 4]] - } else { - dict set master $key [lrange $plist 1 end] - } - } - } - - dict set master parameters $param - - set ar($name) $master - } else { - set state "" - } - } elseif {[regexp {^([A-Z_a-z0-9]+)\((.*)\)\S*} $line all name argv] > 0} { - #puts "MATCH:$name ARGV:$argv" - - #Trim the spaces in the elements. - set newargv [list] - foreach a [split $argv ,] { - lappend newargv [string trim $a] - } - - - set d [dict create name $name arguments $newargv \ - parameters [dict create]] - set ar($name) $d - set state attr - } - } -} - -#This returns true if the category is valid for an extension. -proc is-valid-category? c { - set clist [list display-list drawing drawing-control feedback framebuf misc modeling pixel-op pixel-rw state-req xform VERSION_1_0 VERSION_1_0_DEPRECATED VERSION_1_1 VERSION_1_1_DEPRECATED VERSION_1_2 VERSION_1_2_DEPRECATED VERSION_1_3 VERSION_1_3_DEPRECATED VERSION_1_4 VERSION_1_4_DEPRECATED VERSION_1_5 VERSION_2_0 VERSION_2_1 VERSION_3_0 VERSION_3_0_DEPRECATED VERSION_3_1 VERSION_3_2] - - set result [expr {$c in $clist}] - - - if {!$result} { - set result [is-extension-supported? $c] - } - - return $result -} - -proc translate-parameters {func parameters} { - global typemap - - set newparams [list] - - foreach p $parameters { - set var [lindex $p 0] - - set ptype [lindex $p 1] - - if {![info exists typemap($ptype)]} { - set ::missingTypes($ptype) $func - continue - } - - set type $typemap($ptype) - - if {"array" eq [lindex $p 3]} { - if {"in" eq [lindex $p 2]} { - set final_type "const $type *" - } else { - set final_type "$type *" - } - } else { - set final_type $type - } - - lappend newparams [list $final_type $var] - } - - return $newparams -} - -proc api-new-entry {info func} { - global typemap - - set master [dict create] - set rettype [dict get $info return] - - if {![info exists typemap($rettype)]} { - set ::missingTypes($rettype) $func - } else { - dict set master return $typemap($rettype) - } - - dict set master parameters [translate-parameters $func \ - [dict get $info parameters]] - - return $master -} - -proc main {argc argv} { - global extensions typemap aliases promoted noop - - set fd [open [lindex $argv 0] r] - set data [read $fd] - close $fd - - array set ar {} - - parse $data ar - - array set newapi {} - array set missingTypes {} - - foreach {key value} [array get ar] { - puts "KEY:$key VALUE:$value" - - set category [dict get $value category] - - #Invalidate any of the extensions and things not in the spec we support. - set valid [is-valid-category? $category] - puts VALID:$valid - - if {!$valid} { - continue - } - - puts "VALID:$key" - - if {"BlitFramebuffer" eq $key} { - #This was promoted to an ARB extension after Leopard it seems. - set key BlitFramebufferEXT - } - - if {"ARB_framebuffer_object" eq $category} { - #This wasn't an ARB extension in Leopard either. - if {![string match *EXT $key]} { - append key EXT - } - } - - set newapi($key) [api-new-entry $value $key] - } - - #Now iterate and support as many aliases as we can for promoted functions - #based on if the newapi contains the function. - foreach {func value} [array get ar] { - if {![info exists promoted([dict get $value category])]} { - continue - } - - if {[dict exists $value alias]} { - #We have an alias. Let's see if we have the implementation. - set alias [dict get $value alias] - - if {[info exists newapi($alias)] && ![info exists newapi($func)]} { - #We have an implementing function available. - puts "HAVE:$key ALIAS:$alias" - - set master [api-new-entry $value $func] - dict set master alias_for $alias - set newapi($func) $master - } - } - } - - parray noop - - #Now handle the no-op compatibility categories. - foreach {func value} [array get ar] { - if {[info exists noop([dict get $value category])]} { - if {[info exists newapi($func)]} { - puts stderr "$func shouldn't be a noop" - exit 1 - } - - set master [api-new-entry $value $func] - dict set master noop 1 - set newapi($func) $master - } - } - - - - parray newapi - - if {[array size ::missingTypes]} { - parray ::missingTypes - return 1 - } - - foreach {from to} [array get aliases] { - set d $newapi($to) - dict set d alias_for $to - set newapi($from) $d - } - - #Iterate the nm output and set each symbol in an associative array. - array set validapi {} - - foreach line [split [exec nm -j -g /System/Library/Frameworks/OpenGL.framework/Libraries/libGL.dylib] \n] { - set fn [string trim $line] - - #Only match the _gl functions. - if {[string match _gl* $fn]} { - set finalfn [string range $fn 3 end] - puts FINALFN:$finalfn - set validapi($finalfn) $finalfn - } - } - - puts "Correcting the API functions to match the OpenGL framework." - #parray validapi - - #Iterate the newapi and unset any members that the - #libGL.dylib doesn't support, assuming they aren't no-ops. - foreach fn [array names newapi] { - if {![info exists validapi($fn)]} { - puts "WARNING: libGL.dylib lacks support for: $fn" - - if {[dict exists $newapi($fn) noop] - && [dict get $newapi($fn) noop]} { - #This is no-op, so we should skip it. - continue - } - - #Is the function an alias for another in libGL? - if {[dict exists $newapi($fn) alias_for]} { - set alias [dict get $newapi($fn) alias_for] - - if {![info exists validapi($alias)]} { - puts "WARNING: alias function doesn't exist for $fn." - puts "The alias is $alias." - puts "unsetting $fn" - unset newapi($fn) - } - } else { - puts "unsetting $fn" - unset newapi($fn) - } - } - } - - - #Now print a warning about any symbols that libGL supports that we don't. - foreach fn [array names validapi] { - if {![info exists newapi($fn)]} { - puts "AppleSGLX is missing $fn" - } - } - - puts "NOW GENERATING:[lindex $::argv 1]" - set fd [open [lindex $::argv 1] w] - - set sorted [lsort -dictionary [array names newapi]] - - foreach f $sorted { - set attr $newapi($f) - set pstr "" - foreach p [dict get $attr parameters] { - append pstr "[lindex $p 0] [lindex $p 1], " - } - set pstr [string trimright $pstr ", "] - puts $fd "[dict get $attr return] gl[set f]($pstr); " - } - - close $fd - - if {$::argc == 3} { - puts "NOW GENERATING:[lindex $::argv 2]" - #Dump the array as a serialized list. - set fd [open [lindex $::argv 2] w] - puts $fd [array get newapi] - close $fd - } - - return 0 -} -exit [main $::argc $::argv] - diff --git a/src/glx/apple/gen_types.tcl b/src/glx/apple/gen_types.tcl deleted file mode 100644 index ed20bdaec0d..00000000000 --- a/src/glx/apple/gen_types.tcl +++ /dev/null @@ -1,32 +0,0 @@ - -proc main {argc argv} { - if {1 != $argc} { - puts stderr "syntax is: [info script] output.h" - exit 1 - } - - set fd [open [lindex $argv 0] w] - puts $fd " -/*OpenGL primitive typedefs*/ -typedef unsigned int GLenum; -typedef unsigned char GLboolean; -typedef unsigned int GLbitfield; -typedef signed char GLbyte; -typedef short GLshort; -typedef int GLint; -typedef int GLsizei; -typedef unsigned char GLubyte; -typedef unsigned short GLushort; -typedef unsigned int GLuint; -typedef float GLfloat; -typedef float GLclampf; -typedef double GLdouble; -typedef double GLclampd; -typedef void GLvoid; - -typedef long GLintptr; -typedef long GLsizeiptr; -" - -} -main $::argc $::argv diff --git a/src/glx/apple/specs/enum.spec b/src/glx/apple/specs/enum.spec deleted file mode 100644 index 811b7d5fe08..00000000000 --- a/src/glx/apple/specs/enum.spec +++ /dev/null @@ -1,8039 +0,0 @@ -# This is the OpenGL and OpenGL ES enumerant registry. -# -# It is an extremely important file. Do not mess with it unless -# you know what you're doing and have permission to do so. -# -# $Revision: 14384 $ on $Date: 2011-04-05 23:05:03 -0700 (Tue, 05 Apr 2011) $ - -############################################################################### -# -# Before modifying this file, read the following: -# -# ONLY the Khronos API Registrar (Jon Leech, jon 'at' alumni.caltech.edu) -# may allocate new enumerants outside the 'experimental' range described -# below. Any modifications to this file not performed by the Registrar -# are incompatible with the OpenGL API. The master copy of the registry, -# showing up-to-date enumerant allocations, is maintained in the -# OpenGL registry at -# -# http://www.opengl.org/registry/ -# -# The following guidelines are thus only for reference purposes -# (unless you're the Registrar) -# -# Enumerant values for extensions CANNOT be chosen arbitrarily, since -# the enumerant value space is shared by all GL implementations. It is -# therefore imperative that the procedures described in this file be -# followed carefully when allocating extension enum values. -# -# - Use tabs, not spaces. -# -# - When adding enum values for a new extension, use existing extensions -# as a guide. -# -# - When a vendor has committed to releasing a new extension and needs to -# allocate enum values for that extension, the vendor may request that the -# ARB allocate a previously unallocated block of 16 enum values, in the -# range 0x8000-0xFFFF, for the vendor's exclusive use. -# -# - The vendor that introduces an extension will allocate enum values for -# it as if it is a single-vendor extension, even if it is a multi-vendor -# (EXT) extension. -# -# - The file enum.spec is primarily a reference. The file enumext.spec -# contains enumerants for all OpenGL 1.2 and OpenGL extensions in a form -# used to generate . -# -# - If a vendor hasn't yet released an extension, just add a comment to -# enum.spec that contains the name of the extension and the range of enum -# values used by the extension. When the vendor releases the extension, -# put the actual enum assignments in enum.spec and enumext.spec. -# -# - Allocate all of the enum values for an extension in a single contiguous -# block. -# -# - If an extension is experimental, allocate temporary enum values in the -# range 0x6000-0x8000 during development work. When the vendor commits to -# releasing the extension, allocate permanent enum values (see below). -# There are two reasons for this policy: -# -# 1. It is desirable to keep extension enum values tightly packed and to -# make all of the enum values for an extension be contiguous. This is -# possible only if permanent enum values for a new extension are not -# allocated until the extension spec is stable and the number of new -# enum values needed by the extension has therefore stopped changing. -# -# 2. OpenGL ARB policy is that a vendor may allocate a new block of 16 -# extension enum values only if it has committed to releasing an -# extension that will use values in that block. -# -# - To allocate a new block of permanent enum values for an extension, do the -# following: -# -# 1. Start at the top of enum.spec and choose the first future_use -# range that is not allocated to another vendor and is large enough -# to contain the new block. This will almost certainly be the -# 'Any_vendor_future_use' range near the end of enum.spec. This -# process helps keep allocated enum values tightly packed into -# the start of the 0x8000-0xFFFF range. -# -# 2. Allocate a block of enum values at the start of this range. If -# the enum definitions are going into enumfuture.spec, add a comment -# to enum.spec that contains the name of the extension and the range -# of values in the new block. Use existing extensions as a guide. -# -# 3. Add the size of the block you just allocated to the start of the -# chosen future_use range. If you have allocated the entire range, -# eliminate its future_use entry. -# -# 4. Note that there are historical enum allocations above 0xFFFF, but -# no new allocations will be made there in the forseeable future. -# -############################################################################### - -Extensions define: - VERSION_1_1 = 1 - VERSION_1_2 = 1 - VERSION_1_3 = 1 - VERSION_1_4 = 1 - VERSION_1_5 = 1 - VERSION_2_0 = 1 - VERSION_2_1 = 1 - VERSION_3_0 = 1 - VERSION_3_1 = 1 - VERSION_3_2 = 1 - ARB_imaging = 1 - EXT_abgr = 1 - EXT_blend_color = 1 - EXT_blend_logic_op = 1 - EXT_blend_minmax = 1 - EXT_blend_subtract = 1 - EXT_cmyka = 1 - EXT_convolution = 1 - EXT_copy_texture = 1 - EXT_histogram = 1 - EXT_packed_pixels = 1 - EXT_point_parameters = 1 - EXT_polygon_offset = 1 - EXT_rescale_normal = 1 - EXT_shared_texture_palette = 1 - EXT_subtexture = 1 - EXT_texture = 1 - EXT_texture3D = 1 - EXT_texture_object = 1 - EXT_vertex_array = 1 - SGIS_detail_texture = 1 - SGIS_fog_function = 1 - SGIS_generate_mipmap = 1 - SGIS_multisample = 1 - SGIS_pixel_texture = 1 - SGIS_point_line_texgen = 1 - SGIS_point_parameters = 1 - SGIS_sharpen_texture = 1 - SGIS_texture4D = 1 - SGIS_texture_border_clamp = 1 - SGIS_texture_edge_clamp = 1 - SGIS_texture_filter4 = 1 - SGIS_texture_lod = 1 - SGIS_texture_select = 1 - SGIX_async = 1 - SGIX_async_histogram = 1 - SGIX_async_pixel = 1 - SGIX_blend_alpha_minmax = 1 - SGIX_calligraphic_fragment = 1 - SGIX_clipmap = 1 - SGIX_convolution_accuracy = 1 - SGIX_depth_texture = 1 - SGIX_flush_raster = 1 - SGIX_fog_offset = 1 - SGIX_fragment_lighting = 1 - SGIX_framezoom = 1 - SGIX_icc_texture = 1 - SGIX_impact_pixel_texture = 1 - SGIX_instruments = 1 - SGIX_interlace = 1 - SGIX_ir_instrument1 = 1 - SGIX_list_priority = 1 - SGIX_pixel_texture = 1 - SGIX_pixel_tiles = 1 - SGIX_polynomial_ffd = 1 - SGIX_reference_plane = 1 - SGIX_resample = 1 - SGIX_scalebias_hint = 1 - SGIX_shadow = 1 - SGIX_shadow_ambient = 1 - SGIX_sprite = 1 - SGIX_subsample = 1 - SGIX_tag_sample_buffer = 1 - SGIX_texture_add_env = 1 - SGIX_texture_coordinate_clamp = 1 - SGIX_texture_lod_bias = 1 - SGIX_texture_multi_buffer = 1 - SGIX_texture_scale_bias = 1 - SGIX_vertex_preclip = 1 - SGIX_ycrcb = 1 - SGI_color_matrix = 1 - SGI_color_table = 1 - SGI_texture_color_table = 1 - -############################################################################### - -AttribMask enum: - CURRENT_BIT = 0x00000001 - POINT_BIT = 0x00000002 - LINE_BIT = 0x00000004 - POLYGON_BIT = 0x00000008 - POLYGON_STIPPLE_BIT = 0x00000010 - PIXEL_MODE_BIT = 0x00000020 - LIGHTING_BIT = 0x00000040 - FOG_BIT = 0x00000080 - DEPTH_BUFFER_BIT = 0x00000100 - ACCUM_BUFFER_BIT = 0x00000200 - STENCIL_BUFFER_BIT = 0x00000400 - VIEWPORT_BIT = 0x00000800 - TRANSFORM_BIT = 0x00001000 - ENABLE_BIT = 0x00002000 - COLOR_BUFFER_BIT = 0x00004000 - HINT_BIT = 0x00008000 - EVAL_BIT = 0x00010000 - LIST_BIT = 0x00020000 - TEXTURE_BIT = 0x00040000 - SCISSOR_BIT = 0x00080000 - ALL_ATTRIB_BITS = 0xFFFFFFFF -#??? ALL_ATTRIB_BITS mask value changed to all-1s in OpenGL 1.3 - this affects covgl. -# use ARB_multisample MULTISAMPLE_BIT_ARB -# use EXT_multisample MULTISAMPLE_BIT_EXT -# use 3DFX_multisample MULTISAMPLE_BIT_3DFX - -VERSION_1_3 enum: (Promoted for OpenGL 1.3) - MULTISAMPLE_BIT = 0x20000000 - -ARB_multisample enum: - MULTISAMPLE_BIT_ARB = 0x20000000 - -EXT_multisample enum: - MULTISAMPLE_BIT_EXT = 0x20000000 - -3DFX_multisample enum: - MULTISAMPLE_BIT_3DFX = 0x20000000 - -############################################################################### - -# Note that COVERAGE_BUFFER_BIT_NV collides with AttribMask bit -# HINT_BIT. This is OK since the extension is for OpenGL ES 2, which -# doesn't have attribute groups. -ClearBufferMask enum: - use AttribMask DEPTH_BUFFER_BIT # = 0x00000100 - use AttribMask ACCUM_BUFFER_BIT # = 0x00000200 - use AttribMask STENCIL_BUFFER_BIT # = 0x00000400 - use AttribMask COLOR_BUFFER_BIT # = 0x00004000 - use NV_coverage_sample COVERAGE_BUFFER_BIT_NV # = 0x00008000 - -############################################################################### - -ClientAttribMask enum: - CLIENT_PIXEL_STORE_BIT = 0x00000001 - CLIENT_VERTEX_ARRAY_BIT = 0x00000002 - CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF - -############################################################################### - -# There's no obvious better place to put non-attribute-group mask bits -VERSION_3_0 enum: - use ARB_map_buffer_range MAP_READ_BIT - use ARB_map_buffer_range MAP_WRITE_BIT - use ARB_map_buffer_range MAP_INVALIDATE_RANGE_BIT - use ARB_map_buffer_range MAP_INVALIDATE_BUFFER_BIT - use ARB_map_buffer_range MAP_FLUSH_EXPLICIT_BIT - use ARB_map_buffer_range MAP_UNSYNCHRONIZED_BIT - -ARB_map_buffer_range enum: - MAP_READ_BIT = 0x0001 # VERSION_3_0 / ARB_mbr - MAP_WRITE_BIT = 0x0002 # VERSION_3_0 / ARB_mbr - MAP_INVALIDATE_RANGE_BIT = 0x0004 # VERSION_3_0 / ARB_mbr - MAP_INVALIDATE_BUFFER_BIT = 0x0008 # VERSION_3_0 / ARB_mbr - MAP_FLUSH_EXPLICIT_BIT = 0x0010 # VERSION_3_0 / ARB_mbr - MAP_UNSYNCHRONIZED_BIT = 0x0020 # VERSION_3_0 / ARB_mbr - -############################################################################### - -# CONTEXT_FLAGS_ARB bits (should be shared with WGL and GLX) - -VERSION_3_0 enum: - CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x00000001 # VERSION_3_0 - -# 0x00000001 used in WGL/GLX for CONTEXT_DEBUG_BIT_ARB, while -# 0x00000002 used in WGL/GLX for CONTEXT_FORWARD_COMPATIBLE_BIT_ARB. Oops. -# We do not currently expose CONTEXT_FLAG_DEBUG_BIT in GL, at least. - -ARB_robustness enum: - CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB = 0x00000004 # ARB_robustness - -############################################################################### - -# UseProgramStages stage bits - -ARB_separate_shader_objects enum: (additional; see below) - VERTEX_SHADER_BIT = 0x00000001 - FRAGMENT_SHADER_BIT = 0x00000002 - GEOMETRY_SHADER_BIT = 0x00000004 - TESS_CONTROL_SHADER_BIT = 0x00000008 - TESS_EVALUATION_SHADER_BIT = 0x00000010 - ALL_SHADER_BITS = 0xFFFFFFFF - -############################################################################### - -Boolean enum: - FALSE = 0 - TRUE = 1 - -############################################################################### - -BeginMode enum: - POINTS = 0x0000 - LINES = 0x0001 - LINE_LOOP = 0x0002 - LINE_STRIP = 0x0003 - TRIANGLES = 0x0004 - TRIANGLE_STRIP = 0x0005 - TRIANGLE_FAN = 0x0006 - QUADS = 0x0007 - QUAD_STRIP = 0x0008 - POLYGON = 0x0009 - -VERSION_3_2 enum: - LINES_ADJACENCY = 0x000A - LINE_STRIP_ADJACENCY = 0x000B - TRIANGLES_ADJACENCY = 0x000C - TRIANGLE_STRIP_ADJACENCY = 0x000D - -ARB_geometry_shader4 enum: (additional; see below) - LINES_ADJACENCY_ARB = 0x000A - LINE_STRIP_ADJACENCY_ARB = 0x000B - TRIANGLES_ADJACENCY_ARB = 0x000C - TRIANGLE_STRIP_ADJACENCY_ARB = 0x000D - -NV_geometry_program4 enum: (additional; see below) - LINES_ADJACENCY_EXT = 0x000A - LINE_STRIP_ADJACENCY_EXT = 0x000B - TRIANGLES_ADJACENCY_EXT = 0x000C - TRIANGLE_STRIP_ADJACENCY_EXT = 0x000D - -ARB_tessellation_shader enum: - PATCHES = 0x000E - -NV_gpu_shader5 enum: - use ARB_tessellation_shader PATCHES - -# BeginMode_future_use: 0x000F - -############################################################################### - -AccumOp enum: - ACCUM = 0x0100 - LOAD = 0x0101 - RETURN = 0x0102 - MULT = 0x0103 - ADD = 0x0104 - -############################################################################### - -AlphaFunction enum: - NEVER = 0x0200 - LESS = 0x0201 - EQUAL = 0x0202 - LEQUAL = 0x0203 - GREATER = 0x0204 - NOTEQUAL = 0x0205 - GEQUAL = 0x0206 - ALWAYS = 0x0207 - -############################################################################### - -BlendingFactorDest enum: - ZERO = 0 - ONE = 1 - SRC_COLOR = 0x0300 - ONE_MINUS_SRC_COLOR = 0x0301 - SRC_ALPHA = 0x0302 - ONE_MINUS_SRC_ALPHA = 0x0303 - DST_ALPHA = 0x0304 - ONE_MINUS_DST_ALPHA = 0x0305 - use EXT_blend_color CONSTANT_COLOR_EXT - use EXT_blend_color ONE_MINUS_CONSTANT_COLOR_EXT - use EXT_blend_color CONSTANT_ALPHA_EXT - use EXT_blend_color ONE_MINUS_CONSTANT_ALPHA_EXT - -############################################################################### - -BlendingFactorSrc enum: - use BlendingFactorDest ZERO - use BlendingFactorDest ONE - DST_COLOR = 0x0306 - ONE_MINUS_DST_COLOR = 0x0307 - SRC_ALPHA_SATURATE = 0x0308 - use BlendingFactorDest SRC_ALPHA - use BlendingFactorDest ONE_MINUS_SRC_ALPHA - use BlendingFactorDest DST_ALPHA - use BlendingFactorDest ONE_MINUS_DST_ALPHA - use EXT_blend_color CONSTANT_COLOR_EXT - use EXT_blend_color ONE_MINUS_CONSTANT_COLOR_EXT - use EXT_blend_color CONSTANT_ALPHA_EXT - use EXT_blend_color ONE_MINUS_CONSTANT_ALPHA_EXT - -############################################################################### - -BlendEquationModeEXT enum: - use GetPName LOGIC_OP - use EXT_blend_minmax FUNC_ADD_EXT - use EXT_blend_minmax MIN_EXT - use EXT_blend_minmax MAX_EXT - use EXT_blend_subtract FUNC_SUBTRACT_EXT - use EXT_blend_subtract FUNC_REVERSE_SUBTRACT_EXT - use SGIX_blend_alpha_minmax ALPHA_MIN_SGIX - use SGIX_blend_alpha_minmax ALPHA_MAX_SGIX - -############################################################################### - -ColorMaterialFace enum: - use DrawBufferMode FRONT - use DrawBufferMode BACK - use DrawBufferMode FRONT_AND_BACK - -############################################################################### - -ColorMaterialParameter enum: - use LightParameter AMBIENT - use LightParameter DIFFUSE - use LightParameter SPECULAR - use MaterialParameter EMISSION - use MaterialParameter AMBIENT_AND_DIFFUSE - -############################################################################### - -ColorPointerType enum: - use DataType BYTE - use DataType UNSIGNED_BYTE - use DataType SHORT - use DataType UNSIGNED_SHORT - use DataType INT - use DataType UNSIGNED_INT - use DataType FLOAT - use DataType DOUBLE - -############################################################################### - -ColorTableParameterPNameSGI enum: - use SGI_color_table COLOR_TABLE_SCALE_SGI - use SGI_color_table COLOR_TABLE_BIAS_SGI - -############################################################################### - -ColorTableTargetSGI enum: - use SGI_color_table COLOR_TABLE_SGI - use SGI_color_table POST_CONVOLUTION_COLOR_TABLE_SGI - use SGI_color_table POST_COLOR_MATRIX_COLOR_TABLE_SGI - use SGI_color_table PROXY_COLOR_TABLE_SGI - use SGI_color_table PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI - use SGI_color_table PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI - use SGI_texture_color_table TEXTURE_COLOR_TABLE_SGI - use SGI_texture_color_table PROXY_TEXTURE_COLOR_TABLE_SGI - -############################################################################### - -ConvolutionBorderModeEXT enum: - use EXT_convolution REDUCE_EXT - -############################################################################### - -ConvolutionParameterEXT enum: - use EXT_convolution CONVOLUTION_BORDER_MODE_EXT - use EXT_convolution CONVOLUTION_FILTER_SCALE_EXT - use EXT_convolution CONVOLUTION_FILTER_BIAS_EXT - -############################################################################### - -ConvolutionTargetEXT enum: - use EXT_convolution CONVOLUTION_1D_EXT - use EXT_convolution CONVOLUTION_2D_EXT - -############################################################################### - -CullFaceMode enum: - use DrawBufferMode FRONT - use DrawBufferMode BACK - use DrawBufferMode FRONT_AND_BACK - -############################################################################### - -DepthFunction enum: - use AlphaFunction NEVER - use AlphaFunction LESS - use AlphaFunction EQUAL - use AlphaFunction LEQUAL - use AlphaFunction GREATER - use AlphaFunction NOTEQUAL - use AlphaFunction GEQUAL - use AlphaFunction ALWAYS - -############################################################################### - -DrawBufferMode enum: - NONE = 0 - FRONT_LEFT = 0x0400 - FRONT_RIGHT = 0x0401 - BACK_LEFT = 0x0402 - BACK_RIGHT = 0x0403 - FRONT = 0x0404 - BACK = 0x0405 - LEFT = 0x0406 - RIGHT = 0x0407 - FRONT_AND_BACK = 0x0408 - AUX0 = 0x0409 - AUX1 = 0x040A - AUX2 = 0x040B - AUX3 = 0x040C - -# Aliases DrawBufferMode enum above -OES_framebuffer_object enum: (OpenGL ES only; additional; see below) -# NONE_OES = 0 - -############################################################################### - -EnableCap enum: - use GetPName FOG - use GetPName LIGHTING - use GetPName TEXTURE_1D - use GetPName TEXTURE_2D - use GetPName LINE_STIPPLE - use GetPName POLYGON_STIPPLE - use GetPName CULL_FACE - use GetPName ALPHA_TEST - use GetPName BLEND - use GetPName INDEX_LOGIC_OP - use GetPName COLOR_LOGIC_OP - use GetPName DITHER - use GetPName STENCIL_TEST - use GetPName DEPTH_TEST - use GetPName CLIP_PLANE0 - use GetPName CLIP_PLANE1 - use GetPName CLIP_PLANE2 - use GetPName CLIP_PLANE3 - use GetPName CLIP_PLANE4 - use GetPName CLIP_PLANE5 - use GetPName LIGHT0 - use GetPName LIGHT1 - use GetPName LIGHT2 - use GetPName LIGHT3 - use GetPName LIGHT4 - use GetPName LIGHT5 - use GetPName LIGHT6 - use GetPName LIGHT7 - use GetPName TEXTURE_GEN_S - use GetPName TEXTURE_GEN_T - use GetPName TEXTURE_GEN_R - use GetPName TEXTURE_GEN_Q - use GetPName MAP1_VERTEX_3 - use GetPName MAP1_VERTEX_4 - use GetPName MAP1_COLOR_4 - use GetPName MAP1_INDEX - use GetPName MAP1_NORMAL - use GetPName MAP1_TEXTURE_COORD_1 - use GetPName MAP1_TEXTURE_COORD_2 - use GetPName MAP1_TEXTURE_COORD_3 - use GetPName MAP1_TEXTURE_COORD_4 - use GetPName MAP2_VERTEX_3 - use GetPName MAP2_VERTEX_4 - use GetPName MAP2_COLOR_4 - use GetPName MAP2_INDEX - use GetPName MAP2_NORMAL - use GetPName MAP2_TEXTURE_COORD_1 - use GetPName MAP2_TEXTURE_COORD_2 - use GetPName MAP2_TEXTURE_COORD_3 - use GetPName MAP2_TEXTURE_COORD_4 - use GetPName POINT_SMOOTH - use GetPName LINE_SMOOTH - use GetPName POLYGON_SMOOTH - use GetPName SCISSOR_TEST - use GetPName COLOR_MATERIAL - use GetPName NORMALIZE - use GetPName AUTO_NORMAL - use GetPName POLYGON_OFFSET_POINT - use GetPName POLYGON_OFFSET_LINE - use GetPName POLYGON_OFFSET_FILL - use GetPName VERTEX_ARRAY - use GetPName NORMAL_ARRAY - use GetPName COLOR_ARRAY - use GetPName INDEX_ARRAY - use GetPName TEXTURE_COORD_ARRAY - use GetPName EDGE_FLAG_ARRAY - use EXT_convolution CONVOLUTION_1D_EXT - use EXT_convolution CONVOLUTION_2D_EXT - use EXT_convolution SEPARABLE_2D_EXT - use EXT_histogram HISTOGRAM_EXT - use EXT_histogram MINMAX_EXT - use EXT_rescale_normal RESCALE_NORMAL_EXT - use EXT_shared_texture_palette SHARED_TEXTURE_PALETTE_EXT - use EXT_texture3D TEXTURE_3D_EXT - use SGIS_multisample MULTISAMPLE_SGIS - use SGIS_multisample SAMPLE_ALPHA_TO_MASK_SGIS - use SGIS_multisample SAMPLE_ALPHA_TO_ONE_SGIS - use SGIS_multisample SAMPLE_MASK_SGIS - use SGIS_texture4D TEXTURE_4D_SGIS - use SGIX_async_histogram ASYNC_HISTOGRAM_SGIX - use SGIX_async_pixel ASYNC_TEX_IMAGE_SGIX - use SGIX_async_pixel ASYNC_DRAW_PIXELS_SGIX - use SGIX_async_pixel ASYNC_READ_PIXELS_SGIX - use SGIX_calligraphic_fragment CALLIGRAPHIC_FRAGMENT_SGIX - use SGIX_fog_offset FOG_OFFSET_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHTING_SGIX - use SGIX_fragment_lighting FRAGMENT_COLOR_MATERIAL_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT0_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT1_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT2_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT3_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT4_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT5_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT6_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT7_SGIX - use SGIX_framezoom FRAMEZOOM_SGIX - use SGIX_interlace INTERLACE_SGIX - use SGIX_ir_instrument1 IR_INSTRUMENT1_SGIX - use SGIX_pixel_texture PIXEL_TEX_GEN_SGIX - use SGIS_pixel_texture PIXEL_TEXTURE_SGIS - use SGIX_reference_plane REFERENCE_PLANE_SGIX - use SGIX_sprite SPRITE_SGIX - use SGI_color_table COLOR_TABLE_SGI - use SGI_color_table POST_CONVOLUTION_COLOR_TABLE_SGI - use SGI_color_table POST_COLOR_MATRIX_COLOR_TABLE_SGI - use SGI_texture_color_table TEXTURE_COLOR_TABLE_SGI - -############################################################################### - -ErrorCode enum: - NO_ERROR = 0 - INVALID_ENUM = 0x0500 - INVALID_VALUE = 0x0501 - INVALID_OPERATION = 0x0502 - STACK_OVERFLOW = 0x0503 - STACK_UNDERFLOW = 0x0504 - OUT_OF_MEMORY = 0x0505 - use EXT_histogram TABLE_TOO_LARGE_EXT - use EXT_texture TEXTURE_TOO_LARGE_EXT - -# Additional error codes - -VERSION_3_0 enum: -# use ARB_framebuffer_object INVALID_FRAMEBUFFER_OPERATION - -ARB_framebuffer_object enum: (note: no ARB suffixes) - INVALID_FRAMEBUFFER_OPERATION = 0x0506 # VERSION_3_0 / ARB_fbo - -EXT_framebuffer_object enum: - INVALID_FRAMEBUFFER_OPERATION_EXT = 0x0506 - -# Aliases EXT_fbo enum above -OES_framebuffer_object enum: (OpenGL ES only; additional; see below) - INVALID_FRAMEBUFFER_OPERATION_OES = 0x0506 - -############################################################################### - -FeedbackType enum: - 2D = 0x0600 - 3D = 0x0601 - 3D_COLOR = 0x0602 - 3D_COLOR_TEXTURE = 0x0603 - 4D_COLOR_TEXTURE = 0x0604 - -############################################################################### - -FeedBackToken enum: - PASS_THROUGH_TOKEN = 0x0700 - POINT_TOKEN = 0x0701 - LINE_TOKEN = 0x0702 - POLYGON_TOKEN = 0x0703 - BITMAP_TOKEN = 0x0704 - DRAW_PIXEL_TOKEN = 0x0705 - COPY_PIXEL_TOKEN = 0x0706 - LINE_RESET_TOKEN = 0x0707 - -############################################################################### - -FfdMaskSGIX enum: - TEXTURE_DEFORMATION_BIT_SGIX = 0x00000001 - GEOMETRY_DEFORMATION_BIT_SGIX = 0x00000002 - -############################################################################### - -FfdTargetSGIX enum: - use SGIX_polynomial_ffd GEOMETRY_DEFORMATION_SGIX - use SGIX_polynomial_ffd TEXTURE_DEFORMATION_SGIX - -############################################################################### - -FogMode enum: - use TextureMagFilter LINEAR - EXP = 0x0800 - EXP2 = 0x0801 - use SGIS_fog_function FOG_FUNC_SGIS - -############################################################################### - -FogParameter enum: - use GetPName FOG_COLOR - use GetPName FOG_DENSITY - use GetPName FOG_END - use GetPName FOG_INDEX - use GetPName FOG_MODE - use GetPName FOG_START - use SGIX_fog_offset FOG_OFFSET_VALUE_SGIX - -############################################################################### - -FragmentLightModelParameterSGIX enum: - use SGIX_fragment_lighting FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX - -############################################################################### - -FrontFaceDirection enum: - CW = 0x0900 - CCW = 0x0901 - -############################################################################### - -GetColorTableParameterPNameSGI enum: - use SGI_color_table COLOR_TABLE_SCALE_SGI - use SGI_color_table COLOR_TABLE_BIAS_SGI - use SGI_color_table COLOR_TABLE_FORMAT_SGI - use SGI_color_table COLOR_TABLE_WIDTH_SGI - use SGI_color_table COLOR_TABLE_RED_SIZE_SGI - use SGI_color_table COLOR_TABLE_GREEN_SIZE_SGI - use SGI_color_table COLOR_TABLE_BLUE_SIZE_SGI - use SGI_color_table COLOR_TABLE_ALPHA_SIZE_SGI - use SGI_color_table COLOR_TABLE_LUMINANCE_SIZE_SGI - use SGI_color_table COLOR_TABLE_INTENSITY_SIZE_SGI - -############################################################################### - -GetConvolutionParameter enum: - use EXT_convolution CONVOLUTION_BORDER_MODE_EXT - use EXT_convolution CONVOLUTION_FILTER_SCALE_EXT - use EXT_convolution CONVOLUTION_FILTER_BIAS_EXT - use EXT_convolution CONVOLUTION_FORMAT_EXT - use EXT_convolution CONVOLUTION_WIDTH_EXT - use EXT_convolution CONVOLUTION_HEIGHT_EXT - use EXT_convolution MAX_CONVOLUTION_WIDTH_EXT - use EXT_convolution MAX_CONVOLUTION_HEIGHT_EXT - -############################################################################### - -GetHistogramParameterPNameEXT enum: - use EXT_histogram HISTOGRAM_WIDTH_EXT - use EXT_histogram HISTOGRAM_FORMAT_EXT - use EXT_histogram HISTOGRAM_RED_SIZE_EXT - use EXT_histogram HISTOGRAM_GREEN_SIZE_EXT - use EXT_histogram HISTOGRAM_BLUE_SIZE_EXT - use EXT_histogram HISTOGRAM_ALPHA_SIZE_EXT - use EXT_histogram HISTOGRAM_LUMINANCE_SIZE_EXT - use EXT_histogram HISTOGRAM_SINK_EXT - -############################################################################### - -GetMapQuery enum: - COEFF = 0x0A00 - ORDER = 0x0A01 - DOMAIN = 0x0A02 - -############################################################################### - -GetMinmaxParameterPNameEXT enum: - use EXT_histogram MINMAX_FORMAT_EXT - use EXT_histogram MINMAX_SINK_EXT - -############################################################################### - -GetPixelMap enum: - PIXEL_MAP_I_TO_I = 0x0C70 - PIXEL_MAP_S_TO_S = 0x0C71 - PIXEL_MAP_I_TO_R = 0x0C72 - PIXEL_MAP_I_TO_G = 0x0C73 - PIXEL_MAP_I_TO_B = 0x0C74 - PIXEL_MAP_I_TO_A = 0x0C75 - PIXEL_MAP_R_TO_R = 0x0C76 - PIXEL_MAP_G_TO_G = 0x0C77 - PIXEL_MAP_B_TO_B = 0x0C78 - PIXEL_MAP_A_TO_A = 0x0C79 - -############################################################################### - -GetPointervPName enum: - VERTEX_ARRAY_POINTER = 0x808E - NORMAL_ARRAY_POINTER = 0x808F - COLOR_ARRAY_POINTER = 0x8090 - INDEX_ARRAY_POINTER = 0x8091 - TEXTURE_COORD_ARRAY_POINTER = 0x8092 - EDGE_FLAG_ARRAY_POINTER = 0x8093 - FEEDBACK_BUFFER_POINTER = 0x0DF0 - SELECTION_BUFFER_POINTER = 0x0DF3 - use SGIX_instruments INSTRUMENT_BUFFER_POINTER_SGIX - -############################################################################### - -# the columns after the comment symbol (#) indicate: number of params, type -# (F - float, D - double, I - integer) for the returned values -GetPName enum: - CURRENT_COLOR = 0x0B00 # 4 F - CURRENT_INDEX = 0x0B01 # 1 F - CURRENT_NORMAL = 0x0B02 # 3 F - CURRENT_TEXTURE_COORDS = 0x0B03 # 4 F - CURRENT_RASTER_COLOR = 0x0B04 # 4 F - CURRENT_RASTER_INDEX = 0x0B05 # 1 F - CURRENT_RASTER_TEXTURE_COORDS = 0x0B06 # 4 F - CURRENT_RASTER_POSITION = 0x0B07 # 4 F - CURRENT_RASTER_POSITION_VALID = 0x0B08 # 1 I - CURRENT_RASTER_DISTANCE = 0x0B09 # 1 F - - POINT_SMOOTH = 0x0B10 # 1 I - POINT_SIZE = 0x0B11 # 1 F - POINT_SIZE_RANGE = 0x0B12 # 2 F - POINT_SIZE_GRANULARITY = 0x0B13 # 1 F - - LINE_SMOOTH = 0x0B20 # 1 I - LINE_WIDTH = 0x0B21 # 1 F - LINE_WIDTH_RANGE = 0x0B22 # 2 F - LINE_WIDTH_GRANULARITY = 0x0B23 # 1 F - LINE_STIPPLE = 0x0B24 # 1 I - LINE_STIPPLE_PATTERN = 0x0B25 # 1 I - LINE_STIPPLE_REPEAT = 0x0B26 # 1 I - use VERSION_1_2 SMOOTH_POINT_SIZE_RANGE - use VERSION_1_2 SMOOTH_POINT_SIZE_GRANULARITY - use VERSION_1_2 SMOOTH_LINE_WIDTH_RANGE - use VERSION_1_2 SMOOTH_LINE_WIDTH_GRANULARITY - use VERSION_1_2 ALIASED_POINT_SIZE_RANGE - use VERSION_1_2 ALIASED_LINE_WIDTH_RANGE - - LIST_MODE = 0x0B30 # 1 I - MAX_LIST_NESTING = 0x0B31 # 1 I - LIST_BASE = 0x0B32 # 1 I - LIST_INDEX = 0x0B33 # 1 I - - POLYGON_MODE = 0x0B40 # 2 I - POLYGON_SMOOTH = 0x0B41 # 1 I - POLYGON_STIPPLE = 0x0B42 # 1 I - EDGE_FLAG = 0x0B43 # 1 I - CULL_FACE = 0x0B44 # 1 I - CULL_FACE_MODE = 0x0B45 # 1 I - FRONT_FACE = 0x0B46 # 1 I - - LIGHTING = 0x0B50 # 1 I - LIGHT_MODEL_LOCAL_VIEWER = 0x0B51 # 1 I - LIGHT_MODEL_TWO_SIDE = 0x0B52 # 1 I - LIGHT_MODEL_AMBIENT = 0x0B53 # 4 F - SHADE_MODEL = 0x0B54 # 1 I - COLOR_MATERIAL_FACE = 0x0B55 # 1 I - COLOR_MATERIAL_PARAMETER = 0x0B56 # 1 I - COLOR_MATERIAL = 0x0B57 # 1 I - - FOG = 0x0B60 # 1 I - FOG_INDEX = 0x0B61 # 1 I - FOG_DENSITY = 0x0B62 # 1 F - FOG_START = 0x0B63 # 1 F - FOG_END = 0x0B64 # 1 F - FOG_MODE = 0x0B65 # 1 I - FOG_COLOR = 0x0B66 # 4 F - - DEPTH_RANGE = 0x0B70 # 2 F - DEPTH_TEST = 0x0B71 # 1 I - DEPTH_WRITEMASK = 0x0B72 # 1 I - DEPTH_CLEAR_VALUE = 0x0B73 # 1 F - DEPTH_FUNC = 0x0B74 # 1 I - - ACCUM_CLEAR_VALUE = 0x0B80 # 4 F - - STENCIL_TEST = 0x0B90 # 1 I - STENCIL_CLEAR_VALUE = 0x0B91 # 1 I - STENCIL_FUNC = 0x0B92 # 1 I - STENCIL_VALUE_MASK = 0x0B93 # 1 I - STENCIL_FAIL = 0x0B94 # 1 I - STENCIL_PASS_DEPTH_FAIL = 0x0B95 # 1 I - STENCIL_PASS_DEPTH_PASS = 0x0B96 # 1 I - STENCIL_REF = 0x0B97 # 1 I - STENCIL_WRITEMASK = 0x0B98 # 1 I - - MATRIX_MODE = 0x0BA0 # 1 I - NORMALIZE = 0x0BA1 # 1 I - VIEWPORT = 0x0BA2 # 4 I - MODELVIEW_STACK_DEPTH = 0x0BA3 # 1 I - PROJECTION_STACK_DEPTH = 0x0BA4 # 1 I - TEXTURE_STACK_DEPTH = 0x0BA5 # 1 I - MODELVIEW_MATRIX = 0x0BA6 # 16 F - PROJECTION_MATRIX = 0x0BA7 # 16 F - TEXTURE_MATRIX = 0x0BA8 # 16 F - - ATTRIB_STACK_DEPTH = 0x0BB0 # 1 I - CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1 # 1 I - - ALPHA_TEST = 0x0BC0 # 1 I - ALPHA_TEST_FUNC = 0x0BC1 # 1 I - ALPHA_TEST_REF = 0x0BC2 # 1 F - - DITHER = 0x0BD0 # 1 I - - BLEND_DST = 0x0BE0 # 1 I - BLEND_SRC = 0x0BE1 # 1 I - BLEND = 0x0BE2 # 1 I - - LOGIC_OP_MODE = 0x0BF0 # 1 I - INDEX_LOGIC_OP = 0x0BF1 # 1 I - LOGIC_OP = 0x0BF1 # 1 I - COLOR_LOGIC_OP = 0x0BF2 # 1 I - - AUX_BUFFERS = 0x0C00 # 1 I - DRAW_BUFFER = 0x0C01 # 1 I - READ_BUFFER = 0x0C02 # 1 I - - SCISSOR_BOX = 0x0C10 # 4 I - SCISSOR_TEST = 0x0C11 # 1 I - - INDEX_CLEAR_VALUE = 0x0C20 # 1 I - INDEX_WRITEMASK = 0x0C21 # 1 I - COLOR_CLEAR_VALUE = 0x0C22 # 4 F - COLOR_WRITEMASK = 0x0C23 # 4 I - - INDEX_MODE = 0x0C30 # 1 I - RGBA_MODE = 0x0C31 # 1 I - DOUBLEBUFFER = 0x0C32 # 1 I - STEREO = 0x0C33 # 1 I - - RENDER_MODE = 0x0C40 # 1 I - - PERSPECTIVE_CORRECTION_HINT = 0x0C50 # 1 I - POINT_SMOOTH_HINT = 0x0C51 # 1 I - LINE_SMOOTH_HINT = 0x0C52 # 1 I - POLYGON_SMOOTH_HINT = 0x0C53 # 1 I - FOG_HINT = 0x0C54 # 1 I - - TEXTURE_GEN_S = 0x0C60 # 1 I - TEXTURE_GEN_T = 0x0C61 # 1 I - TEXTURE_GEN_R = 0x0C62 # 1 I - TEXTURE_GEN_Q = 0x0C63 # 1 I - - PIXEL_MAP_I_TO_I_SIZE = 0x0CB0 # 1 I - PIXEL_MAP_S_TO_S_SIZE = 0x0CB1 # 1 I - PIXEL_MAP_I_TO_R_SIZE = 0x0CB2 # 1 I - PIXEL_MAP_I_TO_G_SIZE = 0x0CB3 # 1 I - PIXEL_MAP_I_TO_B_SIZE = 0x0CB4 # 1 I - PIXEL_MAP_I_TO_A_SIZE = 0x0CB5 # 1 I - PIXEL_MAP_R_TO_R_SIZE = 0x0CB6 # 1 I - PIXEL_MAP_G_TO_G_SIZE = 0x0CB7 # 1 I - PIXEL_MAP_B_TO_B_SIZE = 0x0CB8 # 1 I - PIXEL_MAP_A_TO_A_SIZE = 0x0CB9 # 1 I - - UNPACK_SWAP_BYTES = 0x0CF0 # 1 I - UNPACK_LSB_FIRST = 0x0CF1 # 1 I - UNPACK_ROW_LENGTH = 0x0CF2 # 1 I - UNPACK_SKIP_ROWS = 0x0CF3 # 1 I - UNPACK_SKIP_PIXELS = 0x0CF4 # 1 I - UNPACK_ALIGNMENT = 0x0CF5 # 1 I - - PACK_SWAP_BYTES = 0x0D00 # 1 I - PACK_LSB_FIRST = 0x0D01 # 1 I - PACK_ROW_LENGTH = 0x0D02 # 1 I - PACK_SKIP_ROWS = 0x0D03 # 1 I - PACK_SKIP_PIXELS = 0x0D04 # 1 I - PACK_ALIGNMENT = 0x0D05 # 1 I - - MAP_COLOR = 0x0D10 # 1 I - MAP_STENCIL = 0x0D11 # 1 I - INDEX_SHIFT = 0x0D12 # 1 I - INDEX_OFFSET = 0x0D13 # 1 I - RED_SCALE = 0x0D14 # 1 F - RED_BIAS = 0x0D15 # 1 F - ZOOM_X = 0x0D16 # 1 F - ZOOM_Y = 0x0D17 # 1 F - GREEN_SCALE = 0x0D18 # 1 F - GREEN_BIAS = 0x0D19 # 1 F - BLUE_SCALE = 0x0D1A # 1 F - BLUE_BIAS = 0x0D1B # 1 F - ALPHA_SCALE = 0x0D1C # 1 F - ALPHA_BIAS = 0x0D1D # 1 F - DEPTH_SCALE = 0x0D1E # 1 F - DEPTH_BIAS = 0x0D1F # 1 F - - MAX_EVAL_ORDER = 0x0D30 # 1 I - MAX_LIGHTS = 0x0D31 # 1 I - -# VERSION_3_0 enum: (aliases) - MAX_CLIP_DISTANCES = 0x0D32 # VERSION_3_0 # alias GL_MAX_CLIP_PLANES - - MAX_CLIP_PLANES = 0x0D32 # 1 I - MAX_TEXTURE_SIZE = 0x0D33 # 1 I - MAX_PIXEL_MAP_TABLE = 0x0D34 # 1 I - MAX_ATTRIB_STACK_DEPTH = 0x0D35 # 1 I - MAX_MODELVIEW_STACK_DEPTH = 0x0D36 # 1 I - MAX_NAME_STACK_DEPTH = 0x0D37 # 1 I - MAX_PROJECTION_STACK_DEPTH = 0x0D38 # 1 I - MAX_TEXTURE_STACK_DEPTH = 0x0D39 # 1 I - MAX_VIEWPORT_DIMS = 0x0D3A # 2 F - MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B # 1 I - - SUBPIXEL_BITS = 0x0D50 # 1 I - INDEX_BITS = 0x0D51 # 1 I - RED_BITS = 0x0D52 # 1 I - GREEN_BITS = 0x0D53 # 1 I - BLUE_BITS = 0x0D54 # 1 I - ALPHA_BITS = 0x0D55 # 1 I - DEPTH_BITS = 0x0D56 # 1 I - STENCIL_BITS = 0x0D57 # 1 I - ACCUM_RED_BITS = 0x0D58 # 1 I - ACCUM_GREEN_BITS = 0x0D59 # 1 I - ACCUM_BLUE_BITS = 0x0D5A # 1 I - ACCUM_ALPHA_BITS = 0x0D5B # 1 I - - NAME_STACK_DEPTH = 0x0D70 # 1 I - - AUTO_NORMAL = 0x0D80 # 1 I - - MAP1_COLOR_4 = 0x0D90 # 1 I - MAP1_INDEX = 0x0D91 # 1 I - MAP1_NORMAL = 0x0D92 # 1 I - MAP1_TEXTURE_COORD_1 = 0x0D93 # 1 I - MAP1_TEXTURE_COORD_2 = 0x0D94 # 1 I - MAP1_TEXTURE_COORD_3 = 0x0D95 # 1 I - MAP1_TEXTURE_COORD_4 = 0x0D96 # 1 I - MAP1_VERTEX_3 = 0x0D97 # 1 I - MAP1_VERTEX_4 = 0x0D98 # 1 I - - MAP2_COLOR_4 = 0x0DB0 # 1 I - MAP2_INDEX = 0x0DB1 # 1 I - MAP2_NORMAL = 0x0DB2 # 1 I - MAP2_TEXTURE_COORD_1 = 0x0DB3 # 1 I - MAP2_TEXTURE_COORD_2 = 0x0DB4 # 1 I - MAP2_TEXTURE_COORD_3 = 0x0DB5 # 1 I - MAP2_TEXTURE_COORD_4 = 0x0DB6 # 1 I - MAP2_VERTEX_3 = 0x0DB7 # 1 I - MAP2_VERTEX_4 = 0x0DB8 # 1 I - - MAP1_GRID_DOMAIN = 0x0DD0 # 2 F - MAP1_GRID_SEGMENTS = 0x0DD1 # 1 I - MAP2_GRID_DOMAIN = 0x0DD2 # 4 F - MAP2_GRID_SEGMENTS = 0x0DD3 # 2 I - - TEXTURE_1D = 0x0DE0 # 1 I - TEXTURE_2D = 0x0DE1 # 1 I - - FEEDBACK_BUFFER_SIZE = 0x0DF1 # 1 I - FEEDBACK_BUFFER_TYPE = 0x0DF2 # 1 I - - SELECTION_BUFFER_SIZE = 0x0DF4 # 1 I - - POLYGON_OFFSET_UNITS = 0x2A00 # 1 F - POLYGON_OFFSET_POINT = 0x2A01 # 1 I - POLYGON_OFFSET_LINE = 0x2A02 # 1 I - POLYGON_OFFSET_FILL = 0x8037 # 1 I - POLYGON_OFFSET_FACTOR = 0x8038 # 1 F - - TEXTURE_BINDING_1D = 0x8068 # 1 I - TEXTURE_BINDING_2D = 0x8069 # 1 I - TEXTURE_BINDING_3D = 0x806A # 1 I - - VERTEX_ARRAY = 0x8074 # 1 I - NORMAL_ARRAY = 0x8075 # 1 I - COLOR_ARRAY = 0x8076 # 1 I - INDEX_ARRAY = 0x8077 # 1 I - TEXTURE_COORD_ARRAY = 0x8078 # 1 I - EDGE_FLAG_ARRAY = 0x8079 # 1 I - - VERTEX_ARRAY_SIZE = 0x807A # 1 I - VERTEX_ARRAY_TYPE = 0x807B # 1 I - VERTEX_ARRAY_STRIDE = 0x807C # 1 I - - NORMAL_ARRAY_TYPE = 0x807E # 1 I - NORMAL_ARRAY_STRIDE = 0x807F # 1 I - - COLOR_ARRAY_SIZE = 0x8081 # 1 I - COLOR_ARRAY_TYPE = 0x8082 # 1 I - COLOR_ARRAY_STRIDE = 0x8083 # 1 I - - INDEX_ARRAY_TYPE = 0x8085 # 1 I - INDEX_ARRAY_STRIDE = 0x8086 # 1 I - - TEXTURE_COORD_ARRAY_SIZE = 0x8088 # 1 I - TEXTURE_COORD_ARRAY_TYPE = 0x8089 # 1 I - TEXTURE_COORD_ARRAY_STRIDE = 0x808A # 1 I - - EDGE_FLAG_ARRAY_STRIDE = 0x808C # 1 I - - use ClipPlaneName CLIP_PLANE0 - use ClipPlaneName CLIP_PLANE1 - use ClipPlaneName CLIP_PLANE2 - use ClipPlaneName CLIP_PLANE3 - use ClipPlaneName CLIP_PLANE4 - use ClipPlaneName CLIP_PLANE5 - - use LightName LIGHT0 - use LightName LIGHT1 - use LightName LIGHT2 - use LightName LIGHT3 - use LightName LIGHT4 - use LightName LIGHT5 - use LightName LIGHT6 - use LightName LIGHT7 - -# use ARB_transpose_matrix TRANSPOSE_MODELVIEW_MATRIX_ARB -# use ARB_transpose_matrix TRANSPOSE_PROJECTION_MATRIX_ARB -# use ARB_transpose_matrix TRANSPOSE_TEXTURE_MATRIX_ARB -# use ARB_transpose_matrix TRANSPOSE_COLOR_MATRIX_ARB - - use VERSION_1_2 LIGHT_MODEL_COLOR_CONTROL - - use EXT_blend_color BLEND_COLOR_EXT - - use EXT_blend_minmax BLEND_EQUATION_EXT - - use EXT_cmyka PACK_CMYK_HINT_EXT - use EXT_cmyka UNPACK_CMYK_HINT_EXT - - use EXT_convolution CONVOLUTION_1D_EXT - use EXT_convolution CONVOLUTION_2D_EXT - use EXT_convolution SEPARABLE_2D_EXT - use EXT_convolution POST_CONVOLUTION_RED_SCALE_EXT - use EXT_convolution POST_CONVOLUTION_GREEN_SCALE_EXT - use EXT_convolution POST_CONVOLUTION_BLUE_SCALE_EXT - use EXT_convolution POST_CONVOLUTION_ALPHA_SCALE_EXT - use EXT_convolution POST_CONVOLUTION_RED_BIAS_EXT - use EXT_convolution POST_CONVOLUTION_GREEN_BIAS_EXT - use EXT_convolution POST_CONVOLUTION_BLUE_BIAS_EXT - use EXT_convolution POST_CONVOLUTION_ALPHA_BIAS_EXT - - use EXT_histogram HISTOGRAM_EXT - use EXT_histogram MINMAX_EXT - - use EXT_polygon_offset POLYGON_OFFSET_BIAS_EXT - - use EXT_rescale_normal RESCALE_NORMAL_EXT - - use EXT_shared_texture_palette SHARED_TEXTURE_PALETTE_EXT - - use EXT_texture_object TEXTURE_3D_BINDING_EXT - - use EXT_texture3D PACK_SKIP_IMAGES_EXT - use EXT_texture3D PACK_IMAGE_HEIGHT_EXT - use EXT_texture3D UNPACK_SKIP_IMAGES_EXT - use EXT_texture3D UNPACK_IMAGE_HEIGHT_EXT - use EXT_texture3D TEXTURE_3D_EXT - use EXT_texture3D MAX_3D_TEXTURE_SIZE_EXT - - use EXT_vertex_array VERTEX_ARRAY_COUNT_EXT - use EXT_vertex_array NORMAL_ARRAY_COUNT_EXT - use EXT_vertex_array COLOR_ARRAY_COUNT_EXT - use EXT_vertex_array INDEX_ARRAY_COUNT_EXT - use EXT_vertex_array TEXTURE_COORD_ARRAY_COUNT_EXT - use EXT_vertex_array EDGE_FLAG_ARRAY_COUNT_EXT - - use SGIS_detail_texture DETAIL_TEXTURE_2D_BINDING_SGIS - - use SGIS_fog_function FOG_FUNC_POINTS_SGIS - use SGIS_fog_function MAX_FOG_FUNC_POINTS_SGIS - - use SGIS_generate_mipmap GENERATE_MIPMAP_HINT_SGIS - - use SGIS_multisample MULTISAMPLE_SGIS - use SGIS_multisample SAMPLE_ALPHA_TO_MASK_SGIS - use SGIS_multisample SAMPLE_ALPHA_TO_ONE_SGIS - use SGIS_multisample SAMPLE_MASK_SGIS - use SGIS_multisample SAMPLE_BUFFERS_SGIS - use SGIS_multisample SAMPLES_SGIS - use SGIS_multisample SAMPLE_MASK_VALUE_SGIS - use SGIS_multisample SAMPLE_MASK_INVERT_SGIS - use SGIS_multisample SAMPLE_PATTERN_SGIS - - use SGIS_pixel_texture PIXEL_TEXTURE_SGIS - - use SGIS_point_parameters POINT_SIZE_MIN_SGIS - use SGIS_point_parameters POINT_SIZE_MAX_SGIS - use SGIS_point_parameters POINT_FADE_THRESHOLD_SIZE_SGIS - use SGIS_point_parameters DISTANCE_ATTENUATION_SGIS - - use SGIS_texture4D PACK_SKIP_VOLUMES_SGIS - use SGIS_texture4D PACK_IMAGE_DEPTH_SGIS - use SGIS_texture4D UNPACK_SKIP_VOLUMES_SGIS - use SGIS_texture4D UNPACK_IMAGE_DEPTH_SGIS - use SGIS_texture4D TEXTURE_4D_SGIS - use SGIS_texture4D MAX_4D_TEXTURE_SIZE_SGIS - use SGIS_texture4D TEXTURE_4D_BINDING_SGIS - - use SGIX_async ASYNC_MARKER_SGIX - - use SGIX_async_histogram ASYNC_HISTOGRAM_SGIX - use SGIX_async_histogram MAX_ASYNC_HISTOGRAM_SGIX - - use SGIX_async_pixel ASYNC_TEX_IMAGE_SGIX - use SGIX_async_pixel ASYNC_DRAW_PIXELS_SGIX - use SGIX_async_pixel ASYNC_READ_PIXELS_SGIX - use SGIX_async_pixel MAX_ASYNC_TEX_IMAGE_SGIX - use SGIX_async_pixel MAX_ASYNC_DRAW_PIXELS_SGIX - use SGIX_async_pixel MAX_ASYNC_READ_PIXELS_SGIX - - use SGIX_calligraphic_fragment CALLIGRAPHIC_FRAGMENT_SGIX - - use SGIX_clipmap MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX - use SGIX_clipmap MAX_CLIPMAP_DEPTH_SGIX - - use SGIX_convolution_accuracy CONVOLUTION_HINT_SGIX - - use SGIX_fog_offset FOG_OFFSET_SGIX - use SGIX_fog_offset FOG_OFFSET_VALUE_SGIX - - use SGIX_fragment_lighting FRAGMENT_LIGHTING_SGIX - use SGIX_fragment_lighting FRAGMENT_COLOR_MATERIAL_SGIX - use SGIX_fragment_lighting FRAGMENT_COLOR_MATERIAL_FACE_SGIX - use SGIX_fragment_lighting FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX - use SGIX_fragment_lighting MAX_FRAGMENT_LIGHTS_SGIX - use SGIX_fragment_lighting MAX_ACTIVE_LIGHTS_SGIX - use SGIX_fragment_lighting LIGHT_ENV_MODE_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT0_SGIX - - use SGIX_framezoom FRAMEZOOM_SGIX - use SGIX_framezoom FRAMEZOOM_FACTOR_SGIX - use SGIX_framezoom MAX_FRAMEZOOM_FACTOR_SGIX - - use SGIX_instruments INSTRUMENT_MEASUREMENTS_SGIX - - use SGIX_interlace INTERLACE_SGIX - - use SGIX_ir_instrument1 IR_INSTRUMENT1_SGIX - - use SGIX_pixel_texture PIXEL_TEX_GEN_SGIX - use SGIX_pixel_texture PIXEL_TEX_GEN_MODE_SGIX - - use SGIX_pixel_tiles PIXEL_TILE_BEST_ALIGNMENT_SGIX - use SGIX_pixel_tiles PIXEL_TILE_CACHE_INCREMENT_SGIX - use SGIX_pixel_tiles PIXEL_TILE_WIDTH_SGIX - use SGIX_pixel_tiles PIXEL_TILE_HEIGHT_SGIX - use SGIX_pixel_tiles PIXEL_TILE_GRID_WIDTH_SGIX - use SGIX_pixel_tiles PIXEL_TILE_GRID_HEIGHT_SGIX - use SGIX_pixel_tiles PIXEL_TILE_GRID_DEPTH_SGIX - use SGIX_pixel_tiles PIXEL_TILE_CACHE_SIZE_SGIX - - use SGIX_polynomial_ffd DEFORMATIONS_MASK_SGIX - - use SGIX_reference_plane REFERENCE_PLANE_EQUATION_SGIX - use SGIX_reference_plane REFERENCE_PLANE_SGIX - - use SGIX_sprite SPRITE_SGIX - use SGIX_sprite SPRITE_MODE_SGIX - use SGIX_sprite SPRITE_AXIS_SGIX - use SGIX_sprite SPRITE_TRANSLATION_SGIX - - use SGIX_subsample PACK_SUBSAMPLE_RATE_SGIX - use SGIX_subsample UNPACK_SUBSAMPLE_RATE_SGIX - use SGIX_resample PACK_RESAMPLE_SGIX - use SGIX_resample UNPACK_RESAMPLE_SGIX - - use SGIX_texture_scale_bias POST_TEXTURE_FILTER_BIAS_RANGE_SGIX - use SGIX_texture_scale_bias POST_TEXTURE_FILTER_SCALE_RANGE_SGIX - - use SGIX_vertex_preclip VERTEX_PRECLIP_SGIX - use SGIX_vertex_preclip VERTEX_PRECLIP_HINT_SGIX - - use SGI_color_matrix COLOR_MATRIX_SGI - use SGI_color_matrix COLOR_MATRIX_STACK_DEPTH_SGI - use SGI_color_matrix MAX_COLOR_MATRIX_STACK_DEPTH_SGI - use SGI_color_matrix POST_COLOR_MATRIX_RED_SCALE_SGI - use SGI_color_matrix POST_COLOR_MATRIX_GREEN_SCALE_SGI - use SGI_color_matrix POST_COLOR_MATRIX_BLUE_SCALE_SGI - use SGI_color_matrix POST_COLOR_MATRIX_ALPHA_SCALE_SGI - use SGI_color_matrix POST_COLOR_MATRIX_RED_BIAS_SGI - use SGI_color_matrix POST_COLOR_MATRIX_GREEN_BIAS_SGI - use SGI_color_matrix POST_COLOR_MATRIX_BLUE_BIAS_SGI - use SGI_color_matrix POST_COLOR_MATRIX_ALPHA_BIAS_SGI - - use SGI_color_table COLOR_TABLE_SGI - use SGI_color_table POST_CONVOLUTION_COLOR_TABLE_SGI - use SGI_color_table POST_COLOR_MATRIX_COLOR_TABLE_SGI - - use SGI_texture_color_table TEXTURE_COLOR_TABLE_SGI - -############################################################################### - -GetTextureParameter enum: - use TextureParameterName TEXTURE_MAG_FILTER - use TextureParameterName TEXTURE_MIN_FILTER - use TextureParameterName TEXTURE_WRAP_S - use TextureParameterName TEXTURE_WRAP_T - TEXTURE_WIDTH = 0x1000 - TEXTURE_HEIGHT = 0x1001 - TEXTURE_INTERNAL_FORMAT = 0x1003 - TEXTURE_COMPONENTS = 0x1003 - TEXTURE_BORDER_COLOR = 0x1004 - TEXTURE_BORDER = 0x1005 - TEXTURE_RED_SIZE = 0x805C - TEXTURE_GREEN_SIZE = 0x805D - TEXTURE_BLUE_SIZE = 0x805E - TEXTURE_ALPHA_SIZE = 0x805F - TEXTURE_LUMINANCE_SIZE = 0x8060 - TEXTURE_INTENSITY_SIZE = 0x8061 - TEXTURE_PRIORITY = 0x8066 - TEXTURE_RESIDENT = 0x8067 - use EXT_texture3D TEXTURE_DEPTH_EXT - use EXT_texture3D TEXTURE_WRAP_R_EXT - use SGIS_detail_texture DETAIL_TEXTURE_LEVEL_SGIS - use SGIS_detail_texture DETAIL_TEXTURE_MODE_SGIS - use SGIS_detail_texture DETAIL_TEXTURE_FUNC_POINTS_SGIS - use SGIS_generate_mipmap GENERATE_MIPMAP_SGIS - use SGIS_sharpen_texture SHARPEN_TEXTURE_FUNC_POINTS_SGIS - use SGIS_texture_filter4 TEXTURE_FILTER4_SIZE_SGIS - use SGIS_texture_lod TEXTURE_MIN_LOD_SGIS - use SGIS_texture_lod TEXTURE_MAX_LOD_SGIS - use SGIS_texture_lod TEXTURE_BASE_LEVEL_SGIS - use SGIS_texture_lod TEXTURE_MAX_LEVEL_SGIS - use SGIS_texture_select DUAL_TEXTURE_SELECT_SGIS - use SGIS_texture_select QUAD_TEXTURE_SELECT_SGIS - use SGIS_texture4D TEXTURE_4DSIZE_SGIS - use SGIS_texture4D TEXTURE_WRAP_Q_SGIS - use SGIX_clipmap TEXTURE_CLIPMAP_CENTER_SGIX - use SGIX_clipmap TEXTURE_CLIPMAP_FRAME_SGIX - use SGIX_clipmap TEXTURE_CLIPMAP_OFFSET_SGIX - use SGIX_clipmap TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX - use SGIX_clipmap TEXTURE_CLIPMAP_LOD_OFFSET_SGIX - use SGIX_clipmap TEXTURE_CLIPMAP_DEPTH_SGIX - use SGIX_shadow TEXTURE_COMPARE_SGIX - use SGIX_shadow TEXTURE_COMPARE_OPERATOR_SGIX - use SGIX_shadow TEXTURE_LEQUAL_R_SGIX - use SGIX_shadow TEXTURE_GEQUAL_R_SGIX - use SGIX_shadow_ambient SHADOW_AMBIENT_SGIX - use SGIX_texture_coordinate_clamp TEXTURE_MAX_CLAMP_S_SGIX - use SGIX_texture_coordinate_clamp TEXTURE_MAX_CLAMP_T_SGIX - use SGIX_texture_coordinate_clamp TEXTURE_MAX_CLAMP_R_SGIX - use SGIX_texture_lod_bias TEXTURE_LOD_BIAS_S_SGIX - use SGIX_texture_lod_bias TEXTURE_LOD_BIAS_T_SGIX - use SGIX_texture_lod_bias TEXTURE_LOD_BIAS_R_SGIX - use SGIX_texture_scale_bias POST_TEXTURE_FILTER_BIAS_SGIX - use SGIX_texture_scale_bias POST_TEXTURE_FILTER_SCALE_SGIX - -############################################################################### - -HintMode enum: - DONT_CARE = 0x1100 - FASTEST = 0x1101 - NICEST = 0x1102 - -############################################################################### - -HintTarget enum: - use GetPName PERSPECTIVE_CORRECTION_HINT - use GetPName POINT_SMOOTH_HINT - use GetPName LINE_SMOOTH_HINT - use GetPName POLYGON_SMOOTH_HINT - use GetPName FOG_HINT - use EXT_cmyka PACK_CMYK_HINT_EXT - use EXT_cmyka UNPACK_CMYK_HINT_EXT - use SGIS_generate_mipmap GENERATE_MIPMAP_HINT_SGIS - use SGIX_convolution_accuracy CONVOLUTION_HINT_SGIX - use SGIX_texture_multi_buffer TEXTURE_MULTI_BUFFER_HINT_SGIX - use SGIX_vertex_preclip VERTEX_PRECLIP_HINT_SGIX - -############################################################################### - -HistogramTargetEXT enum: - use EXT_histogram HISTOGRAM_EXT - use EXT_histogram PROXY_HISTOGRAM_EXT - -############################################################################### - -IndexPointerType enum: - use DataType SHORT - use DataType INT - use DataType FLOAT - use DataType DOUBLE - -############################################################################### - -LightEnvModeSGIX enum: - use StencilOp REPLACE - use TextureEnvMode MODULATE - use AccumOp ADD - -############################################################################### - -LightEnvParameterSGIX enum: - use SGIX_fragment_lighting LIGHT_ENV_MODE_SGIX - -############################################################################### - -LightModelColorControl enum: - use VERSION_1_2 SINGLE_COLOR - use VERSION_1_2 SEPARATE_SPECULAR_COLOR - -############################################################################### - -LightModelParameter enum: - use GetPName LIGHT_MODEL_AMBIENT - use GetPName LIGHT_MODEL_LOCAL_VIEWER - use GetPName LIGHT_MODEL_TWO_SIDE - use VERSION_1_2 LIGHT_MODEL_COLOR_CONTROL - -############################################################################### - -LightParameter enum: - AMBIENT = 0x1200 - DIFFUSE = 0x1201 - SPECULAR = 0x1202 - POSITION = 0x1203 - SPOT_DIRECTION = 0x1204 - SPOT_EXPONENT = 0x1205 - SPOT_CUTOFF = 0x1206 - CONSTANT_ATTENUATION = 0x1207 - LINEAR_ATTENUATION = 0x1208 - QUADRATIC_ATTENUATION = 0x1209 - -############################################################################### - -ListMode enum: - COMPILE = 0x1300 - COMPILE_AND_EXECUTE = 0x1301 - -############################################################################### - -DataType enum: - BYTE = 0x1400 - UNSIGNED_BYTE = 0x1401 - SHORT = 0x1402 - UNSIGNED_SHORT = 0x1403 - INT = 0x1404 - UNSIGNED_INT = 0x1405 - FLOAT = 0x1406 - 2_BYTES = 0x1407 - 3_BYTES = 0x1408 - 4_BYTES = 0x1409 - DOUBLE = 0x140A - DOUBLE_EXT = 0x140A - -# OES_byte_coordinates: (OpenGL ES only) -# use DataType BYTE - -OES_element_index_uint enum: (OpenGL ES only) -# use DataType UNSIGNED_INT - -OES_texture_float enum: (OpenGL ES only; additional; see below) -# use DataType FLOAT - -EXT_vertex_attrib_64bit enum: - use VERSION_1_1 DOUBLE - -VERSION_3_0 enum: -# use ARB_half_float_vertex HALF_FLOAT - -ARB_half_float_vertex enum: (note: no ARB suffixes) - HALF_FLOAT = 0x140B # VERSION_3_0 / ARB_half_float_vertex - -ARB_half_float_pixel enum: - HALF_FLOAT_ARB = 0x140B - -NV_half_float enum: - HALF_FLOAT_NV = 0x140B - -APPLE_float_pixels enum: (additional; see below) - HALF_APPLE = 0x140B - -ARB_ES2_compatibility enum: (additional; see below) - FIXED = 0x140C - -OES_fixed_point enum: (OpenGL ES only) - FIXED_OES = 0x140C - -# Leave a gap to preserve even/odd int/uint token values -# ARB_future_use: 0x140D - -NV_gpu_shader5 enum: - INT64_NV = 0x140E - UNSIGNED_INT64_NV = 0x140F - -NV_vertex_attrib_integer_64bit enum: - use NV_gpu_shader5 INT64_NV - use NV_gpu_shader5 UNSIGNED_INT64_NV - -############################################################################### - -ListNameType enum: - use DataType BYTE - use DataType UNSIGNED_BYTE - use DataType SHORT - use DataType UNSIGNED_SHORT - use DataType INT - use DataType UNSIGNED_INT - use DataType FLOAT - use DataType 2_BYTES - use DataType 3_BYTES - use DataType 4_BYTES - -############################################################################### - -ListParameterName enum: - use SGIX_list_priority LIST_PRIORITY_SGIX - -############################################################################### - -LogicOp enum: - CLEAR = 0x1500 - AND = 0x1501 - AND_REVERSE = 0x1502 - COPY = 0x1503 - AND_INVERTED = 0x1504 - NOOP = 0x1505 - XOR = 0x1506 - OR = 0x1507 - NOR = 0x1508 - EQUIV = 0x1509 - INVERT = 0x150A - OR_REVERSE = 0x150B - COPY_INVERTED = 0x150C - OR_INVERTED = 0x150D - NAND = 0x150E - SET = 0x150F - -############################################################################### - -MapTarget enum: - use GetPName MAP1_COLOR_4 - use GetPName MAP1_INDEX - use GetPName MAP1_NORMAL - use GetPName MAP1_TEXTURE_COORD_1 - use GetPName MAP1_TEXTURE_COORD_2 - use GetPName MAP1_TEXTURE_COORD_3 - use GetPName MAP1_TEXTURE_COORD_4 - use GetPName MAP1_VERTEX_3 - use GetPName MAP1_VERTEX_4 - use GetPName MAP2_COLOR_4 - use GetPName MAP2_INDEX - use GetPName MAP2_NORMAL - use GetPName MAP2_TEXTURE_COORD_1 - use GetPName MAP2_TEXTURE_COORD_2 - use GetPName MAP2_TEXTURE_COORD_3 - use GetPName MAP2_TEXTURE_COORD_4 - use GetPName MAP2_VERTEX_3 - use GetPName MAP2_VERTEX_4 - use SGIX_polynomial_ffd GEOMETRY_DEFORMATION_SGIX - use SGIX_polynomial_ffd TEXTURE_DEFORMATION_SGIX - -############################################################################### - -MaterialFace enum: - use DrawBufferMode FRONT - use DrawBufferMode BACK - use DrawBufferMode FRONT_AND_BACK - - -############################################################################### - -MaterialParameter enum: - EMISSION = 0x1600 - SHININESS = 0x1601 - AMBIENT_AND_DIFFUSE = 0x1602 - COLOR_INDEXES = 0x1603 - use LightParameter AMBIENT - use LightParameter DIFFUSE - use LightParameter SPECULAR - -############################################################################### - -MatrixMode enum: - MODELVIEW = 0x1700 - PROJECTION = 0x1701 - TEXTURE = 0x1702 - -############################################################################### - -MeshMode1 enum: - use PolygonMode POINT - use PolygonMode LINE - -############################################################################### - -MeshMode2 enum: - use PolygonMode POINT - use PolygonMode LINE - use PolygonMode FILL - -############################################################################### - -MinmaxTargetEXT enum: - use EXT_histogram MINMAX_EXT - -############################################################################### - -NormalPointerType enum: - use DataType BYTE - use DataType SHORT - use DataType INT - use DataType FLOAT - use DataType DOUBLE - -############################################################################### - -PixelCopyType enum: - COLOR = 0x1800 - DEPTH = 0x1801 - STENCIL = 0x1802 - -EXT_discard_framebuffer enum: (OpenGL ES only) - COLOR_EXT = 0x1800 - DEPTH_EXT = 0x1801 - STENCIL_EXT = 0x1802 - -############################################################################### - -PixelFormat enum: - COLOR_INDEX = 0x1900 - STENCIL_INDEX = 0x1901 - DEPTH_COMPONENT = 0x1902 - RED = 0x1903 - GREEN = 0x1904 - BLUE = 0x1905 - ALPHA = 0x1906 - RGB = 0x1907 - RGBA = 0x1908 - LUMINANCE = 0x1909 - LUMINANCE_ALPHA = 0x190A - use EXT_abgr ABGR_EXT - use EXT_cmyka CMYK_EXT - use EXT_cmyka CMYKA_EXT - use SGIX_icc_texture R5_G6_B5_ICC_SGIX - use SGIX_icc_texture R5_G6_B5_A8_ICC_SGIX - use SGIX_icc_texture ALPHA16_ICC_SGIX - use SGIX_icc_texture LUMINANCE16_ICC_SGIX - use SGIX_icc_texture LUMINANCE16_ALPHA8_ICC_SGIX - use SGIX_ycrcb YCRCB_422_SGIX - use SGIX_ycrcb YCRCB_444_SGIX - -OES_depth_texture enum: (OpenGL ES only) -# use DataType UNSIGNED_SHORT -# use DataType UNSIGNED_INT -# use PixelFormat DEPTH_COMPONENT - -############################################################################### - -PixelMap enum: - use GetPixelMap PIXEL_MAP_I_TO_I - use GetPixelMap PIXEL_MAP_S_TO_S - use GetPixelMap PIXEL_MAP_I_TO_R - use GetPixelMap PIXEL_MAP_I_TO_G - use GetPixelMap PIXEL_MAP_I_TO_B - use GetPixelMap PIXEL_MAP_I_TO_A - use GetPixelMap PIXEL_MAP_R_TO_R - use GetPixelMap PIXEL_MAP_G_TO_G - use GetPixelMap PIXEL_MAP_B_TO_B - use GetPixelMap PIXEL_MAP_A_TO_A - -############################################################################### - -PixelStoreParameter enum: - use GetPName UNPACK_SWAP_BYTES - use GetPName UNPACK_LSB_FIRST - use GetPName UNPACK_ROW_LENGTH - use GetPName UNPACK_SKIP_ROWS - use GetPName UNPACK_SKIP_PIXELS - use GetPName UNPACK_ALIGNMENT - use GetPName PACK_SWAP_BYTES - use GetPName PACK_LSB_FIRST - use GetPName PACK_ROW_LENGTH - use GetPName PACK_SKIP_ROWS - use GetPName PACK_SKIP_PIXELS - use GetPName PACK_ALIGNMENT - use EXT_texture3D PACK_SKIP_IMAGES_EXT - use EXT_texture3D PACK_IMAGE_HEIGHT_EXT - use EXT_texture3D UNPACK_SKIP_IMAGES_EXT - use EXT_texture3D UNPACK_IMAGE_HEIGHT_EXT - use SGIS_texture4D PACK_SKIP_VOLUMES_SGIS - use SGIS_texture4D PACK_IMAGE_DEPTH_SGIS - use SGIS_texture4D UNPACK_SKIP_VOLUMES_SGIS - use SGIS_texture4D UNPACK_IMAGE_DEPTH_SGIS - use SGIX_pixel_tiles PIXEL_TILE_WIDTH_SGIX - use SGIX_pixel_tiles PIXEL_TILE_HEIGHT_SGIX - use SGIX_pixel_tiles PIXEL_TILE_GRID_WIDTH_SGIX - use SGIX_pixel_tiles PIXEL_TILE_GRID_HEIGHT_SGIX - use SGIX_pixel_tiles PIXEL_TILE_GRID_DEPTH_SGIX - use SGIX_pixel_tiles PIXEL_TILE_CACHE_SIZE_SGIX - use SGIX_subsample PACK_SUBSAMPLE_RATE_SGIX - use SGIX_subsample UNPACK_SUBSAMPLE_RATE_SGIX - use SGIX_resample PACK_RESAMPLE_SGIX - use SGIX_resample UNPACK_RESAMPLE_SGIX - -############################################################################### - -PixelStoreResampleMode enum: - use SGIX_resample RESAMPLE_REPLICATE_SGIX - use SGIX_resample RESAMPLE_ZERO_FILL_SGIX - use SGIX_resample RESAMPLE_DECIMATE_SGIX - -############################################################################### - -PixelStoreSubsampleRate enum: - use SGIX_subsample PIXEL_SUBSAMPLE_4444_SGIX - use SGIX_subsample PIXEL_SUBSAMPLE_2424_SGIX - use SGIX_subsample PIXEL_SUBSAMPLE_4242_SGIX - -############################################################################### - -PixelTexGenMode enum: - use DrawBufferMode NONE - use PixelFormat RGB - use PixelFormat RGBA - use PixelFormat LUMINANCE - use PixelFormat LUMINANCE_ALPHA - use SGIX_impact_pixel_texture PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX - use SGIX_impact_pixel_texture PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX - use SGIX_impact_pixel_texture PIXEL_TEX_GEN_ALPHA_MS_SGIX - use SGIX_impact_pixel_texture PIXEL_TEX_GEN_ALPHA_LS_SGIX - -############################################################################### - -PixelTexGenParameterNameSGIS enum: - use SGIS_pixel_texture PIXEL_FRAGMENT_RGB_SOURCE_SGIS - use SGIS_pixel_texture PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS - -############################################################################### - -PixelTransferParameter enum: - use GetPName MAP_COLOR - use GetPName MAP_STENCIL - use GetPName INDEX_SHIFT - use GetPName INDEX_OFFSET - use GetPName RED_SCALE - use GetPName RED_BIAS - use GetPName GREEN_SCALE - use GetPName GREEN_BIAS - use GetPName BLUE_SCALE - use GetPName BLUE_BIAS - use GetPName ALPHA_SCALE - use GetPName ALPHA_BIAS - use GetPName DEPTH_SCALE - use GetPName DEPTH_BIAS - use EXT_convolution POST_CONVOLUTION_RED_SCALE_EXT - use EXT_convolution POST_CONVOLUTION_GREEN_SCALE_EXT - use EXT_convolution POST_CONVOLUTION_BLUE_SCALE_EXT - use EXT_convolution POST_CONVOLUTION_ALPHA_SCALE_EXT - use EXT_convolution POST_CONVOLUTION_RED_BIAS_EXT - use EXT_convolution POST_CONVOLUTION_GREEN_BIAS_EXT - use EXT_convolution POST_CONVOLUTION_BLUE_BIAS_EXT - use EXT_convolution POST_CONVOLUTION_ALPHA_BIAS_EXT - use SGI_color_matrix POST_COLOR_MATRIX_RED_SCALE_SGI - use SGI_color_matrix POST_COLOR_MATRIX_GREEN_SCALE_SGI - use SGI_color_matrix POST_COLOR_MATRIX_BLUE_SCALE_SGI - use SGI_color_matrix POST_COLOR_MATRIX_ALPHA_SCALE_SGI - use SGI_color_matrix POST_COLOR_MATRIX_RED_BIAS_SGI - use SGI_color_matrix POST_COLOR_MATRIX_GREEN_BIAS_SGI - use SGI_color_matrix POST_COLOR_MATRIX_BLUE_BIAS_SGI - use SGI_color_matrix POST_COLOR_MATRIX_ALPHA_BIAS_SGI - -############################################################################### - -PixelType enum: - BITMAP = 0x1A00 - use DataType BYTE - use DataType UNSIGNED_BYTE - use DataType SHORT - use DataType UNSIGNED_SHORT - use DataType INT - use DataType UNSIGNED_INT - use DataType FLOAT - use EXT_packed_pixels UNSIGNED_BYTE_3_3_2_EXT - use EXT_packed_pixels UNSIGNED_SHORT_4_4_4_4_EXT - use EXT_packed_pixels UNSIGNED_SHORT_5_5_5_1_EXT - use EXT_packed_pixels UNSIGNED_INT_8_8_8_8_EXT - use EXT_packed_pixels UNSIGNED_INT_10_10_10_2_EXT - -############################################################################### - -PointParameterNameSGIS enum: - use SGIS_point_parameters POINT_SIZE_MIN_SGIS - use SGIS_point_parameters POINT_SIZE_MAX_SGIS - use SGIS_point_parameters POINT_FADE_THRESHOLD_SIZE_SGIS - use SGIS_point_parameters DISTANCE_ATTENUATION_SGIS - -############################################################################### - -PolygonMode enum: - POINT = 0x1B00 - LINE = 0x1B01 - FILL = 0x1B02 - -############################################################################### - -ReadBufferMode enum: - use DrawBufferMode FRONT_LEFT - use DrawBufferMode FRONT_RIGHT - use DrawBufferMode BACK_LEFT - use DrawBufferMode BACK_RIGHT - use DrawBufferMode FRONT - use DrawBufferMode BACK - use DrawBufferMode LEFT - use DrawBufferMode RIGHT - use DrawBufferMode AUX0 - use DrawBufferMode AUX1 - use DrawBufferMode AUX2 - use DrawBufferMode AUX3 - -############################################################################### - -RenderingMode enum: - RENDER = 0x1C00 - FEEDBACK = 0x1C01 - SELECT = 0x1C02 - -############################################################################### - -SamplePatternSGIS enum: - use SGIS_multisample 1PASS_SGIS - use SGIS_multisample 2PASS_0_SGIS - use SGIS_multisample 2PASS_1_SGIS - use SGIS_multisample 4PASS_0_SGIS - use SGIS_multisample 4PASS_1_SGIS - use SGIS_multisample 4PASS_2_SGIS - use SGIS_multisample 4PASS_3_SGIS - -############################################################################### - -SeparableTargetEXT enum: - use EXT_convolution SEPARABLE_2D_EXT - -############################################################################### - -ShadingModel enum: - FLAT = 0x1D00 - SMOOTH = 0x1D01 - -############################################################################### - -StencilFunction enum: - use AlphaFunction NEVER - use AlphaFunction LESS - use AlphaFunction EQUAL - use AlphaFunction LEQUAL - use AlphaFunction GREATER - use AlphaFunction NOTEQUAL - use AlphaFunction GEQUAL - use AlphaFunction ALWAYS - -############################################################################### - -StencilOp enum: - use BlendingFactorDest ZERO - KEEP = 0x1E00 - REPLACE = 0x1E01 - INCR = 0x1E02 - DECR = 0x1E03 - use LogicOp INVERT - -############################################################################### - -StringName enum: - VENDOR = 0x1F00 - RENDERER = 0x1F01 - VERSION = 0x1F02 - EXTENSIONS = 0x1F03 - -############################################################################### - -TexCoordPointerType enum: - use DataType SHORT - use DataType INT - use DataType FLOAT - use DataType DOUBLE - -############################################################################### - -TextureCoordName enum: - S = 0x2000 - T = 0x2001 - R = 0x2002 - Q = 0x2003 - -############################################################################### - -TextureEnvMode enum: - MODULATE = 0x2100 - DECAL = 0x2101 - use GetPName BLEND - use EXT_texture REPLACE_EXT - use AccumOp ADD - use SGIX_texture_add_env TEXTURE_ENV_BIAS_SGIX - -############################################################################### - -TextureEnvParameter enum: - TEXTURE_ENV_MODE = 0x2200 - TEXTURE_ENV_COLOR = 0x2201 - -############################################################################### - -TextureEnvTarget enum: - TEXTURE_ENV = 0x2300 - -############################################################################### - -TextureFilterFuncSGIS enum: - use SGIS_texture_filter4 FILTER4_SGIS - -############################################################################### - -TextureGenMode enum: - EYE_LINEAR = 0x2400 - OBJECT_LINEAR = 0x2401 - SPHERE_MAP = 0x2402 - use SGIS_point_line_texgen EYE_DISTANCE_TO_POINT_SGIS - use SGIS_point_line_texgen OBJECT_DISTANCE_TO_POINT_SGIS - use SGIS_point_line_texgen EYE_DISTANCE_TO_LINE_SGIS - use SGIS_point_line_texgen OBJECT_DISTANCE_TO_LINE_SGIS - -############################################################################### - -TextureGenParameter enum: - TEXTURE_GEN_MODE = 0x2500 - OBJECT_PLANE = 0x2501 - EYE_PLANE = 0x2502 - use SGIS_point_line_texgen EYE_POINT_SGIS - use SGIS_point_line_texgen OBJECT_POINT_SGIS - use SGIS_point_line_texgen EYE_LINE_SGIS - use SGIS_point_line_texgen OBJECT_LINE_SGIS - -# Aliases TextureGenParameter enum above -OES_texture_cube_map enum: (OpenGL ES only; additional; see below) - TEXTURE_GEN_MODE = 0x2500 - -############################################################################### - -TextureMagFilter enum: - NEAREST = 0x2600 - LINEAR = 0x2601 - use SGIS_detail_texture LINEAR_DETAIL_SGIS - use SGIS_detail_texture LINEAR_DETAIL_ALPHA_SGIS - use SGIS_detail_texture LINEAR_DETAIL_COLOR_SGIS - use SGIS_sharpen_texture LINEAR_SHARPEN_SGIS - use SGIS_sharpen_texture LINEAR_SHARPEN_ALPHA_SGIS - use SGIS_sharpen_texture LINEAR_SHARPEN_COLOR_SGIS - use SGIS_texture_filter4 FILTER4_SGIS - use SGIX_impact_pixel_texture PIXEL_TEX_GEN_Q_CEILING_SGIX - use SGIX_impact_pixel_texture PIXEL_TEX_GEN_Q_ROUND_SGIX - use SGIX_impact_pixel_texture PIXEL_TEX_GEN_Q_FLOOR_SGIX - -############################################################################### - -TextureMinFilter enum: - use TextureMagFilter NEAREST - use TextureMagFilter LINEAR - NEAREST_MIPMAP_NEAREST = 0x2700 - LINEAR_MIPMAP_NEAREST = 0x2701 - NEAREST_MIPMAP_LINEAR = 0x2702 - LINEAR_MIPMAP_LINEAR = 0x2703 - use SGIS_texture_filter4 FILTER4_SGIS - use SGIX_clipmap LINEAR_CLIPMAP_LINEAR_SGIX - use SGIX_clipmap NEAREST_CLIPMAP_NEAREST_SGIX - use SGIX_clipmap NEAREST_CLIPMAP_LINEAR_SGIX - use SGIX_clipmap LINEAR_CLIPMAP_NEAREST_SGIX - use SGIX_impact_pixel_texture PIXEL_TEX_GEN_Q_CEILING_SGIX - use SGIX_impact_pixel_texture PIXEL_TEX_GEN_Q_ROUND_SGIX - use SGIX_impact_pixel_texture PIXEL_TEX_GEN_Q_FLOOR_SGIX - -############################################################################### - -TextureParameterName enum: - TEXTURE_MAG_FILTER = 0x2800 - TEXTURE_MIN_FILTER = 0x2801 - TEXTURE_WRAP_S = 0x2802 - TEXTURE_WRAP_T = 0x2803 - use GetTextureParameter TEXTURE_BORDER_COLOR - use GetTextureParameter TEXTURE_PRIORITY - use EXT_texture3D TEXTURE_WRAP_R_EXT - use SGIS_detail_texture DETAIL_TEXTURE_LEVEL_SGIS - use SGIS_detail_texture DETAIL_TEXTURE_MODE_SGIS - use SGIS_generate_mipmap GENERATE_MIPMAP_SGIS - use SGIS_texture_select DUAL_TEXTURE_SELECT_SGIS - use SGIS_texture_select QUAD_TEXTURE_SELECT_SGIS - use SGIS_texture4D TEXTURE_WRAP_Q_SGIS - use SGIX_clipmap TEXTURE_CLIPMAP_CENTER_SGIX - use SGIX_clipmap TEXTURE_CLIPMAP_FRAME_SGIX - use SGIX_clipmap TEXTURE_CLIPMAP_OFFSET_SGIX - use SGIX_clipmap TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX - use SGIX_clipmap TEXTURE_CLIPMAP_LOD_OFFSET_SGIX - use SGIX_clipmap TEXTURE_CLIPMAP_DEPTH_SGIX - use SGIX_shadow TEXTURE_COMPARE_SGIX - use SGIX_shadow TEXTURE_COMPARE_OPERATOR_SGIX - use SGIX_shadow_ambient SHADOW_AMBIENT_SGIX - use SGIX_texture_coordinate_clamp TEXTURE_MAX_CLAMP_S_SGIX - use SGIX_texture_coordinate_clamp TEXTURE_MAX_CLAMP_T_SGIX - use SGIX_texture_coordinate_clamp TEXTURE_MAX_CLAMP_R_SGIX - use SGIX_texture_lod_bias TEXTURE_LOD_BIAS_S_SGIX - use SGIX_texture_lod_bias TEXTURE_LOD_BIAS_T_SGIX - use SGIX_texture_lod_bias TEXTURE_LOD_BIAS_R_SGIX - use SGIX_texture_scale_bias POST_TEXTURE_FILTER_BIAS_SGIX - use SGIX_texture_scale_bias POST_TEXTURE_FILTER_SCALE_SGIX - -############################################################################### - -TextureTarget enum: - use GetPName TEXTURE_1D - use GetPName TEXTURE_2D - PROXY_TEXTURE_1D = 0x8063 - PROXY_TEXTURE_2D = 0x8064 - use EXT_texture3D TEXTURE_3D_EXT - use EXT_texture3D PROXY_TEXTURE_3D_EXT - use SGIS_detail_texture DETAIL_TEXTURE_2D_SGIS - use SGIS_texture4D TEXTURE_4D_SGIS - use SGIS_texture4D PROXY_TEXTURE_4D_SGIS - use SGIS_texture_lod TEXTURE_MIN_LOD_SGIS - use SGIS_texture_lod TEXTURE_MAX_LOD_SGIS - use SGIS_texture_lod TEXTURE_BASE_LEVEL_SGIS - use SGIS_texture_lod TEXTURE_MAX_LEVEL_SGIS - -############################################################################### - -TextureWrapMode enum: - CLAMP = 0x2900 - REPEAT = 0x2901 - use SGIS_texture_border_clamp CLAMP_TO_BORDER_SGIS - use SGIS_texture_edge_clamp CLAMP_TO_EDGE_SGIS - -############################################################################### - -PixelInternalFormat enum: - R3_G3_B2 = 0x2A10 - ALPHA4 = 0x803B - ALPHA8 = 0x803C - ALPHA12 = 0x803D - ALPHA16 = 0x803E - LUMINANCE4 = 0x803F - LUMINANCE8 = 0x8040 - LUMINANCE12 = 0x8041 - LUMINANCE16 = 0x8042 - LUMINANCE4_ALPHA4 = 0x8043 - LUMINANCE6_ALPHA2 = 0x8044 - LUMINANCE8_ALPHA8 = 0x8045 - LUMINANCE12_ALPHA4 = 0x8046 - LUMINANCE12_ALPHA12 = 0x8047 - LUMINANCE16_ALPHA16 = 0x8048 - INTENSITY = 0x8049 - INTENSITY4 = 0x804A - INTENSITY8 = 0x804B - INTENSITY12 = 0x804C - INTENSITY16 = 0x804D - RGB4 = 0x804F - RGB5 = 0x8050 - RGB8 = 0x8051 - RGB10 = 0x8052 - RGB12 = 0x8053 - RGB16 = 0x8054 - RGBA2 = 0x8055 - RGBA4 = 0x8056 - RGB5_A1 = 0x8057 - RGBA8 = 0x8058 - RGB10_A2 = 0x8059 - RGBA12 = 0x805A - RGBA16 = 0x805B - use EXT_texture RGB2_EXT - use SGIS_texture_select DUAL_ALPHA4_SGIS - use SGIS_texture_select DUAL_ALPHA8_SGIS - use SGIS_texture_select DUAL_ALPHA12_SGIS - use SGIS_texture_select DUAL_ALPHA16_SGIS - use SGIS_texture_select DUAL_LUMINANCE4_SGIS - use SGIS_texture_select DUAL_LUMINANCE8_SGIS - use SGIS_texture_select DUAL_LUMINANCE12_SGIS - use SGIS_texture_select DUAL_LUMINANCE16_SGIS - use SGIS_texture_select DUAL_INTENSITY4_SGIS - use SGIS_texture_select DUAL_INTENSITY8_SGIS - use SGIS_texture_select DUAL_INTENSITY12_SGIS - use SGIS_texture_select DUAL_INTENSITY16_SGIS - use SGIS_texture_select DUAL_LUMINANCE_ALPHA4_SGIS - use SGIS_texture_select DUAL_LUMINANCE_ALPHA8_SGIS - use SGIS_texture_select QUAD_ALPHA4_SGIS - use SGIS_texture_select QUAD_ALPHA8_SGIS - use SGIS_texture_select QUAD_LUMINANCE4_SGIS - use SGIS_texture_select QUAD_LUMINANCE8_SGIS - use SGIS_texture_select QUAD_INTENSITY4_SGIS - use SGIS_texture_select QUAD_INTENSITY8_SGIS - use SGIX_depth_texture DEPTH_COMPONENT16_SGIX - use SGIX_depth_texture DEPTH_COMPONENT24_SGIX - use SGIX_depth_texture DEPTH_COMPONENT32_SGIX - use SGIX_icc_texture RGB_ICC_SGIX - use SGIX_icc_texture RGBA_ICC_SGIX - use SGIX_icc_texture ALPHA_ICC_SGIX - use SGIX_icc_texture LUMINANCE_ICC_SGIX - use SGIX_icc_texture INTENSITY_ICC_SGIX - use SGIX_icc_texture LUMINANCE_ALPHA_ICC_SGIX - use SGIX_icc_texture R5_G6_B5_ICC_SGIX - use SGIX_icc_texture R5_G6_B5_A8_ICC_SGIX - use SGIX_icc_texture ALPHA16_ICC_SGIX - use SGIX_icc_texture LUMINANCE16_ICC_SGIX - use SGIX_icc_texture INTENSITY16_ICC_SGIX - use SGIX_icc_texture LUMINANCE16_ALPHA8_ICC_SGIX - -# Aliases PixelInternalFormat enums above -OES_rgb8_rgba8 enum: (OpenGL ES only) - RGB8 = 0x8051 - RGBA8 = 0x8058 - -############################################################################### - -InterleavedArrayFormat enum: - V2F = 0x2A20 - V3F = 0x2A21 - C4UB_V2F = 0x2A22 - C4UB_V3F = 0x2A23 - C3F_V3F = 0x2A24 - N3F_V3F = 0x2A25 - C4F_N3F_V3F = 0x2A26 - T2F_V3F = 0x2A27 - T4F_V4F = 0x2A28 - T2F_C4UB_V3F = 0x2A29 - T2F_C3F_V3F = 0x2A2A - T2F_N3F_V3F = 0x2A2B - T2F_C4F_N3F_V3F = 0x2A2C - T4F_C4F_N3F_V4F = 0x2A2D - -############################################################################### - -VertexPointerType enum: - use DataType SHORT - use DataType INT - use DataType FLOAT - use DataType DOUBLE - -############################################################################### - -# 0x3000 through 0x3FFF are reserved for clip planes -ClipPlaneName enum: - CLIP_PLANE0 = 0x3000 # 1 I - CLIP_PLANE1 = 0x3001 # 1 I - CLIP_PLANE2 = 0x3002 # 1 I - CLIP_PLANE3 = 0x3003 # 1 I - CLIP_PLANE4 = 0x3004 # 1 I - CLIP_PLANE5 = 0x3005 # 1 I - -VERSION_3_0 enum: (aliases) - CLIP_DISTANCE0 = 0x3000 # VERSION_3_0 # alias GL_CLIP_PLANE0 - CLIP_DISTANCE1 = 0x3001 # VERSION_3_0 # alias GL_CLIP_PLANE1 - CLIP_DISTANCE2 = 0x3002 # VERSION_3_0 # alias GL_CLIP_PLANE2 - CLIP_DISTANCE3 = 0x3003 # VERSION_3_0 # alias GL_CLIP_PLANE3 - CLIP_DISTANCE4 = 0x3004 # VERSION_3_0 # alias GL_CLIP_PLANE4 - CLIP_DISTANCE5 = 0x3005 # VERSION_3_0 # alias GL_CLIP_PLANE5 - CLIP_DISTANCE6 = 0x3006 # VERSION_3_0 # alias GL_CLIP_PLANE5 - CLIP_DISTANCE7 = 0x3007 # VERSION_3_0 # alias GL_CLIP_PLANE5 - -############################################################################### - -# 0x4000-0x4FFF are reserved for light numbers -LightName enum: - LIGHT0 = 0x4000 # 1 I - LIGHT1 = 0x4001 # 1 I - LIGHT2 = 0x4002 # 1 I - LIGHT3 = 0x4003 # 1 I - LIGHT4 = 0x4004 # 1 I - LIGHT5 = 0x4005 # 1 I - LIGHT6 = 0x4006 # 1 I - LIGHT7 = 0x4007 # 1 I - use SGIX_fragment_lighting FRAGMENT_LIGHT0_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT1_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT2_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT3_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT4_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT5_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT6_SGIX - use SGIX_fragment_lighting FRAGMENT_LIGHT7_SGIX - -############################################################################### - -EXT_abgr enum: - ABGR_EXT = 0x8000 - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) - CONSTANT_COLOR = 0x8001 - ONE_MINUS_CONSTANT_COLOR = 0x8002 - CONSTANT_ALPHA = 0x8003 - ONE_MINUS_CONSTANT_ALPHA = 0x8004 - BLEND_COLOR = 0x8005 # 4 F - -EXT_blend_color enum: - CONSTANT_COLOR_EXT = 0x8001 - ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002 - CONSTANT_ALPHA_EXT = 0x8003 - ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004 - BLEND_COLOR_EXT = 0x8005 # 4 F - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) -EXT_blend_minmax enum: - FUNC_ADD = 0x8006 - FUNC_ADD_EXT = 0x8006 - MIN = 0x8007 - MIN_EXT = 0x8007 - MAX = 0x8008 - MAX_EXT = 0x8008 - BLEND_EQUATION = 0x8009 # 1 I - BLEND_EQUATION_EXT = 0x8009 # 1 I - -VERSION_2_0 enum: (Promoted for OpenGL 2.0) - BLEND_EQUATION_RGB = 0x8009 # VERSION_2_0 # alias GL_BLEND_EQUATION - -EXT_blend_equation_separate enum: (separate; see below) - BLEND_EQUATION_RGB_EXT = 0x8009 # alias GL_BLEND_EQUATION - -# Aliases EXT_blend_equation_separate enum above -OES_blend_equation_separate enum: (OpenGL ES only; additional; see below) - BLEND_EQUATION_RGB_OES = 0x8009 # 1 I - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) -EXT_blend_subtract enum: - FUNC_SUBTRACT = 0x800A - FUNC_SUBTRACT_EXT = 0x800A - FUNC_REVERSE_SUBTRACT = 0x800B - FUNC_REVERSE_SUBTRACT_EXT = 0x800B - -# Aliases EXT_blend_minmax and EXT_blend_subtract enums above -OES_blend_subtract enum: (OpenGL ES only) - FUNC_ADD_OES = 0x8006 - BLEND_EQUATION_OES = 0x8009 # 1 I - FUNC_SUBTRACT_OES = 0x800A - FUNC_REVERSE_SUBTRACT_OES = 0x800B - -############################################################################### - -EXT_cmyka enum: - CMYK_EXT = 0x800C - CMYKA_EXT = 0x800D - PACK_CMYK_HINT_EXT = 0x800E # 1 I - UNPACK_CMYK_HINT_EXT = 0x800F # 1 I - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) - CONVOLUTION_1D = 0x8010 # 1 I - CONVOLUTION_2D = 0x8011 # 1 I - SEPARABLE_2D = 0x8012 # 1 I - CONVOLUTION_BORDER_MODE = 0x8013 - CONVOLUTION_FILTER_SCALE = 0x8014 - CONVOLUTION_FILTER_BIAS = 0x8015 - REDUCE = 0x8016 - CONVOLUTION_FORMAT = 0x8017 - CONVOLUTION_WIDTH = 0x8018 - CONVOLUTION_HEIGHT = 0x8019 - MAX_CONVOLUTION_WIDTH = 0x801A - MAX_CONVOLUTION_HEIGHT = 0x801B - POST_CONVOLUTION_RED_SCALE = 0x801C # 1 F - POST_CONVOLUTION_GREEN_SCALE = 0x801D # 1 F - POST_CONVOLUTION_BLUE_SCALE = 0x801E # 1 F - POST_CONVOLUTION_ALPHA_SCALE = 0x801F # 1 F - POST_CONVOLUTION_RED_BIAS = 0x8020 # 1 F - POST_CONVOLUTION_GREEN_BIAS = 0x8021 # 1 F - POST_CONVOLUTION_BLUE_BIAS = 0x8022 # 1 F - POST_CONVOLUTION_ALPHA_BIAS = 0x8023 # 1 F - -EXT_convolution enum: - CONVOLUTION_1D_EXT = 0x8010 # 1 I - CONVOLUTION_2D_EXT = 0x8011 # 1 I - SEPARABLE_2D_EXT = 0x8012 # 1 I - CONVOLUTION_BORDER_MODE_EXT = 0x8013 - CONVOLUTION_FILTER_SCALE_EXT = 0x8014 - CONVOLUTION_FILTER_BIAS_EXT = 0x8015 - REDUCE_EXT = 0x8016 - CONVOLUTION_FORMAT_EXT = 0x8017 - CONVOLUTION_WIDTH_EXT = 0x8018 - CONVOLUTION_HEIGHT_EXT = 0x8019 - MAX_CONVOLUTION_WIDTH_EXT = 0x801A - MAX_CONVOLUTION_HEIGHT_EXT = 0x801B - POST_CONVOLUTION_RED_SCALE_EXT = 0x801C # 1 F - POST_CONVOLUTION_GREEN_SCALE_EXT = 0x801D # 1 F - POST_CONVOLUTION_BLUE_SCALE_EXT = 0x801E # 1 F - POST_CONVOLUTION_ALPHA_SCALE_EXT = 0x801F # 1 F - POST_CONVOLUTION_RED_BIAS_EXT = 0x8020 # 1 F - POST_CONVOLUTION_GREEN_BIAS_EXT = 0x8021 # 1 F - POST_CONVOLUTION_BLUE_BIAS_EXT = 0x8022 # 1 F - POST_CONVOLUTION_ALPHA_BIAS_EXT = 0x8023 # 1 F - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) - HISTOGRAM = 0x8024 # 1 I - PROXY_HISTOGRAM = 0x8025 - HISTOGRAM_WIDTH = 0x8026 - HISTOGRAM_FORMAT = 0x8027 - HISTOGRAM_RED_SIZE = 0x8028 - HISTOGRAM_GREEN_SIZE = 0x8029 - HISTOGRAM_BLUE_SIZE = 0x802A - HISTOGRAM_ALPHA_SIZE = 0x802B - HISTOGRAM_SINK = 0x802D - MINMAX = 0x802E # 1 I - MINMAX_FORMAT = 0x802F - MINMAX_SINK = 0x8030 - TABLE_TOO_LARGE = 0x8031 - -EXT_histogram enum: - HISTOGRAM_EXT = 0x8024 # 1 I - PROXY_HISTOGRAM_EXT = 0x8025 - HISTOGRAM_WIDTH_EXT = 0x8026 - HISTOGRAM_FORMAT_EXT = 0x8027 - HISTOGRAM_RED_SIZE_EXT = 0x8028 - HISTOGRAM_GREEN_SIZE_EXT = 0x8029 - HISTOGRAM_BLUE_SIZE_EXT = 0x802A - HISTOGRAM_ALPHA_SIZE_EXT = 0x802B - HISTOGRAM_LUMINANCE_SIZE = 0x802C - HISTOGRAM_LUMINANCE_SIZE_EXT = 0x802C - HISTOGRAM_SINK_EXT = 0x802D - MINMAX_EXT = 0x802E # 1 I - MINMAX_FORMAT_EXT = 0x802F - MINMAX_SINK_EXT = 0x8030 - TABLE_TOO_LARGE_EXT = 0x8031 - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) - UNSIGNED_BYTE_3_3_2 = 0x8032 - UNSIGNED_SHORT_4_4_4_4 = 0x8033 - UNSIGNED_SHORT_5_5_5_1 = 0x8034 - UNSIGNED_INT_8_8_8_8 = 0x8035 - UNSIGNED_INT_10_10_10_2 = 0x8036 - UNSIGNED_BYTE_2_3_3_REV = 0x8362 - UNSIGNED_SHORT_5_6_5 = 0x8363 - UNSIGNED_SHORT_5_6_5_REV = 0x8364 - UNSIGNED_SHORT_4_4_4_4_REV = 0x8365 - UNSIGNED_SHORT_1_5_5_5_REV = 0x8366 - UNSIGNED_INT_8_8_8_8_REV = 0x8367 - UNSIGNED_INT_2_10_10_10_REV = 0x8368 - -EXT_packed_pixels enum: - UNSIGNED_BYTE_3_3_2_EXT = 0x8032 - UNSIGNED_SHORT_4_4_4_4_EXT = 0x8033 - UNSIGNED_SHORT_5_5_5_1_EXT = 0x8034 - UNSIGNED_INT_8_8_8_8_EXT = 0x8035 - UNSIGNED_INT_10_10_10_2_EXT = 0x8036 - UNSIGNED_BYTE_2_3_3_REV_EXT = 0x8362 - UNSIGNED_SHORT_5_6_5_EXT = 0x8363 - UNSIGNED_SHORT_5_6_5_REV_EXT = 0x8364 - UNSIGNED_SHORT_4_4_4_4_REV_EXT = 0x8365 - UNSIGNED_SHORT_1_5_5_5_REV_EXT = 0x8366 - UNSIGNED_INT_8_8_8_8_REV_EXT = 0x8367 - UNSIGNED_INT_2_10_10_10_REV_EXT = 0x8368 - -EXT_texture_type_2_10_10_10_REV enum: (OpenGL ES only) -# use EXT_packed_pixels UNSIGNED_INT_2_10_10_10_REV_EXT - -############################################################################### - -EXT_polygon_offset enum: - POLYGON_OFFSET_EXT = 0x8037 - POLYGON_OFFSET_FACTOR_EXT = 0x8038 - POLYGON_OFFSET_BIAS_EXT = 0x8039 # 1 F - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) - RESCALE_NORMAL = 0x803A # 1 I - -EXT_rescale_normal enum: - RESCALE_NORMAL_EXT = 0x803A # 1 I - -############################################################################### - -EXT_texture enum: - ALPHA4_EXT = 0x803B - ALPHA8_EXT = 0x803C - ALPHA12_EXT = 0x803D - ALPHA16_EXT = 0x803E - LUMINANCE4_EXT = 0x803F - LUMINANCE8_EXT = 0x8040 - LUMINANCE12_EXT = 0x8041 - LUMINANCE16_EXT = 0x8042 - LUMINANCE4_ALPHA4_EXT = 0x8043 - LUMINANCE6_ALPHA2_EXT = 0x8044 - LUMINANCE8_ALPHA8_EXT = 0x8045 - LUMINANCE12_ALPHA4_EXT = 0x8046 - LUMINANCE12_ALPHA12_EXT = 0x8047 - LUMINANCE16_ALPHA16_EXT = 0x8048 - INTENSITY_EXT = 0x8049 - INTENSITY4_EXT = 0x804A - INTENSITY8_EXT = 0x804B - INTENSITY12_EXT = 0x804C - INTENSITY16_EXT = 0x804D - RGB2_EXT = 0x804E - RGB4_EXT = 0x804F - RGB5_EXT = 0x8050 - RGB8_EXT = 0x8051 - RGB10_EXT = 0x8052 - RGB12_EXT = 0x8053 - RGB16_EXT = 0x8054 - RGBA2_EXT = 0x8055 - RGBA4_EXT = 0x8056 - RGB5_A1_EXT = 0x8057 - RGBA8_EXT = 0x8058 - RGB10_A2_EXT = 0x8059 - RGBA12_EXT = 0x805A - RGBA16_EXT = 0x805B - TEXTURE_RED_SIZE_EXT = 0x805C - TEXTURE_GREEN_SIZE_EXT = 0x805D - TEXTURE_BLUE_SIZE_EXT = 0x805E - TEXTURE_ALPHA_SIZE_EXT = 0x805F - TEXTURE_LUMINANCE_SIZE_EXT = 0x8060 - TEXTURE_INTENSITY_SIZE_EXT = 0x8061 - REPLACE_EXT = 0x8062 - PROXY_TEXTURE_1D_EXT = 0x8063 - PROXY_TEXTURE_2D_EXT = 0x8064 - TEXTURE_TOO_LARGE_EXT = 0x8065 - -# Aliases EXT_texture enums above -OES_framebuffer_object enum: (OpenGL ES only; additional; see below) - RGBA4_OES = 0x8056 - RGB5_A1_OES = 0x8057 - -############################################################################### - -EXT_texture_object enum: - TEXTURE_PRIORITY_EXT = 0x8066 - TEXTURE_RESIDENT_EXT = 0x8067 - TEXTURE_1D_BINDING_EXT = 0x8068 - TEXTURE_2D_BINDING_EXT = 0x8069 - TEXTURE_3D_BINDING_EXT = 0x806A # 1 I - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) - PACK_SKIP_IMAGES = 0x806B # 1 I - PACK_IMAGE_HEIGHT = 0x806C # 1 F - UNPACK_SKIP_IMAGES = 0x806D # 1 I - UNPACK_IMAGE_HEIGHT = 0x806E # 1 F - TEXTURE_3D = 0x806F # 1 I - PROXY_TEXTURE_3D = 0x8070 - TEXTURE_DEPTH = 0x8071 - TEXTURE_WRAP_R = 0x8072 - MAX_3D_TEXTURE_SIZE = 0x8073 # 1 I - -EXT_texture3D enum: - PACK_SKIP_IMAGES_EXT = 0x806B # 1 I - PACK_IMAGE_HEIGHT_EXT = 0x806C # 1 F - UNPACK_SKIP_IMAGES_EXT = 0x806D # 1 I - UNPACK_IMAGE_HEIGHT_EXT = 0x806E # 1 F - TEXTURE_3D_EXT = 0x806F # 1 I - PROXY_TEXTURE_3D_EXT = 0x8070 - TEXTURE_DEPTH_EXT = 0x8071 - TEXTURE_WRAP_R_EXT = 0x8072 - MAX_3D_TEXTURE_SIZE_EXT = 0x8073 # 1 I - -# Aliases EXT_texture_object, EXT_texture3D enums above -OES_texture3D enum: (OpenGL ES only) - TEXTURE_3D_BINDING_OES = 0x806A # 1 I - TEXTURE_3D_OES = 0x806F # 1 I - TEXTURE_WRAP_R_OES = 0x8072 - MAX_3D_TEXTURE_SIZE_OES = 0x8073 # 1 I - -############################################################################### - -EXT_vertex_array enum: - VERTEX_ARRAY_EXT = 0x8074 - NORMAL_ARRAY_EXT = 0x8075 - COLOR_ARRAY_EXT = 0x8076 - INDEX_ARRAY_EXT = 0x8077 - TEXTURE_COORD_ARRAY_EXT = 0x8078 - EDGE_FLAG_ARRAY_EXT = 0x8079 - VERTEX_ARRAY_SIZE_EXT = 0x807A - VERTEX_ARRAY_TYPE_EXT = 0x807B - VERTEX_ARRAY_STRIDE_EXT = 0x807C - VERTEX_ARRAY_COUNT_EXT = 0x807D # 1 I - NORMAL_ARRAY_TYPE_EXT = 0x807E - NORMAL_ARRAY_STRIDE_EXT = 0x807F - NORMAL_ARRAY_COUNT_EXT = 0x8080 # 1 I - COLOR_ARRAY_SIZE_EXT = 0x8081 - COLOR_ARRAY_TYPE_EXT = 0x8082 - COLOR_ARRAY_STRIDE_EXT = 0x8083 - COLOR_ARRAY_COUNT_EXT = 0x8084 # 1 I - INDEX_ARRAY_TYPE_EXT = 0x8085 - INDEX_ARRAY_STRIDE_EXT = 0x8086 - INDEX_ARRAY_COUNT_EXT = 0x8087 # 1 I - TEXTURE_COORD_ARRAY_SIZE_EXT = 0x8088 - TEXTURE_COORD_ARRAY_TYPE_EXT = 0x8089 - TEXTURE_COORD_ARRAY_STRIDE_EXT = 0x808A - TEXTURE_COORD_ARRAY_COUNT_EXT = 0x808B # 1 I - EDGE_FLAG_ARRAY_STRIDE_EXT = 0x808C - EDGE_FLAG_ARRAY_COUNT_EXT = 0x808D # 1 I - VERTEX_ARRAY_POINTER_EXT = 0x808E - NORMAL_ARRAY_POINTER_EXT = 0x808F - COLOR_ARRAY_POINTER_EXT = 0x8090 - INDEX_ARRAY_POINTER_EXT = 0x8091 - TEXTURE_COORD_ARRAY_POINTER_EXT = 0x8092 - EDGE_FLAG_ARRAY_POINTER_EXT = 0x8093 - -############################################################################### - -SGIX_interlace enum: - INTERLACE_SGIX = 0x8094 # 1 I - -############################################################################### - -SGIS_detail_texture enum: - DETAIL_TEXTURE_2D_SGIS = 0x8095 - DETAIL_TEXTURE_2D_BINDING_SGIS = 0x8096 # 1 I - LINEAR_DETAIL_SGIS = 0x8097 - LINEAR_DETAIL_ALPHA_SGIS = 0x8098 - LINEAR_DETAIL_COLOR_SGIS = 0x8099 - DETAIL_TEXTURE_LEVEL_SGIS = 0x809A - DETAIL_TEXTURE_MODE_SGIS = 0x809B - DETAIL_TEXTURE_FUNC_POINTS_SGIS = 0x809C - -############################################################################### - -# Reuses some SGIS_multisample values -VERSION_1_3 enum: (Promoted for OpenGL 1.3) - MULTISAMPLE = 0x809D - SAMPLE_ALPHA_TO_COVERAGE = 0x809E - SAMPLE_ALPHA_TO_ONE = 0x809F - SAMPLE_COVERAGE = 0x80A0 - SAMPLE_BUFFERS = 0x80A8 # 1 I - SAMPLES = 0x80A9 # 1 I - SAMPLE_COVERAGE_VALUE = 0x80AA # 1 F - SAMPLE_COVERAGE_INVERT = 0x80AB # 1 I - -ARB_multisample enum: - MULTISAMPLE_ARB = 0x809D - SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809E - SAMPLE_ALPHA_TO_ONE_ARB = 0x809F - SAMPLE_COVERAGE_ARB = 0x80A0 - SAMPLE_BUFFERS_ARB = 0x80A8 # 1 I - SAMPLES_ARB = 0x80A9 # 1 I - SAMPLE_COVERAGE_VALUE_ARB = 0x80AA # 1 F - SAMPLE_COVERAGE_INVERT_ARB = 0x80AB # 1 I - -SGIS_multisample enum: - MULTISAMPLE_SGIS = 0x809D # 1 I - SAMPLE_ALPHA_TO_MASK_SGIS = 0x809E # 1 I - SAMPLE_ALPHA_TO_ONE_SGIS = 0x809F # 1 I - SAMPLE_MASK_SGIS = 0x80A0 # 1 I - 1PASS_SGIS = 0x80A1 - 2PASS_0_SGIS = 0x80A2 - 2PASS_1_SGIS = 0x80A3 - 4PASS_0_SGIS = 0x80A4 - 4PASS_1_SGIS = 0x80A5 - 4PASS_2_SGIS = 0x80A6 - 4PASS_3_SGIS = 0x80A7 - SAMPLE_BUFFERS_SGIS = 0x80A8 # 1 I - SAMPLES_SGIS = 0x80A9 # 1 I - SAMPLE_MASK_VALUE_SGIS = 0x80AA # 1 F - SAMPLE_MASK_INVERT_SGIS = 0x80AB # 1 I - SAMPLE_PATTERN_SGIS = 0x80AC # 1 I - -# Reuses SGIS_multisample values. -EXT_multisample enum: - MULTISAMPLE_EXT = 0x809D - SAMPLE_ALPHA_TO_MASK_EXT = 0x809E - SAMPLE_ALPHA_TO_ONE_EXT = 0x809F - SAMPLE_MASK_EXT = 0x80A0 - 1PASS_EXT = 0x80A1 - 2PASS_0_EXT = 0x80A2 - 2PASS_1_EXT = 0x80A3 - 4PASS_0_EXT = 0x80A4 - 4PASS_1_EXT = 0x80A5 - 4PASS_2_EXT = 0x80A6 - 4PASS_3_EXT = 0x80A7 - SAMPLE_BUFFERS_EXT = 0x80A8 # 1 I - SAMPLES_EXT = 0x80A9 # 1 I - SAMPLE_MASK_VALUE_EXT = 0x80AA # 1 F - SAMPLE_MASK_INVERT_EXT = 0x80AB # 1 I - SAMPLE_PATTERN_EXT = 0x80AC # 1 I - MULTISAMPLE_BIT_EXT = 0x20000000 - -# Reuses SAMPLES enum as COVERAGE_SAMPLES -NV_multisample_coverage enum: (additional; see below) - COVERAGE_SAMPLES_NV = 0x80A9 - -############################################################################### - -SGIS_sharpen_texture enum: - LINEAR_SHARPEN_SGIS = 0x80AD - LINEAR_SHARPEN_ALPHA_SGIS = 0x80AE - LINEAR_SHARPEN_COLOR_SGIS = 0x80AF - SHARPEN_TEXTURE_FUNC_POINTS_SGIS = 0x80B0 - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) - COLOR_MATRIX = 0x80B1 # 16 F - COLOR_MATRIX_STACK_DEPTH = 0x80B2 # 1 I - MAX_COLOR_MATRIX_STACK_DEPTH = 0x80B3 # 1 I - POST_COLOR_MATRIX_RED_SCALE = 0x80B4 # 1 F - POST_COLOR_MATRIX_GREEN_SCALE = 0x80B5 # 1 F - POST_COLOR_MATRIX_BLUE_SCALE = 0x80B6 # 1 F - POST_COLOR_MATRIX_ALPHA_SCALE = 0x80B7 # 1 F - POST_COLOR_MATRIX_RED_BIAS = 0x80B8 # 1 F - POST_COLOR_MATRIX_GREEN_BIAS = 0x80B9 # 1 F - POST_COLOR_MATRIX_BLUE_BIAS = 0x80BA # 1 F - POST_COLOR_MATRIX_ALPHA_BIAS = 0x80BB # 1 F - -SGI_color_matrix enum: - COLOR_MATRIX_SGI = 0x80B1 # 16 F - COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B2 # 1 I - MAX_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B3 # 1 I - POST_COLOR_MATRIX_RED_SCALE_SGI = 0x80B4 # 1 F - POST_COLOR_MATRIX_GREEN_SCALE_SGI = 0x80B5 # 1 F - POST_COLOR_MATRIX_BLUE_SCALE_SGI = 0x80B6 # 1 F - POST_COLOR_MATRIX_ALPHA_SCALE_SGI = 0x80B7 # 1 F - POST_COLOR_MATRIX_RED_BIAS_SGI = 0x80B8 # 1 F - POST_COLOR_MATRIX_GREEN_BIAS_SGI = 0x80B9 # 1 F - POST_COLOR_MATRIX_BLUE_BIAS_SGI = 0x80BA # 1 F - POST_COLOR_MATRIX_ALPHA_BIAS_SGI = 0x80BB # 1 F - -############################################################################### - -SGI_texture_color_table enum: - TEXTURE_COLOR_TABLE_SGI = 0x80BC # 1 I - PROXY_TEXTURE_COLOR_TABLE_SGI = 0x80BD - -############################################################################### - -SGIX_texture_add_env enum: - TEXTURE_ENV_BIAS_SGIX = 0x80BE - -############################################################################### - -SGIX_shadow_ambient enum: - SHADOW_AMBIENT_SGIX = 0x80BF - -############################################################################### - -# Intergraph/Intense3D/3Dlabs: 0x80C0-0x80CF - -# 3Dlabs_future_use: 0x80C0-0x80C7 - -VERSION_1_4 enum: (Promoted for OpenGL 1.4) - BLEND_DST_RGB = 0x80C8 - BLEND_SRC_RGB = 0x80C9 - BLEND_DST_ALPHA = 0x80CA - BLEND_SRC_ALPHA = 0x80CB - -EXT_blend_func_separate enum: - BLEND_DST_RGB_EXT = 0x80C8 - BLEND_SRC_RGB_EXT = 0x80C9 - BLEND_DST_ALPHA_EXT = 0x80CA - BLEND_SRC_ALPHA_EXT = 0x80CB - -# Aliases EXT_blend_func_separate enums above -OES_blend_func_separate enum: (OpenGL ES only) - BLEND_DST_RGB_OES = 0x80C8 - BLEND_SRC_RGB_OES = 0x80C9 - BLEND_DST_ALPHA_OES = 0x80CA - BLEND_SRC_ALPHA_OES = 0x80CB - -EXT_422_pixels enum: - 422_EXT = 0x80CC - 422_REV_EXT = 0x80CD - 422_AVERAGE_EXT = 0x80CE - 422_REV_AVERAGE_EXT = 0x80CF - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) - COLOR_TABLE = 0x80D0 # 1 I - POST_CONVOLUTION_COLOR_TABLE = 0x80D1 # 1 I - POST_COLOR_MATRIX_COLOR_TABLE = 0x80D2 # 1 I - PROXY_COLOR_TABLE = 0x80D3 - PROXY_POST_CONVOLUTION_COLOR_TABLE = 0x80D4 - PROXY_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D5 - COLOR_TABLE_SCALE = 0x80D6 - COLOR_TABLE_BIAS = 0x80D7 - COLOR_TABLE_FORMAT = 0x80D8 - COLOR_TABLE_WIDTH = 0x80D9 - COLOR_TABLE_RED_SIZE = 0x80DA - COLOR_TABLE_GREEN_SIZE = 0x80DB - COLOR_TABLE_BLUE_SIZE = 0x80DC - COLOR_TABLE_ALPHA_SIZE = 0x80DD - COLOR_TABLE_LUMINANCE_SIZE = 0x80DE - COLOR_TABLE_INTENSITY_SIZE = 0x80DF - -SGI_color_table enum: - COLOR_TABLE_SGI = 0x80D0 # 1 I - POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D1 # 1 I - POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D2 # 1 I - PROXY_COLOR_TABLE_SGI = 0x80D3 - PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D4 - PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D5 - COLOR_TABLE_SCALE_SGI = 0x80D6 - COLOR_TABLE_BIAS_SGI = 0x80D7 - COLOR_TABLE_FORMAT_SGI = 0x80D8 - COLOR_TABLE_WIDTH_SGI = 0x80D9 - COLOR_TABLE_RED_SIZE_SGI = 0x80DA - COLOR_TABLE_GREEN_SIZE_SGI = 0x80DB - COLOR_TABLE_BLUE_SIZE_SGI = 0x80DC - COLOR_TABLE_ALPHA_SIZE_SGI = 0x80DD - COLOR_TABLE_LUMINANCE_SIZE_SGI = 0x80DE - COLOR_TABLE_INTENSITY_SIZE_SGI = 0x80DF - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) - BGR = 0x80E0 - BGRA = 0x80E1 - -ARB_vertex_array_bgra enum: -# use VERSION_1_2 BGRA - -EXT_bgra enum: - BGR_EXT = 0x80E0 - BGRA_EXT = 0x80E1 - -############################################################################### - -# Microsoft: 0x80E2-0x80E7 - -############################################################################### - -VERSION_1_2 enum: - MAX_ELEMENTS_VERTICES = 0x80E8 - MAX_ELEMENTS_INDICES = 0x80E9 - -############################################################################### - -# Microsoft: 0x80EA-0x810F - -############################################################################### - -SGIS_texture_select enum: - DUAL_ALPHA4_SGIS = 0x8110 - DUAL_ALPHA8_SGIS = 0x8111 - DUAL_ALPHA12_SGIS = 0x8112 - DUAL_ALPHA16_SGIS = 0x8113 - DUAL_LUMINANCE4_SGIS = 0x8114 - DUAL_LUMINANCE8_SGIS = 0x8115 - DUAL_LUMINANCE12_SGIS = 0x8116 - DUAL_LUMINANCE16_SGIS = 0x8117 - DUAL_INTENSITY4_SGIS = 0x8118 - DUAL_INTENSITY8_SGIS = 0x8119 - DUAL_INTENSITY12_SGIS = 0x811A - DUAL_INTENSITY16_SGIS = 0x811B - DUAL_LUMINANCE_ALPHA4_SGIS = 0x811C - DUAL_LUMINANCE_ALPHA8_SGIS = 0x811D - QUAD_ALPHA4_SGIS = 0x811E - QUAD_ALPHA8_SGIS = 0x811F - QUAD_LUMINANCE4_SGIS = 0x8120 - QUAD_LUMINANCE8_SGIS = 0x8121 - QUAD_INTENSITY4_SGIS = 0x8122 - QUAD_INTENSITY8_SGIS = 0x8123 - DUAL_TEXTURE_SELECT_SGIS = 0x8124 - QUAD_TEXTURE_SELECT_SGIS = 0x8125 - -############################################################################### - -VERSION_1_4 enum: (Promoted for OpenGL 1.4) - POINT_SIZE_MIN = 0x8126 # 1 F - POINT_SIZE_MAX = 0x8127 # 1 F - POINT_FADE_THRESHOLD_SIZE = 0x8128 # 1 F - POINT_DISTANCE_ATTENUATION = 0x8129 # 3 F - -ARB_point_parameters enum: - POINT_SIZE_MIN_ARB = 0x8126 # 1 F - POINT_SIZE_MAX_ARB = 0x8127 # 1 F - POINT_FADE_THRESHOLD_SIZE_ARB = 0x8128 # 1 F - POINT_DISTANCE_ATTENUATION_ARB = 0x8129 # 3 F - -EXT_point_parameters enum: - POINT_SIZE_MIN_EXT = 0x8126 # 1 F - POINT_SIZE_MAX_EXT = 0x8127 # 1 F - POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128 # 1 F - DISTANCE_ATTENUATION_EXT = 0x8129 # 3 F - -SGIS_point_parameters enum: - POINT_SIZE_MIN_SGIS = 0x8126 # 1 F - POINT_SIZE_MAX_SGIS = 0x8127 # 1 F - POINT_FADE_THRESHOLD_SIZE_SGIS = 0x8128 # 1 F - DISTANCE_ATTENUATION_SGIS = 0x8129 # 3 F - -############################################################################### - -SGIS_fog_function enum: - FOG_FUNC_SGIS = 0x812A - FOG_FUNC_POINTS_SGIS = 0x812B # 1 I - MAX_FOG_FUNC_POINTS_SGIS = 0x812C # 1 I - -############################################################################### - -VERSION_1_3 enum: (Promoted for OpenGL 1.3) - CLAMP_TO_BORDER = 0x812D - -ARB_texture_border_clamp enum: - CLAMP_TO_BORDER_ARB = 0x812D - -SGIS_texture_border_clamp enum: - CLAMP_TO_BORDER_SGIS = 0x812D - -############################################################################### - -SGIX_texture_multi_buffer enum: - TEXTURE_MULTI_BUFFER_HINT_SGIX = 0x812E - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) - CLAMP_TO_EDGE = 0x812F - -SGIS_texture_edge_clamp enum: - CLAMP_TO_EDGE_SGIS = 0x812F - -############################################################################### - -SGIS_texture4D enum: - PACK_SKIP_VOLUMES_SGIS = 0x8130 # 1 I - PACK_IMAGE_DEPTH_SGIS = 0x8131 # 1 I - UNPACK_SKIP_VOLUMES_SGIS = 0x8132 # 1 I - UNPACK_IMAGE_DEPTH_SGIS = 0x8133 # 1 I - TEXTURE_4D_SGIS = 0x8134 # 1 I - PROXY_TEXTURE_4D_SGIS = 0x8135 - TEXTURE_4DSIZE_SGIS = 0x8136 - TEXTURE_WRAP_Q_SGIS = 0x8137 - MAX_4D_TEXTURE_SIZE_SGIS = 0x8138 # 1 I - TEXTURE_4D_BINDING_SGIS = 0x814F # 1 I - -############################################################################### - -SGIX_pixel_texture enum: - PIXEL_TEX_GEN_SGIX = 0x8139 # 1 I - PIXEL_TEX_GEN_MODE_SGIX = 0x832B # 1 I - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) - TEXTURE_MIN_LOD = 0x813A - TEXTURE_MAX_LOD = 0x813B - TEXTURE_BASE_LEVEL = 0x813C - TEXTURE_MAX_LEVEL = 0x813D - -SGIS_texture_lod enum: - TEXTURE_MIN_LOD_SGIS = 0x813A - TEXTURE_MAX_LOD_SGIS = 0x813B - TEXTURE_BASE_LEVEL_SGIS = 0x813C - TEXTURE_MAX_LEVEL_SGIS = 0x813D - -############################################################################### - -SGIX_pixel_tiles enum: - PIXEL_TILE_BEST_ALIGNMENT_SGIX = 0x813E # 1 I - PIXEL_TILE_CACHE_INCREMENT_SGIX = 0x813F # 1 I - PIXEL_TILE_WIDTH_SGIX = 0x8140 # 1 I - PIXEL_TILE_HEIGHT_SGIX = 0x8141 # 1 I - PIXEL_TILE_GRID_WIDTH_SGIX = 0x8142 # 1 I - PIXEL_TILE_GRID_HEIGHT_SGIX = 0x8143 # 1 I - PIXEL_TILE_GRID_DEPTH_SGIX = 0x8144 # 1 I - PIXEL_TILE_CACHE_SIZE_SGIX = 0x8145 # 1 I - -############################################################################### - -SGIS_texture_filter4 enum: - FILTER4_SGIS = 0x8146 - TEXTURE_FILTER4_SIZE_SGIS = 0x8147 - -############################################################################### - -SGIX_sprite enum: - SPRITE_SGIX = 0x8148 # 1 I - SPRITE_MODE_SGIX = 0x8149 # 1 I - SPRITE_AXIS_SGIX = 0x814A # 3 F - SPRITE_TRANSLATION_SGIX = 0x814B # 3 F - SPRITE_AXIAL_SGIX = 0x814C - SPRITE_OBJECT_ALIGNED_SGIX = 0x814D - SPRITE_EYE_ALIGNED_SGIX = 0x814E - -############################################################################### - -# SGIS_texture4D (additional; see above): 0x814F - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) - CONSTANT_BORDER = 0x8151 -# WRAP_BORDER = 0x8152 # Not actually used - REPLICATE_BORDER = 0x8153 - CONVOLUTION_BORDER_COLOR = 0x8154 - -HP_convolution_border_modes enum: - IGNORE_BORDER_HP = 0x8150 # Not promoted - CONSTANT_BORDER_HP = 0x8151 - REPLICATE_BORDER_HP = 0x8153 - CONVOLUTION_BORDER_COLOR_HP = 0x8154 - -############################################################################### - -# HP: 0x8155-0x816F - -############################################################################### - -SGIX_clipmap enum: - LINEAR_CLIPMAP_LINEAR_SGIX = 0x8170 - TEXTURE_CLIPMAP_CENTER_SGIX = 0x8171 - TEXTURE_CLIPMAP_FRAME_SGIX = 0x8172 - TEXTURE_CLIPMAP_OFFSET_SGIX = 0x8173 - TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8174 - TEXTURE_CLIPMAP_LOD_OFFSET_SGIX = 0x8175 - TEXTURE_CLIPMAP_DEPTH_SGIX = 0x8176 - MAX_CLIPMAP_DEPTH_SGIX = 0x8177 # 1 I - MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8178 # 1 I - NEAREST_CLIPMAP_NEAREST_SGIX = 0x844D - NEAREST_CLIPMAP_LINEAR_SGIX = 0x844E - LINEAR_CLIPMAP_NEAREST_SGIX = 0x844F - -############################################################################### - -SGIX_texture_scale_bias enum: - POST_TEXTURE_FILTER_BIAS_SGIX = 0x8179 - POST_TEXTURE_FILTER_SCALE_SGIX = 0x817A - POST_TEXTURE_FILTER_BIAS_RANGE_SGIX = 0x817B # 2 F - POST_TEXTURE_FILTER_SCALE_RANGE_SGIX = 0x817C # 2 F - -############################################################################### - -SGIX_reference_plane enum: - REFERENCE_PLANE_SGIX = 0x817D # 1 I - REFERENCE_PLANE_EQUATION_SGIX = 0x817E # 4 F - -############################################################################### - -SGIX_ir_instrument1 enum: - IR_INSTRUMENT1_SGIX = 0x817F # 1 I - -############################################################################### - -SGIX_instruments enum: - INSTRUMENT_BUFFER_POINTER_SGIX = 0x8180 - INSTRUMENT_MEASUREMENTS_SGIX = 0x8181 # 1 I - -############################################################################### - -SGIX_list_priority enum: - LIST_PRIORITY_SGIX = 0x8182 - -############################################################################### - -SGIX_calligraphic_fragment enum: - CALLIGRAPHIC_FRAGMENT_SGIX = 0x8183 # 1 I - -############################################################################### - -SGIX_impact_pixel_texture enum: - PIXEL_TEX_GEN_Q_CEILING_SGIX = 0x8184 - PIXEL_TEX_GEN_Q_ROUND_SGIX = 0x8185 - PIXEL_TEX_GEN_Q_FLOOR_SGIX = 0x8186 - PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX = 0x8187 - PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX = 0x8188 - PIXEL_TEX_GEN_ALPHA_LS_SGIX = 0x8189 - PIXEL_TEX_GEN_ALPHA_MS_SGIX = 0x818A - -############################################################################### - -SGIX_framezoom enum: - FRAMEZOOM_SGIX = 0x818B # 1 I - FRAMEZOOM_FACTOR_SGIX = 0x818C # 1 I - MAX_FRAMEZOOM_FACTOR_SGIX = 0x818D # 1 I - -############################################################################### - -SGIX_texture_lod_bias enum: - TEXTURE_LOD_BIAS_S_SGIX = 0x818E - TEXTURE_LOD_BIAS_T_SGIX = 0x818F - TEXTURE_LOD_BIAS_R_SGIX = 0x8190 - -############################################################################### - -VERSION_1_4 enum: (Promoted for OpenGL 1.4) - GENERATE_MIPMAP = 0x8191 - GENERATE_MIPMAP_HINT = 0x8192 # 1 I - -SGIS_generate_mipmap enum: - GENERATE_MIPMAP_SGIS = 0x8191 - GENERATE_MIPMAP_HINT_SGIS = 0x8192 # 1 I - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_spotlight_cutoff: 0x8193 -# SPOT_CUTOFF_DELTA_SGIX = 0x8193 - -############################################################################### - -SGIX_polynomial_ffd enum: - GEOMETRY_DEFORMATION_SGIX = 0x8194 - TEXTURE_DEFORMATION_SGIX = 0x8195 - DEFORMATIONS_MASK_SGIX = 0x8196 # 1 I - MAX_DEFORMATION_ORDER_SGIX = 0x8197 - -############################################################################### - -SGIX_fog_offset enum: - FOG_OFFSET_SGIX = 0x8198 # 1 I - FOG_OFFSET_VALUE_SGIX = 0x8199 # 4 F - -############################################################################### - -SGIX_shadow enum: - TEXTURE_COMPARE_SGIX = 0x819A - TEXTURE_COMPARE_OPERATOR_SGIX = 0x819B - TEXTURE_LEQUAL_R_SGIX = 0x819C - TEXTURE_GEQUAL_R_SGIX = 0x819D - -############################################################################### - -# SGI private extension, not in enumext.spec -# SGIX_igloo_interface: 0x819E-0x81A4 -# IGLOO_FULLSCREEN_SGIX = 0x819E -# IGLOO_VIEWPORT_OFFSET_SGIX = 0x819F -# IGLOO_SWAPTMESH_SGIX = 0x81A0 -# IGLOO_COLORNORMAL_SGIX = 0x81A1 -# IGLOO_IRISGL_MODE_SGIX = 0x81A2 -# IGLOO_LMC_COLOR_SGIX = 0x81A3 -# IGLOO_TMESHMODE_SGIX = 0x81A4 - -############################################################################### - -VERSION_1_4 enum: (Promoted for OpenGL 1.4) - DEPTH_COMPONENT16 = 0x81A5 - DEPTH_COMPONENT24 = 0x81A6 - DEPTH_COMPONENT32 = 0x81A7 - -ARB_depth_texture enum: - DEPTH_COMPONENT16_ARB = 0x81A5 - DEPTH_COMPONENT24_ARB = 0x81A6 - DEPTH_COMPONENT32_ARB = 0x81A7 - -SGIX_depth_texture enum: - DEPTH_COMPONENT16_SGIX = 0x81A5 - DEPTH_COMPONENT24_SGIX = 0x81A6 - DEPTH_COMPONENT32_SGIX = 0x81A7 - -# Aliases ARB_depth_texture enum above -OES_framebuffer_object enum: (OpenGL ES only; additional; see below) - DEPTH_COMPONENT16_OES = 0x81A5 - -# Aliases ARB_depth_texture enum above -OES_depth24 enum: (OpenGL ES only) - DEPTH_COMPONENT24_OES = 0x81A6 - -# Aliases ARB_depth_texture enum above -OES_depth32 enum: (OpenGL ES only) - DEPTH_COMPONENT32_OES = 0x81A7 - -############################################################################### - -EXT_compiled_vertex_array enum: - ARRAY_ELEMENT_LOCK_FIRST_EXT = 0x81A8 - ARRAY_ELEMENT_LOCK_COUNT_EXT = 0x81A9 - -############################################################################### - -EXT_cull_vertex enum: - CULL_VERTEX_EXT = 0x81AA - CULL_VERTEX_EYE_POSITION_EXT = 0x81AB - CULL_VERTEX_OBJECT_POSITION_EXT = 0x81AC - -############################################################################### - -# Promoted from SGI? -EXT_index_array_formats enum: - IUI_V2F_EXT = 0x81AD - IUI_V3F_EXT = 0x81AE - IUI_N3F_V2F_EXT = 0x81AF - IUI_N3F_V3F_EXT = 0x81B0 - T2F_IUI_V2F_EXT = 0x81B1 - T2F_IUI_V3F_EXT = 0x81B2 - T2F_IUI_N3F_V2F_EXT = 0x81B3 - T2F_IUI_N3F_V3F_EXT = 0x81B4 - -############################################################################### - -# Promoted from SGI? -EXT_index_func enum: - INDEX_TEST_EXT = 0x81B5 - INDEX_TEST_FUNC_EXT = 0x81B6 - INDEX_TEST_REF_EXT = 0x81B7 - -############################################################################### - -# Promoted from SGI? -EXT_index_material enum: - INDEX_MATERIAL_EXT = 0x81B8 - INDEX_MATERIAL_PARAMETER_EXT = 0x81B9 - INDEX_MATERIAL_FACE_EXT = 0x81BA - -############################################################################### - -SGIX_ycrcb enum: - YCRCB_422_SGIX = 0x81BB - YCRCB_444_SGIX = 0x81BC - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGI_complex_type: 0x81BD-0x81C3 -# COMPLEX_UNSIGNED_BYTE_SGI = 0x81BD -# COMPLEX_BYTE_SGI = 0x81BE -# COMPLEX_UNSIGNED_SHORT_SGI = 0x81BF -# COMPLEX_SHORT_SGI = 0x81C0 -# COMPLEX_UNSIGNED_INT_SGI = 0x81C1 -# COMPLEX_INT_SGI = 0x81C2 -# COMPLEX_FLOAT_SGI = 0x81C3 - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGI_fft: 0x81C4-0x81CA -# POST_TRANSFORM_RED_SCALE_SGI = ???? # 1 F -# POST_TRANSFORM_GREEN_SCALE_SGI = ???? # 1 F -# POST_TRANSFORM_BLUE_SCALE_SGI = ???? # 1 F -# POST_TRANSFORM_ALPHA_SCALE_SGI = ???? # 1 F -# POST_TRANSFORM_RED_BIAS_SGI = ???? # 1 F -# POST_TRANSFORM_GREEN_BIAS_SGI = ???? # 1 F -# POST_TRANSFORM_BLUE_BIAS_SGI = ???? # 1 F -# POST_TRANSFORM_ALPHA_BIAS_SGI = ???? # 1 F -# PIXEL_TRANSFORM_OPERATOR_SGI = 0x81C4 # 1 I -# CONVOLUTION_SGI = 0x81C5 -# FFT_1D_SGI = 0x81C6 -# PIXEL_TRANSFORM_SGI = 0x81C7 -# MAX_FFT_WIDTH_SGI = 0x81C8 -# SORT_SGI = 0x81C9 -# TRANSPOSE_SGI = 0x81CA - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_nurbs_eval: 0x81CB-0x81CF -# MAP1_VERTEX_3_NURBS_SGIX = 0x81CB # 1 I -# MAP1_VERTEX_4_NURBS_SGIX = 0x81CC # 1 I -# MAP1_INDEX_NURBS_SGIX = 0x81CD # 1 I -# MAP1_COLOR_4_NURBS_SGIX = 0x81CE # 1 I -# MAP1_NORMAL_NURBS_SGIX = 0x81CF # 1 I -# MAP1_TEXTURE_COORD_1_NURBS_SGIX = 0x81E0 # 1 I -# MAP1_TEXTURE_COORD_2_NURBS_SGIX = 0x81E1 # 1 I -# MAP1_TEXTURE_COORD_3_NURBS_SGIX = 0x81E2 # 1 I -# MAP1_TEXTURE_COORD_4_NURBS_SGIX = 0x81E3 # 1 I -# MAP2_VERTEX_3_NURBS_SGIX = 0x81E4 # 1 I -# MAP2_VERTEX_4_NURBS_SGIX = 0x81E5 # 1 I -# MAP2_INDEX_NURBS_SGIX = 0x81E6 # 1 I -# MAP2_COLOR_4_NURBS_SGIX = 0x81E7 # 1 I -# MAP2_NORMAL_NURBS_SGIX = 0x81E8 # 1 I -# MAP2_TEXTURE_COORD_1_NURBS_SGIX = 0x81E9 # 1 I -# MAP2_TEXTURE_COORD_2_NURBS_SGIX = 0x81EA # 1 I -# MAP2_TEXTURE_COORD_3_NURBS_SGIX = 0x81EB # 1 I -# MAP2_TEXTURE_COORD_4_NURBS_SGIX = 0x81EC # 1 I -# NURBS_KNOT_COUNT_SGIX = 0x81ED -# NURBS_KNOT_VECTOR_SGIX = 0x81EE - -############################################################################### - -# Sun: 0x81D0-0x81DF - -# No extension spec, not in enumext.spec -# SUNX_surface_hint enum: -# SURFACE_SIZE_HINT_SUNX = 0x81D2 -# LARGE_SUNX = 0x81D3 - -SUNX_general_triangle_list enum: - RESTART_SUN = 0x0001 - REPLACE_MIDDLE_SUN = 0x0002 - REPLACE_OLDEST_SUN = 0x0003 - WRAP_BORDER_SUN = 0x81D4 - TRIANGLE_LIST_SUN = 0x81D7 - REPLACEMENT_CODE_SUN = 0x81D8 - -SUNX_constant_data enum: - UNPACK_CONSTANT_DATA_SUNX = 0x81D5 - TEXTURE_CONSTANT_DATA_SUNX = 0x81D6 - -SUN_global_alpha enum: - GLOBAL_ALPHA_SUN = 0x81D9 - GLOBAL_ALPHA_FACTOR_SUN = 0x81DA - -############################################################################### - -# SGIX_nurbs_eval (additional; see above): 0x81E0-0x81EE - -############################################################################### - -SGIS_texture_color_mask enum: - TEXTURE_COLOR_WRITEMASK_SGIS = 0x81EF - -############################################################################### - -SGIS_point_line_texgen enum: - EYE_DISTANCE_TO_POINT_SGIS = 0x81F0 - OBJECT_DISTANCE_TO_POINT_SGIS = 0x81F1 - EYE_DISTANCE_TO_LINE_SGIS = 0x81F2 - OBJECT_DISTANCE_TO_LINE_SGIS = 0x81F3 - EYE_POINT_SGIS = 0x81F4 - OBJECT_POINT_SGIS = 0x81F5 - EYE_LINE_SGIS = 0x81F6 - OBJECT_LINE_SGIS = 0x81F7 - -############################################################################### - -VERSION_1_2 enum: (Promoted for OpenGL 1.2) - LIGHT_MODEL_COLOR_CONTROL = 0x81F8 # 1 I - SINGLE_COLOR = 0x81F9 - SEPARATE_SPECULAR_COLOR = 0x81FA - -EXT_separate_specular_color enum: - LIGHT_MODEL_COLOR_CONTROL_EXT = 0x81F8 - SINGLE_COLOR_EXT = 0x81F9 - SEPARATE_SPECULAR_COLOR_EXT = 0x81FA - -############################################################################### - -EXT_shared_texture_palette enum: - SHARED_TEXTURE_PALETTE_EXT = 0x81FB # 1 I - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_fog_scale: 0x81FC-0x81FD -# FOG_SCALE_SGIX = 0x81FC # 1 I -# FOG_SCALE_VALUE_SGIX = 0x81FD # 1 F - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_fog_blend: 0x81FE-0x81FF -# FOG_BLEND_ALPHA_SGIX = 0x81FE # 1 I -# FOG_BLEND_COLOR_SGIX = 0x81FF # 1 I - -############################################################################### - -# ATI: 0x8200-0x820F (range released by Microsoft 2002/9/16) -ATI_text_fragment_shader enum: - TEXT_FRAGMENT_SHADER_ATI = 0x8200 - -############################################################################### - -# OpenGL ARB: 0x8210-0x823F - -VERSION_3_0 enum: - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_RED_SIZE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_GREEN_SIZE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_BLUE_SIZE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE - use ARB_framebuffer_object FRAMEBUFFER_DEFAULT - use ARB_framebuffer_object FRAMEBUFFER_UNDEFINED - use ARB_framebuffer_object DEPTH_STENCIL_ATTACHMENT - -ARB_framebuffer_object enum: (note: no ARB suffixes) - FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_DEFAULT = 0x8218 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_UNDEFINED = 0x8219 # VERSION_3_0 / ARB_fbo - DEPTH_STENCIL_ATTACHMENT = 0x821A # VERSION_3_0 / ARB_fbo - -VERSION_3_0 enum: - MAJOR_VERSION = 0x821B # VERSION_3_0 - MINOR_VERSION = 0x821C # VERSION_3_0 - NUM_EXTENSIONS = 0x821D # VERSION_3_0 - CONTEXT_FLAGS = 0x821E # VERSION_3_0 - -# ARB_future_use: 0x821F-0x8221 - -VERSION_3_0 enum: - use ARB_framebuffer_object INDEX - -ARB_framebuffer_object enum: (note: no ARB suffixes) - INDEX = 0x8222 # VERSION_3_0 / ARB_fbo - -VERSION_3_0 enum: - DEPTH_BUFFER = 0x8223 # VERSION_3_0 - STENCIL_BUFFER = 0x8224 # VERSION_3_0 - COMPRESSED_RED = 0x8225 # VERSION_3_0 - COMPRESSED_RG = 0x8226 # VERSION_3_0 - -VERSION_3_0 enum: - use ARB_texture_rg RG - use ARB_texture_rg RG_INTEGER - use ARB_texture_rg R8 - use ARB_texture_rg R16 - use ARB_texture_rg RG8 - use ARB_texture_rg RG16 - use ARB_texture_rg R16F - use ARB_texture_rg R32F - use ARB_texture_rg RG16F - use ARB_texture_rg RG32F - use ARB_texture_rg R8I - use ARB_texture_rg R8UI - use ARB_texture_rg R16I - use ARB_texture_rg R16UI - use ARB_texture_rg R32I - use ARB_texture_rg R32UI - use ARB_texture_rg RG8I - use ARB_texture_rg RG8UI - use ARB_texture_rg RG16I - use ARB_texture_rg RG16UI - use ARB_texture_rg RG32I - use ARB_texture_rg RG32UI - -ARB_texture_rg enum: (note: no ARB suffixes) - RG = 0x8227 # VERSION_3_0 / ARB_trg - RG_INTEGER = 0x8228 # VERSION_3_0 / ARB_trg - R8 = 0x8229 # VERSION_3_0 / ARB_trg - R16 = 0x822A # VERSION_3_0 / ARB_trg - RG8 = 0x822B # VERSION_3_0 / ARB_trg - RG16 = 0x822C # VERSION_3_0 / ARB_trg - R16F = 0x822D # VERSION_3_0 / ARB_trg - R32F = 0x822E # VERSION_3_0 / ARB_trg - RG16F = 0x822F # VERSION_3_0 / ARB_trg - RG32F = 0x8230 # VERSION_3_0 / ARB_trg - R8I = 0x8231 # VERSION_3_0 / ARB_trg - R8UI = 0x8232 # VERSION_3_0 / ARB_trg - R16I = 0x8233 # VERSION_3_0 / ARB_trg - R16UI = 0x8234 # VERSION_3_0 / ARB_trg - R32I = 0x8235 # VERSION_3_0 / ARB_trg - R32UI = 0x8236 # VERSION_3_0 / ARB_trg - RG8I = 0x8237 # VERSION_3_0 / ARB_trg - RG8UI = 0x8238 # VERSION_3_0 / ARB_trg - RG16I = 0x8239 # VERSION_3_0 / ARB_trg - RG16UI = 0x823A # VERSION_3_0 / ARB_trg - RG32I = 0x823B # VERSION_3_0 / ARB_trg - RG32UI = 0x823C # VERSION_3_0 / ARB_trg - -# ARB_future_use: 0x823D-0x823F - -############################################################################### - -# ARB: 0x8240-0x82AF (range released by Microsoft on 2002/9/16) - -ARB_cl_event enum: - SYNC_CL_EVENT_ARB = 0x8240 - SYNC_CL_EVENT_COMPLETE_ARB = 0x8241 - -ARB_debug_output enum: - DEBUG_OUTPUT_SYNCHRONOUS_ARB = 0x8242 - DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB = 0x8243 - DEBUG_CALLBACK_FUNCTION_ARB = 0x8244 - DEBUG_CALLBACK_USER_PARAM_ARB = 0x8245 - DEBUG_SOURCE_API_ARB = 0x8246 - DEBUG_SOURCE_WINDOW_SYSTEM_ARB = 0x8247 - DEBUG_SOURCE_SHADER_COMPILER_ARB = 0x8248 - DEBUG_SOURCE_THIRD_PARTY_ARB = 0x8249 - DEBUG_SOURCE_APPLICATION_ARB = 0x824A - DEBUG_SOURCE_OTHER_ARB = 0x824B - DEBUG_TYPE_ERROR_ARB = 0x824C - DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB = 0x824D - DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB = 0x824E - DEBUG_TYPE_PORTABILITY_ARB = 0x824F - DEBUG_TYPE_PERFORMANCE_ARB = 0x8250 - DEBUG_TYPE_OTHER_ARB = 0x8251 - -ARB_robustness enum: - LOSE_CONTEXT_ON_RESET_ARB = 0x8252 - GUILTY_CONTEXT_RESET_ARB = 0x8253 - INNOCENT_CONTEXT_RESET_ARB = 0x8254 - UNKNOWN_CONTEXT_RESET_ARB = 0x8255 - RESET_NOTIFICATION_STRATEGY_ARB = 0x8256 - -ARB_get_program_binary enum: (additional; see below) - PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257 - -ARB_separate_shader_objects enum: - PROGRAM_SEPARABLE = 0x8258 - ACTIVE_PROGRAM = 0x8259 - PROGRAM_PIPELINE_BINDING = 0x825A - -ARB_viewport_array enum: - MAX_VIEWPORTS = 0x825B - VIEWPORT_SUBPIXEL_BITS = 0x825C - VIEWPORT_BOUNDS_RANGE = 0x825D - LAYER_PROVOKING_VERTEX = 0x825E - VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F - UNDEFINED_VERTEX = 0x8260 - -ARB_robustness enum: (additional; see above) - NO_RESET_NOTIFICATION_ARB = 0x8261 - -# ARB_future_use: 0x8262-0x82AF - -############################################################################### - -# ADD: 0x82B0-0x830F - -############################################################################### - -SGIX_depth_pass_instrument enum: 0x8310-0x8312 - DEPTH_PASS_INSTRUMENT_SGIX = 0x8310 - DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX = 0x8311 - DEPTH_PASS_INSTRUMENT_MAX_SGIX = 0x8312 - -############################################################################### - -SGIX_fragments_instrument enum: 0x8313-0x8315 - FRAGMENTS_INSTRUMENT_SGIX = 0x8313 # 1 I - FRAGMENTS_INSTRUMENT_COUNTERS_SGIX = 0x8314 # 1 I - FRAGMENTS_INSTRUMENT_MAX_SGIX = 0x8315 # 1 I - -############################################################################### - -SGIX_convolution_accuracy enum: - CONVOLUTION_HINT_SGIX = 0x8316 # 1 I - -############################################################################### - -# SGIX_color_matrix_accuracy: 0x8317 - -############################################################################### - -# 0x8318-0x8319 -SGIX_ycrcba enum: - YCRCB_SGIX = 0x8318 - YCRCBA_SGIX = 0x8319 - -############################################################################### - -# 0x831A-0x831F -SGIX_slim enum: - UNPACK_COMPRESSED_SIZE_SGIX = 0x831A - PACK_MAX_COMPRESSED_SIZE_SGIX = 0x831B - PACK_COMPRESSED_SIZE_SGIX = 0x831C - SLIM8U_SGIX = 0x831D - SLIM10U_SGIX = 0x831E - SLIM12S_SGIX = 0x831F - -############################################################################### - -SGIX_blend_alpha_minmax enum: - ALPHA_MIN_SGIX = 0x8320 - ALPHA_MAX_SGIX = 0x8321 - -############################################################################### - -SGIX_scalebias_hint enum: - SCALEBIAS_HINT_SGIX = 0x8322 - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_fog_layers: 0x8323-0x8328 -# FOG_TYPE_SGIX = 0x8323 # 1 I -# UNIFORM_SGIX = 0x8324 -# LAYERED_SGIX = 0x8325 -# FOG_GROUND_PLANE_SGIX = 0x8326 # 4 F -# FOG_LAYERS_POINTS_SGIX = 0x8327 # 1 I -# MAX_FOG_LAYERS_POINTS_SGIX = 0x8328 # 1 I - -############################################################################### - -SGIX_async enum: - ASYNC_MARKER_SGIX = 0x8329 - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_texture_phase: 0x832A -# PHASE_SGIX = 0x832A - -############################################################################### - -# SGIX_pixel_texture (additional; see above): 0x832B - -############################################################################### - -SGIX_async_histogram enum: - ASYNC_HISTOGRAM_SGIX = 0x832C - MAX_ASYNC_HISTOGRAM_SGIX = 0x832D - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_texture_mipmap_anisotropic: 0x832E-0x832F -# TEXTURE_MIPMAP_ANISOTROPY_SGIX = 0x832E -# MAX_MIPMAP_ANISOTROPY_SGIX = 0x832F # 1 I - -############################################################################### - -EXT_pixel_transform enum: - PIXEL_TRANSFORM_2D_EXT = 0x8330 - PIXEL_MAG_FILTER_EXT = 0x8331 - PIXEL_MIN_FILTER_EXT = 0x8332 - PIXEL_CUBIC_WEIGHT_EXT = 0x8333 - CUBIC_EXT = 0x8334 - AVERAGE_EXT = 0x8335 - PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8336 - MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8337 - PIXEL_TRANSFORM_2D_MATRIX_EXT = 0x8338 - -# SUN_future_use: 0x8339-0x833F - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_cube_map: 0x8340-0x8348 -# ENV_MAP_SGIX = 0x8340 -# CUBE_MAP_SGIX = 0x8341 -# CUBE_MAP_ZP_SGIX = 0x8342 -# CUBE_MAP_ZN_SGIX = 0x8343 -# CUBE_MAP_XN_SGIX = 0x8344 -# CUBE_MAP_XP_SGIX = 0x8345 -# CUBE_MAP_YN_SGIX = 0x8346 -# CUBE_MAP_YP_SGIX = 0x8347 -# CUBE_MAP_BINDING_SGIX = 0x8348 # 1 I - -############################################################################### - -# Unfortunately, there was a collision promoting to EXT from SGIX. -# Use fog_coord's value of 0x8452 instead of the previously -# assigned FRAGMENT_DEPTH_EXT -> 0x834B. -# EXT_light_texture: 0x8349-0x8352 -EXT_light_texture enum: 0x8349-0x8352 - FRAGMENT_MATERIAL_EXT = 0x8349 - FRAGMENT_NORMAL_EXT = 0x834A - FRAGMENT_COLOR_EXT = 0x834C - ATTENUATION_EXT = 0x834D - SHADOW_ATTENUATION_EXT = 0x834E - TEXTURE_APPLICATION_MODE_EXT = 0x834F # 1 I - TEXTURE_LIGHT_EXT = 0x8350 # 1 I - TEXTURE_MATERIAL_FACE_EXT = 0x8351 # 1 I - TEXTURE_MATERIAL_PARAMETER_EXT = 0x8352 # 1 I - use EXT_fog_coord FRAGMENT_DEPTH_EXT - -############################################################################### - -SGIS_pixel_texture enum: - PIXEL_TEXTURE_SGIS = 0x8353 # 1 I - PIXEL_FRAGMENT_RGB_SOURCE_SGIS = 0x8354 # 1 I - PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS = 0x8355 # 1 I - PIXEL_GROUP_COLOR_SGIS = 0x8356 # 1 I - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_pixel_texture_bits: 0x8357-0x8359 -# COLOR_TO_TEXTURE_COORD_SGIX = 0x8357 -# COLOR_BIT_PATTERN_SGIX = 0x8358 -# COLOR_VALUE_SGIX = 0x8359 - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_pixel_texture_lod: 0x835A -# PIXEL_TEX_GEN_LAMBDA_SOURCE_SGIX = 0x835A - -############################################################################### - -SGIX_line_quality_hint enum: - LINE_QUALITY_HINT_SGIX = 0x835B - -############################################################################### - -SGIX_async_pixel enum: - ASYNC_TEX_IMAGE_SGIX = 0x835C - ASYNC_DRAW_PIXELS_SGIX = 0x835D - ASYNC_READ_PIXELS_SGIX = 0x835E - MAX_ASYNC_TEX_IMAGE_SGIX = 0x835F - MAX_ASYNC_DRAW_PIXELS_SGIX = 0x8360 - MAX_ASYNC_READ_PIXELS_SGIX = 0x8361 - -############################################################################### - -# EXT_packed_pixels (additional; see above): 0x8362-0x8368 - -############################################################################### - -SGIX_texture_coordinate_clamp enum: - TEXTURE_MAX_CLAMP_S_SGIX = 0x8369 - TEXTURE_MAX_CLAMP_T_SGIX = 0x836A - TEXTURE_MAX_CLAMP_R_SGIX = 0x836B - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_fog_texture: 0x836C-0x836E -# FRAGMENT_FOG_SGIX = 0x836C -# TEXTURE_FOG_SGIX = 0x836D # 1 I -# FOG_PATCHY_FACTOR_SGIX = 0x836E - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_fog_factor_to_alpha: 0x836F - FOG_FACTOR_TO_ALPHA_SGIX = 0x836F - -############################################################################### - -# HP: 0x8370-0x837F -# NOTE: IBM is using values in this range, because of a bobble -# when Pat Brown left at the same time as I assigned them the -# next range and their registry became inconsistent. Unknown -# whether HP has any conflicts as they have never reported using -# any values in this range. - -VERSION_1_4 enum: (Promoted for OpenGL 1.4) - MIRRORED_REPEAT = 0x8370 - -ARB_texture_mirrored_repeat enum: - MIRRORED_REPEAT_ARB = 0x8370 - -IBM_texture_mirrored_repeat enum: - MIRRORED_REPEAT_IBM = 0x8370 - -# Aliases ARB_texture_mirrored_repeat enum above -OES_texture_mirrored_repeat enum: (OpenGL ES only) - MIRRORED_REPEAT_OES = 0x8370 - -############################################################################### - -# IBM: 0x8380-0x839F - -############################################################################### - -# S3: 0x83A0-0x83BF - -S3_s3tc enum: - RGB_S3TC = 0x83A0 - RGB4_S3TC = 0x83A1 - RGBA_S3TC = 0x83A2 - RGBA4_S3TC = 0x83A3 - -# S3_future_use: 0x83A4-0x83BF - -############################################################################### - -# SGI: 0x83C0-0x83EF (most of this could be reclaimed) - -# Obsolete extension, never to be put in enumext.spec -# SGIS_multitexture: 0x83C0-0x83CA -# SELECTED_TEXTURE_SGIS = 0x83C0 # 1 I -# SELECTED_TEXTURE_COORD_SET_SGIS = 0x83C1 # 1 I -# SELECTED_TEXTURE_TRANSFORM_SGIS = 0x83C2 # 1 I -# MAX_TEXTURES_SGIS = 0x83C3 # 1 I -# MAX_TEXTURE_COORD_SETS_SGIS = 0x83C4 # 1 I -# TEXTURE_COORD_SET_INTERLEAVE_FACTOR_SGIS = 0x83C5 # 1 I -# TEXTURE_ENV_COORD_SET_SGIS = 0x83C6 -# TEXTURE0_SGIS = 0x83C7 -# TEXTURE1_SGIS = 0x83C8 -# TEXTURE2_SGIS = 0x83C9 -# TEXTURE3_SGIS = 0x83CA -# -# SGIS_multitexture_future_use: 0x83CB-0x83E5 - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_bali_g_instruments: 0x83E6-0x83E9 -# BALI_NUM_TRIS_CULLED_INSTRUMENT_SGIX = 0x83E6 # 1 I -# BALI_NUM_PRIMS_CLIPPED_INSTRUMENT_SGIX = 0x83E7 # 1 I -# BALI_NUM_PRIMS_REJECT_INSTRUMENT_SGIX = 0x83E8 # 1 I -# BALI_NUM_PRIMS_CLIP_RESULT_INSTRUMENT_SGIX = 0x83E9 # 1 I - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_bali_r_instruments: 0x83EA-0x83EC -# BALI_FRAGMENTS_GENERATED_INSTRUMENT_SGIX = 0x83EA # 1 I -# BALI_DEPTH_PASS_INSTRUMENT_SGIX = 0x83EB # 1 I -# BALI_R_CHIP_COUNT_SGIX = 0x83EC # 1 I - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_occlusion_instrument: 0x83ED -# OCCLUSION_INSTRUMENT_SGIX = 0x83ED # 1 I - -############################################################################### - -SGIX_vertex_preclip enum: - VERTEX_PRECLIP_SGIX = 0x83EE - VERTEX_PRECLIP_HINT_SGIX = 0x83EF - -############################################################################### - -# INTEL: 0x83F0-0x83FF -# Note that this block was reclaimed from NTP, who never shipped it, -# and reassigned to Intel. - -EXT_texture_compression_s3tc enum: - COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0 - COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1 - COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2 - COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3 - -INTEL_parallel_arrays enum: - PARALLEL_ARRAYS_INTEL = 0x83F4 - VERTEX_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F5 - NORMAL_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F6 - COLOR_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F7 - TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F8 - -# INTEL_future_use: 0x83F9-0x83FF - -############################################################################### - -SGIX_fragment_lighting enum: - FRAGMENT_LIGHTING_SGIX = 0x8400 # 1 I - FRAGMENT_COLOR_MATERIAL_SGIX = 0x8401 # 1 I - FRAGMENT_COLOR_MATERIAL_FACE_SGIX = 0x8402 # 1 I - FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX = 0x8403 # 1 I - MAX_FRAGMENT_LIGHTS_SGIX = 0x8404 # 1 I - MAX_ACTIVE_LIGHTS_SGIX = 0x8405 # 1 I - CURRENT_RASTER_NORMAL_SGIX = 0x8406 # 1 I - LIGHT_ENV_MODE_SGIX = 0x8407 # 1 I - FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX = 0x8408 # 1 I - FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX = 0x8409 # 1 I - FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX = 0x840A # 4 F - FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX = 0x840B # 1 I - FRAGMENT_LIGHT0_SGIX = 0x840C # 1 I - FRAGMENT_LIGHT1_SGIX = 0x840D - FRAGMENT_LIGHT2_SGIX = 0x840E - FRAGMENT_LIGHT3_SGIX = 0x840F - FRAGMENT_LIGHT4_SGIX = 0x8410 - FRAGMENT_LIGHT5_SGIX = 0x8411 - FRAGMENT_LIGHT6_SGIX = 0x8412 - FRAGMENT_LIGHT7_SGIX = 0x8413 - -# SGIX_fragment_lighting_future_use: 0x8414-0x842B - -############################################################################### - -SGIX_resample enum: - PACK_RESAMPLE_SGIX = 0x842C - UNPACK_RESAMPLE_SGIX = 0x842D - RESAMPLE_REPLICATE_SGIX = 0x842E - RESAMPLE_ZERO_FILL_SGIX = 0x842F - RESAMPLE_DECIMATE_SGIX = 0x8430 - -# SGIX_resample_future_use: 0x8431-0x8435 - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_fragment_lighting_space: 0x8436-0x8449 -# EYE_SPACE_SGIX = 0x8436 -# TANGENT_SPACE_SGIX = 0x8437 -# OBJECT_SPACE_SGIX = 0x8438 -# TANGENT_ARRAY_SGIX = 0x8439 -# BINORMAL_ARRAY_SGIX = 0x843A -# CURRENT_TANGENT_SGIX = 0x843B # 3 F -# CURRENT_BINORMAL_SGIX = 0x843C # 3 F -# FRAGMENT_LIGHT_SPACE_SGIX = 0x843D # 1 I -# TANGENT_ARRAY_TYPE_SGIX = 0x843E -# TANGENT_ARRAY_STRIDE_SGIX = 0x843F -# TANGENT_ARRAY_COUNT_SGIX = 0x8440 -# BINORMAL_ARRAY_TYPE_SGIX = 0x8441 -# BINORMAL_ARRAY_STRIDE_SGIX = 0x8442 -# BINORMAL_ARRAY_COUNT_SGIX = 0x8443 -# TANGENT_ARRAY_POINTER_SGIX = 0x8444 -# BINORMAL_ARRAY_POINTER_SGIX = 0x8445 -# MAP1_TANGENT_SGIX = 0x8446 -# MAP2_TANGENT_SGIX = 0x8447 -# MAP1_BINORMAL_SGIX = 0x8448 -# MAP2_BINORMAL_SGIX = 0x8449 - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_bali_timer_instruments: 0x844A-0x844C -# BALI_GEOM_TIMER_INSTRUMENT_SGIX = 0x844A # 1 I -# BALI_RASTER_TIMER_INSTRUMENT_SGIX = 0x844B # 1 I -# BALI_INSTRUMENT_TIME_UNIT_SGIX = 0x844C # 1 I - -############################################################################### - -# SGIX_clipmap (additional; see above): 0x844D-0x844F - -############################################################################### - -# SGI (actually brokered for Id Software): 0x8450-0x845F - -VERSION_1_5 enum: (Consistent naming scheme for OpenGL 1.5) - FOG_COORD_SRC = 0x8450 # alias GL_FOG_COORDINATE_SOURCE - FOG_COORD = 0x8451 # alias GL_FOG_COORDINATE - CURRENT_FOG_COORD = 0x8453 # alias GL_CURRENT_FOG_COORDINATE - FOG_COORD_ARRAY_TYPE = 0x8454 # alias GL_FOG_COORDINATE_ARRAY_TYPE - FOG_COORD_ARRAY_STRIDE = 0x8455 # alias GL_FOG_COORDINATE_ARRAY_STRIDE - FOG_COORD_ARRAY_POINTER = 0x8456 # alias GL_FOG_COORDINATE_ARRAY_POINTER - FOG_COORD_ARRAY = 0x8457 # alias GL_FOG_COORDINATE_ARRAY - -VERSION_1_4 enum: (Promoted for OpenGL 1.4) - FOG_COORDINATE_SOURCE = 0x8450 # 1 I - FOG_COORDINATE = 0x8451 - FRAGMENT_DEPTH = 0x8452 - CURRENT_FOG_COORDINATE = 0x8453 # 1 F - FOG_COORDINATE_ARRAY_TYPE = 0x8454 # 1 I - FOG_COORDINATE_ARRAY_STRIDE = 0x8455 # 1 I - FOG_COORDINATE_ARRAY_POINTER = 0x8456 - FOG_COORDINATE_ARRAY = 0x8457 # 1 I - -EXT_fog_coord enum: - FOG_COORDINATE_SOURCE_EXT = 0x8450 # 1 I - FOG_COORDINATE_EXT = 0x8451 - FRAGMENT_DEPTH_EXT = 0x8452 - CURRENT_FOG_COORDINATE_EXT = 0x8453 # 1 F - FOG_COORDINATE_ARRAY_TYPE_EXT = 0x8454 # 1 I - FOG_COORDINATE_ARRAY_STRIDE_EXT = 0x8455 # 1 I - FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456 - FOG_COORDINATE_ARRAY_EXT = 0x8457 # 1 I - -VERSION_1_4 enum: (Promoted for OpenGL 1.4) - COLOR_SUM = 0x8458 # 1 I - CURRENT_SECONDARY_COLOR = 0x8459 # 3 F - SECONDARY_COLOR_ARRAY_SIZE = 0x845A # 1 I - SECONDARY_COLOR_ARRAY_TYPE = 0x845B # 1 I - SECONDARY_COLOR_ARRAY_STRIDE = 0x845C # 1 I - SECONDARY_COLOR_ARRAY_POINTER = 0x845D - SECONDARY_COLOR_ARRAY = 0x845E # 1 I - -EXT_secondary_color enum: - COLOR_SUM_EXT = 0x8458 # 1 I - CURRENT_SECONDARY_COLOR_EXT = 0x8459 # 3 F - SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845A # 1 I - SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B # 1 I - SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C # 1 I - SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D - SECONDARY_COLOR_ARRAY_EXT = 0x845E # 1 I - -ARB_vertex_program enum: - COLOR_SUM_ARB = 0x8458 # 1 I # ARB_vertex_program - -VERSION_2_1 enum: - CURRENT_RASTER_SECONDARY_COLOR = 0x845F - -############################################################################### - -# Incomplete extension, not in enumext.spec -SGIX_icc_texture enum: -# RGB_ICC_SGIX = 0x8460 -# RGBA_ICC_SGIX = 0x8461 -# ALPHA_ICC_SGIX = 0x8462 -# LUMINANCE_ICC_SGIX = 0x8463 -# INTENSITY_ICC_SGIX = 0x8464 -# LUMINANCE_ALPHA_ICC_SGIX = 0x8465 -# R5_G6_B5_ICC_SGIX = 0x8466 -# R5_G6_B5_A8_ICC_SGIX = 0x8467 -# ALPHA16_ICC_SGIX = 0x8468 -# LUMINANCE16_ICC_SGIX = 0x8469 -# INTENSITY16_ICC_SGIX = 0x846A -# LUMINANCE16_ALPHA8_ICC_SGIX = 0x846B - -############################################################################### - -# SGI_future_use: 0x846C - -############################################################################### - -# SMOOTH_* enums are new names for pre-1.2 enums. -VERSION_1_2 enum: - SMOOTH_POINT_SIZE_RANGE = 0x0B12 # 2 F - SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13 # 1 F - SMOOTH_LINE_WIDTH_RANGE = 0x0B22 # 2 F - SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23 # 1 F - ALIASED_POINT_SIZE_RANGE = 0x846D # 2 F - ALIASED_LINE_WIDTH_RANGE = 0x846E # 2 F - -############################################################################### - -# SGI_future_use: 0x846F - -############################################################################### - -# ATI Technologies (vendor multitexture, spec not yet released): 0x8470-0x848F - -############################################################################### - -# REND (Rendition): 0x8490-0x849F - -REND_screen_coordinates enum: - SCREEN_COORDINATES_REND = 0x8490 - INVERTED_SCREEN_W_REND = 0x8491 - -############################################################################### - -# ATI Technologies (vendor multitexture, spec not yet released): 0x84A0-84BF - -############################################################################### - -# OpenGL ARB: 0x84C0-0x84EF - -VERSION_1_3 enum: (Promoted for OpenGL 1.3) - TEXTURE0 = 0x84C0 - TEXTURE1 = 0x84C1 - TEXTURE2 = 0x84C2 - TEXTURE3 = 0x84C3 - TEXTURE4 = 0x84C4 - TEXTURE5 = 0x84C5 - TEXTURE6 = 0x84C6 - TEXTURE7 = 0x84C7 - TEXTURE8 = 0x84C8 - TEXTURE9 = 0x84C9 - TEXTURE10 = 0x84CA - TEXTURE11 = 0x84CB - TEXTURE12 = 0x84CC - TEXTURE13 = 0x84CD - TEXTURE14 = 0x84CE - TEXTURE15 = 0x84CF - TEXTURE16 = 0x84D0 - TEXTURE17 = 0x84D1 - TEXTURE18 = 0x84D2 - TEXTURE19 = 0x84D3 - TEXTURE20 = 0x84D4 - TEXTURE21 = 0x84D5 - TEXTURE22 = 0x84D6 - TEXTURE23 = 0x84D7 - TEXTURE24 = 0x84D8 - TEXTURE25 = 0x84D9 - TEXTURE26 = 0x84DA - TEXTURE27 = 0x84DB - TEXTURE28 = 0x84DC - TEXTURE29 = 0x84DD - TEXTURE30 = 0x84DE - TEXTURE31 = 0x84DF - ACTIVE_TEXTURE = 0x84E0 # 1 I - CLIENT_ACTIVE_TEXTURE = 0x84E1 # 1 I - MAX_TEXTURE_UNITS = 0x84E2 # 1 I - -ARB_multitexture enum: - TEXTURE0_ARB = 0x84C0 - TEXTURE1_ARB = 0x84C1 - TEXTURE2_ARB = 0x84C2 - TEXTURE3_ARB = 0x84C3 - TEXTURE4_ARB = 0x84C4 - TEXTURE5_ARB = 0x84C5 - TEXTURE6_ARB = 0x84C6 - TEXTURE7_ARB = 0x84C7 - TEXTURE8_ARB = 0x84C8 - TEXTURE9_ARB = 0x84C9 - TEXTURE10_ARB = 0x84CA - TEXTURE11_ARB = 0x84CB - TEXTURE12_ARB = 0x84CC - TEXTURE13_ARB = 0x84CD - TEXTURE14_ARB = 0x84CE - TEXTURE15_ARB = 0x84CF - TEXTURE16_ARB = 0x84D0 - TEXTURE17_ARB = 0x84D1 - TEXTURE18_ARB = 0x84D2 - TEXTURE19_ARB = 0x84D3 - TEXTURE20_ARB = 0x84D4 - TEXTURE21_ARB = 0x84D5 - TEXTURE22_ARB = 0x84D6 - TEXTURE23_ARB = 0x84D7 - TEXTURE24_ARB = 0x84D8 - TEXTURE25_ARB = 0x84D9 - TEXTURE26_ARB = 0x84DA - TEXTURE27_ARB = 0x84DB - TEXTURE28_ARB = 0x84DC - TEXTURE29_ARB = 0x84DD - TEXTURE30_ARB = 0x84DE - TEXTURE31_ARB = 0x84DF - ACTIVE_TEXTURE_ARB = 0x84E0 # 1 I - CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1 # 1 I - MAX_TEXTURE_UNITS_ARB = 0x84E2 # 1 I - -# These are really core ES 1.1 enums, but haven't included -# ES core enums in enum.spec yet -OES_texture_env_crossbar enum: (OpenGL ES only) - use VERSION_1_3 TEXTURE0 - use VERSION_1_3 TEXTURE1 - use VERSION_1_3 TEXTURE2 - use VERSION_1_3 TEXTURE3 - use VERSION_1_3 TEXTURE4 - use VERSION_1_3 TEXTURE5 - use VERSION_1_3 TEXTURE6 - use VERSION_1_3 TEXTURE7 - use VERSION_1_3 TEXTURE8 - use VERSION_1_3 TEXTURE9 - use VERSION_1_3 TEXTURE10 - use VERSION_1_3 TEXTURE11 - use VERSION_1_3 TEXTURE12 - use VERSION_1_3 TEXTURE13 - use VERSION_1_3 TEXTURE14 - use VERSION_1_3 TEXTURE15 - use VERSION_1_3 TEXTURE16 - use VERSION_1_3 TEXTURE17 - use VERSION_1_3 TEXTURE18 - use VERSION_1_3 TEXTURE19 - use VERSION_1_3 TEXTURE20 - use VERSION_1_3 TEXTURE21 - use VERSION_1_3 TEXTURE22 - use VERSION_1_3 TEXTURE23 - use VERSION_1_3 TEXTURE24 - use VERSION_1_3 TEXTURE25 - use VERSION_1_3 TEXTURE26 - use VERSION_1_3 TEXTURE27 - use VERSION_1_3 TEXTURE28 - use VERSION_1_3 TEXTURE29 - use VERSION_1_3 TEXTURE30 - use VERSION_1_3 TEXTURE31 - -############################################################################### - -VERSION_1_3 enum: (Promoted for OpenGL 1.3) - TRANSPOSE_MODELVIEW_MATRIX = 0x84E3 # 16 F - TRANSPOSE_PROJECTION_MATRIX = 0x84E4 # 16 F - TRANSPOSE_TEXTURE_MATRIX = 0x84E5 # 16 F - TRANSPOSE_COLOR_MATRIX = 0x84E6 # 16 F - -ARB_transpose_matrix enum: - TRANSPOSE_MODELVIEW_MATRIX_ARB = 0x84E3 # 16 F - TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84E4 # 16 F - TRANSPOSE_TEXTURE_MATRIX_ARB = 0x84E5 # 16 F - TRANSPOSE_COLOR_MATRIX_ARB = 0x84E6 # 16 F - -VERSION_1_3 enum: (Promoted for OpenGL 1.3) - SUBTRACT = 0x84E7 - -ARB_texture_env_combine enum: - SUBTRACT_ARB = 0x84E7 - -VERSION_3_0 enum: - use ARB_framebuffer_object MAX_RENDERBUFFER_SIZE - -ARB_framebuffer_object enum: (note: no ARB suffixes) - MAX_RENDERBUFFER_SIZE = 0x84E8 # VERSION_3_0 / ARB_fbo - -EXT_framebuffer_object enum: (additional; see below): - MAX_RENDERBUFFER_SIZE_EXT = 0x84E8 - -# Aliases EXT_framebuffer_object enum above -OES_framebuffer_object enum: (OpenGL ES only; additional; see below) - MAX_RENDERBUFFER_SIZE_OES = 0x84E8 - -VERSION_1_3 enum: (Promoted for OpenGL 1.3) - COMPRESSED_ALPHA = 0x84E9 - COMPRESSED_LUMINANCE = 0x84EA - COMPRESSED_LUMINANCE_ALPHA = 0x84EB - COMPRESSED_INTENSITY = 0x84EC - COMPRESSED_RGB = 0x84ED - COMPRESSED_RGBA = 0x84EE - TEXTURE_COMPRESSION_HINT = 0x84EF - TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0 - TEXTURE_COMPRESSED = 0x86A1 - NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2 - COMPRESSED_TEXTURE_FORMATS = 0x86A3 - -ARB_texture_compression enum: - COMPRESSED_ALPHA_ARB = 0x84E9 - COMPRESSED_LUMINANCE_ARB = 0x84EA - COMPRESSED_LUMINANCE_ALPHA_ARB = 0x84EB - COMPRESSED_INTENSITY_ARB = 0x84EC - COMPRESSED_RGB_ARB = 0x84ED - COMPRESSED_RGBA_ARB = 0x84EE - TEXTURE_COMPRESSION_HINT_ARB = 0x84EF - TEXTURE_COMPRESSED_IMAGE_SIZE_ARB = 0x86A0 - TEXTURE_COMPRESSED_ARB = 0x86A1 - NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A2 - COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A3 - -############################################################################### - -# NVIDIA: 0x84F0-0x855F - -ARB_tessellation_shader enum: - UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0 - UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1 - -NV_fence enum: - ALL_COMPLETED_NV = 0x84F2 - FENCE_STATUS_NV = 0x84F3 - FENCE_CONDITION_NV = 0x84F4 - -VERSION_3_1 enum: - TEXTURE_RECTANGLE = 0x84F5 - TEXTURE_BINDING_RECTANGLE = 0x84F6 - PROXY_TEXTURE_RECTANGLE = 0x84F7 - MAX_RECTANGLE_TEXTURE_SIZE = 0x84F8 - -ARB_texture_rectangle enum: - TEXTURE_RECTANGLE_ARB = 0x84F5 - TEXTURE_BINDING_RECTANGLE_ARB = 0x84F6 - PROXY_TEXTURE_RECTANGLE_ARB = 0x84F7 - MAX_RECTANGLE_TEXTURE_SIZE_ARB = 0x84F8 - -NV_texture_rectangle enum: - TEXTURE_RECTANGLE_NV = 0x84F5 - TEXTURE_BINDING_RECTANGLE_NV = 0x84F6 - PROXY_TEXTURE_RECTANGLE_NV = 0x84F7 - MAX_RECTANGLE_TEXTURE_SIZE_NV = 0x84F8 - -VERSION_3_0 enum: - use ARB_framebuffer_object DEPTH_STENCIL - use ARB_framebuffer_object UNSIGNED_INT_24_8 - -ARB_framebuffer_object enum: (note: no ARB suffixes) - DEPTH_STENCIL = 0x84F9 # VERSION_3_0 / ARB_fbo - UNSIGNED_INT_24_8 = 0x84FA # VERSION_3_0 / ARB_fbo - -EXT_packed_depth_stencil enum: - DEPTH_STENCIL_EXT = 0x84F9 - UNSIGNED_INT_24_8_EXT = 0x84FA - -NV_packed_depth_stencil enum: - DEPTH_STENCIL_NV = 0x84F9 - UNSIGNED_INT_24_8_NV = 0x84FA - -# Aliases EXT_packed_depth_stencil enums above -OES_packed_depth_stencil enum: (OpenGL ES only) - DEPTH_STENCIL_OES = 0x84F9 - UNSIGNED_INT_24_8_OES = 0x84FA - -# NV_future_use: 0x84FB-0x84FC - -VERSION_1_4 enum: (Promoted for OpenGL 1.4) - MAX_TEXTURE_LOD_BIAS = 0x84FD - -EXT_texture_lod_bias enum: - MAX_TEXTURE_LOD_BIAS_EXT = 0x84FD - -EXT_texture_filter_anisotropic enum: - TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE - MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF - -VERSION_1_4 enum: (Promoted for OpenGL 1.4) - TEXTURE_FILTER_CONTROL = 0x8500 - TEXTURE_LOD_BIAS = 0x8501 - -EXT_texture_lod_bias enum: - TEXTURE_FILTER_CONTROL_EXT = 0x8500 - TEXTURE_LOD_BIAS_EXT = 0x8501 - -EXT_vertex_weighting enum: - MODELVIEW1_STACK_DEPTH_EXT = 0x8502 - -# NV_texture_env_combine4 (additional; see below): 0x8503 - -NV_light_max_exponent enum: - MAX_SHININESS_NV = 0x8504 - MAX_SPOT_EXPONENT_NV = 0x8505 - -EXT_vertex_weighting enum: - MODELVIEW_MATRIX1_EXT = 0x8506 - -VERSION_1_4 enum: (Promoted for OpenGL 1.4) - INCR_WRAP = 0x8507 - DECR_WRAP = 0x8508 - -EXT_stencil_wrap enum: - INCR_WRAP_EXT = 0x8507 - DECR_WRAP_EXT = 0x8508 - -# Aliases EXT_stencil_wrap enums above -OES_stencil_wrap enum: (OpenGL ES only) - INCR_WRAP_OES = 0x8507 - DECR_WRAP_OES = 0x8508 - -EXT_vertex_weighting enum: - VERTEX_WEIGHTING_EXT = 0x8509 - MODELVIEW1_EXT = 0x850A - CURRENT_VERTEX_WEIGHT_EXT = 0x850B - VERTEX_WEIGHT_ARRAY_EXT = 0x850C - VERTEX_WEIGHT_ARRAY_SIZE_EXT = 0x850D - VERTEX_WEIGHT_ARRAY_TYPE_EXT = 0x850E - VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 0x850F - VERTEX_WEIGHT_ARRAY_POINTER_EXT = 0x8510 - -VERSION_1_3 enum: (Promoted for OpenGL 1.3) - NORMAL_MAP = 0x8511 - REFLECTION_MAP = 0x8512 - TEXTURE_CUBE_MAP = 0x8513 - TEXTURE_BINDING_CUBE_MAP = 0x8514 - TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515 - TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516 - TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517 - TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518 - TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519 - TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A - PROXY_TEXTURE_CUBE_MAP = 0x851B - MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C - -EXT_texture_cube_map enum: - NORMAL_MAP_EXT = 0x8511 - REFLECTION_MAP_EXT = 0x8512 - TEXTURE_CUBE_MAP_EXT = 0x8513 - TEXTURE_BINDING_CUBE_MAP_EXT = 0x8514 - TEXTURE_CUBE_MAP_POSITIVE_X_EXT = 0x8515 - TEXTURE_CUBE_MAP_NEGATIVE_X_EXT = 0x8516 - TEXTURE_CUBE_MAP_POSITIVE_Y_EXT = 0x8517 - TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT = 0x8518 - TEXTURE_CUBE_MAP_POSITIVE_Z_EXT = 0x8519 - TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT = 0x851A - PROXY_TEXTURE_CUBE_MAP_EXT = 0x851B - MAX_CUBE_MAP_TEXTURE_SIZE_EXT = 0x851C - -NV_texgen_reflection enum: - NORMAL_MAP = 0x8511 - REFLECTION_MAP = 0x8512 - -ARB_texture_cube_map enum: - NORMAL_MAP_ARB = 0x8511 - REFLECTION_MAP_ARB = 0x8512 - TEXTURE_CUBE_MAP_ARB = 0x8513 - TEXTURE_BINDING_CUBE_MAP_ARB = 0x8514 - TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515 - TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516 - TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517 - TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518 - TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519 - TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851A - PROXY_TEXTURE_CUBE_MAP_ARB = 0x851B - MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 0x851C - -# Aliases ARB_texture_cube_map enums above -OES_texture_cube_map enum: (OpenGL ES only; additional; see below) - NORMAL_MAP_OES = 0x8511 - REFLECTION_MAP_OES = 0x8512 - TEXTURE_CUBE_MAP_OES = 0x8513 - TEXTURE_BINDING_CUBE_MAP_OES = 0x8514 - TEXTURE_CUBE_MAP_POSITIVE_X_OES = 0x8515 - TEXTURE_CUBE_MAP_NEGATIVE_X_OES = 0x8516 - TEXTURE_CUBE_MAP_POSITIVE_Y_OES = 0x8517 - TEXTURE_CUBE_MAP_NEGATIVE_Y_OES = 0x8518 - TEXTURE_CUBE_MAP_POSITIVE_Z_OES = 0x8519 - TEXTURE_CUBE_MAP_NEGATIVE_Z_OES = 0x851A - MAX_CUBE_MAP_TEXTURE_SIZE_OES = 0x851C - -NV_vertex_array_range enum: - VERTEX_ARRAY_RANGE_NV = 0x851D - VERTEX_ARRAY_RANGE_LENGTH_NV = 0x851E - VERTEX_ARRAY_RANGE_VALID_NV = 0x851F - MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520 - VERTEX_ARRAY_RANGE_POINTER_NV = 0x8521 - -APPLE_vertex_array_range enum: - VERTEX_ARRAY_RANGE_APPLE = 0x851D - VERTEX_ARRAY_RANGE_LENGTH_APPLE = 0x851E - VERTEX_ARRAY_STORAGE_HINT_APPLE = 0x851F - VERTEX_ARRAY_RANGE_POINTER_APPLE = 0x8521 - -NV_register_combiners enum: - REGISTER_COMBINERS_NV = 0x8522 - VARIABLE_A_NV = 0x8523 - VARIABLE_B_NV = 0x8524 - VARIABLE_C_NV = 0x8525 - VARIABLE_D_NV = 0x8526 - VARIABLE_E_NV = 0x8527 - VARIABLE_F_NV = 0x8528 - VARIABLE_G_NV = 0x8529 - CONSTANT_COLOR0_NV = 0x852A - CONSTANT_COLOR1_NV = 0x852B - PRIMARY_COLOR_NV = 0x852C - SECONDARY_COLOR_NV = 0x852D - SPARE0_NV = 0x852E - SPARE1_NV = 0x852F - DISCARD_NV = 0x8530 - E_TIMES_F_NV = 0x8531 - SPARE0_PLUS_SECONDARY_COLOR_NV = 0x8532 - -# NV_vertex_array_range2: - VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV = 0x8533 - -# NV_multisample_filter_hint: - MULTISAMPLE_FILTER_HINT_NV = 0x8534 - -NV_register_combiners2 enum: - PER_STAGE_CONSTANTS_NV = 0x8535 - -NV_register_combiners enum: (additional; see above): - UNSIGNED_IDENTITY_NV = 0x8536 - UNSIGNED_INVERT_NV = 0x8537 - EXPAND_NORMAL_NV = 0x8538 - EXPAND_NEGATE_NV = 0x8539 - HALF_BIAS_NORMAL_NV = 0x853A - HALF_BIAS_NEGATE_NV = 0x853B - SIGNED_IDENTITY_NV = 0x853C - UNSIGNED_NEGATE_NV = 0x853D - SCALE_BY_TWO_NV = 0x853E - SCALE_BY_FOUR_NV = 0x853F - SCALE_BY_ONE_HALF_NV = 0x8540 - BIAS_BY_NEGATIVE_ONE_HALF_NV = 0x8541 - COMBINER_INPUT_NV = 0x8542 - COMBINER_MAPPING_NV = 0x8543 - COMBINER_COMPONENT_USAGE_NV = 0x8544 - COMBINER_AB_DOT_PRODUCT_NV = 0x8545 - COMBINER_CD_DOT_PRODUCT_NV = 0x8546 - COMBINER_MUX_SUM_NV = 0x8547 - COMBINER_SCALE_NV = 0x8548 - COMBINER_BIAS_NV = 0x8549 - COMBINER_AB_OUTPUT_NV = 0x854A - COMBINER_CD_OUTPUT_NV = 0x854B - COMBINER_SUM_OUTPUT_NV = 0x854C - MAX_GENERAL_COMBINERS_NV = 0x854D - NUM_GENERAL_COMBINERS_NV = 0x854E - COLOR_SUM_CLAMP_NV = 0x854F - COMBINER0_NV = 0x8550 - COMBINER1_NV = 0x8551 - COMBINER2_NV = 0x8552 - COMBINER3_NV = 0x8553 - COMBINER4_NV = 0x8554 - COMBINER5_NV = 0x8555 - COMBINER6_NV = 0x8556 - COMBINER7_NV = 0x8557 - - -NV_primitive_restart enum: - PRIMITIVE_RESTART_NV = 0x8558 - PRIMITIVE_RESTART_INDEX_NV = 0x8559 - -NV_fog_distance enum: - FOG_GEN_MODE_NV = 0x855A - EYE_RADIAL_NV = 0x855B - EYE_PLANE_ABSOLUTE_NV = 0x855C - -NV_texgen_emboss enum: - EMBOSS_LIGHT_NV = 0x855D - EMBOSS_CONSTANT_NV = 0x855E - EMBOSS_MAP_NV = 0x855F - -############################################################################### - -# Intergraph/Intense3D/3Dlabs: 0x8560-0x856F - -INGR_color_clamp enum: - RED_MIN_CLAMP_INGR = 0x8560 - GREEN_MIN_CLAMP_INGR = 0x8561 - BLUE_MIN_CLAMP_INGR = 0x8562 - ALPHA_MIN_CLAMP_INGR = 0x8563 - RED_MAX_CLAMP_INGR = 0x8564 - GREEN_MAX_CLAMP_INGR = 0x8565 - BLUE_MAX_CLAMP_INGR = 0x8566 - ALPHA_MAX_CLAMP_INGR = 0x8567 - -INGR_interlace_read enum: - INTERLACE_READ_INGR = 0x8568 - -# 3Dlabs_future_use: 0x8569-0x856F - -############################################################################### - -# ATI/NVIDIA: 0x8570-0x859F - -VERSION_1_5 enum: (Consistent naming scheme for OpenGL 1.5) - SRC0_RGB = 0x8580 # alias GL_SOURCE0_RGB - SRC1_RGB = 0x8581 # alias GL_SOURCE1_RGB - SRC2_RGB = 0x8582 # alias GL_SOURCE2_RGB - SRC0_ALPHA = 0x8588 # alias GL_SOURCE0_ALPHA - SRC1_ALPHA = 0x8589 # alias GL_SOURCE1_ALPHA - SRC2_ALPHA = 0x858A # alias GL_SOURCE2_ALPHA - -VERSION_1_3 enum: (Promoted for OpenGL 1.3) - COMBINE = 0x8570 - COMBINE_RGB = 0x8571 - COMBINE_ALPHA = 0x8572 - RGB_SCALE = 0x8573 - ADD_SIGNED = 0x8574 - INTERPOLATE = 0x8575 - CONSTANT = 0x8576 - PRIMARY_COLOR = 0x8577 - PREVIOUS = 0x8578 - SOURCE0_RGB = 0x8580 - SOURCE1_RGB = 0x8581 - SOURCE2_RGB = 0x8582 - SOURCE0_ALPHA = 0x8588 - SOURCE1_ALPHA = 0x8589 - SOURCE2_ALPHA = 0x858A - OPERAND0_RGB = 0x8590 - OPERAND1_RGB = 0x8591 - OPERAND2_RGB = 0x8592 - OPERAND0_ALPHA = 0x8598 - OPERAND1_ALPHA = 0x8599 - OPERAND2_ALPHA = 0x859A - -EXT_texture_env_combine enum: - COMBINE_EXT = 0x8570 - COMBINE_RGB_EXT = 0x8571 - COMBINE_ALPHA_EXT = 0x8572 - RGB_SCALE_EXT = 0x8573 - ADD_SIGNED_EXT = 0x8574 - INTERPOLATE_EXT = 0x8575 - CONSTANT_EXT = 0x8576 - PRIMARY_COLOR_EXT = 0x8577 - PREVIOUS_EXT = 0x8578 - SOURCE0_RGB_EXT = 0x8580 - SOURCE1_RGB_EXT = 0x8581 - SOURCE2_RGB_EXT = 0x8582 - SOURCE0_ALPHA_EXT = 0x8588 - SOURCE1_ALPHA_EXT = 0x8589 - SOURCE2_ALPHA_EXT = 0x858A - OPERAND0_RGB_EXT = 0x8590 - OPERAND1_RGB_EXT = 0x8591 - OPERAND2_RGB_EXT = 0x8592 - OPERAND0_ALPHA_EXT = 0x8598 - OPERAND1_ALPHA_EXT = 0x8599 - OPERAND2_ALPHA_EXT = 0x859A - -NV_texture_env_combine4 enum: - COMBINE4_NV = 0x8503 - SOURCE3_RGB_NV = 0x8583 - SOURCE3_ALPHA_NV = 0x858B - OPERAND3_RGB_NV = 0x8593 - OPERAND3_ALPHA_NV = 0x859B - -# "Future use" => "additional combiner input/output enums" only -# ATI/NVIDIA_future_use: 0x8584-0x8587 -# ATI/NVIDIA_future_use: 0x858C-0x858F -# ATI/NVIDIA_future_use: 0x8594-0x8597 -# ATI/NVIDIA_future_use: 0x859C-0x859F - -############################################################################### - -SGIX_subsample enum: - PACK_SUBSAMPLE_RATE_SGIX = 0x85A0 - UNPACK_SUBSAMPLE_RATE_SGIX = 0x85A1 - PIXEL_SUBSAMPLE_4444_SGIX = 0x85A2 - PIXEL_SUBSAMPLE_2424_SGIX = 0x85A3 - PIXEL_SUBSAMPLE_4242_SGIX = 0x85A4 - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIS_color_range: 0x85A5-0x85AD -# EXTENDED_RANGE_SGIS = 0x85A5 -# MIN_RED_SGIS = 0x85A6 -# MAX_RED_SGIS = 0x85A7 -# MIN_GREEN_SGIS = 0x85A8 -# MAX_GREEN_SGIS = 0x85A9 -# MIN_BLUE_SGIS = 0x85AA -# MAX_BLUE_SGIS = 0x85AB -# MIN_ALPHA_SGIS = 0x85AC -# MAX_ALPHA_SGIS = 0x85AD - -############################################################################### - -EXT_texture_perturb_normal enum: - PERTURB_EXT = 0x85AE - TEXTURE_NORMAL_EXT = 0x85AF - -############################################################################### - -# Apple: 0x85B0-0x85BF - -APPLE_specular_vector enum: - LIGHT_MODEL_SPECULAR_VECTOR_APPLE = 0x85B0 - -APPLE_transform_hint enum: - TRANSFORM_HINT_APPLE = 0x85B1 - -APPLE_client_storage enum: - UNPACK_CLIENT_STORAGE_APPLE = 0x85B2 - -# May also be part of APPLE_fence -APPLE_object_purgeable enum: (additional; see below) - BUFFER_OBJECT_APPLE = 0x85B3 - -APPLE_vertex_array_range enum: (additional; see above): - STORAGE_CLIENT_APPLE = 0x85B4 - -VERSION_3_0 enum: - use ARB_vertex_array_object VERTEX_ARRAY_BINDING - -ARB_vertex_array_object enum: (note: no ARB suffixes) - VERTEX_ARRAY_BINDING = 0x85B5 # VERSION_3_0 / ARB_vao - -APPLE_vertex_array_object enum: - VERTEX_ARRAY_BINDING_APPLE = 0x85B5 - -# APPLE_future_use: 0x85B6 -## From Jeremy 2006/10/18 (Khronos bug 632) - unknown extension name -# TEXTURE_MINIMIZE_STORAGE_APPLE = 0x85B6 - -APPLE_texture_range enum: (additional; see below) - TEXTURE_RANGE_LENGTH_APPLE = 0x85B7 - TEXTURE_RANGE_POINTER_APPLE = 0x85B8 - -APPLE_ycbcr_422 enum: - YCBCR_422_APPLE = 0x85B9 - UNSIGNED_SHORT_8_8_APPLE = 0x85BA - UNSIGNED_SHORT_8_8_REV_APPLE = 0x85BB - -MESA_ycbcr_texture enum: (additional; see below) - UNSIGNED_SHORT_8_8_MESA = 0x85BA - UNSIGNED_SHORT_8_8_REV_MESA = 0x85BB - -APPLE_texture_range enum: - TEXTURE_STORAGE_HINT_APPLE = 0x85BC - STORAGE_PRIVATE_APPLE = 0x85BD - -APPLE_vertex_array_range enum: (additional; see above): - STORAGE_CACHED_APPLE = 0x85BE - STORAGE_SHARED_APPLE = 0x85BF - -APPLE_texture_range enum: - use APPLE_vertex_array_range STORAGE_CACHED_APPLE - use APPLE_vertex_array_range STORAGE_SHARED_APPLE - -############################################################################### - -# Sun: 0x85C0-0x85CF - -SUNX_general_triangle_list enum: (additional; see above) - REPLACEMENT_CODE_ARRAY_SUN = 0x85C0 - REPLACEMENT_CODE_ARRAY_TYPE_SUN = 0x85C1 - REPLACEMENT_CODE_ARRAY_STRIDE_SUN = 0x85C2 - REPLACEMENT_CODE_ARRAY_POINTER_SUN = 0x85C3 - R1UI_V3F_SUN = 0x85C4 - R1UI_C4UB_V3F_SUN = 0x85C5 - R1UI_C3F_V3F_SUN = 0x85C6 - R1UI_N3F_V3F_SUN = 0x85C7 - R1UI_C4F_N3F_V3F_SUN = 0x85C8 - R1UI_T2F_V3F_SUN = 0x85C9 - R1UI_T2F_N3F_V3F_SUN = 0x85CA - R1UI_T2F_C4F_N3F_V3F_SUN = 0x85CB - -SUN_slice_accum enum: - SLICE_ACCUM_SUN = 0x85CC - -# SUN_future_use: 0x85CD-0x85CF - -############################################################################### - -# Unknown extension name, not in enumext.spec -# 3Dlabs/Autodesk: 0x85D0-0x85DF -# FACET_NORMAL_AUTODESK = 0x85D0 -# FACET_NORMAL_ARRAY_AUTODESK = 0x85D1 - -############################################################################### - -# Incomplete extension, not in enumext.spec -# SGIX_texture_range: 0x85E0-0x85FB -# RGB_SIGNED_SGIX = 0x85E0 -# RGBA_SIGNED_SGIX = 0x85E1 -# ALPHA_SIGNED_SGIX = 0x85E2 -# LUMINANCE_SIGNED_SGIX = 0x85E3 -# INTENSITY_SIGNED_SGIX = 0x85E4 -# LUMINANCE_ALPHA_SIGNED_SGIX = 0x85E5 -# RGB16_SIGNED_SGIX = 0x85E6 -# RGBA16_SIGNED_SGIX = 0x85E7 -# ALPHA16_SIGNED_SGIX = 0x85E8 -# LUMINANCE16_SIGNED_SGIX = 0x85E9 -# INTENSITY16_SIGNED_SGIX = 0x85EA -# LUMINANCE16_ALPHA16_SIGNED_SGIX = 0x85EB -# RGB_EXTENDED_RANGE_SGIX = 0x85EC -# RGBA_EXTENDED_RANGE_SGIX = 0x85ED -# ALPHA_EXTENDED_RANGE_SGIX = 0x85EE -# LUMINANCE_EXTENDED_RANGE_SGIX = 0x85EF -# INTENSITY_EXTENDED_RANGE_SGIX = 0x85F0 -# LUMINANCE_ALPHA_EXTENDED_RANGE_SGIX = 0x85F1 -# RGB16_EXTENDED_RANGE_SGIX = 0x85F2 -# RGBA16_EXTENDED_RANGE_SGIX = 0x85F3 -# ALPHA16_EXTENDED_RANGE_SGIX = 0x85F4 -# LUMINANCE16_EXTENDED_RANGE_SGIX = 0x85F5 -# INTENSITY16_EXTENDED_RANGE_SGIX = 0x85F6 -# LUMINANCE16_ALPHA16_EXTENDED_RANGE_SGIX = 0x85F7 -# MIN_LUMINANCE_SGIS = 0x85F8 -# MAX_LUMINANCE_SGIS = 0x85F9 -# MIN_INTENSITY_SGIS = 0x85FA -# MAX_INTENSITY_SGIS = 0x85FB - -############################################################################### - -# SGI_future_use: 0x85FC-0x85FF - -############################################################################### - -# Sun: 0x8600-0x861F - -# SUN_future_use: 0x8600-0x8613 - -SUN_mesh_array enum: 0x8614-0x8615 - QUAD_MESH_SUN = 0x8614 - TRIANGLE_MESH_SUN = 0x8615 - -# SUN_future_use: 0x8614-0x861F - -############################################################################### - -# NVIDIA: 0x8620-0x867F - -NV_vertex_program enum: - VERTEX_PROGRAM_NV = 0x8620 - VERTEX_STATE_PROGRAM_NV = 0x8621 - ATTRIB_ARRAY_SIZE_NV = 0x8623 - ATTRIB_ARRAY_STRIDE_NV = 0x8624 - ATTRIB_ARRAY_TYPE_NV = 0x8625 - CURRENT_ATTRIB_NV = 0x8626 - PROGRAM_LENGTH_NV = 0x8627 - PROGRAM_STRING_NV = 0x8628 - MODELVIEW_PROJECTION_NV = 0x8629 - IDENTITY_NV = 0x862A - INVERSE_NV = 0x862B - TRANSPOSE_NV = 0x862C - INVERSE_TRANSPOSE_NV = 0x862D - MAX_TRACK_MATRIX_STACK_DEPTH_NV = 0x862E - MAX_TRACK_MATRICES_NV = 0x862F - MATRIX0_NV = 0x8630 - MATRIX1_NV = 0x8631 - MATRIX2_NV = 0x8632 - MATRIX3_NV = 0x8633 - MATRIX4_NV = 0x8634 - MATRIX5_NV = 0x8635 - MATRIX6_NV = 0x8636 - MATRIX7_NV = 0x8637 -################## -# -# Reserved: -# -# MATRIX8_NV = 0x8638 -# MATRIX9_NV = 0x8639 -# MATRIX10_NV = 0x863A -# MATRIX11_NV = 0x863B -# MATRIX12_NV = 0x863C -# MATRIX13_NV = 0x863D -# MATRIX14_NV = 0x863E -# MATRIX15_NV = 0x863F -# -################### - CURRENT_MATRIX_STACK_DEPTH_NV = 0x8640 - CURRENT_MATRIX_NV = 0x8641 - VERTEX_PROGRAM_POINT_SIZE_NV = 0x8642 - VERTEX_PROGRAM_TWO_SIDE_NV = 0x8643 - PROGRAM_PARAMETER_NV = 0x8644 - ATTRIB_ARRAY_POINTER_NV = 0x8645 - PROGRAM_TARGET_NV = 0x8646 - PROGRAM_RESIDENT_NV = 0x8647 - TRACK_MATRIX_NV = 0x8648 - TRACK_MATRIX_TRANSFORM_NV = 0x8649 - VERTEX_PROGRAM_BINDING_NV = 0x864A - PROGRAM_ERROR_POSITION_NV = 0x864B - VERTEX_ATTRIB_ARRAY0_NV = 0x8650 - VERTEX_ATTRIB_ARRAY1_NV = 0x8651 - VERTEX_ATTRIB_ARRAY2_NV = 0x8652 - VERTEX_ATTRIB_ARRAY3_NV = 0x8653 - VERTEX_ATTRIB_ARRAY4_NV = 0x8654 - VERTEX_ATTRIB_ARRAY5_NV = 0x8655 - VERTEX_ATTRIB_ARRAY6_NV = 0x8656 - VERTEX_ATTRIB_ARRAY7_NV = 0x8657 - VERTEX_ATTRIB_ARRAY8_NV = 0x8658 - VERTEX_ATTRIB_ARRAY9_NV = 0x8659 - VERTEX_ATTRIB_ARRAY10_NV = 0x865A - VERTEX_ATTRIB_ARRAY11_NV = 0x865B - VERTEX_ATTRIB_ARRAY12_NV = 0x865C - VERTEX_ATTRIB_ARRAY13_NV = 0x865D - VERTEX_ATTRIB_ARRAY14_NV = 0x865E - VERTEX_ATTRIB_ARRAY15_NV = 0x865F - MAP1_VERTEX_ATTRIB0_4_NV = 0x8660 - MAP1_VERTEX_ATTRIB1_4_NV = 0x8661 - MAP1_VERTEX_ATTRIB2_4_NV = 0x8662 - MAP1_VERTEX_ATTRIB3_4_NV = 0x8663 - MAP1_VERTEX_ATTRIB4_4_NV = 0x8664 - MAP1_VERTEX_ATTRIB5_4_NV = 0x8665 - MAP1_VERTEX_ATTRIB6_4_NV = 0x8666 - MAP1_VERTEX_ATTRIB7_4_NV = 0x8667 - MAP1_VERTEX_ATTRIB8_4_NV = 0x8668 - MAP1_VERTEX_ATTRIB9_4_NV = 0x8669 - MAP1_VERTEX_ATTRIB10_4_NV = 0x866A - MAP1_VERTEX_ATTRIB11_4_NV = 0x866B - MAP1_VERTEX_ATTRIB12_4_NV = 0x866C - MAP1_VERTEX_ATTRIB13_4_NV = 0x866D - MAP1_VERTEX_ATTRIB14_4_NV = 0x866E - MAP1_VERTEX_ATTRIB15_4_NV = 0x866F - MAP2_VERTEX_ATTRIB0_4_NV = 0x8670 - MAP2_VERTEX_ATTRIB1_4_NV = 0x8671 - MAP2_VERTEX_ATTRIB2_4_NV = 0x8672 - MAP2_VERTEX_ATTRIB3_4_NV = 0x8673 - MAP2_VERTEX_ATTRIB4_4_NV = 0x8674 - MAP2_VERTEX_ATTRIB5_4_NV = 0x8675 - MAP2_VERTEX_ATTRIB6_4_NV = 0x8676 - MAP2_VERTEX_ATTRIB7_4_NV = 0x8677 - MAP2_VERTEX_ATTRIB8_4_NV = 0x8678 - MAP2_VERTEX_ATTRIB9_4_NV = 0x8679 - MAP2_VERTEX_ATTRIB10_4_NV = 0x867A - MAP2_VERTEX_ATTRIB11_4_NV = 0x867B - MAP2_VERTEX_ATTRIB12_4_NV = 0x867C - MAP2_VERTEX_ATTRIB13_4_NV = 0x867D - MAP2_VERTEX_ATTRIB14_4_NV = 0x867E - MAP2_VERTEX_ATTRIB15_4_NV = 0x867F - -# NV_texture_shader (additional; see below): 0x864C-0x864E - -VERSION_3_2 enum: - PROGRAM_POINT_SIZE = 0x8642 - -ARB_geometry_shader4 enum: (additional; see below) - PROGRAM_POINT_SIZE_ARB = 0x8642 - -NV_geometry_program4 enum: (additional; see below) - PROGRAM_POINT_SIZE_EXT = 0x8642 - -VERSION_3_2 enum: - use ARB_depth_clamp DEPTH_CLAMP - -ARB_depth_clamp enum: - DEPTH_CLAMP = 0x864F - -NV_depth_clamp enum: - DEPTH_CLAMP_NV = 0x864F - -VERSION_2_0 enum: (Promoted from ARB_vertex_shader; only some values) - VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622 # VERSION_2_0 - VERTEX_ATTRIB_ARRAY_SIZE = 0x8623 # VERSION_2_0 - VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624 # VERSION_2_0 - VERTEX_ATTRIB_ARRAY_TYPE = 0x8625 # VERSION_2_0 - CURRENT_VERTEX_ATTRIB = 0x8626 # VERSION_2_0 - VERTEX_PROGRAM_POINT_SIZE = 0x8642 # VERSION_2_0 - VERTEX_PROGRAM_TWO_SIDE = 0x8643 # VERSION_2_0 - VERTEX_ATTRIB_ARRAY_POINTER = 0x8645 # VERSION_2_0 - -ARB_vertex_program enum: (additional; see above; reuses NV_vertex_program values) -ARB_fragment_program enum: (additional; only some values; see below) -# (Unfortunately, PROGRAM_BINDING_ARB does accidentally reuse 0x8677) - VERTEX_PROGRAM_ARB = 0x8620 - VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622 - VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623 - VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624 - VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625 - CURRENT_VERTEX_ATTRIB_ARB = 0x8626 - PROGRAM_LENGTH_ARB = 0x8627 # ARB_fragment_program - PROGRAM_STRING_ARB = 0x8628 # ARB_fragment_program - MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862E # ARB_fragment_program - MAX_PROGRAM_MATRICES_ARB = 0x862F # ARB_fragment_program - CURRENT_MATRIX_STACK_DEPTH_ARB = 0x8640 # ARB_fragment_program - CURRENT_MATRIX_ARB = 0x8641 # ARB_fragment_program - VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642 - VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643 - VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645 - PROGRAM_ERROR_POSITION_ARB = 0x864B # ARB_fragment_program - PROGRAM_BINDING_ARB = 0x8677 # ARB_fragment_program - -############################################################################### - -# Pixelfusion: 0x8680-0x869F - -############################################################################### - -# OpenGL ARB: 0x86A0-0x86AF - -# ARB_texture_compression/1.3 (additional; see above): 0x86A0-0x86A3 - -ARB_vertex_blend enum: - MAX_VERTEX_UNITS_ARB = 0x86A4 - ACTIVE_VERTEX_UNITS_ARB = 0x86A5 - WEIGHT_SUM_UNITY_ARB = 0x86A6 - VERTEX_BLEND_ARB = 0x86A7 - CURRENT_WEIGHT_ARB = 0x86A8 - WEIGHT_ARRAY_TYPE_ARB = 0x86A9 - WEIGHT_ARRAY_STRIDE_ARB = 0x86AA - WEIGHT_ARRAY_SIZE_ARB = 0x86AB - WEIGHT_ARRAY_POINTER_ARB = 0x86AC - WEIGHT_ARRAY_ARB = 0x86AD -# Note: MODELVIEW0/1 are defined in other extensions, but not as ARB) - MODELVIEW0_ARB = 0x1700 - MODELVIEW1_ARB = 0x850A - MODELVIEW2_ARB = 0x8722 - MODELVIEW3_ARB = 0x8723 - MODELVIEW4_ARB = 0x8724 - MODELVIEW5_ARB = 0x8725 - MODELVIEW6_ARB = 0x8726 - MODELVIEW7_ARB = 0x8727 - MODELVIEW8_ARB = 0x8728 - MODELVIEW9_ARB = 0x8729 - MODELVIEW10_ARB = 0x872A - MODELVIEW11_ARB = 0x872B - MODELVIEW12_ARB = 0x872C - MODELVIEW13_ARB = 0x872D - MODELVIEW14_ARB = 0x872E - MODELVIEW15_ARB = 0x872F - MODELVIEW16_ARB = 0x8730 - MODELVIEW17_ARB = 0x8731 - MODELVIEW18_ARB = 0x8732 - MODELVIEW19_ARB = 0x8733 - MODELVIEW20_ARB = 0x8734 - MODELVIEW21_ARB = 0x8735 - MODELVIEW22_ARB = 0x8736 - MODELVIEW23_ARB = 0x8737 - MODELVIEW24_ARB = 0x8738 - MODELVIEW25_ARB = 0x8739 - MODELVIEW26_ARB = 0x873A - MODELVIEW27_ARB = 0x873B - MODELVIEW28_ARB = 0x873C - MODELVIEW29_ARB = 0x873D - MODELVIEW30_ARB = 0x873E - MODELVIEW31_ARB = 0x873F - -# Aliases ARB_vertex_blend enums above -OES_matrix_palette enum: (OpenGL ES only; additional; see below) - MAX_VERTEX_UNITS_OES = 0x86A4 - WEIGHT_ARRAY_OES = 0x86AD - WEIGHT_ARRAY_TYPE_OES = 0x86A9 - WEIGHT_ARRAY_STRIDE_OES = 0x86AA - WEIGHT_ARRAY_SIZE_OES = 0x86AB - WEIGHT_ARRAY_POINTER_OES = 0x86AC - -VERSION_1_3 enum: (Promoted for OpenGL 1.3) - DOT3_RGB = 0x86AE - DOT3_RGBA = 0x86AF - -ARB_texture_env_dot3 enum: - DOT3_RGB_ARB = 0x86AE - DOT3_RGBA_ARB = 0x86AF - -IMG_texture_env_enhanced_fixed_function enum: (OpenGL ES only; additional; see below) - DOT3_RGBA_IMG = 0x86AF - -############################################################################### - -# 3Dfx: 0x86B0-0x86BF - -3DFX_texture_compression_FXT1 enum: - COMPRESSED_RGB_FXT1_3DFX = 0x86B0 - COMPRESSED_RGBA_FXT1_3DFX = 0x86B1 - -3DFX_multisample enum: - MULTISAMPLE_3DFX = 0x86B2 - SAMPLE_BUFFERS_3DFX = 0x86B3 - SAMPLES_3DFX = 0x86B4 - MULTISAMPLE_BIT_3DFX = 0x20000000 - -# 3DFX_future_use: 0x86B5-0x86BF - -############################################################################### - -# NVIDIA: 0x86C0-0x871F - -NV_evaluators enum: - EVAL_2D_NV = 0x86C0 - EVAL_TRIANGULAR_2D_NV = 0x86C1 - MAP_TESSELLATION_NV = 0x86C2 - MAP_ATTRIB_U_ORDER_NV = 0x86C3 - MAP_ATTRIB_V_ORDER_NV = 0x86C4 - EVAL_FRACTIONAL_TESSELLATION_NV = 0x86C5 - EVAL_VERTEX_ATRRIB0_NV = 0x86C6 - EVAL_VERTEX_ATRRIB1_NV = 0x86C7 - EVAL_VERTEX_ATRRIB2_NV = 0x86C8 - EVAL_VERTEX_ATRRIB3_NV = 0x86C9 - EVAL_VERTEX_ATRRIB4_NV = 0x86CA - EVAL_VERTEX_ATRRIB5_NV = 0x86CB - EVAL_VERTEX_ATRRIB6_NV = 0x86CC - EVAL_VERTEX_ATRRIB7_NV = 0x86CD - EVAL_VERTEX_ATRRIB8_NV = 0x86CE - EVAL_VERTEX_ATRRIB9_NV = 0x86CF - EVAL_VERTEX_ATRRIB10_NV = 0x86D0 - EVAL_VERTEX_ATRRIB11_NV = 0x86D1 - EVAL_VERTEX_ATRRIB12_NV = 0x86D2 - EVAL_VERTEX_ATRRIB13_NV = 0x86D3 - EVAL_VERTEX_ATRRIB14_NV = 0x86D4 - EVAL_VERTEX_ATRRIB15_NV = 0x86D5 - MAX_MAP_TESSELLATION_NV = 0x86D6 - MAX_RATIONAL_EVAL_ORDER_NV = 0x86D7 - -NV_tessellation_program5 enum: - MAX_PROGRAM_PATCH_ATTRIBS_NV = 0x86D8 - -NV_texture_shader enum: - OFFSET_TEXTURE_RECTANGLE_NV = 0x864C - OFFSET_TEXTURE_RECTANGLE_SCALE_NV = 0x864D - DOT_PRODUCT_TEXTURE_RECTANGLE_NV = 0x864E - RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV = 0x86D9 - UNSIGNED_INT_S8_S8_8_8_NV = 0x86DA - UNSIGNED_INT_8_8_S8_S8_REV_NV = 0x86DB - DSDT_MAG_INTENSITY_NV = 0x86DC - SHADER_CONSISTENT_NV = 0x86DD - TEXTURE_SHADER_NV = 0x86DE - SHADER_OPERATION_NV = 0x86DF - CULL_MODES_NV = 0x86E0 - OFFSET_TEXTURE_MATRIX_NV = 0x86E1 - OFFSET_TEXTURE_SCALE_NV = 0x86E2 - OFFSET_TEXTURE_BIAS_NV = 0x86E3 - OFFSET_TEXTURE_2D_MATRIX_NV = GL_OFFSET_TEXTURE_MATRIX_NV - OFFSET_TEXTURE_2D_SCALE_NV = GL_OFFSET_TEXTURE_SCALE_NV - OFFSET_TEXTURE_2D_BIAS_NV = GL_OFFSET_TEXTURE_BIAS_NV - PREVIOUS_TEXTURE_INPUT_NV = 0x86E4 - CONST_EYE_NV = 0x86E5 - PASS_THROUGH_NV = 0x86E6 - CULL_FRAGMENT_NV = 0x86E7 - OFFSET_TEXTURE_2D_NV = 0x86E8 - DEPENDENT_AR_TEXTURE_2D_NV = 0x86E9 - DEPENDENT_GB_TEXTURE_2D_NV = 0x86EA - DOT_PRODUCT_NV = 0x86EC - DOT_PRODUCT_DEPTH_REPLACE_NV = 0x86ED - DOT_PRODUCT_TEXTURE_2D_NV = 0x86EE - DOT_PRODUCT_TEXTURE_CUBE_MAP_NV = 0x86F0 - DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV = 0x86F1 - DOT_PRODUCT_REFLECT_CUBE_MAP_NV = 0x86F2 - DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV = 0x86F3 - HILO_NV = 0x86F4 - DSDT_NV = 0x86F5 - DSDT_MAG_NV = 0x86F6 - DSDT_MAG_VIB_NV = 0x86F7 - HILO16_NV = 0x86F8 - SIGNED_HILO_NV = 0x86F9 - SIGNED_HILO16_NV = 0x86FA - SIGNED_RGBA_NV = 0x86FB - SIGNED_RGBA8_NV = 0x86FC - SIGNED_RGB_NV = 0x86FE - SIGNED_RGB8_NV = 0x86FF - SIGNED_LUMINANCE_NV = 0x8701 - SIGNED_LUMINANCE8_NV = 0x8702 - SIGNED_LUMINANCE_ALPHA_NV = 0x8703 - SIGNED_LUMINANCE8_ALPHA8_NV = 0x8704 - SIGNED_ALPHA_NV = 0x8705 - SIGNED_ALPHA8_NV = 0x8706 - SIGNED_INTENSITY_NV = 0x8707 - SIGNED_INTENSITY8_NV = 0x8708 - DSDT8_NV = 0x8709 - DSDT8_MAG8_NV = 0x870A - DSDT8_MAG8_INTENSITY8_NV = 0x870B - SIGNED_RGB_UNSIGNED_ALPHA_NV = 0x870C - SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 0x870D - HI_SCALE_NV = 0x870E - LO_SCALE_NV = 0x870F - DS_SCALE_NV = 0x8710 - DT_SCALE_NV = 0x8711 - MAGNITUDE_SCALE_NV = 0x8712 - VIBRANCE_SCALE_NV = 0x8713 - HI_BIAS_NV = 0x8714 - LO_BIAS_NV = 0x8715 - DS_BIAS_NV = 0x8716 - DT_BIAS_NV = 0x8717 - MAGNITUDE_BIAS_NV = 0x8718 - VIBRANCE_BIAS_NV = 0x8719 - TEXTURE_BORDER_VALUES_NV = 0x871A - TEXTURE_HI_SIZE_NV = 0x871B - TEXTURE_LO_SIZE_NV = 0x871C - TEXTURE_DS_SIZE_NV = 0x871D - TEXTURE_DT_SIZE_NV = 0x871E - TEXTURE_MAG_SIZE_NV = 0x871F - -NV_vdpau_interop enum: - SURFACE_STATE_NV = 0x86EB - -NV_texture_shader2 enum: (additional) - DOT_PRODUCT_TEXTURE_3D_NV = 0x86EF - -NV_vdpau_interop enum: (additional; see above) - SURFACE_REGISTERED_NV = 0x86FD - -NV_vdpau_interop enum: (additional; see above) - SURFACE_MAPPED_NV = 0x8700 - -############################################################################### - -# OpenGL ARB: 0x8720-0x873F - -# ARB_vertex_blend (additional; see above): 0x8720-0x873F - -############################################################################### - -# ATI: 0x8740-0x874F - -EXT_texture_env_dot3 enum: - DOT3_RGB_EXT = 0x8740 - DOT3_RGBA_EXT = 0x8741 - -# There's a collision between AMD_program_binary_Z400 and EXT_texture_env_dot3! -AMD_program_binary_Z400 enum: (OpenGL ES only) - Z400_BINARY_AMD = 0x8740 - -# There's a collision between OES_get_program_binary and EXT_texture_env_dot3! -OES_get_program_binary enum: (OpenGL ES only; additional; see below) - PROGRAM_BINARY_LENGTH_OES = 0x8741 - -ARB_get_program_binary enum: (additional; see below) - PROGRAM_BINARY_LENGTH = 0x8741 - -ATI_texture_mirror_once enum: - MIRROR_CLAMP_ATI = 0x8742 - MIRROR_CLAMP_TO_EDGE_ATI = 0x8743 - -EXT_texture_mirror_clamp enum: - MIRROR_CLAMP_EXT = 0x8742 - MIRROR_CLAMP_TO_EDGE_EXT = 0x8743 - -ATI_texture_env_combine3 enum: - MODULATE_ADD_ATI = 0x8744 - MODULATE_SIGNED_ADD_ATI = 0x8745 - MODULATE_SUBTRACT_ATI = 0x8746 - -# ATI_future_use: 0x8747-0x874F - -############################################################################### - -# MESA: 0x8750-0x875F - -MESA_packed_depth_stencil enum: - DEPTH_STENCIL_MESA = 0x8750 - UNSIGNED_INT_24_8_MESA = 0x8751 - UNSIGNED_INT_8_24_REV_MESA = 0x8752 - UNSIGNED_SHORT_15_1_MESA = 0x8753 - UNSIGNED_SHORT_1_15_REV_MESA = 0x8754 - -MESA_trace enum: - TRACE_ALL_BITS_MESA = 0xFFFF - TRACE_OPERATIONS_BIT_MESA = 0x0001 - TRACE_PRIMITIVES_BIT_MESA = 0x0002 - TRACE_ARRAYS_BIT_MESA = 0x0004 - TRACE_TEXTURES_BIT_MESA = 0x0008 - TRACE_PIXELS_BIT_MESA = 0x0010 - TRACE_ERRORS_BIT_MESA = 0x0020 - TRACE_MASK_MESA = 0x8755 - TRACE_NAME_MESA = 0x8756 - -MESA_ycbcr_texture enum: - YCBCR_MESA = 0x8757 - -MESA_pack_invert enum: - PACK_INVERT_MESA = 0x8758 - -MESAX_texture_stack enum: - TEXTURE_1D_STACK_MESAX = 0x8759 - TEXTURE_2D_STACK_MESAX = 0x875A - PROXY_TEXTURE_1D_STACK_MESAX = 0x875B - PROXY_TEXTURE_2D_STACK_MESAX = 0x875C - TEXTURE_1D_STACK_BINDING_MESAX = 0x875D - TEXTURE_2D_STACK_BINDING_MESAX = 0x875E - -MESA_shader_debug enum: - DEBUG_OBJECT_MESA = 0x8759 - DEBUG_PRINT_MESA = 0x875A - DEBUG_ASSERT_MESA = 0x875B - -# MESA_future_use: 0x875F - -############################################################################### - -# ATI: 0x8760-0x883F - -ATI_vertex_array_object enum: - STATIC_ATI = 0x8760 - DYNAMIC_ATI = 0x8761 - PRESERVE_ATI = 0x8762 - DISCARD_ATI = 0x8763 - OBJECT_BUFFER_SIZE_ATI = 0x8764 - OBJECT_BUFFER_USAGE_ATI = 0x8765 - ARRAY_OBJECT_BUFFER_ATI = 0x8766 - ARRAY_OBJECT_OFFSET_ATI = 0x8767 - -VERSION_1_5 enum: (Promoted for OpenGL 1.5) - BUFFER_SIZE = 0x8764 - BUFFER_USAGE = 0x8765 - -ARB_vertex_buffer_object enum: (additional; aliases some ATI enums; see below) - BUFFER_SIZE_ARB = 0x8764 - BUFFER_USAGE_ARB = 0x8765 - -ATI_element_array enum: - ELEMENT_ARRAY_ATI = 0x8768 - ELEMENT_ARRAY_TYPE_ATI = 0x8769 - ELEMENT_ARRAY_POINTER_ATI = 0x876A - -ATI_vertex_streams enum: - MAX_VERTEX_STREAMS_ATI = 0x876B - VERTEX_STREAM0_ATI = 0x876C - VERTEX_STREAM1_ATI = 0x876D - VERTEX_STREAM2_ATI = 0x876E - VERTEX_STREAM3_ATI = 0x876F - VERTEX_STREAM4_ATI = 0x8770 - VERTEX_STREAM5_ATI = 0x8771 - VERTEX_STREAM6_ATI = 0x8772 - VERTEX_STREAM7_ATI = 0x8773 - VERTEX_SOURCE_ATI = 0x8774 - -ATI_envmap_bumpmap enum: - BUMP_ROT_MATRIX_ATI = 0x8775 - BUMP_ROT_MATRIX_SIZE_ATI = 0x8776 - BUMP_NUM_TEX_UNITS_ATI = 0x8777 - BUMP_TEX_UNITS_ATI = 0x8778 - DUDV_ATI = 0x8779 - DU8DV8_ATI = 0x877A - BUMP_ENVMAP_ATI = 0x877B - BUMP_TARGET_ATI = 0x877C - -# ATI_future_use: 0x877D-0x877F - -EXT_vertex_shader enum: - VERTEX_SHADER_EXT = 0x8780 - VERTEX_SHADER_BINDING_EXT = 0x8781 - OP_INDEX_EXT = 0x8782 - OP_NEGATE_EXT = 0x8783 - OP_DOT3_EXT = 0x8784 - OP_DOT4_EXT = 0x8785 - OP_MUL_EXT = 0x8786 - OP_ADD_EXT = 0x8787 - OP_MADD_EXT = 0x8788 - OP_FRAC_EXT = 0x8789 - OP_MAX_EXT = 0x878A - OP_MIN_EXT = 0x878B - OP_SET_GE_EXT = 0x878C - OP_SET_LT_EXT = 0x878D - OP_CLAMP_EXT = 0x878E - OP_FLOOR_EXT = 0x878F - OP_ROUND_EXT = 0x8790 - OP_EXP_BASE_2_EXT = 0x8791 - OP_LOG_BASE_2_EXT = 0x8792 - OP_POWER_EXT = 0x8793 - OP_RECIP_EXT = 0x8794 - OP_RECIP_SQRT_EXT = 0x8795 - OP_SUB_EXT = 0x8796 - OP_CROSS_PRODUCT_EXT = 0x8797 - OP_MULTIPLY_MATRIX_EXT = 0x8798 - OP_MOV_EXT = 0x8799 - OUTPUT_VERTEX_EXT = 0x879A - OUTPUT_COLOR0_EXT = 0x879B - OUTPUT_COLOR1_EXT = 0x879C - OUTPUT_TEXTURE_COORD0_EXT = 0x879D - OUTPUT_TEXTURE_COORD1_EXT = 0x879E - OUTPUT_TEXTURE_COORD2_EXT = 0x879F - OUTPUT_TEXTURE_COORD3_EXT = 0x87A0 - OUTPUT_TEXTURE_COORD4_EXT = 0x87A1 - OUTPUT_TEXTURE_COORD5_EXT = 0x87A2 - OUTPUT_TEXTURE_COORD6_EXT = 0x87A3 - OUTPUT_TEXTURE_COORD7_EXT = 0x87A4 - OUTPUT_TEXTURE_COORD8_EXT = 0x87A5 - OUTPUT_TEXTURE_COORD9_EXT = 0x87A6 - OUTPUT_TEXTURE_COORD10_EXT = 0x87A7 - OUTPUT_TEXTURE_COORD11_EXT = 0x87A8 - OUTPUT_TEXTURE_COORD12_EXT = 0x87A9 - OUTPUT_TEXTURE_COORD13_EXT = 0x87AA - OUTPUT_TEXTURE_COORD14_EXT = 0x87AB - OUTPUT_TEXTURE_COORD15_EXT = 0x87AC - OUTPUT_TEXTURE_COORD16_EXT = 0x87AD - OUTPUT_TEXTURE_COORD17_EXT = 0x87AE - OUTPUT_TEXTURE_COORD18_EXT = 0x87AF - OUTPUT_TEXTURE_COORD19_EXT = 0x87B0 - OUTPUT_TEXTURE_COORD20_EXT = 0x87B1 - OUTPUT_TEXTURE_COORD21_EXT = 0x87B2 - OUTPUT_TEXTURE_COORD22_EXT = 0x87B3 - OUTPUT_TEXTURE_COORD23_EXT = 0x87B4 - OUTPUT_TEXTURE_COORD24_EXT = 0x87B5 - OUTPUT_TEXTURE_COORD25_EXT = 0x87B6 - OUTPUT_TEXTURE_COORD26_EXT = 0x87B7 - OUTPUT_TEXTURE_COORD27_EXT = 0x87B8 - OUTPUT_TEXTURE_COORD28_EXT = 0x87B9 - OUTPUT_TEXTURE_COORD29_EXT = 0x87BA - OUTPUT_TEXTURE_COORD30_EXT = 0x87BB - OUTPUT_TEXTURE_COORD31_EXT = 0x87BC - OUTPUT_FOG_EXT = 0x87BD - SCALAR_EXT = 0x87BE - VECTOR_EXT = 0x87BF - MATRIX_EXT = 0x87C0 - VARIANT_EXT = 0x87C1 - INVARIANT_EXT = 0x87C2 - LOCAL_CONSTANT_EXT = 0x87C3 - LOCAL_EXT = 0x87C4 - MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87C5 - MAX_VERTEX_SHADER_VARIANTS_EXT = 0x87C6 - MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87C7 - MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87C8 - MAX_VERTEX_SHADER_LOCALS_EXT = 0x87C9 - MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CA - MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87CB - MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87CC - MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87CD - MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87CE - VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CF - VERTEX_SHADER_VARIANTS_EXT = 0x87D0 - VERTEX_SHADER_INVARIANTS_EXT = 0x87D1 - VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87D2 - VERTEX_SHADER_LOCALS_EXT = 0x87D3 - VERTEX_SHADER_OPTIMIZED_EXT = 0x87D4 - X_EXT = 0x87D5 - Y_EXT = 0x87D6 - Z_EXT = 0x87D7 - W_EXT = 0x87D8 - NEGATIVE_X_EXT = 0x87D9 - NEGATIVE_Y_EXT = 0x87DA - NEGATIVE_Z_EXT = 0x87DB - NEGATIVE_W_EXT = 0x87DC - ZERO_EXT = 0x87DD - ONE_EXT = 0x87DE - NEGATIVE_ONE_EXT = 0x87DF - NORMALIZED_RANGE_EXT = 0x87E0 - FULL_RANGE_EXT = 0x87E1 - CURRENT_VERTEX_EXT = 0x87E2 - MVP_MATRIX_EXT = 0x87E3 - VARIANT_VALUE_EXT = 0x87E4 - VARIANT_DATATYPE_EXT = 0x87E5 - VARIANT_ARRAY_STRIDE_EXT = 0x87E6 - VARIANT_ARRAY_TYPE_EXT = 0x87E7 - VARIANT_ARRAY_EXT = 0x87E8 - VARIANT_ARRAY_POINTER_EXT = 0x87E9 - INVARIANT_VALUE_EXT = 0x87EA - INVARIANT_DATATYPE_EXT = 0x87EB - LOCAL_CONSTANT_VALUE_EXT = 0x87EC - LOCAL_CONSTANT_DATATYPE_EXT = 0x87ED - -AMD_compressed_ATC_texture enum: (OpenGL ES only) (additional; see below) - ATC_RGBA_INTERPOLATED_ALPHA_AMD = 0x87EE - -ATI_pn_triangles enum: - PN_TRIANGLES_ATI = 0x87F0 - MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F1 - PN_TRIANGLES_POINT_MODE_ATI = 0x87F2 - PN_TRIANGLES_NORMAL_MODE_ATI = 0x87F3 - PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F4 - PN_TRIANGLES_POINT_MODE_LINEAR_ATI = 0x87F5 - PN_TRIANGLES_POINT_MODE_CUBIC_ATI = 0x87F6 - PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 0x87F7 - PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 0x87F8 - -AMD_compressed_3DC_texture enum: (OpenGL ES only) - 3DC_X_AMD = 0x87F9 - 3DC_XY_AMD = 0x87FA - -ATI_meminfo enum: - VBO_FREE_MEMORY_ATI = 0x87FB - TEXTURE_FREE_MEMORY_ATI = 0x87FC - RENDERBUFFER_FREE_MEMORY_ATI = 0x87FD - -OES_get_program_binary enum: (OpenGL ES only; - NUM_PROGRAM_BINARY_FORMATS_OES = 0x87FE - PROGRAM_BINARY_FORMATS_OES = 0x87FF - -ARB_get_program_binary enum: - NUM_PROGRAM_BINARY_FORMATS = 0x87FE - PROGRAM_BINARY_FORMATS = 0x87FF - -VERSION_2_0 enum: (Promoted for OpenGL 2.0) - STENCIL_BACK_FUNC = 0x8800 # VERSION_2_0 - STENCIL_BACK_FAIL = 0x8801 # VERSION_2_0 - STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802 # VERSION_2_0 - STENCIL_BACK_PASS_DEPTH_PASS = 0x8803 # VERSION_2_0 - STENCIL_BACK_FAIL_ATI = 0x8801 - -ATI_separate_stencil enum: - STENCIL_BACK_FUNC_ATI = 0x8800 - STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802 - STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803 - -ARB_fragment_program enum: - FRAGMENT_PROGRAM_ARB = 0x8804 - PROGRAM_ALU_INSTRUCTIONS_ARB = 0x8805 - PROGRAM_TEX_INSTRUCTIONS_ARB = 0x8806 - PROGRAM_TEX_INDIRECTIONS_ARB = 0x8807 - PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x8808 - PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x8809 - PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x880A - MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x880B - MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x880C - MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 0x880D - MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x880E - MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x880F - MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x8810 - -# ATI_future_use: 0x8811-0x8813 - -VERSION_3_0 enum: - RGBA32F = 0x8814 # VERSION_3_0 - RGB32F = 0x8815 # VERSION_3_0 - RGBA16F = 0x881A # VERSION_3_0 - RGB16F = 0x881B # VERSION_3_0 - -ARB_texture_float enum: - RGBA32F_ARB = 0x8814 - RGB32F_ARB = 0x8815 - ALPHA32F_ARB = 0x8816 - INTENSITY32F_ARB = 0x8817 - LUMINANCE32F_ARB = 0x8818 - LUMINANCE_ALPHA32F_ARB = 0x8819 - RGBA16F_ARB = 0x881A - RGB16F_ARB = 0x881B - ALPHA16F_ARB = 0x881C - INTENSITY16F_ARB = 0x881D - LUMINANCE16F_ARB = 0x881E - LUMINANCE_ALPHA16F_ARB = 0x881F - -ATI_texture_float enum: - RGBA_FLOAT32_ATI = 0x8814 - RGB_FLOAT32_ATI = 0x8815 - ALPHA_FLOAT32_ATI = 0x8816 - INTENSITY_FLOAT32_ATI = 0x8817 - LUMINANCE_FLOAT32_ATI = 0x8818 - LUMINANCE_ALPHA_FLOAT32_ATI = 0x8819 - RGBA_FLOAT16_ATI = 0x881A - RGB_FLOAT16_ATI = 0x881B - ALPHA_FLOAT16_ATI = 0x881C - INTENSITY_FLOAT16_ATI = 0x881D - LUMINANCE_FLOAT16_ATI = 0x881E - LUMINANCE_ALPHA_FLOAT16_ATI = 0x881F - -APPLE_float_pixels enum: (additional; see below) - RGBA_FLOAT32_APPLE = 0x8814 - RGB_FLOAT32_APPLE = 0x8815 - ALPHA_FLOAT32_APPLE = 0x8816 - INTENSITY_FLOAT32_APPLE = 0x8817 - LUMINANCE_FLOAT32_APPLE = 0x8818 - LUMINANCE_ALPHA_FLOAT32_APPLE = 0x8819 - RGBA_FLOAT16_APPLE = 0x881A - RGB_FLOAT16_APPLE = 0x881B - ALPHA_FLOAT16_APPLE = 0x881C - INTENSITY_FLOAT16_APPLE = 0x881D - LUMINANCE_FLOAT16_APPLE = 0x881E - LUMINANCE_ALPHA_FLOAT16_APPLE = 0x881F - -ARB_color_buffer_float enum: - RGBA_FLOAT_MODE_ARB = 0x8820 # Equivalent to TYPE_RGBA_FLOAT_ATI - -ATI_pixel_format_float enum: (really WGL_ATI_pixel_format_float) - TYPE_RGBA_FLOAT_ATI = 0x8820 - -# ATI_future_use: 0x8821-0x8822 - -QCOM_writeonly_rendering enum: (OpenGL ES only) - WRITEONLY_RENDERING_QCOM = 0x8823 - -VERSION_2_0 enum: (Promoted for OpenGL 2.0) - MAX_DRAW_BUFFERS = 0x8824 # VERSION_2_0 - DRAW_BUFFER0 = 0x8825 # VERSION_2_0 - DRAW_BUFFER1 = 0x8826 # VERSION_2_0 - DRAW_BUFFER2 = 0x8827 # VERSION_2_0 - DRAW_BUFFER3 = 0x8828 # VERSION_2_0 - DRAW_BUFFER4 = 0x8829 # VERSION_2_0 - DRAW_BUFFER5 = 0x882A # VERSION_2_0 - DRAW_BUFFER6 = 0x882B # VERSION_2_0 - DRAW_BUFFER7 = 0x882C # VERSION_2_0 - DRAW_BUFFER8 = 0x882D # VERSION_2_0 - DRAW_BUFFER9 = 0x882E # VERSION_2_0 - DRAW_BUFFER10 = 0x882F # VERSION_2_0 - DRAW_BUFFER11 = 0x8830 # VERSION_2_0 - DRAW_BUFFER12 = 0x8831 # VERSION_2_0 - DRAW_BUFFER13 = 0x8832 # VERSION_2_0 - DRAW_BUFFER14 = 0x8833 # VERSION_2_0 - DRAW_BUFFER15 = 0x8834 # VERSION_2_0 - -ARB_draw_buffers enum: - MAX_DRAW_BUFFERS_ARB = 0x8824 - DRAW_BUFFER0_ARB = 0x8825 - DRAW_BUFFER1_ARB = 0x8826 - DRAW_BUFFER2_ARB = 0x8827 - DRAW_BUFFER3_ARB = 0x8828 - DRAW_BUFFER4_ARB = 0x8829 - DRAW_BUFFER5_ARB = 0x882A - DRAW_BUFFER6_ARB = 0x882B - DRAW_BUFFER7_ARB = 0x882C - DRAW_BUFFER8_ARB = 0x882D - DRAW_BUFFER9_ARB = 0x882E - DRAW_BUFFER10_ARB = 0x882F - DRAW_BUFFER11_ARB = 0x8830 - DRAW_BUFFER12_ARB = 0x8831 - DRAW_BUFFER13_ARB = 0x8832 - DRAW_BUFFER14_ARB = 0x8833 - DRAW_BUFFER15_ARB = 0x8834 - -ATI_draw_buffers enum: - MAX_DRAW_BUFFERS_ATI = 0x8824 - DRAW_BUFFER0_ATI = 0x8825 - DRAW_BUFFER1_ATI = 0x8826 - DRAW_BUFFER2_ATI = 0x8827 - DRAW_BUFFER3_ATI = 0x8828 - DRAW_BUFFER4_ATI = 0x8829 - DRAW_BUFFER5_ATI = 0x882A - DRAW_BUFFER6_ATI = 0x882B - DRAW_BUFFER7_ATI = 0x882C - DRAW_BUFFER8_ATI = 0x882D - DRAW_BUFFER9_ATI = 0x882E - DRAW_BUFFER10_ATI = 0x882F - DRAW_BUFFER11_ATI = 0x8830 - DRAW_BUFFER12_ATI = 0x8831 - DRAW_BUFFER13_ATI = 0x8832 - DRAW_BUFFER14_ATI = 0x8833 - DRAW_BUFFER15_ATI = 0x8834 - -ATI_pixel_format_float enum: (really WGL_ATI_pixel_format_float) (additional; see above) - COLOR_CLEAR_UNCLAMPED_VALUE_ATI = 0x8835 - -# ATI_future_use: 0x8836-0x883C - -VERSION_2_0 enum: (Promoted for OpenGL 2.0) - BLEND_EQUATION_ALPHA = 0x883D # VERSION_2_0 - -EXT_blend_equation_separate enum: - BLEND_EQUATION_ALPHA_EXT = 0x883D - -# Aliases EXT_blend_equation_separate enum above -OES_blend_equation_separate enum: (OpenGL ES only) - BLEND_EQUATION_ALPHA_OES = 0x883D - -# ATI_future_use: 0x883E - -AMD_sample_positions enum: - SUBSAMPLE_DISTANCE_AMD = 0x883F - -############################################################################### - -# OpenGL ARB: 0x8840-0x884F - -ARB_matrix_palette enum: - MATRIX_PALETTE_ARB = 0x8840 - MAX_MATRIX_PALETTE_STACK_DEPTH_ARB = 0x8841 - MAX_PALETTE_MATRICES_ARB = 0x8842 - CURRENT_PALETTE_MATRIX_ARB = 0x8843 - MATRIX_INDEX_ARRAY_ARB = 0x8844 - CURRENT_MATRIX_INDEX_ARB = 0x8845 - MATRIX_INDEX_ARRAY_SIZE_ARB = 0x8846 - MATRIX_INDEX_ARRAY_TYPE_ARB = 0x8847 - MATRIX_INDEX_ARRAY_STRIDE_ARB = 0x8848 - MATRIX_INDEX_ARRAY_POINTER_ARB = 0x8849 - -# Aliases ARB_matrix_palette enums above -OES_matrix_palette enum: (OpenGL ES only; additional; see below) - MATRIX_PALETTE_OES = 0x8840 - MAX_PALETTE_MATRICES_OES = 0x8842 - CURRENT_PALETTE_MATRIX_OES = 0x8843 - MATRIX_INDEX_ARRAY_OES = 0x8844 - MATRIX_INDEX_ARRAY_SIZE_OES = 0x8846 - MATRIX_INDEX_ARRAY_TYPE_OES = 0x8847 - MATRIX_INDEX_ARRAY_STRIDE_OES = 0x8848 - MATRIX_INDEX_ARRAY_POINTER_OES = 0x8849 - -VERSION_1_4 enum: (Promoted for OpenGL 1.4) - TEXTURE_DEPTH_SIZE = 0x884A - DEPTH_TEXTURE_MODE = 0x884B - -ARB_depth_texture enum: - TEXTURE_DEPTH_SIZE_ARB = 0x884A - DEPTH_TEXTURE_MODE_ARB = 0x884B - -VERSION_3_0 enum: (aliases) - COMPARE_REF_TO_TEXTURE = 0x884E # VERSION_3_0 # alias GL_COMPARE_R_TO_TEXTURE_ARB - -VERSION_1_4 enum: (Promoted for OpenGL 1.4) - TEXTURE_COMPARE_MODE = 0x884C - TEXTURE_COMPARE_FUNC = 0x884D - COMPARE_R_TO_TEXTURE = 0x884E - -ARB_shadow enum: - TEXTURE_COMPARE_MODE_ARB = 0x884C - TEXTURE_COMPARE_FUNC_ARB = 0x884D - COMPARE_R_TO_TEXTURE_ARB = 0x884E - -EXT_texture_array enum: (additional; see below) - COMPARE_REF_DEPTH_TO_TEXTURE_EXT = 0x884E - -VERSION_3_2 enum: - use ARB_seamless_cube_map TEXTURE_CUBE_MAP_SEAMLESS - -ARB_seamless_cube_map enum: - TEXTURE_CUBE_MAP_SEAMLESS = 0x884F - -############################################################################### - -# NVIDIA: 0x8850-0x891F - -NV_texture_shader3 enum: - OFFSET_PROJECTIVE_TEXTURE_2D_NV = 0x8850 - OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV = 0x8851 - OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8852 - OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV = 0x8853 - OFFSET_HILO_TEXTURE_2D_NV = 0x8854 - OFFSET_HILO_TEXTURE_RECTANGLE_NV = 0x8855 - OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV = 0x8856 - OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8857 - DEPENDENT_HILO_TEXTURE_2D_NV = 0x8858 - DEPENDENT_RGB_TEXTURE_3D_NV = 0x8859 - DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV = 0x885A - DOT_PRODUCT_PASS_THROUGH_NV = 0x885B - DOT_PRODUCT_TEXTURE_1D_NV = 0x885C - DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV = 0x885D - HILO8_NV = 0x885E - SIGNED_HILO8_NV = 0x885F - FORCE_BLUE_TO_ONE_NV = 0x8860 - -VERSION_2_0 enum: (Promoted for OpenGL 2.0) - POINT_SPRITE = 0x8861 # VERSION_2_0 - COORD_REPLACE = 0x8862 # VERSION_2_0 - -ARB_point_sprite enum: - POINT_SPRITE_ARB = 0x8861 - COORD_REPLACE_ARB = 0x8862 - -NV_point_sprite enum: - POINT_SPRITE_NV = 0x8861 - COORD_REPLACE_NV = 0x8862 - -# Aliases ARB_point_sprite enums above -OES_point_sprite enum: (OpenGL ES only) - POINT_SPRITE_ARB = 0x8861 - COORD_REPLACE_ARB = 0x8862 - -NV_point_sprite enum: - POINT_SPRITE_R_MODE_NV = 0x8863 - -VERSION_1_5 enum: (Promoted for OpenGL 1.5) - QUERY_COUNTER_BITS = 0x8864 - CURRENT_QUERY = 0x8865 - QUERY_RESULT = 0x8866 - QUERY_RESULT_AVAILABLE = 0x8867 - -ARB_occlusion_query enum: - QUERY_COUNTER_BITS_ARB = 0x8864 - CURRENT_QUERY_ARB = 0x8865 - QUERY_RESULT_ARB = 0x8866 - QUERY_RESULT_AVAILABLE_ARB = 0x8867 - -NV_occlusion_query enum: - PIXEL_COUNTER_BITS_NV = 0x8864 - CURRENT_OCCLUSION_QUERY_ID_NV = 0x8865 - PIXEL_COUNT_NV = 0x8866 - PIXEL_COUNT_AVAILABLE_NV = 0x8867 - -NV_fragment_program enum: - MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868 - -VERSION_2_0 enum: (Promoted from ARB_vertex_shader) - MAX_VERTEX_ATTRIBS = 0x8869 # VERSION_2_0 - VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A # VERSION_2_0 - -ARB_vertex_program enum: (additional; see above) - MAX_VERTEX_ATTRIBS_ARB = 0x8869 - VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886A - -# NV_future_use: 0x886B - -ARB_tessellation_shader enum: - MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C - MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D - -NV_copy_depth_to_color enum: - DEPTH_STENCIL_TO_RGBA_NV = 0x886E - DEPTH_STENCIL_TO_BGRA_NV = 0x886F - -NV_fragment_program enum: (additional; see above) - FRAGMENT_PROGRAM_NV = 0x8870 - MAX_TEXTURE_COORDS_NV = 0x8871 - MAX_TEXTURE_IMAGE_UNITS_NV = 0x8872 - FRAGMENT_PROGRAM_BINDING_NV = 0x8873 - PROGRAM_ERROR_STRING_NV = 0x8874 - -VERSION_2_0 enum: (Promoted from ARB_fragment_shader; only some values) - MAX_TEXTURE_COORDS = 0x8871 # VERSION_2_0 - MAX_TEXTURE_IMAGE_UNITS = 0x8872 # VERSION_2_0 - -ARB_vertex_program enum: (additional; see above) -ARB_fragment_program enum: (additional; see above) - MAX_TEXTURE_COORDS_ARB = 0x8871 # ARB_fragment_program - MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872 # ARB_fragment_program - PROGRAM_ERROR_STRING_ARB = 0x8874 # ARB_vertex_program / ARB_fragment_program - PROGRAM_FORMAT_ASCII_ARB = 0x8875 # ARB_vertex_program / ARB_fragment_program - PROGRAM_FORMAT_ARB = 0x8876 # ARB_vertex_program / ARB_fragment_program - -# 0x8877 *should have been* assigned to PROGRAM_BINDING_ARB. Oops. - -NV_pixel_data_range enum: - WRITE_PIXEL_DATA_RANGE_NV = 0x8878 - READ_PIXEL_DATA_RANGE_NV = 0x8879 - WRITE_PIXEL_DATA_RANGE_LENGTH_NV = 0x887A - READ_PIXEL_DATA_RANGE_LENGTH_NV = 0x887B - WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887C - READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887D - -# NV_future_use: 0x887E - -ARB_gpu_shader5 enum: (additional; see below) - GEOMETRY_SHADER_INVOCATIONS = 0x887F - -NV_float_buffer enum: - FLOAT_R_NV = 0x8880 - FLOAT_RG_NV = 0x8881 - FLOAT_RGB_NV = 0x8882 - FLOAT_RGBA_NV = 0x8883 - FLOAT_R16_NV = 0x8884 - FLOAT_R32_NV = 0x8885 - FLOAT_RG16_NV = 0x8886 - FLOAT_RG32_NV = 0x8887 - FLOAT_RGB16_NV = 0x8888 - FLOAT_RGB32_NV = 0x8889 - FLOAT_RGBA16_NV = 0x888A - FLOAT_RGBA32_NV = 0x888B - TEXTURE_FLOAT_COMPONENTS_NV = 0x888C - FLOAT_CLEAR_COLOR_VALUE_NV = 0x888D - FLOAT_RGBA_MODE_NV = 0x888E - -NV_texture_expand_normal enum: - TEXTURE_UNSIGNED_REMAP_MODE_NV = 0x888F - -EXT_depth_bounds_test enum: - DEPTH_BOUNDS_TEST_EXT = 0x8890 - DEPTH_BOUNDS_EXT = 0x8891 - -VERSION_1_5 enum: (Promoted for OpenGL 1.5) - ARRAY_BUFFER = 0x8892 - ELEMENT_ARRAY_BUFFER = 0x8893 - ARRAY_BUFFER_BINDING = 0x8894 - ELEMENT_ARRAY_BUFFER_BINDING = 0x8895 - VERTEX_ARRAY_BUFFER_BINDING = 0x8896 - NORMAL_ARRAY_BUFFER_BINDING = 0x8897 - COLOR_ARRAY_BUFFER_BINDING = 0x8898 - INDEX_ARRAY_BUFFER_BINDING = 0x8899 - TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A - EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B - SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C - FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D # alias GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING - FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D - WEIGHT_ARRAY_BUFFER_BINDING = 0x889E - VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F - -ARB_vertex_buffer_object enum: - ARRAY_BUFFER_ARB = 0x8892 - ELEMENT_ARRAY_BUFFER_ARB = 0x8893 - ARRAY_BUFFER_BINDING_ARB = 0x8894 - ELEMENT_ARRAY_BUFFER_BINDING_ARB = 0x8895 - VERTEX_ARRAY_BUFFER_BINDING_ARB = 0x8896 - NORMAL_ARRAY_BUFFER_BINDING_ARB = 0x8897 - COLOR_ARRAY_BUFFER_BINDING_ARB = 0x8898 - INDEX_ARRAY_BUFFER_BINDING_ARB = 0x8899 - TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB = 0x889A - EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB = 0x889B - SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x889C - FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB = 0x889D - WEIGHT_ARRAY_BUFFER_BINDING_ARB = 0x889E - VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB = 0x889F - -# Aliases ARB_vertex_buffer_object enum above -OES_matrix_palette enum: (OpenGL ES only; additional; see below) - WEIGHT_ARRAY_BUFFER_BINDING_OES = 0x889E - -ARB_vertex_program enum: (additional; see above) -ARB_fragment_program enum: (additional; see above) - PROGRAM_INSTRUCTIONS_ARB = 0x88A0 - MAX_PROGRAM_INSTRUCTIONS_ARB = 0x88A1 - PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A2 - MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A3 - PROGRAM_TEMPORARIES_ARB = 0x88A4 - MAX_PROGRAM_TEMPORARIES_ARB = 0x88A5 - PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A6 - MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A7 - PROGRAM_PARAMETERS_ARB = 0x88A8 - MAX_PROGRAM_PARAMETERS_ARB = 0x88A9 - PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AA - MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AB - PROGRAM_ATTRIBS_ARB = 0x88AC - MAX_PROGRAM_ATTRIBS_ARB = 0x88AD - PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AE - MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AF - PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B0 - MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B1 - PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B2 - MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B3 - MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88B4 - MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88B5 - PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88B6 - TRANSPOSE_CURRENT_MATRIX_ARB = 0x88B7 - -VERSION_1_5 enum: (Promoted for OpenGL 1.5) - READ_ONLY = 0x88B8 - WRITE_ONLY = 0x88B9 - READ_WRITE = 0x88BA - BUFFER_ACCESS = 0x88BB - BUFFER_MAPPED = 0x88BC - BUFFER_MAP_POINTER = 0x88BD - -ARB_vertex_buffer_object enum: (additional; see above) - READ_ONLY_ARB = 0x88B8 - WRITE_ONLY_ARB = 0x88B9 - READ_WRITE_ARB = 0x88BA - BUFFER_ACCESS_ARB = 0x88BB - BUFFER_MAPPED_ARB = 0x88BC - BUFFER_MAP_POINTER_ARB = 0x88BD - -# Aliases ARB_vertex_buffer_object enums above -OES_mapbuffer enum: (OpenGL ES only) - WRITE_ONLY_OES = 0x88B9 - BUFFER_ACCESS_OES = 0x88BB - BUFFER_MAPPED_OES = 0x88BC - BUFFER_MAP_POINTER_OES = 0x88BD - -NV_shader_buffer_store enum: - use VERSION_1_5 READ_WRITE - use VERSION_1_5 WRITE_ONLY - -NV_vdpau_interop enum: (additional; see above) - WRITE_DISCARD_NV = 0x88BE - -ARB_timer_query enum: (additional; see below) - TIME_ELAPSED = 0x88BF - -EXT_timer_query enum: - TIME_ELAPSED_EXT = 0x88BF - -ARB_vertex_program enum: (additional; see above) -ARB_fragment_program enum: (additional; see above) - MATRIX0_ARB = 0x88C0 - MATRIX1_ARB = 0x88C1 - MATRIX2_ARB = 0x88C2 - MATRIX3_ARB = 0x88C3 - MATRIX4_ARB = 0x88C4 - MATRIX5_ARB = 0x88C5 - MATRIX6_ARB = 0x88C6 - MATRIX7_ARB = 0x88C7 - MATRIX8_ARB = 0x88C8 - MATRIX9_ARB = 0x88C9 - MATRIX10_ARB = 0x88CA - MATRIX11_ARB = 0x88CB - MATRIX12_ARB = 0x88CC - MATRIX13_ARB = 0x88CD - MATRIX14_ARB = 0x88CE - MATRIX15_ARB = 0x88CF - MATRIX16_ARB = 0x88D0 - MATRIX17_ARB = 0x88D1 - MATRIX18_ARB = 0x88D2 - MATRIX19_ARB = 0x88D3 - MATRIX20_ARB = 0x88D4 - MATRIX21_ARB = 0x88D5 - MATRIX22_ARB = 0x88D6 - MATRIX23_ARB = 0x88D7 - MATRIX24_ARB = 0x88D8 - MATRIX25_ARB = 0x88D9 - MATRIX26_ARB = 0x88DA - MATRIX27_ARB = 0x88DB - MATRIX28_ARB = 0x88DC - MATRIX29_ARB = 0x88DD - MATRIX30_ARB = 0x88DE - MATRIX31_ARB = 0x88DF - -VERSION_1_5 enum: (Promoted for OpenGL 1.5) - STREAM_DRAW = 0x88E0 - STREAM_READ = 0x88E1 - STREAM_COPY = 0x88E2 - STATIC_DRAW = 0x88E4 - STATIC_READ = 0x88E5 - STATIC_COPY = 0x88E6 - DYNAMIC_DRAW = 0x88E8 - DYNAMIC_READ = 0x88E9 - DYNAMIC_COPY = 0x88EA - -ARB_vertex_buffer_object enum: (additional; see above) - STREAM_DRAW_ARB = 0x88E0 - STREAM_READ_ARB = 0x88E1 - STREAM_COPY_ARB = 0x88E2 - STATIC_DRAW_ARB = 0x88E4 - STATIC_READ_ARB = 0x88E5 - STATIC_COPY_ARB = 0x88E6 - DYNAMIC_DRAW_ARB = 0x88E8 - DYNAMIC_READ_ARB = 0x88E9 - DYNAMIC_COPY_ARB = 0x88EA - -VERSION_2_1 enum: - PIXEL_PACK_BUFFER = 0x88EB # VERSION_2_1 - PIXEL_UNPACK_BUFFER = 0x88EC # VERSION_2_1 - PIXEL_PACK_BUFFER_BINDING = 0x88ED # VERSION_2_1 - PIXEL_UNPACK_BUFFER_BINDING = 0x88EF # VERSION_2_1 - -ARB_pixel_buffer_object enum: - PIXEL_PACK_BUFFER_ARB = 0x88EB # ARB_pixel_buffer_object - PIXEL_UNPACK_BUFFER_ARB = 0x88EC # ARB_pixel_buffer_object - PIXEL_PACK_BUFFER_BINDING_ARB = 0x88ED # ARB_pixel_buffer_object - PIXEL_UNPACK_BUFFER_BINDING_ARB = 0x88EF # ARB_pixel_buffer_object - -EXT_pixel_buffer_object enum: - PIXEL_PACK_BUFFER_EXT = 0x88EB # EXT_pixel_buffer_object - PIXEL_UNPACK_BUFFER_EXT = 0x88EC # EXT_pixel_buffer_object - PIXEL_PACK_BUFFER_BINDING_EXT = 0x88ED # EXT_pixel_buffer_object - PIXEL_UNPACK_BUFFER_BINDING_EXT = 0x88EF # EXT_pixel_buffer_object - -# ARB_future_use: 0x88E3, 0x88E7, 0x88EE -# (for extending ARB_vertex_buffer_object): - -VERSION_3_0 enum: - use ARB_framebuffer_object DEPTH24_STENCIL8 - use ARB_framebuffer_object TEXTURE_STENCIL_SIZE - -ARB_framebuffer_object enum: (note: no ARB suffixes) - DEPTH24_STENCIL8 = 0x88F0 # VERSION_3_0 / ARB_fbo - TEXTURE_STENCIL_SIZE = 0x88F1 # VERSION_3_0 / ARB_fbo - -EXT_packed_depth_stencil enum: (additional; see above) - DEPTH24_STENCIL8_EXT = 0x88F0 - TEXTURE_STENCIL_SIZE_EXT = 0x88F1 - -# Aliases EXT_packed_depth_stencil enum above -OES_packed_depth_stencil enum: (OpenGL ES only; additional; see above) - DEPTH24_STENCIL8_OES = 0x88F0 - -EXT_stencil_clear_tag enum: - STENCIL_TAG_BITS_EXT = 0x88F2 - STENCIL_CLEAR_TAG_VALUE_EXT = 0x88F3 - -NV_vertex_program2_option enum: (duplicated in NV_fragment_prgoram2 below) - MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88F4 - MAX_PROGRAM_CALL_DEPTH_NV = 0x88F5 - -NV_fragment_program2 enum: - MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88F4 - MAX_PROGRAM_CALL_DEPTH_NV = 0x88F5 - MAX_PROGRAM_IF_DEPTH_NV = 0x88F6 - MAX_PROGRAM_LOOP_DEPTH_NV = 0x88F7 - MAX_PROGRAM_LOOP_COUNT_NV = 0x88F8 - -ARB_blend_func_extended enum: - SRC1_COLOR = 0x88F9 - ONE_MINUS_SRC1_COLOR = 0x88FA - ONE_MINUS_SRC1_ALPHA = 0x88FB - MAX_DUAL_SOURCE_DRAW_BUFFERS = 0x88FC - -VERSION_3_0 enum: - VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD # VERSION_3_0 - -NV_vertex_program4 enum: - VERTEX_ATTRIB_ARRAY_INTEGER_NV = 0x88FD - -VERSION_3_3 enum: - VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88FE # VERSION_3_3 - -ARB_instanced_arrays enum: - VERTEX_ATTRIB_ARRAY_DIVISOR_ARB = 0x88FE - -VERSION_3_0 enum: - MAX_ARRAY_TEXTURE_LAYERS = 0x88FF # VERSION_3_0 - -EXT_texture_array enum: (additional; see below) - MAX_ARRAY_TEXTURE_LAYERS_EXT = 0x88FF - -VERSION_3_0 enum: - MIN_PROGRAM_TEXEL_OFFSET = 0x8904 # VERSION_3_0 - MAX_PROGRAM_TEXEL_OFFSET = 0x8905 # VERSION_3_0 - -NV_gpu_program4 enum: - MIN_PROGRAM_TEXEL_OFFSET_NV = 0x8904 - MAX_PROGRAM_TEXEL_OFFSET_NV = 0x8905 - PROGRAM_ATTRIB_COMPONENTS_NV = 0x8906 - PROGRAM_RESULT_COMPONENTS_NV = 0x8907 - MAX_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8908 - MAX_PROGRAM_RESULT_COMPONENTS_NV = 0x8909 - -EXT_stencil_two_side enum: - STENCIL_TEST_TWO_SIDE_EXT = 0x8910 - ACTIVE_STENCIL_FACE_EXT = 0x8911 - -EXT_texture_mirror_clamp enum: (additional; see above): - MIRROR_CLAMP_TO_BORDER_EXT = 0x8912 - -# NV_future_use: 0x8913 - -VERSION_1_5 enum: (Promoted for OpenGL 1.5) - SAMPLES_PASSED = 0x8914 - -ARB_occlusion_query enum: (additional; see above) - SAMPLES_PASSED_ARB = 0x8914 - -# NV_future_use: 0x8915 - -VERSION_3_2 enum: - GEOMETRY_VERTICES_OUT = 0x8916 - GEOMETRY_INPUT_TYPE = 0x8917 - GEOMETRY_OUTPUT_TYPE = 0x8918 - -ARB_sampler_objects enum: - SAMPLER_BINDING = 0x8919 - -VERSION_3_0 enum: - CLAMP_VERTEX_COLOR = 0x891A # VERSION_3_0 - CLAMP_FRAGMENT_COLOR = 0x891B # VERSION_3_0 - CLAMP_READ_COLOR = 0x891C # VERSION_3_0 - FIXED_ONLY = 0x891D # VERSION_3_0 - -ARB_color_buffer_float enum: (additional; see above) - CLAMP_VERTEX_COLOR_ARB = 0x891A - CLAMP_FRAGMENT_COLOR_ARB = 0x891B - CLAMP_READ_COLOR_ARB = 0x891C - FIXED_ONLY_ARB = 0x891D - -NV_tessellation_program5 enum: - TESS_CONTROL_PROGRAM_NV = 0x891E - TESS_EVALUATION_PROGRAM_NV = 0x891F - -############################################################################### - -# ATI: 0x8920-0x897F - -ATI_fragment_shader enum: - FRAGMENT_SHADER_ATI = 0x8920 - REG_0_ATI = 0x8921 - REG_1_ATI = 0x8922 - REG_2_ATI = 0x8923 - REG_3_ATI = 0x8924 - REG_4_ATI = 0x8925 - REG_5_ATI = 0x8926 - REG_6_ATI = 0x8927 - REG_7_ATI = 0x8928 - REG_8_ATI = 0x8929 - REG_9_ATI = 0x892A - REG_10_ATI = 0x892B - REG_11_ATI = 0x892C - REG_12_ATI = 0x892D - REG_13_ATI = 0x892E - REG_14_ATI = 0x892F - REG_15_ATI = 0x8930 - REG_16_ATI = 0x8931 - REG_17_ATI = 0x8932 - REG_18_ATI = 0x8933 - REG_19_ATI = 0x8934 - REG_20_ATI = 0x8935 - REG_21_ATI = 0x8936 - REG_22_ATI = 0x8937 - REG_23_ATI = 0x8938 - REG_24_ATI = 0x8939 - REG_25_ATI = 0x893A - REG_26_ATI = 0x893B - REG_27_ATI = 0x893C - REG_28_ATI = 0x893D - REG_29_ATI = 0x893E - REG_30_ATI = 0x893F - REG_31_ATI = 0x8940 - CON_0_ATI = 0x8941 - CON_1_ATI = 0x8942 - CON_2_ATI = 0x8943 - CON_3_ATI = 0x8944 - CON_4_ATI = 0x8945 - CON_5_ATI = 0x8946 - CON_6_ATI = 0x8947 - CON_7_ATI = 0x8948 - CON_8_ATI = 0x8949 - CON_9_ATI = 0x894A - CON_10_ATI = 0x894B - CON_11_ATI = 0x894C - CON_12_ATI = 0x894D - CON_13_ATI = 0x894E - CON_14_ATI = 0x894F - CON_15_ATI = 0x8950 - CON_16_ATI = 0x8951 - CON_17_ATI = 0x8952 - CON_18_ATI = 0x8953 - CON_19_ATI = 0x8954 - CON_20_ATI = 0x8955 - CON_21_ATI = 0x8956 - CON_22_ATI = 0x8957 - CON_23_ATI = 0x8958 - CON_24_ATI = 0x8959 - CON_25_ATI = 0x895A - CON_26_ATI = 0x895B - CON_27_ATI = 0x895C - CON_28_ATI = 0x895D - CON_29_ATI = 0x895E - CON_30_ATI = 0x895F - CON_31_ATI = 0x8960 - MOV_ATI = 0x8961 - ADD_ATI = 0x8963 - MUL_ATI = 0x8964 - SUB_ATI = 0x8965 - DOT3_ATI = 0x8966 - DOT4_ATI = 0x8967 - MAD_ATI = 0x8968 - LERP_ATI = 0x8969 - CND_ATI = 0x896A - CND0_ATI = 0x896B - DOT2_ADD_ATI = 0x896C - SECONDARY_INTERPOLATOR_ATI = 0x896D - NUM_FRAGMENT_REGISTERS_ATI = 0x896E - NUM_FRAGMENT_CONSTANTS_ATI = 0x896F - NUM_PASSES_ATI = 0x8970 - NUM_INSTRUCTIONS_PER_PASS_ATI = 0x8971 - NUM_INSTRUCTIONS_TOTAL_ATI = 0x8972 - NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI = 0x8973 - NUM_LOOPBACK_COMPONENTS_ATI = 0x8974 - COLOR_ALPHA_PAIRING_ATI = 0x8975 - SWIZZLE_STR_ATI = 0x8976 - SWIZZLE_STQ_ATI = 0x8977 - SWIZZLE_STR_DR_ATI = 0x8978 - SWIZZLE_STQ_DQ_ATI = 0x8979 - SWIZZLE_STRQ_ATI = 0x897A - SWIZZLE_STRQ_DQ_ATI = 0x897B -# ??? Not clear where to put new types of mask bits yet - RED_BIT_ATI = 0x00000001 - GREEN_BIT_ATI = 0x00000002 - BLUE_BIT_ATI = 0x00000004 - 2X_BIT_ATI = 0x00000001 - 4X_BIT_ATI = 0x00000002 - 8X_BIT_ATI = 0x00000004 - HALF_BIT_ATI = 0x00000008 - QUARTER_BIT_ATI = 0x00000010 - EIGHTH_BIT_ATI = 0x00000020 - SATURATE_BIT_ATI = 0x00000040 - 2X_BIT_ATI = 0x00000001 - COMP_BIT_ATI = 0x00000002 - NEGATE_BIT_ATI = 0x00000004 - BIAS_BIT_ATI = 0x00000008 - -# ATI_future_use: 0x897C-0x897F - -############################################################################### - -# Khronos OpenML WG / OpenGL ES WG: 0x8980-0x898F - -OML_interlace enum: - INTERLACE_OML = 0x8980 - INTERLACE_READ_OML = 0x8981 - -OML_subsample enum: - FORMAT_SUBSAMPLE_24_24_OML = 0x8982 - FORMAT_SUBSAMPLE_244_244_OML = 0x8983 - -OML_resample enum: - PACK_RESAMPLE_OML = 0x8984 - UNPACK_RESAMPLE_OML = 0x8985 - RESAMPLE_REPLICATE_OML = 0x8986 - RESAMPLE_ZERO_FILL_OML = 0x8987 - RESAMPLE_AVERAGE_OML = 0x8988 - RESAMPLE_DECIMATE_OML = 0x8989 - -OES_point_size_array enum: (OpenGL ES only) - POINT_SIZE_ARRAY_TYPE_OES = 0x898A - POINT_SIZE_ARRAY_STRIDE_OES = 0x898B - POINT_SIZE_ARRAY_POINTER_OES = 0x898C - -OES_matrix_get enum: (OpenGL ES only) - MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES = 0x898D - PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES = 0x898E - TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES = 0x898F - -############################################################################### - -# 3dlabs: 0x8990-0x899F - -############################################################################### - -# Matrox: 0x89A0-0x89FF - -############################################################################### - -# Apple: 0x8A00-0x8A7F - -APPLE_vertex_program_evaluators enum: - VERTEX_ATTRIB_MAP1_APPLE = 0x8A00 - VERTEX_ATTRIB_MAP2_APPLE = 0x8A01 - VERTEX_ATTRIB_MAP1_SIZE_APPLE = 0x8A02 - VERTEX_ATTRIB_MAP1_COEFF_APPLE = 0x8A03 - VERTEX_ATTRIB_MAP1_ORDER_APPLE = 0x8A04 - VERTEX_ATTRIB_MAP1_DOMAIN_APPLE = 0x8A05 - VERTEX_ATTRIB_MAP2_SIZE_APPLE = 0x8A06 - VERTEX_ATTRIB_MAP2_COEFF_APPLE = 0x8A07 - VERTEX_ATTRIB_MAP2_ORDER_APPLE = 0x8A08 - VERTEX_ATTRIB_MAP2_DOMAIN_APPLE = 0x8A09 - -APPLE_fence enum: - DRAW_PIXELS_APPLE = 0x8A0A - FENCE_APPLE = 0x8A0B - -# Enum values updated (Khronos bugs 5311, 632) -APPLE_element_array enum: - ELEMENT_ARRAY_APPLE = 0x8A0C - ELEMENT_ARRAY_TYPE_APPLE = 0x8A0D - ELEMENT_ARRAY_POINTER_APPLE = 0x8A0E - -APPLE_float_pixels enum: - COLOR_FLOAT_APPLE = 0x8A0F - -# APPLE_future_use: 0x8A10 -## From Jeremy 2006/10/18 (Khronos bug 632) - unknown extension name -# MIN_PBUFFER_VIEWPORT_DIMS_APPLE = 0x8A10 - -VERSION_3_1 enum: - use ARB_uniform_buffer_object UNIFORM_BUFFER - -ARB_uniform_buffer_object enum: (additional; see below) - UNIFORM_BUFFER = 0x8A11 - -APPLE_flush_buffer_range enum: - BUFFER_SERIALIZED_MODIFY_APPLE = 0x8A12 - BUFFER_FLUSHING_UNMAP_APPLE = 0x8A13 - -APPLE_aux_depth_stencil enum: - AUX_DEPTH_STENCIL_APPLE = 0x8A14 - -APPLE_row_bytes enum: - PACK_ROW_BYTES_APPLE = 0x8A15 - UNPACK_ROW_BYTES_APPLE = 0x8A16 - -# APPLE_future_use: 0x8A17-0x8A18 - -APPLE_object_purgeable enum: - RELEASED_APPLE = 0x8A19 - VOLATILE_APPLE = 0x8A1A - RETAINED_APPLE = 0x8A1B - UNDEFINED_APPLE = 0x8A1C - PURGEABLE_APPLE = 0x8A1D - -# APPLE_future_use: 0x8A1E - -APPLE_rgb_422 enum: - RGB_422_APPLE = 0x8A1F - use APPLE_ycbcr_422 UNSIGNED_SHORT_8_8_APPLE - use APPLE_ycbcr_422 UNSIGNED_SHORT_8_8_REV_APPLE - -# APPLE_future_use: 0x8A20--0x8A27 - -VERSION_3_1 enum: - use ARB_uniform_buffer_object UNIFORM_BUFFER_BINDING - use ARB_uniform_buffer_object UNIFORM_BUFFER_START - use ARB_uniform_buffer_object UNIFORM_BUFFER_SIZE - use ARB_uniform_buffer_object MAX_VERTEX_UNIFORM_BLOCKS - use ARB_uniform_buffer_object MAX_GEOMETRY_UNIFORM_BLOCKS - use ARB_uniform_buffer_object MAX_FRAGMENT_UNIFORM_BLOCKS - use ARB_uniform_buffer_object MAX_COMBINED_UNIFORM_BLOCKS - use ARB_uniform_buffer_object MAX_UNIFORM_BUFFER_BINDINGS - use ARB_uniform_buffer_object MAX_UNIFORM_BLOCK_SIZE - use ARB_uniform_buffer_object MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS - use ARB_uniform_buffer_object MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS - use ARB_uniform_buffer_object MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS - use ARB_uniform_buffer_object UNIFORM_BUFFER_OFFSET_ALIGNMENT - use ARB_uniform_buffer_object ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH - use ARB_uniform_buffer_object ACTIVE_UNIFORM_BLOCKS - use ARB_uniform_buffer_object UNIFORM_TYPE - use ARB_uniform_buffer_object UNIFORM_SIZE - use ARB_uniform_buffer_object UNIFORM_NAME_LENGTH - use ARB_uniform_buffer_object UNIFORM_BLOCK_INDEX - use ARB_uniform_buffer_object UNIFORM_OFFSET - use ARB_uniform_buffer_object UNIFORM_ARRAY_STRIDE - use ARB_uniform_buffer_object UNIFORM_MATRIX_STRIDE - use ARB_uniform_buffer_object UNIFORM_IS_ROW_MAJOR - use ARB_uniform_buffer_object UNIFORM_BLOCK_BINDING - use ARB_uniform_buffer_object UNIFORM_BLOCK_DATA_SIZE - use ARB_uniform_buffer_object UNIFORM_BLOCK_NAME_LENGTH - use ARB_uniform_buffer_object UNIFORM_BLOCK_ACTIVE_UNIFORMS - use ARB_uniform_buffer_object UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES - use ARB_uniform_buffer_object UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER - use ARB_uniform_buffer_object UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER - use ARB_uniform_buffer_object UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER - use ARB_uniform_buffer_object INVALID_INDEX - -ARB_uniform_buffer_object enum: - UNIFORM_BUFFER_BINDING = 0x8A28 - UNIFORM_BUFFER_START = 0x8A29 - UNIFORM_BUFFER_SIZE = 0x8A2A - MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B - MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C - MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D - MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E - MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F - MAX_UNIFORM_BLOCK_SIZE = 0x8A30 - MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31 - MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32 - MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33 - UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34 - ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35 - ACTIVE_UNIFORM_BLOCKS = 0x8A36 - UNIFORM_TYPE = 0x8A37 - UNIFORM_SIZE = 0x8A38 - UNIFORM_NAME_LENGTH = 0x8A39 - UNIFORM_BLOCK_INDEX = 0x8A3A - UNIFORM_OFFSET = 0x8A3B - UNIFORM_ARRAY_STRIDE = 0x8A3C - UNIFORM_MATRIX_STRIDE = 0x8A3D - UNIFORM_IS_ROW_MAJOR = 0x8A3E - UNIFORM_BLOCK_BINDING = 0x8A3F - UNIFORM_BLOCK_DATA_SIZE = 0x8A40 - UNIFORM_BLOCK_NAME_LENGTH = 0x8A41 - UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42 - UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43 - UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44 - UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45 - UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46 - INVALID_INDEX = 0xFFFFFFFFu - -# APPLE_future_use: 0x8A47 - -EXT_texture_sRGB_decode enum: - TEXTURE_SRGB_DECODE_EXT = 0x8A48 - DECODE_EXT = 0x8A49 - SKIP_DECODE_EXT = 0x8A4A - -# APPLE_future_use: 0x8A4B-0x8A7F - -############################################################################### - -# Matrox: 0x8A80-0x8AEF - -############################################################################### - -# Chromium (Brian Paul): 0x8AF0-0x8B2F - -############################################################################### - -# ARB HLSL shader extensions: 0x8B30-0x8B8F - - -VERSION_3_1 enum: (Promoted from ARB_shader_objects + ARB_texture_rectangle) - SAMPLER_2D_RECT = 0x8B63 # ARB_shader_objects + ARB_texture_rectangle - SAMPLER_2D_RECT_SHADOW = 0x8B64 # ARB_shader_objects + ARB_texture_rectangle - -#@@ separate extensions -VERSION_2_0 enum: (Promoted for OpenGL 2.0; only some values; renaming in many cases) -ARB_shader_objects, ARB_vertex_shader, ARB_fragment_shader enum: -NV_vertex_program3 enum: (reuses 0x8B4C) -##Shader types + room for expansion - FRAGMENT_SHADER = 0x8B30 # VERSION_2_0 - FRAGMENT_SHADER_ARB = 0x8B30 # ARB_fragment_shader - VERTEX_SHADER = 0x8B31 # VERSION_2_0 - VERTEX_SHADER_ARB = 0x8B31 # ARB_vertex_shader -# ARB_future_use: 0x8B32-0x8B3F (for shader types) -##Container types + room for expansion - PROGRAM_OBJECT_ARB = 0x8B40 # ARB_shader_objects -# ARB_future_use: 0x8B41-0x8B47 (for container types) -##Misc. shader enums - SHADER_OBJECT_ARB = 0x8B48 # ARB_shader_objects - MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49 # VERSION_2_0 - MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = 0x8B49 # ARB_fragment_shader - MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A # VERSION_2_0 - MAX_VERTEX_UNIFORM_COMPONENTS_ARB = 0x8B4A # ARB_vertex_shader - MAX_VARYING_FLOATS = 0x8B4B # VERSION_2_0 - MAX_VARYING_FLOATS_ARB = 0x8B4B # ARB_vertex_shader - MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C # VERSION_2_0 - MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 0x8B4C # ARB_vertex_shader, NV_vertex_program3 - MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D # VERSION_2_0 - MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = 0x8B4D # ARB_vertex_shader - OBJECT_TYPE_ARB = 0x8B4E # ARB_shader_objects - SHADER_TYPE = 0x8B4F # VERSION_2_0 (renamed) - OBJECT_SUBTYPE_ARB = 0x8B4F # ARB_shader_objects -##Attribute types + room for expansion. - FLOAT_VEC2 = 0x8B50 # VERSION_2_0 - FLOAT_VEC2_ARB = 0x8B50 # ARB_shader_objects - FLOAT_VEC3 = 0x8B51 # VERSION_2_0 - FLOAT_VEC3_ARB = 0x8B51 # ARB_shader_objects - FLOAT_VEC4 = 0x8B52 # VERSION_2_0 - FLOAT_VEC4_ARB = 0x8B52 # ARB_shader_objects - INT_VEC2 = 0x8B53 # VERSION_2_0 - INT_VEC2_ARB = 0x8B53 # ARB_shader_objects - INT_VEC3 = 0x8B54 # VERSION_2_0 - INT_VEC3_ARB = 0x8B54 # ARB_shader_objects - INT_VEC4 = 0x8B55 # VERSION_2_0 - INT_VEC4_ARB = 0x8B55 # ARB_shader_objects - BOOL = 0x8B56 # VERSION_2_0 - BOOL_ARB = 0x8B56 # ARB_shader_objects - BOOL_VEC2 = 0x8B57 # VERSION_2_0 - BOOL_VEC2_ARB = 0x8B57 # ARB_shader_objects - BOOL_VEC3 = 0x8B58 # VERSION_2_0 - BOOL_VEC3_ARB = 0x8B58 # ARB_shader_objects - BOOL_VEC4 = 0x8B59 # VERSION_2_0 - BOOL_VEC4_ARB = 0x8B59 # ARB_shader_objects - FLOAT_MAT2 = 0x8B5A # VERSION_2_0 - FLOAT_MAT2_ARB = 0x8B5A # ARB_shader_objects - FLOAT_MAT3 = 0x8B5B # VERSION_2_0 - FLOAT_MAT3_ARB = 0x8B5B # ARB_shader_objects - FLOAT_MAT4 = 0x8B5C # VERSION_2_0 - FLOAT_MAT4_ARB = 0x8B5C # ARB_shader_objects - SAMPLER_1D = 0x8B5D # VERSION_2_0 - SAMPLER_1D_ARB = 0x8B5D # ARB_shader_objects - SAMPLER_2D = 0x8B5E # VERSION_2_0 - SAMPLER_2D_ARB = 0x8B5E # ARB_shader_objects - SAMPLER_3D = 0x8B5F # VERSION_2_0 - SAMPLER_3D_ARB = 0x8B5F # ARB_shader_objects - SAMPLER_CUBE = 0x8B60 # VERSION_2_0 - SAMPLER_CUBE_ARB = 0x8B60 # ARB_shader_objects - SAMPLER_1D_SHADOW = 0x8B61 # VERSION_2_0 - SAMPLER_1D_SHADOW_ARB = 0x8B61 # ARB_shader_objects - SAMPLER_2D_SHADOW = 0x8B62 # VERSION_2_0 - SAMPLER_2D_SHADOW_ARB = 0x8B62 # ARB_shader_objects - SAMPLER_2D_RECT_ARB = 0x8B63 # ARB_shader_objects - SAMPLER_2D_RECT_SHADOW_ARB = 0x8B64 # ARB_shader_objects - FLOAT_MAT2x3 = 0x8B65 # VERSION_2_1 - FLOAT_MAT2x4 = 0x8B66 # VERSION_2_1 - FLOAT_MAT3x2 = 0x8B67 # VERSION_2_1 - FLOAT_MAT3x4 = 0x8B68 # VERSION_2_1 - FLOAT_MAT4x2 = 0x8B69 # VERSION_2_1 - FLOAT_MAT4x3 = 0x8B6A # VERSION_2_1 -# ARB_future_use: 0x8B6B-0x8B7F (for attribute types) - DELETE_STATUS = 0x8B80 # VERSION_2_0 (renamed) - OBJECT_DELETE_STATUS_ARB = 0x8B80 # ARB_shader_objects - COMPILE_STATUS = 0x8B81 # VERSION_2_0 (renamed) - OBJECT_COMPILE_STATUS_ARB = 0x8B81 # ARB_shader_objects - LINK_STATUS = 0x8B82 # VERSION_2_0 (renamed) - OBJECT_LINK_STATUS_ARB = 0x8B82 # ARB_shader_objects - VALIDATE_STATUS = 0x8B83 # VERSION_2_0 (renamed) - OBJECT_VALIDATE_STATUS_ARB = 0x8B83 # ARB_shader_objects - INFO_LOG_LENGTH = 0x8B84 # VERSION_2_0 (renamed) - OBJECT_INFO_LOG_LENGTH_ARB = 0x8B84 # ARB_shader_objects - ATTACHED_SHADERS = 0x8B85 # VERSION_2_0 (renamed) - OBJECT_ATTACHED_OBJECTS_ARB = 0x8B85 # ARB_shader_objects - ACTIVE_UNIFORMS = 0x8B86 # VERSION_2_0 (renamed) - OBJECT_ACTIVE_UNIFORMS_ARB = 0x8B86 # ARB_shader_objects - ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87 # VERSION_2_0 (renamed) - OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 0x8B87 # ARB_shader_objects - SHADER_SOURCE_LENGTH = 0x8B88 # VERSION_2_0 (renamed) - OBJECT_SHADER_SOURCE_LENGTH_ARB = 0x8B88 # ARB_shader_objects - ACTIVE_ATTRIBUTES = 0x8B89 # VERSION_2_0 (renamed) - OBJECT_ACTIVE_ATTRIBUTES_ARB = 0x8B89 # ARB_vertex_shader - ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A # VERSION_2_0 (renamed) - OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB = 0x8B8A # ARB_vertex_shader - FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B # VERSION_2_0 - FRAGMENT_SHADER_DERIVATIVE_HINT_ARB = 0x8B8B # ARB_fragment_shader - SHADING_LANGUAGE_VERSION = 0x8B8C # VERSION_2_0 - SHADING_LANGUAGE_VERSION_ARB = 0x8B8C # ARB_shading_language_100 - -# Aliases ARB_shader_objects enum above -OES_texture3D enum: (OpenGL ES only; additional; see above) - SAMPLER_3D_OES = 0x8B5F # ARB_shader_objects - -# Aliases ARB_fragment_shader enum above -OES_standard_derivatives enum: (OpenGL ES only) - FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B - -VERSION_3_0 enum: - MAX_VARYING_COMPONENTS = 0x8B4B # VERSION_3_0 # alias GL_MAX_VARYING_FLOATS - -ARB_geometry_shader4 enum: (additional; see below; note: no ARB suffixes) - use VERSION_3_0 MAX_VARYING_COMPONENTS - -EXT_geometry_shader4 enum: (additional; see below) - MAX_VARYING_COMPONENTS_EXT = 0x8B4B - -VERSION_2_0 enum: - CURRENT_PROGRAM = 0x8B8D - -# Aliases CURRENT_PROGRAM -EXT_separate_shader_objects enum: - ACTIVE_PROGRAM_EXT = 0x8B8D - -# ARB_future_use: 0x8B8E-0x8B8F - -############################################################################### - -# Khronos OpenGL ES WG: 0x8B90-0x8B9F - -OES_compressed_paletted_texture enum: (OpenGL ES only) - PALETTE4_RGB8_OES = 0x8B90 - PALETTE4_RGBA8_OES = 0x8B91 - PALETTE4_R5_G6_B5_OES = 0x8B92 - PALETTE4_RGBA4_OES = 0x8B93 - PALETTE4_RGB5_A1_OES = 0x8B94 - PALETTE8_RGB8_OES = 0x8B95 - PALETTE8_RGBA8_OES = 0x8B96 - PALETTE8_R5_G6_B5_OES = 0x8B97 - PALETTE8_RGBA4_OES = 0x8B98 - PALETTE8_RGB5_A1_OES = 0x8B99 - -OES_read_format enum: (OpenGL ES, also implemented in Mesa) - IMPLEMENTATION_COLOR_READ_TYPE_OES = 0x8B9A - IMPLEMENTATION_COLOR_READ_FORMAT_OES = 0x8B9B - -# Also OpenGL ES -ARB_ES2_compatibility enum: (additional; see below) - IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A - IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B - -OES_point_size_array enum: (OpenGL ES only; additional; see above) - POINT_SIZE_ARRAY_OES = 0x8B9C - -OES_draw_texture enum: (OpenGL ES only) - TEXTURE_CROP_RECT_OES = 0x8B9D - -OES_matrix_palette enum: (OpenGL ES only) - MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES = 0x8B9E - -OES_point_size_array enum: (OpenGL ES only; additional; see above) - POINT_SIZE_ARRAY_BUFFER_BINDING_OES = 0x8B9F - -############################################################################### - -# Seaweed: 0x8BA0-0x8BAF - -############################################################################### - -# Mesa: 0x8BB0-0x8BBF -# Probably one of the two 0x8BB4 enums should be 0x8BB5, but the -# extension spec is not complete in any event. -MESA_program_debug enum: - FRAGMENT_PROGRAM_POSITION_MESA = 0x8BB0 - FRAGMENT_PROGRAM_CALLBACK_MESA = 0x8BB1 - FRAGMENT_PROGRAM_CALLBACK_FUNC_MESA = 0x8BB2 - FRAGMENT_PROGRAM_CALLBACK_DATA_MESA = 0x8BB3 - VERTEX_PROGRAM_CALLBACK_MESA = 0x8BB4 - VERTEX_PROGRAM_POSITION_MESA = 0x8BB4 - VERTEX_PROGRAM_CALLBACK_FUNC_MESA = 0x8BB6 - VERTEX_PROGRAM_CALLBACK_DATA_MESA = 0x8BB7 - -############################################################################### - -# ATI: 0x8BC0-0x8BFF - -AMD_performance_monitor enum: - COUNTER_TYPE_AMD = 0x8BC0 - COUNTER_RANGE_AMD = 0x8BC1 - UNSIGNED_INT64_AMD = 0x8BC2 - PERCENTAGE_AMD = 0x8BC3 - PERFMON_RESULT_AVAILABLE_AMD = 0x8BC4 - PERFMON_RESULT_SIZE_AMD = 0x8BC5 - PERFMON_RESULT_AMD = 0x8BC6 - -# ATI_future_use: 0x8BC7-0x8BD1 - -QCOM_extended_get enum: (OpenGL ES only) - TEXTURE_WIDTH_QCOM = 0x8BD2 - TEXTURE_HEIGHT_QCOM = 0x8BD3 - TEXTURE_DEPTH_QCOM = 0x8BD4 - TEXTURE_INTERNAL_FORMAT_QCOM = 0x8BD5 - TEXTURE_FORMAT_QCOM = 0x8BD6 - TEXTURE_TYPE_QCOM = 0x8BD7 - TEXTURE_IMAGE_VALID_QCOM = 0x8BD8 - TEXTURE_NUM_LEVELS_QCOM = 0x8BD9 - TEXTURE_TARGET_QCOM = 0x8BDA - TEXTURE_OBJECT_VALID_QCOM = 0x8BDB - STATE_RESTORE = 0x8BDC - -# ATI_future_use: 0x8BDD-0x8BFF - -############################################################################### - -# Imagination Tech.: 0x8C00-0x8C0F - -IMG_texture_compression_pvrtc enum: (OpenGL ES only) - COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00 - COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01 - COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02 - COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03 - -IMG_texture_env_enhanced_fixed_function enum: (OpenGL ES only) - MODULATE_COLOR_IMG = 0x8C04 - RECIP_ADD_SIGNED_ALPHA_IMG = 0x8C05 - TEXTURE_ALPHA_MODULATE_IMG = 0x8C06 - FACTOR_ALPHA_MODULATE_IMG = 0x8C07 - FRAGMENT_ALPHA_MODULATE_IMG = 0x8C08 - ADD_BLEND_IMG = 0x8C09 - -IMG_shader_binary enum: (OpenGL ES only) - SGX_BINARY_IMG = 0x8C0A - -# IMG_future_use: 0x8C0B-0x8C0F - -############################################################################### - -# NVIDIA: 0x8C10-0x8C8F (Pat Brown) - -VERSION_3_0 enum: - use ARB_framebuffer_object TEXTURE_RED_TYPE - use ARB_framebuffer_object TEXTURE_GREEN_TYPE - use ARB_framebuffer_object TEXTURE_BLUE_TYPE - use ARB_framebuffer_object TEXTURE_ALPHA_TYPE - use ARB_framebuffer_object TEXTURE_LUMINANCE_TYPE - use ARB_framebuffer_object TEXTURE_INTENSITY_TYPE - use ARB_framebuffer_object TEXTURE_DEPTH_TYPE - use ARB_framebuffer_object UNSIGNED_NORMALIZED - -ARB_framebuffer_object enum: (note: no ARB suffixes) - TEXTURE_RED_TYPE = 0x8C10 # VERSION_3_0 / ARB_fbo - TEXTURE_GREEN_TYPE = 0x8C11 # VERSION_3_0 / ARB_fbo - TEXTURE_BLUE_TYPE = 0x8C12 # VERSION_3_0 / ARB_fbo - TEXTURE_ALPHA_TYPE = 0x8C13 # VERSION_3_0 / ARB_fbo - TEXTURE_LUMINANCE_TYPE = 0x8C14 # VERSION_3_0 / ARB_fbo - TEXTURE_INTENSITY_TYPE = 0x8C15 # VERSION_3_0 / ARB_fbo - TEXTURE_DEPTH_TYPE = 0x8C16 # VERSION_3_0 / ARB_fbo - UNSIGNED_NORMALIZED = 0x8C17 # VERSION_3_0 / ARB_fbo - -ARB_texture_float enum: (additional; see above) - TEXTURE_RED_TYPE_ARB = 0x8C10 - TEXTURE_GREEN_TYPE_ARB = 0x8C11 - TEXTURE_BLUE_TYPE_ARB = 0x8C12 - TEXTURE_ALPHA_TYPE_ARB = 0x8C13 - TEXTURE_LUMINANCE_TYPE_ARB = 0x8C14 - TEXTURE_INTENSITY_TYPE_ARB = 0x8C15 - TEXTURE_DEPTH_TYPE_ARB = 0x8C16 - UNSIGNED_NORMALIZED_ARB = 0x8C17 - -VERSION_3_0 enum: - TEXTURE_1D_ARRAY = 0x8C18 # VERSION_3_0 - PROXY_TEXTURE_1D_ARRAY = 0x8C19 # VERSION_3_0 - TEXTURE_2D_ARRAY = 0x8C1A # VERSION_3_0 - PROXY_TEXTURE_2D_ARRAY = 0x8C1B # VERSION_3_0 - TEXTURE_BINDING_1D_ARRAY = 0x8C1C # VERSION_3_0 - TEXTURE_BINDING_2D_ARRAY = 0x8C1D # VERSION_3_0 - -EXT_texture_array enum: - TEXTURE_1D_ARRAY_EXT = 0x8C18 - PROXY_TEXTURE_1D_ARRAY_EXT = 0x8C19 - TEXTURE_2D_ARRAY_EXT = 0x8C1A - PROXY_TEXTURE_2D_ARRAY_EXT = 0x8C1B - TEXTURE_BINDING_1D_ARRAY_EXT = 0x8C1C - TEXTURE_BINDING_2D_ARRAY_EXT = 0x8C1D - -# NV_future_use: 0x8C1E-0x8C25 - -VERSION_3_2 enum: - MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29 - -ARB_geometry_shader4 enum: (additional; see below) - MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB = 0x8C29 - -NV_geometry_program4 enum: - GEOMETRY_PROGRAM_NV = 0x8C26 - MAX_PROGRAM_OUTPUT_VERTICES_NV = 0x8C27 - MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = 0x8C28 - MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = 0x8C29 - -VERSION_3_1 enum: - TEXTURE_BUFFER = 0x8C2A - MAX_TEXTURE_BUFFER_SIZE = 0x8C2B - TEXTURE_BINDING_BUFFER = 0x8C2C - TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D - TEXTURE_BUFFER_FORMAT = 0x8C2E - -ARB_texture_buffer_object enum: - TEXTURE_BUFFER_ARB = 0x8C2A - MAX_TEXTURE_BUFFER_SIZE_ARB = 0x8C2B - TEXTURE_BINDING_BUFFER_ARB = 0x8C2C - TEXTURE_BUFFER_DATA_STORE_BINDING_ARB = 0x8C2D - TEXTURE_BUFFER_FORMAT_ARB = 0x8C2E - -EXT_texture_buffer_object enum: - TEXTURE_BUFFER_EXT = 0x8C2A - MAX_TEXTURE_BUFFER_SIZE_EXT = 0x8C2B - TEXTURE_BINDING_BUFFER_EXT = 0x8C2C - TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = 0x8C2D - TEXTURE_BUFFER_FORMAT_EXT = 0x8C2E - -ARB_occlusion_query2 enum: - ANY_SAMPLES_PASSED = 0x8C2F - -# NV_future_use: 0x8C30-0x8C35 - -ARB_sample_shading enum: - SAMPLE_SHADING_ARB = 0x8C36 - MIN_SAMPLE_SHADING_VALUE_ARB = 0x8C37 - -# NV_future_use: 0x8C38-0x8C39 - -VERSION_3_0 enum: - R11F_G11F_B10F = 0x8C3A # VERSION_3_0 - UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B # VERSION_3_0 - -EXT_packed_float enum: - R11F_G11F_B10F_EXT = 0x8C3A - UNSIGNED_INT_10F_11F_11F_REV_EXT = 0x8C3B - RGBA_SIGNED_COMPONENTS_EXT = 0x8C3C - -VERSION_3_0 enum: - RGB9_E5 = 0x8C3D # VERSION_3_0 - UNSIGNED_INT_5_9_9_9_REV = 0x8C3E # VERSION_3_0 - TEXTURE_SHARED_SIZE = 0x8C3F # VERSION_3_0 - -EXT_texture_shared_exponent enum: - RGB9_E5_EXT = 0x8C3D - UNSIGNED_INT_5_9_9_9_REV_EXT = 0x8C3E - TEXTURE_SHARED_SIZE_EXT = 0x8C3F - -VERSION_2_1 enum: (Generic formats promoted for OpenGL 2.1) - SRGB = 0x8C40 # VERSION_2_1 - SRGB8 = 0x8C41 # VERSION_2_1 - SRGB_ALPHA = 0x8C42 # VERSION_2_1 - SRGB8_ALPHA8 = 0x8C43 # VERSION_2_1 - SLUMINANCE_ALPHA = 0x8C44 # VERSION_2_1 - SLUMINANCE8_ALPHA8 = 0x8C45 # VERSION_2_1 - SLUMINANCE = 0x8C46 # VERSION_2_1 - SLUMINANCE8 = 0x8C47 # VERSION_2_1 - COMPRESSED_SRGB = 0x8C48 # VERSION_2_1 - COMPRESSED_SRGB_ALPHA = 0x8C49 # VERSION_2_1 - COMPRESSED_SLUMINANCE = 0x8C4A # VERSION_2_1 - COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B # VERSION_2_1 - -EXT_texture_sRGB enum: - SRGB_EXT = 0x8C40 # EXT_texture_sRGB - SRGB8_EXT = 0x8C41 # EXT_texture_sRGB - SRGB_ALPHA_EXT = 0x8C42 # EXT_texture_sRGB - SRGB8_ALPHA8_EXT = 0x8C43 # EXT_texture_sRGB - SLUMINANCE_ALPHA_EXT = 0x8C44 # EXT_texture_sRGB - SLUMINANCE8_ALPHA8_EXT = 0x8C45 # EXT_texture_sRGB - SLUMINANCE_EXT = 0x8C46 # EXT_texture_sRGB - SLUMINANCE8_EXT = 0x8C47 # EXT_texture_sRGB - COMPRESSED_SRGB_EXT = 0x8C48 # EXT_texture_sRGB - COMPRESSED_SRGB_ALPHA_EXT = 0x8C49 # EXT_texture_sRGB - COMPRESSED_SLUMINANCE_EXT = 0x8C4A # EXT_texture_sRGB - COMPRESSED_SLUMINANCE_ALPHA_EXT = 0x8C4B # EXT_texture_sRGB - COMPRESSED_SRGB_S3TC_DXT1_EXT = 0x8C4C - COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8C4D - COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E - COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F - -# NV_future_use: 0x8C50-0x8C6F - -EXT_texture_compression_latc enum: - COMPRESSED_LUMINANCE_LATC1_EXT = 0x8C70 - COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = 0x8C71 - COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C72 - COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C73 - -NV_tessellation_program5 enum: - TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV = 0x8C74 - TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV = 0x8C75 - -#@@ separate extensions -VERSION_3_0 enum: -EXT_transform_feedback enum: -NV_transform_feedback enum: - TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76 # VERSION_3_0 - TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT = 0x8C76 - BACK_PRIMARY_COLOR_NV = 0x8C77 - BACK_SECONDARY_COLOR_NV = 0x8C78 - TEXTURE_COORD_NV = 0x8C79 - CLIP_DISTANCE_NV = 0x8C7A - VERTEX_ID_NV = 0x8C7B - PRIMITIVE_ID_NV = 0x8C7C - GENERIC_ATTRIB_NV = 0x8C7D - TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8C7E - TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F # VERSION_3_0 - TRANSFORM_FEEDBACK_BUFFER_MODE_EXT = 0x8C7F - TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8C7F - MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80 # VERSION_3_0 - MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT = 0x8C80 - MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8C80 - ACTIVE_VARYINGS_NV = 0x8C81 - ACTIVE_VARYING_MAX_LENGTH_NV = 0x8C82 - TRANSFORM_FEEDBACK_VARYINGS = 0x8C83 # VERSION_3_0 - TRANSFORM_FEEDBACK_VARYINGS_EXT = 0x8C83 - TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8C83 - TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84 # VERSION_3_0 - TRANSFORM_FEEDBACK_BUFFER_START_EXT = 0x8C84 - TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8C84 - TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85 # VERSION_3_0 - TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT = 0x8C85 - TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8C85 - TRANSFORM_FEEDBACK_RECORD_NV = 0x8C86 - PRIMITIVES_GENERATED = 0x8C87 # VERSION_3_0 - PRIMITIVES_GENERATED_EXT = 0x8C87 - PRIMITIVES_GENERATED_NV = 0x8C87 - TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88 # VERSION_3_0 - TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT = 0x8C88 - TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8C88 - RASTERIZER_DISCARD = 0x8C89 # VERSION_3_0 - RASTERIZER_DISCARD_EXT = 0x8C89 - RASTERIZER_DISCARD_NV = 0x8C89 - MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A # VERSION_3_0 - MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT = 0x8C8A - MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV = 0x8C8A - MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B # VERSION_3_0 - MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT = 0x8C8B - MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8C8B - INTERLEAVED_ATTRIBS = 0x8C8C # VERSION_3_0 - INTERLEAVED_ATTRIBS_EXT = 0x8C8C - INTERLEAVED_ATTRIBS_NV = 0x8C8C - SEPARATE_ATTRIBS = 0x8C8D # VERSION_3_0 - SEPARATE_ATTRIBS_EXT = 0x8C8D - SEPARATE_ATTRIBS_NV = 0x8C8D - TRANSFORM_FEEDBACK_BUFFER = 0x8C8E # VERSION_3_0 - TRANSFORM_FEEDBACK_BUFFER_EXT = 0x8C8E - TRANSFORM_FEEDBACK_BUFFER_NV = 0x8C8E - TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F # VERSION_3_0 - TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT = 0x8C8F - TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8C8F - -############################################################################### - -# ATI: 0x8C90-0x8C9F (Affie Munshi, OpenGL ES extensions) - -# Reassigned to Qualcomm at time of mobile/desktop split (bug 5874) -# Qualcomm__future_use: 0x8C90-0x8C91 - -AMD_compressed_ATC_texture enum: (OpenGL ES only) - ATC_RGB_AMD = 0x8C92 - ATC_RGBA_EXPLICIT_ALPHA_AMD = 0x8C93 - -# Reassigned to Qualcomm at time of mobile/desktop split (bug 5874) -# Qualcomm_future_use: 0x8C94-0x8C9F - -############################################################################### - -# OpenGL ARB: 0x8CA0-0x8CAF - -VERSION_2_0 enum: - POINT_SPRITE_COORD_ORIGIN = 0x8CA0 - LOWER_LEFT = 0x8CA1 - UPPER_LEFT = 0x8CA2 - STENCIL_BACK_REF = 0x8CA3 - STENCIL_BACK_VALUE_MASK = 0x8CA4 - STENCIL_BACK_WRITEMASK = 0x8CA5 - -VERSION_3_0 enum: - use ARB_framebuffer_object FRAMEBUFFER_BINDING - use ARB_framebuffer_object DRAW_FRAMEBUFFER_BINDING - use ARB_framebuffer_object RENDERBUFFER_BINDING - -ARB_framebuffer_object enum: (note: no ARB suffixes) - FRAMEBUFFER_BINDING = 0x8CA6 # VERSION_3_0 / ARB_fbo - DRAW_FRAMEBUFFER_BINDING = 0x8CA6 # VERSION_3_0 / ARB_fbo # alias GL_FRAMEBUFFER_BINDING - RENDERBUFFER_BINDING = 0x8CA7 # VERSION_3_0 / ARB_fbo - -EXT_framebuffer_object enum: (additional; see below) - FRAMEBUFFER_BINDING_EXT = 0x8CA6 - RENDERBUFFER_BINDING_EXT = 0x8CA7 - -EXT_framebuffer_blit enum: (additional; see below) - DRAW_FRAMEBUFFER_BINDING_EXT = 0x8CA6 # EXT_framebuffer_blit # alias GL_FRAMEBUFFER_BINDING_EXT - -# Aliases EXT_framebuffer_object enums above -OES_framebuffer_object enum: (OpenGL ES only; additional; see below) - FRAMEBUFFER_BINDING_OES = 0x8CA6 - RENDERBUFFER_BINDING_OES = 0x8CA7 - -# Aliases EXT_framebuffer_object enums above -ANGLE_framebuffer_blit enum: (OpenGL ES only; additional; see below) - FRAMEBUFFER_BINDING_ANGLE = 0x8CA6 - RENDERBUFFER_BINDING_ANGLE = 0x8CA7 - -VERSION_3_0 enum: - use ARB_framebuffer_object READ_FRAMEBUFFER - use ARB_framebuffer_object DRAW_FRAMEBUFFER - use ARB_framebuffer_object READ_FRAMEBUFFER_BINDING - -ARB_framebuffer_object enum: (note: no ARB suffixes) - READ_FRAMEBUFFER = 0x8CA8 # VERSION_3_0 / ARB_fbo - DRAW_FRAMEBUFFER = 0x8CA9 # VERSION_3_0 / ARB_fbo - READ_FRAMEBUFFER_BINDING = 0x8CAA # VERSION_3_0 / ARB_fbo - -# Aliases ARB_framebuffer_object enums above -ANGLE_framebuffer_blit enum: (OpenGL ES only; additional; see above) - READ_FRAMEBUFFER_ANGLE = 0x8CA8 - DRAW_FRAMEBUFFER_ANGLE = 0x8CA9 - -EXT_framebuffer_blit enum: - READ_FRAMEBUFFER_EXT = 0x8CA8 - DRAW_FRAMEBUFFER_EXT = 0x8CA9 - DRAW_FRAMEBUFFER_BINDING_EXT = 0x8CA6 # alias GL_FRAMEBUFFER_BINDING_EXT - READ_FRAMEBUFFER_BINDING_EXT = 0x8CAA - -VERSION_3_0 enum: - use ARB_framebuffer_object RENDERBUFFER_SAMPLES - -ARB_framebuffer_object enum: (note: no ARB suffixes) - RENDERBUFFER_SAMPLES = 0x8CAB # VERSION_3_0 / ARB_fbo - -# Aliases ARB_framebuffer_object enums above -ANGLE_framebuffer_multisample enum: (OpenGL ES only) - RENDERBUFFER_SAMPLES_ANGLE = 0x8CAB - -EXT_framebuffer_multisample enum: - RENDERBUFFER_SAMPLES_EXT = 0x8CAB - -NV_framebuffer_multisample_coverage enum: (additional; see below) - RENDERBUFFER_COVERAGE_SAMPLES_NV = 0x8CAB - -# All enums except external format are incompatible with NV_depth_buffer_float -VERSION_3_0 enum: -ARB_depth_buffer_float enum: (note: no ARB suffixes) - DEPTH_COMPONENT32F = 0x8CAC - DEPTH32F_STENCIL8 = 0x8CAD - -# ARB_future_use: 0x8CAF - -############################################################################### - -# 3Dlabs: 0x8CB0-0x8CCF (Barthold Lichtenbelt, 2004/12/1) - -############################################################################### - -# OpenGL ARB: 0x8CD0-0x8D5F (Framebuffer object specification + headroom) - -#@@ separate extensions -VERSION_3_0 enum: -ARB_geometry_shader4 enum: (additional; see below; note: no ARB suffixes) -ARB_framebuffer_object enum: (note: no ARB suffixes) -EXT_framebuffer_object enum: (additional; see above) - FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT = 0x8CD0 - FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT = 0x8CD1 - FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT = 0x8CD2 - FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT = 0x8CD3 - FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT = 0x8CD4 - FRAMEBUFFER_COMPLETE = 0x8CD5 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_COMPLETE_EXT = 0x8CD5 - FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT = 0x8CD6 - FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT = 0x8CD7 -## Removed 2005/09/26 in revision #117 of the extension: -## FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT = 0x8CD8 - FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT = 0x8CD9 - FRAMEBUFFER_INCOMPLETE_FORMATS_EXT = 0x8CDA - FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT = 0x8CDB - FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT = 0x8CDC - FRAMEBUFFER_UNSUPPORTED = 0x8CDD # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_UNSUPPORTED_EXT = 0x8CDD -## Removed 2005/05/31 in revision #113 of the extension: -## FRAMEBUFFER_STATUS_ERROR_EXT = 0x8CDE - MAX_COLOR_ATTACHMENTS = 0x8CDF # VERSION_3_0 / ARB_fbo - MAX_COLOR_ATTACHMENTS_EXT = 0x8CDF - COLOR_ATTACHMENT0 = 0x8CE0 # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT0_EXT = 0x8CE0 - COLOR_ATTACHMENT1 = 0x8CE1 # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT1_EXT = 0x8CE1 - COLOR_ATTACHMENT2 = 0x8CE2 # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT2_EXT = 0x8CE2 - COLOR_ATTACHMENT3 = 0x8CE3 # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT3_EXT = 0x8CE3 - COLOR_ATTACHMENT4 = 0x8CE4 # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT4_EXT = 0x8CE4 - COLOR_ATTACHMENT5 = 0x8CE5 # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT5_EXT = 0x8CE5 - COLOR_ATTACHMENT6 = 0x8CE6 # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT6_EXT = 0x8CE6 - COLOR_ATTACHMENT7 = 0x8CE7 # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT7_EXT = 0x8CE7 - COLOR_ATTACHMENT8 = 0x8CE8 # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT8_EXT = 0x8CE8 - COLOR_ATTACHMENT9 = 0x8CE9 # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT9_EXT = 0x8CE9 - COLOR_ATTACHMENT10 = 0x8CEA # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT10_EXT = 0x8CEA - COLOR_ATTACHMENT11 = 0x8CEB # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT11_EXT = 0x8CEB - COLOR_ATTACHMENT12 = 0x8CEC # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT12_EXT = 0x8CEC - COLOR_ATTACHMENT13 = 0x8CED # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT13_EXT = 0x8CED - COLOR_ATTACHMENT14 = 0x8CEE # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT14_EXT = 0x8CEE - COLOR_ATTACHMENT15 = 0x8CEF # VERSION_3_0 / ARB_fbo - COLOR_ATTACHMENT15_EXT = 0x8CEF -# 0x8CF0-0x8CFF reserved for color attachments 16-31, if needed - DEPTH_ATTACHMENT = 0x8D00 # VERSION_3_0 / ARB_fbo - DEPTH_ATTACHMENT_EXT = 0x8D00 -# 0x8D01-0x8D1F reserved for depth attachments 1-31, if needed - STENCIL_ATTACHMENT = 0x8D20 # VERSION_3_0 / ARB_fbo - STENCIL_ATTACHMENT_EXT = 0x8D20 -# 0x8D21-0x8D3F reserved for stencil attachments 1-31, if needed - FRAMEBUFFER = 0x8D40 # VERSION_3_0 / ARB_fbo - FRAMEBUFFER_EXT = 0x8D40 - RENDERBUFFER = 0x8D41 # VERSION_3_0 / ARB_fbo - RENDERBUFFER_EXT = 0x8D41 - RENDERBUFFER_WIDTH = 0x8D42 # VERSION_3_0 / ARB_fbo - RENDERBUFFER_WIDTH_EXT = 0x8D42 - RENDERBUFFER_HEIGHT = 0x8D43 # VERSION_3_0 / ARB_fbo - RENDERBUFFER_HEIGHT_EXT = 0x8D43 - RENDERBUFFER_INTERNAL_FORMAT = 0x8D44 # VERSION_3_0 / ARB_fbo - RENDERBUFFER_INTERNAL_FORMAT_EXT = 0x8D44 -# 0x8D45 unused (reserved for STENCIL_INDEX_EXT, but now use core STENCIL_INDEX instead) - STENCIL_INDEX1 = 0x8D46 # VERSION_3_0 / ARB_fbo - STENCIL_INDEX1_EXT = 0x8D46 - STENCIL_INDEX4 = 0x8D47 # VERSION_3_0 / ARB_fbo - STENCIL_INDEX4_EXT = 0x8D47 - STENCIL_INDEX8 = 0x8D48 # VERSION_3_0 / ARB_fbo - STENCIL_INDEX8_EXT = 0x8D48 - STENCIL_INDEX16 = 0x8D49 # VERSION_3_0 / ARB_fbo - STENCIL_INDEX16_EXT = 0x8D49 -# 0x8D4A-0x8D4D reserved for additional stencil formats -# Added 2005/05/31 in revision #113 of the extension: - RENDERBUFFER_RED_SIZE = 0x8D50 # VERSION_3_0 / ARB_fbo - RENDERBUFFER_RED_SIZE_EXT = 0x8D50 - RENDERBUFFER_GREEN_SIZE = 0x8D51 # VERSION_3_0 / ARB_fbo - RENDERBUFFER_GREEN_SIZE_EXT = 0x8D51 - RENDERBUFFER_BLUE_SIZE = 0x8D52 # VERSION_3_0 / ARB_fbo - RENDERBUFFER_BLUE_SIZE_EXT = 0x8D52 - RENDERBUFFER_ALPHA_SIZE = 0x8D53 # VERSION_3_0 / ARB_fbo - RENDERBUFFER_ALPHA_SIZE_EXT = 0x8D53 - RENDERBUFFER_DEPTH_SIZE = 0x8D54 # VERSION_3_0 / ARB_fbo - RENDERBUFFER_DEPTH_SIZE_EXT = 0x8D54 - RENDERBUFFER_STENCIL_SIZE = 0x8D55 # VERSION_3_0 / ARB_fbo - RENDERBUFFER_STENCIL_SIZE_EXT = 0x8D55 - -# Aliases EXT_framebuffer_object enum above -# @@@??? does this appear in OES_texture3D, or OES_framebuffer_object? -# extension spec & gl2ext.h disagree! -OES_texture3D enum: (OpenGL ES only; additional; see above) - FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES = 0x8CD4 - -# Aliases EXT_framebuffer_object enums above -OES_framebuffer_object enum: (OpenGL ES only; additional; see below) - FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_OES = 0x8CD0 - FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_OES = 0x8CD1 - FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_OES = 0x8CD2 - FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_OES = 0x8CD3 - FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES = 0x8CD4 - FRAMEBUFFER_COMPLETE_OES = 0x8CD5 - FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES = 0x8CD6 - FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_OES = 0x8CD7 - FRAMEBUFFER_INCOMPLETE_DIMENSIONS_OES = 0x8CD9 - FRAMEBUFFER_INCOMPLETE_FORMATS_OES = 0x8CDA - FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_OES = 0x8CDB - FRAMEBUFFER_INCOMPLETE_READ_BUFFER_OES = 0x8CDC - FRAMEBUFFER_UNSUPPORTED_OES = 0x8CDD - COLOR_ATTACHMENT0_OES = 0x8CE0 - DEPTH_ATTACHMENT_OES = 0x8D00 - STENCIL_ATTACHMENT_OES = 0x8D20 - FRAMEBUFFER_OES = 0x8D40 - RENDERBUFFER_OES = 0x8D41 - RENDERBUFFER_WIDTH_OES = 0x8D42 - RENDERBUFFER_HEIGHT_OES = 0x8D43 - RENDERBUFFER_INTERNAL_FORMAT_OES = 0x8D44 - STENCIL_INDEX1_OES = 0x8D46 - STENCIL_INDEX4_OES = 0x8D47 - STENCIL_INDEX8_OES = 0x8D48 - RENDERBUFFER_RED_SIZE_OES = 0x8D50 - RENDERBUFFER_GREEN_SIZE_OES = 0x8D51 - RENDERBUFFER_BLUE_SIZE_OES = 0x8D52 - RENDERBUFFER_ALPHA_SIZE_OES = 0x8D53 - RENDERBUFFER_DEPTH_SIZE_OES = 0x8D54 - RENDERBUFFER_STENCIL_SIZE_OES = 0x8D55 - -OES_stencil1 enum: (OpenGL ES only; additional; see below) - use OES_framebuffer_object STENCIL_INDEX1_OES - -OES_stencil4 enum: (OpenGL ES only; additional; see below) - use OES_framebuffer_object STENCIL_INDEX4_OES - -OES_stencil8 enum: (OpenGL ES only; additional; see below) - use OES_framebuffer_object STENCIL_INDEX8_OES - -VERSION_3_0 enum: -ARB_framebuffer_object enum: (note: no ARB suffixes) -# Added 2006/10/10 in revision #6b of the extension. - FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56 # VERSION_3_0 / ARB_fbo - MAX_SAMPLES = 0x8D57 # VERSION_3_0 / ARB_fbo - -# Aliases ARB_framebuffer_object enums above -ANGLE_framebuffer_multisample enum: (OpenGL ES only; additional; see above) - FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE = 0x8D56 - MAX_SAMPLES_ANGLE = 0x8D57 - -EXT_framebuffer_multisample enum: (additional; see above) - FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT = 0x8D56 - MAX_SAMPLES_EXT = 0x8D57 - -# 0x8D58-0x8D5F reserved for additional FBO enums - -NV_geometry_program4 enum: (additional; see above) - FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4 - -############################################################################### - -# Khronos OpenGL ES WG: 0x8D60-0x8D6F - -OES_texture_cube_map enum: (OpenGL ES only) - TEXTURE_GEN_STR_OES = 0x8D60 - -OES_texture_float enum: (OpenGL ES only) - HALF_FLOAT_OES = 0x8D61 - -OES_vertex_half_float enum: (OpenGL ES only) - use OES_texture_float HALF_FLOAT_OES - -OES_framebuffer_object enum: (OpenGL ES only) - RGB565_OES = 0x8D62 - -# Khronos_future_use: 0x8D63 - -OES_compressed_ETC1_RGB8_texture enum: (OpenGL ES only) - ETC1_RGB8_OES = 0x8D64 - -OES_EGL_image_external enum: (OpenGL ES only) (Khronos bug 4621) - TEXTURE_EXTERNAL_OES = 0x8D65 - SAMPLER_EXTERNAL_OES = 0x8D66 - TEXTURE_BINDING_EXTERNAL_OES = 0x8D67 - REQUIRED_TEXTURE_IMAGE_UNITS_OES = 0x8D68 - -# Khronos_future_use: 0x8D69-0x8D6F - -############################################################################### - -# NVIDIA: 0x8D70-0x8DEF -# Reserved per email from Pat Brown 2005/10/13 - -#@@ separate extensions -VERSION_3_0 enum: -EXT_texture_integer enum: - RGBA32UI = 0x8D70 # VERSION_3_0 - RGBA32UI_EXT = 0x8D70 - RGB32UI = 0x8D71 # VERSION_3_0 - RGB32UI_EXT = 0x8D71 - ALPHA32UI_EXT = 0x8D72 - INTENSITY32UI_EXT = 0x8D73 - LUMINANCE32UI_EXT = 0x8D74 - LUMINANCE_ALPHA32UI_EXT = 0x8D75 - RGBA16UI = 0x8D76 # VERSION_3_0 - RGBA16UI_EXT = 0x8D76 - RGB16UI = 0x8D77 # VERSION_3_0 - RGB16UI_EXT = 0x8D77 - ALPHA16UI_EXT = 0x8D78 - INTENSITY16UI_EXT = 0x8D79 - LUMINANCE16UI_EXT = 0x8D7A - LUMINANCE_ALPHA16UI_EXT = 0x8D7B - RGBA8UI = 0x8D7C # VERSION_3_0 - RGBA8UI_EXT = 0x8D7C - RGB8UI = 0x8D7D # VERSION_3_0 - RGB8UI_EXT = 0x8D7D - ALPHA8UI_EXT = 0x8D7E - INTENSITY8UI_EXT = 0x8D7F - LUMINANCE8UI_EXT = 0x8D80 - LUMINANCE_ALPHA8UI_EXT = 0x8D81 - RGBA32I = 0x8D82 # VERSION_3_0 - RGBA32I_EXT = 0x8D82 - RGB32I = 0x8D83 # VERSION_3_0 - RGB32I_EXT = 0x8D83 - ALPHA32I_EXT = 0x8D84 - INTENSITY32I_EXT = 0x8D85 - LUMINANCE32I_EXT = 0x8D86 - LUMINANCE_ALPHA32I_EXT = 0x8D87 - RGBA16I = 0x8D88 # VERSION_3_0 - RGBA16I_EXT = 0x8D88 - RGB16I = 0x8D89 # VERSION_3_0 - RGB16I_EXT = 0x8D89 - ALPHA16I_EXT = 0x8D8A - INTENSITY16I_EXT = 0x8D8B - LUMINANCE16I_EXT = 0x8D8C - LUMINANCE_ALPHA16I_EXT = 0x8D8D - RGBA8I = 0x8D8E # VERSION_3_0 - RGBA8I_EXT = 0x8D8E - RGB8I = 0x8D8F # VERSION_3_0 - RGB8I_EXT = 0x8D8F - ALPHA8I_EXT = 0x8D90 - INTENSITY8I_EXT = 0x8D91 - LUMINANCE8I_EXT = 0x8D92 - LUMINANCE_ALPHA8I_EXT = 0x8D93 - RED_INTEGER = 0x8D94 # VERSION_3_0 - RED_INTEGER_EXT = 0x8D94 - GREEN_INTEGER = 0x8D95 # VERSION_3_0 - GREEN_INTEGER_EXT = 0x8D95 - BLUE_INTEGER = 0x8D96 # VERSION_3_0 - BLUE_INTEGER_EXT = 0x8D96 - ALPHA_INTEGER = 0x8D97 # VERSION_3_0 - ALPHA_INTEGER_EXT = 0x8D97 - RGB_INTEGER = 0x8D98 # VERSION_3_0 - RGB_INTEGER_EXT = 0x8D98 - RGBA_INTEGER = 0x8D99 # VERSION_3_0 - RGBA_INTEGER_EXT = 0x8D99 - BGR_INTEGER = 0x8D9A # VERSION_3_0 - BGR_INTEGER_EXT = 0x8D9A - BGRA_INTEGER = 0x8D9B # VERSION_3_0 - BGRA_INTEGER_EXT = 0x8D9B - LUMINANCE_INTEGER_EXT = 0x8D9C - LUMINANCE_ALPHA_INTEGER_EXT = 0x8D9D - RGBA_INTEGER_MODE_EXT = 0x8D9E - -ARB_vertex_type_2_10_10_10_rev enum: - INT_2_10_10_10_REV = 0x8D9F - -NV_parameter_buffer_object enum: - MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = 0x8DA0 - MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV = 0x8DA1 - VERTEX_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA2 - GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA3 - FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA4 - -NV_gpu_program4 enum: (additional; see above) - MAX_PROGRAM_GENERIC_ATTRIBS_NV = 0x8DA5 - MAX_PROGRAM_GENERIC_RESULTS_NV = 0x8DA6 - -VERSION_3_2 enum: - FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7 - FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8 - -ARB_geometry_shader4 enum: (additional; see below) - FRAMEBUFFER_ATTACHMENT_LAYERED_ARB = 0x8DA7 - FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB = 0x8DA8 - FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB = 0x8DA9 - -NV_geometry_program4 enum: (additional; see above) - FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = 0x8DA7 - FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8DA8 - FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8DA9 - -# The NEXT_BUFFER / SKIP_* tokens aren't in numerical order but -# since NVIDIA is allocating them, it doesn't have to be dealt -# with here. -NV_transform_feedback enum: (additional; see above) - LAYER_NV = 0x8DAA - NEXT_BUFFER_NV = -2 # Requires ARB_transform_feedback3 - SKIP_COMPONENTS4_NV = -3 # Requires ARB_transform_feedback3 - SKIP_COMPONENTS3_NV = -4 # Requires ARB_transform_feedback3 - SKIP_COMPONENTS2_NV = -5 # Requires ARB_transform_feedback3 - SKIP_COMPONENTS1_NV = -6 # Requires ARB_transform_feedback3 - -VERSION_3_0 enum: -ARB_depth_buffer_float enum: (additional; see above; some values different from NV; note: no ARB suffixes) - FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD - -NV_depth_buffer_float enum: - DEPTH_COMPONENT32F_NV = 0x8DAB - DEPTH32F_STENCIL8_NV = 0x8DAC - FLOAT_32_UNSIGNED_INT_24_8_REV_NV = 0x8DAD - DEPTH_BUFFER_FLOAT_MODE_NV = 0x8DAF - -ARB_shading_language_include enum: (additional;see below) - SHADER_INCLUDE_ARB = 0x8DAE - -# NV_future_use: 0x8DB0-0x8DB8 - -VERSION_3_0 enum: -ARB_framebuffer_sRGB enum: (note: no ARB suffixes) - FRAMEBUFFER_SRGB = 0x8DB9 # VERSION_3_0 / ARB_sRGB - -EXT_framebuffer_sRGB enum: - FRAMEBUFFER_SRGB_EXT = 0x8DB9 - FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x8DBA - -VERSION_3_0 enum: -ARB_texture_compression_rgtc enum: (note: no ARB suffixes) - COMPRESSED_RED_RGTC1 = 0x8DBB # VERSION_3_0 / ARB_tcrgtc - COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC # VERSION_3_0 / ARB_tcrgtc - COMPRESSED_RG_RGTC2 = 0x8DBD # VERSION_3_0 / ARB_tcrgtc - COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE # VERSION_3_0 / ARB_tcrgtc - -EXT_texture_compression_rgtc enum: - COMPRESSED_RED_RGTC1_EXT = 0x8DBB - COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8DBC - COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8DBD - COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8DBE - -# NV_future_use: 0x8DBF - -VERSION_3_0 enum: - SAMPLER_1D_ARRAY = 0x8DC0 # VERSION_3_0 - SAMPLER_2D_ARRAY = 0x8DC1 # VERSION_3_0 - SAMPLER_1D_ARRAY_SHADOW = 0x8DC3 # VERSION_3_0 - SAMPLER_2D_ARRAY_SHADOW = 0x8DC4 # VERSION_3_0 - SAMPLER_CUBE_SHADOW = 0x8DC5 # VERSION_3_0 - UNSIGNED_INT_VEC2 = 0x8DC6 # VERSION_3_0 - UNSIGNED_INT_VEC3 = 0x8DC7 # VERSION_3_0 - UNSIGNED_INT_VEC4 = 0x8DC8 # VERSION_3_0 - INT_SAMPLER_1D = 0x8DC9 # VERSION_3_0 - INT_SAMPLER_2D = 0x8DCA # VERSION_3_0 - INT_SAMPLER_3D = 0x8DCB # VERSION_3_0 - INT_SAMPLER_CUBE = 0x8DCC # VERSION_3_0 - INT_SAMPLER_1D_ARRAY = 0x8DCE # VERSION_3_0 - INT_SAMPLER_2D_ARRAY = 0x8DCF # VERSION_3_0 - UNSIGNED_INT_SAMPLER_1D = 0x8DD1 # VERSION_3_0 - UNSIGNED_INT_SAMPLER_2D = 0x8DD2 # VERSION_3_0 - UNSIGNED_INT_SAMPLER_3D = 0x8DD3 # VERSION_3_0 - UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4 # VERSION_3_0 - UNSIGNED_INT_SAMPLER_1D_ARRAY = 0x8DD6 # VERSION_3_0 - UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7 # VERSION_3_0 - -VERSION_3_1 enum: (Promoted from EXT_gpu_shader4 + ARB_texture_rectangle / ARB_uniform_buffer_object) - SAMPLER_BUFFER = 0x8DC2 # EXT_gpu_shader4 + ARB_texture_buffer_object - INT_SAMPLER_2D_RECT = 0x8DCD # EXT_gpu_shader4 + ARB_texture_rectangle - INT_SAMPLER_BUFFER = 0x8DD0 # EXT_gpu_shader4 + ARB_texture_buffer_object - UNSIGNED_INT_SAMPLER_2D_RECT = 0x8DD5 # EXT_gpu_shader4 + ARB_texture_rectangle - UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8 # EXT_gpu_shader4 + ARB_texture_buffer_object - -EXT_gpu_shader4 enum: - SAMPLER_1D_ARRAY_EXT = 0x8DC0 - SAMPLER_2D_ARRAY_EXT = 0x8DC1 - SAMPLER_BUFFER_EXT = 0x8DC2 - SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8DC3 - SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8DC4 - SAMPLER_CUBE_SHADOW_EXT = 0x8DC5 - UNSIGNED_INT_VEC2_EXT = 0x8DC6 - UNSIGNED_INT_VEC3_EXT = 0x8DC7 - UNSIGNED_INT_VEC4_EXT = 0x8DC8 - INT_SAMPLER_1D_EXT = 0x8DC9 - INT_SAMPLER_2D_EXT = 0x8DCA - INT_SAMPLER_3D_EXT = 0x8DCB - INT_SAMPLER_CUBE_EXT = 0x8DCC - INT_SAMPLER_2D_RECT_EXT = 0x8DCD - INT_SAMPLER_1D_ARRAY_EXT = 0x8DCE - INT_SAMPLER_2D_ARRAY_EXT = 0x8DCF - INT_SAMPLER_BUFFER_EXT = 0x8DD0 - UNSIGNED_INT_SAMPLER_1D_EXT = 0x8DD1 - UNSIGNED_INT_SAMPLER_2D_EXT = 0x8DD2 - UNSIGNED_INT_SAMPLER_3D_EXT = 0x8DD3 - UNSIGNED_INT_SAMPLER_CUBE_EXT = 0x8DD4 - UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8DD5 - UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8DD6 - UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8DD7 - UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8DD8 - -VERSION_3_2 enum: - GEOMETRY_SHADER = 0x8DD9 - -ARB_geometry_shader4 enum: - GEOMETRY_SHADER_ARB = 0x8DD9 - -EXT_geometry_shader4 enum: - GEOMETRY_SHADER_EXT = 0x8DD9 - -ARB_geometry_shader4 enum: (additional; see above) - GEOMETRY_VERTICES_OUT_ARB = 0x8DDA - GEOMETRY_INPUT_TYPE_ARB = 0x8DDB - GEOMETRY_OUTPUT_TYPE_ARB = 0x8DDC - -NV_geometry_program4 enum: (additional; see above) - GEOMETRY_VERTICES_OUT_EXT = 0x8DDA - GEOMETRY_INPUT_TYPE_EXT = 0x8DDB - GEOMETRY_OUTPUT_TYPE_EXT = 0x8DDC - -ARB_geometry_shader4 enum: (additional; see above) - MAX_GEOMETRY_VARYING_COMPONENTS_ARB = 0x8DDD - MAX_VERTEX_VARYING_COMPONENTS_ARB = 0x8DDE - MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB = 0x8DDF - MAX_GEOMETRY_OUTPUT_VERTICES_ARB = 0x8DE0 - MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB = 0x8DE1 - -VERSION_3_2 enum: - MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF - MAX_GEOMETRY_OUTPUT_VERTICES = 0x8DE0 - MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1 - -EXT_geometry_shader4 enum: (additional; see above) - MAX_GEOMETRY_VARYING_COMPONENTS_EXT = 0x8DDD - MAX_VERTEX_VARYING_COMPONENTS_EXT = 0x8DDE - MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = 0x8DDF - MAX_GEOMETRY_OUTPUT_VERTICES_EXT = 0x8DE0 - MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = 0x8DE1 - -EXT_bindable_uniform enum: - MAX_VERTEX_BINDABLE_UNIFORMS_EXT = 0x8DE2 - MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8DE3 - MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8DE4 - -ARB_shader_subroutine enum: - ACTIVE_SUBROUTINES = 0x8DE5 - ACTIVE_SUBROUTINE_UNIFORMS = 0x8DE6 - MAX_SUBROUTINES = 0x8DE7 - MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8 - -ARB_shading_language_include enum: - NAMED_STRING_LENGTH_ARB = 0x8DE9 - NAMED_STRING_TYPE_ARB = 0x8DEA - -# NV_future_use: 0x8DEB-0x8DEC - -EXT_bindable_uniform enum: (additional; see above) - MAX_BINDABLE_UNIFORM_SIZE_EXT = 0x8DED - UNIFORM_BUFFER_EXT = 0x8DEE - UNIFORM_BUFFER_BINDING_EXT = 0x8DEF - -############################################################################### - -# Khronos OpenGL ES WG: 0x8DF0-0x8E0F - -# Also OpenGL ES -ARB_ES2_compatibility enum: (additional; see below) - LOW_FLOAT = 0x8DF0 - MEDIUM_FLOAT = 0x8DF1 - HIGH_FLOAT = 0x8DF2 - LOW_INT = 0x8DF3 - MEDIUM_INT = 0x8DF4 - HIGH_INT = 0x8DF5 - -OES_vertex_type_10_10_10_2 enum: (OpenGL ES only) - UNSIGNED_INT_10_10_10_2_OES = 0x8DF6 - INT_10_10_10_2_OES = 0x8DF7 - -# Also OpenGL ES -ARB_ES2_compatibility enum: - SHADER_BINARY_FORMATS = 0x8DF8 - NUM_SHADER_BINARY_FORMATS = 0x8DF9 - SHADER_COMPILER = 0x8DFA - MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB - MAX_VARYING_VECTORS = 0x8DFC - MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD - -# Khronos_future_use: 0x8DFE-0x8E0F - -############################################################################### - -# NVIDIA: 0x8E10-0x8E8F -# Reserved per email from Michael Gold 2006/8/7 - -NV_framebuffer_multisample_coverage enum: - RENDERBUFFER_COLOR_SAMPLES_NV = 0x8E10 - MAX_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E11 - MULTISAMPLE_COVERAGE_MODES_NV = 0x8E12 - -VERSION_3_0 enum: - QUERY_WAIT = 0x8E13 # VERSION_3_0 - QUERY_NO_WAIT = 0x8E14 # VERSION_3_0 - QUERY_BY_REGION_WAIT = 0x8E15 # VERSION_3_0 - QUERY_BY_REGION_NO_WAIT = 0x8E16 # VERSION_3_0 - -NV_conditional_render enum: - QUERY_WAIT_NV = 0x8E13 - QUERY_NO_WAIT_NV = 0x8E14 - QUERY_BY_REGION_WAIT_NV = 0x8E15 - QUERY_BY_REGION_NO_WAIT_NV = 0x8E16 - -# NV_future_use: 0x8E17-0x8E1D - -ARB_tessellation_shader enum: - MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E - MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F - -NV_multisample_coverage enum: - COLOR_SAMPLES_NV = 0x8E20 - -# NV_future_use: 0x8E21 - -ARB_transform_feedback2 enum: - TRANSFORM_FEEDBACK = 0x8E22 - TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23 - TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24 - TRANSFORM_FEEDBACK_BINDING = 0x8E25 - -NV_transform_feedback2 enum: - TRANSFORM_FEEDBACK_NV = 0x8E22 - TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV = 0x8E23 - TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV = 0x8E24 - TRANSFORM_FEEDBACK_BINDING_NV = 0x8E25 - -NV_present_video enum: - FRAME_NV = 0x8E26 - FIELDS_NV = 0x8E27 - CURRENT_TIME_NV = 0x8E28 - NUM_FILL_STREAMS_NV = 0x8E29 - PRESENT_TIME_NV = 0x8E2A - PRESENT_DURATION_NV = 0x8E2B - -ARB_timer_query enum: - TIMESTAMP = 0x8E28 - -NV_depth_nonlinear enum: (OpenGL ES only) - DEPTH_COMPONENT16_NONLINEAR_NV = 0x8E2C - -EXT_direct_state_access enum: - PROGRAM_MATRIX_EXT = 0x8E2D - TRANSPOSE_PROGRAM_MATRIX_EXT = 0x8E2E - PROGRAM_MATRIX_STACK_DEPTH_EXT = 0x8E2F - -# NV_future_use: 0x8E30-0x8E41 - -ARB_texture_swizzle enum: - TEXTURE_SWIZZLE_R = 0x8E42 - TEXTURE_SWIZZLE_G = 0x8E43 - TEXTURE_SWIZZLE_B = 0x8E44 - TEXTURE_SWIZZLE_A = 0x8E45 - TEXTURE_SWIZZLE_RGBA = 0x8E46 - -EXT_texture_swizzle enum: - TEXTURE_SWIZZLE_R_EXT = 0x8E42 - TEXTURE_SWIZZLE_G_EXT = 0x8E43 - TEXTURE_SWIZZLE_B_EXT = 0x8E44 - TEXTURE_SWIZZLE_A_EXT = 0x8E45 - TEXTURE_SWIZZLE_RGBA_EXT = 0x8E46 - -ARB_shader_subroutine enum: - ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47 - ACTIVE_SUBROUTINE_MAX_LENGTH = 0x8E48 - ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49 - NUM_COMPATIBLE_SUBROUTINES = 0x8E4A - COMPATIBLE_SUBROUTINES = 0x8E4B - -VERSION_3_2 enum: - use ARB_provoking_vertex QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION - use ARB_provoking_vertex FIRST_VERTEX_CONVENTION - use ARB_provoking_vertex LAST_VERTEX_CONVENTION - use ARB_provoking_vertex PROVOKING_VERTEX - -ARB_viewport_array enum: (additional; see above) - use ARB_provoking_vertex FIRST_VERTEX_CONVENTION - use ARB_provoking_vertex LAST_VERTEX_CONVENTION - use ARB_provoking_vertex PROVOKING_VERTEX - -ARB_provoking_vertex enum: - QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C - FIRST_VERTEX_CONVENTION = 0x8E4D - LAST_VERTEX_CONVENTION = 0x8E4E - PROVOKING_VERTEX = 0x8E4F - -EXT_provoking_vertex enum: - QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT = 0x8E4C - FIRST_VERTEX_CONVENTION_EXT = 0x8E4D - LAST_VERTEX_CONVENTION_EXT = 0x8E4E - PROVOKING_VERTEX_EXT = 0x8E4F - -VERSION_3_2 enum: - use ARB_texture_multisample SAMPLE_POSITION - use ARB_texture_multisample SAMPLE_MASK - use ARB_texture_multisample SAMPLE_MASK_VALUE - use ARB_texture_multisample MAX_SAMPLE_MASK_WORDS - -ARB_texture_multisample enum: - SAMPLE_POSITION = 0x8E50 - SAMPLE_MASK = 0x8E51 - SAMPLE_MASK_VALUE = 0x8E52 - MAX_SAMPLE_MASK_WORDS = 0x8E59 - -NV_explicit_multisample enum: - SAMPLE_POSITION_NV = 0x8E50 - SAMPLE_MASK_NV = 0x8E51 - SAMPLE_MASK_VALUE_NV = 0x8E52 - TEXTURE_BINDING_RENDERBUFFER_NV = 0x8E53 - TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV = 0x8E54 - TEXTURE_RENDERBUFFER_NV = 0x8E55 - SAMPLER_RENDERBUFFER_NV = 0x8E56 - INT_SAMPLER_RENDERBUFFER_NV = 0x8E57 - UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV = 0x8E58 - MAX_SAMPLE_MASK_WORDS_NV = 0x8E59 - -ARB_gpu_shader5 enum: - MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A - MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B - MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C - FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D - -NV_gpu_program5 enum: - MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV = 0x8E5A - MIN_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5B - MAX_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5C - FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV = 0x8E5D - -ARB_texture_gather enum: - MIN_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5E - MAX_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5F - -NV_gpu_program5 enum: - MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5E - MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5F - -# NV_future_use: 0x8E60-0x8E6F - -ARB_transform_feedback3 enum: - MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70 - MAX_VERTEX_STREAMS = 0x8E71 - -ARB_gpu_shader5 enum: (additional; see above) - use ARB_texture_multisample MAX_VERTEX_STREAMS - -ARB_tessellation_shader enum: - PATCH_VERTICES = 0x8E72 - PATCH_DEFAULT_INNER_LEVEL = 0x8E73 - PATCH_DEFAULT_OUTER_LEVEL = 0x8E74 - TESS_CONTROL_OUTPUT_VERTICES = 0x8E75 - TESS_GEN_MODE = 0x8E76 - TESS_GEN_SPACING = 0x8E77 - TESS_GEN_VERTEX_ORDER = 0x8E78 - TESS_GEN_POINT_MODE = 0x8E79 - ISOLINES = 0x8E7A - FRACTIONAL_ODD = 0x8E7B - FRACTIONAL_EVEN = 0x8E7C - MAX_PATCH_VERTICES = 0x8E7D - MAX_TESS_GEN_LEVEL = 0x8E7E - MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F - MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80 - MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81 - MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82 - MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83 - MAX_TESS_PATCH_COMPONENTS = 0x8E84 - MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85 - MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86 - TESS_EVALUATION_SHADER = 0x8E87 - TESS_CONTROL_SHADER = 0x8E88 - MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89 - MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A - -# NV_future_use: 0x8E8B - -ARB_texture_compression_bptc enum: - COMPRESSED_RGBA_BPTC_UNORM_ARB = 0x8E8C - COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB = 0x8E8D - COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB = 0x8E8E - COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB = 0x8E8F - -############################################################################### - -# QNX: 0x8E90-0x8E9F -# For QNX_texture_tiling, QNX_complex_polygon, QNX_stippled_lines -# (Khronos bug 696) - -# QNX_future_use: 0x8E90-0x8E9F - -############################################################################### - -# Imagination Tech.: 0x8EA0-0x8EAF - -############################################################################### - -# Khronos OpenGL ES WG: 0x8EB0-0x8EBF -# Assigned for Affie Munshi on 2007/07/20 - -############################################################################### - -# Vincent: 0x8EC0-0x8ECF - -############################################################################### - -# NVIDIA: 0x8ED0-0x8F4F -# Assigned for Pat Brown (Khronos bug 3191) - -NV_coverage_sample enum: (OpenGL ES only) - COVERAGE_COMPONENT_NV = 0x8ED0 - COVERAGE_COMPONENT4_NV = 0x8ED1 - COVERAGE_ATTACHMENT_NV = 0x8ED2 - COVERAGE_BUFFERS_NV = 0x8ED3 - COVERAGE_SAMPLES_NV = 0x8ED4 - COVERAGE_ALL_FRAGMENTS_NV = 0x8ED5 - COVERAGE_EDGE_FRAGMENTS_NV = 0x8ED6 - COVERAGE_AUTOMATIC_NV = 0x8ED7 - COVERAGE_BUFFER_BIT_NV = 0x00008000 - -# NV_future_use: 0x8ED8-0x8F1C - -NV_shader_buffer_load enum: - BUFFER_GPU_ADDRESS_NV = 0x8F1D - -NV_vertex_buffer_unified_memory enum: - VERTEX_ATTRIB_ARRAY_UNIFIED_NV = 0x8F1E - ELEMENT_ARRAY_UNIFIED_NV = 0x8F1F - VERTEX_ATTRIB_ARRAY_ADDRESS_NV = 0x8F20 - VERTEX_ARRAY_ADDRESS_NV = 0x8F21 - NORMAL_ARRAY_ADDRESS_NV = 0x8F22 - COLOR_ARRAY_ADDRESS_NV = 0x8F23 - INDEX_ARRAY_ADDRESS_NV = 0x8F24 - TEXTURE_COORD_ARRAY_ADDRESS_NV = 0x8F25 - EDGE_FLAG_ARRAY_ADDRESS_NV = 0x8F26 - SECONDARY_COLOR_ARRAY_ADDRESS_NV = 0x8F27 - FOG_COORD_ARRAY_ADDRESS_NV = 0x8F28 - ELEMENT_ARRAY_ADDRESS_NV = 0x8F29 - VERTEX_ATTRIB_ARRAY_LENGTH_NV = 0x8F2A - VERTEX_ARRAY_LENGTH_NV = 0x8F2B - NORMAL_ARRAY_LENGTH_NV = 0x8F2C - COLOR_ARRAY_LENGTH_NV = 0x8F2D - INDEX_ARRAY_LENGTH_NV = 0x8F2E - TEXTURE_COORD_ARRAY_LENGTH_NV = 0x8F2F - EDGE_FLAG_ARRAY_LENGTH_NV = 0x8F30 - SECONDARY_COLOR_ARRAY_LENGTH_NV = 0x8F31 - FOG_COORD_ARRAY_LENGTH_NV = 0x8F32 - ELEMENT_ARRAY_LENGTH_NV = 0x8F33 - -NV_shader_buffer_load enum: (additional; see above) - GPU_ADDRESS_NV = 0x8F34 - MAX_SHADER_BUFFER_ADDRESS_NV = 0x8F35 - -ARB_copy_buffer enum: - COPY_READ_BUFFER = 0x8F36 - COPY_WRITE_BUFFER = 0x8F37 - -VERSION_3_1 enum: - use ARB_copy_buffer COPY_READ_BUFFER - use ARB_copy_buffer COPY_WRITE_BUFFER - -EXT_shader_image_load_store enum: (additional; see below) - MAX_IMAGE_UNITS_EXT = 0x8F38 - MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT = 0x8F39 - IMAGE_BINDING_NAME_EXT = 0x8F3A - IMAGE_BINDING_LEVEL_EXT = 0x8F3B - IMAGE_BINDING_LAYERED_EXT = 0x8F3C - IMAGE_BINDING_LAYER_EXT = 0x8F3D - IMAGE_BINDING_ACCESS_EXT = 0x8F3E - -ARB_draw_indirect enum: - DRAW_INDIRECT_BUFFER = 0x8F3F - -# Requires ARB_draw_indirect -NV_vertex_buffer_unified_memory enum: (additional; see above) - DRAW_INDIRECT_UNIFIED_NV = 0x8F40 - DRAW_INDIRECT_ADDRESS_NV = 0x8F41 - DRAW_INDIRECT_LENGTH_NV = 0x8F42 - -ARB_draw_indirect enum: (additional; see below) - DRAW_INDIRECT_BUFFER_BINDING = 0x8F43 - -# Requires ARB_shader_subroutine -NV_gpu_program5 enum: (additional; see above) - MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV = 0x8F44 - MAX_PROGRAM_SUBROUTINE_NUM_NV = 0x8F45 - -ARB_gpu_shader_fp64 enum: - DOUBLE_MAT2 = 0x8F46 - DOUBLE_MAT3 = 0x8F47 - DOUBLE_MAT4 = 0x8F48 - DOUBLE_MAT2x3 = 0x8F49 - DOUBLE_MAT2x4 = 0x8F4A - DOUBLE_MAT3x2 = 0x8F4B - DOUBLE_MAT3x4 = 0x8F4C - DOUBLE_MAT4x2 = 0x8F4D - DOUBLE_MAT4x3 = 0x8F4E - -EXT_vertex_attrib_64bit enum: - DOUBLE_MAT2_EXT = 0x8F46 - DOUBLE_MAT3_EXT = 0x8F47 - DOUBLE_MAT4_EXT = 0x8F48 - DOUBLE_MAT2x3_EXT = 0x8F49 - DOUBLE_MAT2x4_EXT = 0x8F4A - DOUBLE_MAT3x2_EXT = 0x8F4B - DOUBLE_MAT3x4_EXT = 0x8F4C - DOUBLE_MAT4x2_EXT = 0x8F4D - DOUBLE_MAT4x3_EXT = 0x8F4E - -# NVIDIA_future_use: 0x8F4F - -############################################################################### - -# 3Dlabs: 0x8F50-0x8F5F -# Assigned for Jon Kennedy (Khronos public bug 75) - -############################################################################### - -# ARM: 0x8F60-0x8F6F -# Assigned for Remi Pedersen (Khronos bug 3745) - -ARM_mali_shader_binary enum: (OpenGL ES only) - MALI_SHADER_BINARY_ARM = 0x8F60 - -# ARM_future_use: 0x8F61-0x8F6F - -############################################################################### - -# HI Corp: 0x8F70-0x8F7F -# Assigned for Mark Callow (Khronos bug 4055) - -############################################################################### - -# Zebra Imaging: 0x8F80-0x8F8F -# Assigned for Mike Weiblen (Khronos public bug 91) - -############################################################################### - -# OpenGL ARB: 0x8F90-0x8F9F (SNORM textures, 3.1 primitive restart server state) - -VERSION_3_1 enum: - RED_SNORM = 0x8F90 # VERSION_3_1 - RG_SNORM = 0x8F91 # VERSION_3_1 - RGB_SNORM = 0x8F92 # VERSION_3_1 - RGBA_SNORM = 0x8F93 # VERSION_3_1 - R8_SNORM = 0x8F94 # VERSION_3_1 - RG8_SNORM = 0x8F95 # VERSION_3_1 - RGB8_SNORM = 0x8F96 # VERSION_3_1 - RGBA8_SNORM = 0x8F97 # VERSION_3_1 - R16_SNORM = 0x8F98 # VERSION_3_1 - RG16_SNORM = 0x8F99 # VERSION_3_1 - RGB16_SNORM = 0x8F9A # VERSION_3_1 - RGBA16_SNORM = 0x8F9B # VERSION_3_1 - SIGNED_NORMALIZED = 0x8F9C # VERSION_3_1 - PRIMITIVE_RESTART = 0x8F9D # Different from NV_primitive_restart value - PRIMITIVE_RESTART_INDEX = 0x8F9E # Different from NV_primitive_restart value - -ARB_texture_gather enum: (additional; see above) - MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS = 0x8F9F - -############################################################################### - -# Qualcomm: 0x8FA0-0x8FBF -# Assigned for Maurice Ribble (Khronos bug 4512) - -QCOM_driver_control enum: (OpenGL ES only) - PERFMON_GLOBAL_MODE_QCOM = 0x8FA0 - -# QCOM_future_use: 0x8FA1-0x8FBF - -############################################################################### - -# Vivante: 0x8FC0-0x8FDF -# Assigned for Frido Garritsen (Khronos bug 4526) - -VIV_shader_binary enum: (OpenGL ES only) - SHADER_BINARY_VIV = 0x8FC4 - -############################################################################### - -# NVIDIA: 0x8FE0-0x8FFF -# Assigned for Pat Brown (Khronos bug 4935) - -NV_gpu_shader5 enum: - INT8_NV = 0x8FE0 - INT8_VEC2_NV = 0x8FE1 - INT8_VEC3_NV = 0x8FE2 - INT8_VEC4_NV = 0x8FE3 - INT16_NV = 0x8FE4 - INT16_VEC2_NV = 0x8FE5 - INT16_VEC3_NV = 0x8FE6 - INT16_VEC4_NV = 0x8FE7 - INT64_VEC2_NV = 0x8FE9 - INT64_VEC3_NV = 0x8FEA - INT64_VEC4_NV = 0x8FEB - UNSIGNED_INT8_NV = 0x8FEC - UNSIGNED_INT8_VEC2_NV = 0x8FED - UNSIGNED_INT8_VEC3_NV = 0x8FEE - UNSIGNED_INT8_VEC4_NV = 0x8FEF - UNSIGNED_INT16_NV = 0x8FF0 - UNSIGNED_INT16_VEC2_NV = 0x8FF1 - UNSIGNED_INT16_VEC3_NV = 0x8FF2 - UNSIGNED_INT16_VEC4_NV = 0x8FF3 - UNSIGNED_INT64_VEC2_NV = 0x8FF5 - UNSIGNED_INT64_VEC3_NV = 0x8FF6 - UNSIGNED_INT64_VEC4_NV = 0x8FF7 - FLOAT16_NV = 0x8FF8 - FLOAT16_VEC2_NV = 0x8FF9 - FLOAT16_VEC3_NV = 0x8FFA - FLOAT16_VEC4_NV = 0x8FFB - -ARB_gpu_shader_fp64 enum: (additional; see above) - DOUBLE_VEC2 = 0x8FFC - DOUBLE_VEC3 = 0x8FFD - DOUBLE_VEC4 = 0x8FFE - -EXT_vertex_attrib_64bit enum: - DOUBLE_VEC2_EXT = 0x8FFC - DOUBLE_VEC3_EXT = 0x8FFD - DOUBLE_VEC4_EXT = 0x8FFE - -# NV_future_use: 0x8FFF - -############################################################################### - -# AMD: 0x9000-0x901F -# Assigned for Bill Licea-Kane - -AMD_vertex_shader_tesselator enum: - SAMPLER_BUFFER_AMD = 0x9001 - INT_SAMPLER_BUFFER_AMD = 0x9002 - UNSIGNED_INT_SAMPLER_BUFFER_AMD = 0x9003 - TESSELLATION_MODE_AMD = 0x9004 - TESSELLATION_FACTOR_AMD = 0x9005 - DISCRETE_AMD = 0x9006 - CONTINUOUS_AMD = 0x9007 - -# AMD_future_use: 0x9008 - -ARB_texture_cube_map_array enum: - TEXTURE_CUBE_MAP_ARRAY = 0x9009 - TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A - PROXY_TEXTURE_CUBE_MAP_ARRAY = 0x900B - SAMPLER_CUBE_MAP_ARRAY = 0x900C - SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D - INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E - UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F - -EXT_texture_snorm enum: - ALPHA_SNORM = 0x9010 - LUMINANCE_SNORM = 0x9011 - LUMINANCE_ALPHA_SNORM = 0x9012 - INTENSITY_SNORM = 0x9013 - ALPHA8_SNORM = 0x9014 - LUMINANCE8_SNORM = 0x9015 - LUMINANCE8_ALPHA8_SNORM = 0x9016 - INTENSITY8_SNORM = 0x9017 - ALPHA16_SNORM = 0x9018 - LUMINANCE16_SNORM = 0x9019 - LUMINANCE16_ALPHA16_SNORM = 0x901A - INTENSITY16_SNORM = 0x901B - -AMD_blend_minmax_factor enum: - FACTOR_MIN_AMD = 0x901C - FACTOR_MAX_AMD = 0x901D - -AMD_depth_clamp_separate enum: - DEPTH_CLAMP_NEAR_AMD = 0x901E - DEPTH_CLAMP_FAR_AMD = 0x901F - -############################################################################### - -# NVIDIA: 0x9020-0x90FF -# Assigned for Pat Brown (Khronos bug 4935) - -NV_video_capture enum: - VIDEO_BUFFER_NV = 0x9020 - VIDEO_BUFFER_BINDING_NV = 0x9021 - FIELD_UPPER_NV = 0x9022 - FIELD_LOWER_NV = 0x9023 - NUM_VIDEO_CAPTURE_STREAMS_NV = 0x9024 - NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV = 0x9025 - VIDEO_CAPTURE_TO_422_SUPPORTED_NV = 0x9026 - LAST_VIDEO_CAPTURE_STATUS_NV = 0x9027 - VIDEO_BUFFER_PITCH_NV = 0x9028 - VIDEO_COLOR_CONVERSION_MATRIX_NV = 0x9029 - VIDEO_COLOR_CONVERSION_MAX_NV = 0x902A - VIDEO_COLOR_CONVERSION_MIN_NV = 0x902B - VIDEO_COLOR_CONVERSION_OFFSET_NV = 0x902C - VIDEO_BUFFER_INTERNAL_FORMAT_NV = 0x902D - PARTIAL_SUCCESS_NV = 0x902E - SUCCESS_NV = 0x902F - FAILURE_NV = 0x9030 - YCBYCR8_422_NV = 0x9031 - YCBAYCR8A_4224_NV = 0x9032 - Z6Y10Z6CB10Z6Y10Z6CR10_422_NV = 0x9033 - Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV = 0x9034 - Z4Y12Z4CB12Z4Y12Z4CR12_422_NV = 0x9035 - Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV = 0x9036 - Z4Y12Z4CB12Z4CR12_444_NV = 0x9037 - VIDEO_CAPTURE_FRAME_WIDTH_NV = 0x9038 - VIDEO_CAPTURE_FRAME_HEIGHT_NV = 0x9039 - VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV = 0x903A - VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV = 0x903B - VIDEO_CAPTURE_SURFACE_ORIGIN_NV = 0x903C - -# NV_future_use: 0x903D-0x9044 - -NV_texture_multisample enum: - TEXTURE_COVERAGE_SAMPLES_NV = 0x9045 - TEXTURE_COLOR_SAMPLES_NV = 0x9046 - -# NV_future_use: 0x9047-0x904B - -EXT_shader_image_load_store enum: - IMAGE_1D_EXT = 0x904C - IMAGE_2D_EXT = 0x904D - IMAGE_3D_EXT = 0x904E - IMAGE_2D_RECT_EXT = 0x904F - IMAGE_CUBE_EXT = 0x9050 - IMAGE_BUFFER_EXT = 0x9051 - IMAGE_1D_ARRAY_EXT = 0x9052 - IMAGE_2D_ARRAY_EXT = 0x9053 - IMAGE_CUBE_MAP_ARRAY_EXT = 0x9054 - IMAGE_2D_MULTISAMPLE_EXT = 0x9055 - IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9056 - INT_IMAGE_1D_EXT = 0x9057 - INT_IMAGE_2D_EXT = 0x9058 - INT_IMAGE_3D_EXT = 0x9059 - INT_IMAGE_2D_RECT_EXT = 0x905A - INT_IMAGE_CUBE_EXT = 0x905B - INT_IMAGE_BUFFER_EXT = 0x905C - INT_IMAGE_1D_ARRAY_EXT = 0x905D - INT_IMAGE_2D_ARRAY_EXT = 0x905E - INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x905F - INT_IMAGE_2D_MULTISAMPLE_EXT = 0x9060 - INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9061 - UNSIGNED_INT_IMAGE_1D_EXT = 0x9062 - UNSIGNED_INT_IMAGE_2D_EXT = 0x9063 - UNSIGNED_INT_IMAGE_3D_EXT = 0x9064 - UNSIGNED_INT_IMAGE_2D_RECT_EXT = 0x9065 - UNSIGNED_INT_IMAGE_CUBE_EXT = 0x9066 - UNSIGNED_INT_IMAGE_BUFFER_EXT = 0x9067 - UNSIGNED_INT_IMAGE_1D_ARRAY_EXT = 0x9068 - UNSIGNED_INT_IMAGE_2D_ARRAY_EXT = 0x9069 - UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x906A - UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x906B - UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x906C - MAX_IMAGE_SAMPLES_EXT = 0x906D - IMAGE_BINDING_FORMAT_EXT = 0x906E -# ??? Not clear where to put new types of mask bits yet - VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT = 0x00000001 - ELEMENT_ARRAY_BARRIER_BIT_EXT = 0x00000002 - UNIFORM_BARRIER_BIT_EXT = 0x00000004 - TEXTURE_FETCH_BARRIER_BIT_EXT = 0x00000008 - SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT = 0x00000020 - COMMAND_BARRIER_BIT_EXT = 0x00000040 - PIXEL_BUFFER_BARRIER_BIT_EXT = 0x00000080 - TEXTURE_UPDATE_BARRIER_BIT_EXT = 0x00000100 - BUFFER_UPDATE_BARRIER_BIT_EXT = 0x00000200 - FRAMEBUFFER_BARRIER_BIT_EXT = 0x00000400 - TRANSFORM_FEEDBACK_BARRIER_BIT_EXT = 0x00000800 - ATOMIC_COUNTER_BARRIER_BIT_EXT = 0x00001000 - ALL_BARRIER_BITS_EXT = 0xFFFFFFFF - -# Adds to mask bits for EXT_shader_image_load_store above -NV_shader_buffer_store enum: - SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV = 0x00000010 - -ARB_texture_rgb10_a2ui enum: - RGB10_A2UI = 0x906F - -# NV_future_use: 0x9070-0x90FF - -############################################################################### - -# OpenGL ARB: 0x9100-0x912F - -VERSION_3_2 enum: - use ARB_texture_multisample TEXTURE_2D_MULTISAMPLE - use ARB_texture_multisample PROXY_TEXTURE_2D_MULTISAMPLE - use ARB_texture_multisample TEXTURE_2D_MULTISAMPLE_ARRAY - use ARB_texture_multisample PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY - use ARB_texture_multisample TEXTURE_BINDING_2D_MULTISAMPLE - use ARB_texture_multisample TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY - use ARB_texture_multisample TEXTURE_SAMPLES - use ARB_texture_multisample TEXTURE_FIXED_SAMPLE_LOCATIONS - use ARB_texture_multisample SAMPLER_2D_MULTISAMPLE - use ARB_texture_multisample INT_SAMPLER_2D_MULTISAMPLE - use ARB_texture_multisample UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE - use ARB_texture_multisample SAMPLER_2D_MULTISAMPLE_ARRAY - use ARB_texture_multisample INT_SAMPLER_2D_MULTISAMPLE_ARRAY - use ARB_texture_multisample UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY - use ARB_texture_multisample MAX_COLOR_TEXTURE_SAMPLES - use ARB_texture_multisample MAX_DEPTH_TEXTURE_SAMPLES - use ARB_texture_multisample MAX_INTEGER_SAMPLES - -ARB_texture_multisample enum: - TEXTURE_2D_MULTISAMPLE = 0x9100 - PROXY_TEXTURE_2D_MULTISAMPLE = 0x9101 - TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102 - PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103 - TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104 - TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105 - TEXTURE_SAMPLES = 0x9106 - TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107 - SAMPLER_2D_MULTISAMPLE = 0x9108 - INT_SAMPLER_2D_MULTISAMPLE = 0x9109 - UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910A - SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B - INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C - UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D - MAX_COLOR_TEXTURE_SAMPLES = 0x910E - MAX_DEPTH_TEXTURE_SAMPLES = 0x910F - MAX_INTEGER_SAMPLES = 0x9110 - -VERSION_3_2 enum: - use ARB_sync MAX_SERVER_WAIT_TIMEOUT - use ARB_sync OBJECT_TYPE - use ARB_sync SYNC_CONDITION - use ARB_sync SYNC_STATUS - use ARB_sync SYNC_FLAGS - use ARB_sync SYNC_FENCE - use ARB_sync SYNC_GPU_COMMANDS_COMPLETE - use ARB_sync UNSIGNALED - use ARB_sync SIGNALED - use ARB_sync ALREADY_SIGNALED - use ARB_sync TIMEOUT_EXPIRED - use ARB_sync CONDITION_SATISFIED - use ARB_sync WAIT_FAILED - use ARB_sync TIMEOUT_IGNORED - use ARB_sync SYNC_FLUSH_COMMANDS_BIT - use ARB_sync TIMEOUT_IGNORED - -ARB_sync enum: - MAX_SERVER_WAIT_TIMEOUT = 0x9111 - OBJECT_TYPE = 0x9112 - SYNC_CONDITION = 0x9113 - SYNC_STATUS = 0x9114 - SYNC_FLAGS = 0x9115 - SYNC_FENCE = 0x9116 - SYNC_GPU_COMMANDS_COMPLETE = 0x9117 - UNSIGNALED = 0x9118 - SIGNALED = 0x9119 - ALREADY_SIGNALED = 0x911A - TIMEOUT_EXPIRED = 0x911B - CONDITION_SATISFIED = 0x911C - WAIT_FAILED = 0x911D - SYNC_FLUSH_COMMANDS_BIT = 0x00000001 - TIMEOUT_IGNORED = 0xFFFFFFFFFFFFFFFFull - -VERSION_3_0 enum: - BUFFER_ACCESS_FLAGS = 0x911F - BUFFER_MAP_LENGTH = 0x9120 - BUFFER_MAP_OFFSET = 0x9121 - -VERSION_3_2 enum: - MAX_VERTEX_OUTPUT_COMPONENTS = 0x9122 - MAX_GEOMETRY_INPUT_COMPONENTS = 0x9123 - MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124 - MAX_FRAGMENT_INPUT_COMPONENTS = 0x9125 - -VERSION_3_2 enum: - CONTEXT_CORE_PROFILE_BIT = 0x00000001 - CONTEXT_COMPATIBILITY_PROFILE_BIT = 0x00000002 - CONTEXT_PROFILE_MASK = 0x9126 - -# ARB_future_use: 0x9127-0x912F - -############################################################################### - -# Imagination Tech.: 0x9130-0x913F (Khronos bug 882) - -IMG_program_binary enum: (OpenGL ES only) - SGX_PROGRAM_BINARY_IMG = 0x9130 - -# IMG_future_use: 0x9131-0x9132 - -IMG_multisampled_render_to_texture enum: (OpenGL ES only) - RENDERBUFFER_SAMPLES_IMG = 0x9133 - FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG = 0x9134 - MAX_SAMPLES_IMG = 0x9135 - TEXTURE_SAMPLES_IMG = 0x9136 - -# IMG_future_use: 0x9137-0x913F - -############################################################################### - -# AMD: 0x9140-0x923F (Khronos bugs 5899, 6004) - -# AMD_future_use: 0x9140-0x9142 - -ARB_debug_output enum: (additional; see above) - MAX_DEBUG_MESSAGE_LENGTH_ARB = 0x9143 - MAX_DEBUG_LOGGED_MESSAGES_ARB = 0x9144 - DEBUG_LOGGED_MESSAGES_ARB = 0x9145 - DEBUG_SEVERITY_HIGH_ARB = 0x9146 - DEBUG_SEVERITY_MEDIUM_ARB = 0x9147 - DEBUG_SEVERITY_LOW_ARB = 0x9148 - -AMD_debug_output enum: - MAX_DEBUG_LOGGED_MESSAGES_AMD = 0x9144 - DEBUG_LOGGED_MESSAGES_AMD = 0x9145 - DEBUG_SEVERITY_HIGH_AMD = 0x9146 - DEBUG_SEVERITY_MEDIUM_AMD = 0x9147 - DEBUG_SEVERITY_LOW_AMD = 0x9148 - DEBUG_CATEGORY_API_ERROR_AMD = 0x9149 - DEBUG_CATEGORY_WINDOW_SYSTEM_AMD = 0x914A - DEBUG_CATEGORY_DEPRECATION_AMD = 0x914B - DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD = 0x914C - DEBUG_CATEGORY_PERFORMANCE_AMD = 0x914D - DEBUG_CATEGORY_SHADER_COMPILER_AMD = 0x914E - DEBUG_CATEGORY_APPLICATION_AMD = 0x914F - DEBUG_CATEGORY_OTHER_AMD = 0x9150 - -AMD_name_gen_delete enum: - DATA_BUFFER_AMD = 0x9151 - PERFORMANCE_MONITOR_AMD = 0x9152 - QUERY_OBJECT_AMD = 0x9153 - VERTEX_ARRAY_OBJECT_AMD = 0x9154 - SAMPLER_OBJECT_AMD = 0x9155 - -# AMD_future_use: 0x9156-0x923F - -############################################################################### - -# WebGL Working Group: 0x9240-0x924F (Khronos bug 6473) - -# UNPACK_FLIP_Y_WEBGL = 0x9240 -# UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241 -# CONTEXT_LOST_WEBGL = 0x9242 - -# Khronos bug 6884 - -# UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243 -# BROWSER_DEFAULT_WEBGL = 0x9244 - -# WebGL_future_use: 0x9245-0x924F - -############################################################################### - -# DMP: 0x9250-0x925F (email from Eisaku Ohbuchi) - -DMP_shader_binary enum: (OpenGL ES only) - SHADER_BINARY_DMP = 0x9250 - -# DMP_future_use: 0x9251-0x925F - -############################################################################### - -# Fujitsu: 0x9260-0x926F (Khronos bug 7486) - -# FJ_shader_binary enum: (OpenGL ES only) - -# FJ_future_use: 0x9260-0x926F - -############################################################################### -### Please remember that new enumerant allocations must be obtained by request -### to the Khronos API registrar (see comments at the top of this file) -### File requests in the Khronos Bugzilla, OpenGL project, Registry component. -############################################################################### - -# Any_vendor_future_use: 0x9260-0xFFFF -# -# This range must be the last range in the file. To generate a new -# range, allocate multiples of 16 from the beginning of the -# Any_vendor_future_use range and update enum.spec - -############################################################################### - -# ARB: 100000-100999 (GLU enumerants only) -# ARB: 101000-101999 (Conformance tests only) - -############################################################################### - -# IBM: 103000-103999 -# CULL_VERTEX_IBM = 103050 -# VERTEX_ARRAY_LIST_IBM = 103070 -# NORMAL_ARRAY_LIST_IBM = 103071 -# COLOR_ARRAY_LIST_IBM = 103072 -# INDEX_ARRAY_LIST_IBM = 103073 -# TEXTURE_COORD_ARRAY_LIST_IBM = 103074 -# EDGE_FLAG_ARRAY_LIST_IBM = 103075 -# FOG_COORDINATE_ARRAY_LIST_IBM = 103076 -# SECONDARY_COLOR_ARRAY_LIST_IBM = 103077 -# VERTEX_ARRAY_LIST_STRIDE_IBM = 103080 -# NORMAL_ARRAY_LIST_STRIDE_IBM = 103081 -# COLOR_ARRAY_LIST_STRIDE_IBM = 103082 -# INDEX_ARRAY_LIST_STRIDE_IBM = 103083 -# TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM = 103084 -# EDGE_FLAG_ARRAY_LIST_STRIDE_IBM = 103085 -# FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM = 103086 -# SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM = 103087 - -############################################################################### - -# NEC: 104000-104999 -# Compaq: 105000-105999 (Compaq was acquired by HP) -# KPC: 106000-106999 (Kubota is out of business) -# PGI: 107000-107999 (Portable was acquired by Template Graphics) -# E&S: 108000-108999 - -############################################################################### diff --git a/src/glx/apple/specs/enumext.spec b/src/glx/apple/specs/enumext.spec deleted file mode 100644 index a132cdbed6d..00000000000 --- a/src/glx/apple/specs/enumext.spec +++ /dev/null @@ -1,6993 +0,0 @@ -# enumext.spec - list of GL enumerants for glext.h header -# -# $Revision: 14384 $ on $Date: 2011-04-05 23:05:03 -0700 (Tue, 05 Apr 2011) $ - -# This is derived from the master GL enumerant registry (enum.spec). -# -# Unlike enum.spec, enumext.spec is -# (1) Grouped by GL core version or extension number -# (2) While it includes all extension and core enumerants, the -# generator scripts for glext.h leave out VERSION_1_1 -# tokens since it's assumed all today support at least -# OpenGL 1.1 -# (3) Has no 'Extensions' section, since enums are always -# conditionally protected against multiple definition -# by glextenum.pl. -# (4) Is processed by glextenum.pl, which has evolved -# from enum.pl - should merge back into one script. - -# The release number encoded into glext.h is now defined in -# glextrelease.txt. - -############################################################################### -# -# OpenGL 1.0/1.1 enums (there is no VERSION_1_0 token) -# -############################################################################### - -VERSION_1_1 enum: -passthru: /* AttribMask */ - DEPTH_BUFFER_BIT = 0x00000100 # AttribMask - STENCIL_BUFFER_BIT = 0x00000400 # AttribMask - COLOR_BUFFER_BIT = 0x00004000 # AttribMask -passthru: /* Boolean */ - FALSE = 0 # Boolean - TRUE = 1 # Boolean -passthru: /* BeginMode */ - POINTS = 0x0000 # BeginMode - LINES = 0x0001 # BeginMode - LINE_LOOP = 0x0002 # BeginMode - LINE_STRIP = 0x0003 # BeginMode - TRIANGLES = 0x0004 # BeginMode - TRIANGLE_STRIP = 0x0005 # BeginMode - TRIANGLE_FAN = 0x0006 # BeginMode -passthru: /* AlphaFunction */ - NEVER = 0x0200 # AlphaFunction - LESS = 0x0201 # AlphaFunction - EQUAL = 0x0202 # AlphaFunction - LEQUAL = 0x0203 # AlphaFunction - GREATER = 0x0204 # AlphaFunction - NOTEQUAL = 0x0205 # AlphaFunction - GEQUAL = 0x0206 # AlphaFunction - ALWAYS = 0x0207 # AlphaFunction -passthru: /* BlendingFactorDest */ - ZERO = 0 # BlendingFactorDest - ONE = 1 # BlendingFactorDest - SRC_COLOR = 0x0300 # BlendingFactorDest - ONE_MINUS_SRC_COLOR = 0x0301 # BlendingFactorDest - SRC_ALPHA = 0x0302 # BlendingFactorDest - ONE_MINUS_SRC_ALPHA = 0x0303 # BlendingFactorDest - DST_ALPHA = 0x0304 # BlendingFactorDest - ONE_MINUS_DST_ALPHA = 0x0305 # BlendingFactorDest -passthru: /* BlendingFactorSrc */ - DST_COLOR = 0x0306 # BlendingFactorSrc - ONE_MINUS_DST_COLOR = 0x0307 # BlendingFactorSrc - SRC_ALPHA_SATURATE = 0x0308 # BlendingFactorSrc -passthru: /* DrawBufferMode */ - NONE = 0 # DrawBufferMode - FRONT_LEFT = 0x0400 # DrawBufferMode - FRONT_RIGHT = 0x0401 # DrawBufferMode - BACK_LEFT = 0x0402 # DrawBufferMode - BACK_RIGHT = 0x0403 # DrawBufferMode - FRONT = 0x0404 # DrawBufferMode - BACK = 0x0405 # DrawBufferMode - LEFT = 0x0406 # DrawBufferMode - RIGHT = 0x0407 # DrawBufferMode - FRONT_AND_BACK = 0x0408 # DrawBufferMode -passthru: /* ErrorCode */ - NO_ERROR = 0 # ErrorCode - INVALID_ENUM = 0x0500 # ErrorCode - INVALID_VALUE = 0x0501 # ErrorCode - INVALID_OPERATION = 0x0502 # ErrorCode - OUT_OF_MEMORY = 0x0505 # ErrorCode -passthru: /* FrontFaceDirection */ - CW = 0x0900 # FrontFaceDirection - CCW = 0x0901 # FrontFaceDirection -passthru: /* GetPName */ - POINT_SIZE = 0x0B11 # 1 F # GetPName - POINT_SIZE_RANGE = 0x0B12 # 2 F # GetPName - POINT_SIZE_GRANULARITY = 0x0B13 # 1 F # GetPName - LINE_SMOOTH = 0x0B20 # 1 I # GetPName - LINE_WIDTH = 0x0B21 # 1 F # GetPName - LINE_WIDTH_RANGE = 0x0B22 # 2 F # GetPName - LINE_WIDTH_GRANULARITY = 0x0B23 # 1 F # GetPName - POLYGON_SMOOTH = 0x0B41 # 1 I # GetPName - CULL_FACE = 0x0B44 # 1 I # GetPName - CULL_FACE_MODE = 0x0B45 # 1 I # GetPName - FRONT_FACE = 0x0B46 # 1 I # GetPName - DEPTH_RANGE = 0x0B70 # 2 F # GetPName - DEPTH_TEST = 0x0B71 # 1 I # GetPName - DEPTH_WRITEMASK = 0x0B72 # 1 I # GetPName - DEPTH_CLEAR_VALUE = 0x0B73 # 1 F # GetPName - DEPTH_FUNC = 0x0B74 # 1 I # GetPName - STENCIL_TEST = 0x0B90 # 1 I # GetPName - STENCIL_CLEAR_VALUE = 0x0B91 # 1 I # GetPName - STENCIL_FUNC = 0x0B92 # 1 I # GetPName - STENCIL_VALUE_MASK = 0x0B93 # 1 I # GetPName - STENCIL_FAIL = 0x0B94 # 1 I # GetPName - STENCIL_PASS_DEPTH_FAIL = 0x0B95 # 1 I # GetPName - STENCIL_PASS_DEPTH_PASS = 0x0B96 # 1 I # GetPName - STENCIL_REF = 0x0B97 # 1 I # GetPName - STENCIL_WRITEMASK = 0x0B98 # 1 I # GetPName - VIEWPORT = 0x0BA2 # 4 I # GetPName - DITHER = 0x0BD0 # 1 I # GetPName - BLEND_DST = 0x0BE0 # 1 I # GetPName - BLEND_SRC = 0x0BE1 # 1 I # GetPName - BLEND = 0x0BE2 # 1 I # GetPName - LOGIC_OP_MODE = 0x0BF0 # 1 I # GetPName - COLOR_LOGIC_OP = 0x0BF2 # 1 I # GetPName - DRAW_BUFFER = 0x0C01 # 1 I # GetPName - READ_BUFFER = 0x0C02 # 1 I # GetPName - SCISSOR_BOX = 0x0C10 # 4 I # GetPName - SCISSOR_TEST = 0x0C11 # 1 I # GetPName - COLOR_CLEAR_VALUE = 0x0C22 # 4 F # GetPName - COLOR_WRITEMASK = 0x0C23 # 4 I # GetPName - DOUBLEBUFFER = 0x0C32 # 1 I # GetPName - STEREO = 0x0C33 # 1 I # GetPName - LINE_SMOOTH_HINT = 0x0C52 # 1 I # GetPName - POLYGON_SMOOTH_HINT = 0x0C53 # 1 I # GetPName - UNPACK_SWAP_BYTES = 0x0CF0 # 1 I # GetPName - UNPACK_LSB_FIRST = 0x0CF1 # 1 I # GetPName - UNPACK_ROW_LENGTH = 0x0CF2 # 1 I # GetPName - UNPACK_SKIP_ROWS = 0x0CF3 # 1 I # GetPName - UNPACK_SKIP_PIXELS = 0x0CF4 # 1 I # GetPName - UNPACK_ALIGNMENT = 0x0CF5 # 1 I # GetPName - PACK_SWAP_BYTES = 0x0D00 # 1 I # GetPName - PACK_LSB_FIRST = 0x0D01 # 1 I # GetPName - PACK_ROW_LENGTH = 0x0D02 # 1 I # GetPName - PACK_SKIP_ROWS = 0x0D03 # 1 I # GetPName - PACK_SKIP_PIXELS = 0x0D04 # 1 I # GetPName - PACK_ALIGNMENT = 0x0D05 # 1 I # GetPName - MAX_TEXTURE_SIZE = 0x0D33 # 1 I # GetPName - MAX_VIEWPORT_DIMS = 0x0D3A # 2 F # GetPName - SUBPIXEL_BITS = 0x0D50 # 1 I # GetPName - TEXTURE_1D = 0x0DE0 # 1 I # GetPName - TEXTURE_2D = 0x0DE1 # 1 I # GetPName - POLYGON_OFFSET_UNITS = 0x2A00 # 1 F # GetPName - POLYGON_OFFSET_POINT = 0x2A01 # 1 I # GetPName - POLYGON_OFFSET_LINE = 0x2A02 # 1 I # GetPName - POLYGON_OFFSET_FILL = 0x8037 # 1 I # GetPName - POLYGON_OFFSET_FACTOR = 0x8038 # 1 F # GetPName - TEXTURE_BINDING_1D = 0x8068 # 1 I # GetPName - TEXTURE_BINDING_2D = 0x8069 # 1 I # GetPName -passthru: /* GetTextureParameter */ - TEXTURE_WIDTH = 0x1000 # GetTextureParameter - TEXTURE_HEIGHT = 0x1001 # GetTextureParameter - TEXTURE_INTERNAL_FORMAT = 0x1003 # GetTextureParameter - TEXTURE_BORDER_COLOR = 0x1004 # GetTextureParameter - TEXTURE_RED_SIZE = 0x805C # GetTextureParameter - TEXTURE_GREEN_SIZE = 0x805D # GetTextureParameter - TEXTURE_BLUE_SIZE = 0x805E # GetTextureParameter - TEXTURE_ALPHA_SIZE = 0x805F # GetTextureParameter -passthru: /* HintMode */ - DONT_CARE = 0x1100 # HintMode - FASTEST = 0x1101 # HintMode - NICEST = 0x1102 # HintMode -passthru: /* DataType */ - BYTE = 0x1400 # DataType - UNSIGNED_BYTE = 0x1401 # DataType - SHORT = 0x1402 # DataType - UNSIGNED_SHORT = 0x1403 # DataType - INT = 0x1404 # DataType - UNSIGNED_INT = 0x1405 # DataType - FLOAT = 0x1406 # DataType - DOUBLE = 0x140A # DataType -passthru: /* LogicOp */ - CLEAR = 0x1500 # LogicOp - AND = 0x1501 # LogicOp - AND_REVERSE = 0x1502 # LogicOp - COPY = 0x1503 # LogicOp - AND_INVERTED = 0x1504 # LogicOp - NOOP = 0x1505 # LogicOp - XOR = 0x1506 # LogicOp - OR = 0x1507 # LogicOp - NOR = 0x1508 # LogicOp - EQUIV = 0x1509 # LogicOp - INVERT = 0x150A # LogicOp - OR_REVERSE = 0x150B # LogicOp - COPY_INVERTED = 0x150C # LogicOp - OR_INVERTED = 0x150D # LogicOp - NAND = 0x150E # LogicOp - SET = 0x150F # LogicOp -passthru: /* MatrixMode (for gl3.h, FBO attachment type) */ - TEXTURE = 0x1702 # MatrixMode -passthru: /* PixelCopyType */ - COLOR = 0x1800 # PixelCopyType - DEPTH = 0x1801 # PixelCopyType - STENCIL = 0x1802 # PixelCopyType -passthru: /* PixelFormat */ - STENCIL_INDEX = 0x1901 # PixelFormat - DEPTH_COMPONENT = 0x1902 # PixelFormat - RED = 0x1903 # PixelFormat - GREEN = 0x1904 # PixelFormat - BLUE = 0x1905 # PixelFormat - ALPHA = 0x1906 # PixelFormat - RGB = 0x1907 # PixelFormat - RGBA = 0x1908 # PixelFormat -passthru: /* PolygonMode */ - POINT = 0x1B00 # PolygonMode - LINE = 0x1B01 # PolygonMode - FILL = 0x1B02 # PolygonMode -passthru: /* StencilOp */ - KEEP = 0x1E00 # StencilOp - REPLACE = 0x1E01 # StencilOp - INCR = 0x1E02 # StencilOp - DECR = 0x1E03 # StencilOp -passthru: /* StringName */ - VENDOR = 0x1F00 # StringName - RENDERER = 0x1F01 # StringName - VERSION = 0x1F02 # StringName - EXTENSIONS = 0x1F03 # StringName -passthru: /* TextureMagFilter */ - NEAREST = 0x2600 # TextureMagFilter - LINEAR = 0x2601 # TextureMagFilter -passthru: /* TextureMinFilter */ - NEAREST_MIPMAP_NEAREST = 0x2700 # TextureMinFilter - LINEAR_MIPMAP_NEAREST = 0x2701 # TextureMinFilter - NEAREST_MIPMAP_LINEAR = 0x2702 # TextureMinFilter - LINEAR_MIPMAP_LINEAR = 0x2703 # TextureMinFilter -passthru: /* TextureParameterName */ - TEXTURE_MAG_FILTER = 0x2800 # TextureParameterName - TEXTURE_MIN_FILTER = 0x2801 # TextureParameterName - TEXTURE_WRAP_S = 0x2802 # TextureParameterName - TEXTURE_WRAP_T = 0x2803 # TextureParameterName -passthru: /* TextureTarget */ - PROXY_TEXTURE_1D = 0x8063 # TextureTarget - PROXY_TEXTURE_2D = 0x8064 # TextureTarget -passthru: /* TextureWrapMode */ - REPEAT = 0x2901 # TextureWrapMode -passthru: /* PixelInternalFormat */ - R3_G3_B2 = 0x2A10 # PixelInternalFormat - RGB4 = 0x804F # PixelInternalFormat - RGB5 = 0x8050 # PixelInternalFormat - RGB8 = 0x8051 # PixelInternalFormat - RGB10 = 0x8052 # PixelInternalFormat - RGB12 = 0x8053 # PixelInternalFormat - RGB16 = 0x8054 # PixelInternalFormat - RGBA2 = 0x8055 # PixelInternalFormat - RGBA4 = 0x8056 # PixelInternalFormat - RGB5_A1 = 0x8057 # PixelInternalFormat - RGBA8 = 0x8058 # PixelInternalFormat - RGB10_A2 = 0x8059 # PixelInternalFormat - RGBA12 = 0x805A # PixelInternalFormat - RGBA16 = 0x805B # PixelInternalFormat - -VERSION_1_1_DEPRECATED enum: -passthru: /* AttribMask */ - CURRENT_BIT = 0x00000001 # AttribMask - POINT_BIT = 0x00000002 # AttribMask - LINE_BIT = 0x00000004 # AttribMask - POLYGON_BIT = 0x00000008 # AttribMask - POLYGON_STIPPLE_BIT = 0x00000010 # AttribMask - PIXEL_MODE_BIT = 0x00000020 # AttribMask - LIGHTING_BIT = 0x00000040 # AttribMask - FOG_BIT = 0x00000080 # AttribMask - ACCUM_BUFFER_BIT = 0x00000200 # AttribMask - VIEWPORT_BIT = 0x00000800 # AttribMask - TRANSFORM_BIT = 0x00001000 # AttribMask - ENABLE_BIT = 0x00002000 # AttribMask - HINT_BIT = 0x00008000 # AttribMask - EVAL_BIT = 0x00010000 # AttribMask - LIST_BIT = 0x00020000 # AttribMask - TEXTURE_BIT = 0x00040000 # AttribMask - SCISSOR_BIT = 0x00080000 # AttribMask - ALL_ATTRIB_BITS = 0xFFFFFFFF # AttribMask -passthru: /* ClientAttribMask */ - CLIENT_PIXEL_STORE_BIT = 0x00000001 # ClientAttribMask - CLIENT_VERTEX_ARRAY_BIT = 0x00000002 # ClientAttribMask - CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF # ClientAttribMask -passthru: /* BeginMode */ - QUADS = 0x0007 # BeginMode - QUAD_STRIP = 0x0008 # BeginMode - POLYGON = 0x0009 # BeginMode -passthru: /* AccumOp */ - ACCUM = 0x0100 # AccumOp - LOAD = 0x0101 # AccumOp - RETURN = 0x0102 # AccumOp - MULT = 0x0103 # AccumOp - ADD = 0x0104 # AccumOp -passthru: /* DrawBufferMode */ - AUX0 = 0x0409 # DrawBufferMode - AUX1 = 0x040A # DrawBufferMode - AUX2 = 0x040B # DrawBufferMode - AUX3 = 0x040C # DrawBufferMode -passthru: /* ErrorCode */ - STACK_OVERFLOW = 0x0503 # ErrorCode - STACK_UNDERFLOW = 0x0504 # ErrorCode -passthru: /* FeedbackType */ - 2D = 0x0600 # FeedbackType - 3D = 0x0601 # FeedbackType - 3D_COLOR = 0x0602 # FeedbackType - 3D_COLOR_TEXTURE = 0x0603 # FeedbackType - 4D_COLOR_TEXTURE = 0x0604 # FeedbackType -passthru: /* FeedBackToken */ - PASS_THROUGH_TOKEN = 0x0700 # FeedBackToken - POINT_TOKEN = 0x0701 # FeedBackToken - LINE_TOKEN = 0x0702 # FeedBackToken - POLYGON_TOKEN = 0x0703 # FeedBackToken - BITMAP_TOKEN = 0x0704 # FeedBackToken - DRAW_PIXEL_TOKEN = 0x0705 # FeedBackToken - COPY_PIXEL_TOKEN = 0x0706 # FeedBackToken - LINE_RESET_TOKEN = 0x0707 # FeedBackToken -passthru: /* FogMode */ - EXP = 0x0800 # FogMode - EXP2 = 0x0801 # FogMode -passthru: /* GetMapQuery */ - COEFF = 0x0A00 # GetMapQuery - ORDER = 0x0A01 # GetMapQuery - DOMAIN = 0x0A02 # GetMapQuery -passthru: /* GetPixelMap */ - PIXEL_MAP_I_TO_I = 0x0C70 # GetPixelMap - PIXEL_MAP_S_TO_S = 0x0C71 # GetPixelMap - PIXEL_MAP_I_TO_R = 0x0C72 # GetPixelMap - PIXEL_MAP_I_TO_G = 0x0C73 # GetPixelMap - PIXEL_MAP_I_TO_B = 0x0C74 # GetPixelMap - PIXEL_MAP_I_TO_A = 0x0C75 # GetPixelMap - PIXEL_MAP_R_TO_R = 0x0C76 # GetPixelMap - PIXEL_MAP_G_TO_G = 0x0C77 # GetPixelMap - PIXEL_MAP_B_TO_B = 0x0C78 # GetPixelMap - PIXEL_MAP_A_TO_A = 0x0C79 # GetPixelMap -passthru: /* GetPointervPName */ - VERTEX_ARRAY_POINTER = 0x808E # GetPointervPName - NORMAL_ARRAY_POINTER = 0x808F # GetPointervPName - COLOR_ARRAY_POINTER = 0x8090 # GetPointervPName - INDEX_ARRAY_POINTER = 0x8091 # GetPointervPName - TEXTURE_COORD_ARRAY_POINTER = 0x8092 # GetPointervPName - EDGE_FLAG_ARRAY_POINTER = 0x8093 # GetPointervPName - FEEDBACK_BUFFER_POINTER = 0x0DF0 # GetPointervPName - SELECTION_BUFFER_POINTER = 0x0DF3 # GetPointervPName -passthru: /* GetPName */ - CURRENT_COLOR = 0x0B00 # 4 F # GetPName - CURRENT_INDEX = 0x0B01 # 1 F # GetPName - CURRENT_NORMAL = 0x0B02 # 3 F # GetPName - CURRENT_TEXTURE_COORDS = 0x0B03 # 4 F # GetPName - CURRENT_RASTER_COLOR = 0x0B04 # 4 F # GetPName - CURRENT_RASTER_INDEX = 0x0B05 # 1 F # GetPName - CURRENT_RASTER_TEXTURE_COORDS = 0x0B06 # 4 F # GetPName - CURRENT_RASTER_POSITION = 0x0B07 # 4 F # GetPName - CURRENT_RASTER_POSITION_VALID = 0x0B08 # 1 I # GetPName - CURRENT_RASTER_DISTANCE = 0x0B09 # 1 F # GetPName - POINT_SMOOTH = 0x0B10 # 1 I # GetPName - LINE_STIPPLE = 0x0B24 # 1 I # GetPName - LINE_STIPPLE_PATTERN = 0x0B25 # 1 I # GetPName - LINE_STIPPLE_REPEAT = 0x0B26 # 1 I # GetPName - LIST_MODE = 0x0B30 # 1 I # GetPName - MAX_LIST_NESTING = 0x0B31 # 1 I # GetPName - LIST_BASE = 0x0B32 # 1 I # GetPName - LIST_INDEX = 0x0B33 # 1 I # GetPName - POLYGON_MODE = 0x0B40 # 2 I # GetPName - POLYGON_STIPPLE = 0x0B42 # 1 I # GetPName - EDGE_FLAG = 0x0B43 # 1 I # GetPName - LIGHTING = 0x0B50 # 1 I # GetPName - LIGHT_MODEL_LOCAL_VIEWER = 0x0B51 # 1 I # GetPName - LIGHT_MODEL_TWO_SIDE = 0x0B52 # 1 I # GetPName - LIGHT_MODEL_AMBIENT = 0x0B53 # 4 F # GetPName - SHADE_MODEL = 0x0B54 # 1 I # GetPName - COLOR_MATERIAL_FACE = 0x0B55 # 1 I # GetPName - COLOR_MATERIAL_PARAMETER = 0x0B56 # 1 I # GetPName - COLOR_MATERIAL = 0x0B57 # 1 I # GetPName - FOG = 0x0B60 # 1 I # GetPName - FOG_INDEX = 0x0B61 # 1 I # GetPName - FOG_DENSITY = 0x0B62 # 1 F # GetPName - FOG_START = 0x0B63 # 1 F # GetPName - FOG_END = 0x0B64 # 1 F # GetPName - FOG_MODE = 0x0B65 # 1 I # GetPName - FOG_COLOR = 0x0B66 # 4 F # GetPName - ACCUM_CLEAR_VALUE = 0x0B80 # 4 F # GetPName - MATRIX_MODE = 0x0BA0 # 1 I # GetPName - NORMALIZE = 0x0BA1 # 1 I # GetPName - MODELVIEW_STACK_DEPTH = 0x0BA3 # 1 I # GetPName - PROJECTION_STACK_DEPTH = 0x0BA4 # 1 I # GetPName - TEXTURE_STACK_DEPTH = 0x0BA5 # 1 I # GetPName - MODELVIEW_MATRIX = 0x0BA6 # 16 F # GetPName - PROJECTION_MATRIX = 0x0BA7 # 16 F # GetPName - TEXTURE_MATRIX = 0x0BA8 # 16 F # GetPName - ATTRIB_STACK_DEPTH = 0x0BB0 # 1 I # GetPName - CLIENT_ATTRIB_STACK_DEPTH = 0x0BB1 # 1 I # GetPName - ALPHA_TEST = 0x0BC0 # 1 I # GetPName - ALPHA_TEST_FUNC = 0x0BC1 # 1 I # GetPName - ALPHA_TEST_REF = 0x0BC2 # 1 F # GetPName - INDEX_LOGIC_OP = 0x0BF1 # 1 I # GetPName - LOGIC_OP = 0x0BF1 # 1 I # GetPName - AUX_BUFFERS = 0x0C00 # 1 I # GetPName - INDEX_CLEAR_VALUE = 0x0C20 # 1 I # GetPName - INDEX_WRITEMASK = 0x0C21 # 1 I # GetPName - INDEX_MODE = 0x0C30 # 1 I # GetPName - RGBA_MODE = 0x0C31 # 1 I # GetPName - RENDER_MODE = 0x0C40 # 1 I # GetPName - PERSPECTIVE_CORRECTION_HINT = 0x0C50 # 1 I # GetPName - POINT_SMOOTH_HINT = 0x0C51 # 1 I # GetPName - FOG_HINT = 0x0C54 # 1 I # GetPName - TEXTURE_GEN_S = 0x0C60 # 1 I # GetPName - TEXTURE_GEN_T = 0x0C61 # 1 I # GetPName - TEXTURE_GEN_R = 0x0C62 # 1 I # GetPName - TEXTURE_GEN_Q = 0x0C63 # 1 I # GetPName - PIXEL_MAP_I_TO_I_SIZE = 0x0CB0 # 1 I # GetPName - PIXEL_MAP_S_TO_S_SIZE = 0x0CB1 # 1 I # GetPName - PIXEL_MAP_I_TO_R_SIZE = 0x0CB2 # 1 I # GetPName - PIXEL_MAP_I_TO_G_SIZE = 0x0CB3 # 1 I # GetPName - PIXEL_MAP_I_TO_B_SIZE = 0x0CB4 # 1 I # GetPName - PIXEL_MAP_I_TO_A_SIZE = 0x0CB5 # 1 I # GetPName - PIXEL_MAP_R_TO_R_SIZE = 0x0CB6 # 1 I # GetPName - PIXEL_MAP_G_TO_G_SIZE = 0x0CB7 # 1 I # GetPName - PIXEL_MAP_B_TO_B_SIZE = 0x0CB8 # 1 I # GetPName - PIXEL_MAP_A_TO_A_SIZE = 0x0CB9 # 1 I # GetPName - MAP_COLOR = 0x0D10 # 1 I # GetPName - MAP_STENCIL = 0x0D11 # 1 I # GetPName - INDEX_SHIFT = 0x0D12 # 1 I # GetPName - INDEX_OFFSET = 0x0D13 # 1 I # GetPName - RED_SCALE = 0x0D14 # 1 F # GetPName - RED_BIAS = 0x0D15 # 1 F # GetPName - ZOOM_X = 0x0D16 # 1 F # GetPName - ZOOM_Y = 0x0D17 # 1 F # GetPName - GREEN_SCALE = 0x0D18 # 1 F # GetPName - GREEN_BIAS = 0x0D19 # 1 F # GetPName - BLUE_SCALE = 0x0D1A # 1 F # GetPName - BLUE_BIAS = 0x0D1B # 1 F # GetPName - ALPHA_SCALE = 0x0D1C # 1 F # GetPName - ALPHA_BIAS = 0x0D1D # 1 F # GetPName - DEPTH_SCALE = 0x0D1E # 1 F # GetPName - DEPTH_BIAS = 0x0D1F # 1 F # GetPName - MAX_EVAL_ORDER = 0x0D30 # 1 I # GetPName - MAX_LIGHTS = 0x0D31 # 1 I # GetPName - MAX_CLIP_PLANES = 0x0D32 # 1 I # GetPName - MAX_PIXEL_MAP_TABLE = 0x0D34 # 1 I # GetPName - MAX_ATTRIB_STACK_DEPTH = 0x0D35 # 1 I # GetPName - MAX_MODELVIEW_STACK_DEPTH = 0x0D36 # 1 I # GetPName - MAX_NAME_STACK_DEPTH = 0x0D37 # 1 I # GetPName - MAX_PROJECTION_STACK_DEPTH = 0x0D38 # 1 I # GetPName - MAX_TEXTURE_STACK_DEPTH = 0x0D39 # 1 I # GetPName - MAX_CLIENT_ATTRIB_STACK_DEPTH = 0x0D3B # 1 I # GetPName - INDEX_BITS = 0x0D51 # 1 I # GetPName - RED_BITS = 0x0D52 # 1 I # GetPName - GREEN_BITS = 0x0D53 # 1 I # GetPName - BLUE_BITS = 0x0D54 # 1 I # GetPName - ALPHA_BITS = 0x0D55 # 1 I # GetPName - DEPTH_BITS = 0x0D56 # 1 I # GetPName - STENCIL_BITS = 0x0D57 # 1 I # GetPName - ACCUM_RED_BITS = 0x0D58 # 1 I # GetPName - ACCUM_GREEN_BITS = 0x0D59 # 1 I # GetPName - ACCUM_BLUE_BITS = 0x0D5A # 1 I # GetPName - ACCUM_ALPHA_BITS = 0x0D5B # 1 I # GetPName - NAME_STACK_DEPTH = 0x0D70 # 1 I # GetPName - AUTO_NORMAL = 0x0D80 # 1 I # GetPName - MAP1_COLOR_4 = 0x0D90 # 1 I # GetPName - MAP1_INDEX = 0x0D91 # 1 I # GetPName - MAP1_NORMAL = 0x0D92 # 1 I # GetPName - MAP1_TEXTURE_COORD_1 = 0x0D93 # 1 I # GetPName - MAP1_TEXTURE_COORD_2 = 0x0D94 # 1 I # GetPName - MAP1_TEXTURE_COORD_3 = 0x0D95 # 1 I # GetPName - MAP1_TEXTURE_COORD_4 = 0x0D96 # 1 I # GetPName - MAP1_VERTEX_3 = 0x0D97 # 1 I # GetPName - MAP1_VERTEX_4 = 0x0D98 # 1 I # GetPName - MAP2_COLOR_4 = 0x0DB0 # 1 I # GetPName - MAP2_INDEX = 0x0DB1 # 1 I # GetPName - MAP2_NORMAL = 0x0DB2 # 1 I # GetPName - MAP2_TEXTURE_COORD_1 = 0x0DB3 # 1 I # GetPName - MAP2_TEXTURE_COORD_2 = 0x0DB4 # 1 I # GetPName - MAP2_TEXTURE_COORD_3 = 0x0DB5 # 1 I # GetPName - MAP2_TEXTURE_COORD_4 = 0x0DB6 # 1 I # GetPName - MAP2_VERTEX_3 = 0x0DB7 # 1 I # GetPName - MAP2_VERTEX_4 = 0x0DB8 # 1 I # GetPName - MAP1_GRID_DOMAIN = 0x0DD0 # 2 F # GetPName - MAP1_GRID_SEGMENTS = 0x0DD1 # 1 I # GetPName - MAP2_GRID_DOMAIN = 0x0DD2 # 4 F # GetPName - MAP2_GRID_SEGMENTS = 0x0DD3 # 2 I # GetPName - FEEDBACK_BUFFER_SIZE = 0x0DF1 # 1 I # GetPName - FEEDBACK_BUFFER_TYPE = 0x0DF2 # 1 I # GetPName - SELECTION_BUFFER_SIZE = 0x0DF4 # 1 I # GetPName - VERTEX_ARRAY = 0x8074 # 1 I # GetPName - NORMAL_ARRAY = 0x8075 # 1 I # GetPName - COLOR_ARRAY = 0x8076 # 1 I # GetPName - INDEX_ARRAY = 0x8077 # 1 I # GetPName - TEXTURE_COORD_ARRAY = 0x8078 # 1 I # GetPName - EDGE_FLAG_ARRAY = 0x8079 # 1 I # GetPName - VERTEX_ARRAY_SIZE = 0x807A # 1 I # GetPName - VERTEX_ARRAY_TYPE = 0x807B # 1 I # GetPName - VERTEX_ARRAY_STRIDE = 0x807C # 1 I # GetPName - NORMAL_ARRAY_TYPE = 0x807E # 1 I # GetPName - NORMAL_ARRAY_STRIDE = 0x807F # 1 I # GetPName - COLOR_ARRAY_SIZE = 0x8081 # 1 I # GetPName - COLOR_ARRAY_TYPE = 0x8082 # 1 I # GetPName - COLOR_ARRAY_STRIDE = 0x8083 # 1 I # GetPName - INDEX_ARRAY_TYPE = 0x8085 # 1 I # GetPName - INDEX_ARRAY_STRIDE = 0x8086 # 1 I # GetPName - TEXTURE_COORD_ARRAY_SIZE = 0x8088 # 1 I # GetPName - TEXTURE_COORD_ARRAY_TYPE = 0x8089 # 1 I # GetPName - TEXTURE_COORD_ARRAY_STRIDE = 0x808A # 1 I # GetPName - EDGE_FLAG_ARRAY_STRIDE = 0x808C # 1 I # GetPName -passthru: /* GetTextureParameter */ - TEXTURE_COMPONENTS = 0x1003 # GetTextureParameter - TEXTURE_BORDER = 0x1005 # GetTextureParameter - TEXTURE_LUMINANCE_SIZE = 0x8060 # GetTextureParameter - TEXTURE_INTENSITY_SIZE = 0x8061 # GetTextureParameter - TEXTURE_PRIORITY = 0x8066 # GetTextureParameter - TEXTURE_RESIDENT = 0x8067 # GetTextureParameter -passthru: /* LightParameter */ - AMBIENT = 0x1200 # LightParameter - DIFFUSE = 0x1201 # LightParameter - SPECULAR = 0x1202 # LightParameter - POSITION = 0x1203 # LightParameter - SPOT_DIRECTION = 0x1204 # LightParameter - SPOT_EXPONENT = 0x1205 # LightParameter - SPOT_CUTOFF = 0x1206 # LightParameter - CONSTANT_ATTENUATION = 0x1207 # LightParameter - LINEAR_ATTENUATION = 0x1208 # LightParameter - QUADRATIC_ATTENUATION = 0x1209 # LightParameter -passthru: /* ListMode */ - COMPILE = 0x1300 # ListMode - COMPILE_AND_EXECUTE = 0x1301 # ListMode -passthru: /* DataType */ - 2_BYTES = 0x1407 # DataType - 3_BYTES = 0x1408 # DataType - 4_BYTES = 0x1409 # DataType -passthru: /* MaterialParameter */ - EMISSION = 0x1600 # MaterialParameter - SHININESS = 0x1601 # MaterialParameter - AMBIENT_AND_DIFFUSE = 0x1602 # MaterialParameter - COLOR_INDEXES = 0x1603 # MaterialParameter -passthru: /* MatrixMode */ - MODELVIEW = 0x1700 # MatrixMode - PROJECTION = 0x1701 # MatrixMode -passthru: /* PixelFormat */ - COLOR_INDEX = 0x1900 # PixelFormat - LUMINANCE = 0x1909 # PixelFormat - LUMINANCE_ALPHA = 0x190A # PixelFormat -passthru: /* PixelType */ - BITMAP = 0x1A00 # PixelType -passthru: /* RenderingMode */ - RENDER = 0x1C00 # RenderingMode - FEEDBACK = 0x1C01 # RenderingMode - SELECT = 0x1C02 # RenderingMode -passthru: /* ShadingModel */ - FLAT = 0x1D00 # ShadingModel - SMOOTH = 0x1D01 # ShadingModel -passthru: /* TextureCoordName */ - S = 0x2000 # TextureCoordName - T = 0x2001 # TextureCoordName - R = 0x2002 # TextureCoordName - Q = 0x2003 # TextureCoordName -passthru: /* TextureEnvMode */ - MODULATE = 0x2100 # TextureEnvMode - DECAL = 0x2101 # TextureEnvMode -passthru: /* TextureEnvParameter */ - TEXTURE_ENV_MODE = 0x2200 # TextureEnvParameter - TEXTURE_ENV_COLOR = 0x2201 # TextureEnvParameter -passthru: /* TextureEnvTarget */ - TEXTURE_ENV = 0x2300 # TextureEnvTarget -passthru: /* TextureGenMode */ - EYE_LINEAR = 0x2400 # TextureGenMode - OBJECT_LINEAR = 0x2401 # TextureGenMode - SPHERE_MAP = 0x2402 # TextureGenMode -passthru: /* TextureGenParameter */ - TEXTURE_GEN_MODE = 0x2500 # TextureGenParameter - OBJECT_PLANE = 0x2501 # TextureGenParameter - EYE_PLANE = 0x2502 # TextureGenParameter -passthru: /* TextureWrapMode */ - CLAMP = 0x2900 # TextureWrapMode -passthru: /* PixelInternalFormat */ - ALPHA4 = 0x803B # PixelInternalFormat - ALPHA8 = 0x803C # PixelInternalFormat - ALPHA12 = 0x803D # PixelInternalFormat - ALPHA16 = 0x803E # PixelInternalFormat - LUMINANCE4 = 0x803F # PixelInternalFormat - LUMINANCE8 = 0x8040 # PixelInternalFormat - LUMINANCE12 = 0x8041 # PixelInternalFormat - LUMINANCE16 = 0x8042 # PixelInternalFormat - LUMINANCE4_ALPHA4 = 0x8043 # PixelInternalFormat - LUMINANCE6_ALPHA2 = 0x8044 # PixelInternalFormat - LUMINANCE8_ALPHA8 = 0x8045 # PixelInternalFormat - LUMINANCE12_ALPHA4 = 0x8046 # PixelInternalFormat - LUMINANCE12_ALPHA12 = 0x8047 # PixelInternalFormat - LUMINANCE16_ALPHA16 = 0x8048 # PixelInternalFormat - INTENSITY = 0x8049 # PixelInternalFormat - INTENSITY4 = 0x804A # PixelInternalFormat - INTENSITY8 = 0x804B # PixelInternalFormat - INTENSITY12 = 0x804C # PixelInternalFormat - INTENSITY16 = 0x804D # PixelInternalFormat -passthru: /* InterleavedArrayFormat */ - V2F = 0x2A20 # InterleavedArrayFormat - V3F = 0x2A21 # InterleavedArrayFormat - C4UB_V2F = 0x2A22 # InterleavedArrayFormat - C4UB_V3F = 0x2A23 # InterleavedArrayFormat - C3F_V3F = 0x2A24 # InterleavedArrayFormat - N3F_V3F = 0x2A25 # InterleavedArrayFormat - C4F_N3F_V3F = 0x2A26 # InterleavedArrayFormat - T2F_V3F = 0x2A27 # InterleavedArrayFormat - T4F_V4F = 0x2A28 # InterleavedArrayFormat - T2F_C4UB_V3F = 0x2A29 # InterleavedArrayFormat - T2F_C3F_V3F = 0x2A2A # InterleavedArrayFormat - T2F_N3F_V3F = 0x2A2B # InterleavedArrayFormat - T2F_C4F_N3F_V3F = 0x2A2C # InterleavedArrayFormat - T4F_C4F_N3F_V4F = 0x2A2D # InterleavedArrayFormat -passthru: /* ClipPlaneName */ - CLIP_PLANE0 = 0x3000 # 1 I # ClipPlaneName - CLIP_PLANE1 = 0x3001 # 1 I # ClipPlaneName - CLIP_PLANE2 = 0x3002 # 1 I # ClipPlaneName - CLIP_PLANE3 = 0x3003 # 1 I # ClipPlaneName - CLIP_PLANE4 = 0x3004 # 1 I # ClipPlaneName - CLIP_PLANE5 = 0x3005 # 1 I # ClipPlaneName -passthru: /* LightName */ - LIGHT0 = 0x4000 # 1 I # LightName - LIGHT1 = 0x4001 # 1 I # LightName - LIGHT2 = 0x4002 # 1 I # LightName - LIGHT3 = 0x4003 # 1 I # LightName - LIGHT4 = 0x4004 # 1 I # LightName - LIGHT5 = 0x4005 # 1 I # LightName - LIGHT6 = 0x4006 # 1 I # LightName - LIGHT7 = 0x4007 # 1 I # LightName - - -############################################################################### -# -# OpenGL 1.2 enums -# -############################################################################### - -VERSION_1_2 enum: - UNSIGNED_BYTE_3_3_2 = 0x8032 # Equivalent to EXT_packed_pixels - UNSIGNED_SHORT_4_4_4_4 = 0x8033 - UNSIGNED_SHORT_5_5_5_1 = 0x8034 - UNSIGNED_INT_8_8_8_8 = 0x8035 - UNSIGNED_INT_10_10_10_2 = 0x8036 - TEXTURE_BINDING_3D = 0x806A # 1 I - PACK_SKIP_IMAGES = 0x806B # 1 I - PACK_IMAGE_HEIGHT = 0x806C # 1 F - UNPACK_SKIP_IMAGES = 0x806D # 1 I - UNPACK_IMAGE_HEIGHT = 0x806E # 1 F - TEXTURE_3D = 0x806F # 1 I - PROXY_TEXTURE_3D = 0x8070 - TEXTURE_DEPTH = 0x8071 - TEXTURE_WRAP_R = 0x8072 - MAX_3D_TEXTURE_SIZE = 0x8073 # 1 I - UNSIGNED_BYTE_2_3_3_REV = 0x8362 # New for OpenGL 1.2 - UNSIGNED_SHORT_5_6_5 = 0x8363 - UNSIGNED_SHORT_5_6_5_REV = 0x8364 - UNSIGNED_SHORT_4_4_4_4_REV = 0x8365 - UNSIGNED_SHORT_1_5_5_5_REV = 0x8366 - UNSIGNED_INT_8_8_8_8_REV = 0x8367 - UNSIGNED_INT_2_10_10_10_REV = 0x8368 - BGR = 0x80E0 - BGRA = 0x80E1 - MAX_ELEMENTS_VERTICES = 0x80E8 - MAX_ELEMENTS_INDICES = 0x80E9 - CLAMP_TO_EDGE = 0x812F # Equivalent to SGIS_texture_edge_clamp - TEXTURE_MIN_LOD = 0x813A # Equivalent to SGIS_texture_lod - TEXTURE_MAX_LOD = 0x813B - TEXTURE_BASE_LEVEL = 0x813C - TEXTURE_MAX_LEVEL = 0x813D - SMOOTH_POINT_SIZE_RANGE = 0x0B12 # 2 F - SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13 # 1 F - SMOOTH_LINE_WIDTH_RANGE = 0x0B22 # 2 F - SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23 # 1 F - ALIASED_LINE_WIDTH_RANGE = 0x846E # 2 F - -VERSION_1_2_DEPRECATED enum: - RESCALE_NORMAL = 0x803A # 1 I # Equivalent to EXT_rescale_normal - LIGHT_MODEL_COLOR_CONTROL = 0x81F8 # 1 I - SINGLE_COLOR = 0x81F9 - SEPARATE_SPECULAR_COLOR = 0x81FA - ALIASED_POINT_SIZE_RANGE = 0x846D # 2 F - -ARB_imaging enum: - CONSTANT_COLOR = 0x8001 # Equivalent to EXT_blend_color - ONE_MINUS_CONSTANT_COLOR = 0x8002 - CONSTANT_ALPHA = 0x8003 - ONE_MINUS_CONSTANT_ALPHA = 0x8004 - BLEND_COLOR = 0x8005 # 4 F - FUNC_ADD = 0x8006 # Equivalent to EXT_blend_minmax - MIN = 0x8007 - MAX = 0x8008 - BLEND_EQUATION = 0x8009 # 1 I - FUNC_SUBTRACT = 0x800A # Equivalent to EXT_blend_subtract - FUNC_REVERSE_SUBTRACT = 0x800B - -ARB_imaging_DEPRECATED enum: - CONVOLUTION_1D = 0x8010 # 1 I # Equivalent to EXT_convolution - CONVOLUTION_2D = 0x8011 # 1 I - SEPARABLE_2D = 0x8012 # 1 I - CONVOLUTION_BORDER_MODE = 0x8013 - CONVOLUTION_FILTER_SCALE = 0x8014 - CONVOLUTION_FILTER_BIAS = 0x8015 - REDUCE = 0x8016 - CONVOLUTION_FORMAT = 0x8017 - CONVOLUTION_WIDTH = 0x8018 - CONVOLUTION_HEIGHT = 0x8019 - MAX_CONVOLUTION_WIDTH = 0x801A - MAX_CONVOLUTION_HEIGHT = 0x801B - POST_CONVOLUTION_RED_SCALE = 0x801C # 1 F - POST_CONVOLUTION_GREEN_SCALE = 0x801D # 1 F - POST_CONVOLUTION_BLUE_SCALE = 0x801E # 1 F - POST_CONVOLUTION_ALPHA_SCALE = 0x801F # 1 F - POST_CONVOLUTION_RED_BIAS = 0x8020 # 1 F - POST_CONVOLUTION_GREEN_BIAS = 0x8021 # 1 F - POST_CONVOLUTION_BLUE_BIAS = 0x8022 # 1 F - POST_CONVOLUTION_ALPHA_BIAS = 0x8023 # 1 F - HISTOGRAM = 0x8024 # 1 I # Equivalent to EXT_histogram - PROXY_HISTOGRAM = 0x8025 - HISTOGRAM_WIDTH = 0x8026 - HISTOGRAM_FORMAT = 0x8027 - HISTOGRAM_RED_SIZE = 0x8028 - HISTOGRAM_GREEN_SIZE = 0x8029 - HISTOGRAM_BLUE_SIZE = 0x802A - HISTOGRAM_ALPHA_SIZE = 0x802B - HISTOGRAM_LUMINANCE_SIZE = 0x802C - HISTOGRAM_SINK = 0x802D - MINMAX = 0x802E # 1 I - MINMAX_FORMAT = 0x802F - MINMAX_SINK = 0x8030 - TABLE_TOO_LARGE = 0x8031 - COLOR_MATRIX = 0x80B1 # 16 F # Equivalent to SGI_color_matrix - COLOR_MATRIX_STACK_DEPTH = 0x80B2 # 1 I - MAX_COLOR_MATRIX_STACK_DEPTH = 0x80B3 # 1 I - POST_COLOR_MATRIX_RED_SCALE = 0x80B4 # 1 F - POST_COLOR_MATRIX_GREEN_SCALE = 0x80B5 # 1 F - POST_COLOR_MATRIX_BLUE_SCALE = 0x80B6 # 1 F - POST_COLOR_MATRIX_ALPHA_SCALE = 0x80B7 # 1 F - POST_COLOR_MATRIX_RED_BIAS = 0x80B8 # 1 F - POST_COLOR_MATRIX_GREEN_BIAS = 0x80B9 # 1 F - POST_COLOR_MATRIX_BLUE_BIAS = 0x80BA # 1 F - POST_COLOR_MATRIX_ALPHA_BIAS = 0x80BB # 1 F - COLOR_TABLE = 0x80D0 # 1 I # Equivalent to SGI_color_table - POST_CONVOLUTION_COLOR_TABLE = 0x80D1 # 1 I - POST_COLOR_MATRIX_COLOR_TABLE = 0x80D2 # 1 I - PROXY_COLOR_TABLE = 0x80D3 - PROXY_POST_CONVOLUTION_COLOR_TABLE = 0x80D4 - PROXY_POST_COLOR_MATRIX_COLOR_TABLE = 0x80D5 - COLOR_TABLE_SCALE = 0x80D6 - COLOR_TABLE_BIAS = 0x80D7 - COLOR_TABLE_FORMAT = 0x80D8 - COLOR_TABLE_WIDTH = 0x80D9 - COLOR_TABLE_RED_SIZE = 0x80DA - COLOR_TABLE_GREEN_SIZE = 0x80DB - COLOR_TABLE_BLUE_SIZE = 0x80DC - COLOR_TABLE_ALPHA_SIZE = 0x80DD - COLOR_TABLE_LUMINANCE_SIZE = 0x80DE - COLOR_TABLE_INTENSITY_SIZE = 0x80DF - CONSTANT_BORDER = 0x8151 - REPLICATE_BORDER = 0x8153 - CONVOLUTION_BORDER_COLOR = 0x8154 - - -############################################################################### -# -# OpenGL 1.3 enums -# -############################################################################### - -VERSION_1_3 enum: - TEXTURE0 = 0x84C0 # Promoted from ARB_multitexture - TEXTURE1 = 0x84C1 - TEXTURE2 = 0x84C2 - TEXTURE3 = 0x84C3 - TEXTURE4 = 0x84C4 - TEXTURE5 = 0x84C5 - TEXTURE6 = 0x84C6 - TEXTURE7 = 0x84C7 - TEXTURE8 = 0x84C8 - TEXTURE9 = 0x84C9 - TEXTURE10 = 0x84CA - TEXTURE11 = 0x84CB - TEXTURE12 = 0x84CC - TEXTURE13 = 0x84CD - TEXTURE14 = 0x84CE - TEXTURE15 = 0x84CF - TEXTURE16 = 0x84D0 - TEXTURE17 = 0x84D1 - TEXTURE18 = 0x84D2 - TEXTURE19 = 0x84D3 - TEXTURE20 = 0x84D4 - TEXTURE21 = 0x84D5 - TEXTURE22 = 0x84D6 - TEXTURE23 = 0x84D7 - TEXTURE24 = 0x84D8 - TEXTURE25 = 0x84D9 - TEXTURE26 = 0x84DA - TEXTURE27 = 0x84DB - TEXTURE28 = 0x84DC - TEXTURE29 = 0x84DD - TEXTURE30 = 0x84DE - TEXTURE31 = 0x84DF - ACTIVE_TEXTURE = 0x84E0 # 1 I - MULTISAMPLE = 0x809D # Promoted from ARB_multisample - SAMPLE_ALPHA_TO_COVERAGE = 0x809E - SAMPLE_ALPHA_TO_ONE = 0x809F - SAMPLE_COVERAGE = 0x80A0 - SAMPLE_BUFFERS = 0x80A8 - SAMPLES = 0x80A9 - SAMPLE_COVERAGE_VALUE = 0x80AA - SAMPLE_COVERAGE_INVERT = 0x80AB - TEXTURE_CUBE_MAP = 0x8513 - TEXTURE_BINDING_CUBE_MAP = 0x8514 - TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515 - TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516 - TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517 - TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518 - TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519 - TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A - PROXY_TEXTURE_CUBE_MAP = 0x851B - MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C - COMPRESSED_RGB = 0x84ED - COMPRESSED_RGBA = 0x84EE - TEXTURE_COMPRESSION_HINT = 0x84EF - TEXTURE_COMPRESSED_IMAGE_SIZE = 0x86A0 - TEXTURE_COMPRESSED = 0x86A1 - NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2 - COMPRESSED_TEXTURE_FORMATS = 0x86A3 - CLAMP_TO_BORDER = 0x812D # Promoted from ARB_texture_border_clamp - -VERSION_1_3_DEPRECATED enum: - CLIENT_ACTIVE_TEXTURE = 0x84E1 # 1 I - MAX_TEXTURE_UNITS = 0x84E2 # 1 I - TRANSPOSE_MODELVIEW_MATRIX = 0x84E3 # 16 F # Promoted from ARB_transpose_matrix - TRANSPOSE_PROJECTION_MATRIX = 0x84E4 # 16 F - TRANSPOSE_TEXTURE_MATRIX = 0x84E5 # 16 F - TRANSPOSE_COLOR_MATRIX = 0x84E6 # 16 F - MULTISAMPLE_BIT = 0x20000000 - NORMAL_MAP = 0x8511 # Promoted from ARB_texture_cube_map - REFLECTION_MAP = 0x8512 - COMPRESSED_ALPHA = 0x84E9 # Promoted from ARB_texture_compression - COMPRESSED_LUMINANCE = 0x84EA - COMPRESSED_LUMINANCE_ALPHA = 0x84EB - COMPRESSED_INTENSITY = 0x84EC - COMBINE = 0x8570 # Promoted from ARB_texture_env_combine - COMBINE_RGB = 0x8571 - COMBINE_ALPHA = 0x8572 - SOURCE0_RGB = 0x8580 - SOURCE1_RGB = 0x8581 - SOURCE2_RGB = 0x8582 - SOURCE0_ALPHA = 0x8588 - SOURCE1_ALPHA = 0x8589 - SOURCE2_ALPHA = 0x858A - OPERAND0_RGB = 0x8590 - OPERAND1_RGB = 0x8591 - OPERAND2_RGB = 0x8592 - OPERAND0_ALPHA = 0x8598 - OPERAND1_ALPHA = 0x8599 - OPERAND2_ALPHA = 0x859A - RGB_SCALE = 0x8573 - ADD_SIGNED = 0x8574 - INTERPOLATE = 0x8575 - SUBTRACT = 0x84E7 - CONSTANT = 0x8576 - PRIMARY_COLOR = 0x8577 - PREVIOUS = 0x8578 - DOT3_RGB = 0x86AE # Promoted from ARB_texture_env_dot3 - DOT3_RGBA = 0x86AF - - -############################################################################### -# -# OpenGL 1.4 enums -# -############################################################################### - -VERSION_1_4 enum: - BLEND_DST_RGB = 0x80C8 - BLEND_SRC_RGB = 0x80C9 - BLEND_DST_ALPHA = 0x80CA - BLEND_SRC_ALPHA = 0x80CB - POINT_FADE_THRESHOLD_SIZE = 0x8128 # 1 F - DEPTH_COMPONENT16 = 0x81A5 - DEPTH_COMPONENT24 = 0x81A6 - DEPTH_COMPONENT32 = 0x81A7 - MIRRORED_REPEAT = 0x8370 - MAX_TEXTURE_LOD_BIAS = 0x84FD - TEXTURE_LOD_BIAS = 0x8501 - INCR_WRAP = 0x8507 - DECR_WRAP = 0x8508 - TEXTURE_DEPTH_SIZE = 0x884A - TEXTURE_COMPARE_MODE = 0x884C - TEXTURE_COMPARE_FUNC = 0x884D - -VERSION_1_4_DEPRECATED enum: - POINT_SIZE_MIN = 0x8126 # 1 F - POINT_SIZE_MAX = 0x8127 # 1 F - POINT_DISTANCE_ATTENUATION = 0x8129 # 3 F - GENERATE_MIPMAP = 0x8191 - GENERATE_MIPMAP_HINT = 0x8192 # 1 I - FOG_COORDINATE_SOURCE = 0x8450 # 1 I - FOG_COORDINATE = 0x8451 - FRAGMENT_DEPTH = 0x8452 - CURRENT_FOG_COORDINATE = 0x8453 # 1 F - FOG_COORDINATE_ARRAY_TYPE = 0x8454 # 1 I - FOG_COORDINATE_ARRAY_STRIDE = 0x8455 # 1 I - FOG_COORDINATE_ARRAY_POINTER = 0x8456 - FOG_COORDINATE_ARRAY = 0x8457 # 1 I - COLOR_SUM = 0x8458 # 1 I - CURRENT_SECONDARY_COLOR = 0x8459 # 3 F - SECONDARY_COLOR_ARRAY_SIZE = 0x845A # 1 I - SECONDARY_COLOR_ARRAY_TYPE = 0x845B # 1 I - SECONDARY_COLOR_ARRAY_STRIDE = 0x845C # 1 I - SECONDARY_COLOR_ARRAY_POINTER = 0x845D - SECONDARY_COLOR_ARRAY = 0x845E # 1 I - TEXTURE_FILTER_CONTROL = 0x8500 - DEPTH_TEXTURE_MODE = 0x884B - COMPARE_R_TO_TEXTURE = 0x884E - - -############################################################################### -# -# OpenGL 1.5 enums -# -############################################################################### - -VERSION_1_5 enum: - BUFFER_SIZE = 0x8764 # ARB_vertex_buffer_object - BUFFER_USAGE = 0x8765 # ARB_vertex_buffer_object - QUERY_COUNTER_BITS = 0x8864 # ARB_occlusion_query - CURRENT_QUERY = 0x8865 # ARB_occlusion_query - QUERY_RESULT = 0x8866 # ARB_occlusion_query - QUERY_RESULT_AVAILABLE = 0x8867 # ARB_occlusion_query - ARRAY_BUFFER = 0x8892 # ARB_vertex_buffer_object - ELEMENT_ARRAY_BUFFER = 0x8893 # ARB_vertex_buffer_object - ARRAY_BUFFER_BINDING = 0x8894 # ARB_vertex_buffer_object - ELEMENT_ARRAY_BUFFER_BINDING = 0x8895 # ARB_vertex_buffer_object - VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F # ARB_vertex_buffer_object - READ_ONLY = 0x88B8 # ARB_vertex_buffer_object - WRITE_ONLY = 0x88B9 # ARB_vertex_buffer_object - READ_WRITE = 0x88BA # ARB_vertex_buffer_object - BUFFER_ACCESS = 0x88BB # ARB_vertex_buffer_object - BUFFER_MAPPED = 0x88BC # ARB_vertex_buffer_object - BUFFER_MAP_POINTER = 0x88BD # ARB_vertex_buffer_object - STREAM_DRAW = 0x88E0 # ARB_vertex_buffer_object - STREAM_READ = 0x88E1 # ARB_vertex_buffer_object - STREAM_COPY = 0x88E2 # ARB_vertex_buffer_object - STATIC_DRAW = 0x88E4 # ARB_vertex_buffer_object - STATIC_READ = 0x88E5 # ARB_vertex_buffer_object - STATIC_COPY = 0x88E6 # ARB_vertex_buffer_object - DYNAMIC_DRAW = 0x88E8 # ARB_vertex_buffer_object - DYNAMIC_READ = 0x88E9 # ARB_vertex_buffer_object - DYNAMIC_COPY = 0x88EA # ARB_vertex_buffer_object - SAMPLES_PASSED = 0x8914 # ARB_occlusion_query - -VERSION_1_5_DEPRECATED enum: - VERTEX_ARRAY_BUFFER_BINDING = 0x8896 # ARB_vertex_buffer_object - NORMAL_ARRAY_BUFFER_BINDING = 0x8897 # ARB_vertex_buffer_object - COLOR_ARRAY_BUFFER_BINDING = 0x8898 # ARB_vertex_buffer_object - INDEX_ARRAY_BUFFER_BINDING = 0x8899 # ARB_vertex_buffer_object - TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A # ARB_vertex_buffer_object - EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B # ARB_vertex_buffer_object - SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C # ARB_vertex_buffer_object - FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D # ARB_vertex_buffer_object - WEIGHT_ARRAY_BUFFER_BINDING = 0x889E # ARB_vertex_buffer_object - FOG_COORD_SRC = 0x8450 # alias GL_FOG_COORDINATE_SOURCE - FOG_COORD = 0x8451 # alias GL_FOG_COORDINATE - CURRENT_FOG_COORD = 0x8453 # alias GL_CURRENT_FOG_COORDINATE - FOG_COORD_ARRAY_TYPE = 0x8454 # alias GL_FOG_COORDINATE_ARRAY_TYPE - FOG_COORD_ARRAY_STRIDE = 0x8455 # alias GL_FOG_COORDINATE_ARRAY_STRIDE - FOG_COORD_ARRAY_POINTER = 0x8456 # alias GL_FOG_COORDINATE_ARRAY_POINTER - FOG_COORD_ARRAY = 0x8457 # alias GL_FOG_COORDINATE_ARRAY - FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D # alias GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING -# New naming scheme - SRC0_RGB = 0x8580 # alias GL_SOURCE0_RGB - SRC1_RGB = 0x8581 # alias GL_SOURCE1_RGB - SRC2_RGB = 0x8582 # alias GL_SOURCE2_RGB - SRC0_ALPHA = 0x8588 # alias GL_SOURCE0_ALPHA - SRC1_ALPHA = 0x8589 # alias GL_SOURCE1_ALPHA - SRC2_ALPHA = 0x858A # alias GL_SOURCE2_ALPHA - -############################################################################### -# -# OpenGL 2.0 enums -# -############################################################################### - -VERSION_2_0 enum: - BLEND_EQUATION_RGB = 0x8009 # EXT_blend_equation_separate # alias GL_BLEND_EQUATION - VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622 # ARB_vertex_shader - VERTEX_ATTRIB_ARRAY_SIZE = 0x8623 # ARB_vertex_shader - VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624 # ARB_vertex_shader - VERTEX_ATTRIB_ARRAY_TYPE = 0x8625 # ARB_vertex_shader - CURRENT_VERTEX_ATTRIB = 0x8626 # ARB_vertex_shader - VERTEX_PROGRAM_POINT_SIZE = 0x8642 # ARB_vertex_shader - VERTEX_ATTRIB_ARRAY_POINTER = 0x8645 # ARB_vertex_shader - STENCIL_BACK_FUNC = 0x8800 # ARB_stencil_two_side - STENCIL_BACK_FAIL = 0x8801 # ARB_stencil_two_side - STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802 # ARB_stencil_two_side - STENCIL_BACK_PASS_DEPTH_PASS = 0x8803 # ARB_stencil_two_side - MAX_DRAW_BUFFERS = 0x8824 # ARB_draw_buffers - DRAW_BUFFER0 = 0x8825 # ARB_draw_buffers - DRAW_BUFFER1 = 0x8826 # ARB_draw_buffers - DRAW_BUFFER2 = 0x8827 # ARB_draw_buffers - DRAW_BUFFER3 = 0x8828 # ARB_draw_buffers - DRAW_BUFFER4 = 0x8829 # ARB_draw_buffers - DRAW_BUFFER5 = 0x882A # ARB_draw_buffers - DRAW_BUFFER6 = 0x882B # ARB_draw_buffers - DRAW_BUFFER7 = 0x882C # ARB_draw_buffers - DRAW_BUFFER8 = 0x882D # ARB_draw_buffers - DRAW_BUFFER9 = 0x882E # ARB_draw_buffers - DRAW_BUFFER10 = 0x882F # ARB_draw_buffers - DRAW_BUFFER11 = 0x8830 # ARB_draw_buffers - DRAW_BUFFER12 = 0x8831 # ARB_draw_buffers - DRAW_BUFFER13 = 0x8832 # ARB_draw_buffers - DRAW_BUFFER14 = 0x8833 # ARB_draw_buffers - DRAW_BUFFER15 = 0x8834 # ARB_draw_buffers - BLEND_EQUATION_ALPHA = 0x883D # EXT_blend_equation_separate - MAX_VERTEX_ATTRIBS = 0x8869 # ARB_vertex_shader - VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A # ARB_vertex_shader - MAX_TEXTURE_IMAGE_UNITS = 0x8872 # ARB_vertex_shader, ARB_fragment_shader - FRAGMENT_SHADER = 0x8B30 # ARB_fragment_shader - VERTEX_SHADER = 0x8B31 # ARB_vertex_shader - MAX_FRAGMENT_UNIFORM_COMPONENTS = 0x8B49 # ARB_fragment_shader - MAX_VERTEX_UNIFORM_COMPONENTS = 0x8B4A # ARB_vertex_shader - MAX_VARYING_FLOATS = 0x8B4B # ARB_vertex_shader - MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C # ARB_vertex_shader - MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D # ARB_vertex_shader - SHADER_TYPE = 0x8B4F # ARB_shader_objects - FLOAT_VEC2 = 0x8B50 # ARB_shader_objects - FLOAT_VEC3 = 0x8B51 # ARB_shader_objects - FLOAT_VEC4 = 0x8B52 # ARB_shader_objects - INT_VEC2 = 0x8B53 # ARB_shader_objects - INT_VEC3 = 0x8B54 # ARB_shader_objects - INT_VEC4 = 0x8B55 # ARB_shader_objects - BOOL = 0x8B56 # ARB_shader_objects - BOOL_VEC2 = 0x8B57 # ARB_shader_objects - BOOL_VEC3 = 0x8B58 # ARB_shader_objects - BOOL_VEC4 = 0x8B59 # ARB_shader_objects - FLOAT_MAT2 = 0x8B5A # ARB_shader_objects - FLOAT_MAT3 = 0x8B5B # ARB_shader_objects - FLOAT_MAT4 = 0x8B5C # ARB_shader_objects - SAMPLER_1D = 0x8B5D # ARB_shader_objects - SAMPLER_2D = 0x8B5E # ARB_shader_objects - SAMPLER_3D = 0x8B5F # ARB_shader_objects - SAMPLER_CUBE = 0x8B60 # ARB_shader_objects - SAMPLER_1D_SHADOW = 0x8B61 # ARB_shader_objects - SAMPLER_2D_SHADOW = 0x8B62 # ARB_shader_objects - DELETE_STATUS = 0x8B80 # ARB_shader_objects - COMPILE_STATUS = 0x8B81 # ARB_shader_objects - LINK_STATUS = 0x8B82 # ARB_shader_objects - VALIDATE_STATUS = 0x8B83 # ARB_shader_objects - INFO_LOG_LENGTH = 0x8B84 # ARB_shader_objects - ATTACHED_SHADERS = 0x8B85 # ARB_shader_objects - ACTIVE_UNIFORMS = 0x8B86 # ARB_shader_objects - ACTIVE_UNIFORM_MAX_LENGTH = 0x8B87 # ARB_shader_objects - SHADER_SOURCE_LENGTH = 0x8B88 # ARB_shader_objects - ACTIVE_ATTRIBUTES = 0x8B89 # ARB_vertex_shader - ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A # ARB_vertex_shader - FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B # ARB_fragment_shader - SHADING_LANGUAGE_VERSION = 0x8B8C # ARB_shading_language_100 - CURRENT_PROGRAM = 0x8B8D # ARB_shader_objects (added for 2.0) - POINT_SPRITE_COORD_ORIGIN = 0x8CA0 # ARB_point_sprite (added for 2.0) - LOWER_LEFT = 0x8CA1 # ARB_point_sprite (added for 2.0) - UPPER_LEFT = 0x8CA2 # ARB_point_sprite (added for 2.0) - STENCIL_BACK_REF = 0x8CA3 # ARB_stencil_two_side - STENCIL_BACK_VALUE_MASK = 0x8CA4 # ARB_stencil_two_side - STENCIL_BACK_WRITEMASK = 0x8CA5 # ARB_stencil_two_side - -VERSION_2_0_DEPRECATED enum: - VERTEX_PROGRAM_TWO_SIDE = 0x8643 # ARB_vertex_shader - POINT_SPRITE = 0x8861 # ARB_point_sprite - COORD_REPLACE = 0x8862 # ARB_point_sprite - MAX_TEXTURE_COORDS = 0x8871 # ARB_vertex_shader, ARB_fragment_shader - - -############################################################################### -# -# OpenGL 2.1 enums -# -############################################################################### - -VERSION_2_1 enum: - PIXEL_PACK_BUFFER = 0x88EB # ARB_pixel_buffer_object - PIXEL_UNPACK_BUFFER = 0x88EC # ARB_pixel_buffer_object - PIXEL_PACK_BUFFER_BINDING = 0x88ED # ARB_pixel_buffer_object - PIXEL_UNPACK_BUFFER_BINDING = 0x88EF # ARB_pixel_buffer_object - FLOAT_MAT2x3 = 0x8B65 # New for 2.1 - FLOAT_MAT2x4 = 0x8B66 # New for 2.1 - FLOAT_MAT3x2 = 0x8B67 # New for 2.1 - FLOAT_MAT3x4 = 0x8B68 # New for 2.1 - FLOAT_MAT4x2 = 0x8B69 # New for 2.1 - FLOAT_MAT4x3 = 0x8B6A # New for 2.1 - SRGB = 0x8C40 # EXT_texture_sRGB - SRGB8 = 0x8C41 # EXT_texture_sRGB - SRGB_ALPHA = 0x8C42 # EXT_texture_sRGB - SRGB8_ALPHA8 = 0x8C43 # EXT_texture_sRGB - COMPRESSED_SRGB = 0x8C48 # EXT_texture_sRGB - COMPRESSED_SRGB_ALPHA = 0x8C49 # EXT_texture_sRGB - -VERSION_2_1_DEPRECATED enum: - CURRENT_RASTER_SECONDARY_COLOR = 0x845F # New for 2.1 - SLUMINANCE_ALPHA = 0x8C44 # EXT_texture_sRGB - SLUMINANCE8_ALPHA8 = 0x8C45 # EXT_texture_sRGB - SLUMINANCE = 0x8C46 # EXT_texture_sRGB - SLUMINANCE8 = 0x8C47 # EXT_texture_sRGB - COMPRESSED_SLUMINANCE = 0x8C4A # EXT_texture_sRGB - COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B # EXT_texture_sRGB - - -############################################################################### -# -# OpenGL 3.0 enums -# -############################################################################### - -VERSION_3_0 enum: - COMPARE_REF_TO_TEXTURE = 0x884E # alias GL_COMPARE_R_TO_TEXTURE_ARB - CLIP_DISTANCE0 = 0x3000 # alias GL_CLIP_PLANE0 - CLIP_DISTANCE1 = 0x3001 # alias GL_CLIP_PLANE1 - CLIP_DISTANCE2 = 0x3002 # alias GL_CLIP_PLANE2 - CLIP_DISTANCE3 = 0x3003 # alias GL_CLIP_PLANE3 - CLIP_DISTANCE4 = 0x3004 # alias GL_CLIP_PLANE4 - CLIP_DISTANCE5 = 0x3005 # alias GL_CLIP_PLANE5 - CLIP_DISTANCE6 = 0x3006 - CLIP_DISTANCE7 = 0x3007 - MAX_CLIP_DISTANCES = 0x0D32 # alias GL_MAX_CLIP_PLANES - MAJOR_VERSION = 0x821B - MINOR_VERSION = 0x821C - NUM_EXTENSIONS = 0x821D - CONTEXT_FLAGS = 0x821E - DEPTH_BUFFER = 0x8223 - STENCIL_BUFFER = 0x8224 - COMPRESSED_RED = 0x8225 - COMPRESSED_RG = 0x8226 - CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x0001 - RGBA32F = 0x8814 - RGB32F = 0x8815 - RGBA16F = 0x881A - RGB16F = 0x881B - VERTEX_ATTRIB_ARRAY_INTEGER = 0x88FD - MAX_ARRAY_TEXTURE_LAYERS = 0x88FF - MIN_PROGRAM_TEXEL_OFFSET = 0x8904 - MAX_PROGRAM_TEXEL_OFFSET = 0x8905 - CLAMP_READ_COLOR = 0x891C - FIXED_ONLY = 0x891D - MAX_VARYING_COMPONENTS = 0x8B4B # alias GL_MAX_VARYING_FLOATS - TEXTURE_1D_ARRAY = 0x8C18 - PROXY_TEXTURE_1D_ARRAY = 0x8C19 - TEXTURE_2D_ARRAY = 0x8C1A - PROXY_TEXTURE_2D_ARRAY = 0x8C1B - TEXTURE_BINDING_1D_ARRAY = 0x8C1C - TEXTURE_BINDING_2D_ARRAY = 0x8C1D - R11F_G11F_B10F = 0x8C3A - UNSIGNED_INT_10F_11F_11F_REV = 0x8C3B - RGB9_E5 = 0x8C3D - UNSIGNED_INT_5_9_9_9_REV = 0x8C3E - TEXTURE_SHARED_SIZE = 0x8C3F - TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH = 0x8C76 - TRANSFORM_FEEDBACK_BUFFER_MODE = 0x8C7F - MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS = 0x8C80 - TRANSFORM_FEEDBACK_VARYINGS = 0x8C83 - TRANSFORM_FEEDBACK_BUFFER_START = 0x8C84 - TRANSFORM_FEEDBACK_BUFFER_SIZE = 0x8C85 - PRIMITIVES_GENERATED = 0x8C87 - TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = 0x8C88 - RASTERIZER_DISCARD = 0x8C89 - MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A - MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS = 0x8C8B - INTERLEAVED_ATTRIBS = 0x8C8C - SEPARATE_ATTRIBS = 0x8C8D - TRANSFORM_FEEDBACK_BUFFER = 0x8C8E - TRANSFORM_FEEDBACK_BUFFER_BINDING = 0x8C8F - RGBA32UI = 0x8D70 - RGB32UI = 0x8D71 - RGBA16UI = 0x8D76 - RGB16UI = 0x8D77 - RGBA8UI = 0x8D7C - RGB8UI = 0x8D7D - RGBA32I = 0x8D82 - RGB32I = 0x8D83 - RGBA16I = 0x8D88 - RGB16I = 0x8D89 - RGBA8I = 0x8D8E - RGB8I = 0x8D8F - RED_INTEGER = 0x8D94 - GREEN_INTEGER = 0x8D95 - BLUE_INTEGER = 0x8D96 - RGB_INTEGER = 0x8D98 - RGBA_INTEGER = 0x8D99 - BGR_INTEGER = 0x8D9A - BGRA_INTEGER = 0x8D9B - SAMPLER_1D_ARRAY = 0x8DC0 - SAMPLER_2D_ARRAY = 0x8DC1 - SAMPLER_1D_ARRAY_SHADOW = 0x8DC3 - SAMPLER_2D_ARRAY_SHADOW = 0x8DC4 - SAMPLER_CUBE_SHADOW = 0x8DC5 - UNSIGNED_INT_VEC2 = 0x8DC6 - UNSIGNED_INT_VEC3 = 0x8DC7 - UNSIGNED_INT_VEC4 = 0x8DC8 - INT_SAMPLER_1D = 0x8DC9 - INT_SAMPLER_2D = 0x8DCA - INT_SAMPLER_3D = 0x8DCB - INT_SAMPLER_CUBE = 0x8DCC - INT_SAMPLER_1D_ARRAY = 0x8DCE - INT_SAMPLER_2D_ARRAY = 0x8DCF - UNSIGNED_INT_SAMPLER_1D = 0x8DD1 - UNSIGNED_INT_SAMPLER_2D = 0x8DD2 - UNSIGNED_INT_SAMPLER_3D = 0x8DD3 - UNSIGNED_INT_SAMPLER_CUBE = 0x8DD4 - UNSIGNED_INT_SAMPLER_1D_ARRAY = 0x8DD6 - UNSIGNED_INT_SAMPLER_2D_ARRAY = 0x8DD7 - QUERY_WAIT = 0x8E13 - QUERY_NO_WAIT = 0x8E14 - QUERY_BY_REGION_WAIT = 0x8E15 - QUERY_BY_REGION_NO_WAIT = 0x8E16 - BUFFER_ACCESS_FLAGS = 0x911F - BUFFER_MAP_LENGTH = 0x9120 - BUFFER_MAP_OFFSET = 0x9121 -passthru: /* Reuse tokens from ARB_depth_buffer_float */ - use ARB_depth_buffer_float DEPTH_COMPONENT32F - use ARB_depth_buffer_float DEPTH32F_STENCIL8 - use ARB_depth_buffer_float FLOAT_32_UNSIGNED_INT_24_8_REV -passthru: /* Reuse tokens from ARB_framebuffer_object */ - use ARB_framebuffer_object INVALID_FRAMEBUFFER_OPERATION - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_RED_SIZE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_GREEN_SIZE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_BLUE_SIZE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE - use ARB_framebuffer_object FRAMEBUFFER_DEFAULT - use ARB_framebuffer_object FRAMEBUFFER_UNDEFINED - use ARB_framebuffer_object DEPTH_STENCIL_ATTACHMENT - use ARB_framebuffer_object INDEX - use ARB_framebuffer_object MAX_RENDERBUFFER_SIZE - use ARB_framebuffer_object DEPTH_STENCIL - use ARB_framebuffer_object UNSIGNED_INT_24_8 - use ARB_framebuffer_object DEPTH24_STENCIL8 - use ARB_framebuffer_object TEXTURE_STENCIL_SIZE - use ARB_framebuffer_object TEXTURE_RED_TYPE - use ARB_framebuffer_object TEXTURE_GREEN_TYPE - use ARB_framebuffer_object TEXTURE_BLUE_TYPE - use ARB_framebuffer_object TEXTURE_ALPHA_TYPE - use ARB_framebuffer_object TEXTURE_DEPTH_TYPE - use ARB_framebuffer_object UNSIGNED_NORMALIZED - use ARB_framebuffer_object FRAMEBUFFER_BINDING - use ARB_framebuffer_object DRAW_FRAMEBUFFER_BINDING - use ARB_framebuffer_object RENDERBUFFER_BINDING - use ARB_framebuffer_object READ_FRAMEBUFFER - use ARB_framebuffer_object DRAW_FRAMEBUFFER - use ARB_framebuffer_object READ_FRAMEBUFFER_BINDING - use ARB_framebuffer_object RENDERBUFFER_SAMPLES - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_OBJECT_NAME - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER - use ARB_framebuffer_object FRAMEBUFFER_COMPLETE - use ARB_framebuffer_object FRAMEBUFFER_INCOMPLETE_ATTACHMENT - use ARB_framebuffer_object FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT - use ARB_framebuffer_object FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER - use ARB_framebuffer_object FRAMEBUFFER_INCOMPLETE_READ_BUFFER - use ARB_framebuffer_object FRAMEBUFFER_UNSUPPORTED - use ARB_framebuffer_object MAX_COLOR_ATTACHMENTS - use ARB_framebuffer_object COLOR_ATTACHMENT0 - use ARB_framebuffer_object COLOR_ATTACHMENT1 - use ARB_framebuffer_object COLOR_ATTACHMENT2 - use ARB_framebuffer_object COLOR_ATTACHMENT3 - use ARB_framebuffer_object COLOR_ATTACHMENT4 - use ARB_framebuffer_object COLOR_ATTACHMENT5 - use ARB_framebuffer_object COLOR_ATTACHMENT6 - use ARB_framebuffer_object COLOR_ATTACHMENT7 - use ARB_framebuffer_object COLOR_ATTACHMENT8 - use ARB_framebuffer_object COLOR_ATTACHMENT9 - use ARB_framebuffer_object COLOR_ATTACHMENT10 - use ARB_framebuffer_object COLOR_ATTACHMENT11 - use ARB_framebuffer_object COLOR_ATTACHMENT12 - use ARB_framebuffer_object COLOR_ATTACHMENT13 - use ARB_framebuffer_object COLOR_ATTACHMENT14 - use ARB_framebuffer_object COLOR_ATTACHMENT15 - use ARB_framebuffer_object DEPTH_ATTACHMENT - use ARB_framebuffer_object STENCIL_ATTACHMENT - use ARB_framebuffer_object FRAMEBUFFER - use ARB_framebuffer_object RENDERBUFFER - use ARB_framebuffer_object RENDERBUFFER_WIDTH - use ARB_framebuffer_object RENDERBUFFER_HEIGHT - use ARB_framebuffer_object RENDERBUFFER_INTERNAL_FORMAT - use ARB_framebuffer_object STENCIL_INDEX1 - use ARB_framebuffer_object STENCIL_INDEX4 - use ARB_framebuffer_object STENCIL_INDEX8 - use ARB_framebuffer_object STENCIL_INDEX16 - use ARB_framebuffer_object RENDERBUFFER_RED_SIZE - use ARB_framebuffer_object RENDERBUFFER_GREEN_SIZE - use ARB_framebuffer_object RENDERBUFFER_BLUE_SIZE - use ARB_framebuffer_object RENDERBUFFER_ALPHA_SIZE - use ARB_framebuffer_object RENDERBUFFER_DEPTH_SIZE - use ARB_framebuffer_object RENDERBUFFER_STENCIL_SIZE - use ARB_framebuffer_object FRAMEBUFFER_INCOMPLETE_MULTISAMPLE - use ARB_framebuffer_object MAX_SAMPLES -passthru: /* Reuse tokens from ARB_framebuffer_sRGB */ - use ARB_framebuffer_sRGB FRAMEBUFFER_SRGB -passthru: /* Reuse tokens from ARB_half_float_vertex */ - use ARB_half_float_vertex HALF_FLOAT -passthru: /* Reuse tokens from ARB_map_buffer_range */ - use ARB_map_buffer_range MAP_READ_BIT - use ARB_map_buffer_range MAP_WRITE_BIT - use ARB_map_buffer_range MAP_INVALIDATE_RANGE_BIT - use ARB_map_buffer_range MAP_INVALIDATE_BUFFER_BIT - use ARB_map_buffer_range MAP_FLUSH_EXPLICIT_BIT - use ARB_map_buffer_range MAP_UNSYNCHRONIZED_BIT -passthru: /* Reuse tokens from ARB_texture_compression_rgtc */ - use ARB_texture_compression_rgtc COMPRESSED_RED_RGTC1 - use ARB_texture_compression_rgtc COMPRESSED_SIGNED_RED_RGTC1 - use ARB_texture_compression_rgtc COMPRESSED_RG_RGTC2 - use ARB_texture_compression_rgtc COMPRESSED_SIGNED_RG_RGTC2 -passthru: /* Reuse tokens from ARB_texture_rg */ - use ARB_texture_rg RG - use ARB_texture_rg RG_INTEGER - use ARB_texture_rg R8 - use ARB_texture_rg R16 - use ARB_texture_rg RG8 - use ARB_texture_rg RG16 - use ARB_texture_rg R16F - use ARB_texture_rg R32F - use ARB_texture_rg RG16F - use ARB_texture_rg RG32F - use ARB_texture_rg R8I - use ARB_texture_rg R8UI - use ARB_texture_rg R16I - use ARB_texture_rg R16UI - use ARB_texture_rg R32I - use ARB_texture_rg R32UI - use ARB_texture_rg RG8I - use ARB_texture_rg RG8UI - use ARB_texture_rg RG16I - use ARB_texture_rg RG16UI - use ARB_texture_rg RG32I - use ARB_texture_rg RG32UI -passthru: /* Reuse tokens from ARB_vertex_array_object */ - use ARB_vertex_array_object VERTEX_ARRAY_BINDING - -VERSION_3_0_DEPRECATED enum: - CLAMP_VERTEX_COLOR = 0x891A - CLAMP_FRAGMENT_COLOR = 0x891B - ALPHA_INTEGER = 0x8D97 -passthru: /* Reuse tokens from ARB_framebuffer_object */ - use ARB_framebuffer_object TEXTURE_LUMINANCE_TYPE - use ARB_framebuffer_object TEXTURE_INTENSITY_TYPE - - -############################################################################### -# -# OpenGL 3.1 enums -# -############################################################################### - -VERSION_3_1 enum: - SAMPLER_2D_RECT = 0x8B63 # ARB_shader_objects + ARB_texture_rectangle - SAMPLER_2D_RECT_SHADOW = 0x8B64 # ARB_shader_objects + ARB_texture_rectangle - SAMPLER_BUFFER = 0x8DC2 # EXT_gpu_shader4 + ARB_texture_buffer_object - INT_SAMPLER_2D_RECT = 0x8DCD # EXT_gpu_shader4 + ARB_texture_rectangle - INT_SAMPLER_BUFFER = 0x8DD0 # EXT_gpu_shader4 + ARB_texture_buffer_object - UNSIGNED_INT_SAMPLER_2D_RECT = 0x8DD5 # EXT_gpu_shader4 + ARB_texture_rectangle - UNSIGNED_INT_SAMPLER_BUFFER = 0x8DD8 # EXT_gpu_shader4 + ARB_texture_buffer_object - TEXTURE_BUFFER = 0x8C2A # ARB_texture_buffer_object - MAX_TEXTURE_BUFFER_SIZE = 0x8C2B # ARB_texture_buffer_object - TEXTURE_BINDING_BUFFER = 0x8C2C # ARB_texture_buffer_object - TEXTURE_BUFFER_DATA_STORE_BINDING = 0x8C2D # ARB_texture_buffer_object - TEXTURE_BUFFER_FORMAT = 0x8C2E # ARB_texture_buffer_object - TEXTURE_RECTANGLE = 0x84F5 # ARB_texture_rectangle - TEXTURE_BINDING_RECTANGLE = 0x84F6 # ARB_texture_rectangle - PROXY_TEXTURE_RECTANGLE = 0x84F7 # ARB_texture_rectangle - MAX_RECTANGLE_TEXTURE_SIZE = 0x84F8 # ARB_texture_rectangle - RED_SNORM = 0x8F90 # 3.1 - RG_SNORM = 0x8F91 # 3.1 - RGB_SNORM = 0x8F92 # 3.1 - RGBA_SNORM = 0x8F93 # 3.1 - R8_SNORM = 0x8F94 # 3.1 - RG8_SNORM = 0x8F95 # 3.1 - RGB8_SNORM = 0x8F96 # 3.1 - RGBA8_SNORM = 0x8F97 # 3.1 - R16_SNORM = 0x8F98 # 3.1 - RG16_SNORM = 0x8F99 # 3.1 - RGB16_SNORM = 0x8F9A # 3.1 - RGBA16_SNORM = 0x8F9B # 3.1 - SIGNED_NORMALIZED = 0x8F9C # 3.1 - PRIMITIVE_RESTART = 0x8F9D # 3.1 (different from NV_primitive_restart) - PRIMITIVE_RESTART_INDEX = 0x8F9E # 3.1 (different from NV_primitive_restart) -passthru: /* Reuse tokens from ARB_copy_buffer */ - use ARB_copy_buffer COPY_READ_BUFFER - use ARB_copy_buffer COPY_WRITE_BUFFER -passthru: /* Reuse tokens from ARB_draw_instanced (none) */ -passthru: /* Reuse tokens from ARB_uniform_buffer_object */ - use ARB_uniform_buffer_object UNIFORM_BUFFER - use ARB_uniform_buffer_object UNIFORM_BUFFER_BINDING - use ARB_uniform_buffer_object UNIFORM_BUFFER_START - use ARB_uniform_buffer_object UNIFORM_BUFFER_SIZE - use ARB_uniform_buffer_object MAX_VERTEX_UNIFORM_BLOCKS - use ARB_uniform_buffer_object MAX_FRAGMENT_UNIFORM_BLOCKS - use ARB_uniform_buffer_object MAX_COMBINED_UNIFORM_BLOCKS - use ARB_uniform_buffer_object MAX_UNIFORM_BUFFER_BINDINGS - use ARB_uniform_buffer_object MAX_UNIFORM_BLOCK_SIZE - use ARB_uniform_buffer_object MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS - use ARB_uniform_buffer_object MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS - use ARB_uniform_buffer_object UNIFORM_BUFFER_OFFSET_ALIGNMENT - use ARB_uniform_buffer_object ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH - use ARB_uniform_buffer_object ACTIVE_UNIFORM_BLOCKS - use ARB_uniform_buffer_object UNIFORM_TYPE - use ARB_uniform_buffer_object UNIFORM_SIZE - use ARB_uniform_buffer_object UNIFORM_NAME_LENGTH - use ARB_uniform_buffer_object UNIFORM_BLOCK_INDEX - use ARB_uniform_buffer_object UNIFORM_OFFSET - use ARB_uniform_buffer_object UNIFORM_ARRAY_STRIDE - use ARB_uniform_buffer_object UNIFORM_MATRIX_STRIDE - use ARB_uniform_buffer_object UNIFORM_IS_ROW_MAJOR - use ARB_uniform_buffer_object UNIFORM_BLOCK_BINDING - use ARB_uniform_buffer_object UNIFORM_BLOCK_DATA_SIZE - use ARB_uniform_buffer_object UNIFORM_BLOCK_NAME_LENGTH - use ARB_uniform_buffer_object UNIFORM_BLOCK_ACTIVE_UNIFORMS - use ARB_uniform_buffer_object UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES - use ARB_uniform_buffer_object UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER - use ARB_uniform_buffer_object UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER - use ARB_uniform_buffer_object INVALID_INDEX - - -############################################################################### -# -# OpenGL 3.2 enums -# -############################################################################### - -VERSION_3_2 enum: - CONTEXT_CORE_PROFILE_BIT = 0x00000001 - CONTEXT_COMPATIBILITY_PROFILE_BIT = 0x00000002 - LINES_ADJACENCY = 0x000A - LINE_STRIP_ADJACENCY = 0x000B - TRIANGLES_ADJACENCY = 0x000C - TRIANGLE_STRIP_ADJACENCY = 0x000D - PROGRAM_POINT_SIZE = 0x8642 - MAX_GEOMETRY_TEXTURE_IMAGE_UNITS = 0x8C29 - FRAMEBUFFER_ATTACHMENT_LAYERED = 0x8DA7 - FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS = 0x8DA8 - GEOMETRY_SHADER = 0x8DD9 - GEOMETRY_VERTICES_OUT = 0x8916 - GEOMETRY_INPUT_TYPE = 0x8917 - GEOMETRY_OUTPUT_TYPE = 0x8918 - MAX_GEOMETRY_UNIFORM_COMPONENTS = 0x8DDF - MAX_GEOMETRY_OUTPUT_VERTICES = 0x8DE0 - MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS = 0x8DE1 - MAX_VERTEX_OUTPUT_COMPONENTS = 0x9122 - MAX_GEOMETRY_INPUT_COMPONENTS = 0x9123 - MAX_GEOMETRY_OUTPUT_COMPONENTS = 0x9124 - MAX_FRAGMENT_INPUT_COMPONENTS = 0x9125 - CONTEXT_PROFILE_MASK = 0x9126 - use VERSION_3_0 MAX_VARYING_COMPONENTS - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER -passthru: /* Reuse tokens from ARB_depth_clamp */ - use ARB_depth_clamp DEPTH_CLAMP -passthru: /* Reuse tokens from ARB_draw_elements_base_vertex (none) */ -passthru: /* Reuse tokens from ARB_fragment_coord_conventions (none) */ -passthru: /* Reuse tokens from ARB_provoking_vertex */ - use ARB_provoking_vertex QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION - use ARB_provoking_vertex FIRST_VERTEX_CONVENTION - use ARB_provoking_vertex LAST_VERTEX_CONVENTION - use ARB_provoking_vertex PROVOKING_VERTEX -passthru: /* Reuse tokens from ARB_seamless_cube_map */ - use ARB_seamless_cube_map TEXTURE_CUBE_MAP_SEAMLESS -passthru: /* Reuse tokens from ARB_sync */ - use ARB_sync MAX_SERVER_WAIT_TIMEOUT - use ARB_sync OBJECT_TYPE - use ARB_sync SYNC_CONDITION - use ARB_sync SYNC_STATUS - use ARB_sync SYNC_FLAGS - use ARB_sync SYNC_FENCE - use ARB_sync SYNC_GPU_COMMANDS_COMPLETE - use ARB_sync UNSIGNALED - use ARB_sync SIGNALED - use ARB_sync ALREADY_SIGNALED - use ARB_sync TIMEOUT_EXPIRED - use ARB_sync CONDITION_SATISFIED - use ARB_sync WAIT_FAILED - use ARB_sync TIMEOUT_IGNORED - use ARB_sync SYNC_FLUSH_COMMANDS_BIT - use ARB_sync TIMEOUT_IGNORED -passthru: /* Reuse tokens from ARB_texture_multisample */ - use ARB_texture_multisample SAMPLE_POSITION - use ARB_texture_multisample SAMPLE_MASK - use ARB_texture_multisample SAMPLE_MASK_VALUE - use ARB_texture_multisample MAX_SAMPLE_MASK_WORDS - use ARB_texture_multisample TEXTURE_2D_MULTISAMPLE - use ARB_texture_multisample PROXY_TEXTURE_2D_MULTISAMPLE - use ARB_texture_multisample TEXTURE_2D_MULTISAMPLE_ARRAY - use ARB_texture_multisample PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY - use ARB_texture_multisample TEXTURE_BINDING_2D_MULTISAMPLE - use ARB_texture_multisample TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY - use ARB_texture_multisample TEXTURE_SAMPLES - use ARB_texture_multisample TEXTURE_FIXED_SAMPLE_LOCATIONS - use ARB_texture_multisample SAMPLER_2D_MULTISAMPLE - use ARB_texture_multisample INT_SAMPLER_2D_MULTISAMPLE - use ARB_texture_multisample UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE - use ARB_texture_multisample SAMPLER_2D_MULTISAMPLE_ARRAY - use ARB_texture_multisample INT_SAMPLER_2D_MULTISAMPLE_ARRAY - use ARB_texture_multisample UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY - use ARB_texture_multisample MAX_COLOR_TEXTURE_SAMPLES - use ARB_texture_multisample MAX_DEPTH_TEXTURE_SAMPLES - use ARB_texture_multisample MAX_INTEGER_SAMPLES -passthru: /* Don't need to reuse tokens from ARB_vertex_array_bgra since they're already in 1.2 core */ - -############################################################################### -# -# OpenGL 3.3 enums -# -############################################################################### - -VERSION_3_3 enum: - VERTEX_ATTRIB_ARRAY_DIVISOR = 0x88FE # ARB_instanced_arrays -passthru: /* Reuse tokens from ARB_blend_func_extended */ - use ARB_blend_func_extended SRC1_COLOR - use ARB_blend_func_extended ONE_MINUS_SRC1_COLOR - use ARB_blend_func_extended ONE_MINUS_SRC1_ALPHA - use ARB_blend_func_extended MAX_DUAL_SOURCE_DRAW_BUFFERS -passthru: /* Reuse tokens from ARB_explicit_attrib_location (none) */ -passthru: /* Reuse tokens from ARB_occlusion_query2 */ - use ARB_occlusion_query2 ANY_SAMPLES_PASSED -passthru: /* Reuse tokens from ARB_sampler_objects */ - use ARB_sampler_objects SAMPLER_BINDING -passthru: /* Reuse tokens from ARB_shader_bit_encoding (none) */ -passthru: /* Reuse tokens from ARB_texture_rgb10_a2ui */ - use ARB_texture_rgb10_a2ui RGB10_A2UI -passthru: /* Reuse tokens from ARB_texture_swizzle */ - use ARB_texture_swizzle TEXTURE_SWIZZLE_R - use ARB_texture_swizzle TEXTURE_SWIZZLE_G - use ARB_texture_swizzle TEXTURE_SWIZZLE_B - use ARB_texture_swizzle TEXTURE_SWIZZLE_A - use ARB_texture_swizzle TEXTURE_SWIZZLE_RGBA -passthru: /* Reuse tokens from ARB_timer_query */ - use ARB_timer_query TIME_ELAPSED - use ARB_timer_query TIMESTAMP -passthru: /* Reuse tokens from ARB_vertex_type_2_10_10_10_rev */ - use ARB_vertex_type_2_10_10_10_rev INT_2_10_10_10_REV - -############################################################################### -# -# OpenGL 4.0 enums -# -############################################################################### - -VERSION_4_0 enum: - SAMPLE_SHADING = 0x8C36 # ARB_sample_shading - MIN_SAMPLE_SHADING_VALUE = 0x8C37 # ARB_sample_shading - MIN_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5E # ARB_texture_gather - MAX_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5F # ARB_texture_gather - TEXTURE_CUBE_MAP_ARRAY = 0x9009 # ARB_texture_cube_map_array - TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A # ARB_texture_cube_map_array - PROXY_TEXTURE_CUBE_MAP_ARRAY = 0x900B # ARB_texture_cube_map_array - SAMPLER_CUBE_MAP_ARRAY = 0x900C # ARB_texture_cube_map_array - SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D # ARB_texture_cube_map_array - INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E # ARB_texture_cube_map_array - UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F # ARB_texture_cube_map_array -passthru: /* Reuse tokens from ARB_texture_query_lod (none) */ -passthru: /* Reuse tokens from ARB_draw_buffers_blend (none) */ -passthru: /* Reuse tokens from ARB_draw_indirect */ - use ARB_draw_indirect DRAW_INDIRECT_BUFFER - use ARB_draw_indirect DRAW_INDIRECT_BUFFER_BINDING -passthru: /* Reuse tokens from ARB_gpu_shader5 */ - use ARB_gpu_shader5 GEOMETRY_SHADER_INVOCATIONS - use ARB_gpu_shader5 MAX_GEOMETRY_SHADER_INVOCATIONS - use ARB_gpu_shader5 MIN_FRAGMENT_INTERPOLATION_OFFSET - use ARB_gpu_shader5 MAX_FRAGMENT_INTERPOLATION_OFFSET - use ARB_gpu_shader5 FRAGMENT_INTERPOLATION_OFFSET_BITS - use ARB_gpu_shader5 MAX_VERTEX_STREAMS -passthru: /* Reuse tokens from ARB_gpu_shader_fp64 */ - use ARB_gpu_shader_fp64 DOUBLE_VEC2 - use ARB_gpu_shader_fp64 DOUBLE_VEC3 - use ARB_gpu_shader_fp64 DOUBLE_VEC4 - use ARB_gpu_shader_fp64 DOUBLE_MAT2 - use ARB_gpu_shader_fp64 DOUBLE_MAT3 - use ARB_gpu_shader_fp64 DOUBLE_MAT4 - use ARB_gpu_shader_fp64 DOUBLE_MAT2x3 - use ARB_gpu_shader_fp64 DOUBLE_MAT2x4 - use ARB_gpu_shader_fp64 DOUBLE_MAT3x2 - use ARB_gpu_shader_fp64 DOUBLE_MAT3x4 - use ARB_gpu_shader_fp64 DOUBLE_MAT4x2 - use ARB_gpu_shader_fp64 DOUBLE_MAT4x3 -passthru: /* Reuse tokens from ARB_shader_subroutine */ - use ARB_shader_subroutine ACTIVE_SUBROUTINES - use ARB_shader_subroutine ACTIVE_SUBROUTINE_UNIFORMS - use ARB_shader_subroutine ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS - use ARB_shader_subroutine ACTIVE_SUBROUTINE_MAX_LENGTH - use ARB_shader_subroutine ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH - use ARB_shader_subroutine MAX_SUBROUTINES - use ARB_shader_subroutine MAX_SUBROUTINE_UNIFORM_LOCATIONS - use ARB_shader_subroutine NUM_COMPATIBLE_SUBROUTINES - use ARB_shader_subroutine COMPATIBLE_SUBROUTINES -passthru: /* Reuse tokens from ARB_tessellation_shader */ - use ARB_tessellation_shader PATCHES - use ARB_tessellation_shader PATCH_VERTICES - use ARB_tessellation_shader PATCH_DEFAULT_INNER_LEVEL - use ARB_tessellation_shader PATCH_DEFAULT_OUTER_LEVEL - use ARB_tessellation_shader TESS_CONTROL_OUTPUT_VERTICES - use ARB_tessellation_shader TESS_GEN_MODE - use ARB_tessellation_shader TESS_GEN_SPACING - use ARB_tessellation_shader TESS_GEN_VERTEX_ORDER - use ARB_tessellation_shader TESS_GEN_POINT_MODE - use ARB_tessellation_shader ISOLINES - use ARB_tessellation_shader FRACTIONAL_ODD - use ARB_tessellation_shader FRACTIONAL_EVEN - use ARB_tessellation_shader MAX_PATCH_VERTICES - use ARB_tessellation_shader MAX_TESS_GEN_LEVEL - use ARB_tessellation_shader MAX_TESS_CONTROL_UNIFORM_COMPONENTS - use ARB_tessellation_shader MAX_TESS_EVALUATION_UNIFORM_COMPONENTS - use ARB_tessellation_shader MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS - use ARB_tessellation_shader MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS - use ARB_tessellation_shader MAX_TESS_CONTROL_OUTPUT_COMPONENTS - use ARB_tessellation_shader MAX_TESS_PATCH_COMPONENTS - use ARB_tessellation_shader MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS - use ARB_tessellation_shader MAX_TESS_EVALUATION_OUTPUT_COMPONENTS - use ARB_tessellation_shader MAX_TESS_CONTROL_UNIFORM_BLOCKS - use ARB_tessellation_shader MAX_TESS_EVALUATION_UNIFORM_BLOCKS - use ARB_tessellation_shader MAX_TESS_CONTROL_INPUT_COMPONENTS - use ARB_tessellation_shader MAX_TESS_EVALUATION_INPUT_COMPONENTS - use ARB_tessellation_shader MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS - use ARB_tessellation_shader MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS - use ARB_tessellation_shader UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER - use ARB_tessellation_shader UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER - use ARB_tessellation_shader TESS_EVALUATION_SHADER - use ARB_tessellation_shader TESS_CONTROL_SHADER -passthru: /* Reuse tokens from ARB_texture_buffer_object_rgb32 (none) */ -passthru: /* Reuse tokens from ARB_transform_feedback2 */ - use ARB_tessellation_shader TRANSFORM_FEEDBACK - use ARB_tessellation_shader TRANSFORM_FEEDBACK_BUFFER_PAUSED - use ARB_tessellation_shader TRANSFORM_FEEDBACK_BUFFER_ACTIVE - use ARB_tessellation_shader TRANSFORM_FEEDBACK_BINDING -passthru: /* Reuse tokens from ARB_transform_feedback3 */ - use ARB_tessellation_shader MAX_TRANSFORM_FEEDBACK_BUFFERS - use ARB_tessellation_shader MAX_VERTEX_STREAMS - -############################################################################### -# -# OpenGL 4.1 enums -# -############################################################################### - -VERSION_4_1 enum: -passthru: /* Reuse tokens from ARB_ES2_compatibility */ - use ARB_ES2_compatibility FIXED - use ARB_ES2_compatibility IMPLEMENTATION_COLOR_READ_TYPE - use ARB_ES2_compatibility IMPLEMENTATION_COLOR_READ_FORMAT - use ARB_ES2_compatibility LOW_FLOAT - use ARB_ES2_compatibility MEDIUM_FLOAT - use ARB_ES2_compatibility HIGH_FLOAT - use ARB_ES2_compatibility LOW_INT - use ARB_ES2_compatibility MEDIUM_INT - use ARB_ES2_compatibility HIGH_INT - use ARB_ES2_compatibility SHADER_COMPILER - use ARB_ES2_compatibility NUM_SHADER_BINARY_FORMATS - use ARB_ES2_compatibility MAX_VERTEX_UNIFORM_VECTORS - use ARB_ES2_compatibility MAX_VARYING_VECTORS - use ARB_ES2_compatibility MAX_FRAGMENT_UNIFORM_VECTORS -passthru: /* Reuse tokens from ARB_get_program_binary */ - use ARB_get_program_binary PROGRAM_BINARY_RETRIEVABLE_HINT - use ARB_get_program_binary PROGRAM_BINARY_LENGTH - use ARB_get_program_binary NUM_PROGRAM_BINARY_FORMATS - use ARB_get_program_binary PROGRAM_BINARY_FORMATS -passthru: /* Reuse tokens from ARB_separate_shader_objects */ - use ARB_separate_shader_objects VERTEX_SHADER_BIT - use ARB_separate_shader_objects FRAGMENT_SHADER_BIT - use ARB_separate_shader_objects GEOMETRY_SHADER_BIT - use ARB_separate_shader_objects TESS_CONTROL_SHADER_BIT - use ARB_separate_shader_objects TESS_EVALUATION_SHADER_BIT - use ARB_separate_shader_objects ALL_SHADER_BITS - use ARB_separate_shader_objects PROGRAM_SEPARABLE - use ARB_separate_shader_objects ACTIVE_PROGRAM - use ARB_separate_shader_objects PROGRAM_PIPELINE_BINDING -passthru: /* Reuse tokens from ARB_shader_precision (none) */ -passthru: /* Reuse tokens from ARB_vertex_attrib_64bit - all are in GL 3.0 and 4.0 already */ -passthru: /* Reuse tokens from ARB_viewport_array - some are in GL 1.1 and ARB_provoking_vertex already */ - use ARB_viewport_array MAX_VIEWPORTS - use ARB_viewport_array VIEWPORT_SUBPIXEL_BITS - use ARB_viewport_array VIEWPORT_BOUNDS_RANGE - use ARB_viewport_array LAYER_PROVOKING_VERTEX - use ARB_viewport_array VIEWPORT_INDEX_PROVOKING_VERTEX - use ARB_viewport_array UNDEFINED_VERTEX - - -############################################################################### -# -# ARB extensions, in ARB extension order -# -############################################################################### - -############################################################################### - -# ARB Extension #1 -ARB_multitexture enum: - TEXTURE0_ARB = 0x84C0 - TEXTURE1_ARB = 0x84C1 - TEXTURE2_ARB = 0x84C2 - TEXTURE3_ARB = 0x84C3 - TEXTURE4_ARB = 0x84C4 - TEXTURE5_ARB = 0x84C5 - TEXTURE6_ARB = 0x84C6 - TEXTURE7_ARB = 0x84C7 - TEXTURE8_ARB = 0x84C8 - TEXTURE9_ARB = 0x84C9 - TEXTURE10_ARB = 0x84CA - TEXTURE11_ARB = 0x84CB - TEXTURE12_ARB = 0x84CC - TEXTURE13_ARB = 0x84CD - TEXTURE14_ARB = 0x84CE - TEXTURE15_ARB = 0x84CF - TEXTURE16_ARB = 0x84D0 - TEXTURE17_ARB = 0x84D1 - TEXTURE18_ARB = 0x84D2 - TEXTURE19_ARB = 0x84D3 - TEXTURE20_ARB = 0x84D4 - TEXTURE21_ARB = 0x84D5 - TEXTURE22_ARB = 0x84D6 - TEXTURE23_ARB = 0x84D7 - TEXTURE24_ARB = 0x84D8 - TEXTURE25_ARB = 0x84D9 - TEXTURE26_ARB = 0x84DA - TEXTURE27_ARB = 0x84DB - TEXTURE28_ARB = 0x84DC - TEXTURE29_ARB = 0x84DD - TEXTURE30_ARB = 0x84DE - TEXTURE31_ARB = 0x84DF - ACTIVE_TEXTURE_ARB = 0x84E0 # 1 I - CLIENT_ACTIVE_TEXTURE_ARB = 0x84E1 # 1 I - MAX_TEXTURE_UNITS_ARB = 0x84E2 # 1 I - -############################################################################### - -# No new tokens -# ARB Extension #2 - GLX_ARB_get_proc_address - -############################################################################### - -# ARB Extension #3 -ARB_transpose_matrix enum: - TRANSPOSE_MODELVIEW_MATRIX_ARB = 0x84E3 # 16 F - TRANSPOSE_PROJECTION_MATRIX_ARB = 0x84E4 # 16 F - TRANSPOSE_TEXTURE_MATRIX_ARB = 0x84E5 # 16 F - TRANSPOSE_COLOR_MATRIX_ARB = 0x84E6 # 16 F - -############################################################################### - -# No new tokens -# ARB Extension #4 - WGL_ARB_buffer_region - -############################################################################### - -# ARB Extension #5 -ARB_multisample enum: - MULTISAMPLE_ARB = 0x809D - SAMPLE_ALPHA_TO_COVERAGE_ARB = 0x809E - SAMPLE_ALPHA_TO_ONE_ARB = 0x809F - SAMPLE_COVERAGE_ARB = 0x80A0 - SAMPLE_BUFFERS_ARB = 0x80A8 - SAMPLES_ARB = 0x80A9 - SAMPLE_COVERAGE_VALUE_ARB = 0x80AA - SAMPLE_COVERAGE_INVERT_ARB = 0x80AB - MULTISAMPLE_BIT_ARB = 0x20000000 - -############################################################################### - -# No new tokens -# ARB Extension #6 -ARB_texture_env_add enum: - -############################################################################### - -# ARB Extension #7 -ARB_texture_cube_map enum: - NORMAL_MAP_ARB = 0x8511 - REFLECTION_MAP_ARB = 0x8512 - TEXTURE_CUBE_MAP_ARB = 0x8513 - TEXTURE_BINDING_CUBE_MAP_ARB = 0x8514 - TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x8515 - TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x8516 - TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x8517 - TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x8518 - TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x8519 - TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x851A - PROXY_TEXTURE_CUBE_MAP_ARB = 0x851B - MAX_CUBE_MAP_TEXTURE_SIZE_ARB = 0x851C - -############################################################################### - -# No new tokens -# ARB Extension #8 - WGL_ARB_extensions_string -# ARB Extension #9 - WGL_ARB_pixel_format -# ARB Extension #10 - WGL_ARB_make_current_read -# ARB Extension #11 - WGL_ARB_pbuffer - -############################################################################### - -# ARB Extension #12 -ARB_texture_compression enum: - COMPRESSED_ALPHA_ARB = 0x84E9 - COMPRESSED_LUMINANCE_ARB = 0x84EA - COMPRESSED_LUMINANCE_ALPHA_ARB = 0x84EB - COMPRESSED_INTENSITY_ARB = 0x84EC - COMPRESSED_RGB_ARB = 0x84ED - COMPRESSED_RGBA_ARB = 0x84EE - TEXTURE_COMPRESSION_HINT_ARB = 0x84EF - TEXTURE_COMPRESSED_IMAGE_SIZE_ARB = 0x86A0 - TEXTURE_COMPRESSED_ARB = 0x86A1 - NUM_COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A2 - COMPRESSED_TEXTURE_FORMATS_ARB = 0x86A3 - -############################################################################### - -# ARB Extension #13 -# Promoted from #36 SGIS_texture_border_clamp -ARB_texture_border_clamp enum: - CLAMP_TO_BORDER_ARB = 0x812D - -############################################################################### - -# ARB Extension #14 - promoted from #54 EXT_point_parameters -# Promoted from #54 {SGIS,EXT}_point_parameters -ARB_point_parameters enum: - POINT_SIZE_MIN_ARB = 0x8126 # 1 F - POINT_SIZE_MAX_ARB = 0x8127 # 1 F - POINT_FADE_THRESHOLD_SIZE_ARB = 0x8128 # 1 F - POINT_DISTANCE_ATTENUATION_ARB = 0x8129 # 3 F - -############################################################################### - -# ARB Extension #15 -ARB_vertex_blend enum: - MAX_VERTEX_UNITS_ARB = 0x86A4 - ACTIVE_VERTEX_UNITS_ARB = 0x86A5 - WEIGHT_SUM_UNITY_ARB = 0x86A6 - VERTEX_BLEND_ARB = 0x86A7 - CURRENT_WEIGHT_ARB = 0x86A8 - WEIGHT_ARRAY_TYPE_ARB = 0x86A9 - WEIGHT_ARRAY_STRIDE_ARB = 0x86AA - WEIGHT_ARRAY_SIZE_ARB = 0x86AB - WEIGHT_ARRAY_POINTER_ARB = 0x86AC - WEIGHT_ARRAY_ARB = 0x86AD - MODELVIEW0_ARB = 0x1700 - MODELVIEW1_ARB = 0x850A - MODELVIEW2_ARB = 0x8722 - MODELVIEW3_ARB = 0x8723 - MODELVIEW4_ARB = 0x8724 - MODELVIEW5_ARB = 0x8725 - MODELVIEW6_ARB = 0x8726 - MODELVIEW7_ARB = 0x8727 - MODELVIEW8_ARB = 0x8728 - MODELVIEW9_ARB = 0x8729 - MODELVIEW10_ARB = 0x872A - MODELVIEW11_ARB = 0x872B - MODELVIEW12_ARB = 0x872C - MODELVIEW13_ARB = 0x872D - MODELVIEW14_ARB = 0x872E - MODELVIEW15_ARB = 0x872F - MODELVIEW16_ARB = 0x8730 - MODELVIEW17_ARB = 0x8731 - MODELVIEW18_ARB = 0x8732 - MODELVIEW19_ARB = 0x8733 - MODELVIEW20_ARB = 0x8734 - MODELVIEW21_ARB = 0x8735 - MODELVIEW22_ARB = 0x8736 - MODELVIEW23_ARB = 0x8737 - MODELVIEW24_ARB = 0x8738 - MODELVIEW25_ARB = 0x8739 - MODELVIEW26_ARB = 0x873A - MODELVIEW27_ARB = 0x873B - MODELVIEW28_ARB = 0x873C - MODELVIEW29_ARB = 0x873D - MODELVIEW30_ARB = 0x873E - MODELVIEW31_ARB = 0x873F - -############################################################################### - -# ARB Extension #16 -ARB_matrix_palette enum: - MATRIX_PALETTE_ARB = 0x8840 - MAX_MATRIX_PALETTE_STACK_DEPTH_ARB = 0x8841 - MAX_PALETTE_MATRICES_ARB = 0x8842 - CURRENT_PALETTE_MATRIX_ARB = 0x8843 - MATRIX_INDEX_ARRAY_ARB = 0x8844 - CURRENT_MATRIX_INDEX_ARB = 0x8845 - MATRIX_INDEX_ARRAY_SIZE_ARB = 0x8846 - MATRIX_INDEX_ARRAY_TYPE_ARB = 0x8847 - MATRIX_INDEX_ARRAY_STRIDE_ARB = 0x8848 - MATRIX_INDEX_ARRAY_POINTER_ARB = 0x8849 - -############################################################################### - -# ARB Extension #17 -# Shares enum values with EXT_texture_env_combine -ARB_texture_env_combine enum: - COMBINE_ARB = 0x8570 - COMBINE_RGB_ARB = 0x8571 - COMBINE_ALPHA_ARB = 0x8572 - SOURCE0_RGB_ARB = 0x8580 - SOURCE1_RGB_ARB = 0x8581 - SOURCE2_RGB_ARB = 0x8582 - SOURCE0_ALPHA_ARB = 0x8588 - SOURCE1_ALPHA_ARB = 0x8589 - SOURCE2_ALPHA_ARB = 0x858A - OPERAND0_RGB_ARB = 0x8590 - OPERAND1_RGB_ARB = 0x8591 - OPERAND2_RGB_ARB = 0x8592 - OPERAND0_ALPHA_ARB = 0x8598 - OPERAND1_ALPHA_ARB = 0x8599 - OPERAND2_ALPHA_ARB = 0x859A - RGB_SCALE_ARB = 0x8573 - ADD_SIGNED_ARB = 0x8574 - INTERPOLATE_ARB = 0x8575 - SUBTRACT_ARB = 0x84E7 - CONSTANT_ARB = 0x8576 - PRIMARY_COLOR_ARB = 0x8577 - PREVIOUS_ARB = 0x8578 - -############################################################################### - -# No new tokens -# ARB Extension #18 -ARB_texture_env_crossbar enum: - -############################################################################### - -# ARB Extension #19 -# Promoted from #220 EXT_texture_env_dot3; enum values changed -ARB_texture_env_dot3 enum: - DOT3_RGB_ARB = 0x86AE - DOT3_RGBA_ARB = 0x86AF - -############################################################################### - -# No new tokens -# ARB Extension #20 - WGL_ARB_render_texture - -############################################################################### - -# ARB Extension #21 -ARB_texture_mirrored_repeat enum: - MIRRORED_REPEAT_ARB = 0x8370 - -############################################################################### - -# ARB Extension #22 -ARB_depth_texture enum: - DEPTH_COMPONENT16_ARB = 0x81A5 - DEPTH_COMPONENT24_ARB = 0x81A6 - DEPTH_COMPONENT32_ARB = 0x81A7 - TEXTURE_DEPTH_SIZE_ARB = 0x884A - DEPTH_TEXTURE_MODE_ARB = 0x884B - -############################################################################### - -# ARB Extension #23 -ARB_shadow enum: - TEXTURE_COMPARE_MODE_ARB = 0x884C - TEXTURE_COMPARE_FUNC_ARB = 0x884D - COMPARE_R_TO_TEXTURE_ARB = 0x884E - -############################################################################### - -# ARB Extension #24 -ARB_shadow_ambient enum: - TEXTURE_COMPARE_FAIL_VALUE_ARB = 0x80BF - -############################################################################### - -# No new tokens -# ARB Extension #25 -ARB_window_pos enum: - -############################################################################### - -# ARB Extension #26 -# ARB_vertex_program enums are shared by ARB_fragment_program are so marked. -# Unfortunately, PROGRAM_BINDING_ARB does accidentally reuse 0x8677 - -# this was a spec editing typo that's now uncorrectable. -ARB_vertex_program enum: - COLOR_SUM_ARB = 0x8458 - VERTEX_PROGRAM_ARB = 0x8620 - VERTEX_ATTRIB_ARRAY_ENABLED_ARB = 0x8622 - VERTEX_ATTRIB_ARRAY_SIZE_ARB = 0x8623 - VERTEX_ATTRIB_ARRAY_STRIDE_ARB = 0x8624 - VERTEX_ATTRIB_ARRAY_TYPE_ARB = 0x8625 - CURRENT_VERTEX_ATTRIB_ARB = 0x8626 - PROGRAM_LENGTH_ARB = 0x8627 # shared - PROGRAM_STRING_ARB = 0x8628 # shared - MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862E # shared - MAX_PROGRAM_MATRICES_ARB = 0x862F # shared - CURRENT_MATRIX_STACK_DEPTH_ARB = 0x8640 # shared - CURRENT_MATRIX_ARB = 0x8641 # shared - VERTEX_PROGRAM_POINT_SIZE_ARB = 0x8642 - VERTEX_PROGRAM_TWO_SIDE_ARB = 0x8643 - VERTEX_ATTRIB_ARRAY_POINTER_ARB = 0x8645 - PROGRAM_ERROR_POSITION_ARB = 0x864B # shared - PROGRAM_BINDING_ARB = 0x8677 # shared - MAX_VERTEX_ATTRIBS_ARB = 0x8869 - VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB = 0x886A - PROGRAM_ERROR_STRING_ARB = 0x8874 # shared - PROGRAM_FORMAT_ASCII_ARB = 0x8875 # shared - PROGRAM_FORMAT_ARB = 0x8876 # shared - PROGRAM_INSTRUCTIONS_ARB = 0x88A0 # shared - MAX_PROGRAM_INSTRUCTIONS_ARB = 0x88A1 # shared - PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A2 # shared - MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A3 # shared - PROGRAM_TEMPORARIES_ARB = 0x88A4 # shared - MAX_PROGRAM_TEMPORARIES_ARB = 0x88A5 # shared - PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A6 # shared - MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A7 # shared - PROGRAM_PARAMETERS_ARB = 0x88A8 # shared - MAX_PROGRAM_PARAMETERS_ARB = 0x88A9 # shared - PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AA # shared - MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AB # shared - PROGRAM_ATTRIBS_ARB = 0x88AC # shared - MAX_PROGRAM_ATTRIBS_ARB = 0x88AD # shared - PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AE # shared - MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AF # shared - PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B0 # shared - MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B1 # shared - PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B2 # shared - MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B3 # shared - MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88B4 # shared - MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88B5 # shared - PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88B6 # shared - TRANSPOSE_CURRENT_MATRIX_ARB = 0x88B7 # shared - MATRIX0_ARB = 0x88C0 # shared - MATRIX1_ARB = 0x88C1 # shared - MATRIX2_ARB = 0x88C2 # shared - MATRIX3_ARB = 0x88C3 # shared - MATRIX4_ARB = 0x88C4 # shared - MATRIX5_ARB = 0x88C5 # shared - MATRIX6_ARB = 0x88C6 # shared - MATRIX7_ARB = 0x88C7 # shared - MATRIX8_ARB = 0x88C8 # shared - MATRIX9_ARB = 0x88C9 # shared - MATRIX10_ARB = 0x88CA # shared - MATRIX11_ARB = 0x88CB # shared - MATRIX12_ARB = 0x88CC # shared - MATRIX13_ARB = 0x88CD # shared - MATRIX14_ARB = 0x88CE # shared - MATRIX15_ARB = 0x88CF # shared - MATRIX16_ARB = 0x88D0 # shared - MATRIX17_ARB = 0x88D1 # shared - MATRIX18_ARB = 0x88D2 # shared - MATRIX19_ARB = 0x88D3 # shared - MATRIX20_ARB = 0x88D4 # shared - MATRIX21_ARB = 0x88D5 # shared - MATRIX22_ARB = 0x88D6 # shared - MATRIX23_ARB = 0x88D7 # shared - MATRIX24_ARB = 0x88D8 # shared - MATRIX25_ARB = 0x88D9 # shared - MATRIX26_ARB = 0x88DA # shared - MATRIX27_ARB = 0x88DB # shared - MATRIX28_ARB = 0x88DC # shared - MATRIX29_ARB = 0x88DD # shared - MATRIX30_ARB = 0x88DE # shared - MATRIX31_ARB = 0x88DF # shared - -############################################################################### - -# ARB Extension #27 -# Some ARB_fragment_program enums are shared with ARB_vertex_program, -# and are only included in that #define block, for now. -ARB_fragment_program enum: -# PROGRAM_LENGTH_ARB = 0x8627 # shared -# PROGRAM_STRING_ARB = 0x8628 # shared -# MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB = 0x862E # shared -# MAX_PROGRAM_MATRICES_ARB = 0x862F # shared -# CURRENT_MATRIX_STACK_DEPTH_ARB = 0x8640 # shared -# CURRENT_MATRIX_ARB = 0x8641 # shared -# PROGRAM_ERROR_POSITION_ARB = 0x864B # shared -# PROGRAM_BINDING_ARB = 0x8677 # shared - FRAGMENT_PROGRAM_ARB = 0x8804 - PROGRAM_ALU_INSTRUCTIONS_ARB = 0x8805 - PROGRAM_TEX_INSTRUCTIONS_ARB = 0x8806 - PROGRAM_TEX_INDIRECTIONS_ARB = 0x8807 - PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x8808 - PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x8809 - PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x880A - MAX_PROGRAM_ALU_INSTRUCTIONS_ARB = 0x880B - MAX_PROGRAM_TEX_INSTRUCTIONS_ARB = 0x880C - MAX_PROGRAM_TEX_INDIRECTIONS_ARB = 0x880D - MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB = 0x880E - MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB = 0x880F - MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB = 0x8810 - MAX_TEXTURE_COORDS_ARB = 0x8871 - MAX_TEXTURE_IMAGE_UNITS_ARB = 0x8872 -# PROGRAM_ERROR_STRING_ARB = 0x8874 # shared -# PROGRAM_FORMAT_ASCII_ARB = 0x8875 # shared -# PROGRAM_FORMAT_ARB = 0x8876 # shared -# PROGRAM_INSTRUCTIONS_ARB = 0x88A0 # shared -# MAX_PROGRAM_INSTRUCTIONS_ARB = 0x88A1 # shared -# PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A2 # shared -# MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB = 0x88A3 # shared -# PROGRAM_TEMPORARIES_ARB = 0x88A4 # shared -# MAX_PROGRAM_TEMPORARIES_ARB = 0x88A5 # shared -# PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A6 # shared -# MAX_PROGRAM_NATIVE_TEMPORARIES_ARB = 0x88A7 # shared -# PROGRAM_PARAMETERS_ARB = 0x88A8 # shared -# MAX_PROGRAM_PARAMETERS_ARB = 0x88A9 # shared -# PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AA # shared -# MAX_PROGRAM_NATIVE_PARAMETERS_ARB = 0x88AB # shared -# PROGRAM_ATTRIBS_ARB = 0x88AC # shared -# MAX_PROGRAM_ATTRIBS_ARB = 0x88AD # shared -# PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AE # shared -# MAX_PROGRAM_NATIVE_ATTRIBS_ARB = 0x88AF # shared -# PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B0 # shared -# MAX_PROGRAM_ADDRESS_REGISTERS_ARB = 0x88B1 # shared -# PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B2 # shared -# MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB = 0x88B3 # shared -# MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88B4 # shared -# MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88B5 # shared -# PROGRAM_UNDER_NATIVE_LIMITS_ARB = 0x88B6 # shared -# TRANSPOSE_CURRENT_MATRIX_ARB = 0x88B7 # shared -# MATRIX0_ARB = 0x88C0 # shared -# MATRIX1_ARB = 0x88C1 # shared -# MATRIX2_ARB = 0x88C2 # shared -# MATRIX3_ARB = 0x88C3 # shared -# MATRIX4_ARB = 0x88C4 # shared -# MATRIX5_ARB = 0x88C5 # shared -# MATRIX6_ARB = 0x88C6 # shared -# MATRIX7_ARB = 0x88C7 # shared -# MATRIX8_ARB = 0x88C8 # shared -# MATRIX9_ARB = 0x88C9 # shared -# MATRIX10_ARB = 0x88CA # shared -# MATRIX11_ARB = 0x88CB # shared -# MATRIX12_ARB = 0x88CC # shared -# MATRIX13_ARB = 0x88CD # shared -# MATRIX14_ARB = 0x88CE # shared -# MATRIX15_ARB = 0x88CF # shared -# MATRIX16_ARB = 0x88D0 # shared -# MATRIX17_ARB = 0x88D1 # shared -# MATRIX18_ARB = 0x88D2 # shared -# MATRIX19_ARB = 0x88D3 # shared -# MATRIX20_ARB = 0x88D4 # shared -# MATRIX21_ARB = 0x88D5 # shared -# MATRIX22_ARB = 0x88D6 # shared -# MATRIX23_ARB = 0x88D7 # shared -# MATRIX24_ARB = 0x88D8 # shared -# MATRIX25_ARB = 0x88D9 # shared -# MATRIX26_ARB = 0x88DA # shared -# MATRIX27_ARB = 0x88DB # shared -# MATRIX28_ARB = 0x88DC # shared -# MATRIX29_ARB = 0x88DD # shared -# MATRIX30_ARB = 0x88DE # shared -# MATRIX31_ARB = 0x88DF # shared - - -############################################################################### - -# ARB Extension #28 -ARB_vertex_buffer_object enum: - BUFFER_SIZE_ARB = 0x8764 - BUFFER_USAGE_ARB = 0x8765 - ARRAY_BUFFER_ARB = 0x8892 - ELEMENT_ARRAY_BUFFER_ARB = 0x8893 - ARRAY_BUFFER_BINDING_ARB = 0x8894 - ELEMENT_ARRAY_BUFFER_BINDING_ARB = 0x8895 - VERTEX_ARRAY_BUFFER_BINDING_ARB = 0x8896 - NORMAL_ARRAY_BUFFER_BINDING_ARB = 0x8897 - COLOR_ARRAY_BUFFER_BINDING_ARB = 0x8898 - INDEX_ARRAY_BUFFER_BINDING_ARB = 0x8899 - TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB = 0x889A - EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB = 0x889B - SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB = 0x889C - FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB = 0x889D - WEIGHT_ARRAY_BUFFER_BINDING_ARB = 0x889E - VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB = 0x889F - READ_ONLY_ARB = 0x88B8 - WRITE_ONLY_ARB = 0x88B9 - READ_WRITE_ARB = 0x88BA - BUFFER_ACCESS_ARB = 0x88BB - BUFFER_MAPPED_ARB = 0x88BC - BUFFER_MAP_POINTER_ARB = 0x88BD - STREAM_DRAW_ARB = 0x88E0 - STREAM_READ_ARB = 0x88E1 - STREAM_COPY_ARB = 0x88E2 - STATIC_DRAW_ARB = 0x88E4 - STATIC_READ_ARB = 0x88E5 - STATIC_COPY_ARB = 0x88E6 - DYNAMIC_DRAW_ARB = 0x88E8 - DYNAMIC_READ_ARB = 0x88E9 - DYNAMIC_COPY_ARB = 0x88EA - -############################################################################### - -# ARB Extension #29 -ARB_occlusion_query enum: - QUERY_COUNTER_BITS_ARB = 0x8864 - CURRENT_QUERY_ARB = 0x8865 - QUERY_RESULT_ARB = 0x8866 - QUERY_RESULT_AVAILABLE_ARB = 0x8867 - SAMPLES_PASSED_ARB = 0x8914 - -############################################################################### - -# ARB Extension #30 -ARB_shader_objects enum: - PROGRAM_OBJECT_ARB = 0x8B40 - SHADER_OBJECT_ARB = 0x8B48 - OBJECT_TYPE_ARB = 0x8B4E - OBJECT_SUBTYPE_ARB = 0x8B4F - FLOAT_VEC2_ARB = 0x8B50 - FLOAT_VEC3_ARB = 0x8B51 - FLOAT_VEC4_ARB = 0x8B52 - INT_VEC2_ARB = 0x8B53 - INT_VEC3_ARB = 0x8B54 - INT_VEC4_ARB = 0x8B55 - BOOL_ARB = 0x8B56 - BOOL_VEC2_ARB = 0x8B57 - BOOL_VEC3_ARB = 0x8B58 - BOOL_VEC4_ARB = 0x8B59 - FLOAT_MAT2_ARB = 0x8B5A - FLOAT_MAT3_ARB = 0x8B5B - FLOAT_MAT4_ARB = 0x8B5C - SAMPLER_1D_ARB = 0x8B5D - SAMPLER_2D_ARB = 0x8B5E - SAMPLER_3D_ARB = 0x8B5F - SAMPLER_CUBE_ARB = 0x8B60 - SAMPLER_1D_SHADOW_ARB = 0x8B61 - SAMPLER_2D_SHADOW_ARB = 0x8B62 - SAMPLER_2D_RECT_ARB = 0x8B63 - SAMPLER_2D_RECT_SHADOW_ARB = 0x8B64 - OBJECT_DELETE_STATUS_ARB = 0x8B80 - OBJECT_COMPILE_STATUS_ARB = 0x8B81 - OBJECT_LINK_STATUS_ARB = 0x8B82 - OBJECT_VALIDATE_STATUS_ARB = 0x8B83 - OBJECT_INFO_LOG_LENGTH_ARB = 0x8B84 - OBJECT_ATTACHED_OBJECTS_ARB = 0x8B85 - OBJECT_ACTIVE_UNIFORMS_ARB = 0x8B86 - OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB = 0x8B87 - OBJECT_SHADER_SOURCE_LENGTH_ARB = 0x8B88 - -############################################################################### - -# ARB Extension #31 -# Additional enums are reused from ARB_vertex/fragment_program and ARB_shader_objects -ARB_vertex_shader enum: - VERTEX_SHADER_ARB = 0x8B31 - MAX_VERTEX_UNIFORM_COMPONENTS_ARB = 0x8B4A - MAX_VARYING_FLOATS_ARB = 0x8B4B - MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB = 0x8B4C - MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB = 0x8B4D - OBJECT_ACTIVE_ATTRIBUTES_ARB = 0x8B89 - OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB = 0x8B8A - -############################################################################### - -# ARB Extension #32 -# Additional enums are reused from ARB_fragment_program and ARB_shader_objects -ARB_fragment_shader enum: - FRAGMENT_SHADER_ARB = 0x8B30 - MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB = 0x8B49 - FRAGMENT_SHADER_DERIVATIVE_HINT_ARB = 0x8B8B - -############################################################################### - -# ARB Extension #33 -ARB_shading_language_100 enum: - SHADING_LANGUAGE_VERSION_ARB = 0x8B8C - -############################################################################### - -# ARB Extension #34 -# No new tokens -ARB_texture_non_power_of_two enum: - -############################################################################### - -# ARB Extension #35 -ARB_point_sprite enum: - POINT_SPRITE_ARB = 0x8861 - COORD_REPLACE_ARB = 0x8862 - -############################################################################### - -# ARB Extension #36 -# No new tokens -ARB_fragment_program_shadow enum: - -############################################################################### - -# ARB Extension #37 -ARB_draw_buffers enum: - MAX_DRAW_BUFFERS_ARB = 0x8824 - DRAW_BUFFER0_ARB = 0x8825 - DRAW_BUFFER1_ARB = 0x8826 - DRAW_BUFFER2_ARB = 0x8827 - DRAW_BUFFER3_ARB = 0x8828 - DRAW_BUFFER4_ARB = 0x8829 - DRAW_BUFFER5_ARB = 0x882A - DRAW_BUFFER6_ARB = 0x882B - DRAW_BUFFER7_ARB = 0x882C - DRAW_BUFFER8_ARB = 0x882D - DRAW_BUFFER9_ARB = 0x882E - DRAW_BUFFER10_ARB = 0x882F - DRAW_BUFFER11_ARB = 0x8830 - DRAW_BUFFER12_ARB = 0x8831 - DRAW_BUFFER13_ARB = 0x8832 - DRAW_BUFFER14_ARB = 0x8833 - DRAW_BUFFER15_ARB = 0x8834 - -############################################################################### - -# ARB Extension #38 -ARB_texture_rectangle enum: - TEXTURE_RECTANGLE_ARB = 0x84F5 - TEXTURE_BINDING_RECTANGLE_ARB = 0x84F6 - PROXY_TEXTURE_RECTANGLE_ARB = 0x84F7 - MAX_RECTANGLE_TEXTURE_SIZE_ARB = 0x84F8 - -############################################################################### - -# ARB Extension #39 -ARB_color_buffer_float enum: - RGBA_FLOAT_MODE_ARB = 0x8820 - CLAMP_VERTEX_COLOR_ARB = 0x891A - CLAMP_FRAGMENT_COLOR_ARB = 0x891B - CLAMP_READ_COLOR_ARB = 0x891C - FIXED_ONLY_ARB = 0x891D - -############################################################################### - -# ARB Extension #40 -ARB_half_float_pixel enum: - HALF_FLOAT_ARB = 0x140B - -############################################################################### - -# ARB Extension #41 -ARB_texture_float enum: - TEXTURE_RED_TYPE_ARB = 0x8C10 - TEXTURE_GREEN_TYPE_ARB = 0x8C11 - TEXTURE_BLUE_TYPE_ARB = 0x8C12 - TEXTURE_ALPHA_TYPE_ARB = 0x8C13 - TEXTURE_LUMINANCE_TYPE_ARB = 0x8C14 - TEXTURE_INTENSITY_TYPE_ARB = 0x8C15 - TEXTURE_DEPTH_TYPE_ARB = 0x8C16 - UNSIGNED_NORMALIZED_ARB = 0x8C17 - RGBA32F_ARB = 0x8814 - RGB32F_ARB = 0x8815 - ALPHA32F_ARB = 0x8816 - INTENSITY32F_ARB = 0x8817 - LUMINANCE32F_ARB = 0x8818 - LUMINANCE_ALPHA32F_ARB = 0x8819 - RGBA16F_ARB = 0x881A - RGB16F_ARB = 0x881B - ALPHA16F_ARB = 0x881C - INTENSITY16F_ARB = 0x881D - LUMINANCE16F_ARB = 0x881E - LUMINANCE_ALPHA16F_ARB = 0x881F - -############################################################################### - -# ARB Extension #42 -ARB_pixel_buffer_object enum: - PIXEL_PACK_BUFFER_ARB = 0x88EB - PIXEL_UNPACK_BUFFER_ARB = 0x88EC - PIXEL_PACK_BUFFER_BINDING_ARB = 0x88ED - PIXEL_UNPACK_BUFFER_BINDING_ARB = 0x88EF - -############################################################################### - -# ARB Extension #43 -ARB_depth_buffer_float enum: - DEPTH_COMPONENT32F = 0x8CAC - DEPTH32F_STENCIL8 = 0x8CAD - FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD - -############################################################################### - -# ARB Extension #44 -# No new tokens -ARB_draw_instanced enum: - -############################################################################### - -# ARB Extension #45 -ARB_framebuffer_object enum: - INVALID_FRAMEBUFFER_OPERATION = 0x0506 - FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210 - FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211 - FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212 - FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213 - FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214 - FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215 - FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216 - FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217 - FRAMEBUFFER_DEFAULT = 0x8218 - FRAMEBUFFER_UNDEFINED = 0x8219 - DEPTH_STENCIL_ATTACHMENT = 0x821A - MAX_RENDERBUFFER_SIZE = 0x84E8 - DEPTH_STENCIL = 0x84F9 - UNSIGNED_INT_24_8 = 0x84FA - DEPTH24_STENCIL8 = 0x88F0 - TEXTURE_STENCIL_SIZE = 0x88F1 - TEXTURE_RED_TYPE = 0x8C10 - TEXTURE_GREEN_TYPE = 0x8C11 - TEXTURE_BLUE_TYPE = 0x8C12 - TEXTURE_ALPHA_TYPE = 0x8C13 - TEXTURE_DEPTH_TYPE = 0x8C16 - UNSIGNED_NORMALIZED = 0x8C17 - FRAMEBUFFER_BINDING = 0x8CA6 - DRAW_FRAMEBUFFER_BINDING = GL_FRAMEBUFFER_BINDING - RENDERBUFFER_BINDING = 0x8CA7 - READ_FRAMEBUFFER = 0x8CA8 - DRAW_FRAMEBUFFER = 0x8CA9 - READ_FRAMEBUFFER_BINDING = 0x8CAA - RENDERBUFFER_SAMPLES = 0x8CAB - FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0 - FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1 - FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2 - FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3 - FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4 - FRAMEBUFFER_COMPLETE = 0x8CD5 - FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6 - FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7 - FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB - FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC - FRAMEBUFFER_UNSUPPORTED = 0x8CDD - MAX_COLOR_ATTACHMENTS = 0x8CDF - COLOR_ATTACHMENT0 = 0x8CE0 - COLOR_ATTACHMENT1 = 0x8CE1 - COLOR_ATTACHMENT2 = 0x8CE2 - COLOR_ATTACHMENT3 = 0x8CE3 - COLOR_ATTACHMENT4 = 0x8CE4 - COLOR_ATTACHMENT5 = 0x8CE5 - COLOR_ATTACHMENT6 = 0x8CE6 - COLOR_ATTACHMENT7 = 0x8CE7 - COLOR_ATTACHMENT8 = 0x8CE8 - COLOR_ATTACHMENT9 = 0x8CE9 - COLOR_ATTACHMENT10 = 0x8CEA - COLOR_ATTACHMENT11 = 0x8CEB - COLOR_ATTACHMENT12 = 0x8CEC - COLOR_ATTACHMENT13 = 0x8CED - COLOR_ATTACHMENT14 = 0x8CEE - COLOR_ATTACHMENT15 = 0x8CEF - DEPTH_ATTACHMENT = 0x8D00 - STENCIL_ATTACHMENT = 0x8D20 - FRAMEBUFFER = 0x8D40 - RENDERBUFFER = 0x8D41 - RENDERBUFFER_WIDTH = 0x8D42 - RENDERBUFFER_HEIGHT = 0x8D43 - RENDERBUFFER_INTERNAL_FORMAT = 0x8D44 - STENCIL_INDEX1 = 0x8D46 - STENCIL_INDEX4 = 0x8D47 - STENCIL_INDEX8 = 0x8D48 - STENCIL_INDEX16 = 0x8D49 - RENDERBUFFER_RED_SIZE = 0x8D50 - RENDERBUFFER_GREEN_SIZE = 0x8D51 - RENDERBUFFER_BLUE_SIZE = 0x8D52 - RENDERBUFFER_ALPHA_SIZE = 0x8D53 - RENDERBUFFER_DEPTH_SIZE = 0x8D54 - RENDERBUFFER_STENCIL_SIZE = 0x8D55 - FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56 - MAX_SAMPLES = 0x8D57 - -ARB_framebuffer_object_DEPRECATED enum: - INDEX = 0x8222 - TEXTURE_LUMINANCE_TYPE = 0x8C14 - TEXTURE_INTENSITY_TYPE = 0x8C15 - -############################################################################### - -# ARB Extension #46 -ARB_framebuffer_sRGB enum: - FRAMEBUFFER_SRGB = 0x8DB9 - -############################################################################### - -# ARB Extension #47 -ARB_geometry_shader4 enum: - LINES_ADJACENCY_ARB = 0x000A - LINE_STRIP_ADJACENCY_ARB = 0x000B - TRIANGLES_ADJACENCY_ARB = 0x000C - TRIANGLE_STRIP_ADJACENCY_ARB = 0x000D - PROGRAM_POINT_SIZE_ARB = 0x8642 - MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_ARB = 0x8C29 - FRAMEBUFFER_ATTACHMENT_LAYERED_ARB = 0x8DA7 - FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_ARB = 0x8DA8 - FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_ARB = 0x8DA9 - GEOMETRY_SHADER_ARB = 0x8DD9 - GEOMETRY_VERTICES_OUT_ARB = 0x8DDA - GEOMETRY_INPUT_TYPE_ARB = 0x8DDB - GEOMETRY_OUTPUT_TYPE_ARB = 0x8DDC - MAX_GEOMETRY_VARYING_COMPONENTS_ARB = 0x8DDD - MAX_VERTEX_VARYING_COMPONENTS_ARB = 0x8DDE - MAX_GEOMETRY_UNIFORM_COMPONENTS_ARB = 0x8DDF - MAX_GEOMETRY_OUTPUT_VERTICES_ARB = 0x8DE0 - MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_ARB = 0x8DE1 - use VERSION_3_0 MAX_VARYING_COMPONENTS - use ARB_framebuffer_object FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER - -############################################################################### - -# ARB Extension #48 -ARB_half_float_vertex enum: - HALF_FLOAT = 0x140B - -############################################################################### - -# ARB Extension #49 -ARB_instanced_arrays enum: - VERTEX_ATTRIB_ARRAY_DIVISOR_ARB = 0x88FE - -############################################################################### - -# ARB Extension #50 -ARB_map_buffer_range enum: - MAP_READ_BIT = 0x0001 - MAP_WRITE_BIT = 0x0002 - MAP_INVALIDATE_RANGE_BIT = 0x0004 - MAP_INVALIDATE_BUFFER_BIT = 0x0008 - MAP_FLUSH_EXPLICIT_BIT = 0x0010 - MAP_UNSYNCHRONIZED_BIT = 0x0020 - -############################################################################### - -# ARB Extension #51 -ARB_texture_buffer_object enum: - TEXTURE_BUFFER_ARB = 0x8C2A - MAX_TEXTURE_BUFFER_SIZE_ARB = 0x8C2B - TEXTURE_BINDING_BUFFER_ARB = 0x8C2C - TEXTURE_BUFFER_DATA_STORE_BINDING_ARB = 0x8C2D - TEXTURE_BUFFER_FORMAT_ARB = 0x8C2E - -############################################################################### - -# ARB Extension #52 -ARB_texture_compression_rgtc enum: - COMPRESSED_RED_RGTC1 = 0x8DBB - COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC - COMPRESSED_RG_RGTC2 = 0x8DBD - COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE - -############################################################################### - -# ARB Extension #53 -ARB_texture_rg enum: - RG = 0x8227 - RG_INTEGER = 0x8228 - R8 = 0x8229 - R16 = 0x822A - RG8 = 0x822B - RG16 = 0x822C - R16F = 0x822D - R32F = 0x822E - RG16F = 0x822F - RG32F = 0x8230 - R8I = 0x8231 - R8UI = 0x8232 - R16I = 0x8233 - R16UI = 0x8234 - R32I = 0x8235 - R32UI = 0x8236 - RG8I = 0x8237 - RG8UI = 0x8238 - RG16I = 0x8239 - RG16UI = 0x823A - RG32I = 0x823B - RG32UI = 0x823C - -############################################################################### - -# ARB Extension #54 -ARB_vertex_array_object enum: - VERTEX_ARRAY_BINDING = 0x85B5 - -############################################################################### - -# No new tokens -# ARB Extension #55 - WGL_ARB_create_context -# ARB Extension #56 - GLX_ARB_create_context - -############################################################################### - -# ARB Extension #57 -ARB_uniform_buffer_object enum: - UNIFORM_BUFFER = 0x8A11 - UNIFORM_BUFFER_BINDING = 0x8A28 - UNIFORM_BUFFER_START = 0x8A29 - UNIFORM_BUFFER_SIZE = 0x8A2A - MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B - MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C - MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D - MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E - MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F - MAX_UNIFORM_BLOCK_SIZE = 0x8A30 - MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31 - MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32 - MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33 - UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34 - ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35 - ACTIVE_UNIFORM_BLOCKS = 0x8A36 - UNIFORM_TYPE = 0x8A37 - UNIFORM_SIZE = 0x8A38 - UNIFORM_NAME_LENGTH = 0x8A39 - UNIFORM_BLOCK_INDEX = 0x8A3A - UNIFORM_OFFSET = 0x8A3B - UNIFORM_ARRAY_STRIDE = 0x8A3C - UNIFORM_MATRIX_STRIDE = 0x8A3D - UNIFORM_IS_ROW_MAJOR = 0x8A3E - UNIFORM_BLOCK_BINDING = 0x8A3F - UNIFORM_BLOCK_DATA_SIZE = 0x8A40 - UNIFORM_BLOCK_NAME_LENGTH = 0x8A41 - UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42 - UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43 - UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44 - UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45 - UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46 - INVALID_INDEX = 0xFFFFFFFFu - -############################################################################### - -# ARB Extension #58 -# No new tokens -ARB_compatibility enum: -passthru: /* ARB_compatibility just defines tokens from core 3.0 */ - -############################################################################### - -# ARB Extension #59 -ARB_copy_buffer enum: - COPY_READ_BUFFER = 0x8F36 - COPY_WRITE_BUFFER = 0x8F37 - -############################################################################### - -# ARB Extension #60 -# No new tokens -ARB_shader_texture_lod enum: - -############################################################################### - -# ARB Extension #61 -ARB_depth_clamp enum: - DEPTH_CLAMP = 0x864F - -############################################################################### - -# No new tokens -# ARB Extension #62 -ARB_draw_elements_base_vertex enum: - -############################################################################### - -# No new tokens -# ARB Extension #63 -ARB_fragment_coord_conventions enum: - -############################################################################### - -# ARB Extension #64 -ARB_provoking_vertex enum: - QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C - FIRST_VERTEX_CONVENTION = 0x8E4D - LAST_VERTEX_CONVENTION = 0x8E4E - PROVOKING_VERTEX = 0x8E4F - -############################################################################### - -# ARB Extension #65 -ARB_seamless_cube_map enum: - TEXTURE_CUBE_MAP_SEAMLESS = 0x884F - -############################################################################### - -# ARB Extension #66 -ARB_sync enum: - MAX_SERVER_WAIT_TIMEOUT = 0x9111 - OBJECT_TYPE = 0x9112 - SYNC_CONDITION = 0x9113 - SYNC_STATUS = 0x9114 - SYNC_FLAGS = 0x9115 - SYNC_FENCE = 0x9116 - SYNC_GPU_COMMANDS_COMPLETE = 0x9117 - UNSIGNALED = 0x9118 - SIGNALED = 0x9119 - ALREADY_SIGNALED = 0x911A - TIMEOUT_EXPIRED = 0x911B - CONDITION_SATISFIED = 0x911C - WAIT_FAILED = 0x911D - SYNC_FLUSH_COMMANDS_BIT = 0x00000001 - TIMEOUT_IGNORED = 0xFFFFFFFFFFFFFFFFull - -############################################################################### - -# ARB Extension #67 -ARB_texture_multisample enum: - SAMPLE_POSITION = 0x8E50 - SAMPLE_MASK = 0x8E51 - SAMPLE_MASK_VALUE = 0x8E52 - MAX_SAMPLE_MASK_WORDS = 0x8E59 - TEXTURE_2D_MULTISAMPLE = 0x9100 - PROXY_TEXTURE_2D_MULTISAMPLE = 0x9101 - TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102 - PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103 - TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104 - TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105 - TEXTURE_SAMPLES = 0x9106 - TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107 - SAMPLER_2D_MULTISAMPLE = 0x9108 - INT_SAMPLER_2D_MULTISAMPLE = 0x9109 - UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910A - SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B - INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C - UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D - MAX_COLOR_TEXTURE_SAMPLES = 0x910E - MAX_DEPTH_TEXTURE_SAMPLES = 0x910F - MAX_INTEGER_SAMPLES = 0x9110 - -############################################################################### - -# ARB Extension #68 -ARB_vertex_array_bgra enum: - use VERSION_1_2 BGRA - -############################################################################### - -# No new tokens -# ARB Extension #69 -ARB_draw_buffers_blend enum: - -############################################################################### - -# ARB Extension #70 -ARB_sample_shading enum: - SAMPLE_SHADING_ARB = 0x8C36 - MIN_SAMPLE_SHADING_VALUE_ARB = 0x8C37 - -############################################################################### - -# ARB Extension #71 -ARB_texture_cube_map_array enum: - TEXTURE_CUBE_MAP_ARRAY_ARB = 0x9009 - TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB = 0x900A - PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x900B - SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900C - SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB = 0x900D - INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900E - UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900F - -############################################################################### - -# ARB Extension #72 -ARB_texture_gather enum: - MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5E - MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5F - -############################################################################### - -# No new tokens -# ARB Extension #73 -ARB_texture_query_lod enum: - -############################################################################### - -# No new tokens -# ARB Extension #74 - WGL_ARB_create_context_profile -# ARB Extension #75 - GLX_ARB_create_context_profile - -############################################################################### - -# ARB Extension #76 -ARB_shading_language_include enum: - SHADER_INCLUDE_ARB = 0x8DAE - NAMED_STRING_LENGTH_ARB = 0x8DE9 - NAMED_STRING_TYPE_ARB = 0x8DEA - -############################################################################### - -# ARB Extension #77 -ARB_texture_compression_bptc enum: - COMPRESSED_RGBA_BPTC_UNORM_ARB = 0x8E8C - COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB = 0x8E8D - COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB = 0x8E8E - COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB = 0x8E8F - -############################################################################### - -# ARB Extension #78 -ARB_blend_func_extended enum: - SRC1_COLOR = 0x88F9 - use VERSION_1_5_DEPRECATED SRC1_ALPHA - ONE_MINUS_SRC1_COLOR = 0x88FA - ONE_MINUS_SRC1_ALPHA = 0x88FB - MAX_DUAL_SOURCE_DRAW_BUFFERS = 0x88FC - -############################################################################### - -# No new tokens -# ARB Extension #79 -ARB_explicit_attrib_location enum: - -############################################################################### - -# ARB Extension #80 -ARB_occlusion_query2 enum: - ANY_SAMPLES_PASSED = 0x8C2F - -############################################################################### - -# ARB Extension #81 -ARB_sampler_objects enum: - SAMPLER_BINDING = 0x8919 - -############################################################################### - -# No new tokens -# ARB Extension #82 -ARB_shader_bit_encoding enum: - -############################################################################### - -# ARB Extension #83 -ARB_texture_rgb10_a2ui enum: - RGB10_A2UI = 0x906F - -############################################################################### - -# ARB Extension #84 -ARB_texture_swizzle enum: - TEXTURE_SWIZZLE_R = 0x8E42 - TEXTURE_SWIZZLE_G = 0x8E43 - TEXTURE_SWIZZLE_B = 0x8E44 - TEXTURE_SWIZZLE_A = 0x8E45 - TEXTURE_SWIZZLE_RGBA = 0x8E46 - -############################################################################### - -# ARB Extension #85 -ARB_timer_query enum: - TIME_ELAPSED = 0x88BF - TIMESTAMP = 0x8E28 - -############################################################################### - -# ARB Extension #86 -ARB_vertex_type_2_10_10_10_rev enum: - use VERSION_1_2 UNSIGNED_INT_2_10_10_10_REV - INT_2_10_10_10_REV = 0x8D9F - -############################################################################### - -# ARB Extension #87 -ARB_draw_indirect enum: - DRAW_INDIRECT_BUFFER = 0x8F3F - DRAW_INDIRECT_BUFFER_BINDING = 0x8F43 - -############################################################################### - -# ARB Extension #88 -ARB_gpu_shader5 enum: - GEOMETRY_SHADER_INVOCATIONS = 0x887F - MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A - MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B - MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C - FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D - use ARB_texture_multisample MAX_VERTEX_STREAMS - -############################################################################### - -# ARB Extension #89 -ARB_gpu_shader_fp64 enum: - use VERSION_1_1 DOUBLE - DOUBLE_VEC2 = 0x8FFC - DOUBLE_VEC3 = 0x8FFD - DOUBLE_VEC4 = 0x8FFE - DOUBLE_MAT2 = 0x8F46 - DOUBLE_MAT3 = 0x8F47 - DOUBLE_MAT4 = 0x8F48 - DOUBLE_MAT2x3 = 0x8F49 - DOUBLE_MAT2x4 = 0x8F4A - DOUBLE_MAT3x2 = 0x8F4B - DOUBLE_MAT3x4 = 0x8F4C - DOUBLE_MAT4x2 = 0x8F4D - DOUBLE_MAT4x3 = 0x8F4E - -############################################################################### - -# ARB Extension #90 -ARB_shader_subroutine enum: - ACTIVE_SUBROUTINES = 0x8DE5 - ACTIVE_SUBROUTINE_UNIFORMS = 0x8DE6 - ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47 - ACTIVE_SUBROUTINE_MAX_LENGTH = 0x8E48 - ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49 - MAX_SUBROUTINES = 0x8DE7 - MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8 - NUM_COMPATIBLE_SUBROUTINES = 0x8E4A - COMPATIBLE_SUBROUTINES = 0x8E4B - use ARB_uniform_buffer_object UNIFORM_SIZE - use ARB_uniform_buffer_object UNIFORM_NAME_LENGTH - -############################################################################### - -# ARB Extension #91 -ARB_tessellation_shader enum: - PATCHES = 0x000E - PATCH_VERTICES = 0x8E72 - PATCH_DEFAULT_INNER_LEVEL = 0x8E73 - PATCH_DEFAULT_OUTER_LEVEL = 0x8E74 - TESS_CONTROL_OUTPUT_VERTICES = 0x8E75 - TESS_GEN_MODE = 0x8E76 - TESS_GEN_SPACING = 0x8E77 - TESS_GEN_VERTEX_ORDER = 0x8E78 - TESS_GEN_POINT_MODE = 0x8E79 - use VERSION_1_1 TRIANGLES - use VERSION_1_1 QUADS - ISOLINES = 0x8E7A - use VERSION_1_1 EQUAL - FRACTIONAL_ODD = 0x8E7B - FRACTIONAL_EVEN = 0x8E7C - use VERSION_1_1 CCW - use VERSION_1_1 CW - MAX_PATCH_VERTICES = 0x8E7D - MAX_TESS_GEN_LEVEL = 0x8E7E - MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F - MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80 - MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81 - MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82 - MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83 - MAX_TESS_PATCH_COMPONENTS = 0x8E84 - MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85 - MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86 - MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89 - MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A - MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C - MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D - MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E - MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F - UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0 - UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1 - TESS_EVALUATION_SHADER = 0x8E87 - TESS_CONTROL_SHADER = 0x8E88 - -############################################################################### - -# ARB Extension #92 -ARB_texture_buffer_object_rgb32 enum: - use VERSION_3_0 RGB32F - use VERSION_3_0 RGB32UI - use VERSION_3_0 RGB32I - -############################################################################### - -# ARB Extension #93 -ARB_transform_feedback2 enum: - TRANSFORM_FEEDBACK = 0x8E22 - TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23 - TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24 - TRANSFORM_FEEDBACK_BINDING = 0x8E25 - -############################################################################### - -# ARB Extension #94 -ARB_transform_feedback3 enum: - MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70 - MAX_VERTEX_STREAMS = 0x8E71 - -############################################################################### - -# ARB Extension #95 -ARB_ES2_compatibility enum: - FIXED = 0x140C - IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A - IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B - LOW_FLOAT = 0x8DF0 - MEDIUM_FLOAT = 0x8DF1 - HIGH_FLOAT = 0x8DF2 - LOW_INT = 0x8DF3 - MEDIUM_INT = 0x8DF4 - HIGH_INT = 0x8DF5 - SHADER_COMPILER = 0x8DFA - NUM_SHADER_BINARY_FORMATS = 0x8DF9 - MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB - MAX_VARYING_VECTORS = 0x8DFC - MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD - -############################################################################### - -# ARB Extension #96 -ARB_get_program_binary enum: - PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257 - PROGRAM_BINARY_LENGTH = 0x8741 - NUM_PROGRAM_BINARY_FORMATS = 0x87FE - PROGRAM_BINARY_FORMATS = 0x87FF - -############################################################################### - -# ARB Extension #97 -ARB_separate_shader_objects enum: - VERTEX_SHADER_BIT = 0x00000001 - FRAGMENT_SHADER_BIT = 0x00000002 - GEOMETRY_SHADER_BIT = 0x00000004 - TESS_CONTROL_SHADER_BIT = 0x00000008 - TESS_EVALUATION_SHADER_BIT = 0x00000010 - ALL_SHADER_BITS = 0xFFFFFFFF - PROGRAM_SEPARABLE = 0x8258 - ACTIVE_PROGRAM = 0x8259 - PROGRAM_PIPELINE_BINDING = 0x825A - -############################################################################### - -# No new tokens -# ARB Extension #98 -ARB_shader_precision enum: - -############################################################################### - -# ARB Extension #99 -ARB_vertex_attrib_64bit enum: - use VERSION_3_0 RGB32I - use ARB_gpu_shader_fp64 DOUBLE_VEC2 - use ARB_gpu_shader_fp64 DOUBLE_VEC3 - use ARB_gpu_shader_fp64 DOUBLE_VEC4 - use ARB_gpu_shader_fp64 DOUBLE_MAT2 - use ARB_gpu_shader_fp64 DOUBLE_MAT3 - use ARB_gpu_shader_fp64 DOUBLE_MAT4 - use ARB_gpu_shader_fp64 DOUBLE_MAT2x3 - use ARB_gpu_shader_fp64 DOUBLE_MAT2x4 - use ARB_gpu_shader_fp64 DOUBLE_MAT3x2 - use ARB_gpu_shader_fp64 DOUBLE_MAT3x4 - use ARB_gpu_shader_fp64 DOUBLE_MAT4x2 - use ARB_gpu_shader_fp64 DOUBLE_MAT4x3 - -############################################################################### - -# ARB Extension #100 -ARB_viewport_array enum: - use VERSION_1_1 SCISSOR_BOX - use VERSION_1_1 VIEWPORT - use VERSION_1_1 DEPTH_RANGE - use VERSION_1_1 SCISSOR_TEST - MAX_VIEWPORTS = 0x825B - VIEWPORT_SUBPIXEL_BITS = 0x825C - VIEWPORT_BOUNDS_RANGE = 0x825D - LAYER_PROVOKING_VERTEX = 0x825E - VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F - UNDEFINED_VERTEX = 0x8260 - use ARB_provoking_vertex FIRST_VERTEX_CONVENTION - use ARB_provoking_vertex LAST_VERTEX_CONVENTION - use ARB_provoking_vertex PROVOKING_VERTEX - -############################################################################### - -# No new tokens -# ARB Extension #101 - GLX_ARB_create_context_robustness -# ARB Extension #102 - WGL_ARB_create_context_robustness - -############################################################################### - -# ARB Extension #103 -ARB_cl_event enum: - SYNC_CL_EVENT_ARB = 0x8240 - SYNC_CL_EVENT_COMPLETE_ARB = 0x8241 - -############################################################################### - -# ARB Extension #104 -ARB_debug_output enum: - DEBUG_OUTPUT_SYNCHRONOUS_ARB = 0x8242 - DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB = 0x8243 - DEBUG_CALLBACK_FUNCTION_ARB = 0x8244 - DEBUG_CALLBACK_USER_PARAM_ARB = 0x8245 - DEBUG_SOURCE_API_ARB = 0x8246 - DEBUG_SOURCE_WINDOW_SYSTEM_ARB = 0x8247 - DEBUG_SOURCE_SHADER_COMPILER_ARB = 0x8248 - DEBUG_SOURCE_THIRD_PARTY_ARB = 0x8249 - DEBUG_SOURCE_APPLICATION_ARB = 0x824A - DEBUG_SOURCE_OTHER_ARB = 0x824B - DEBUG_TYPE_ERROR_ARB = 0x824C - DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB = 0x824D - DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB = 0x824E - DEBUG_TYPE_PORTABILITY_ARB = 0x824F - DEBUG_TYPE_PERFORMANCE_ARB = 0x8250 - DEBUG_TYPE_OTHER_ARB = 0x8251 - MAX_DEBUG_MESSAGE_LENGTH_ARB = 0x9143 - MAX_DEBUG_LOGGED_MESSAGES_ARB = 0x9144 - DEBUG_LOGGED_MESSAGES_ARB = 0x9145 - DEBUG_SEVERITY_HIGH_ARB = 0x9146 - DEBUG_SEVERITY_MEDIUM_ARB = 0x9147 - DEBUG_SEVERITY_LOW_ARB = 0x9148 - -############################################################################### - -# ARB Extension #105 -ARB_robustness enum: - use VERSION_1_1 NO_ERROR - CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB = 0x00000004 - LOSE_CONTEXT_ON_RESET_ARB = 0x8252 - GUILTY_CONTEXT_RESET_ARB = 0x8253 - INNOCENT_CONTEXT_RESET_ARB = 0x8254 - UNKNOWN_CONTEXT_RESET_ARB = 0x8255 - RESET_NOTIFICATION_STRATEGY_ARB = 0x8256 - NO_RESET_NOTIFICATION_ARB = 0x8261 - -############################################################################### - -# No new tokens -# ARB Extension #106 -ARB_shader_stencil_export enum: - - -############################################################################### -# -# non-ARB extensions follow, in registry order -# -############################################################################### - -############################################################################### - -# Extension #1 -EXT_abgr enum: - ABGR_EXT = 0x8000 - -############################################################################### - -# Extension #2 -EXT_blend_color enum: - CONSTANT_COLOR_EXT = 0x8001 - ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002 - CONSTANT_ALPHA_EXT = 0x8003 - ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004 - BLEND_COLOR_EXT = 0x8005 # 4 F - -############################################################################### - -# Extension #3 -EXT_polygon_offset enum: - POLYGON_OFFSET_EXT = 0x8037 - POLYGON_OFFSET_FACTOR_EXT = 0x8038 - POLYGON_OFFSET_BIAS_EXT = 0x8039 # 1 F - -############################################################################### - -# Extension #4 -EXT_texture enum: - ALPHA4_EXT = 0x803B - ALPHA8_EXT = 0x803C - ALPHA12_EXT = 0x803D - ALPHA16_EXT = 0x803E - LUMINANCE4_EXT = 0x803F - LUMINANCE8_EXT = 0x8040 - LUMINANCE12_EXT = 0x8041 - LUMINANCE16_EXT = 0x8042 - LUMINANCE4_ALPHA4_EXT = 0x8043 - LUMINANCE6_ALPHA2_EXT = 0x8044 - LUMINANCE8_ALPHA8_EXT = 0x8045 - LUMINANCE12_ALPHA4_EXT = 0x8046 - LUMINANCE12_ALPHA12_EXT = 0x8047 - LUMINANCE16_ALPHA16_EXT = 0x8048 - INTENSITY_EXT = 0x8049 - INTENSITY4_EXT = 0x804A - INTENSITY8_EXT = 0x804B - INTENSITY12_EXT = 0x804C - INTENSITY16_EXT = 0x804D - RGB2_EXT = 0x804E - RGB4_EXT = 0x804F - RGB5_EXT = 0x8050 - RGB8_EXT = 0x8051 - RGB10_EXT = 0x8052 - RGB12_EXT = 0x8053 - RGB16_EXT = 0x8054 - RGBA2_EXT = 0x8055 - RGBA4_EXT = 0x8056 - RGB5_A1_EXT = 0x8057 - RGBA8_EXT = 0x8058 - RGB10_A2_EXT = 0x8059 - RGBA12_EXT = 0x805A - RGBA16_EXT = 0x805B - TEXTURE_RED_SIZE_EXT = 0x805C - TEXTURE_GREEN_SIZE_EXT = 0x805D - TEXTURE_BLUE_SIZE_EXT = 0x805E - TEXTURE_ALPHA_SIZE_EXT = 0x805F - TEXTURE_LUMINANCE_SIZE_EXT = 0x8060 - TEXTURE_INTENSITY_SIZE_EXT = 0x8061 - REPLACE_EXT = 0x8062 - PROXY_TEXTURE_1D_EXT = 0x8063 - PROXY_TEXTURE_2D_EXT = 0x8064 - TEXTURE_TOO_LARGE_EXT = 0x8065 - -############################################################################### - -# Extension #5 - skipped - -############################################################################### - -# Extension #6 -EXT_texture3D enum: - PACK_SKIP_IMAGES_EXT = 0x806B # 1 I - PACK_IMAGE_HEIGHT_EXT = 0x806C # 1 F - UNPACK_SKIP_IMAGES_EXT = 0x806D # 1 I - UNPACK_IMAGE_HEIGHT_EXT = 0x806E # 1 F - TEXTURE_3D_EXT = 0x806F # 1 I - PROXY_TEXTURE_3D_EXT = 0x8070 - TEXTURE_DEPTH_EXT = 0x8071 - TEXTURE_WRAP_R_EXT = 0x8072 - MAX_3D_TEXTURE_SIZE_EXT = 0x8073 # 1 I - -############################################################################### - -# Extension #7 -SGIS_texture_filter4 enum: - FILTER4_SGIS = 0x8146 - TEXTURE_FILTER4_SIZE_SGIS = 0x8147 - -############################################################################### - -# Extension #8 - skipped - -############################################################################### - -# No new tokens -# Extension #9 -EXT_subtexture enum: - -############################################################################### - -# No new tokens -# Extension #10 -EXT_copy_texture enum: - -############################################################################### - -# Extension #11 -EXT_histogram enum: - HISTOGRAM_EXT = 0x8024 # 1 I - PROXY_HISTOGRAM_EXT = 0x8025 - HISTOGRAM_WIDTH_EXT = 0x8026 - HISTOGRAM_FORMAT_EXT = 0x8027 - HISTOGRAM_RED_SIZE_EXT = 0x8028 - HISTOGRAM_GREEN_SIZE_EXT = 0x8029 - HISTOGRAM_BLUE_SIZE_EXT = 0x802A - HISTOGRAM_ALPHA_SIZE_EXT = 0x802B - HISTOGRAM_LUMINANCE_SIZE_EXT = 0x802C - HISTOGRAM_SINK_EXT = 0x802D - MINMAX_EXT = 0x802E # 1 I - MINMAX_FORMAT_EXT = 0x802F - MINMAX_SINK_EXT = 0x8030 - TABLE_TOO_LARGE_EXT = 0x8031 - -############################################################################### - -# Extension #12 -EXT_convolution enum: - CONVOLUTION_1D_EXT = 0x8010 # 1 I - CONVOLUTION_2D_EXT = 0x8011 # 1 I - SEPARABLE_2D_EXT = 0x8012 # 1 I - CONVOLUTION_BORDER_MODE_EXT = 0x8013 - CONVOLUTION_FILTER_SCALE_EXT = 0x8014 - CONVOLUTION_FILTER_BIAS_EXT = 0x8015 - REDUCE_EXT = 0x8016 - CONVOLUTION_FORMAT_EXT = 0x8017 - CONVOLUTION_WIDTH_EXT = 0x8018 - CONVOLUTION_HEIGHT_EXT = 0x8019 - MAX_CONVOLUTION_WIDTH_EXT = 0x801A - MAX_CONVOLUTION_HEIGHT_EXT = 0x801B - POST_CONVOLUTION_RED_SCALE_EXT = 0x801C # 1 F - POST_CONVOLUTION_GREEN_SCALE_EXT = 0x801D # 1 F - POST_CONVOLUTION_BLUE_SCALE_EXT = 0x801E # 1 F - POST_CONVOLUTION_ALPHA_SCALE_EXT = 0x801F # 1 F - POST_CONVOLUTION_RED_BIAS_EXT = 0x8020 # 1 F - POST_CONVOLUTION_GREEN_BIAS_EXT = 0x8021 # 1 F - POST_CONVOLUTION_BLUE_BIAS_EXT = 0x8022 # 1 F - POST_CONVOLUTION_ALPHA_BIAS_EXT = 0x8023 # 1 F - -############################################################################### - -# Extension #13 -SGI_color_matrix enum: - COLOR_MATRIX_SGI = 0x80B1 # 16 F - COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B2 # 1 I - MAX_COLOR_MATRIX_STACK_DEPTH_SGI = 0x80B3 # 1 I - POST_COLOR_MATRIX_RED_SCALE_SGI = 0x80B4 # 1 F - POST_COLOR_MATRIX_GREEN_SCALE_SGI = 0x80B5 # 1 F - POST_COLOR_MATRIX_BLUE_SCALE_SGI = 0x80B6 # 1 F - POST_COLOR_MATRIX_ALPHA_SCALE_SGI = 0x80B7 # 1 F - POST_COLOR_MATRIX_RED_BIAS_SGI = 0x80B8 # 1 F - POST_COLOR_MATRIX_GREEN_BIAS_SGI = 0x80B9 # 1 F - POST_COLOR_MATRIX_BLUE_BIAS_SGI = 0x80BA # 1 F - POST_COLOR_MATRIX_ALPHA_BIAS_SGI = 0x80BB # 1 F - -############################################################################### - -# Extension #14 -SGI_color_table enum: - COLOR_TABLE_SGI = 0x80D0 # 1 I - POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D1 # 1 I - POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D2 # 1 I - PROXY_COLOR_TABLE_SGI = 0x80D3 - PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI = 0x80D4 - PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI = 0x80D5 - COLOR_TABLE_SCALE_SGI = 0x80D6 - COLOR_TABLE_BIAS_SGI = 0x80D7 - COLOR_TABLE_FORMAT_SGI = 0x80D8 - COLOR_TABLE_WIDTH_SGI = 0x80D9 - COLOR_TABLE_RED_SIZE_SGI = 0x80DA - COLOR_TABLE_GREEN_SIZE_SGI = 0x80DB - COLOR_TABLE_BLUE_SIZE_SGI = 0x80DC - COLOR_TABLE_ALPHA_SIZE_SGI = 0x80DD - COLOR_TABLE_LUMINANCE_SIZE_SGI = 0x80DE - COLOR_TABLE_INTENSITY_SIZE_SGI = 0x80DF - -############################################################################### - -# Extension #15 -SGIS_pixel_texture enum: - PIXEL_TEXTURE_SGIS = 0x8353 # 1 I - PIXEL_FRAGMENT_RGB_SOURCE_SGIS = 0x8354 # 1 I - PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS = 0x8355 # 1 I - PIXEL_GROUP_COLOR_SGIS = 0x8356 # 1 I - -############################################################################### - -# Extension #15a -SGIX_pixel_texture enum: - PIXEL_TEX_GEN_SGIX = 0x8139 # 1 I - PIXEL_TEX_GEN_MODE_SGIX = 0x832B # 1 I - -############################################################################### - -# Extension #16 -SGIS_texture4D enum: - PACK_SKIP_VOLUMES_SGIS = 0x8130 # 1 I - PACK_IMAGE_DEPTH_SGIS = 0x8131 # 1 I - UNPACK_SKIP_VOLUMES_SGIS = 0x8132 # 1 I - UNPACK_IMAGE_DEPTH_SGIS = 0x8133 # 1 I - TEXTURE_4D_SGIS = 0x8134 # 1 I - PROXY_TEXTURE_4D_SGIS = 0x8135 - TEXTURE_4DSIZE_SGIS = 0x8136 - TEXTURE_WRAP_Q_SGIS = 0x8137 - MAX_4D_TEXTURE_SIZE_SGIS = 0x8138 # 1 I - TEXTURE_4D_BINDING_SGIS = 0x814F # 1 I - -############################################################################### - -# Extension #17 -SGI_texture_color_table enum: - TEXTURE_COLOR_TABLE_SGI = 0x80BC # 1 I - PROXY_TEXTURE_COLOR_TABLE_SGI = 0x80BD - -############################################################################### - -# Extension #18 -EXT_cmyka enum: - CMYK_EXT = 0x800C - CMYKA_EXT = 0x800D - PACK_CMYK_HINT_EXT = 0x800E # 1 I - UNPACK_CMYK_HINT_EXT = 0x800F # 1 I - -############################################################################### - -# Extension #19 - skipped - -############################################################################### - -# Extension #20 -EXT_texture_object enum: - TEXTURE_PRIORITY_EXT = 0x8066 - TEXTURE_RESIDENT_EXT = 0x8067 - TEXTURE_1D_BINDING_EXT = 0x8068 - TEXTURE_2D_BINDING_EXT = 0x8069 - TEXTURE_3D_BINDING_EXT = 0x806A # 1 I - -############################################################################### - -# Extension #21 -SGIS_detail_texture enum: - DETAIL_TEXTURE_2D_SGIS = 0x8095 - DETAIL_TEXTURE_2D_BINDING_SGIS = 0x8096 # 1 I - LINEAR_DETAIL_SGIS = 0x8097 - LINEAR_DETAIL_ALPHA_SGIS = 0x8098 - LINEAR_DETAIL_COLOR_SGIS = 0x8099 - DETAIL_TEXTURE_LEVEL_SGIS = 0x809A - DETAIL_TEXTURE_MODE_SGIS = 0x809B - DETAIL_TEXTURE_FUNC_POINTS_SGIS = 0x809C - -############################################################################### - -# Extension #22 -SGIS_sharpen_texture enum: - LINEAR_SHARPEN_SGIS = 0x80AD - LINEAR_SHARPEN_ALPHA_SGIS = 0x80AE - LINEAR_SHARPEN_COLOR_SGIS = 0x80AF - SHARPEN_TEXTURE_FUNC_POINTS_SGIS = 0x80B0 - -############################################################################### - -# Extension #23 -EXT_packed_pixels enum: - UNSIGNED_BYTE_3_3_2_EXT = 0x8032 - UNSIGNED_SHORT_4_4_4_4_EXT = 0x8033 - UNSIGNED_SHORT_5_5_5_1_EXT = 0x8034 - UNSIGNED_INT_8_8_8_8_EXT = 0x8035 - UNSIGNED_INT_10_10_10_2_EXT = 0x8036 - -############################################################################### - -# Extension #24 -SGIS_texture_lod enum: - TEXTURE_MIN_LOD_SGIS = 0x813A - TEXTURE_MAX_LOD_SGIS = 0x813B - TEXTURE_BASE_LEVEL_SGIS = 0x813C - TEXTURE_MAX_LEVEL_SGIS = 0x813D - -############################################################################### - -# Extension #25 -SGIS_multisample enum: - MULTISAMPLE_SGIS = 0x809D # 1 I - SAMPLE_ALPHA_TO_MASK_SGIS = 0x809E # 1 I - SAMPLE_ALPHA_TO_ONE_SGIS = 0x809F # 1 I - SAMPLE_MASK_SGIS = 0x80A0 # 1 I - 1PASS_SGIS = 0x80A1 - 2PASS_0_SGIS = 0x80A2 - 2PASS_1_SGIS = 0x80A3 - 4PASS_0_SGIS = 0x80A4 - 4PASS_1_SGIS = 0x80A5 - 4PASS_2_SGIS = 0x80A6 - 4PASS_3_SGIS = 0x80A7 - SAMPLE_BUFFERS_SGIS = 0x80A8 # 1 I - SAMPLES_SGIS = 0x80A9 # 1 I - SAMPLE_MASK_VALUE_SGIS = 0x80AA # 1 F - SAMPLE_MASK_INVERT_SGIS = 0x80AB # 1 I - SAMPLE_PATTERN_SGIS = 0x80AC # 1 I - -############################################################################### - -# Extension #26 - no specification? -# SGIS_premultiply_blend enum: - -############################################################################## - -# Extension #27 -# Diamond ships an otherwise identical IBM_rescale_normal extension; -# Dan Brokenshire says this is deprecated and should not be advertised. -EXT_rescale_normal enum: - RESCALE_NORMAL_EXT = 0x803A # 1 I - -############################################################################### - -# Extension #28 - GLX_EXT_visual_info - -############################################################################### - -# Extension #29 - skipped - -############################################################################### - -# Extension #30 -EXT_vertex_array enum: - VERTEX_ARRAY_EXT = 0x8074 - NORMAL_ARRAY_EXT = 0x8075 - COLOR_ARRAY_EXT = 0x8076 - INDEX_ARRAY_EXT = 0x8077 - TEXTURE_COORD_ARRAY_EXT = 0x8078 - EDGE_FLAG_ARRAY_EXT = 0x8079 - VERTEX_ARRAY_SIZE_EXT = 0x807A - VERTEX_ARRAY_TYPE_EXT = 0x807B - VERTEX_ARRAY_STRIDE_EXT = 0x807C - VERTEX_ARRAY_COUNT_EXT = 0x807D # 1 I - NORMAL_ARRAY_TYPE_EXT = 0x807E - NORMAL_ARRAY_STRIDE_EXT = 0x807F - NORMAL_ARRAY_COUNT_EXT = 0x8080 # 1 I - COLOR_ARRAY_SIZE_EXT = 0x8081 - COLOR_ARRAY_TYPE_EXT = 0x8082 - COLOR_ARRAY_STRIDE_EXT = 0x8083 - COLOR_ARRAY_COUNT_EXT = 0x8084 # 1 I - INDEX_ARRAY_TYPE_EXT = 0x8085 - INDEX_ARRAY_STRIDE_EXT = 0x8086 - INDEX_ARRAY_COUNT_EXT = 0x8087 # 1 I - TEXTURE_COORD_ARRAY_SIZE_EXT = 0x8088 - TEXTURE_COORD_ARRAY_TYPE_EXT = 0x8089 - TEXTURE_COORD_ARRAY_STRIDE_EXT = 0x808A - TEXTURE_COORD_ARRAY_COUNT_EXT = 0x808B # 1 I - EDGE_FLAG_ARRAY_STRIDE_EXT = 0x808C - EDGE_FLAG_ARRAY_COUNT_EXT = 0x808D # 1 I - VERTEX_ARRAY_POINTER_EXT = 0x808E - NORMAL_ARRAY_POINTER_EXT = 0x808F - COLOR_ARRAY_POINTER_EXT = 0x8090 - INDEX_ARRAY_POINTER_EXT = 0x8091 - TEXTURE_COORD_ARRAY_POINTER_EXT = 0x8092 - EDGE_FLAG_ARRAY_POINTER_EXT = 0x8093 - -############################################################################### - -# Extension #31 -EXT_misc_attribute enum: -# MISC_BIT = 0x???? - -############################################################################### - -# Extension #32 -SGIS_generate_mipmap enum: - GENERATE_MIPMAP_SGIS = 0x8191 - GENERATE_MIPMAP_HINT_SGIS = 0x8192 # 1 I - -############################################################################### - -# Extension #33 -SGIX_clipmap enum: - LINEAR_CLIPMAP_LINEAR_SGIX = 0x8170 - TEXTURE_CLIPMAP_CENTER_SGIX = 0x8171 - TEXTURE_CLIPMAP_FRAME_SGIX = 0x8172 - TEXTURE_CLIPMAP_OFFSET_SGIX = 0x8173 - TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8174 - TEXTURE_CLIPMAP_LOD_OFFSET_SGIX = 0x8175 - TEXTURE_CLIPMAP_DEPTH_SGIX = 0x8176 - MAX_CLIPMAP_DEPTH_SGIX = 0x8177 # 1 I - MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX = 0x8178 # 1 I - NEAREST_CLIPMAP_NEAREST_SGIX = 0x844D - NEAREST_CLIPMAP_LINEAR_SGIX = 0x844E - LINEAR_CLIPMAP_NEAREST_SGIX = 0x844F - -############################################################################### - -# Extension #34 -SGIX_shadow enum: - TEXTURE_COMPARE_SGIX = 0x819A - TEXTURE_COMPARE_OPERATOR_SGIX = 0x819B - TEXTURE_LEQUAL_R_SGIX = 0x819C - TEXTURE_GEQUAL_R_SGIX = 0x819D - -############################################################################### - -# Extension #35 -SGIS_texture_edge_clamp enum: - CLAMP_TO_EDGE_SGIS = 0x812F - -############################################################################### - -# Extension #36 -# Promoted to ARB_texture_border_clamp -SGIS_texture_border_clamp enum: - CLAMP_TO_BORDER_SGIS = 0x812D - -############################################################################### - -# Extension #37 -EXT_blend_minmax enum: - FUNC_ADD_EXT = 0x8006 - MIN_EXT = 0x8007 - MAX_EXT = 0x8008 - BLEND_EQUATION_EXT = 0x8009 # 1 I - -############################################################################### - -# Extension #38 -EXT_blend_subtract enum: - FUNC_SUBTRACT_EXT = 0x800A - FUNC_REVERSE_SUBTRACT_EXT = 0x800B - -############################################################################### - -# No new tokens -# Extension #39 -EXT_blend_logic_op enum: - -############################################################################### - -# Extension #40 - GLX_SGI_swap_control -# Extension #41 - GLX_SGI_video_sync -# Extension #42 - GLX_SGI_make_current_read -# Extension #43 - GLX_SGIX_video_source -# Extension #44 - GLX_EXT_visual_rating - -############################################################################### - -# Extension #45 -SGIX_interlace enum: - INTERLACE_SGIX = 0x8094 # 1 I - -############################################################################### - -# Extension #46 -SGIX_pixel_tiles enum: - PIXEL_TILE_BEST_ALIGNMENT_SGIX = 0x813E # 1 I - PIXEL_TILE_CACHE_INCREMENT_SGIX = 0x813F # 1 I - PIXEL_TILE_WIDTH_SGIX = 0x8140 # 1 I - PIXEL_TILE_HEIGHT_SGIX = 0x8141 # 1 I - PIXEL_TILE_GRID_WIDTH_SGIX = 0x8142 # 1 I - PIXEL_TILE_GRID_HEIGHT_SGIX = 0x8143 # 1 I - PIXEL_TILE_GRID_DEPTH_SGIX = 0x8144 # 1 I - PIXEL_TILE_CACHE_SIZE_SGIX = 0x8145 # 1 I - -############################################################################### - -# Extension #47 - GLX_EXT_import_context - -############################################################################### - -# Extension #48 - skipped - -############################################################################### - -# Extension #49 - GLX_SGIX_fbconfig -# Extension #50 - GLX_SGIX_pbuffer - -############################################################################### - -# Extension #51 -SGIS_texture_select enum: - DUAL_ALPHA4_SGIS = 0x8110 - DUAL_ALPHA8_SGIS = 0x8111 - DUAL_ALPHA12_SGIS = 0x8112 - DUAL_ALPHA16_SGIS = 0x8113 - DUAL_LUMINANCE4_SGIS = 0x8114 - DUAL_LUMINANCE8_SGIS = 0x8115 - DUAL_LUMINANCE12_SGIS = 0x8116 - DUAL_LUMINANCE16_SGIS = 0x8117 - DUAL_INTENSITY4_SGIS = 0x8118 - DUAL_INTENSITY8_SGIS = 0x8119 - DUAL_INTENSITY12_SGIS = 0x811A - DUAL_INTENSITY16_SGIS = 0x811B - DUAL_LUMINANCE_ALPHA4_SGIS = 0x811C - DUAL_LUMINANCE_ALPHA8_SGIS = 0x811D - QUAD_ALPHA4_SGIS = 0x811E - QUAD_ALPHA8_SGIS = 0x811F - QUAD_LUMINANCE4_SGIS = 0x8120 - QUAD_LUMINANCE8_SGIS = 0x8121 - QUAD_INTENSITY4_SGIS = 0x8122 - QUAD_INTENSITY8_SGIS = 0x8123 - DUAL_TEXTURE_SELECT_SGIS = 0x8124 - QUAD_TEXTURE_SELECT_SGIS = 0x8125 - -############################################################################### - -# Extension #52 -SGIX_sprite enum: - SPRITE_SGIX = 0x8148 # 1 I - SPRITE_MODE_SGIX = 0x8149 # 1 I - SPRITE_AXIS_SGIX = 0x814A # 3 F - SPRITE_TRANSLATION_SGIX = 0x814B # 3 F - SPRITE_AXIAL_SGIX = 0x814C - SPRITE_OBJECT_ALIGNED_SGIX = 0x814D - SPRITE_EYE_ALIGNED_SGIX = 0x814E - -############################################################################### - -# Extension #53 -SGIX_texture_multi_buffer enum: - TEXTURE_MULTI_BUFFER_HINT_SGIX = 0x812E - -############################################################################### - -# Extension #54 -# EXT form promoted from SGIS form; both are included -EXT_point_parameters enum: - POINT_SIZE_MIN_EXT = 0x8126 # 1 F - POINT_SIZE_MAX_EXT = 0x8127 # 1 F - POINT_FADE_THRESHOLD_SIZE_EXT = 0x8128 # 1 F - DISTANCE_ATTENUATION_EXT = 0x8129 # 3 F - -SGIS_point_parameters enum: - POINT_SIZE_MIN_SGIS = 0x8126 # 1 F - POINT_SIZE_MAX_SGIS = 0x8127 # 1 F - POINT_FADE_THRESHOLD_SIZE_SGIS = 0x8128 # 1 F - DISTANCE_ATTENUATION_SGIS = 0x8129 # 3 F - -############################################################################### - -# Extension #55 -SGIX_instruments enum: - INSTRUMENT_BUFFER_POINTER_SGIX = 0x8180 - INSTRUMENT_MEASUREMENTS_SGIX = 0x8181 # 1 I - -############################################################################### - -# Extension #56 -SGIX_texture_scale_bias enum: - POST_TEXTURE_FILTER_BIAS_SGIX = 0x8179 - POST_TEXTURE_FILTER_SCALE_SGIX = 0x817A - POST_TEXTURE_FILTER_BIAS_RANGE_SGIX = 0x817B # 2 F - POST_TEXTURE_FILTER_SCALE_RANGE_SGIX = 0x817C # 2 F - -############################################################################### - -# Extension #57 -SGIX_framezoom enum: - FRAMEZOOM_SGIX = 0x818B # 1 I - FRAMEZOOM_FACTOR_SGIX = 0x818C # 1 I - MAX_FRAMEZOOM_FACTOR_SGIX = 0x818D # 1 I - -############################################################################### - -# No new tokens -# Extension #58 -SGIX_tag_sample_buffer enum: - -############################################################################### - -# Extension #59 -FfdMaskSGIX enum: - TEXTURE_DEFORMATION_BIT_SGIX = 0x00000001 - GEOMETRY_DEFORMATION_BIT_SGIX = 0x00000002 -SGIX_polynomial_ffd enum: - GEOMETRY_DEFORMATION_SGIX = 0x8194 - TEXTURE_DEFORMATION_SGIX = 0x8195 - DEFORMATIONS_MASK_SGIX = 0x8196 # 1 I - MAX_DEFORMATION_ORDER_SGIX = 0x8197 - -############################################################################### - -# Extension #60 -SGIX_reference_plane enum: - REFERENCE_PLANE_SGIX = 0x817D # 1 I - REFERENCE_PLANE_EQUATION_SGIX = 0x817E # 4 F - -############################################################################### - -# No new tokens -# Extension #61 -SGIX_flush_raster enum: - -############################################################################### - -# Extension #62 - GLX_SGIX_cushion - -############################################################################### - -# Extension #63 -SGIX_depth_texture enum: - DEPTH_COMPONENT16_SGIX = 0x81A5 - DEPTH_COMPONENT24_SGIX = 0x81A6 - DEPTH_COMPONENT32_SGIX = 0x81A7 - -############################################################################### - -# Extension #64 -SGIS_fog_function enum: - FOG_FUNC_SGIS = 0x812A - FOG_FUNC_POINTS_SGIS = 0x812B # 1 I - MAX_FOG_FUNC_POINTS_SGIS = 0x812C # 1 I - -############################################################################### - -# Extension #65 -SGIX_fog_offset enum: - FOG_OFFSET_SGIX = 0x8198 # 1 I - FOG_OFFSET_VALUE_SGIX = 0x8199 # 4 F - -############################################################################### - -# Extension #66 -HP_image_transform enum: - IMAGE_SCALE_X_HP = 0x8155 - IMAGE_SCALE_Y_HP = 0x8156 - IMAGE_TRANSLATE_X_HP = 0x8157 - IMAGE_TRANSLATE_Y_HP = 0x8158 - IMAGE_ROTATE_ANGLE_HP = 0x8159 - IMAGE_ROTATE_ORIGIN_X_HP = 0x815A - IMAGE_ROTATE_ORIGIN_Y_HP = 0x815B - IMAGE_MAG_FILTER_HP = 0x815C - IMAGE_MIN_FILTER_HP = 0x815D - IMAGE_CUBIC_WEIGHT_HP = 0x815E - CUBIC_HP = 0x815F - AVERAGE_HP = 0x8160 - IMAGE_TRANSFORM_2D_HP = 0x8161 - POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8162 - PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8163 - -############################################################################### - -# Extension #67 -HP_convolution_border_modes enum: - IGNORE_BORDER_HP = 0x8150 - CONSTANT_BORDER_HP = 0x8151 - REPLICATE_BORDER_HP = 0x8153 - CONVOLUTION_BORDER_COLOR_HP = 0x8154 - -############################################################################### - -# Extension #68 -# (Unknown token values???) -INGR_palette_buffer enum: - -############################################################################### - -# Extension #69 -SGIX_texture_add_env enum: - TEXTURE_ENV_BIAS_SGIX = 0x80BE - -############################################################################### - -# Extension #70 - skipped -# Extension #71 - skipped -# Extension #72 - skipped -# Extension #73 - skipped - -############################################################################### - -# No new tokens -# Extension #74 -EXT_color_subtable enum: - -############################################################################### - -# Extension #75 - GLU_EXT_object_space_tess - -############################################################################### - -# Extension #76 -PGI_vertex_hints enum: - VERTEX_DATA_HINT_PGI = 0x1A22A - VERTEX_CONSISTENT_HINT_PGI = 0x1A22B - MATERIAL_SIDE_HINT_PGI = 0x1A22C - MAX_VERTEX_HINT_PGI = 0x1A22D - COLOR3_BIT_PGI = 0x00010000 - COLOR4_BIT_PGI = 0x00020000 - EDGEFLAG_BIT_PGI = 0x00040000 - INDEX_BIT_PGI = 0x00080000 - MAT_AMBIENT_BIT_PGI = 0x00100000 - MAT_AMBIENT_AND_DIFFUSE_BIT_PGI = 0x00200000 - MAT_DIFFUSE_BIT_PGI = 0x00400000 - MAT_EMISSION_BIT_PGI = 0x00800000 - MAT_COLOR_INDEXES_BIT_PGI = 0x01000000 - MAT_SHININESS_BIT_PGI = 0x02000000 - MAT_SPECULAR_BIT_PGI = 0x04000000 - NORMAL_BIT_PGI = 0x08000000 - TEXCOORD1_BIT_PGI = 0x10000000 - TEXCOORD2_BIT_PGI = 0x20000000 - TEXCOORD3_BIT_PGI = 0x40000000 - TEXCOORD4_BIT_PGI = 0x80000000 - VERTEX23_BIT_PGI = 0x00000004 - VERTEX4_BIT_PGI = 0x00000008 - -############################################################################### - -# Extension #77 -PGI_misc_hints enum: - PREFER_DOUBLEBUFFER_HINT_PGI = 0x1A1F8 - CONSERVE_MEMORY_HINT_PGI = 0x1A1FD - RECLAIM_MEMORY_HINT_PGI = 0x1A1FE - NATIVE_GRAPHICS_HANDLE_PGI = 0x1A202 - NATIVE_GRAPHICS_BEGIN_HINT_PGI = 0x1A203 - NATIVE_GRAPHICS_END_HINT_PGI = 0x1A204 - ALWAYS_FAST_HINT_PGI = 0x1A20C - ALWAYS_SOFT_HINT_PGI = 0x1A20D - ALLOW_DRAW_OBJ_HINT_PGI = 0x1A20E - ALLOW_DRAW_WIN_HINT_PGI = 0x1A20F - ALLOW_DRAW_FRG_HINT_PGI = 0x1A210 - ALLOW_DRAW_MEM_HINT_PGI = 0x1A211 - STRICT_DEPTHFUNC_HINT_PGI = 0x1A216 - STRICT_LIGHTING_HINT_PGI = 0x1A217 - STRICT_SCISSOR_HINT_PGI = 0x1A218 - FULL_STIPPLE_HINT_PGI = 0x1A219 - CLIP_NEAR_HINT_PGI = 0x1A220 - CLIP_FAR_HINT_PGI = 0x1A221 - WIDE_LINE_HINT_PGI = 0x1A222 - BACK_NORMALS_HINT_PGI = 0x1A223 - -############################################################################### - -# Extension #78 -EXT_paletted_texture enum: - COLOR_INDEX1_EXT = 0x80E2 - COLOR_INDEX2_EXT = 0x80E3 - COLOR_INDEX4_EXT = 0x80E4 - COLOR_INDEX8_EXT = 0x80E5 - COLOR_INDEX12_EXT = 0x80E6 - COLOR_INDEX16_EXT = 0x80E7 - TEXTURE_INDEX_SIZE_EXT = 0x80ED - -############################################################################### - -# Extension #79 -EXT_clip_volume_hint enum: - CLIP_VOLUME_CLIPPING_HINT_EXT = 0x80F0 - -############################################################################### - -# Extension #80 -SGIX_list_priority enum: - LIST_PRIORITY_SGIX = 0x8182 - -############################################################################### - -# Extension #81 -SGIX_ir_instrument1 enum: - IR_INSTRUMENT1_SGIX = 0x817F # 1 I - -############################################################################### - -# Extension #82 -SGIX_calligraphic_fragment enum: - CALLIGRAPHIC_FRAGMENT_SGIX = 0x8183 # 1 I - -############################################################################### - -# Extension #83 - GLX_SGIX_video_resize - -############################################################################### - -# Extension #84 -SGIX_texture_lod_bias enum: - TEXTURE_LOD_BIAS_S_SGIX = 0x818E - TEXTURE_LOD_BIAS_T_SGIX = 0x818F - TEXTURE_LOD_BIAS_R_SGIX = 0x8190 - -############################################################################### - -# Extension #85 - skipped - -############################################################################### - -# Extension #86 - GLX_SGIX_dmbuffer - -############################################################################### - -# Extension #87 - skipped -# Extension #88 - skipped -# Extension #89 - skipped - -############################################################################### - -# Extension #90 -SGIX_shadow_ambient enum: - SHADOW_AMBIENT_SGIX = 0x80BF - -############################################################################### - -# Extension #91 - GLX_SGIX_swap_group -# Extension #92 - GLX_SGIX_swap_barrier - -############################################################################### - -# No new tokens -# Extension #93 -EXT_index_texture enum: - -############################################################################### - -# Extension #94 -# Promoted from SGI? -EXT_index_material enum: - INDEX_MATERIAL_EXT = 0x81B8 - INDEX_MATERIAL_PARAMETER_EXT = 0x81B9 - INDEX_MATERIAL_FACE_EXT = 0x81BA - -############################################################################### - -# Extension #95 -# Promoted from SGI? -EXT_index_func enum: - INDEX_TEST_EXT = 0x81B5 - INDEX_TEST_FUNC_EXT = 0x81B6 - INDEX_TEST_REF_EXT = 0x81B7 - -############################################################################### - -# Extension #96 -# Promoted from SGI? -EXT_index_array_formats enum: - IUI_V2F_EXT = 0x81AD - IUI_V3F_EXT = 0x81AE - IUI_N3F_V2F_EXT = 0x81AF - IUI_N3F_V3F_EXT = 0x81B0 - T2F_IUI_V2F_EXT = 0x81B1 - T2F_IUI_V3F_EXT = 0x81B2 - T2F_IUI_N3F_V2F_EXT = 0x81B3 - T2F_IUI_N3F_V3F_EXT = 0x81B4 - -############################################################################### - -# Extension #97 -# Promoted from SGI? -EXT_compiled_vertex_array enum: - ARRAY_ELEMENT_LOCK_FIRST_EXT = 0x81A8 - ARRAY_ELEMENT_LOCK_COUNT_EXT = 0x81A9 - -############################################################################### - -# Extension #98 -# Promoted from SGI? -EXT_cull_vertex enum: - CULL_VERTEX_EXT = 0x81AA - CULL_VERTEX_EYE_POSITION_EXT = 0x81AB - CULL_VERTEX_OBJECT_POSITION_EXT = 0x81AC - -############################################################################### - -# Extension #99 - skipped - -############################################################################### - -# Extension #100 - GLU_EXT_nurbs_tessellator - -############################################################################### - -# Extension #101 -SGIX_ycrcb enum: - YCRCB_422_SGIX = 0x81BB - YCRCB_444_SGIX = 0x81BC - -############################################################################### - -# Extension #102 -SGIX_fragment_lighting enum: - FRAGMENT_LIGHTING_SGIX = 0x8400 # 1 I - FRAGMENT_COLOR_MATERIAL_SGIX = 0x8401 # 1 I - FRAGMENT_COLOR_MATERIAL_FACE_SGIX = 0x8402 # 1 I - FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX = 0x8403 # 1 I - MAX_FRAGMENT_LIGHTS_SGIX = 0x8404 # 1 I - MAX_ACTIVE_LIGHTS_SGIX = 0x8405 # 1 I - CURRENT_RASTER_NORMAL_SGIX = 0x8406 # 1 I - LIGHT_ENV_MODE_SGIX = 0x8407 # 1 I - FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX = 0x8408 # 1 I - FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX = 0x8409 # 1 I - FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX = 0x840A # 4 F - FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX = 0x840B # 1 I - FRAGMENT_LIGHT0_SGIX = 0x840C # 1 I - FRAGMENT_LIGHT1_SGIX = 0x840D - FRAGMENT_LIGHT2_SGIX = 0x840E - FRAGMENT_LIGHT3_SGIX = 0x840F - FRAGMENT_LIGHT4_SGIX = 0x8410 - FRAGMENT_LIGHT5_SGIX = 0x8411 - FRAGMENT_LIGHT6_SGIX = 0x8412 - FRAGMENT_LIGHT7_SGIX = 0x8413 - -############################################################################### - -# Extension #103 - skipped -# Extension #104 - skipped -# Extension #105 - skipped -# Extension #106 - skipped -# Extension #107 - skipped -# Extension #108 - skipped -# Extension #109 - skipped - -############################################################################### - -# Extension #110 -IBM_rasterpos_clip enum: - RASTER_POSITION_UNCLIPPED_IBM = 0x19262 - -############################################################################### - -# Extension #111 -HP_texture_lighting enum: - TEXTURE_LIGHTING_MODE_HP = 0x8167 - TEXTURE_POST_SPECULAR_HP = 0x8168 - TEXTURE_PRE_SPECULAR_HP = 0x8169 - -############################################################################### - -# Extension #112 -EXT_draw_range_elements enum: - MAX_ELEMENTS_VERTICES_EXT = 0x80E8 - MAX_ELEMENTS_INDICES_EXT = 0x80E9 - -############################################################################### - -# Extension #113 -WIN_phong_shading enum: - PHONG_WIN = 0x80EA - PHONG_HINT_WIN = 0x80EB - -############################################################################### - -# Extension #114 -WIN_specular_fog enum: - FOG_SPECULAR_TEXTURE_WIN = 0x80EC - -############################################################################### - -# Extension #115 - skipped -# Extension #116 - skipped - -############################################################################### - -# Extension #117 -EXT_light_texture enum: - FRAGMENT_MATERIAL_EXT = 0x8349 - FRAGMENT_NORMAL_EXT = 0x834A - FRAGMENT_COLOR_EXT = 0x834C - ATTENUATION_EXT = 0x834D - SHADOW_ATTENUATION_EXT = 0x834E - TEXTURE_APPLICATION_MODE_EXT = 0x834F # 1 I - TEXTURE_LIGHT_EXT = 0x8350 # 1 I - TEXTURE_MATERIAL_FACE_EXT = 0x8351 # 1 I - TEXTURE_MATERIAL_PARAMETER_EXT = 0x8352 # 1 I - use EXT_fog_coord FRAGMENT_DEPTH_EXT - -############################################################################### - -# Extension #118 - skipped - -############################################################################### - -# Extension #119 -SGIX_blend_alpha_minmax enum: - ALPHA_MIN_SGIX = 0x8320 - ALPHA_MAX_SGIX = 0x8321 - -############################################################################### - -# Extension #120 - skipped -# Extension #121 - skipped -# Extension #122 - skipped -# Extension #123 - skipped -# Extension #124 - skipped -# Extension #125 - skipped - -############################################################################### - -# Extension #126 -SGIX_impact_pixel_texture enum: - PIXEL_TEX_GEN_Q_CEILING_SGIX = 0x8184 - PIXEL_TEX_GEN_Q_ROUND_SGIX = 0x8185 - PIXEL_TEX_GEN_Q_FLOOR_SGIX = 0x8186 - PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX = 0x8187 - PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX = 0x8188 - PIXEL_TEX_GEN_ALPHA_LS_SGIX = 0x8189 - PIXEL_TEX_GEN_ALPHA_MS_SGIX = 0x818A - -############################################################################### - -# Extension #127 - skipped -# Extension #128 - skipped - -############################################################################### - -# Extension #129 -EXT_bgra enum: - BGR_EXT = 0x80E0 - BGRA_EXT = 0x80E1 - -############################################################################### - -# Extension #130 - skipped -# Extension #131 - skipped - -############################################################################### - -# Extension #132 -SGIX_async enum: - ASYNC_MARKER_SGIX = 0x8329 - -############################################################################### - -# Extension #133 -SGIX_async_pixel enum: - ASYNC_TEX_IMAGE_SGIX = 0x835C - ASYNC_DRAW_PIXELS_SGIX = 0x835D - ASYNC_READ_PIXELS_SGIX = 0x835E - MAX_ASYNC_TEX_IMAGE_SGIX = 0x835F - MAX_ASYNC_DRAW_PIXELS_SGIX = 0x8360 - MAX_ASYNC_READ_PIXELS_SGIX = 0x8361 - -############################################################################### - -# Extension #134 -SGIX_async_histogram enum: - ASYNC_HISTOGRAM_SGIX = 0x832C - MAX_ASYNC_HISTOGRAM_SGIX = 0x832D - -############################################################################### - -# Intel has not implemented this; enums never assigned -# Extension #135 -INTEL_texture_scissor enum: -# TEXTURE_SCISSOR_INTEL = 0x???? -# TEXTURE_SCISSOR_INTEL = 0x???? -# TEXTURE_SCISSOR_FUNC_INTEL = 0x???? -# TEXTURE_SCISSOR_S_INTEL = 0x???? -# TEXTURE_SCISSOR_T_INTEL = 0x???? -# TEXTURE_SCISSOR_R_INTEL = 0x???? - -############################################################################### - -# Extension #136 -INTEL_parallel_arrays enum: - PARALLEL_ARRAYS_INTEL = 0x83F4 - VERTEX_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F5 - NORMAL_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F6 - COLOR_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F7 - TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL = 0x83F8 - -############################################################################### - -# Extension #137 -HP_occlusion_test enum: - OCCLUSION_TEST_HP = 0x8165 - OCCLUSION_TEST_RESULT_HP = 0x8166 - -############################################################################### - -# Extension #138 -EXT_pixel_transform enum: - PIXEL_TRANSFORM_2D_EXT = 0x8330 - PIXEL_MAG_FILTER_EXT = 0x8331 - PIXEL_MIN_FILTER_EXT = 0x8332 - PIXEL_CUBIC_WEIGHT_EXT = 0x8333 - CUBIC_EXT = 0x8334 - AVERAGE_EXT = 0x8335 - PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8336 - MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT = 0x8337 - PIXEL_TRANSFORM_2D_MATRIX_EXT = 0x8338 - -############################################################################### - -# Unknown enum values -# Extension #139 -EXT_pixel_transform_color_table enum: - -# PIXEL_TRANSFORM_COLOR_TABLE_EXT -# PROXY_PIXEL_TRANSFORM_COLOR_TABLE_EXT - -############################################################################### - -# Extension #140 - skipped - -############################################################################### - -# Extension #141 -EXT_shared_texture_palette enum: - SHARED_TEXTURE_PALETTE_EXT = 0x81FB - -############################################################################### - -# Extension #142 - GLX_SGIS_blended_overlay - -############################################################################### - -# Extension #143 - SGIS_shared_multisample -# MULTISAMPLE_SUB_RECT_POSITION_SGIS = -# MULTISAMPLE_SUB_RECT_DIMS_SGIS = - -############################################################################### - -# Extension #144 -EXT_separate_specular_color enum: - LIGHT_MODEL_COLOR_CONTROL_EXT = 0x81F8 - SINGLE_COLOR_EXT = 0x81F9 - SEPARATE_SPECULAR_COLOR_EXT = 0x81FA - -############################################################################### - -# Extension #145 -EXT_secondary_color enum: - COLOR_SUM_EXT = 0x8458 # 1 I - CURRENT_SECONDARY_COLOR_EXT = 0x8459 # 3 F - SECONDARY_COLOR_ARRAY_SIZE_EXT = 0x845A # 1 I - SECONDARY_COLOR_ARRAY_TYPE_EXT = 0x845B # 1 I - SECONDARY_COLOR_ARRAY_STRIDE_EXT = 0x845C # 1 I - SECONDARY_COLOR_ARRAY_POINTER_EXT = 0x845D - SECONDARY_COLOR_ARRAY_EXT = 0x845E # 1 I - -############################################################################### - -# Dead extension - EXT_texture_env_combine was finished instead -# Extension #146 -#EXT_texture_env enum: - -############################################################################### - -# Extension #147 -EXT_texture_perturb_normal enum: - PERTURB_EXT = 0x85AE - TEXTURE_NORMAL_EXT = 0x85AF - -############################################################################### - -# No new tokens -# Extension #148 -# Diamond ships an otherwise identical IBM_multi_draw_arrays extension; -# Dan Brokenshire says this is deprecated and should not be advertised. -EXT_multi_draw_arrays enum: - -############################################################################### - -# Extension #149 -EXT_fog_coord enum: - FOG_COORDINATE_SOURCE_EXT = 0x8450 # 1 I - FOG_COORDINATE_EXT = 0x8451 - FRAGMENT_DEPTH_EXT = 0x8452 - CURRENT_FOG_COORDINATE_EXT = 0x8453 # 1 F - FOG_COORDINATE_ARRAY_TYPE_EXT = 0x8454 # 1 I - FOG_COORDINATE_ARRAY_STRIDE_EXT = 0x8455 # 1 I - FOG_COORDINATE_ARRAY_POINTER_EXT = 0x8456 - FOG_COORDINATE_ARRAY_EXT = 0x8457 # 1 I - -############################################################################### - -# Extension #150 - skipped -# Extension #151 - skipped -# Extension #152 - skipped -# Extension #153 - skipped -# Extension #154 - skipped - -############################################################################### - -# Extension #155 -REND_screen_coordinates enum: - SCREEN_COORDINATES_REND = 0x8490 - INVERTED_SCREEN_W_REND = 0x8491 - -############################################################################### - -# Extension #156 -EXT_coordinate_frame enum: - TANGENT_ARRAY_EXT = 0x8439 - BINORMAL_ARRAY_EXT = 0x843A - CURRENT_TANGENT_EXT = 0x843B - CURRENT_BINORMAL_EXT = 0x843C - TANGENT_ARRAY_TYPE_EXT = 0x843E - TANGENT_ARRAY_STRIDE_EXT = 0x843F - BINORMAL_ARRAY_TYPE_EXT = 0x8440 - BINORMAL_ARRAY_STRIDE_EXT = 0x8441 - TANGENT_ARRAY_POINTER_EXT = 0x8442 - BINORMAL_ARRAY_POINTER_EXT = 0x8443 - MAP1_TANGENT_EXT = 0x8444 - MAP2_TANGENT_EXT = 0x8445 - MAP1_BINORMAL_EXT = 0x8446 - MAP2_BINORMAL_EXT = 0x8447 - -############################################################################### - -# Extension #157 - skipped - -############################################################################### - -# Extension #158 -EXT_texture_env_combine enum: - COMBINE_EXT = 0x8570 - COMBINE_RGB_EXT = 0x8571 - COMBINE_ALPHA_EXT = 0x8572 - RGB_SCALE_EXT = 0x8573 - ADD_SIGNED_EXT = 0x8574 - INTERPOLATE_EXT = 0x8575 - CONSTANT_EXT = 0x8576 - PRIMARY_COLOR_EXT = 0x8577 - PREVIOUS_EXT = 0x8578 - SOURCE0_RGB_EXT = 0x8580 - SOURCE1_RGB_EXT = 0x8581 - SOURCE2_RGB_EXT = 0x8582 - SOURCE0_ALPHA_EXT = 0x8588 - SOURCE1_ALPHA_EXT = 0x8589 - SOURCE2_ALPHA_EXT = 0x858A - OPERAND0_RGB_EXT = 0x8590 - OPERAND1_RGB_EXT = 0x8591 - OPERAND2_RGB_EXT = 0x8592 - OPERAND0_ALPHA_EXT = 0x8598 - OPERAND1_ALPHA_EXT = 0x8599 - OPERAND2_ALPHA_EXT = 0x859A - -############################################################################### - -# Extension #159 -APPLE_specular_vector enum: - LIGHT_MODEL_SPECULAR_VECTOR_APPLE = 0x85B0 - -############################################################################### - -# Extension #160 -APPLE_transform_hint enum: - TRANSFORM_HINT_APPLE = 0x85B1 - -############################################################################### - -# Extension #161 -SGIX_fog_scale enum: - FOG_SCALE_SGIX = 0x81FC - FOG_SCALE_VALUE_SGIX = 0x81FD - -############################################################################### - -# Extension #162 - skipped - -############################################################################### - -# Extension #163 -SUNX_constant_data enum: - UNPACK_CONSTANT_DATA_SUNX = 0x81D5 - TEXTURE_CONSTANT_DATA_SUNX = 0x81D6 - -############################################################################### - -# Extension #164 -SUN_global_alpha enum: - GLOBAL_ALPHA_SUN = 0x81D9 - GLOBAL_ALPHA_FACTOR_SUN = 0x81DA - -############################################################################### - -# Extension #165 -SUN_triangle_list enum: - RESTART_SUN = 0x0001 - REPLACE_MIDDLE_SUN = 0x0002 - REPLACE_OLDEST_SUN = 0x0003 - TRIANGLE_LIST_SUN = 0x81D7 - REPLACEMENT_CODE_SUN = 0x81D8 - REPLACEMENT_CODE_ARRAY_SUN = 0x85C0 - REPLACEMENT_CODE_ARRAY_TYPE_SUN = 0x85C1 - REPLACEMENT_CODE_ARRAY_STRIDE_SUN = 0x85C2 - REPLACEMENT_CODE_ARRAY_POINTER_SUN = 0x85C3 - R1UI_V3F_SUN = 0x85C4 - R1UI_C4UB_V3F_SUN = 0x85C5 - R1UI_C3F_V3F_SUN = 0x85C6 - R1UI_N3F_V3F_SUN = 0x85C7 - R1UI_C4F_N3F_V3F_SUN = 0x85C8 - R1UI_T2F_V3F_SUN = 0x85C9 - R1UI_T2F_N3F_V3F_SUN = 0x85CA - R1UI_T2F_C4F_N3F_V3F_SUN = 0x85CB - -############################################################################### - -# No new tokens -# Extension #166 -SUN_vertex enum: - -############################################################################### - -# Extension #167 - WGL_EXT_display_color_table -# Extension #168 - WGL_EXT_extensions_string -# Extension #169 - WGL_EXT_make_current_read -# Extension #170 - WGL_EXT_pixel_format -# Extension #171 - WGL_EXT_pbuffer -# Extension #172 - WGL_EXT_swap_control - -############################################################################### - -# Extension #173 -EXT_blend_func_separate enum: - BLEND_DST_RGB_EXT = 0x80C8 - BLEND_SRC_RGB_EXT = 0x80C9 - BLEND_DST_ALPHA_EXT = 0x80CA - BLEND_SRC_ALPHA_EXT = 0x80CB - -############################################################################### - -# Extension #174 -INGR_color_clamp enum: - RED_MIN_CLAMP_INGR = 0x8560 - GREEN_MIN_CLAMP_INGR = 0x8561 - BLUE_MIN_CLAMP_INGR = 0x8562 - ALPHA_MIN_CLAMP_INGR = 0x8563 - RED_MAX_CLAMP_INGR = 0x8564 - GREEN_MAX_CLAMP_INGR = 0x8565 - BLUE_MAX_CLAMP_INGR = 0x8566 - ALPHA_MAX_CLAMP_INGR = 0x8567 - -############################################################################### - -# Extension #175 -INGR_interlace_read enum: - INTERLACE_READ_INGR = 0x8568 - -############################################################################### - -# Extension #176 -EXT_stencil_wrap enum: - INCR_WRAP_EXT = 0x8507 - DECR_WRAP_EXT = 0x8508 - -############################################################################### - -# Extension #177 - skipped - -############################################################################### - -# Extension #178 -EXT_422_pixels enum: - 422_EXT = 0x80CC - 422_REV_EXT = 0x80CD - 422_AVERAGE_EXT = 0x80CE - 422_REV_AVERAGE_EXT = 0x80CF - -############################################################################### - -# Extension #179 -NV_texgen_reflection enum: - NORMAL_MAP_NV = 0x8511 - REFLECTION_MAP_NV = 0x8512 - -############################################################################### - -# Extension #180 - skipped -# Extension #181 - skipped - -############################################################################### - -# Is this shipping? No extension number assigned. -# Extension #? -EXT_texture_cube_map enum: - NORMAL_MAP_EXT = 0x8511 - REFLECTION_MAP_EXT = 0x8512 - TEXTURE_CUBE_MAP_EXT = 0x8513 - TEXTURE_BINDING_CUBE_MAP_EXT = 0x8514 - TEXTURE_CUBE_MAP_POSITIVE_X_EXT = 0x8515 - TEXTURE_CUBE_MAP_NEGATIVE_X_EXT = 0x8516 - TEXTURE_CUBE_MAP_POSITIVE_Y_EXT = 0x8517 - TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT = 0x8518 - TEXTURE_CUBE_MAP_POSITIVE_Z_EXT = 0x8519 - TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT = 0x851A - PROXY_TEXTURE_CUBE_MAP_EXT = 0x851B - MAX_CUBE_MAP_TEXTURE_SIZE_EXT = 0x851C - -############################################################################### - -# Extension #182 -SUN_convolution_border_modes enum: - WRAP_BORDER_SUN = 0x81D4 - -############################################################################### - -# Extension #183 - GLX_SUN_transparent_index - -############################################################################### - -# Extension #184 - skipped - -############################################################################### - -# No new tokens -# Extension #185 -EXT_texture_env_add enum: - -############################################################################### - -# Extension #186 -EXT_texture_lod_bias enum: - MAX_TEXTURE_LOD_BIAS_EXT = 0x84FD - TEXTURE_FILTER_CONTROL_EXT = 0x8500 - TEXTURE_LOD_BIAS_EXT = 0x8501 - -############################################################################### - -# Extension #187 -EXT_texture_filter_anisotropic enum: - TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE - MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF - -############################################################################### - -# Extension #188 -EXT_vertex_weighting enum: - MODELVIEW0_STACK_DEPTH_EXT = GL_MODELVIEW_STACK_DEPTH - MODELVIEW1_STACK_DEPTH_EXT = 0x8502 - MODELVIEW0_MATRIX_EXT = GL_MODELVIEW_MATRIX - MODELVIEW1_MATRIX_EXT = 0x8506 - VERTEX_WEIGHTING_EXT = 0x8509 - MODELVIEW0_EXT = GL_MODELVIEW - MODELVIEW1_EXT = 0x850A - CURRENT_VERTEX_WEIGHT_EXT = 0x850B - VERTEX_WEIGHT_ARRAY_EXT = 0x850C - VERTEX_WEIGHT_ARRAY_SIZE_EXT = 0x850D - VERTEX_WEIGHT_ARRAY_TYPE_EXT = 0x850E - VERTEX_WEIGHT_ARRAY_STRIDE_EXT = 0x850F - VERTEX_WEIGHT_ARRAY_POINTER_EXT = 0x8510 - -############################################################################### - -# Extension #189 -NV_light_max_exponent enum: - MAX_SHININESS_NV = 0x8504 - MAX_SPOT_EXPONENT_NV = 0x8505 - -############################################################################### - -# Extension #190 -NV_vertex_array_range enum: - VERTEX_ARRAY_RANGE_NV = 0x851D - VERTEX_ARRAY_RANGE_LENGTH_NV = 0x851E - VERTEX_ARRAY_RANGE_VALID_NV = 0x851F - MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV = 0x8520 - VERTEX_ARRAY_RANGE_POINTER_NV = 0x8521 - -############################################################################### - -# Extension #191 -NV_register_combiners enum: - REGISTER_COMBINERS_NV = 0x8522 - VARIABLE_A_NV = 0x8523 - VARIABLE_B_NV = 0x8524 - VARIABLE_C_NV = 0x8525 - VARIABLE_D_NV = 0x8526 - VARIABLE_E_NV = 0x8527 - VARIABLE_F_NV = 0x8528 - VARIABLE_G_NV = 0x8529 - CONSTANT_COLOR0_NV = 0x852A - CONSTANT_COLOR1_NV = 0x852B - PRIMARY_COLOR_NV = 0x852C - SECONDARY_COLOR_NV = 0x852D - SPARE0_NV = 0x852E - SPARE1_NV = 0x852F - DISCARD_NV = 0x8530 - E_TIMES_F_NV = 0x8531 - SPARE0_PLUS_SECONDARY_COLOR_NV = 0x8532 - UNSIGNED_IDENTITY_NV = 0x8536 - UNSIGNED_INVERT_NV = 0x8537 - EXPAND_NORMAL_NV = 0x8538 - EXPAND_NEGATE_NV = 0x8539 - HALF_BIAS_NORMAL_NV = 0x853A - HALF_BIAS_NEGATE_NV = 0x853B - SIGNED_IDENTITY_NV = 0x853C - SIGNED_NEGATE_NV = 0x853D - SCALE_BY_TWO_NV = 0x853E - SCALE_BY_FOUR_NV = 0x853F - SCALE_BY_ONE_HALF_NV = 0x8540 - BIAS_BY_NEGATIVE_ONE_HALF_NV = 0x8541 - COMBINER_INPUT_NV = 0x8542 - COMBINER_MAPPING_NV = 0x8543 - COMBINER_COMPONENT_USAGE_NV = 0x8544 - COMBINER_AB_DOT_PRODUCT_NV = 0x8545 - COMBINER_CD_DOT_PRODUCT_NV = 0x8546 - COMBINER_MUX_SUM_NV = 0x8547 - COMBINER_SCALE_NV = 0x8548 - COMBINER_BIAS_NV = 0x8549 - COMBINER_AB_OUTPUT_NV = 0x854A - COMBINER_CD_OUTPUT_NV = 0x854B - COMBINER_SUM_OUTPUT_NV = 0x854C - MAX_GENERAL_COMBINERS_NV = 0x854D - NUM_GENERAL_COMBINERS_NV = 0x854E - COLOR_SUM_CLAMP_NV = 0x854F - COMBINER0_NV = 0x8550 - COMBINER1_NV = 0x8551 - COMBINER2_NV = 0x8552 - COMBINER3_NV = 0x8553 - COMBINER4_NV = 0x8554 - COMBINER5_NV = 0x8555 - COMBINER6_NV = 0x8556 - COMBINER7_NV = 0x8557 - use ARB_multitexture TEXTURE0_ARB - use ARB_multitexture TEXTURE1_ARB - use BlendingFactorDest ZERO - use DrawBufferMode NONE - use GetPName FOG - -############################################################################### - -# Extension #192 -NV_fog_distance enum: - FOG_DISTANCE_MODE_NV = 0x855A - EYE_RADIAL_NV = 0x855B - EYE_PLANE_ABSOLUTE_NV = 0x855C - use TextureGenParameter EYE_PLANE - -############################################################################### - -# Extension #193 -NV_texgen_emboss enum: - EMBOSS_LIGHT_NV = 0x855D - EMBOSS_CONSTANT_NV = 0x855E - EMBOSS_MAP_NV = 0x855F - -############################################################################### - -# No new tokens -# Extension #194 -NV_blend_square enum: - -############################################################################### - -# Extension #195 -NV_texture_env_combine4 enum: - COMBINE4_NV = 0x8503 - SOURCE3_RGB_NV = 0x8583 - SOURCE3_ALPHA_NV = 0x858B - OPERAND3_RGB_NV = 0x8593 - OPERAND3_ALPHA_NV = 0x859B - -############################################################################### - -# No new tokens -# Extension #196 -MESA_resize_buffers enum: - -############################################################################### - -# No new tokens -# Extension #197 -MESA_window_pos enum: - -############################################################################### - -# Extension #198 -EXT_texture_compression_s3tc enum: - COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0 - COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1 - COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2 - COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3 - -############################################################################### - -# Extension #199 -IBM_cull_vertex enum: - CULL_VERTEX_IBM = 103050 - -############################################################################### - -# No new tokens -# Extension #200 -IBM_multimode_draw_arrays enum: - -############################################################################### - -# Extension #201 -IBM_vertex_array_lists enum: - VERTEX_ARRAY_LIST_IBM = 103070 - NORMAL_ARRAY_LIST_IBM = 103071 - COLOR_ARRAY_LIST_IBM = 103072 - INDEX_ARRAY_LIST_IBM = 103073 - TEXTURE_COORD_ARRAY_LIST_IBM = 103074 - EDGE_FLAG_ARRAY_LIST_IBM = 103075 - FOG_COORDINATE_ARRAY_LIST_IBM = 103076 - SECONDARY_COLOR_ARRAY_LIST_IBM = 103077 - VERTEX_ARRAY_LIST_STRIDE_IBM = 103080 - NORMAL_ARRAY_LIST_STRIDE_IBM = 103081 - COLOR_ARRAY_LIST_STRIDE_IBM = 103082 - INDEX_ARRAY_LIST_STRIDE_IBM = 103083 - TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM = 103084 - EDGE_FLAG_ARRAY_LIST_STRIDE_IBM = 103085 - FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM = 103086 - SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM = 103087 - -############################################################################### - -# Extension #202 -SGIX_subsample enum: - PACK_SUBSAMPLE_RATE_SGIX = 0x85A0 - UNPACK_SUBSAMPLE_RATE_SGIX = 0x85A1 - PIXEL_SUBSAMPLE_4444_SGIX = 0x85A2 - PIXEL_SUBSAMPLE_2424_SGIX = 0x85A3 - PIXEL_SUBSAMPLE_4242_SGIX = 0x85A4 - -############################################################################### - -# Extension #203 -SGIX_ycrcb_subsample enum: - PACK_SUBSAMPLE_RATE_SGIX = 0x85A0 - UNPACK_SUBSAMPLE_RATE_SGIX = 0x85A1 - PIXEL_SUBSAMPLE_4444_SGIX = 0x85A2 - PIXEL_SUBSAMPLE_2424_SGIX = 0x85A3 - PIXEL_SUBSAMPLE_4242_SGIX = 0x85A4 - -############################################################################### - -# Extension #204 -SGIX_ycrcba enum: - YCRCB_SGIX = 0x8318 - YCRCBA_SGIX = 0x8319 - -############################################################################### - -# Extension #205 -SGI_depth_pass_instrument enum: - DEPTH_PASS_INSTRUMENT_SGIX = 0x8310 - DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX = 0x8311 - DEPTH_PASS_INSTRUMENT_MAX_SGIX = 0x8312 - -############################################################################### - -# Extension #206 -3DFX_texture_compression_FXT1 enum: - COMPRESSED_RGB_FXT1_3DFX = 0x86B0 - COMPRESSED_RGBA_FXT1_3DFX = 0x86B1 - -############################################################################### - -# Extension #207 -3DFX_multisample enum: - MULTISAMPLE_3DFX = 0x86B2 - SAMPLE_BUFFERS_3DFX = 0x86B3 - SAMPLES_3DFX = 0x86B4 - MULTISAMPLE_BIT_3DFX = 0x20000000 - -############################################################################### - -# No new tokens -# Extension #208 -3DFX_tbuffer enum: - -############################################################################### - -# Extension #209 -EXT_multisample enum: - MULTISAMPLE_EXT = 0x809D - SAMPLE_ALPHA_TO_MASK_EXT = 0x809E - SAMPLE_ALPHA_TO_ONE_EXT = 0x809F - SAMPLE_MASK_EXT = 0x80A0 - 1PASS_EXT = 0x80A1 - 2PASS_0_EXT = 0x80A2 - 2PASS_1_EXT = 0x80A3 - 4PASS_0_EXT = 0x80A4 - 4PASS_1_EXT = 0x80A5 - 4PASS_2_EXT = 0x80A6 - 4PASS_3_EXT = 0x80A7 - SAMPLE_BUFFERS_EXT = 0x80A8 # 1 I - SAMPLES_EXT = 0x80A9 # 1 I - SAMPLE_MASK_VALUE_EXT = 0x80AA # 1 F - SAMPLE_MASK_INVERT_EXT = 0x80AB # 1 I - SAMPLE_PATTERN_EXT = 0x80AC # 1 I - MULTISAMPLE_BIT_EXT = 0x20000000 - -############################################################################### - -# Extension #210 -SGIX_vertex_preclip enum: - VERTEX_PRECLIP_SGIX = 0x83EE - VERTEX_PRECLIP_HINT_SGIX = 0x83EF - -############################################################################### - -# Extension #211 -SGIX_convolution_accuracy enum: - CONVOLUTION_HINT_SGIX = 0x8316 # 1 I - -############################################################################### - -# Extension #212 -SGIX_resample enum: - PACK_RESAMPLE_SGIX = 0x842C - UNPACK_RESAMPLE_SGIX = 0x842D - RESAMPLE_REPLICATE_SGIX = 0x842E - RESAMPLE_ZERO_FILL_SGIX = 0x842F - RESAMPLE_DECIMATE_SGIX = 0x8430 - -############################################################################### - -# Extension #213 -SGIS_point_line_texgen enum: - EYE_DISTANCE_TO_POINT_SGIS = 0x81F0 - OBJECT_DISTANCE_TO_POINT_SGIS = 0x81F1 - EYE_DISTANCE_TO_LINE_SGIS = 0x81F2 - OBJECT_DISTANCE_TO_LINE_SGIS = 0x81F3 - EYE_POINT_SGIS = 0x81F4 - OBJECT_POINT_SGIS = 0x81F5 - EYE_LINE_SGIS = 0x81F6 - OBJECT_LINE_SGIS = 0x81F7 - -############################################################################### - -# Extension #214 -SGIS_texture_color_mask enum: - TEXTURE_COLOR_WRITEMASK_SGIS = 0x81EF - -############################################################################### - -# Extension #220 -# Promoted to ARB_texture_env_dot3, enum values changed -EXT_texture_env_dot3 enum: - DOT3_RGB_EXT = 0x8740 - DOT3_RGBA_EXT = 0x8741 - -############################################################################### - -# Extension #221 -ATI_texture_mirror_once enum: - MIRROR_CLAMP_ATI = 0x8742 - MIRROR_CLAMP_TO_EDGE_ATI = 0x8743 - -############################################################################### - -# Extension #222 -NV_fence enum: - ALL_COMPLETED_NV = 0x84F2 - FENCE_STATUS_NV = 0x84F3 - FENCE_CONDITION_NV = 0x84F4 - -############################################################################### - -# Extension #224 -IBM_texture_mirrored_repeat enum: - MIRRORED_REPEAT_IBM = 0x8370 - -############################################################################### - -# Extension #225 -NV_evaluators enum: - EVAL_2D_NV = 0x86C0 - EVAL_TRIANGULAR_2D_NV = 0x86C1 - MAP_TESSELLATION_NV = 0x86C2 - MAP_ATTRIB_U_ORDER_NV = 0x86C3 - MAP_ATTRIB_V_ORDER_NV = 0x86C4 - EVAL_FRACTIONAL_TESSELLATION_NV = 0x86C5 - EVAL_VERTEX_ATTRIB0_NV = 0x86C6 - EVAL_VERTEX_ATTRIB1_NV = 0x86C7 - EVAL_VERTEX_ATTRIB2_NV = 0x86C8 - EVAL_VERTEX_ATTRIB3_NV = 0x86C9 - EVAL_VERTEX_ATTRIB4_NV = 0x86CA - EVAL_VERTEX_ATTRIB5_NV = 0x86CB - EVAL_VERTEX_ATTRIB6_NV = 0x86CC - EVAL_VERTEX_ATTRIB7_NV = 0x86CD - EVAL_VERTEX_ATTRIB8_NV = 0x86CE - EVAL_VERTEX_ATTRIB9_NV = 0x86CF - EVAL_VERTEX_ATTRIB10_NV = 0x86D0 - EVAL_VERTEX_ATTRIB11_NV = 0x86D1 - EVAL_VERTEX_ATTRIB12_NV = 0x86D2 - EVAL_VERTEX_ATTRIB13_NV = 0x86D3 - EVAL_VERTEX_ATTRIB14_NV = 0x86D4 - EVAL_VERTEX_ATTRIB15_NV = 0x86D5 - MAX_MAP_TESSELLATION_NV = 0x86D6 - MAX_RATIONAL_EVAL_ORDER_NV = 0x86D7 - -############################################################################### - -# Extension #226 -NV_packed_depth_stencil enum: - DEPTH_STENCIL_NV = 0x84F9 - UNSIGNED_INT_24_8_NV = 0x84FA - -############################################################################### - -# Extension #227 -NV_register_combiners2 enum: - PER_STAGE_CONSTANTS_NV = 0x8535 - -############################################################################### - -# No new tokens -# Extension #228 -NV_texture_compression_vtc enum: - -############################################################################### - -# Extension #229 -NV_texture_rectangle enum: - TEXTURE_RECTANGLE_NV = 0x84F5 - TEXTURE_BINDING_RECTANGLE_NV = 0x84F6 - PROXY_TEXTURE_RECTANGLE_NV = 0x84F7 - MAX_RECTANGLE_TEXTURE_SIZE_NV = 0x84F8 - -############################################################################### - -# Extension #230 -NV_texture_shader enum: - OFFSET_TEXTURE_RECTANGLE_NV = 0x864C - OFFSET_TEXTURE_RECTANGLE_SCALE_NV = 0x864D - DOT_PRODUCT_TEXTURE_RECTANGLE_NV = 0x864E - RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV = 0x86D9 - UNSIGNED_INT_S8_S8_8_8_NV = 0x86DA - UNSIGNED_INT_8_8_S8_S8_REV_NV = 0x86DB - DSDT_MAG_INTENSITY_NV = 0x86DC - SHADER_CONSISTENT_NV = 0x86DD - TEXTURE_SHADER_NV = 0x86DE - SHADER_OPERATION_NV = 0x86DF - CULL_MODES_NV = 0x86E0 - OFFSET_TEXTURE_MATRIX_NV = 0x86E1 - OFFSET_TEXTURE_SCALE_NV = 0x86E2 - OFFSET_TEXTURE_BIAS_NV = 0x86E3 - OFFSET_TEXTURE_2D_MATRIX_NV = GL_OFFSET_TEXTURE_MATRIX_NV - OFFSET_TEXTURE_2D_SCALE_NV = GL_OFFSET_TEXTURE_SCALE_NV - OFFSET_TEXTURE_2D_BIAS_NV = GL_OFFSET_TEXTURE_BIAS_NV - PREVIOUS_TEXTURE_INPUT_NV = 0x86E4 - CONST_EYE_NV = 0x86E5 - PASS_THROUGH_NV = 0x86E6 - CULL_FRAGMENT_NV = 0x86E7 - OFFSET_TEXTURE_2D_NV = 0x86E8 - DEPENDENT_AR_TEXTURE_2D_NV = 0x86E9 - DEPENDENT_GB_TEXTURE_2D_NV = 0x86EA - DOT_PRODUCT_NV = 0x86EC - DOT_PRODUCT_DEPTH_REPLACE_NV = 0x86ED - DOT_PRODUCT_TEXTURE_2D_NV = 0x86EE - DOT_PRODUCT_TEXTURE_CUBE_MAP_NV = 0x86F0 - DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV = 0x86F1 - DOT_PRODUCT_REFLECT_CUBE_MAP_NV = 0x86F2 - DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV = 0x86F3 - HILO_NV = 0x86F4 - DSDT_NV = 0x86F5 - DSDT_MAG_NV = 0x86F6 - DSDT_MAG_VIB_NV = 0x86F7 - HILO16_NV = 0x86F8 - SIGNED_HILO_NV = 0x86F9 - SIGNED_HILO16_NV = 0x86FA - SIGNED_RGBA_NV = 0x86FB - SIGNED_RGBA8_NV = 0x86FC - SIGNED_RGB_NV = 0x86FE - SIGNED_RGB8_NV = 0x86FF - SIGNED_LUMINANCE_NV = 0x8701 - SIGNED_LUMINANCE8_NV = 0x8702 - SIGNED_LUMINANCE_ALPHA_NV = 0x8703 - SIGNED_LUMINANCE8_ALPHA8_NV = 0x8704 - SIGNED_ALPHA_NV = 0x8705 - SIGNED_ALPHA8_NV = 0x8706 - SIGNED_INTENSITY_NV = 0x8707 - SIGNED_INTENSITY8_NV = 0x8708 - DSDT8_NV = 0x8709 - DSDT8_MAG8_NV = 0x870A - DSDT8_MAG8_INTENSITY8_NV = 0x870B - SIGNED_RGB_UNSIGNED_ALPHA_NV = 0x870C - SIGNED_RGB8_UNSIGNED_ALPHA8_NV = 0x870D - HI_SCALE_NV = 0x870E - LO_SCALE_NV = 0x870F - DS_SCALE_NV = 0x8710 - DT_SCALE_NV = 0x8711 - MAGNITUDE_SCALE_NV = 0x8712 - VIBRANCE_SCALE_NV = 0x8713 - HI_BIAS_NV = 0x8714 - LO_BIAS_NV = 0x8715 - DS_BIAS_NV = 0x8716 - DT_BIAS_NV = 0x8717 - MAGNITUDE_BIAS_NV = 0x8718 - VIBRANCE_BIAS_NV = 0x8719 - TEXTURE_BORDER_VALUES_NV = 0x871A - TEXTURE_HI_SIZE_NV = 0x871B - TEXTURE_LO_SIZE_NV = 0x871C - TEXTURE_DS_SIZE_NV = 0x871D - TEXTURE_DT_SIZE_NV = 0x871E - TEXTURE_MAG_SIZE_NV = 0x871F - -############################################################################### - -# Extension #231 -NV_texture_shader2 enum: - DOT_PRODUCT_TEXTURE_3D_NV = 0x86EF - -############################################################################### - -# Extension #232 -NV_vertex_array_range2 enum: - VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV = 0x8533 - -############################################################################### - -# Extension #233 -NV_vertex_program enum: - VERTEX_PROGRAM_NV = 0x8620 - VERTEX_STATE_PROGRAM_NV = 0x8621 - ATTRIB_ARRAY_SIZE_NV = 0x8623 - ATTRIB_ARRAY_STRIDE_NV = 0x8624 - ATTRIB_ARRAY_TYPE_NV = 0x8625 - CURRENT_ATTRIB_NV = 0x8626 - PROGRAM_LENGTH_NV = 0x8627 - PROGRAM_STRING_NV = 0x8628 - MODELVIEW_PROJECTION_NV = 0x8629 - IDENTITY_NV = 0x862A - INVERSE_NV = 0x862B - TRANSPOSE_NV = 0x862C - INVERSE_TRANSPOSE_NV = 0x862D - MAX_TRACK_MATRIX_STACK_DEPTH_NV = 0x862E - MAX_TRACK_MATRICES_NV = 0x862F - MATRIX0_NV = 0x8630 - MATRIX1_NV = 0x8631 - MATRIX2_NV = 0x8632 - MATRIX3_NV = 0x8633 - MATRIX4_NV = 0x8634 - MATRIX5_NV = 0x8635 - MATRIX6_NV = 0x8636 - MATRIX7_NV = 0x8637 -################## -# -# Reserved: -# -# MATRIX8_NV = 0x8638 -# MATRIX9_NV = 0x8639 -# MATRIX10_NV = 0x863A -# MATRIX11_NV = 0x863B -# MATRIX12_NV = 0x863C -# MATRIX13_NV = 0x863D -# MATRIX14_NV = 0x863E -# MATRIX15_NV = 0x863F -# -################### - CURRENT_MATRIX_STACK_DEPTH_NV = 0x8640 - CURRENT_MATRIX_NV = 0x8641 - VERTEX_PROGRAM_POINT_SIZE_NV = 0x8642 - VERTEX_PROGRAM_TWO_SIDE_NV = 0x8643 - PROGRAM_PARAMETER_NV = 0x8644 - ATTRIB_ARRAY_POINTER_NV = 0x8645 - PROGRAM_TARGET_NV = 0x8646 - PROGRAM_RESIDENT_NV = 0x8647 - TRACK_MATRIX_NV = 0x8648 - TRACK_MATRIX_TRANSFORM_NV = 0x8649 - VERTEX_PROGRAM_BINDING_NV = 0x864A - PROGRAM_ERROR_POSITION_NV = 0x864B - VERTEX_ATTRIB_ARRAY0_NV = 0x8650 - VERTEX_ATTRIB_ARRAY1_NV = 0x8651 - VERTEX_ATTRIB_ARRAY2_NV = 0x8652 - VERTEX_ATTRIB_ARRAY3_NV = 0x8653 - VERTEX_ATTRIB_ARRAY4_NV = 0x8654 - VERTEX_ATTRIB_ARRAY5_NV = 0x8655 - VERTEX_ATTRIB_ARRAY6_NV = 0x8656 - VERTEX_ATTRIB_ARRAY7_NV = 0x8657 - VERTEX_ATTRIB_ARRAY8_NV = 0x8658 - VERTEX_ATTRIB_ARRAY9_NV = 0x8659 - VERTEX_ATTRIB_ARRAY10_NV = 0x865A - VERTEX_ATTRIB_ARRAY11_NV = 0x865B - VERTEX_ATTRIB_ARRAY12_NV = 0x865C - VERTEX_ATTRIB_ARRAY13_NV = 0x865D - VERTEX_ATTRIB_ARRAY14_NV = 0x865E - VERTEX_ATTRIB_ARRAY15_NV = 0x865F - MAP1_VERTEX_ATTRIB0_4_NV = 0x8660 - MAP1_VERTEX_ATTRIB1_4_NV = 0x8661 - MAP1_VERTEX_ATTRIB2_4_NV = 0x8662 - MAP1_VERTEX_ATTRIB3_4_NV = 0x8663 - MAP1_VERTEX_ATTRIB4_4_NV = 0x8664 - MAP1_VERTEX_ATTRIB5_4_NV = 0x8665 - MAP1_VERTEX_ATTRIB6_4_NV = 0x8666 - MAP1_VERTEX_ATTRIB7_4_NV = 0x8667 - MAP1_VERTEX_ATTRIB8_4_NV = 0x8668 - MAP1_VERTEX_ATTRIB9_4_NV = 0x8669 - MAP1_VERTEX_ATTRIB10_4_NV = 0x866A - MAP1_VERTEX_ATTRIB11_4_NV = 0x866B - MAP1_VERTEX_ATTRIB12_4_NV = 0x866C - MAP1_VERTEX_ATTRIB13_4_NV = 0x866D - MAP1_VERTEX_ATTRIB14_4_NV = 0x866E - MAP1_VERTEX_ATTRIB15_4_NV = 0x866F - MAP2_VERTEX_ATTRIB0_4_NV = 0x8670 - MAP2_VERTEX_ATTRIB1_4_NV = 0x8671 - MAP2_VERTEX_ATTRIB2_4_NV = 0x8672 - MAP2_VERTEX_ATTRIB3_4_NV = 0x8673 - MAP2_VERTEX_ATTRIB4_4_NV = 0x8674 - MAP2_VERTEX_ATTRIB5_4_NV = 0x8675 - MAP2_VERTEX_ATTRIB6_4_NV = 0x8676 - MAP2_VERTEX_ATTRIB7_4_NV = 0x8677 - MAP2_VERTEX_ATTRIB8_4_NV = 0x8678 - MAP2_VERTEX_ATTRIB9_4_NV = 0x8679 - MAP2_VERTEX_ATTRIB10_4_NV = 0x867A - MAP2_VERTEX_ATTRIB11_4_NV = 0x867B - MAP2_VERTEX_ATTRIB12_4_NV = 0x867C - MAP2_VERTEX_ATTRIB13_4_NV = 0x867D - MAP2_VERTEX_ATTRIB14_4_NV = 0x867E - MAP2_VERTEX_ATTRIB15_4_NV = 0x867F - -############################################################################### - -# Extension #235 -SGIX_texture_coordinate_clamp enum: - TEXTURE_MAX_CLAMP_S_SGIX = 0x8369 - TEXTURE_MAX_CLAMP_T_SGIX = 0x836A - TEXTURE_MAX_CLAMP_R_SGIX = 0x836B - -############################################################################### - -# Extension #236 -SGIX_scalebias_hint enum: - SCALEBIAS_HINT_SGIX = 0x8322 - -############################################################################### - -# Extension #237 - GLX_OML_swap_method -# Extension #238 - GLX_OML_sync_control - -############################################################################### - -# Extension #239 -OML_interlace enum: - INTERLACE_OML = 0x8980 - INTERLACE_READ_OML = 0x8981 - -############################################################################### - -# Extension #240 -OML_subsample enum: - FORMAT_SUBSAMPLE_24_24_OML = 0x8982 - FORMAT_SUBSAMPLE_244_244_OML = 0x8983 - -############################################################################### - -# Extension #241 -OML_resample enum: - PACK_RESAMPLE_OML = 0x8984 - UNPACK_RESAMPLE_OML = 0x8985 - RESAMPLE_REPLICATE_OML = 0x8986 - RESAMPLE_ZERO_FILL_OML = 0x8987 - RESAMPLE_AVERAGE_OML = 0x8988 - RESAMPLE_DECIMATE_OML = 0x8989 - -############################################################################### - -# Extension #242 - WGL_OML_sync_control - -############################################################################### - -# Extension #243 -NV_copy_depth_to_color enum: - DEPTH_STENCIL_TO_RGBA_NV = 0x886E - DEPTH_STENCIL_TO_BGRA_NV = 0x886F - -############################################################################### - -# Extension #244 -ATI_envmap_bumpmap enum: - BUMP_ROT_MATRIX_ATI = 0x8775 - BUMP_ROT_MATRIX_SIZE_ATI = 0x8776 - BUMP_NUM_TEX_UNITS_ATI = 0x8777 - BUMP_TEX_UNITS_ATI = 0x8778 - DUDV_ATI = 0x8779 - DU8DV8_ATI = 0x877A - BUMP_ENVMAP_ATI = 0x877B - BUMP_TARGET_ATI = 0x877C - -############################################################################### - -# Extension #245 -ATI_fragment_shader enum: - FRAGMENT_SHADER_ATI = 0x8920 - REG_0_ATI = 0x8921 - REG_1_ATI = 0x8922 - REG_2_ATI = 0x8923 - REG_3_ATI = 0x8924 - REG_4_ATI = 0x8925 - REG_5_ATI = 0x8926 - REG_6_ATI = 0x8927 - REG_7_ATI = 0x8928 - REG_8_ATI = 0x8929 - REG_9_ATI = 0x892A - REG_10_ATI = 0x892B - REG_11_ATI = 0x892C - REG_12_ATI = 0x892D - REG_13_ATI = 0x892E - REG_14_ATI = 0x892F - REG_15_ATI = 0x8930 - REG_16_ATI = 0x8931 - REG_17_ATI = 0x8932 - REG_18_ATI = 0x8933 - REG_19_ATI = 0x8934 - REG_20_ATI = 0x8935 - REG_21_ATI = 0x8936 - REG_22_ATI = 0x8937 - REG_23_ATI = 0x8938 - REG_24_ATI = 0x8939 - REG_25_ATI = 0x893A - REG_26_ATI = 0x893B - REG_27_ATI = 0x893C - REG_28_ATI = 0x893D - REG_29_ATI = 0x893E - REG_30_ATI = 0x893F - REG_31_ATI = 0x8940 - CON_0_ATI = 0x8941 - CON_1_ATI = 0x8942 - CON_2_ATI = 0x8943 - CON_3_ATI = 0x8944 - CON_4_ATI = 0x8945 - CON_5_ATI = 0x8946 - CON_6_ATI = 0x8947 - CON_7_ATI = 0x8948 - CON_8_ATI = 0x8949 - CON_9_ATI = 0x894A - CON_10_ATI = 0x894B - CON_11_ATI = 0x894C - CON_12_ATI = 0x894D - CON_13_ATI = 0x894E - CON_14_ATI = 0x894F - CON_15_ATI = 0x8950 - CON_16_ATI = 0x8951 - CON_17_ATI = 0x8952 - CON_18_ATI = 0x8953 - CON_19_ATI = 0x8954 - CON_20_ATI = 0x8955 - CON_21_ATI = 0x8956 - CON_22_ATI = 0x8957 - CON_23_ATI = 0x8958 - CON_24_ATI = 0x8959 - CON_25_ATI = 0x895A - CON_26_ATI = 0x895B - CON_27_ATI = 0x895C - CON_28_ATI = 0x895D - CON_29_ATI = 0x895E - CON_30_ATI = 0x895F - CON_31_ATI = 0x8960 - MOV_ATI = 0x8961 - ADD_ATI = 0x8963 - MUL_ATI = 0x8964 - SUB_ATI = 0x8965 - DOT3_ATI = 0x8966 - DOT4_ATI = 0x8967 - MAD_ATI = 0x8968 - LERP_ATI = 0x8969 - CND_ATI = 0x896A - CND0_ATI = 0x896B - DOT2_ADD_ATI = 0x896C - SECONDARY_INTERPOLATOR_ATI = 0x896D - NUM_FRAGMENT_REGISTERS_ATI = 0x896E - NUM_FRAGMENT_CONSTANTS_ATI = 0x896F - NUM_PASSES_ATI = 0x8970 - NUM_INSTRUCTIONS_PER_PASS_ATI = 0x8971 - NUM_INSTRUCTIONS_TOTAL_ATI = 0x8972 - NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI = 0x8973 - NUM_LOOPBACK_COMPONENTS_ATI = 0x8974 - COLOR_ALPHA_PAIRING_ATI = 0x8975 - SWIZZLE_STR_ATI = 0x8976 - SWIZZLE_STQ_ATI = 0x8977 - SWIZZLE_STR_DR_ATI = 0x8978 - SWIZZLE_STQ_DQ_ATI = 0x8979 - SWIZZLE_STRQ_ATI = 0x897A - SWIZZLE_STRQ_DQ_ATI = 0x897B - RED_BIT_ATI = 0x00000001 - GREEN_BIT_ATI = 0x00000002 - BLUE_BIT_ATI = 0x00000004 - 2X_BIT_ATI = 0x00000001 - 4X_BIT_ATI = 0x00000002 - 8X_BIT_ATI = 0x00000004 - HALF_BIT_ATI = 0x00000008 - QUARTER_BIT_ATI = 0x00000010 - EIGHTH_BIT_ATI = 0x00000020 - SATURATE_BIT_ATI = 0x00000040 - 2X_BIT_ATI = 0x00000001 - COMP_BIT_ATI = 0x00000002 - NEGATE_BIT_ATI = 0x00000004 - BIAS_BIT_ATI = 0x00000008 - -############################################################################### - -# Extension #246 -ATI_pn_triangles enum: - PN_TRIANGLES_ATI = 0x87F0 - MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F1 - PN_TRIANGLES_POINT_MODE_ATI = 0x87F2 - PN_TRIANGLES_NORMAL_MODE_ATI = 0x87F3 - PN_TRIANGLES_TESSELATION_LEVEL_ATI = 0x87F4 - PN_TRIANGLES_POINT_MODE_LINEAR_ATI = 0x87F5 - PN_TRIANGLES_POINT_MODE_CUBIC_ATI = 0x87F6 - PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI = 0x87F7 - PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI = 0x87F8 - -############################################################################### - -# Extension #247 -ATI_vertex_array_object enum: - STATIC_ATI = 0x8760 - DYNAMIC_ATI = 0x8761 - PRESERVE_ATI = 0x8762 - DISCARD_ATI = 0x8763 - OBJECT_BUFFER_SIZE_ATI = 0x8764 - OBJECT_BUFFER_USAGE_ATI = 0x8765 - ARRAY_OBJECT_BUFFER_ATI = 0x8766 - ARRAY_OBJECT_OFFSET_ATI = 0x8767 - -############################################################################### - -# Extension #248 -EXT_vertex_shader enum: - VERTEX_SHADER_EXT = 0x8780 - VERTEX_SHADER_BINDING_EXT = 0x8781 - OP_INDEX_EXT = 0x8782 - OP_NEGATE_EXT = 0x8783 - OP_DOT3_EXT = 0x8784 - OP_DOT4_EXT = 0x8785 - OP_MUL_EXT = 0x8786 - OP_ADD_EXT = 0x8787 - OP_MADD_EXT = 0x8788 - OP_FRAC_EXT = 0x8789 - OP_MAX_EXT = 0x878A - OP_MIN_EXT = 0x878B - OP_SET_GE_EXT = 0x878C - OP_SET_LT_EXT = 0x878D - OP_CLAMP_EXT = 0x878E - OP_FLOOR_EXT = 0x878F - OP_ROUND_EXT = 0x8790 - OP_EXP_BASE_2_EXT = 0x8791 - OP_LOG_BASE_2_EXT = 0x8792 - OP_POWER_EXT = 0x8793 - OP_RECIP_EXT = 0x8794 - OP_RECIP_SQRT_EXT = 0x8795 - OP_SUB_EXT = 0x8796 - OP_CROSS_PRODUCT_EXT = 0x8797 - OP_MULTIPLY_MATRIX_EXT = 0x8798 - OP_MOV_EXT = 0x8799 - OUTPUT_VERTEX_EXT = 0x879A - OUTPUT_COLOR0_EXT = 0x879B - OUTPUT_COLOR1_EXT = 0x879C - OUTPUT_TEXTURE_COORD0_EXT = 0x879D - OUTPUT_TEXTURE_COORD1_EXT = 0x879E - OUTPUT_TEXTURE_COORD2_EXT = 0x879F - OUTPUT_TEXTURE_COORD3_EXT = 0x87A0 - OUTPUT_TEXTURE_COORD4_EXT = 0x87A1 - OUTPUT_TEXTURE_COORD5_EXT = 0x87A2 - OUTPUT_TEXTURE_COORD6_EXT = 0x87A3 - OUTPUT_TEXTURE_COORD7_EXT = 0x87A4 - OUTPUT_TEXTURE_COORD8_EXT = 0x87A5 - OUTPUT_TEXTURE_COORD9_EXT = 0x87A6 - OUTPUT_TEXTURE_COORD10_EXT = 0x87A7 - OUTPUT_TEXTURE_COORD11_EXT = 0x87A8 - OUTPUT_TEXTURE_COORD12_EXT = 0x87A9 - OUTPUT_TEXTURE_COORD13_EXT = 0x87AA - OUTPUT_TEXTURE_COORD14_EXT = 0x87AB - OUTPUT_TEXTURE_COORD15_EXT = 0x87AC - OUTPUT_TEXTURE_COORD16_EXT = 0x87AD - OUTPUT_TEXTURE_COORD17_EXT = 0x87AE - OUTPUT_TEXTURE_COORD18_EXT = 0x87AF - OUTPUT_TEXTURE_COORD19_EXT = 0x87B0 - OUTPUT_TEXTURE_COORD20_EXT = 0x87B1 - OUTPUT_TEXTURE_COORD21_EXT = 0x87B2 - OUTPUT_TEXTURE_COORD22_EXT = 0x87B3 - OUTPUT_TEXTURE_COORD23_EXT = 0x87B4 - OUTPUT_TEXTURE_COORD24_EXT = 0x87B5 - OUTPUT_TEXTURE_COORD25_EXT = 0x87B6 - OUTPUT_TEXTURE_COORD26_EXT = 0x87B7 - OUTPUT_TEXTURE_COORD27_EXT = 0x87B8 - OUTPUT_TEXTURE_COORD28_EXT = 0x87B9 - OUTPUT_TEXTURE_COORD29_EXT = 0x87BA - OUTPUT_TEXTURE_COORD30_EXT = 0x87BB - OUTPUT_TEXTURE_COORD31_EXT = 0x87BC - OUTPUT_FOG_EXT = 0x87BD - SCALAR_EXT = 0x87BE - VECTOR_EXT = 0x87BF - MATRIX_EXT = 0x87C0 - VARIANT_EXT = 0x87C1 - INVARIANT_EXT = 0x87C2 - LOCAL_CONSTANT_EXT = 0x87C3 - LOCAL_EXT = 0x87C4 - MAX_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87C5 - MAX_VERTEX_SHADER_VARIANTS_EXT = 0x87C6 - MAX_VERTEX_SHADER_INVARIANTS_EXT = 0x87C7 - MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87C8 - MAX_VERTEX_SHADER_LOCALS_EXT = 0x87C9 - MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CA - MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT = 0x87CB - MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87CC - MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT = 0x87CD - MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT = 0x87CE - VERTEX_SHADER_INSTRUCTIONS_EXT = 0x87CF - VERTEX_SHADER_VARIANTS_EXT = 0x87D0 - VERTEX_SHADER_INVARIANTS_EXT = 0x87D1 - VERTEX_SHADER_LOCAL_CONSTANTS_EXT = 0x87D2 - VERTEX_SHADER_LOCALS_EXT = 0x87D3 - VERTEX_SHADER_OPTIMIZED_EXT = 0x87D4 - X_EXT = 0x87D5 - Y_EXT = 0x87D6 - Z_EXT = 0x87D7 - W_EXT = 0x87D8 - NEGATIVE_X_EXT = 0x87D9 - NEGATIVE_Y_EXT = 0x87DA - NEGATIVE_Z_EXT = 0x87DB - NEGATIVE_W_EXT = 0x87DC - ZERO_EXT = 0x87DD - ONE_EXT = 0x87DE - NEGATIVE_ONE_EXT = 0x87DF - NORMALIZED_RANGE_EXT = 0x87E0 - FULL_RANGE_EXT = 0x87E1 - CURRENT_VERTEX_EXT = 0x87E2 - MVP_MATRIX_EXT = 0x87E3 - VARIANT_VALUE_EXT = 0x87E4 - VARIANT_DATATYPE_EXT = 0x87E5 - VARIANT_ARRAY_STRIDE_EXT = 0x87E6 - VARIANT_ARRAY_TYPE_EXT = 0x87E7 - VARIANT_ARRAY_EXT = 0x87E8 - VARIANT_ARRAY_POINTER_EXT = 0x87E9 - INVARIANT_VALUE_EXT = 0x87EA - INVARIANT_DATATYPE_EXT = 0x87EB - LOCAL_CONSTANT_VALUE_EXT = 0x87EC - LOCAL_CONSTANT_DATATYPE_EXT = 0x87ED - -############################################################################### - -# Extension #249 -ATI_vertex_streams enum: - MAX_VERTEX_STREAMS_ATI = 0x876B - VERTEX_STREAM0_ATI = 0x876C - VERTEX_STREAM1_ATI = 0x876D - VERTEX_STREAM2_ATI = 0x876E - VERTEX_STREAM3_ATI = 0x876F - VERTEX_STREAM4_ATI = 0x8770 - VERTEX_STREAM5_ATI = 0x8771 - VERTEX_STREAM6_ATI = 0x8772 - VERTEX_STREAM7_ATI = 0x8773 - VERTEX_SOURCE_ATI = 0x8774 - -############################################################################### - -# Extension #250 - WGL_I3D_digital_video_control -# Extension #251 - WGL_I3D_gamma -# Extension #252 - WGL_I3D_genlock -# Extension #253 - WGL_I3D_image_buffer -# Extension #254 - WGL_I3D_swap_frame_lock -# Extension #255 - WGL_I3D_swap_frame_usage - -############################################################################### - -# Extension #256 -ATI_element_array enum: - ELEMENT_ARRAY_ATI = 0x8768 - ELEMENT_ARRAY_TYPE_ATI = 0x8769 - ELEMENT_ARRAY_POINTER_ATI = 0x876A - -############################################################################### - -# Extension #257 -SUN_mesh_array enum: - QUAD_MESH_SUN = 0x8614 - TRIANGLE_MESH_SUN = 0x8615 - -############################################################################### - -# Extension #258 -SUN_slice_accum enum: - SLICE_ACCUM_SUN = 0x85CC - -############################################################################### - -# Extension #259 -NV_multisample_filter_hint enum: - MULTISAMPLE_FILTER_HINT_NV = 0x8534 - -############################################################################### - -# Extension #260 -NV_depth_clamp enum: - DEPTH_CLAMP_NV = 0x864F - -############################################################################### - -# Extension #261 -NV_occlusion_query enum: - PIXEL_COUNTER_BITS_NV = 0x8864 - CURRENT_OCCLUSION_QUERY_ID_NV = 0x8865 - PIXEL_COUNT_NV = 0x8866 - PIXEL_COUNT_AVAILABLE_NV = 0x8867 - -############################################################################### - -# Extension #262 -NV_point_sprite enum: - POINT_SPRITE_NV = 0x8861 - COORD_REPLACE_NV = 0x8862 - POINT_SPRITE_R_MODE_NV = 0x8863 - -############################################################################### - -# Extension #263 - WGL_NV_render_depth_texture -# Extension #264 - WGL_NV_render_texture_rectangle - -############################################################################### - -# Extension #265 -NV_texture_shader3 enum: - OFFSET_PROJECTIVE_TEXTURE_2D_NV = 0x8850 - OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV = 0x8851 - OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8852 - OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV = 0x8853 - OFFSET_HILO_TEXTURE_2D_NV = 0x8854 - OFFSET_HILO_TEXTURE_RECTANGLE_NV = 0x8855 - OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV = 0x8856 - OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV = 0x8857 - DEPENDENT_HILO_TEXTURE_2D_NV = 0x8858 - DEPENDENT_RGB_TEXTURE_3D_NV = 0x8859 - DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV = 0x885A - DOT_PRODUCT_PASS_THROUGH_NV = 0x885B - DOT_PRODUCT_TEXTURE_1D_NV = 0x885C - DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV = 0x885D - HILO8_NV = 0x885E - SIGNED_HILO8_NV = 0x885F - FORCE_BLUE_TO_ONE_NV = 0x8860 - -############################################################################### - -# No new tokens -# Extension #266 -NV_vertex_program1_1 enum: - -############################################################################### - -# No new tokens -# Extension #267 -EXT_shadow_funcs enum: - -############################################################################### - -# Extension #268 -EXT_stencil_two_side enum: - STENCIL_TEST_TWO_SIDE_EXT = 0x8910 - ACTIVE_STENCIL_FACE_EXT = 0x8911 - -############################################################################### - -# Extension #269 -ATI_text_fragment_shader enum: - TEXT_FRAGMENT_SHADER_ATI = 0x8200 - -############################################################################### - -# Extension #270 -APPLE_client_storage enum: - UNPACK_CLIENT_STORAGE_APPLE = 0x85B2 - -############################################################################### - -# Extension #271 -APPLE_element_array enum: - ELEMENT_ARRAY_APPLE = 0x8A0C - ELEMENT_ARRAY_TYPE_APPLE = 0x8A0D - ELEMENT_ARRAY_POINTER_APPLE = 0x8A0E - -############################################################################### - -# Extension #272 -# ??? BUFFER_OBJECT_APPLE appears to be part of the shipping extension, -# but is not in the spec in the registry. Also appears in -# APPLE_object_purgeable below. -APPLE_fence enum: - DRAW_PIXELS_APPLE = 0x8A0A - FENCE_APPLE = 0x8A0B - -############################################################################### - -# Extension #273 -APPLE_vertex_array_object enum: - VERTEX_ARRAY_BINDING_APPLE = 0x85B5 - -############################################################################### - -# Extension #274 -APPLE_vertex_array_range enum: - VERTEX_ARRAY_RANGE_APPLE = 0x851D - VERTEX_ARRAY_RANGE_LENGTH_APPLE = 0x851E - VERTEX_ARRAY_STORAGE_HINT_APPLE = 0x851F - VERTEX_ARRAY_RANGE_POINTER_APPLE = 0x8521 - STORAGE_CLIENT_APPLE = 0x85B4 - STORAGE_CACHED_APPLE = 0x85BE - STORAGE_SHARED_APPLE = 0x85BF - -############################################################################### - -# Extension #275 -APPLE_ycbcr_422 enum: - YCBCR_422_APPLE = 0x85B9 - UNSIGNED_SHORT_8_8_APPLE = 0x85BA - UNSIGNED_SHORT_8_8_REV_APPLE = 0x85BB - -############################################################################### - -# Extension #276 -S3_s3tc enum: - RGB_S3TC = 0x83A0 - RGB4_S3TC = 0x83A1 - RGBA_S3TC = 0x83A2 - RGBA4_S3TC = 0x83A3 - -############################################################################### - -# Extension #277 -ATI_draw_buffers enum: - MAX_DRAW_BUFFERS_ATI = 0x8824 - DRAW_BUFFER0_ATI = 0x8825 - DRAW_BUFFER1_ATI = 0x8826 - DRAW_BUFFER2_ATI = 0x8827 - DRAW_BUFFER3_ATI = 0x8828 - DRAW_BUFFER4_ATI = 0x8829 - DRAW_BUFFER5_ATI = 0x882A - DRAW_BUFFER6_ATI = 0x882B - DRAW_BUFFER7_ATI = 0x882C - DRAW_BUFFER8_ATI = 0x882D - DRAW_BUFFER9_ATI = 0x882E - DRAW_BUFFER10_ATI = 0x882F - DRAW_BUFFER11_ATI = 0x8830 - DRAW_BUFFER12_ATI = 0x8831 - DRAW_BUFFER13_ATI = 0x8832 - DRAW_BUFFER14_ATI = 0x8833 - DRAW_BUFFER15_ATI = 0x8834 - -############################################################################### - -# Extension #278 -# This is really a WGL extension, but if defined there are -# some associated GL enumerants. -ATI_pixel_format_float enum: - TYPE_RGBA_FLOAT_ATI = 0x8820 - COLOR_CLEAR_UNCLAMPED_VALUE_ATI = 0x8835 - -############################################################################### - -# Extension #279 -ATI_texture_env_combine3 enum: - MODULATE_ADD_ATI = 0x8744 - MODULATE_SIGNED_ADD_ATI = 0x8745 - MODULATE_SUBTRACT_ATI = 0x8746 - -############################################################################### - -# Extension #280 -ATI_texture_float enum: - RGBA_FLOAT32_ATI = 0x8814 - RGB_FLOAT32_ATI = 0x8815 - ALPHA_FLOAT32_ATI = 0x8816 - INTENSITY_FLOAT32_ATI = 0x8817 - LUMINANCE_FLOAT32_ATI = 0x8818 - LUMINANCE_ALPHA_FLOAT32_ATI = 0x8819 - RGBA_FLOAT16_ATI = 0x881A - RGB_FLOAT16_ATI = 0x881B - ALPHA_FLOAT16_ATI = 0x881C - INTENSITY_FLOAT16_ATI = 0x881D - LUMINANCE_FLOAT16_ATI = 0x881E - LUMINANCE_ALPHA_FLOAT16_ATI = 0x881F - -############################################################################### - -# Extension #281 (also WGL_NV_float_buffer) -NV_float_buffer enum: - FLOAT_R_NV = 0x8880 - FLOAT_RG_NV = 0x8881 - FLOAT_RGB_NV = 0x8882 - FLOAT_RGBA_NV = 0x8883 - FLOAT_R16_NV = 0x8884 - FLOAT_R32_NV = 0x8885 - FLOAT_RG16_NV = 0x8886 - FLOAT_RG32_NV = 0x8887 - FLOAT_RGB16_NV = 0x8888 - FLOAT_RGB32_NV = 0x8889 - FLOAT_RGBA16_NV = 0x888A - FLOAT_RGBA32_NV = 0x888B - TEXTURE_FLOAT_COMPONENTS_NV = 0x888C - FLOAT_CLEAR_COLOR_VALUE_NV = 0x888D - FLOAT_RGBA_MODE_NV = 0x888E - -############################################################################### - -# Extension #282 -NV_fragment_program enum: - MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868 - FRAGMENT_PROGRAM_NV = 0x8870 - MAX_TEXTURE_COORDS_NV = 0x8871 - MAX_TEXTURE_IMAGE_UNITS_NV = 0x8872 - FRAGMENT_PROGRAM_BINDING_NV = 0x8873 - PROGRAM_ERROR_STRING_NV = 0x8874 - -############################################################################### - -# Extension #283 -NV_half_float enum: - HALF_FLOAT_NV = 0x140B - -############################################################################### - -# Extension #284 -NV_pixel_data_range enum: - WRITE_PIXEL_DATA_RANGE_NV = 0x8878 - READ_PIXEL_DATA_RANGE_NV = 0x8879 - WRITE_PIXEL_DATA_RANGE_LENGTH_NV = 0x887A - READ_PIXEL_DATA_RANGE_LENGTH_NV = 0x887B - WRITE_PIXEL_DATA_RANGE_POINTER_NV = 0x887C - READ_PIXEL_DATA_RANGE_POINTER_NV = 0x887D - -############################################################################### - -# Extension #285 -NV_primitive_restart enum: - PRIMITIVE_RESTART_NV = 0x8558 - PRIMITIVE_RESTART_INDEX_NV = 0x8559 - -############################################################################### - -# Extension #286 -NV_texture_expand_normal enum: - TEXTURE_UNSIGNED_REMAP_MODE_NV = 0x888F - -############################################################################### - -# No new tokens -# Extension #287 -NV_vertex_program2 enum: - -############################################################################### - -# No new tokens -# Extension #288 -ATI_map_object_buffer enum: - -############################################################################### - -# Extension #289 -ATI_separate_stencil enum: - STENCIL_BACK_FUNC_ATI = 0x8800 - STENCIL_BACK_FAIL_ATI = 0x8801 - STENCIL_BACK_PASS_DEPTH_FAIL_ATI = 0x8802 - STENCIL_BACK_PASS_DEPTH_PASS_ATI = 0x8803 - -############################################################################### - -# No new tokens -# Extension #290 -ATI_vertex_attrib_array_object enum: - -############################################################################### - -# No new tokens -# Extension #291 - OpenGL ES only, not in glext.h -# OES_byte_coordinates enum: - -############################################################################### - -# Extension #292 - OpenGL ES only, not in glext.h -# OES_fixed_point enum: -# FIXED_OES = 0x140C - -############################################################################### - -# No new tokens -# Extension #293 - OpenGL ES only, not in glext.h -# OES_single_precision enum: - -############################################################################### - -# Extension #294 - OpenGL ES only, not in glext.h -# OES_compressed_paletted_texture enum: -# PALETTE4_RGB8_OES = 0x8B90 -# PALETTE4_RGBA8_OES = 0x8B91 -# PALETTE4_R5_G6_B5_OES = 0x8B92 -# PALETTE4_RGBA4_OES = 0x8B93 -# PALETTE4_RGB5_A1_OES = 0x8B94 -# PALETTE8_RGB8_OES = 0x8B95 -# PALETTE8_RGBA8_OES = 0x8B96 -# PALETTE8_R5_G6_B5_OES = 0x8B97 -# PALETTE8_RGBA4_OES = 0x8B98 -# PALETTE8_RGB5_A1_OES = 0x8B99 - -############################################################################### - -# Extension #295 - This is an OpenGL ES extension, but also implemented in Mesa -OES_read_format enum: - IMPLEMENTATION_COLOR_READ_TYPE_OES = 0x8B9A - IMPLEMENTATION_COLOR_READ_FORMAT_OES = 0x8B9B - -############################################################################### - -# No new tokens -# Extension #296 - OpenGL ES only, not in glext.h -# OES_query_matrix enum: - -############################################################################### - -# Extension #297 -EXT_depth_bounds_test enum: - DEPTH_BOUNDS_TEST_EXT = 0x8890 - DEPTH_BOUNDS_EXT = 0x8891 - -############################################################################### - -# Extension #298 -EXT_texture_mirror_clamp enum: - MIRROR_CLAMP_EXT = 0x8742 - MIRROR_CLAMP_TO_EDGE_EXT = 0x8743 - MIRROR_CLAMP_TO_BORDER_EXT = 0x8912 - -############################################################################### - -# Extension #299 -EXT_blend_equation_separate enum: - BLEND_EQUATION_RGB_EXT = 0x8009 # alias GL_BLEND_EQUATION_EXT - BLEND_EQUATION_ALPHA_EXT = 0x883D - -############################################################################### - -# Extension #300 -MESA_pack_invert enum: - PACK_INVERT_MESA = 0x8758 - -############################################################################### - -# Extension #301 -MESA_ycbcr_texture enum: - UNSIGNED_SHORT_8_8_MESA = 0x85BA - UNSIGNED_SHORT_8_8_REV_MESA = 0x85BB - YCBCR_MESA = 0x8757 - -############################################################################### - -# Extension #302 -EXT_pixel_buffer_object enum: - PIXEL_PACK_BUFFER_EXT = 0x88EB - PIXEL_UNPACK_BUFFER_EXT = 0x88EC - PIXEL_PACK_BUFFER_BINDING_EXT = 0x88ED - PIXEL_UNPACK_BUFFER_BINDING_EXT = 0x88EF - -############################################################################### - -# No new tokens -# Extension #303 -NV_fragment_program_option enum: - -############################################################################### - -# Extension #304 -NV_fragment_program2 enum: - MAX_PROGRAM_EXEC_INSTRUCTIONS_NV = 0x88F4 - MAX_PROGRAM_CALL_DEPTH_NV = 0x88F5 - MAX_PROGRAM_IF_DEPTH_NV = 0x88F6 - MAX_PROGRAM_LOOP_DEPTH_NV = 0x88F7 - MAX_PROGRAM_LOOP_COUNT_NV = 0x88F8 - -############################################################################### - -# Extension #305 -NV_vertex_program2_option enum: - use NV_fragment_program2 MAX_PROGRAM_EXEC_INSTRUCTIONS_NV - use NV_fragment_program2 MAX_PROGRAM_CALL_DEPTH_NV - -############################################################################### - -# Extension #306 -NV_vertex_program3 enum: - use ARB_vertex_shader MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB - -############################################################################### - -# Extension #307 - GLX_SGIX_hyperpipe -# Extension #308 - GLX_MESA_agp_offset - -# Extension #309 - GL_EXT_texture_compression_dxt1 (OpenGL ES only, subset of _s3tc version) -# use EXT_texture_compression_s3tc COMPRESSED_RGB_S3TC_DXT1_EXT -# use EXT_texture_compression_s3tc COMPRESSED_RGBA_S3TC_DXT1_EXT - -############################################################################### - -# Extension #310 -EXT_framebuffer_object enum: - INVALID_FRAMEBUFFER_OPERATION_EXT = 0x0506 - MAX_RENDERBUFFER_SIZE_EXT = 0x84E8 - FRAMEBUFFER_BINDING_EXT = 0x8CA6 - RENDERBUFFER_BINDING_EXT = 0x8CA7 - FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT = 0x8CD0 - FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT = 0x8CD1 - FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT = 0x8CD2 - FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT = 0x8CD3 - FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT = 0x8CD4 - FRAMEBUFFER_COMPLETE_EXT = 0x8CD5 - FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT = 0x8CD6 - FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT = 0x8CD7 -## Removed 2005/09/26 in revision #117 of the extension: -## FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT = 0x8CD8 - FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT = 0x8CD9 - FRAMEBUFFER_INCOMPLETE_FORMATS_EXT = 0x8CDA - FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT = 0x8CDB - FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT = 0x8CDC - FRAMEBUFFER_UNSUPPORTED_EXT = 0x8CDD -## Removed 2005/05/31 in revision #113 of the extension: -## FRAMEBUFFER_STATUS_ERROR_EXT = 0x8CDE - MAX_COLOR_ATTACHMENTS_EXT = 0x8CDF - COLOR_ATTACHMENT0_EXT = 0x8CE0 - COLOR_ATTACHMENT1_EXT = 0x8CE1 - COLOR_ATTACHMENT2_EXT = 0x8CE2 - COLOR_ATTACHMENT3_EXT = 0x8CE3 - COLOR_ATTACHMENT4_EXT = 0x8CE4 - COLOR_ATTACHMENT5_EXT = 0x8CE5 - COLOR_ATTACHMENT6_EXT = 0x8CE6 - COLOR_ATTACHMENT7_EXT = 0x8CE7 - COLOR_ATTACHMENT8_EXT = 0x8CE8 - COLOR_ATTACHMENT9_EXT = 0x8CE9 - COLOR_ATTACHMENT10_EXT = 0x8CEA - COLOR_ATTACHMENT11_EXT = 0x8CEB - COLOR_ATTACHMENT12_EXT = 0x8CEC - COLOR_ATTACHMENT13_EXT = 0x8CED - COLOR_ATTACHMENT14_EXT = 0x8CEE - COLOR_ATTACHMENT15_EXT = 0x8CEF - DEPTH_ATTACHMENT_EXT = 0x8D00 - STENCIL_ATTACHMENT_EXT = 0x8D20 - FRAMEBUFFER_EXT = 0x8D40 - RENDERBUFFER_EXT = 0x8D41 - RENDERBUFFER_WIDTH_EXT = 0x8D42 - RENDERBUFFER_HEIGHT_EXT = 0x8D43 - RENDERBUFFER_INTERNAL_FORMAT_EXT = 0x8D44 -# removed STENCIL_INDEX_EXT = 0x8D45 in rev. #114 of the spec - STENCIL_INDEX1_EXT = 0x8D46 - STENCIL_INDEX4_EXT = 0x8D47 - STENCIL_INDEX8_EXT = 0x8D48 - STENCIL_INDEX16_EXT = 0x8D49 - RENDERBUFFER_RED_SIZE_EXT = 0x8D50 - RENDERBUFFER_GREEN_SIZE_EXT = 0x8D51 - RENDERBUFFER_BLUE_SIZE_EXT = 0x8D52 - RENDERBUFFER_ALPHA_SIZE_EXT = 0x8D53 - RENDERBUFFER_DEPTH_SIZE_EXT = 0x8D54 - RENDERBUFFER_STENCIL_SIZE_EXT = 0x8D55 - -############################################################################### - -# No new tokens -# Extension #311 -GREMEDY_string_marker enum: - -############################################################################### - -# Extension #312 -EXT_packed_depth_stencil enum: - DEPTH_STENCIL_EXT = 0x84F9 - UNSIGNED_INT_24_8_EXT = 0x84FA - DEPTH24_STENCIL8_EXT = 0x88F0 - TEXTURE_STENCIL_SIZE_EXT = 0x88F1 - -############################################################################### - -# Extension #313 - WGL_3DL_stereo_control - -############################################################################### - -# Extension #314 -EXT_stencil_clear_tag enum: - STENCIL_TAG_BITS_EXT = 0x88F2 - STENCIL_CLEAR_TAG_VALUE_EXT = 0x88F3 - -############################################################################### - -# Extension #315 -EXT_texture_sRGB enum: - SRGB_EXT = 0x8C40 - SRGB8_EXT = 0x8C41 - SRGB_ALPHA_EXT = 0x8C42 - SRGB8_ALPHA8_EXT = 0x8C43 - SLUMINANCE_ALPHA_EXT = 0x8C44 - SLUMINANCE8_ALPHA8_EXT = 0x8C45 - SLUMINANCE_EXT = 0x8C46 - SLUMINANCE8_EXT = 0x8C47 - COMPRESSED_SRGB_EXT = 0x8C48 - COMPRESSED_SRGB_ALPHA_EXT = 0x8C49 - COMPRESSED_SLUMINANCE_EXT = 0x8C4A - COMPRESSED_SLUMINANCE_ALPHA_EXT = 0x8C4B - COMPRESSED_SRGB_S3TC_DXT1_EXT = 0x8C4C - COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 0x8C4D - COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E - COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F - -############################################################################### - -# Extension #316 -EXT_framebuffer_blit enum: - READ_FRAMEBUFFER_EXT = 0x8CA8 - DRAW_FRAMEBUFFER_EXT = 0x8CA9 - DRAW_FRAMEBUFFER_BINDING_EXT = GL_FRAMEBUFFER_BINDING_EXT - READ_FRAMEBUFFER_BINDING_EXT = 0x8CAA - -############################################################################### - -# Extension #317 -EXT_framebuffer_multisample enum: - RENDERBUFFER_SAMPLES_EXT = 0x8CAB - FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT = 0x8D56 - MAX_SAMPLES_EXT = 0x8D57 - -############################################################################### - -# Extension #318 -MESAX_texture_stack enum: - TEXTURE_1D_STACK_MESAX = 0x8759 - TEXTURE_2D_STACK_MESAX = 0x875A - PROXY_TEXTURE_1D_STACK_MESAX = 0x875B - PROXY_TEXTURE_2D_STACK_MESAX = 0x875C - TEXTURE_1D_STACK_BINDING_MESAX = 0x875D - TEXTURE_2D_STACK_BINDING_MESAX = 0x875E - -############################################################################### - -# Extension #319 -EXT_timer_query enum: - TIME_ELAPSED_EXT = 0x88BF - -############################################################################### - -# No new tokens -# Extension #320 -EXT_gpu_program_parameters enum: - -############################################################################### - -# Extension #321 -APPLE_flush_buffer_range enum: - BUFFER_SERIALIZED_MODIFY_APPLE = 0x8A12 - BUFFER_FLUSHING_UNMAP_APPLE = 0x8A13 - -############################################################################### - -# Extension #322 -NV_gpu_program4 enum: - MIN_PROGRAM_TEXEL_OFFSET_NV = 0x8904 - MAX_PROGRAM_TEXEL_OFFSET_NV = 0x8905 - PROGRAM_ATTRIB_COMPONENTS_NV = 0x8906 - PROGRAM_RESULT_COMPONENTS_NV = 0x8907 - MAX_PROGRAM_ATTRIB_COMPONENTS_NV = 0x8908 - MAX_PROGRAM_RESULT_COMPONENTS_NV = 0x8909 - MAX_PROGRAM_GENERIC_ATTRIBS_NV = 0x8DA5 - MAX_PROGRAM_GENERIC_RESULTS_NV = 0x8DA6 - -############################################################################### - -# Extension #323 -NV_geometry_program4 enum: - LINES_ADJACENCY_EXT = 0x000A - LINE_STRIP_ADJACENCY_EXT = 0x000B - TRIANGLES_ADJACENCY_EXT = 0x000C - TRIANGLE_STRIP_ADJACENCY_EXT = 0x000D - GEOMETRY_PROGRAM_NV = 0x8C26 - MAX_PROGRAM_OUTPUT_VERTICES_NV = 0x8C27 - MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV = 0x8C28 - GEOMETRY_VERTICES_OUT_EXT = 0x8DDA - GEOMETRY_INPUT_TYPE_EXT = 0x8DDB - GEOMETRY_OUTPUT_TYPE_EXT = 0x8DDC - MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT = 0x8C29 - FRAMEBUFFER_ATTACHMENT_LAYERED_EXT = 0x8DA7 - FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT = 0x8DA8 - FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT = 0x8DA9 - FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT = 0x8CD4 - PROGRAM_POINT_SIZE_EXT = 0x8642 - -############################################################################### - -# Extension #324 -EXT_geometry_shader4 enum: - GEOMETRY_SHADER_EXT = 0x8DD9 - use NV_geometry_program4 GEOMETRY_VERTICES_OUT_EXT - use NV_geometry_program4 GEOMETRY_INPUT_TYPE_EXT - use NV_geometry_program4 GEOMETRY_OUTPUT_TYPE_EXT - use NV_geometry_program4 MAX_GEOMETRY_TEXTURE_IMAGE_UNITS_EXT - MAX_GEOMETRY_VARYING_COMPONENTS_EXT = 0x8DDD - MAX_VERTEX_VARYING_COMPONENTS_EXT = 0x8DDE - MAX_VARYING_COMPONENTS_EXT = 0x8B4B - MAX_GEOMETRY_UNIFORM_COMPONENTS_EXT = 0x8DDF - MAX_GEOMETRY_OUTPUT_VERTICES_EXT = 0x8DE0 - MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS_EXT = 0x8DE1 - use NV_geometry_program4 LINES_ADJACENCY_EXT - use NV_geometry_program4 LINE_STRIP_ADJACENCY_EXT - use NV_geometry_program4 TRIANGLES_ADJACENCY_EXT - use NV_geometry_program4 TRIANGLE_STRIP_ADJACENCY_EXT - use NV_geometry_program4 FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS_EXT - use NV_geometry_program4 FRAMEBUFFER_INCOMPLETE_LAYER_COUNT_EXT - use NV_geometry_program4 FRAMEBUFFER_ATTACHMENT_LAYERED_EXT - use NV_geometry_program4 FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT - use NV_geometry_program4 PROGRAM_POINT_SIZE_EXT - -############################################################################### - -# Extension #325 -NV_vertex_program4 enum: - VERTEX_ATTRIB_ARRAY_INTEGER_NV = 0x88FD - -############################################################################### - -# Extension #326 -EXT_gpu_shader4 enum: - SAMPLER_1D_ARRAY_EXT = 0x8DC0 - SAMPLER_2D_ARRAY_EXT = 0x8DC1 - SAMPLER_BUFFER_EXT = 0x8DC2 - SAMPLER_1D_ARRAY_SHADOW_EXT = 0x8DC3 - SAMPLER_2D_ARRAY_SHADOW_EXT = 0x8DC4 - SAMPLER_CUBE_SHADOW_EXT = 0x8DC5 - UNSIGNED_INT_VEC2_EXT = 0x8DC6 - UNSIGNED_INT_VEC3_EXT = 0x8DC7 - UNSIGNED_INT_VEC4_EXT = 0x8DC8 - INT_SAMPLER_1D_EXT = 0x8DC9 - INT_SAMPLER_2D_EXT = 0x8DCA - INT_SAMPLER_3D_EXT = 0x8DCB - INT_SAMPLER_CUBE_EXT = 0x8DCC - INT_SAMPLER_2D_RECT_EXT = 0x8DCD - INT_SAMPLER_1D_ARRAY_EXT = 0x8DCE - INT_SAMPLER_2D_ARRAY_EXT = 0x8DCF - INT_SAMPLER_BUFFER_EXT = 0x8DD0 - UNSIGNED_INT_SAMPLER_1D_EXT = 0x8DD1 - UNSIGNED_INT_SAMPLER_2D_EXT = 0x8DD2 - UNSIGNED_INT_SAMPLER_3D_EXT = 0x8DD3 - UNSIGNED_INT_SAMPLER_CUBE_EXT = 0x8DD4 - UNSIGNED_INT_SAMPLER_2D_RECT_EXT = 0x8DD5 - UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT = 0x8DD6 - UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT = 0x8DD7 - UNSIGNED_INT_SAMPLER_BUFFER_EXT = 0x8DD8 - -############################################################################### - -# No new tokens -# Extension #327 -EXT_draw_instanced enum: - -############################################################################### - -# Extension #328 -EXT_packed_float enum: - R11F_G11F_B10F_EXT = 0x8C3A - UNSIGNED_INT_10F_11F_11F_REV_EXT = 0x8C3B - RGBA_SIGNED_COMPONENTS_EXT = 0x8C3C - -############################################################################### - -# Extension #329 -EXT_texture_array enum: - TEXTURE_1D_ARRAY_EXT = 0x8C18 - PROXY_TEXTURE_1D_ARRAY_EXT = 0x8C19 - TEXTURE_2D_ARRAY_EXT = 0x8C1A - PROXY_TEXTURE_2D_ARRAY_EXT = 0x8C1B - TEXTURE_BINDING_1D_ARRAY_EXT = 0x8C1C - TEXTURE_BINDING_2D_ARRAY_EXT = 0x8C1D - MAX_ARRAY_TEXTURE_LAYERS_EXT = 0x88FF - COMPARE_REF_DEPTH_TO_TEXTURE_EXT = 0x884E - use NV_geometry_program4 FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_EXT - -############################################################################### - -# Extension #330 -EXT_texture_buffer_object enum: - TEXTURE_BUFFER_EXT = 0x8C2A - MAX_TEXTURE_BUFFER_SIZE_EXT = 0x8C2B - TEXTURE_BINDING_BUFFER_EXT = 0x8C2C - TEXTURE_BUFFER_DATA_STORE_BINDING_EXT = 0x8C2D - TEXTURE_BUFFER_FORMAT_EXT = 0x8C2E - -############################################################################### - -# Extension #331 -EXT_texture_compression_latc enum: - COMPRESSED_LUMINANCE_LATC1_EXT = 0x8C70 - COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT = 0x8C71 - COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C72 - COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_EXT = 0x8C73 - -############################################################################### - -# Extension #332 -EXT_texture_compression_rgtc enum: - COMPRESSED_RED_RGTC1_EXT = 0x8DBB - COMPRESSED_SIGNED_RED_RGTC1_EXT = 0x8DBC - COMPRESSED_RED_GREEN_RGTC2_EXT = 0x8DBD - COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT = 0x8DBE - -############################################################################### - -# Extension #333 -EXT_texture_shared_exponent enum: - RGB9_E5_EXT = 0x8C3D - UNSIGNED_INT_5_9_9_9_REV_EXT = 0x8C3E - TEXTURE_SHARED_SIZE_EXT = 0x8C3F - -############################################################################### - -# Extension #334 -NV_depth_buffer_float enum: - DEPTH_COMPONENT32F_NV = 0x8DAB - DEPTH32F_STENCIL8_NV = 0x8DAC - FLOAT_32_UNSIGNED_INT_24_8_REV_NV = 0x8DAD - DEPTH_BUFFER_FLOAT_MODE_NV = 0x8DAF - -############################################################################### - -# No new tokens -# Extension #335 -NV_fragment_program4 enum: - -############################################################################### - -# Extension #336 -NV_framebuffer_multisample_coverage enum: - RENDERBUFFER_COVERAGE_SAMPLES_NV = 0x8CAB - RENDERBUFFER_COLOR_SAMPLES_NV = 0x8E10 - MAX_MULTISAMPLE_COVERAGE_MODES_NV = 0x8E11 - MULTISAMPLE_COVERAGE_MODES_NV = 0x8E12 - -############################################################################### - -# Extension #337 -# ??? Also WGL/GLX extensions ??? -EXT_framebuffer_sRGB enum: - FRAMEBUFFER_SRGB_EXT = 0x8DB9 - FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x8DBA - -############################################################################### - -# No new tokens -# Extension #338 -NV_geometry_shader4 enum: - -############################################################################### - -# Extension #339 -NV_parameter_buffer_object enum: - MAX_PROGRAM_PARAMETER_BUFFER_BINDINGS_NV = 0x8DA0 - MAX_PROGRAM_PARAMETER_BUFFER_SIZE_NV = 0x8DA1 - VERTEX_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA2 - GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA3 - FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA4 - -############################################################################### - -# No new tokens -# Extension #340 -EXT_draw_buffers2 enum: - -############################################################################### - -# Extension #341 -NV_transform_feedback enum: - BACK_PRIMARY_COLOR_NV = 0x8C77 - BACK_SECONDARY_COLOR_NV = 0x8C78 - TEXTURE_COORD_NV = 0x8C79 - CLIP_DISTANCE_NV = 0x8C7A - VERTEX_ID_NV = 0x8C7B - PRIMITIVE_ID_NV = 0x8C7C - GENERIC_ATTRIB_NV = 0x8C7D - TRANSFORM_FEEDBACK_ATTRIBS_NV = 0x8C7E - TRANSFORM_FEEDBACK_BUFFER_MODE_NV = 0x8C7F - MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_NV = 0x8C80 - ACTIVE_VARYINGS_NV = 0x8C81 - ACTIVE_VARYING_MAX_LENGTH_NV = 0x8C82 - TRANSFORM_FEEDBACK_VARYINGS_NV = 0x8C83 - TRANSFORM_FEEDBACK_BUFFER_START_NV = 0x8C84 - TRANSFORM_FEEDBACK_BUFFER_SIZE_NV = 0x8C85 - TRANSFORM_FEEDBACK_RECORD_NV = 0x8C86 - PRIMITIVES_GENERATED_NV = 0x8C87 - TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_NV = 0x8C88 - RASTERIZER_DISCARD_NV = 0x8C89 - MAX_TRANSFORM_FEEDBACK_INTERLEAVED_ATTRIBS_NV = 0x8C8A - MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_NV = 0x8C8B - INTERLEAVED_ATTRIBS_NV = 0x8C8C - SEPARATE_ATTRIBS_NV = 0x8C8D - TRANSFORM_FEEDBACK_BUFFER_NV = 0x8C8E - TRANSFORM_FEEDBACK_BUFFER_BINDING_NV = 0x8C8F - LAYER_NV = 0x8DAA - NEXT_BUFFER_NV = -2 # Requires ARB_transform_feedback3 - SKIP_COMPONENTS4_NV = -3 # Requires ARB_transform_feedback3 - SKIP_COMPONENTS3_NV = -4 # Requires ARB_transform_feedback3 - SKIP_COMPONENTS2_NV = -5 # Requires ARB_transform_feedback3 - SKIP_COMPONENTS1_NV = -6 # Requires ARB_transform_feedback3 - -############################################################################### - -# Extension #342 -EXT_bindable_uniform enum: - MAX_VERTEX_BINDABLE_UNIFORMS_EXT = 0x8DE2 - MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT = 0x8DE3 - MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT = 0x8DE4 - MAX_BINDABLE_UNIFORM_SIZE_EXT = 0x8DED - UNIFORM_BUFFER_EXT = 0x8DEE - UNIFORM_BUFFER_BINDING_EXT = 0x8DEF - -############################################################################### - -# Extension #343 -EXT_texture_integer enum: - RGBA32UI_EXT = 0x8D70 - RGB32UI_EXT = 0x8D71 - ALPHA32UI_EXT = 0x8D72 - INTENSITY32UI_EXT = 0x8D73 - LUMINANCE32UI_EXT = 0x8D74 - LUMINANCE_ALPHA32UI_EXT = 0x8D75 - RGBA16UI_EXT = 0x8D76 - RGB16UI_EXT = 0x8D77 - ALPHA16UI_EXT = 0x8D78 - INTENSITY16UI_EXT = 0x8D79 - LUMINANCE16UI_EXT = 0x8D7A - LUMINANCE_ALPHA16UI_EXT = 0x8D7B - RGBA8UI_EXT = 0x8D7C - RGB8UI_EXT = 0x8D7D - ALPHA8UI_EXT = 0x8D7E - INTENSITY8UI_EXT = 0x8D7F - LUMINANCE8UI_EXT = 0x8D80 - LUMINANCE_ALPHA8UI_EXT = 0x8D81 - RGBA32I_EXT = 0x8D82 - RGB32I_EXT = 0x8D83 - ALPHA32I_EXT = 0x8D84 - INTENSITY32I_EXT = 0x8D85 - LUMINANCE32I_EXT = 0x8D86 - LUMINANCE_ALPHA32I_EXT = 0x8D87 - RGBA16I_EXT = 0x8D88 - RGB16I_EXT = 0x8D89 - ALPHA16I_EXT = 0x8D8A - INTENSITY16I_EXT = 0x8D8B - LUMINANCE16I_EXT = 0x8D8C - LUMINANCE_ALPHA16I_EXT = 0x8D8D - RGBA8I_EXT = 0x8D8E - RGB8I_EXT = 0x8D8F - ALPHA8I_EXT = 0x8D90 - INTENSITY8I_EXT = 0x8D91 - LUMINANCE8I_EXT = 0x8D92 - LUMINANCE_ALPHA8I_EXT = 0x8D93 - RED_INTEGER_EXT = 0x8D94 - GREEN_INTEGER_EXT = 0x8D95 - BLUE_INTEGER_EXT = 0x8D96 - ALPHA_INTEGER_EXT = 0x8D97 - RGB_INTEGER_EXT = 0x8D98 - RGBA_INTEGER_EXT = 0x8D99 - BGR_INTEGER_EXT = 0x8D9A - BGRA_INTEGER_EXT = 0x8D9B - LUMINANCE_INTEGER_EXT = 0x8D9C - LUMINANCE_ALPHA_INTEGER_EXT = 0x8D9D - RGBA_INTEGER_MODE_EXT = 0x8D9E - -############################################################################### - -# Extension #344 - GLX_EXT_texture_from_pixmap - -############################################################################### - -# No new tokens -# Extension #345 -GREMEDY_frame_terminator enum: - -############################################################################### - -# Extension #346 -NV_conditional_render enum: - QUERY_WAIT_NV = 0x8E13 - QUERY_NO_WAIT_NV = 0x8E14 - QUERY_BY_REGION_WAIT_NV = 0x8E15 - QUERY_BY_REGION_NO_WAIT_NV = 0x8E16 - -############################################################################### - -# Extension #347 -NV_present_video enum: - FRAME_NV = 0x8E26 - FIELDS_NV = 0x8E27 - CURRENT_TIME_NV = 0x8E28 - NUM_FILL_STREAMS_NV = 0x8E29 - PRESENT_TIME_NV = 0x8E2A - PRESENT_DURATION_NV = 0x8E2B - -############################################################################### - -# Extension #348 - GLX_NV_video_out -# Extension #349 - WGL_NV_video_out -# Extension #350 - GLX_NV_swap_group -# Extension #351 - WGL_NV_swap_group - -############################################################################### - -# Extension #352 -EXT_transform_feedback enum: - TRANSFORM_FEEDBACK_BUFFER_EXT = 0x8C8E - TRANSFORM_FEEDBACK_BUFFER_START_EXT = 0x8C84 - TRANSFORM_FEEDBACK_BUFFER_SIZE_EXT = 0x8C85 - TRANSFORM_FEEDBACK_BUFFER_BINDING_EXT = 0x8C8F - INTERLEAVED_ATTRIBS_EXT = 0x8C8C - SEPARATE_ATTRIBS_EXT = 0x8C8D - PRIMITIVES_GENERATED_EXT = 0x8C87 - TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT = 0x8C88 - RASTERIZER_DISCARD_EXT = 0x8C89 - MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT = 0x8C8A - MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT = 0x8C8B - MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT = 0x8C80 - TRANSFORM_FEEDBACK_VARYINGS_EXT = 0x8C83 - TRANSFORM_FEEDBACK_BUFFER_MODE_EXT = 0x8C7F - TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT = 0x8C76 - -############################################################################### - -# Extension #353 -EXT_direct_state_access enum: - PROGRAM_MATRIX_EXT = 0x8E2D - TRANSPOSE_PROGRAM_MATRIX_EXT = 0x8E2E - PROGRAM_MATRIX_STACK_DEPTH_EXT = 0x8E2F - -############################################################################### - -# Extension #354 -EXT_vertex_array_bgra enum: - use VERSION_1_2 BGRA - -############################################################################### - -# Extension #355 - WGL_NV_gpu_affinity - -############################################################################### - -# Extension #356 -EXT_texture_swizzle enum: - TEXTURE_SWIZZLE_R_EXT = 0x8E42 - TEXTURE_SWIZZLE_G_EXT = 0x8E43 - TEXTURE_SWIZZLE_B_EXT = 0x8E44 - TEXTURE_SWIZZLE_A_EXT = 0x8E45 - TEXTURE_SWIZZLE_RGBA_EXT = 0x8E46 - -############################################################################### - -# Extension #357 -NV_explicit_multisample enum: - SAMPLE_POSITION_NV = 0x8E50 - SAMPLE_MASK_NV = 0x8E51 - SAMPLE_MASK_VALUE_NV = 0x8E52 - TEXTURE_BINDING_RENDERBUFFER_NV = 0x8E53 - TEXTURE_RENDERBUFFER_DATA_STORE_BINDING_NV = 0x8E54 - TEXTURE_RENDERBUFFER_NV = 0x8E55 - SAMPLER_RENDERBUFFER_NV = 0x8E56 - INT_SAMPLER_RENDERBUFFER_NV = 0x8E57 - UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV = 0x8E58 - MAX_SAMPLE_MASK_WORDS_NV = 0x8E59 - -############################################################################### - -# Extension #358 -NV_transform_feedback2 enum: - TRANSFORM_FEEDBACK_NV = 0x8E22 - TRANSFORM_FEEDBACK_BUFFER_PAUSED_NV = 0x8E23 - TRANSFORM_FEEDBACK_BUFFER_ACTIVE_NV = 0x8E24 - TRANSFORM_FEEDBACK_BINDING_NV = 0x8E25 - -############################################################################### - -# Extension #359 -ATI_meminfo enum: - VBO_FREE_MEMORY_ATI = 0x87FB - TEXTURE_FREE_MEMORY_ATI = 0x87FC - RENDERBUFFER_FREE_MEMORY_ATI = 0x87FD - -############################################################################### - -# Extension #360 -AMD_performance_monitor enum: - COUNTER_TYPE_AMD = 0x8BC0 - COUNTER_RANGE_AMD = 0x8BC1 - UNSIGNED_INT64_AMD = 0x8BC2 - PERCENTAGE_AMD = 0x8BC3 - PERFMON_RESULT_AVAILABLE_AMD = 0x8BC4 - PERFMON_RESULT_SIZE_AMD = 0x8BC5 - PERFMON_RESULT_AMD = 0x8BC6 - -############################################################################### - -# Extension #361 - WGL_AMD_gpu_association - -############################################################################### - -# No new tokens -# Extension #362 -AMD_texture_texture4 enum: - -############################################################################### - -# Extension #363 -AMD_vertex_shader_tesselator enum: - SAMPLER_BUFFER_AMD = 0x9001 - INT_SAMPLER_BUFFER_AMD = 0x9002 - UNSIGNED_INT_SAMPLER_BUFFER_AMD = 0x9003 - TESSELLATION_MODE_AMD = 0x9004 - TESSELLATION_FACTOR_AMD = 0x9005 - DISCRETE_AMD = 0x9006 - CONTINUOUS_AMD = 0x9007 - -############################################################################### - -# Extension #364 -EXT_provoking_vertex enum: - QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION_EXT = 0x8E4C - FIRST_VERTEX_CONVENTION_EXT = 0x8E4D - LAST_VERTEX_CONVENTION_EXT = 0x8E4E - PROVOKING_VERTEX_EXT = 0x8E4F - -############################################################################### - -# Extension #365 -EXT_texture_snorm enum: - ALPHA_SNORM = 0x9010 - LUMINANCE_SNORM = 0x9011 - LUMINANCE_ALPHA_SNORM = 0x9012 - INTENSITY_SNORM = 0x9013 - ALPHA8_SNORM = 0x9014 - LUMINANCE8_SNORM = 0x9015 - LUMINANCE8_ALPHA8_SNORM = 0x9016 - INTENSITY8_SNORM = 0x9017 - ALPHA16_SNORM = 0x9018 - LUMINANCE16_SNORM = 0x9019 - LUMINANCE16_ALPHA16_SNORM = 0x901A - INTENSITY16_SNORM = 0x901B - use VERSION_3_1 RED_SNORM - use VERSION_3_1 RG_SNORM - use VERSION_3_1 RGB_SNORM - use VERSION_3_1 RGBA_SNORM - use VERSION_3_1 R8_SNORM - use VERSION_3_1 RG8_SNORM - use VERSION_3_1 RGB8_SNORM - use VERSION_3_1 RGBA8_SNORM - use VERSION_3_1 R16_SNORM - use VERSION_3_1 RG16_SNORM - use VERSION_3_1 RGB16_SNORM - use VERSION_3_1 RGBA16_SNORM - use VERSION_3_1 SIGNED_NORMALIZED - -############################################################################### - -# No new tokens -# Extension #366 -AMD_draw_buffers_blend enum: - -############################################################################### - -# Extension #367 -APPLE_texture_range enum: - TEXTURE_RANGE_LENGTH_APPLE = 0x85B7 - TEXTURE_RANGE_POINTER_APPLE = 0x85B8 - TEXTURE_STORAGE_HINT_APPLE = 0x85BC - STORAGE_PRIVATE_APPLE = 0x85BD - use APPLE_vertex_array_range STORAGE_CACHED_APPLE - use APPLE_vertex_array_range STORAGE_SHARED_APPLE - -############################################################################### - -# Extension #368 -APPLE_float_pixels enum: - HALF_APPLE = 0x140B - RGBA_FLOAT32_APPLE = 0x8814 - RGB_FLOAT32_APPLE = 0x8815 - ALPHA_FLOAT32_APPLE = 0x8816 - INTENSITY_FLOAT32_APPLE = 0x8817 - LUMINANCE_FLOAT32_APPLE = 0x8818 - LUMINANCE_ALPHA_FLOAT32_APPLE = 0x8819 - RGBA_FLOAT16_APPLE = 0x881A - RGB_FLOAT16_APPLE = 0x881B - ALPHA_FLOAT16_APPLE = 0x881C - INTENSITY_FLOAT16_APPLE = 0x881D - LUMINANCE_FLOAT16_APPLE = 0x881E - LUMINANCE_ALPHA_FLOAT16_APPLE = 0x881F - COLOR_FLOAT_APPLE = 0x8A0F - -############################################################################### - -# Extension #369 -APPLE_vertex_program_evaluators enum: - VERTEX_ATTRIB_MAP1_APPLE = 0x8A00 - VERTEX_ATTRIB_MAP2_APPLE = 0x8A01 - VERTEX_ATTRIB_MAP1_SIZE_APPLE = 0x8A02 - VERTEX_ATTRIB_MAP1_COEFF_APPLE = 0x8A03 - VERTEX_ATTRIB_MAP1_ORDER_APPLE = 0x8A04 - VERTEX_ATTRIB_MAP1_DOMAIN_APPLE = 0x8A05 - VERTEX_ATTRIB_MAP2_SIZE_APPLE = 0x8A06 - VERTEX_ATTRIB_MAP2_COEFF_APPLE = 0x8A07 - VERTEX_ATTRIB_MAP2_ORDER_APPLE = 0x8A08 - VERTEX_ATTRIB_MAP2_DOMAIN_APPLE = 0x8A09 - -############################################################################### - -# Extension #370 -APPLE_aux_depth_stencil enum: - AUX_DEPTH_STENCIL_APPLE = 0x8A14 - -############################################################################### - -# Extension #371 -APPLE_object_purgeable enum: - BUFFER_OBJECT_APPLE = 0x85B3 - RELEASED_APPLE = 0x8A19 - VOLATILE_APPLE = 0x8A1A - RETAINED_APPLE = 0x8A1B - UNDEFINED_APPLE = 0x8A1C - PURGEABLE_APPLE = 0x8A1D - -############################################################################### - -# Extension #372 -APPLE_row_bytes enum: - PACK_ROW_BYTES_APPLE = 0x8A15 - UNPACK_ROW_BYTES_APPLE = 0x8A16 - -############################################################################### - -# Extension #373 -APPLE_rgb_422 enum: - RGB_422_APPLE = 0x8A1F - use APPLE_ycbcr_422 UNSIGNED_SHORT_8_8_APPLE - use APPLE_ycbcr_422 UNSIGNED_SHORT_8_8_REV_APPLE - -############################################################################### - -# Extension #374 - -NV_video_capture enum: - VIDEO_BUFFER_NV = 0x9020 - VIDEO_BUFFER_BINDING_NV = 0x9021 - FIELD_UPPER_NV = 0x9022 - FIELD_LOWER_NV = 0x9023 - NUM_VIDEO_CAPTURE_STREAMS_NV = 0x9024 - NEXT_VIDEO_CAPTURE_BUFFER_STATUS_NV = 0x9025 - VIDEO_CAPTURE_TO_422_SUPPORTED_NV = 0x9026 - LAST_VIDEO_CAPTURE_STATUS_NV = 0x9027 - VIDEO_BUFFER_PITCH_NV = 0x9028 - VIDEO_COLOR_CONVERSION_MATRIX_NV = 0x9029 - VIDEO_COLOR_CONVERSION_MAX_NV = 0x902A - VIDEO_COLOR_CONVERSION_MIN_NV = 0x902B - VIDEO_COLOR_CONVERSION_OFFSET_NV = 0x902C - VIDEO_BUFFER_INTERNAL_FORMAT_NV = 0x902D - PARTIAL_SUCCESS_NV = 0x902E - SUCCESS_NV = 0x902F - FAILURE_NV = 0x9030 - YCBYCR8_422_NV = 0x9031 - YCBAYCR8A_4224_NV = 0x9032 - Z6Y10Z6CB10Z6Y10Z6CR10_422_NV = 0x9033 - Z6Y10Z6CB10Z6A10Z6Y10Z6CR10Z6A10_4224_NV = 0x9034 - Z4Y12Z4CB12Z4Y12Z4CR12_422_NV = 0x9035 - Z4Y12Z4CB12Z4A12Z4Y12Z4CR12Z4A12_4224_NV = 0x9036 - Z4Y12Z4CB12Z4CR12_444_NV = 0x9037 - VIDEO_CAPTURE_FRAME_WIDTH_NV = 0x9038 - VIDEO_CAPTURE_FRAME_HEIGHT_NV = 0x9039 - VIDEO_CAPTURE_FIELD_UPPER_HEIGHT_NV = 0x903A - VIDEO_CAPTURE_FIELD_LOWER_HEIGHT_NV = 0x903B - VIDEO_CAPTURE_SURFACE_ORIGIN_NV = 0x903C - -############################################################################### - -# Extension #375 - GLX_EXT_swap_control - -############################################################################### - -# No new tokens -# Extension #376 - also GLX_NV_copy_image, WGL_NV_copy_image -NV_copy_image enum: - -############################################################################### - -# Extension #377 -EXT_separate_shader_objects enum: - ACTIVE_PROGRAM_EXT = 0x8B8D - -############################################################################### - -# No new tokens -# Extension #378 -NV_parameter_buffer_object2 enum: - -############################################################################### - -# Extension #379 -NV_shader_buffer_load enum: - BUFFER_GPU_ADDRESS_NV = 0x8F1D - GPU_ADDRESS_NV = 0x8F34 - MAX_SHADER_BUFFER_ADDRESS_NV = 0x8F35 - -############################################################################### - -# Extension #380 -NV_vertex_buffer_unified_memory enum: - VERTEX_ATTRIB_ARRAY_UNIFIED_NV = 0x8F1E - ELEMENT_ARRAY_UNIFIED_NV = 0x8F1F - VERTEX_ATTRIB_ARRAY_ADDRESS_NV = 0x8F20 - VERTEX_ARRAY_ADDRESS_NV = 0x8F21 - NORMAL_ARRAY_ADDRESS_NV = 0x8F22 - COLOR_ARRAY_ADDRESS_NV = 0x8F23 - INDEX_ARRAY_ADDRESS_NV = 0x8F24 - TEXTURE_COORD_ARRAY_ADDRESS_NV = 0x8F25 - EDGE_FLAG_ARRAY_ADDRESS_NV = 0x8F26 - SECONDARY_COLOR_ARRAY_ADDRESS_NV = 0x8F27 - FOG_COORD_ARRAY_ADDRESS_NV = 0x8F28 - ELEMENT_ARRAY_ADDRESS_NV = 0x8F29 - VERTEX_ATTRIB_ARRAY_LENGTH_NV = 0x8F2A - VERTEX_ARRAY_LENGTH_NV = 0x8F2B - NORMAL_ARRAY_LENGTH_NV = 0x8F2C - COLOR_ARRAY_LENGTH_NV = 0x8F2D - INDEX_ARRAY_LENGTH_NV = 0x8F2E - TEXTURE_COORD_ARRAY_LENGTH_NV = 0x8F2F - EDGE_FLAG_ARRAY_LENGTH_NV = 0x8F30 - SECONDARY_COLOR_ARRAY_LENGTH_NV = 0x8F31 - FOG_COORD_ARRAY_LENGTH_NV = 0x8F32 - ELEMENT_ARRAY_LENGTH_NV = 0x8F33 - DRAW_INDIRECT_UNIFIED_NV = 0x8F40 # Requires ARB_draw_indirect - DRAW_INDIRECT_ADDRESS_NV = 0x8F41 # Requires ARB_draw_indirect - DRAW_INDIRECT_LENGTH_NV = 0x8F42 # Requires ARB_draw_indirect - -############################################################################### - -# No new tokens -# Extension #381 -NV_texture_barrier enum: - -############################################################################### - -# No new tokens -# Extension #382 -AMD_shader_stencil_export enum: - -############################################################################### - -# Extension #383 -AMD_seamless_cubemap_per_texture enum: - use ARB_seamless_cube_map TEXTURE_CUBE_MAP_SEAMLESS - -############################################################################### - -# Extension #384 - GLX_INTEL_swap_event - -############################################################################### - -# No new tokens -# Extension #385 -AMD_conservative_depth enum: - -############################################################################### - -# Extension #386 -EXT_shader_image_load_store enum: - MAX_IMAGE_UNITS_EXT = 0x8F38 - MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS_EXT = 0x8F39 - IMAGE_BINDING_NAME_EXT = 0x8F3A - IMAGE_BINDING_LEVEL_EXT = 0x8F3B - IMAGE_BINDING_LAYERED_EXT = 0x8F3C - IMAGE_BINDING_LAYER_EXT = 0x8F3D - IMAGE_BINDING_ACCESS_EXT = 0x8F3E - IMAGE_1D_EXT = 0x904C - IMAGE_2D_EXT = 0x904D - IMAGE_3D_EXT = 0x904E - IMAGE_2D_RECT_EXT = 0x904F - IMAGE_CUBE_EXT = 0x9050 - IMAGE_BUFFER_EXT = 0x9051 - IMAGE_1D_ARRAY_EXT = 0x9052 - IMAGE_2D_ARRAY_EXT = 0x9053 - IMAGE_CUBE_MAP_ARRAY_EXT = 0x9054 - IMAGE_2D_MULTISAMPLE_EXT = 0x9055 - IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9056 - INT_IMAGE_1D_EXT = 0x9057 - INT_IMAGE_2D_EXT = 0x9058 - INT_IMAGE_3D_EXT = 0x9059 - INT_IMAGE_2D_RECT_EXT = 0x905A - INT_IMAGE_CUBE_EXT = 0x905B - INT_IMAGE_BUFFER_EXT = 0x905C - INT_IMAGE_1D_ARRAY_EXT = 0x905D - INT_IMAGE_2D_ARRAY_EXT = 0x905E - INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x905F - INT_IMAGE_2D_MULTISAMPLE_EXT = 0x9060 - INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x9061 - UNSIGNED_INT_IMAGE_1D_EXT = 0x9062 - UNSIGNED_INT_IMAGE_2D_EXT = 0x9063 - UNSIGNED_INT_IMAGE_3D_EXT = 0x9064 - UNSIGNED_INT_IMAGE_2D_RECT_EXT = 0x9065 - UNSIGNED_INT_IMAGE_CUBE_EXT = 0x9066 - UNSIGNED_INT_IMAGE_BUFFER_EXT = 0x9067 - UNSIGNED_INT_IMAGE_1D_ARRAY_EXT = 0x9068 - UNSIGNED_INT_IMAGE_2D_ARRAY_EXT = 0x9069 - UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY_EXT = 0x906A - UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_EXT = 0x906B - UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY_EXT = 0x906C - MAX_IMAGE_SAMPLES_EXT = 0x906D - IMAGE_BINDING_FORMAT_EXT = 0x906E -# ??? Not clear where to put new types of mask bits yet - VERTEX_ATTRIB_ARRAY_BARRIER_BIT_EXT = 0x00000001 - ELEMENT_ARRAY_BARRIER_BIT_EXT = 0x00000002 - UNIFORM_BARRIER_BIT_EXT = 0x00000004 - TEXTURE_FETCH_BARRIER_BIT_EXT = 0x00000008 - SHADER_IMAGE_ACCESS_BARRIER_BIT_EXT = 0x00000020 - COMMAND_BARRIER_BIT_EXT = 0x00000040 - PIXEL_BUFFER_BARRIER_BIT_EXT = 0x00000080 - TEXTURE_UPDATE_BARRIER_BIT_EXT = 0x00000100 - BUFFER_UPDATE_BARRIER_BIT_EXT = 0x00000200 - FRAMEBUFFER_BARRIER_BIT_EXT = 0x00000400 - TRANSFORM_FEEDBACK_BARRIER_BIT_EXT = 0x00000800 - ATOMIC_COUNTER_BARRIER_BIT_EXT = 0x00001000 - ALL_BARRIER_BITS_EXT = 0xFFFFFFFF - -############################################################################### - -# Extension #387 -EXT_vertex_attrib_64bit enum: - use VERSION_1_1 DOUBLE - DOUBLE_VEC2_EXT = 0x8FFC - DOUBLE_VEC3_EXT = 0x8FFD - DOUBLE_VEC4_EXT = 0x8FFE - DOUBLE_MAT2_EXT = 0x8F46 - DOUBLE_MAT3_EXT = 0x8F47 - DOUBLE_MAT4_EXT = 0x8F48 - DOUBLE_MAT2x3_EXT = 0x8F49 - DOUBLE_MAT2x4_EXT = 0x8F4A - DOUBLE_MAT3x2_EXT = 0x8F4B - DOUBLE_MAT3x4_EXT = 0x8F4C - DOUBLE_MAT4x2_EXT = 0x8F4D - DOUBLE_MAT4x3_EXT = 0x8F4E - -############################################################################### - -# Extension #388 -NV_gpu_program5 enum: - MAX_GEOMETRY_PROGRAM_INVOCATIONS_NV = 0x8E5A - MIN_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5B - MAX_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5C - FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV = 0x8E5D - MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5E - MAX_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5F - MAX_PROGRAM_SUBROUTINE_PARAMETERS_NV = 0x8F44 # Requires ARB_shader_subroutine - MAX_PROGRAM_SUBROUTINE_NUM_NV = 0x8F45 # Requires ARB_shader_subroutine - -############################################################################### - -# Extension #389 -NV_gpu_shader5 enum: - INT64_NV = 0x140E - UNSIGNED_INT64_NV = 0x140F - INT8_NV = 0x8FE0 - INT8_VEC2_NV = 0x8FE1 - INT8_VEC3_NV = 0x8FE2 - INT8_VEC4_NV = 0x8FE3 - INT16_NV = 0x8FE4 - INT16_VEC2_NV = 0x8FE5 - INT16_VEC3_NV = 0x8FE6 - INT16_VEC4_NV = 0x8FE7 - INT64_VEC2_NV = 0x8FE9 - INT64_VEC3_NV = 0x8FEA - INT64_VEC4_NV = 0x8FEB - UNSIGNED_INT8_NV = 0x8FEC - UNSIGNED_INT8_VEC2_NV = 0x8FED - UNSIGNED_INT8_VEC3_NV = 0x8FEE - UNSIGNED_INT8_VEC4_NV = 0x8FEF - UNSIGNED_INT16_NV = 0x8FF0 - UNSIGNED_INT16_VEC2_NV = 0x8FF1 - UNSIGNED_INT16_VEC3_NV = 0x8FF2 - UNSIGNED_INT16_VEC4_NV = 0x8FF3 - UNSIGNED_INT64_VEC2_NV = 0x8FF5 - UNSIGNED_INT64_VEC3_NV = 0x8FF6 - UNSIGNED_INT64_VEC4_NV = 0x8FF7 - FLOAT16_NV = 0x8FF8 - FLOAT16_VEC2_NV = 0x8FF9 - FLOAT16_VEC3_NV = 0x8FFA - FLOAT16_VEC4_NV = 0x8FFB - use ARB_tessellation_shader PATCHES - -############################################################################### - -# Extension #390 -NV_shader_buffer_store enum: - SHADER_GLOBAL_ACCESS_BARRIER_BIT_NV = 0x00000010 - use VERSION_1_5 READ_WRITE - use VERSION_1_5 WRITE_ONLY - -############################################################################### - -# Extension #391 -NV_tessellation_program5 enum: - MAX_PROGRAM_PATCH_ATTRIBS_NV = 0x86D8 - TESS_CONTROL_PROGRAM_NV = 0x891E - TESS_EVALUATION_PROGRAM_NV = 0x891F - TESS_CONTROL_PROGRAM_PARAMETER_BUFFER_NV = 0x8C74 - TESS_EVALUATION_PROGRAM_PARAMETER_BUFFER_NV = 0x8C75 - -############################################################################### - -# Extension #392 -NV_vertex_attrib_integer_64bit enum: - use NV_gpu_shader5 INT64_NV - use NV_gpu_shader5 UNSIGNED_INT64_NV - -############################################################################### - -# Extension #393 -# Reuses SAMPLES enum as COVERAGE_SAMPLES -NV_multisample_coverage enum: - COVERAGE_SAMPLES_NV = 0x80A9 - COLOR_SAMPLES_NV = 0x8E20 - -############################################################################### - -# Extension #394 -AMD_name_gen_delete enum: - DATA_BUFFER_AMD = 0x9151 - PERFORMANCE_MONITOR_AMD = 0x9152 - QUERY_OBJECT_AMD = 0x9153 - VERTEX_ARRAY_OBJECT_AMD = 0x9154 - SAMPLER_OBJECT_AMD = 0x9155 - -############################################################################### - -# Extension #395 -AMD_debug_output enum: - MAX_DEBUG_LOGGED_MESSAGES_AMD = 0x9144 - DEBUG_LOGGED_MESSAGES_AMD = 0x9145 - DEBUG_SEVERITY_HIGH_AMD = 0x9146 - DEBUG_SEVERITY_MEDIUM_AMD = 0x9147 - DEBUG_SEVERITY_LOW_AMD = 0x9148 - DEBUG_CATEGORY_API_ERROR_AMD = 0x9149 - DEBUG_CATEGORY_WINDOW_SYSTEM_AMD = 0x914A - DEBUG_CATEGORY_DEPRECATION_AMD = 0x914B - DEBUG_CATEGORY_UNDEFINED_BEHAVIOR_AMD = 0x914C - DEBUG_CATEGORY_PERFORMANCE_AMD = 0x914D - DEBUG_CATEGORY_SHADER_COMPILER_AMD = 0x914E - DEBUG_CATEGORY_APPLICATION_AMD = 0x914F - DEBUG_CATEGORY_OTHER_AMD = 0x9150 - -############################################################################### - -# Extension #396 -NV_vdpau_interop enum: - SURFACE_STATE_NV = 0x86EB - SURFACE_REGISTERED_NV = 0x86FD - SURFACE_MAPPED_NV = 0x8700 - WRITE_DISCARD_NV = 0x88BE - -############################################################################### - -# No new tokens -# Extension #397 -AMD_transform_feedback3_lines_triangles enum: - -############################################################################### - -# Extension #398 - GLX_AMD_gpu_association -# Extension #399 - GLX_EXT_create_context_es2_profile -# Extension #400 - WGL_EXT_create_context_es2_profile - -############################################################################### - -# Extension #401 -AMD_depth_clamp_separate enum: - DEPTH_CLAMP_NEAR_AMD = 0x901E - DEPTH_CLAMP_FAR_AMD = 0x901F - -############################################################################### - -# Extension #402 -EXT_texture_sRGB_decode enum: - TEXTURE_SRGB_DECODE_EXT = 0x8A48 - DECODE_EXT = 0x8A49 - SKIP_DECODE_EXT = 0x8A4A - - -############################################################################### - -# Extension #403 -NV_texture_multisample enum: - TEXTURE_COVERAGE_SAMPLES_NV = 0x9045 - TEXTURE_COLOR_SAMPLES_NV = 0x9046 - -############################################################################### - -# Extension #404 -AMD_blend_minmax_factor enum: - FACTOR_MIN_AMD = 0x901C - FACTOR_MAX_AMD = 0x901D - -############################################################################### - -# Extension #505 -#AMD_sample_positions enum: -# SUBSAMPLE_DISTANCE_AMD = 0x883F diff --git a/src/glx/apple/specs/gl.spec b/src/glx/apple/specs/gl.spec deleted file mode 100644 index 9dfefbe6036..00000000000 --- a/src/glx/apple/specs/gl.spec +++ /dev/null @@ -1,31617 +0,0 @@ -# gl.spec file -# DON'T REMOVE PREVIOUS LINE!!! libspec depends on it! -# -# Copyright (c) 1991-2005 Silicon Graphics, Inc. All Rights Reserved. -# Copyright (c) 2006-2010 The Khronos Group Inc. -# -# This document is licensed under the SGI Free Software B License Version -# 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . -# -# $Revision: 14384 $ on $Date: 2011-04-05 23:05:03 -0700 (Tue, 05 Apr 2011) $ - -required-props: -# Description of a parameter -param: retval retained -# Display list flags -dlflags: notlistable handcode -# GLX implementation flags -glxflags: client-intercept client-handcode server-handcode EXT SGI ignore ARB -# Vector ('v') equivalent form of a command taking 1-4 explicit xyzw/rgba arguments -vectorequiv: * -# Category this function falls in. While there are many categories for -# early GL 1.0 functions, later functions just have a core version -# (e.g. VERSION_major_minor) or extension name for the category. -category: display-list drawing drawing-control feedback framebuf misc modeling pixel-op pixel-rw state-req xform VERSION_1_0 VERSION_1_0_DEPRECATED VERSION_1_1 VERSION_1_1_DEPRECATED VERSION_1_2 VERSION_1_2_DEPRECATED VERSION_1_3 VERSION_1_3_DEPRECATED VERSION_1_4 VERSION_1_4_DEPRECATED VERSION_1_5 VERSION_2_0 VERSION_2_1 VERSION_3_0 VERSION_3_0_DEPRECATED VERSION_3_1 VERSION_3_2 VERSION_3_3 VERSION_4_0 VERSION_4_1 VERSION_4_1_DEPRECATED ATI_element_array ATI_envmap_bumpmap ATI_fragment_shader ATI_pn_triangles ATI_vertex_array_object ATI_vertex_streams EXT_blend_color EXT_blend_minmax EXT_convolution EXT_copy_texture EXT_histogram EXT_polygon_offset EXT_subtexture EXT_texture3D EXT_texture_object EXT_vertex_array EXT_vertex_shader SGIS_detail_texture SGIS_multisample SGIS_pixel_texture ARB_point_parameters EXT_point_parameters SGIS_point_parameters SGIS_sharpen_texture SGIS_texture4D SGIS_texture_filter4 SGIX_async SGIX_flush_raster SGIX_fragment_lighting SGIX_framezoom SGIX_igloo_interface SGIX_instruments SGIX_list_priority SGIX_pixel_texture SGIX_polynomial_ffd SGIX_reference_plane SGIX_sprite SGIX_tag_sample_buffer SGI_color_table ARB_multitexture ARB_multisample ARB_texture_compression ARB_transpose_matrix ARB_vertex_blend ARB_matrix_palette EXT_compiled_vertex_array EXT_cull_vertex EXT_index_func EXT_index_material EXT_draw_range_elements EXT_vertex_weighting INGR_blend_func_separate NV_evaluators NV_fence NV_occlusion_query NV_point_sprite NV_register_combiners NV_register_combiners2 NV_vertex_array_range NV_vertex_program NV_vertex_program1_1_dcc MESA_resize_buffers MESA_window_pos PGI_misc_hints EXT_fog_coord EXT_blend_func_separate EXT_color_subtable EXT_coordinate_frame EXT_light_texture EXT_multi_draw_arrays EXT_paletted_texture EXT_pixel_transform EXT_secondary_color EXT_texture_perturb_normal HP_image_transform IBM_multimode_draw_arrays IBM_vertex_array_lists INTEL_parallel_arrays SUNX_constant_data SUN_global_alpha SUN_mesh_array SUN_triangle_list SUN_vertex 3DFX_tbuffer EXT_multisample SGIS_fog_function SGIS_texture_color_mask ARB_window_pos EXT_stencil_two_side EXT_depth_bounds_test EXT_blend_equation_separate ARB_vertex_program ARB_fragment_program ARB_vertex_buffer_object ARB_occlusion_query ARB_shader_objects ARB_vertex_shader ARB_fragment_shader S3_s3tc ATI_draw_buffers ATI_texture_env_combine3 ATI_texture_float NV_float_buffer NV_fragment_program NV_half_float NV_pixel_data_range NV_primitive_restart NV_texture_expand_normal NV_texture_expand_normal NV_vertex_program2 APPLE_element_array APPLE_fence APPLE_vertex_array_object APPLE_vertex_array_range ATI_draw_buffers NV_fragment_program NV_half_float NV_pixel_data_range NV_primitive_restart ATI_map_object_buffer ATI_separate_stencil ATI_vertex_attrib_array_object ARB_draw_buffers ARB_texture_rectangle ARB_color_buffer_float EXT_framebuffer_object GREMEDY_string_marker EXT_stencil_clear_tag EXT_framebuffer_blit EXT_framebuffer_multisample MESAX_texture_stack EXT_timer_query EXT_gpu_program_parameters APPLE_flush_buffer_range NV_gpu_program4 NV_geometry_program4 EXT_geometry_shader4 NV_vertex_program4 EXT_gpu_shader4 EXT_draw_instanced EXT_texture_buffer_object NV_depth_buffer_float NV_framebuffer_multisample_coverage NV_parameter_buffer_object EXT_draw_buffers2 NV_transform_feedback EXT_bindable_uniform EXT_texture_integer GREMEDY_frame_terminator NV_conditional_render NV_present_video EXT_transform_feedback ARB_depth_buffer_float ARB_draw_instanced ARB_framebuffer_object ARB_framebuffer_sRGB ARB_geometry_shader4 ARB_half_float_vertex ARB_instanced_arrays ARB_map_buffer_range ARB_texture_buffer_object ARB_texture_compression_rgtc ARB_texture_rg ARB_vertex_array_object EXT_direct_state_access EXT_vertex_array_bgra EXT_texture_swizzle NV_explicit_multisample NV_transform_feedback2 ATI_meminfo AMD_performance_monitor AMD_vertex_shader_tesselator EXT_provoking_vertex ARB_uniform_buffer_object ARB_copy_buffer EXT_texture_snorm AMD_draw_buffers_blend APPLE_texture_range APPLE_float_pixels APPLE_vertex_program_evaluators APPLE_aux_depth_stencil APPLE_object_purgeable APPLE_row_bytes ARB_draw_elements_base_vertex ARB_provoking_vertex ARB_sync ARB_texture_multisample ARB_draw_buffers_blend ARB_sample_shading NV_video_capture NV_copy_image EXT_separate_shader_objects NV_parameter_buffer_object2 NV_shader_buffer_load NV_vertex_buffer_unified_memory NV_texture_barrier ARB_shading_language_include ARB_blend_func_extended ARB_sampler_objects ARB_timer_query ARB_vertex_type_2_10_10_10_rev ARB_draw_indirect ARB_gpu_shader_fp64 ARB_shader_subroutine ARB_tessellation_shader ARB_transform_feedback2 ARB_transform_feedback3 AMD_conservative_depth NV_vdpau_interop ARB_ES2_compatibility ARB_get_program_binary ARB_separate_shader_objects ARB_vertex_attrib_64bit ARB_viewport_array ARB_cl_event ARB_debug_output ARB_robustness EXT_shader_image_load_store EXT_vertex_attrib_64bit NV_gpu_shader5 NV_vertex_attrib_integer_64bit AMD_name_gen_delete AMD_debug_output NV_vdpau_interop NV_gpu_program5 NV_texture_multisample - -# Categories for extensions with no functions - need not be included now -# ARB_texture_env_add ARB_texture_cube_map ARB_texture_border_clamp -# ARB_shading_language_100 ARB_texture_non_power_of_two ARB_point_sprite -# ARB_half_float_pixel ARB_texture_float ARB_pixel_buffer_object EXT_abgr -# EXT_texture SGI_color_matrix SGI_texture_color_table EXT_cmyka -# EXT_packed_pixels SGIS_texture_lod EXT_rescale_normal EXT_misc_attribute -# SGIS_generate_mipmap SGIX_clipmap SGIX_shadow SGIS_texture_edge_clamp -# SGIS_texture_border_clamp EXT_blend_subtract EXT_blend_logic_op -# SGIX_async_histogram SGIX_async_pixel SGIX_interlace SGIX_pixel_tiles -# SGIX_texture_select SGIX_texture_multi_buffer SGIX_texture_scale_bias -# SGIX_depth_texture SGIX_fog_offset HP_convolution_border_modes -# SGIX_texture_add_env PGI_vertex_hints EXT_clip_volume_hint -# SGIX_ir_instrument1 SGIX_calligraphic_fragment SGIX_texture_lod_bias -# SGIX_shadow_ambient EXT_index_texture EXT_index_array_formats SGIX_ycrcb -# IBM_rasterpos_clip HP_texture_lighting WIN_phong_shading -# WIN_specular_fog SGIX_blend_alpha_minmax EXT_bgra HP_occlusion_test -# EXT_pixel_transform_color_table EXT_shared_texture_palette -# EXT_separate_specular_color EXT_texture_env REND_screen_coordinates -# EXT_texture_env_combine APPLE_specular_vector APPLE_transform_hint -# SGIX_fog_scale INGR_color_clamp INGR_interlace_read EXT_stencil_wrap -# EXT_422_pixels NV_texgen_reflection SUN_convolution_border_modes -# SUN_slice_accum EXT_texture_env_add EXT_texture_lod_bias -# EXT_texture_filter_anisotropic NV_light_max_exponent NV_fog_distance -# NV_texgen_emboss NV_blend_square NV_texture_env_combine4 -# NV_packed_depth_stencil NV_texture_compression_vtc NV_texture_rectangle -# NV_texture_shader NV_texture_shader2 NV_vertex_array_range2 -# IBM_cull_vertex SGIX_subsample SGIX_ycrcba SGIX_ycrcb_subsample -# SGIX_depth_pass_instrument 3DFX_texture_compression_FXT1 -# 3DFX_multisample SGIX_vertex_preclip SGIX_convolution_accuracy -# SGIX_resample SGIX_scalebias_hint SGIX_texture_coordinate_clamp -# EXT_shadow_funcs MESA_pack_invert MESA_ycbcr_texture EXT_packed_float -# EXT_texture_array EXT_texture_compression_latc -# EXT_texture_compression_rgtc EXT_texture_shared_exponent -# NV_fragment_program4 EXT_framebuffer_sRGB NV_geometry_shader4 -# EXT_vertex_array_bgra ARB_depth_clamp ARB_fragment_coord_conventions -# ARB_seamless_cube_map ARB_vertex_array_bgra ARB_texture_cube_map_array -# ARB_texture_gather ARB_texture_query_lod -# AMD_shader_stencil_export AMD_seamless_cubemap_per_texture -# AMD_blend_minmax_factor commands - -# Core version in which a function was introduced, or against -# which an extension can be implemented -version: 1.0 1.1 1.2 1.3 1.4 1.5 2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 -# Core version in which a function was removed -deprecated: 3.1 -# GLX Single, Rendering, or Vendor Private opcode -glxsingle: * -glxropcode: * -glxvendorpriv: * -# WGL implementation flags (incomplete) -wglflags: client-handcode server-handcode small-data batchable -# Drivers in which this is implemented (very incomplete) -extension: future not_implemented soft WINSOFT NV10 NV20 NV50 -# Function this aliases (indistinguishable to the GL) -alias: * -# Mesa dispatch table offset (incomplete) -offset: * -# These properties are picked up from NVIDIA .spec files, we don't use them -glfflags: * -beginend: * -glxvectorequiv: * -subcategory: * -glextmask: * - -############################################################################### -# -# glxsingle, glxropcode, and other GLX allocations to vendors -# are used here, but the master registry for GLX is in -# /repos/ogl/trunk/doc/registry/extensions.reserved -# -# XFree86 dispatch offsets: 0-645 -# 578-641 NV_vertex_program -# GLS opcodes: 0x0030-0x0269 -# -############################################################################### - -############################################################################### -# -# things to remember when adding an extension command -# -# - append new ARB and non-ARB extensions to the appropriate portion of -# the spec file, in extension number order. -# - leading tabs are suggested. Whitespace of any sort may be used elsewhere. -# - set glxflags to "ignore" until GLX is updated to support the new command -# - add new data types to typemaps/spec2wire.map -# - add extension name in alphabetical order to category list -# - add commands within an extension in spec order -# - use existing command entries as a model (where possible) -# - when reserving new glxropcodes, update extensions.reserved (per above) -# -############################################################################### - -# New type declarations - -passthru: #include - -passthru: #ifndef GL_VERSION_2_0 -passthru: /* GL type for program/shader text */ -passthru: typedef char GLchar; -passthru: #endif -passthru: -passthru: #ifndef GL_VERSION_1_5 -passthru: /* GL types for handling large vertex buffer objects */ -passthru: typedef ptrdiff_t GLintptr; -passthru: typedef ptrdiff_t GLsizeiptr; -passthru: #endif -passthru: -passthru: #ifndef GL_ARB_vertex_buffer_object -passthru: /* GL types for handling large vertex buffer objects */ -passthru: typedef ptrdiff_t GLintptrARB; -passthru: typedef ptrdiff_t GLsizeiptrARB; -passthru: #endif -passthru: -passthru: #ifndef GL_ARB_shader_objects -passthru: /* GL types for program/shader text and shader object handles */ -passthru: typedef char GLcharARB; -passthru: typedef unsigned int GLhandleARB; -passthru: #endif -passthru: -passthru: /* GL type for "half" precision (s10e5) float data in host memory */ -passthru: #ifndef GL_ARB_half_float_pixel -passthru: typedef unsigned short GLhalfARB; -passthru: #endif -passthru: -passthru: #ifndef GL_NV_half_float -passthru: typedef unsigned short GLhalfNV; -passthru: #endif -passthru: -passthru: #ifndef GLEXT_64_TYPES_DEFINED -passthru: /* This code block is duplicated in glxext.h, so must be protected */ -passthru: #define GLEXT_64_TYPES_DEFINED -passthru: /* Define int32_t, int64_t, and uint64_t types for UST/MSC */ -passthru: /* (as used in the GL_EXT_timer_query extension). */ -passthru: #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -passthru: #include -passthru: #elif defined(__sun__) || defined(__digital__) -passthru: #include -passthru: #if defined(__STDC__) -passthru: #if defined(__arch64__) || defined(_LP64) -passthru: typedef long int int64_t; -passthru: typedef unsigned long int uint64_t; -passthru: #else -passthru: typedef long long int int64_t; -passthru: typedef unsigned long long int uint64_t; -passthru: #endif /* __arch64__ */ -passthru: #endif /* __STDC__ */ -passthru: #elif defined( __VMS ) || defined(__sgi) -passthru: #include -passthru: #elif defined(__SCO__) || defined(__USLC__) -passthru: #include -passthru: #elif defined(__UNIXOS2__) || defined(__SOL64__) -passthru: typedef long int int32_t; -passthru: typedef long long int int64_t; -passthru: typedef unsigned long long int uint64_t; -passthru: #elif defined(_WIN32) && defined(__GNUC__) -passthru: #include -passthru: #elif defined(_WIN32) -passthru: typedef __int32 int32_t; -passthru: typedef __int64 int64_t; -passthru: typedef unsigned __int64 uint64_t; -passthru: #else -passthru: /* Fallback if nothing above works */ -passthru: #include -passthru: #endif -passthru: #endif -passthru: -passthru: #ifndef GL_EXT_timer_query -passthru: typedef int64_t GLint64EXT; -passthru: typedef uint64_t GLuint64EXT; -passthru: #endif -passthru: -passthru: #ifndef GL_ARB_sync -passthru: typedef int64_t GLint64; -passthru: typedef uint64_t GLuint64; -passthru: typedef struct __GLsync *GLsync; -passthru: #endif -passthru: -passthru: #ifndef GL_ARB_cl_event -passthru: /* These incomplete types let us declare types compatible with OpenCL's cl_context and cl_event */ -passthru: struct _cl_context; -passthru: struct _cl_event; -passthru: #endif -passthru: -passthru: #ifndef GL_ARB_debug_output -passthru: typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam); -passthru: #endif -passthru: -passthru: #ifndef GL_AMD_debug_output -passthru: typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam); -passthru: #endif -passthru: -passthru: #ifndef GL_NV_vdpau_interop -passthru: typedef GLintptr GLvdpauSurfaceNV; -passthru: #endif -passthru: - -############################################################################### -############################################################################### -# -# OpenGL 1.0 commands -# -############################################################################### -############################################################################### - -############################################################################### -# -# drawing-control commands -# -############################################################################### - -CullFace(mode) - return void - param mode CullFaceMode in value - category VERSION_1_0 # old: drawing-control - version 1.0 - glxropcode 79 - offset 152 - -FrontFace(mode) - return void - param mode FrontFaceDirection in value - category VERSION_1_0 # old: drawing-control - version 1.0 - glxropcode 84 - offset 157 - -Hint(target, mode) - return void - param target HintTarget in value - param mode HintMode in value - category VERSION_1_0 # old: drawing-control - version 1.0 - glxropcode 85 - offset 158 - -LineWidth(width) - return void - param width CheckedFloat32 in value - category VERSION_1_0 # old: drawing-control - version 1.0 - glxropcode 95 - offset 168 - -PointSize(size) - return void - param size CheckedFloat32 in value - category VERSION_1_0 # old: drawing-control - version 1.0 - glxropcode 100 - offset 173 - -PolygonMode(face, mode) - return void - param face MaterialFace in value - param mode PolygonMode in value - category VERSION_1_0 # old: drawing-control - version 1.0 - glxropcode 101 - offset 174 - -Scissor(x, y, width, height) - return void - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - category VERSION_1_0 # old: drawing-control - version 1.0 - glxropcode 103 - offset 176 - -TexParameterf(target, pname, param) - return void - param target TextureTarget in value - param pname TextureParameterName in value - param param CheckedFloat32 in value - category VERSION_1_0 # old: drawing-control - version 1.0 - glxropcode 105 - wglflags small-data - offset 178 - -TexParameterfv(target, pname, params) - return void - param target TextureTarget in value - param pname TextureParameterName in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category VERSION_1_0 # old: drawing-control - version 1.0 - glxropcode 106 - wglflags small-data - offset 179 - -TexParameteri(target, pname, param) - return void - param target TextureTarget in value - param pname TextureParameterName in value - param param CheckedInt32 in value - category VERSION_1_0 # old: drawing-control - version 1.0 - glxropcode 107 - wglflags small-data - offset 180 - -TexParameteriv(target, pname, params) - return void - param target TextureTarget in value - param pname TextureParameterName in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category VERSION_1_0 # old: drawing-control - version 1.0 - glxropcode 108 - wglflags small-data - offset 181 - -TexImage1D(target, level, internalformat, width, border, format, type, pixels) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureComponentCount in value - param width SizeI in value - param border CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width)] - category VERSION_1_0 # old: drawing-control - dlflags handcode - glxflags client-handcode server-handcode - version 1.0 - glxropcode 109 - wglflags client-handcode server-handcode - offset 182 - -TexImage2D(target, level, internalformat, width, height, border, format, type, pixels) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureComponentCount in value - param width SizeI in value - param height SizeI in value - param border CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height)] - category VERSION_1_0 # old: drawing-control - dlflags handcode - glxflags client-handcode server-handcode - version 1.0 - glxropcode 110 - wglflags client-handcode server-handcode - offset 183 - -############################################################################### -# -# framebuf commands -# -############################################################################### - -DrawBuffer(mode) - return void - param mode DrawBufferMode in value - category VERSION_1_0 # old: framebuf - version 1.0 - glxropcode 126 - offset 202 - -Clear(mask) - return void - param mask ClearBufferMask in value - category VERSION_1_0 # old: framebuf - version 1.0 - glxropcode 127 - offset 203 - -ClearColor(red, green, blue, alpha) - return void - param red ClampedColorF in value - param green ClampedColorF in value - param blue ClampedColorF in value - param alpha ClampedColorF in value - category VERSION_1_0 # old: framebuf - version 1.0 - glxropcode 130 - offset 206 - -ClearStencil(s) - return void - param s StencilValue in value - category VERSION_1_0 # old: framebuf - version 1.0 - glxropcode 131 - offset 207 - -ClearDepth(depth) - return void - param depth ClampedFloat64 in value - category VERSION_1_0 # old: framebuf - version 1.0 - glxropcode 132 - offset 208 - -StencilMask(mask) - return void - param mask MaskedStencilValue in value - category VERSION_1_0 # old: framebuf - version 1.0 - glxropcode 133 - offset 209 - -ColorMask(red, green, blue, alpha) - return void - param red Boolean in value - param green Boolean in value - param blue Boolean in value - param alpha Boolean in value - category VERSION_1_0 # old: framebuf - version 1.0 - glxropcode 134 - offset 210 - -DepthMask(flag) - return void - param flag Boolean in value - category VERSION_1_0 # old: framebuf - version 1.0 - glxropcode 135 - offset 211 - -############################################################################### -# -# misc commands -# -############################################################################### - -Disable(cap) - return void - param cap EnableCap in value - category VERSION_1_0 # old: misc - version 1.0 - dlflags handcode - glxflags client-handcode client-intercept - glxropcode 138 - offset 214 - -Enable(cap) - return void - param cap EnableCap in value - category VERSION_1_0 # old: misc - version 1.0 - dlflags handcode - glxflags client-handcode client-intercept - glxropcode 139 - offset 215 - -Finish() - return void - dlflags notlistable - glxflags client-handcode server-handcode - category VERSION_1_0 # old: misc - version 1.0 - glxsingle 108 - offset 216 - -Flush() - return void - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - category VERSION_1_0 # old: misc - version 1.0 - glxsingle 142 - offset 217 - -############################################################################### -# -# pixel-op commands -# -############################################################################### - -BlendFunc(sfactor, dfactor) - return void - param sfactor BlendingFactorSrc in value - param dfactor BlendingFactorDest in value - category VERSION_1_0 # old: pixel-op - version 1.0 - glxropcode 160 - offset 241 - -LogicOp(opcode) - return void - param opcode LogicOp in value - category VERSION_1_0 # old: pixel-op - version 1.0 - glxropcode 161 - offset 242 - -StencilFunc(func, ref, mask) - return void - param func StencilFunction in value - param ref ClampedStencilValue in value - param mask MaskedStencilValue in value - category VERSION_1_0 # old: pixel-op - version 1.0 - glxropcode 162 - offset 243 - -StencilOp(fail, zfail, zpass) - return void - param fail StencilOp in value - param zfail StencilOp in value - param zpass StencilOp in value - category VERSION_1_0 # old: pixel-op - version 1.0 - glxropcode 163 - offset 244 - -DepthFunc(func) - return void - param func DepthFunction in value - category VERSION_1_0 # old: pixel-op - version 1.0 - glxropcode 164 - offset 245 - -############################################################################### -# -# pixel-rw commands -# -############################################################################### - -PixelStoref(pname, param) - return void - param pname PixelStoreParameter in value - param param CheckedFloat32 in value - dlflags notlistable - glxflags client-handcode - category VERSION_1_0 # old: pixel-rw - version 1.0 - glxsingle 109 - wglflags batchable - offset 249 - -PixelStorei(pname, param) - return void - param pname PixelStoreParameter in value - param param CheckedInt32 in value - dlflags notlistable - glxflags client-handcode - category VERSION_1_0 # old: pixel-rw - version 1.0 - glxsingle 110 - wglflags batchable - offset 250 - -ReadBuffer(mode) - return void - param mode ReadBufferMode in value - category VERSION_1_0 # old: pixel-rw - version 1.0 - glxropcode 171 - offset 254 - -ReadPixels(x, y, width, height, format, type, pixels) - return void - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void out array [COMPSIZE(format/type/width/height)] - category VERSION_1_0 # old: pixel-rw - dlflags notlistable - glxflags client-handcode server-handcode - version 1.0 - glxsingle 111 - wglflags client-handcode server-handcode - offset 256 - -############################################################################### -# -# state-req commands -# -############################################################################### - -GetBooleanv(pname, params) - return void - param pname GetPName in value - param params Boolean out array [COMPSIZE(pname)] - category VERSION_1_0 # old: state-req - dlflags notlistable - glxflags client-handcode - version 1.0 - glxsingle 112 - wglflags small-data - offset 258 - -GetDoublev(pname, params) - return void - param pname GetPName in value - param params Float64 out array [COMPSIZE(pname)] - category VERSION_1_0 # old: state-req - dlflags notlistable - glxflags client-handcode - version 1.0 - glxsingle 114 - wglflags small-data - offset 260 - -GetError() - return ErrorCode - category VERSION_1_0 # old: state-req - dlflags notlistable - glxflags client-handcode - version 1.0 - glxsingle 115 - offset 261 - -GetFloatv(pname, params) - return void - param pname GetPName in value - param params Float32 out array [COMPSIZE(pname)] - category VERSION_1_0 # old: state-req - dlflags notlistable - glxflags client-handcode - version 1.0 - glxsingle 116 - wglflags small-data - offset 262 - -GetIntegerv(pname, params) - return void - param pname GetPName in value - param params Int32 out array [COMPSIZE(pname)] - category VERSION_1_0 # old: state-req - dlflags notlistable - glxflags client-handcode - version 1.0 - glxsingle 117 - wglflags small-data - offset 263 - -GetString(name) - return String - param name StringName in value - category VERSION_1_0 # old: state-req - dlflags notlistable - glxflags client-handcode server-handcode - version 1.0 - glxsingle 129 - wglflags client-handcode server-handcode - offset 275 - -GetTexImage(target, level, format, type, pixels) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void out array [COMPSIZE(target/level/format/type)] - category VERSION_1_0 # old: state-req - dlflags notlistable - glxflags client-handcode server-handcode - version 1.0 - glxsingle 135 - wglflags client-handcode server-handcode - offset 281 - -GetTexParameterfv(target, pname, params) - return void - param target TextureTarget in value - param pname GetTextureParameter in value - param params Float32 out array [COMPSIZE(pname)] - category VERSION_1_0 # old: state-req - dlflags notlistable - version 1.0 - glxsingle 136 - wglflags small-data - offset 282 - -GetTexParameteriv(target, pname, params) - return void - param target TextureTarget in value - param pname GetTextureParameter in value - param params Int32 out array [COMPSIZE(pname)] - category VERSION_1_0 # old: state-req - dlflags notlistable - version 1.0 - glxsingle 137 - wglflags small-data - offset 283 - -GetTexLevelParameterfv(target, level, pname, params) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param pname GetTextureParameter in value - param params Float32 out array [COMPSIZE(pname)] - category VERSION_1_0 # old: state-req - dlflags notlistable - version 1.0 - glxsingle 138 - wglflags small-data - offset 284 - -GetTexLevelParameteriv(target, level, pname, params) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param pname GetTextureParameter in value - param params Int32 out array [COMPSIZE(pname)] - category VERSION_1_0 # old: state-req - dlflags notlistable - version 1.0 - glxsingle 139 - wglflags small-data - offset 285 - -IsEnabled(cap) - return Boolean - param cap EnableCap in value - category VERSION_1_0 # old: state-req - dlflags notlistable - version 1.0 - glxflags client-handcode client-intercept - glxsingle 140 - offset 286 - -############################################################################### -# -# xform commands -# -############################################################################### - -DepthRange(near, far) - return void - param near ClampedFloat64 in value - param far ClampedFloat64 in value - category VERSION_1_0 # old: xform - version 1.0 - glxropcode 174 - offset 288 - -Viewport(x, y, width, height) - return void - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - category VERSION_1_0 # old: xform - version 1.0 - glxropcode 191 - offset 305 - -############################################################################### -############################################################################### -# -# OpenGL 1.0 deprecated commands -# -############################################################################### -############################################################################### - -# display-list commands - -NewList(list, mode) - return void - param list List in value - param mode ListMode in value - dlflags notlistable - category VERSION_1_0_DEPRECATED # old: display-list - version 1.0 - deprecated 3.1 - glxsingle 101 - wglflags batchable - offset 0 - -EndList() - return void - dlflags notlistable - category VERSION_1_0_DEPRECATED # old: display-list - version 1.0 - deprecated 3.1 - glxsingle 102 - wglflags batchable - offset 1 - -CallList(list) - return void - param list List in value - category VERSION_1_0_DEPRECATED # old: display-list - version 1.0 - deprecated 3.1 - glxropcode 1 - offset 2 - -CallLists(n, type, lists) - return void - param n SizeI in value - param type ListNameType in value - param lists Void in array [COMPSIZE(n/type)] - category VERSION_1_0_DEPRECATED # old: display-list - glxflags client-handcode server-handcode - version 1.0 - deprecated 3.1 - glxropcode 2 - offset 3 - -DeleteLists(list, range) - return void - param list List in value - param range SizeI in value - dlflags notlistable - category VERSION_1_0_DEPRECATED # old: display-list - version 1.0 - deprecated 3.1 - glxsingle 103 - wglflags batchable - offset 4 - -GenLists(range) - return List - param range SizeI in value - dlflags notlistable - category VERSION_1_0_DEPRECATED # old: display-list - version 1.0 - deprecated 3.1 - glxsingle 104 - offset 5 - -ListBase(base) - return void - param base List in value - category VERSION_1_0_DEPRECATED # old: display-list - version 1.0 - deprecated 3.1 - glxropcode 3 - offset 6 - -# drawing commands - -Begin(mode) - return void - param mode BeginMode in value - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 4 - offset 7 - -Bitmap(width, height, xorig, yorig, xmove, ymove, bitmap) - return void - param width SizeI in value - param height SizeI in value - param xorig CoordF in value - param yorig CoordF in value - param xmove CoordF in value - param ymove CoordF in value - param bitmap UInt8 in array [COMPSIZE(width/height)] - category VERSION_1_0_DEPRECATED # old: drawing - dlflags handcode - glxflags client-handcode server-handcode - version 1.0 - deprecated 3.1 - glxropcode 5 - wglflags client-handcode server-handcode - offset 8 - -Color3b(red, green, blue) - return void - param red ColorB in value - param green ColorB in value - param blue ColorB in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color3bv - version 1.0 - deprecated 3.1 - offset 9 - -Color3bv(v) - return void - param v ColorB in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 6 - offset 10 - -Color3d(red, green, blue) - return void - param red ColorD in value - param green ColorD in value - param blue ColorD in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color3dv - version 1.0 - deprecated 3.1 - offset 11 - -Color3dv(v) - return void - param v ColorD in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 7 - offset 12 - -Color3f(red, green, blue) - return void - param red ColorF in value - param green ColorF in value - param blue ColorF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color3fv - version 1.0 - deprecated 3.1 - offset 13 - -Color3fv(v) - return void - param v ColorF in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 8 - offset 14 - -Color3i(red, green, blue) - return void - param red ColorI in value - param green ColorI in value - param blue ColorI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color3iv - version 1.0 - deprecated 3.1 - offset 15 - -Color3iv(v) - return void - param v ColorI in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 9 - offset 16 - -Color3s(red, green, blue) - return void - param red ColorS in value - param green ColorS in value - param blue ColorS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color3sv - version 1.0 - deprecated 3.1 - offset 17 - -Color3sv(v) - return void - param v ColorS in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 10 - offset 18 - -Color3ub(red, green, blue) - return void - param red ColorUB in value - param green ColorUB in value - param blue ColorUB in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color3ubv - version 1.0 - deprecated 3.1 - offset 19 - -Color3ubv(v) - return void - param v ColorUB in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 11 - offset 20 - -Color3ui(red, green, blue) - return void - param red ColorUI in value - param green ColorUI in value - param blue ColorUI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color3uiv - version 1.0 - deprecated 3.1 - offset 21 - -Color3uiv(v) - return void - param v ColorUI in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 12 - offset 22 - -Color3us(red, green, blue) - return void - param red ColorUS in value - param green ColorUS in value - param blue ColorUS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color3usv - version 1.0 - deprecated 3.1 - offset 23 - -Color3usv(v) - return void - param v ColorUS in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 13 - offset 24 - -Color4b(red, green, blue, alpha) - return void - param red ColorB in value - param green ColorB in value - param blue ColorB in value - param alpha ColorB in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color4bv - version 1.0 - deprecated 3.1 - offset 25 - -Color4bv(v) - return void - param v ColorB in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 14 - offset 26 - -Color4d(red, green, blue, alpha) - return void - param red ColorD in value - param green ColorD in value - param blue ColorD in value - param alpha ColorD in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color4dv - version 1.0 - deprecated 3.1 - offset 27 - -Color4dv(v) - return void - param v ColorD in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 15 - offset 28 - -Color4f(red, green, blue, alpha) - return void - param red ColorF in value - param green ColorF in value - param blue ColorF in value - param alpha ColorF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color4fv - version 1.0 - deprecated 3.1 - offset 29 - -Color4fv(v) - return void - param v ColorF in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 16 - offset 30 - -Color4i(red, green, blue, alpha) - return void - param red ColorI in value - param green ColorI in value - param blue ColorI in value - param alpha ColorI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color4iv - version 1.0 - deprecated 3.1 - offset 31 - -Color4iv(v) - return void - param v ColorI in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 17 - offset 32 - -Color4s(red, green, blue, alpha) - return void - param red ColorS in value - param green ColorS in value - param blue ColorS in value - param alpha ColorS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color4sv - version 1.0 - deprecated 3.1 - offset 33 - -Color4sv(v) - return void - param v ColorS in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 18 - offset 34 - -Color4ub(red, green, blue, alpha) - return void - param red ColorUB in value - param green ColorUB in value - param blue ColorUB in value - param alpha ColorUB in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color4ubv - version 1.0 - deprecated 3.1 - offset 35 - -Color4ubv(v) - return void - param v ColorUB in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 19 - offset 36 - -Color4ui(red, green, blue, alpha) - return void - param red ColorUI in value - param green ColorUI in value - param blue ColorUI in value - param alpha ColorUI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color4uiv - version 1.0 - deprecated 3.1 - offset 37 - -Color4uiv(v) - return void - param v ColorUI in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 20 - offset 38 - -Color4us(red, green, blue, alpha) - return void - param red ColorUS in value - param green ColorUS in value - param blue ColorUS in value - param alpha ColorUS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Color4usv - version 1.0 - deprecated 3.1 - offset 39 - -Color4usv(v) - return void - param v ColorUS in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 21 - offset 40 - -EdgeFlag(flag) - return void - param flag Boolean in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv EdgeFlagv - version 1.0 - deprecated 3.1 - offset 41 - -EdgeFlagv(flag) - return void - param flag Boolean in array [1] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 22 - offset 42 - -End() - return void - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 23 - offset 43 - -Indexd(c) - return void - param c ColorIndexValueD in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Indexdv - version 1.0 - deprecated 3.1 - offset 44 - -Indexdv(c) - return void - param c ColorIndexValueD in array [1] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 24 - offset 45 - -Indexf(c) - return void - param c ColorIndexValueF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Indexfv - version 1.0 - deprecated 3.1 - offset 46 - -Indexfv(c) - return void - param c ColorIndexValueF in array [1] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 25 - offset 47 - -Indexi(c) - return void - param c ColorIndexValueI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Indexiv - version 1.0 - deprecated 3.1 - offset 48 - -Indexiv(c) - return void - param c ColorIndexValueI in array [1] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 26 - offset 49 - -Indexs(c) - return void - param c ColorIndexValueS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Indexsv - version 1.0 - deprecated 3.1 - offset 50 - -Indexsv(c) - return void - param c ColorIndexValueS in array [1] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 27 - offset 51 - -Normal3b(nx, ny, nz) - return void - param nx Int8 in value - param ny Int8 in value - param nz Int8 in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Normal3bv - version 1.0 - deprecated 3.1 - offset 52 - -Normal3bv(v) - return void - param v Int8 in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 28 - offset 53 - -Normal3d(nx, ny, nz) - return void - param nx CoordD in value - param ny CoordD in value - param nz CoordD in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Normal3dv - version 1.0 - deprecated 3.1 - offset 54 - -Normal3dv(v) - return void - param v CoordD in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 29 - offset 55 - -Normal3f(nx, ny, nz) - return void - param nx CoordF in value - param ny CoordF in value - param nz CoordF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Normal3fv - version 1.0 - deprecated 3.1 - offset 56 - -Normal3fv(v) - return void - param v CoordF in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 30 - offset 57 - -Normal3i(nx, ny, nz) - return void - param nx Int32 in value - param ny Int32 in value - param nz Int32 in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Normal3iv - version 1.0 - deprecated 3.1 - offset 58 - -Normal3iv(v) - return void - param v Int32 in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 31 - offset 59 - -Normal3s(nx, ny, nz) - return void - param nx Int16 in value - param ny Int16 in value - param nz Int16 in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Normal3sv - version 1.0 - deprecated 3.1 - offset 60 - -Normal3sv(v) - return void - param v Int16 in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 32 - offset 61 - -RasterPos2d(x, y) - return void - param x CoordD in value - param y CoordD in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv RasterPos2dv - version 1.0 - deprecated 3.1 - offset 62 - -RasterPos2dv(v) - return void - param v CoordD in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 33 - offset 63 - -RasterPos2f(x, y) - return void - param x CoordF in value - param y CoordF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv RasterPos2fv - version 1.0 - deprecated 3.1 - offset 64 - -RasterPos2fv(v) - return void - param v CoordF in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 34 - offset 65 - -RasterPos2i(x, y) - return void - param x CoordI in value - param y CoordI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv RasterPos2iv - version 1.0 - deprecated 3.1 - offset 66 - -RasterPos2iv(v) - return void - param v CoordI in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 35 - offset 67 - -RasterPos2s(x, y) - return void - param x CoordS in value - param y CoordS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv RasterPos2sv - version 1.0 - deprecated 3.1 - offset 68 - -RasterPos2sv(v) - return void - param v CoordS in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 36 - offset 69 - -RasterPos3d(x, y, z) - return void - param x CoordD in value - param y CoordD in value - param z CoordD in value - vectorequiv RasterPos3dv - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - offset 70 - -RasterPos3dv(v) - return void - param v CoordD in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 37 - offset 71 - -RasterPos3f(x, y, z) - return void - param x CoordF in value - param y CoordF in value - param z CoordF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv RasterPos3fv - version 1.0 - deprecated 3.1 - offset 72 - -RasterPos3fv(v) - return void - param v CoordF in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 38 - offset 73 - -RasterPos3i(x, y, z) - return void - param x CoordI in value - param y CoordI in value - param z CoordI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv RasterPos3iv - version 1.0 - deprecated 3.1 - offset 74 - -RasterPos3iv(v) - return void - param v CoordI in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 39 - offset 75 - -RasterPos3s(x, y, z) - return void - param x CoordS in value - param y CoordS in value - param z CoordS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv RasterPos3sv - version 1.0 - deprecated 3.1 - offset 76 - -RasterPos3sv(v) - return void - param v CoordS in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 40 - offset 77 - -RasterPos4d(x, y, z, w) - return void - param x CoordD in value - param y CoordD in value - param z CoordD in value - param w CoordD in value - vectorequiv RasterPos4dv - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - offset 78 - -RasterPos4dv(v) - return void - param v CoordD in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 41 - offset 79 - -RasterPos4f(x, y, z, w) - return void - param x CoordF in value - param y CoordF in value - param z CoordF in value - param w CoordF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv RasterPos4fv - version 1.0 - deprecated 3.1 - offset 80 - -RasterPos4fv(v) - return void - param v CoordF in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 42 - offset 81 - -RasterPos4i(x, y, z, w) - return void - param x CoordI in value - param y CoordI in value - param z CoordI in value - param w CoordI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv RasterPos4iv - version 1.0 - deprecated 3.1 - offset 82 - -RasterPos4iv(v) - return void - param v CoordI in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 43 - offset 83 - -RasterPos4s(x, y, z, w) - return void - param x CoordS in value - param y CoordS in value - param z CoordS in value - param w CoordS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv RasterPos4sv - version 1.0 - deprecated 3.1 - offset 84 - -RasterPos4sv(v) - return void - param v CoordS in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 44 - offset 85 - -Rectd(x1, y1, x2, y2) - return void - param x1 CoordD in value - param y1 CoordD in value - param x2 CoordD in value - param y2 CoordD in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Rectdv - version 1.0 - deprecated 3.1 - offset 86 - -Rectdv(v1, v2) - return void - param v1 CoordD in array [2] - param v2 CoordD in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 45 - offset 87 - -Rectf(x1, y1, x2, y2) - return void - param x1 CoordF in value - param y1 CoordF in value - param x2 CoordF in value - param y2 CoordF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Rectfv - version 1.0 - deprecated 3.1 - offset 88 - -Rectfv(v1, v2) - return void - param v1 CoordF in array [2] - param v2 CoordF in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 46 - offset 89 - -Recti(x1, y1, x2, y2) - return void - param x1 CoordI in value - param y1 CoordI in value - param x2 CoordI in value - param y2 CoordI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Rectiv - version 1.0 - deprecated 3.1 - offset 90 - -Rectiv(v1, v2) - return void - param v1 CoordI in array [2] - param v2 CoordI in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 47 - offset 91 - -Rects(x1, y1, x2, y2) - return void - param x1 CoordS in value - param y1 CoordS in value - param x2 CoordS in value - param y2 CoordS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Rectsv - version 1.0 - deprecated 3.1 - offset 92 - -Rectsv(v1, v2) - return void - param v1 CoordS in array [2] - param v2 CoordS in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 48 - offset 93 - -TexCoord1d(s) - return void - param s CoordD in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord1dv - version 1.0 - deprecated 3.1 - offset 94 - -TexCoord1dv(v) - return void - param v CoordD in array [1] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 49 - offset 95 - -TexCoord1f(s) - return void - param s CoordF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord1fv - version 1.0 - deprecated 3.1 - offset 96 - -TexCoord1fv(v) - return void - param v CoordF in array [1] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 50 - offset 97 - -TexCoord1i(s) - return void - param s CoordI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord1iv - version 1.0 - deprecated 3.1 - offset 98 - -TexCoord1iv(v) - return void - param v CoordI in array [1] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 51 - offset 99 - -TexCoord1s(s) - return void - param s CoordS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord1sv - version 1.0 - deprecated 3.1 - offset 100 - -TexCoord1sv(v) - return void - param v CoordS in array [1] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 52 - offset 101 - -TexCoord2d(s, t) - return void - param s CoordD in value - param t CoordD in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord2dv - version 1.0 - deprecated 3.1 - offset 102 - -TexCoord2dv(v) - return void - param v CoordD in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 53 - offset 103 - -TexCoord2f(s, t) - return void - param s CoordF in value - param t CoordF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord2fv - version 1.0 - deprecated 3.1 - offset 104 - -TexCoord2fv(v) - return void - param v CoordF in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 54 - offset 105 - -TexCoord2i(s, t) - return void - param s CoordI in value - param t CoordI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord2iv - version 1.0 - deprecated 3.1 - offset 106 - -TexCoord2iv(v) - return void - param v CoordI in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 55 - offset 107 - -TexCoord2s(s, t) - return void - param s CoordS in value - param t CoordS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord2sv - version 1.0 - deprecated 3.1 - offset 108 - -TexCoord2sv(v) - return void - param v CoordS in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 56 - offset 109 - -TexCoord3d(s, t, r) - return void - param s CoordD in value - param t CoordD in value - param r CoordD in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord3dv - version 1.0 - deprecated 3.1 - offset 110 - -TexCoord3dv(v) - return void - param v CoordD in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 57 - offset 111 - -TexCoord3f(s, t, r) - return void - param s CoordF in value - param t CoordF in value - param r CoordF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord3fv - version 1.0 - deprecated 3.1 - offset 112 - -TexCoord3fv(v) - return void - param v CoordF in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 58 - offset 113 - -TexCoord3i(s, t, r) - return void - param s CoordI in value - param t CoordI in value - param r CoordI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord3iv - version 1.0 - deprecated 3.1 - offset 114 - -TexCoord3iv(v) - return void - param v CoordI in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 59 - offset 115 - -TexCoord3s(s, t, r) - return void - param s CoordS in value - param t CoordS in value - param r CoordS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord3sv - version 1.0 - deprecated 3.1 - offset 116 - -TexCoord3sv(v) - return void - param v CoordS in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 60 - offset 117 - -TexCoord4d(s, t, r, q) - return void - param s CoordD in value - param t CoordD in value - param r CoordD in value - param q CoordD in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord4dv - version 1.0 - deprecated 3.1 - offset 118 - -TexCoord4dv(v) - return void - param v CoordD in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 61 - offset 119 - -TexCoord4f(s, t, r, q) - return void - param s CoordF in value - param t CoordF in value - param r CoordF in value - param q CoordF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord4fv - version 1.0 - deprecated 3.1 - offset 120 - -TexCoord4fv(v) - return void - param v CoordF in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 62 - offset 121 - -TexCoord4i(s, t, r, q) - return void - param s CoordI in value - param t CoordI in value - param r CoordI in value - param q CoordI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord4iv - version 1.0 - deprecated 3.1 - offset 122 - -TexCoord4iv(v) - return void - param v CoordI in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 63 - offset 123 - -TexCoord4s(s, t, r, q) - return void - param s CoordS in value - param t CoordS in value - param r CoordS in value - param q CoordS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv TexCoord4sv - version 1.0 - deprecated 3.1 - offset 124 - -TexCoord4sv(v) - return void - param v CoordS in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 64 - offset 125 - -Vertex2d(x, y) - return void - param x CoordD in value - param y CoordD in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Vertex2dv - version 1.0 - deprecated 3.1 - offset 126 - -Vertex2dv(v) - return void - param v CoordD in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 65 - offset 127 - -Vertex2f(x, y) - return void - param x CoordF in value - param y CoordF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Vertex2fv - version 1.0 - deprecated 3.1 - offset 128 - -Vertex2fv(v) - return void - param v CoordF in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 66 - offset 129 - -Vertex2i(x, y) - return void - param x CoordI in value - param y CoordI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Vertex2iv - version 1.0 - deprecated 3.1 - offset 130 - -Vertex2iv(v) - return void - param v CoordI in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 67 - offset 131 - -Vertex2s(x, y) - return void - param x CoordS in value - param y CoordS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Vertex2sv - version 1.0 - deprecated 3.1 - offset 132 - -Vertex2sv(v) - return void - param v CoordS in array [2] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 68 - offset 133 - -Vertex3d(x, y, z) - return void - param x CoordD in value - param y CoordD in value - param z CoordD in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Vertex3dv - version 1.0 - deprecated 3.1 - offset 134 - -Vertex3dv(v) - return void - param v CoordD in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 69 - offset 135 - -Vertex3f(x, y, z) - return void - param x CoordF in value - param y CoordF in value - param z CoordF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Vertex3fv - version 1.0 - deprecated 3.1 - offset 136 - -Vertex3fv(v) - return void - param v CoordF in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 70 - offset 137 - -Vertex3i(x, y, z) - return void - param x CoordI in value - param y CoordI in value - param z CoordI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Vertex3iv - version 1.0 - deprecated 3.1 - offset 138 - -Vertex3iv(v) - return void - param v CoordI in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 71 - offset 139 - -Vertex3s(x, y, z) - return void - param x CoordS in value - param y CoordS in value - param z CoordS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Vertex3sv - version 1.0 - deprecated 3.1 - offset 140 - -Vertex3sv(v) - return void - param v CoordS in array [3] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 72 - offset 141 - -Vertex4d(x, y, z, w) - return void - param x CoordD in value - param y CoordD in value - param z CoordD in value - param w CoordD in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Vertex4dv - version 1.0 - deprecated 3.1 - offset 142 - -Vertex4dv(v) - return void - param v CoordD in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 73 - offset 143 - -Vertex4f(x, y, z, w) - return void - param x CoordF in value - param y CoordF in value - param z CoordF in value - param w CoordF in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Vertex4fv - version 1.0 - deprecated 3.1 - offset 144 - -Vertex4fv(v) - return void - param v CoordF in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 74 - offset 145 - -Vertex4i(x, y, z, w) - return void - param x CoordI in value - param y CoordI in value - param z CoordI in value - param w CoordI in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Vertex4iv - version 1.0 - deprecated 3.1 - offset 146 - -Vertex4iv(v) - return void - param v CoordI in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 75 - offset 147 - -Vertex4s(x, y, z, w) - return void - param x CoordS in value - param y CoordS in value - param z CoordS in value - param w CoordS in value - category VERSION_1_0_DEPRECATED # old: drawing - vectorequiv Vertex4sv - version 1.0 - deprecated 3.1 - offset 148 - -Vertex4sv(v) - return void - param v CoordS in array [4] - category VERSION_1_0_DEPRECATED # old: drawing - version 1.0 - deprecated 3.1 - glxropcode 76 - offset 149 - -ClipPlane(plane, equation) - return void - param plane ClipPlaneName in value - param equation Float64 in array [4] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 77 - offset 150 - -ColorMaterial(face, mode) - return void - param face MaterialFace in value - param mode ColorMaterialParameter in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 78 - offset 151 - -Fogf(pname, param) - return void - param pname FogParameter in value - param param CheckedFloat32 in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 80 - wglflags small-data - offset 153 - -Fogfv(pname, params) - return void - param pname FogParameter in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 81 - wglflags small-data - offset 154 - -Fogi(pname, param) - return void - param pname FogParameter in value - param param CheckedInt32 in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 82 - wglflags small-data - offset 155 - -Fogiv(pname, params) - return void - param pname FogParameter in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 83 - wglflags small-data - offset 156 - -Lightf(light, pname, param) - return void - param light LightName in value - param pname LightParameter in value - param param CheckedFloat32 in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 86 - wglflags small-data - offset 159 - -Lightfv(light, pname, params) - return void - param light LightName in value - param pname LightParameter in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 87 - wglflags small-data - offset 160 - -Lighti(light, pname, param) - return void - param light LightName in value - param pname LightParameter in value - param param CheckedInt32 in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 88 - wglflags small-data - offset 161 - -Lightiv(light, pname, params) - return void - param light LightName in value - param pname LightParameter in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 89 - wglflags small-data - offset 162 - -LightModelf(pname, param) - return void - param pname LightModelParameter in value - param param Float32 in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 90 - wglflags small-data - offset 163 - -LightModelfv(pname, params) - return void - param pname LightModelParameter in value - param params Float32 in array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 91 - wglflags small-data - offset 164 - -LightModeli(pname, param) - return void - param pname LightModelParameter in value - param param Int32 in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 92 - wglflags small-data - offset 165 - -LightModeliv(pname, params) - return void - param pname LightModelParameter in value - param params Int32 in array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 93 - wglflags small-data - offset 166 - -LineStipple(factor, pattern) - return void - param factor CheckedInt32 in value - param pattern LineStipple in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 94 - offset 167 - -Materialf(face, pname, param) - return void - param face MaterialFace in value - param pname MaterialParameter in value - param param CheckedFloat32 in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 96 - wglflags small-data - offset 169 - -Materialfv(face, pname, params) - return void - param face MaterialFace in value - param pname MaterialParameter in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 97 - wglflags small-data - offset 170 - -Materiali(face, pname, param) - return void - param face MaterialFace in value - param pname MaterialParameter in value - param param CheckedInt32 in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 98 - wglflags small-data - offset 171 - -Materialiv(face, pname, params) - return void - param face MaterialFace in value - param pname MaterialParameter in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 99 - wglflags small-data - offset 172 - -PolygonStipple(mask) - return void - param mask UInt8 in array [COMPSIZE()] - category VERSION_1_0_DEPRECATED # old: drawing-control - dlflags handcode - glxflags client-handcode server-handcode - version 1.0 - deprecated 3.1 - glxropcode 102 - wglflags client-handcode server-handcode - offset 175 - -ShadeModel(mode) - return void - param mode ShadingModel in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 104 - offset 177 - -TexEnvf(target, pname, param) - return void - param target TextureEnvTarget in value - param pname TextureEnvParameter in value - param param CheckedFloat32 in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 111 - wglflags small-data - offset 184 - -TexEnvfv(target, pname, params) - return void - param target TextureEnvTarget in value - param pname TextureEnvParameter in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 112 - wglflags small-data - offset 185 - -TexEnvi(target, pname, param) - return void - param target TextureEnvTarget in value - param pname TextureEnvParameter in value - param param CheckedInt32 in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 113 - wglflags small-data - offset 186 - -TexEnviv(target, pname, params) - return void - param target TextureEnvTarget in value - param pname TextureEnvParameter in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 114 - wglflags small-data - offset 187 - -TexGend(coord, pname, param) - return void - param coord TextureCoordName in value - param pname TextureGenParameter in value - param param Float64 in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 115 - wglflags small-data - offset 188 - -TexGendv(coord, pname, params) - return void - param coord TextureCoordName in value - param pname TextureGenParameter in value - param params Float64 in array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 116 - wglflags small-data - offset 189 - -TexGenf(coord, pname, param) - return void - param coord TextureCoordName in value - param pname TextureGenParameter in value - param param CheckedFloat32 in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 117 - wglflags small-data - offset 190 - -TexGenfv(coord, pname, params) - return void - param coord TextureCoordName in value - param pname TextureGenParameter in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 118 - wglflags small-data - offset 191 - -TexGeni(coord, pname, param) - return void - param coord TextureCoordName in value - param pname TextureGenParameter in value - param param CheckedInt32 in value - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 119 - wglflags small-data - offset 192 - -TexGeniv(coord, pname, params) - return void - param coord TextureCoordName in value - param pname TextureGenParameter in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: drawing-control - version 1.0 - deprecated 3.1 - glxropcode 120 - wglflags small-data - offset 193 - -# feedback commands - -FeedbackBuffer(size, type, buffer) - return void - param size SizeI in value - param type FeedbackType in value - param buffer FeedbackElement out array [size] retained - dlflags notlistable - glxflags client-handcode server-handcode - category VERSION_1_0_DEPRECATED # old: feedback - version 1.0 - deprecated 3.1 - glxsingle 105 - wglflags client-handcode server-handcode batchable - offset 194 - -SelectBuffer(size, buffer) - return void - param size SizeI in value - param buffer SelectName out array [size] retained - dlflags notlistable - glxflags client-handcode server-handcode - category VERSION_1_0_DEPRECATED # old: feedback - version 1.0 - deprecated 3.1 - glxsingle 106 - wglflags client-handcode server-handcode batchable - offset 195 - -RenderMode(mode) - return Int32 - param mode RenderingMode in value - category VERSION_1_0_DEPRECATED # old: feedback - dlflags notlistable - glxflags client-handcode server-handcode - version 1.0 - deprecated 3.1 - glxsingle 107 - wglflags client-handcode server-handcode - offset 196 - -InitNames() - return void - category VERSION_1_0_DEPRECATED # old: feedback - version 1.0 - deprecated 3.1 - glxropcode 121 - offset 197 - -LoadName(name) - return void - param name SelectName in value - category VERSION_1_0_DEPRECATED # old: feedback - version 1.0 - deprecated 3.1 - glxropcode 122 - offset 198 - -PassThrough(token) - return void - param token FeedbackElement in value - category VERSION_1_0_DEPRECATED # old: feedback - version 1.0 - deprecated 3.1 - glxropcode 123 - offset 199 - -PopName() - return void - category VERSION_1_0_DEPRECATED # old: feedback - version 1.0 - deprecated 3.1 - glxropcode 124 - offset 200 - -PushName(name) - return void - param name SelectName in value - category VERSION_1_0_DEPRECATED # old: feedback - version 1.0 - deprecated 3.1 - glxropcode 125 - offset 201 - -ClearAccum(red, green, blue, alpha) - return void - param red Float32 in value - param green Float32 in value - param blue Float32 in value - param alpha Float32 in value - category VERSION_1_0_DEPRECATED # old: framebuf - version 1.0 - deprecated 3.1 - glxropcode 128 - offset 204 - -ClearIndex(c) - return void - param c MaskedColorIndexValueF in value - category VERSION_1_0_DEPRECATED # old: framebuf - version 1.0 - deprecated 3.1 - glxropcode 129 - offset 205 - -IndexMask(mask) - return void - param mask MaskedColorIndexValueI in value - category VERSION_1_0_DEPRECATED # old: framebuf - version 1.0 - deprecated 3.1 - glxropcode 136 - offset 212 - -Accum(op, value) - return void - param op AccumOp in value - param value CoordF in value - category VERSION_1_0_DEPRECATED # old: misc - version 1.0 - deprecated 3.1 - glxropcode 137 - offset 213 - -PopAttrib() - return void - category VERSION_1_0_DEPRECATED # old: misc - version 1.0 - deprecated 3.1 - glxropcode 141 - offset 218 - -PushAttrib(mask) - return void - param mask AttribMask in value - category VERSION_1_0_DEPRECATED # old: misc - version 1.0 - deprecated 3.1 - glxropcode 142 - offset 219 - -# modeling commands - -Map1d(target, u1, u2, stride, order, points) - return void - param target MapTarget in value - param u1 CoordD in value - param u2 CoordD in value - param stride Int32 in value - param order CheckedInt32 in value - param points CoordD in array [COMPSIZE(target/stride/order)] - category VERSION_1_0_DEPRECATED # old: modeling - dlflags handcode - glxflags client-handcode server-handcode - version 1.0 - deprecated 3.1 - glxropcode 143 - wglflags client-handcode server-handcode - offset 220 - -Map1f(target, u1, u2, stride, order, points) - return void - param target MapTarget in value - param u1 CoordF in value - param u2 CoordF in value - param stride Int32 in value - param order CheckedInt32 in value - param points CoordF in array [COMPSIZE(target/stride/order)] - category VERSION_1_0_DEPRECATED # old: modeling - dlflags handcode - glxflags client-handcode server-handcode - version 1.0 - deprecated 3.1 - glxropcode 144 - wglflags client-handcode server-handcode - offset 221 - -Map2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points) - return void - param target MapTarget in value - param u1 CoordD in value - param u2 CoordD in value - param ustride Int32 in value - param uorder CheckedInt32 in value - param v1 CoordD in value - param v2 CoordD in value - param vstride Int32 in value - param vorder CheckedInt32 in value - param points CoordD in array [COMPSIZE(target/ustride/uorder/vstride/vorder)] - category VERSION_1_0_DEPRECATED # old: modeling - dlflags handcode - glxflags client-handcode server-handcode - version 1.0 - deprecated 3.1 - glxropcode 145 - wglflags client-handcode server-handcode - offset 222 - -Map2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points) - return void - param target MapTarget in value - param u1 CoordF in value - param u2 CoordF in value - param ustride Int32 in value - param uorder CheckedInt32 in value - param v1 CoordF in value - param v2 CoordF in value - param vstride Int32 in value - param vorder CheckedInt32 in value - param points CoordF in array [COMPSIZE(target/ustride/uorder/vstride/vorder)] - category VERSION_1_0_DEPRECATED # old: modeling - dlflags handcode - glxflags client-handcode server-handcode - version 1.0 - deprecated 3.1 - glxropcode 146 - wglflags client-handcode server-handcode - offset 223 - -MapGrid1d(un, u1, u2) - return void - param un Int32 in value - param u1 CoordD in value - param u2 CoordD in value - category VERSION_1_0_DEPRECATED # old: modeling - version 1.0 - deprecated 3.1 - glxropcode 147 - offset 224 - -MapGrid1f(un, u1, u2) - return void - param un Int32 in value - param u1 CoordF in value - param u2 CoordF in value - category VERSION_1_0_DEPRECATED # old: modeling - version 1.0 - deprecated 3.1 - glxropcode 148 - offset 225 - -MapGrid2d(un, u1, u2, vn, v1, v2) - return void - param un Int32 in value - param u1 CoordD in value - param u2 CoordD in value - param vn Int32 in value - param v1 CoordD in value - param v2 CoordD in value - category VERSION_1_0_DEPRECATED # old: modeling - version 1.0 - deprecated 3.1 - glxropcode 149 - offset 226 - -MapGrid2f(un, u1, u2, vn, v1, v2) - return void - param un Int32 in value - param u1 CoordF in value - param u2 CoordF in value - param vn Int32 in value - param v1 CoordF in value - param v2 CoordF in value - category VERSION_1_0_DEPRECATED # old: modeling - version 1.0 - deprecated 3.1 - glxropcode 150 - offset 227 - -EvalCoord1d(u) - return void - param u CoordD in value - category VERSION_1_0_DEPRECATED # old: modeling - vectorequiv EvalCoord1dv - version 1.0 - deprecated 3.1 - offset 228 - -EvalCoord1dv(u) - return void - param u CoordD in array [1] - category VERSION_1_0_DEPRECATED # old: modeling - version 1.0 - deprecated 3.1 - glxropcode 151 - offset 229 - -EvalCoord1f(u) - return void - param u CoordF in value - category VERSION_1_0_DEPRECATED # old: modeling - vectorequiv EvalCoord1fv - version 1.0 - deprecated 3.1 - offset 230 - -EvalCoord1fv(u) - return void - param u CoordF in array [1] - category VERSION_1_0_DEPRECATED # old: modeling - version 1.0 - deprecated 3.1 - glxropcode 152 - offset 231 - -EvalCoord2d(u, v) - return void - param u CoordD in value - param v CoordD in value - category VERSION_1_0_DEPRECATED # old: modeling - vectorequiv EvalCoord2dv - version 1.0 - deprecated 3.1 - offset 232 - -EvalCoord2dv(u) - return void - param u CoordD in array [2] - category VERSION_1_0_DEPRECATED # old: modeling - version 1.0 - deprecated 3.1 - glxropcode 153 - offset 233 - -EvalCoord2f(u, v) - return void - param u CoordF in value - param v CoordF in value - category VERSION_1_0_DEPRECATED # old: modeling - vectorequiv EvalCoord2fv - version 1.0 - deprecated 3.1 - offset 234 - -EvalCoord2fv(u) - return void - param u CoordF in array [2] - category VERSION_1_0_DEPRECATED # old: modeling - version 1.0 - deprecated 3.1 - glxropcode 154 - offset 235 - -EvalMesh1(mode, i1, i2) - return void - param mode MeshMode1 in value - param i1 CheckedInt32 in value - param i2 CheckedInt32 in value - category VERSION_1_0_DEPRECATED # old: modeling - version 1.0 - deprecated 3.1 - glxropcode 155 - offset 236 - -EvalPoint1(i) - return void - param i Int32 in value - category VERSION_1_0_DEPRECATED # old: modeling - version 1.0 - deprecated 3.1 - glxropcode 156 - offset 237 - -EvalMesh2(mode, i1, i2, j1, j2) - return void - param mode MeshMode2 in value - param i1 CheckedInt32 in value - param i2 CheckedInt32 in value - param j1 CheckedInt32 in value - param j2 CheckedInt32 in value - category VERSION_1_0_DEPRECATED # old: modeling - version 1.0 - deprecated 3.1 - glxropcode 157 - offset 238 - -EvalPoint2(i, j) - return void - param i CheckedInt32 in value - param j CheckedInt32 in value - category VERSION_1_0_DEPRECATED # old: modeling - version 1.0 - deprecated 3.1 - glxropcode 158 - offset 239 - -AlphaFunc(func, ref) - return void - param func AlphaFunction in value - param ref ClampedFloat32 in value - category VERSION_1_0_DEPRECATED # old: pixel-op - version 1.0 - deprecated 3.1 - glxropcode 159 - offset 240 - -PixelZoom(xfactor, yfactor) - return void - param xfactor Float32 in value - param yfactor Float32 in value - category VERSION_1_0_DEPRECATED # old: pixel-rw - version 1.0 - deprecated 3.1 - glxropcode 165 - offset 246 - -PixelTransferf(pname, param) - return void - param pname PixelTransferParameter in value - param param CheckedFloat32 in value - category VERSION_1_0_DEPRECATED # old: pixel-rw - version 1.0 - deprecated 3.1 - glxropcode 166 - offset 247 - -PixelTransferi(pname, param) - return void - param pname PixelTransferParameter in value - param param CheckedInt32 in value - category VERSION_1_0_DEPRECATED # old: pixel-rw - version 1.0 - deprecated 3.1 - glxropcode 167 - offset 248 - -PixelMapfv(map, mapsize, values) - return void - param map PixelMap in value - param mapsize CheckedInt32 in value - param values Float32 in array [mapsize] - category VERSION_1_0_DEPRECATED # old: pixel-rw - glxflags client-handcode - version 1.0 - deprecated 3.1 - glxropcode 168 - offset 251 - -PixelMapuiv(map, mapsize, values) - return void - param map PixelMap in value - param mapsize CheckedInt32 in value - param values UInt32 in array [mapsize] - category VERSION_1_0_DEPRECATED # old: pixel-rw - glxflags client-handcode - version 1.0 - deprecated 3.1 - glxropcode 169 - offset 252 - -PixelMapusv(map, mapsize, values) - return void - param map PixelMap in value - param mapsize CheckedInt32 in value - param values UInt16 in array [mapsize] - category VERSION_1_0_DEPRECATED # old: pixel-rw - glxflags client-handcode - version 1.0 - deprecated 3.1 - glxropcode 170 - offset 253 - -CopyPixels(x, y, width, height, type) - return void - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - param type PixelCopyType in value - category VERSION_1_0_DEPRECATED # old: pixel-rw - version 1.0 - deprecated 3.1 - glxropcode 172 - offset 255 - -DrawPixels(width, height, format, type, pixels) - return void - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height)] - category VERSION_1_0_DEPRECATED # old: pixel-rw - dlflags handcode - glxflags client-handcode server-handcode - version 1.0 - deprecated 3.1 - glxropcode 173 - wglflags client-handcode server-handcode - offset 257 - -GetClipPlane(plane, equation) - return void - param plane ClipPlaneName in value - param equation Float64 out array [4] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 113 - glxflags client-handcode server-handcode - offset 259 - -GetLightfv(light, pname, params) - return void - param light LightName in value - param pname LightParameter in value - param params Float32 out array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 118 - wglflags small-data - offset 264 - -GetLightiv(light, pname, params) - return void - param light LightName in value - param pname LightParameter in value - param params Int32 out array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 119 - wglflags small-data - offset 265 - -GetMapdv(target, query, v) - return void - param target MapTarget in value - param query GetMapQuery in value - param v Float64 out array [COMPSIZE(target/query)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 120 - offset 266 - -GetMapfv(target, query, v) - return void - param target MapTarget in value - param query GetMapQuery in value - param v Float32 out array [COMPSIZE(target/query)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 121 - offset 267 - -GetMapiv(target, query, v) - return void - param target MapTarget in value - param query GetMapQuery in value - param v Int32 out array [COMPSIZE(target/query)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 122 - offset 268 - -GetMaterialfv(face, pname, params) - return void - param face MaterialFace in value - param pname MaterialParameter in value - param params Float32 out array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 123 - wglflags small-data - offset 269 - -GetMaterialiv(face, pname, params) - return void - param face MaterialFace in value - param pname MaterialParameter in value - param params Int32 out array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 124 - wglflags small-data - offset 270 - -GetPixelMapfv(map, values) - return void - param map PixelMap in value - param values Float32 out array [COMPSIZE(map)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 125 - offset 271 - -GetPixelMapuiv(map, values) - return void - param map PixelMap in value - param values UInt32 out array [COMPSIZE(map)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 126 - offset 272 - -GetPixelMapusv(map, values) - return void - param map PixelMap in value - param values UInt16 out array [COMPSIZE(map)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 127 - offset 273 - -GetPolygonStipple(mask) - return void - param mask UInt8 out array [COMPSIZE()] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - glxflags client-handcode server-handcode - version 1.0 - deprecated 3.1 - glxsingle 128 - wglflags client-handcode server-handcode - offset 274 - -GetTexEnvfv(target, pname, params) - return void - param target TextureEnvTarget in value - param pname TextureEnvParameter in value - param params Float32 out array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 130 - wglflags small-data - offset 276 - -GetTexEnviv(target, pname, params) - return void - param target TextureEnvTarget in value - param pname TextureEnvParameter in value - param params Int32 out array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 131 - wglflags small-data - offset 277 - -GetTexGendv(coord, pname, params) - return void - param coord TextureCoordName in value - param pname TextureGenParameter in value - param params Float64 out array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 132 - wglflags small-data - offset 278 - -GetTexGenfv(coord, pname, params) - return void - param coord TextureCoordName in value - param pname TextureGenParameter in value - param params Float32 out array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 133 - wglflags small-data - offset 279 - -GetTexGeniv(coord, pname, params) - return void - param coord TextureCoordName in value - param pname TextureGenParameter in value - param params Int32 out array [COMPSIZE(pname)] - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 134 - wglflags small-data - offset 280 - -IsList(list) - return Boolean - param list List in value - category VERSION_1_0_DEPRECATED # old: state-req - dlflags notlistable - version 1.0 - deprecated 3.1 - glxsingle 141 - offset 287 - -Frustum(left, right, bottom, top, zNear, zFar) - return void - param left Float64 in value - param right Float64 in value - param bottom Float64 in value - param top Float64 in value - param zNear Float64 in value - param zFar Float64 in value - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 175 - offset 289 - -LoadIdentity() - return void - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 176 - offset 290 - -LoadMatrixf(m) - return void - param m Float32 in array [16] - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 177 - offset 291 - -LoadMatrixd(m) - return void - param m Float64 in array [16] - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 178 - offset 292 - -MatrixMode(mode) - return void - param mode MatrixMode in value - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 179 - offset 293 - -MultMatrixf(m) - return void - param m Float32 in array [16] - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 180 - offset 294 - -MultMatrixd(m) - return void - param m Float64 in array [16] - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 181 - offset 295 - -Ortho(left, right, bottom, top, zNear, zFar) - return void - param left Float64 in value - param right Float64 in value - param bottom Float64 in value - param top Float64 in value - param zNear Float64 in value - param zFar Float64 in value - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 182 - offset 296 - -PopMatrix() - return void - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 183 - offset 297 - -PushMatrix() - return void - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 184 - offset 298 - -Rotated(angle, x, y, z) - return void - param angle Float64 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 185 - offset 299 - -Rotatef(angle, x, y, z) - return void - param angle Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 186 - offset 300 - -Scaled(x, y, z) - return void - param x Float64 in value - param y Float64 in value - param z Float64 in value - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 187 - offset 301 - -Scalef(x, y, z) - return void - param x Float32 in value - param y Float32 in value - param z Float32 in value - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 188 - offset 302 - -Translated(x, y, z) - return void - param x Float64 in value - param y Float64 in value - param z Float64 in value - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 189 - offset 303 - -Translatef(x, y, z) - return void - param x Float32 in value - param y Float32 in value - param z Float32 in value - category VERSION_1_0_DEPRECATED # old: xform - version 1.0 - deprecated 3.1 - glxropcode 190 - offset 304 - -############################################################################### -############################################################################### -# -# OpenGL 1.1 commands -# -############################################################################### -############################################################################### - -DrawArrays(mode, first, count) - return void - param mode BeginMode in value - param first Int32 in value - param count SizeI in value - category VERSION_1_1 - dlflags handcode - glxflags client-handcode client-intercept server-handcode - version 1.1 - glxropcode 193 - offset 310 - -DrawElements(mode, count, type, indices) - return void - param mode BeginMode in value - param count SizeI in value - param type DrawElementsType in value - param indices Void in array [COMPSIZE(count/type)] - category VERSION_1_1 - dlflags handcode - glxflags client-handcode client-intercept server-handcode - version 1.1 - offset 311 - -GetPointerv(pname, params) - return void - param pname GetPointervPName in value - param params VoidPointer out array [1] - category VERSION_1_1 - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - version 1.1 - offset 329 - -PolygonOffset(factor, units) - return void - param factor Float32 in value - param units Float32 in value - category VERSION_1_1 - version 1.1 - glxropcode 192 - offset 319 - -# Arguably TexelInternalFormat, not PixelInternalFormat -CopyTexImage1D(target, level, internalformat, x, y, width, border) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat PixelInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param border CheckedInt32 in value - category VERSION_1_1 - version 1.1 - glxropcode 4119 - glxflags EXT - offset 323 - -# Arguably TexelInternalFormat, not PixelInternalFormat -CopyTexImage2D(target, level, internalformat, x, y, width, height, border) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat PixelInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - param border CheckedInt32 in value - category VERSION_1_1 - version 1.1 - glxropcode 4120 - glxflags EXT - offset 324 - -CopyTexSubImage1D(target, level, xoffset, x, y, width) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - category VERSION_1_1 - version 1.1 - glxropcode 4121 - glxflags EXT - offset 325 - -CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - category VERSION_1_1 - version 1.1 - glxropcode 4122 - glxflags EXT - offset 326 - -TexSubImage1D(target, level, xoffset, width, format, type, pixels) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param width SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width)] - category VERSION_1_1 - dlflags handcode - glxflags EXT client-handcode server-handcode - version 1.1 - glxropcode 4099 - offset 332 - -TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height)] - category VERSION_1_1 - dlflags handcode - glxflags EXT client-handcode server-handcode - version 1.1 - glxropcode 4100 - offset 333 - -BindTexture(target, texture) - return void - param target TextureTarget in value - param texture Texture in value - category VERSION_1_1 - version 1.1 - glxropcode 4117 - glxflags EXT - offset 307 - -DeleteTextures(n, textures) - return void - param n SizeI in value - param textures Texture in array [n] - category VERSION_1_1 - dlflags notlistable - version 1.1 - glxsingle 144 - offset 327 - -GenTextures(n, textures) - return void - param n SizeI in value - param textures Texture out array [n] - category VERSION_1_1 - dlflags notlistable - version 1.1 - glxsingle 145 - offset 328 - -IsTexture(texture) - return Boolean - param texture Texture in value - category VERSION_1_1 - dlflags notlistable - version 1.1 - glxsingle 146 - offset 330 - -############################################################################### -############################################################################### -# -# OpenGL 1.1 deprecated commands -# -############################################################################### -############################################################################### - -ArrayElement(i) - return void - param i Int32 in value - category VERSION_1_1_DEPRECATED - dlflags handcode - glxflags client-handcode client-intercept server-handcode - version 1.1 - deprecated 3.1 - offset 306 - -ColorPointer(size, type, stride, pointer) - return void - param size Int32 in value - param type ColorPointerType in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(size/type/stride)] retained - category VERSION_1_1_DEPRECATED - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - version 1.1 - deprecated 3.1 - offset 308 - -DisableClientState(array) - return void - param array EnableCap in value - category VERSION_1_1_DEPRECATED - version 1.1 - deprecated 3.1 - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - offset 309 - -EdgeFlagPointer(stride, pointer) - return void - param stride SizeI in value - param pointer Void in array [COMPSIZE(stride)] retained - category VERSION_1_1_DEPRECATED - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - version 1.1 - deprecated 3.1 - offset 312 - -EnableClientState(array) - return void - param array EnableCap in value - category VERSION_1_1_DEPRECATED - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - version 1.1 - deprecated 3.1 - offset 313 - -IndexPointer(type, stride, pointer) - return void - param type IndexPointerType in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(type/stride)] retained - category VERSION_1_1_DEPRECATED - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - version 1.1 - deprecated 3.1 - offset 314 - -InterleavedArrays(format, stride, pointer) - return void - param format InterleavedArrayFormat in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(format/stride)] retained - category VERSION_1_1_DEPRECATED - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - version 1.1 - deprecated 3.1 - offset 317 - -NormalPointer(type, stride, pointer) - return void - param type NormalPointerType in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(type/stride)] retained - category VERSION_1_1_DEPRECATED - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - version 1.1 - deprecated 3.1 - offset 318 - -TexCoordPointer(size, type, stride, pointer) - return void - param size Int32 in value - param type TexCoordPointerType in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(size/type/stride)] retained - category VERSION_1_1_DEPRECATED - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - version 1.1 - deprecated 3.1 - offset 320 - -VertexPointer(size, type, stride, pointer) - return void - param size Int32 in value - param type VertexPointerType in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(size/type/stride)] retained - category VERSION_1_1_DEPRECATED - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - version 1.1 - deprecated 3.1 - offset 321 - -AreTexturesResident(n, textures, residences) - return Boolean - param n SizeI in value - param textures Texture in array [n] - param residences Boolean out array [n] - category VERSION_1_1_DEPRECATED - glxsingle 143 - dlflags notlistable - version 1.1 - deprecated 3.1 - offset 322 - -PrioritizeTextures(n, textures, priorities) - return void - param n SizeI in value - param textures Texture in array [n] - param priorities ClampedFloat32 in array [n] - category VERSION_1_1_DEPRECATED - version 1.1 - deprecated 3.1 - glxropcode 4118 - glxflags EXT - offset 331 - -Indexub(c) - return void - param c ColorIndexValueUB in value - category VERSION_1_1_DEPRECATED - vectorequiv Indexubv - version 1.1 - offset 315 - -Indexubv(c) - return void - param c ColorIndexValueUB in array [1] - category VERSION_1_1_DEPRECATED - version 1.1 - glxropcode 194 - offset 316 - -PopClientAttrib() - return void - category VERSION_1_1_DEPRECATED - version 1.1 - deprecated 3.1 - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - offset 334 - -PushClientAttrib(mask) - return void - param mask ClientAttribMask in value - category VERSION_1_1_DEPRECATED - version 1.1 - deprecated 3.1 - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - offset 335 - -############################################################################### -############################################################################### -# -# OpenGL 1.2 commands -# -############################################################################### -############################################################################### - -BlendColor(red, green, blue, alpha) - return void - param red ClampedColorF in value - param green ClampedColorF in value - param blue ClampedColorF in value - param alpha ClampedColorF in value - category VERSION_1_2 - glxflags EXT - version 1.2 - glxropcode 4096 - offset 336 - -BlendEquation(mode) - return void - param mode BlendEquationMode in value - category VERSION_1_2 - glxflags EXT - version 1.2 - glxropcode 4097 - offset 337 - -DrawRangeElements(mode, start, end, count, type, indices) - return void - param mode BeginMode in value - param start UInt32 in value - param end UInt32 in value - param count SizeI in value - param type DrawElementsType in value - param indices Void in array [COMPSIZE(count/type)] - category VERSION_1_2 - dlflags handcode - glxflags client-handcode client-intercept server-handcode - version 1.2 - offset 338 - -# OpenGL 1.2 (EXT_texture3D) commands - -# Arguably TexelInternalFormat, not PixelInternalFormat -TexImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureComponentCount in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param border CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height/depth)] - category VERSION_1_2 - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.2 - deprecated 3.1 - glxropcode 4114 - offset 371 - -TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param zoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height/depth)] - category VERSION_1_2 - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.2 - glxropcode 4115 - offset 372 - -# OpenGL 1.2 (EXT_copy_texture) commands (specific to texture3D) - -CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param zoffset CheckedInt32 in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - category VERSION_1_2 - glxflags EXT - version 1.2 - glxropcode 4123 - offset 373 - -############################################################################### -############################################################################### -# -# OpenGL 1.2 deprecated commands -# -############################################################################### -############################################################################### - -# OpenGL 1.2 (SGI_color_table) commands - -ColorTable(target, internalformat, width, format, type, table) - return void - param target ColorTableTarget in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param format PixelFormat in value - param type PixelType in value - param table Void in array [COMPSIZE(format/type/width)] - category VERSION_1_2_DEPRECATED - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.2 - deprecated 3.1 - glxropcode 2053 - offset 339 - -ColorTableParameterfv(target, pname, params) - return void - param target ColorTableTarget in value - param pname ColorTableParameterPName in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category VERSION_1_2_DEPRECATED - glxflags EXT - version 1.2 - deprecated 3.1 - glxropcode 2054 - offset 340 - -ColorTableParameteriv(target, pname, params) - return void - param target ColorTableTarget in value - param pname ColorTableParameterPName in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category VERSION_1_2_DEPRECATED - glxflags EXT - version 1.2 - deprecated 3.1 - glxropcode 2055 - offset 341 - -CopyColorTable(target, internalformat, x, y, width) - return void - param target ColorTableTarget in value - param internalformat PixelInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - category VERSION_1_2_DEPRECATED - glxflags EXT - version 1.2 - deprecated 3.1 - glxropcode 2056 - offset 342 - -GetColorTable(target, format, type, table) - return void - param target ColorTableTarget in value - param format PixelFormat in value - param type PixelType in value - param table Void out array [COMPSIZE(target/format/type)] - category VERSION_1_2_DEPRECATED - dlflags notlistable - glxflags client-handcode server-handcode - version 1.2 - deprecated 3.1 - glxsingle 147 - offset 343 - -GetColorTableParameterfv(target, pname, params) - return void - param target ColorTableTarget in value - param pname GetColorTableParameterPName in value - param params Float32 out array [COMPSIZE(pname)] - category VERSION_1_2_DEPRECATED - dlflags notlistable - version 1.2 - deprecated 3.1 - glxsingle 148 - offset 344 - -GetColorTableParameteriv(target, pname, params) - return void - param target ColorTableTarget in value - param pname GetColorTableParameterPName in value - param params Int32 out array [COMPSIZE(pname)] - category VERSION_1_2_DEPRECATED - dlflags notlistable - version 1.2 - deprecated 3.1 - glxsingle 149 - offset 345 - -# OpenGL 1.2 (EXT_color_subtable) commands - -ColorSubTable(target, start, count, format, type, data) - return void - param target ColorTableTarget in value - param start SizeI in value - param count SizeI in value - param format PixelFormat in value - param type PixelType in value - param data Void in array [COMPSIZE(format/type/count)] - category VERSION_1_2_DEPRECATED - dlflags handcode - glxflags client-handcode server-handcode - version 1.2 - deprecated 3.1 - glxropcode 195 - offset 346 - -CopyColorSubTable(target, start, x, y, width) - return void - param target ColorTableTarget in value - param start SizeI in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - category VERSION_1_2_DEPRECATED - version 1.2 - deprecated 3.1 - glxropcode 196 - offset 347 - -# OpenGL 1.2 (EXT_convolution) commands - -ConvolutionFilter1D(target, internalformat, width, format, type, image) - return void - param target ConvolutionTarget in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param format PixelFormat in value - param type PixelType in value - param image Void in array [COMPSIZE(format/type/width)] - category VERSION_1_2_DEPRECATED - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.2 - deprecated 3.1 - glxropcode 4101 - offset 348 - -ConvolutionFilter2D(target, internalformat, width, height, format, type, image) - return void - param target ConvolutionTarget in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param type PixelType in value - param image Void in array [COMPSIZE(format/type/width/height)] - category VERSION_1_2_DEPRECATED - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.2 - deprecated 3.1 - glxropcode 4102 - offset 349 - -ConvolutionParameterf(target, pname, params) - return void - param target ConvolutionTarget in value - param pname ConvolutionParameter in value - param params CheckedFloat32 in value - category VERSION_1_2_DEPRECATED - glxflags EXT - version 1.2 - deprecated 3.1 - glxropcode 4103 - offset 350 - -ConvolutionParameterfv(target, pname, params) - return void - param target ConvolutionTarget in value - param pname ConvolutionParameter in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category VERSION_1_2_DEPRECATED - glxflags EXT - version 1.2 - deprecated 3.1 - glxropcode 4104 - offset 351 - -ConvolutionParameteri(target, pname, params) - return void - param target ConvolutionTarget in value - param pname ConvolutionParameter in value - param params CheckedInt32 in value - category VERSION_1_2_DEPRECATED - glxflags EXT - version 1.2 - deprecated 3.1 - glxropcode 4105 - offset 352 - -ConvolutionParameteriv(target, pname, params) - return void - param target ConvolutionTarget in value - param pname ConvolutionParameter in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category VERSION_1_2_DEPRECATED - glxflags EXT - version 1.2 - deprecated 3.1 - glxropcode 4106 - offset 353 - -CopyConvolutionFilter1D(target, internalformat, x, y, width) - return void - param target ConvolutionTarget in value - param internalformat PixelInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - category VERSION_1_2_DEPRECATED - glxflags EXT - version 1.2 - deprecated 3.1 - glxropcode 4107 - offset 354 - -CopyConvolutionFilter2D(target, internalformat, x, y, width, height) - return void - param target ConvolutionTarget in value - param internalformat PixelInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - category VERSION_1_2_DEPRECATED - glxflags EXT - version 1.2 - deprecated 3.1 - glxropcode 4108 - offset 355 - -GetConvolutionFilter(target, format, type, image) - return void - param target ConvolutionTarget in value - param format PixelFormat in value - param type PixelType in value - param image Void out array [COMPSIZE(target/format/type)] - category VERSION_1_2_DEPRECATED - dlflags notlistable - glxflags client-handcode server-handcode - version 1.2 - deprecated 3.1 - glxsingle 150 - offset 356 - -GetConvolutionParameterfv(target, pname, params) - return void - param target ConvolutionTarget in value - param pname GetConvolutionParameterPName in value - param params Float32 out array [COMPSIZE(pname)] - category VERSION_1_2_DEPRECATED - dlflags notlistable - version 1.2 - deprecated 3.1 - glxsingle 151 - offset 357 - -GetConvolutionParameteriv(target, pname, params) - return void - param target ConvolutionTarget in value - param pname GetConvolutionParameterPName in value - param params Int32 out array [COMPSIZE(pname)] - category VERSION_1_2_DEPRECATED - dlflags notlistable - version 1.2 - deprecated 3.1 - glxsingle 152 - offset 358 - -GetSeparableFilter(target, format, type, row, column, span) - return void - param target SeparableTarget in value - param format PixelFormat in value - param type PixelType in value - param row Void out array [COMPSIZE(target/format/type)] - param column Void out array [COMPSIZE(target/format/type)] - param span Void out array [COMPSIZE(target/format/type)] - category VERSION_1_2_DEPRECATED - dlflags notlistable - glxflags client-handcode server-handcode - version 1.2 - deprecated 3.1 - glxsingle 153 - offset 359 - -SeparableFilter2D(target, internalformat, width, height, format, type, row, column) - return void - param target SeparableTarget in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param type PixelType in value - param row Void in array [COMPSIZE(target/format/type/width)] - param column Void in array [COMPSIZE(target/format/type/height)] - category VERSION_1_2_DEPRECATED - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.2 - deprecated 3.1 - glxropcode 4109 - offset 360 - -# OpenGL 1.2 (EXT_histogram) commands - -GetHistogram(target, reset, format, type, values) - return void - param target HistogramTarget in value - param reset Boolean in value - param format PixelFormat in value - param type PixelType in value - param values Void out array [COMPSIZE(target/format/type)] - category VERSION_1_2_DEPRECATED - dlflags notlistable - glxflags client-handcode server-handcode - version 1.2 - deprecated 3.1 - glxsingle 154 - offset 361 - -GetHistogramParameterfv(target, pname, params) - return void - param target HistogramTarget in value - param pname GetHistogramParameterPName in value - param params Float32 out array [COMPSIZE(pname)] - category VERSION_1_2_DEPRECATED - dlflags notlistable - version 1.2 - deprecated 3.1 - glxsingle 155 - offset 362 - -GetHistogramParameteriv(target, pname, params) - return void - param target HistogramTarget in value - param pname GetHistogramParameterPName in value - param params Int32 out array [COMPSIZE(pname)] - category VERSION_1_2_DEPRECATED - dlflags notlistable - version 1.2 - deprecated 3.1 - glxsingle 156 - offset 363 - -GetMinmax(target, reset, format, type, values) - return void - param target MinmaxTarget in value - param reset Boolean in value - param format PixelFormat in value - param type PixelType in value - param values Void out array [COMPSIZE(target/format/type)] - category VERSION_1_2_DEPRECATED - dlflags notlistable - glxflags client-handcode server-handcode - version 1.2 - deprecated 3.1 - glxsingle 157 - offset 364 - -GetMinmaxParameterfv(target, pname, params) - return void - param target MinmaxTarget in value - param pname GetMinmaxParameterPName in value - param params Float32 out array [COMPSIZE(pname)] - category VERSION_1_2_DEPRECATED - dlflags notlistable - version 1.2 - deprecated 3.1 - glxsingle 158 - offset 365 - -GetMinmaxParameteriv(target, pname, params) - return void - param target MinmaxTarget in value - param pname GetMinmaxParameterPName in value - param params Int32 out array [COMPSIZE(pname)] - category VERSION_1_2_DEPRECATED - dlflags notlistable - version 1.2 - deprecated 3.1 - glxsingle 159 - offset 366 - -Histogram(target, width, internalformat, sink) - return void - param target HistogramTarget in value - param width SizeI in value - param internalformat PixelInternalFormat in value - param sink Boolean in value - category VERSION_1_2_DEPRECATED - dlflags handcode - glxflags EXT - version 1.2 - deprecated 3.1 - glxropcode 4110 - offset 367 - -Minmax(target, internalformat, sink) - return void - param target MinmaxTarget in value - param internalformat PixelInternalFormat in value - param sink Boolean in value - category VERSION_1_2_DEPRECATED - glxflags EXT - version 1.2 - deprecated 3.1 - glxropcode 4111 - offset 368 - -ResetHistogram(target) - return void - param target HistogramTarget in value - category VERSION_1_2_DEPRECATED - glxflags EXT - version 1.2 - deprecated 3.1 - glxropcode 4112 - offset 369 - -ResetMinmax(target) - return void - param target MinmaxTarget in value - category VERSION_1_2_DEPRECATED - glxflags EXT - version 1.2 - deprecated 3.1 - glxropcode 4113 - offset 370 - -############################################################################### -############################################################################### -# -# OpenGL 1.3 commands -# -############################################################################### -############################################################################### - -# OpenGL 1.3 (ARB_multitexture) commands - -ActiveTexture(texture) - return void - param texture TextureUnit in value - category VERSION_1_3 - glxflags ARB - version 1.3 - glxropcode 197 - offset 374 - -# OpenGL 1.3 (ARB_multisample) commands - -SampleCoverage(value, invert) - return void - param value ClampedFloat32 in value - param invert Boolean in value - category VERSION_1_3 - glxflags ARB - version 1.3 - glxropcode 229 - offset 412 - -# OpenGL 1.3 (ARB_texture_compression) commands - -# Arguably TexelInternalFormat, not PixelInternalFormat -CompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param border CheckedInt32 in value - param imageSize SizeI in value - param data CompressedTextureARB in array [imageSize] - category VERSION_1_3 - dlflags handcode - glxflags ARB client-handcode server-handcode - version 1.3 - glxropcode 216 - wglflags client-handcode server-handcode - offset 554 - -# Arguably TexelInternalFormat, not PixelInternalFormat -CompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - param border CheckedInt32 in value - param imageSize SizeI in value - param data CompressedTextureARB in array [imageSize] - category VERSION_1_3 - dlflags handcode - glxflags ARB client-handcode server-handcode - version 1.3 - glxropcode 215 - wglflags client-handcode server-handcode - offset 555 - -# Arguably TexelInternalFormat, not PixelInternalFormat -CompressedTexImage1D(target, level, internalformat, width, border, imageSize, data) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param border CheckedInt32 in value - param imageSize SizeI in value - param data CompressedTextureARB in array [imageSize] - category VERSION_1_3 - dlflags handcode - glxflags ARB client-handcode server-handcode - version 1.3 - glxropcode 214 - wglflags client-handcode server-handcode - offset 556 - -CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param zoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param format PixelFormat in value - param imageSize SizeI in value - param data CompressedTextureARB in array [imageSize] - category VERSION_1_3 - dlflags handcode - glxflags ARB client-handcode server-handcode - version 1.3 - glxropcode 219 - wglflags client-handcode server-handcode - offset 557 - -CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param imageSize SizeI in value - param data CompressedTextureARB in array [imageSize] - category VERSION_1_3 - dlflags handcode - glxflags ARB client-handcode server-handcode - version 1.3 - glxropcode 218 - wglflags client-handcode server-handcode - offset 558 - -CompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param width SizeI in value - param format PixelFormat in value - param imageSize SizeI in value - param data CompressedTextureARB in array [imageSize] - category VERSION_1_3 - dlflags handcode - glxflags ARB client-handcode server-handcode - version 1.3 - glxropcode 217 - wglflags client-handcode server-handcode - offset 559 - -GetCompressedTexImage(target, level, img) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param img CompressedTextureARB out array [COMPSIZE(target/level)] - category VERSION_1_3 - dlflags notlistable - glxflags ARB client-handcode server-handcode - version 1.3 - glxsingle 160 - wglflags client-handcode server-handcode - offset 560 - -############################################################################### -############################################################################### -# -# OpenGL 1.3 deprecated commands -# -############################################################################### -############################################################################### - -ClientActiveTexture(texture) - return void - param texture TextureUnit in value - category VERSION_1_3_DEPRECATED - dlflags notlistable - glxflags ARB client-handcode client-intercept server-handcode - version 1.3 - deprecated 3.1 - offset 375 - -MultiTexCoord1d(target, s) - return void - param target TextureUnit in value - param s CoordD in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord1dv - offset 376 - -MultiTexCoord1dv(target, v) - return void - param target TextureUnit in value - param v CoordD in array [1] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 198 - offset 377 - -MultiTexCoord1f(target, s) - return void - param target TextureUnit in value - param s CoordF in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord1fv - offset 378 - -MultiTexCoord1fv(target, v) - return void - param target TextureUnit in value - param v CoordF in array [1] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 199 - offset 379 - -MultiTexCoord1i(target, s) - return void - param target TextureUnit in value - param s CoordI in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord1iv - offset 380 - -MultiTexCoord1iv(target, v) - return void - param target TextureUnit in value - param v CoordI in array [1] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 200 - offset 381 - -MultiTexCoord1s(target, s) - return void - param target TextureUnit in value - param s CoordS in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord1sv - offset 382 - -MultiTexCoord1sv(target, v) - return void - param target TextureUnit in value - param v CoordS in array [1] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 201 - offset 383 - -MultiTexCoord2d(target, s, t) - return void - param target TextureUnit in value - param s CoordD in value - param t CoordD in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord2dv - offset 384 - -MultiTexCoord2dv(target, v) - return void - param target TextureUnit in value - param v CoordD in array [2] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 202 - offset 385 - -MultiTexCoord2f(target, s, t) - return void - param target TextureUnit in value - param s CoordF in value - param t CoordF in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord2fv - offset 386 - -MultiTexCoord2fv(target, v) - return void - param target TextureUnit in value - param v CoordF in array [2] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 203 - offset 387 - -MultiTexCoord2i(target, s, t) - return void - param target TextureUnit in value - param s CoordI in value - param t CoordI in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord2iv - offset 388 - -MultiTexCoord2iv(target, v) - return void - param target TextureUnit in value - param v CoordI in array [2] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 204 - offset 389 - -MultiTexCoord2s(target, s, t) - return void - param target TextureUnit in value - param s CoordS in value - param t CoordS in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord2sv - offset 390 - -MultiTexCoord2sv(target, v) - return void - param target TextureUnit in value - param v CoordS in array [2] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 205 - offset 391 - -MultiTexCoord3d(target, s, t, r) - return void - param target TextureUnit in value - param s CoordD in value - param t CoordD in value - param r CoordD in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord3dv - offset 392 - -MultiTexCoord3dv(target, v) - return void - param target TextureUnit in value - param v CoordD in array [3] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 206 - offset 393 - -MultiTexCoord3f(target, s, t, r) - return void - param target TextureUnit in value - param s CoordF in value - param t CoordF in value - param r CoordF in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord3fv - offset 394 - -MultiTexCoord3fv(target, v) - return void - param target TextureUnit in value - param v CoordF in array [3] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 207 - offset 395 - -MultiTexCoord3i(target, s, t, r) - return void - param target TextureUnit in value - param s CoordI in value - param t CoordI in value - param r CoordI in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord3iv - offset 396 - -MultiTexCoord3iv(target, v) - return void - param target TextureUnit in value - param v CoordI in array [3] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 208 - offset 397 - -MultiTexCoord3s(target, s, t, r) - return void - param target TextureUnit in value - param s CoordS in value - param t CoordS in value - param r CoordS in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord3sv - offset 398 - -MultiTexCoord3sv(target, v) - return void - param target TextureUnit in value - param v CoordS in array [3] - category VERSION_1_3_DEPRECATED - version 1.3 - deprecated 3.1 - glxflags ARB - glxropcode 209 - offset 399 - -MultiTexCoord4d(target, s, t, r, q) - return void - param target TextureUnit in value - param s CoordD in value - param t CoordD in value - param r CoordD in value - param q CoordD in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord4dv - offset 400 - -MultiTexCoord4dv(target, v) - return void - param target TextureUnit in value - param v CoordD in array [4] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 210 - offset 401 - -MultiTexCoord4f(target, s, t, r, q) - return void - param target TextureUnit in value - param s CoordF in value - param t CoordF in value - param r CoordF in value - param q CoordF in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord4fv - offset 402 - -MultiTexCoord4fv(target, v) - return void - param target TextureUnit in value - param v CoordF in array [4] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 211 - offset 403 - -MultiTexCoord4i(target, s, t, r, q) - return void - param target TextureUnit in value - param s CoordI in value - param t CoordI in value - param r CoordI in value - param q CoordI in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord4iv - offset 404 - -MultiTexCoord4iv(target, v) - return void - param target TextureUnit in value - param v CoordI in array [4] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 212 - offset 405 - -MultiTexCoord4s(target, s, t, r, q) - return void - param target TextureUnit in value - param s CoordS in value - param t CoordS in value - param r CoordS in value - param q CoordS in value - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - vectorequiv MultiTexCoord4sv - offset 406 - -MultiTexCoord4sv(target, v) - return void - param target TextureUnit in value - param v CoordS in array [4] - category VERSION_1_3_DEPRECATED - glxflags ARB - version 1.3 - deprecated 3.1 - glxropcode 213 - offset 407 - -# OpenGL 1.3 (ARB_transpose_matrix) commands - -LoadTransposeMatrixf(m) - return void - param m Float32 in array [16] - category VERSION_1_3_DEPRECATED - glxflags ARB client-handcode client-intercept server-handcode - version 1.3 - deprecated 3.1 - offset 408 - -LoadTransposeMatrixd(m) - return void - param m Float64 in array [16] - category VERSION_1_3_DEPRECATED - glxflags ARB client-handcode client-intercept server-handcode - version 1.3 - deprecated 3.1 - offset 409 - -MultTransposeMatrixf(m) - return void - param m Float32 in array [16] - category VERSION_1_3_DEPRECATED - glxflags ARB client-handcode client-intercept server-handcode - version 1.3 - deprecated 3.1 - offset 410 - -MultTransposeMatrixd(m) - return void - param m Float64 in array [16] - category VERSION_1_3_DEPRECATED - glxflags ARB client-handcode client-intercept server-handcode - version 1.3 - deprecated 3.1 - offset 411 - -############################################################################### -############################################################################### -# -# OpenGL 1.4 commands -# -############################################################################### -############################################################################### - -# OpenGL 1.4 (EXT_blend_func_separate) commands - -BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha) - return void - param sfactorRGB BlendFuncSeparateParameterEXT in value - param dfactorRGB BlendFuncSeparateParameterEXT in value - param sfactorAlpha BlendFuncSeparateParameterEXT in value - param dfactorAlpha BlendFuncSeparateParameterEXT in value - category VERSION_1_4 - glxropcode 4134 - version 1.4 - extension - offset 537 - -# OpenGL 1.4 (EXT_multi_draw_arrays) commands - -# first and count are really 'in' -MultiDrawArrays(mode, first, count, primcount) - return void - param mode BeginMode in value - param first Int32 in array [COMPSIZE(count)] - param count SizeI in array [COMPSIZE(primcount)] - param primcount SizeI in value - category VERSION_1_4 - version 1.4 - glxropcode ? - offset 644 - -MultiDrawElements(mode, count, type, indices, primcount) - return void - param mode BeginMode in value - param count SizeI in array [COMPSIZE(primcount)] - param type DrawElementsType in value - param indices VoidPointer in array [COMPSIZE(primcount)] - param primcount SizeI in value - category VERSION_1_4 - version 1.4 - glxropcode ? - offset 645 - -# OpenGL 1.4 (ARB_point_parameters, NV_point_sprite) commands - -PointParameterf(pname, param) - return void - param pname PointParameterNameARB in value - param param CheckedFloat32 in value - category VERSION_1_4 - version 1.4 - glxropcode 2065 - extension - offset 458 - -PointParameterfv(pname, params) - return void - param pname PointParameterNameARB in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category VERSION_1_4 - version 1.4 - glxropcode 2066 - extension - offset 459 - -PointParameteri(pname, param) - return void - param pname PointParameterNameARB in value - param param Int32 in value - category VERSION_1_4 - version 1.4 - extension soft WINSOFT NV20 - glxropcode 4221 - offset 642 - -PointParameteriv(pname, params) - return void - param pname PointParameterNameARB in value - param params Int32 in array [COMPSIZE(pname)] - category VERSION_1_4 - version 1.4 - extension soft WINSOFT NV20 - glxropcode 4222re - offset 643 - -############################################################################### -############################################################################### -# -# OpenGL 1.4 deprecated commands -# -############################################################################### -############################################################################### - -# OpenGL 1.4 (EXT_fog_coord) commands - -FogCoordf(coord) - return void - param coord CoordF in value - category VERSION_1_4_DEPRECATED - vectorequiv FogCoordfv - version 1.4 - deprecated 3.1 - offset 545 - -FogCoordfv(coord) - return void - param coord CoordF in array [1] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 4124 - offset 546 - -FogCoordd(coord) - return void - param coord CoordD in value - category VERSION_1_4_DEPRECATED - vectorequiv FogCoorddv - version 1.4 - deprecated 3.1 - offset 547 - -FogCoorddv(coord) - return void - param coord CoordD in array [1] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 4125 - offset 548 - -FogCoordPointer(type, stride, pointer) - return void - param type FogPointerTypeEXT in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(type/stride)] retained - category VERSION_1_4_DEPRECATED - dlflags notlistable - version 1.4 - deprecated 3.1 - glxflags client-handcode server-handcode - offset 549 - -# OpenGL 1.4 (EXT_secondary_color) commands - -SecondaryColor3b(red, green, blue) - return void - param red ColorB in value - param green ColorB in value - param blue ColorB in value - category VERSION_1_4_DEPRECATED - vectorequiv SecondaryColor3bv - version 1.4 - deprecated 3.1 - offset 561 - -SecondaryColor3bv(v) - return void - param v ColorB in array [3] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 4126 - offset 562 - -SecondaryColor3d(red, green, blue) - return void - param red ColorD in value - param green ColorD in value - param blue ColorD in value - category VERSION_1_4_DEPRECATED - vectorequiv SecondaryColor3dv - version 1.4 - deprecated 3.1 - offset 563 - -SecondaryColor3dv(v) - return void - param v ColorD in array [3] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 4130 - offset 564 - -SecondaryColor3f(red, green, blue) - return void - param red ColorF in value - param green ColorF in value - param blue ColorF in value - category VERSION_1_4_DEPRECATED - vectorequiv SecondaryColor3fv - version 1.4 - deprecated 3.1 - offset 565 - -SecondaryColor3fv(v) - return void - param v ColorF in array [3] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 4129 - offset 566 - -SecondaryColor3i(red, green, blue) - return void - param red ColorI in value - param green ColorI in value - param blue ColorI in value - category VERSION_1_4_DEPRECATED - vectorequiv SecondaryColor3iv - version 1.4 - deprecated 3.1 - offset 567 - -SecondaryColor3iv(v) - return void - param v ColorI in array [3] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 4128 - offset 568 - -SecondaryColor3s(red, green, blue) - return void - param red ColorS in value - param green ColorS in value - param blue ColorS in value - category VERSION_1_4_DEPRECATED - vectorequiv SecondaryColor3sv - version 1.4 - deprecated 3.1 - offset 569 - -SecondaryColor3sv(v) - return void - param v ColorS in array [3] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 4127 - offset 570 - -SecondaryColor3ub(red, green, blue) - return void - param red ColorUB in value - param green ColorUB in value - param blue ColorUB in value - category VERSION_1_4_DEPRECATED - vectorequiv SecondaryColor3ubv - version 1.4 - deprecated 3.1 - offset 571 - -SecondaryColor3ubv(v) - return void - param v ColorUB in array [3] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 4131 - offset 572 - -SecondaryColor3ui(red, green, blue) - return void - param red ColorUI in value - param green ColorUI in value - param blue ColorUI in value - category VERSION_1_4_DEPRECATED - vectorequiv SecondaryColor3uiv - version 1.4 - deprecated 3.1 - offset 573 - -SecondaryColor3uiv(v) - return void - param v ColorUI in array [3] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 4133 - offset 574 - -SecondaryColor3us(red, green, blue) - return void - param red ColorUS in value - param green ColorUS in value - param blue ColorUS in value - category VERSION_1_4_DEPRECATED - vectorequiv SecondaryColor3usv - version 1.4 - deprecated 3.1 - offset 575 - -SecondaryColor3usv(v) - return void - param v ColorUS in array [3] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 4132 - offset 576 - -SecondaryColorPointer(size, type, stride, pointer) - return void - param size Int32 in value - param type ColorPointerType in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(size/type/stride)] retained - category VERSION_1_4_DEPRECATED - dlflags notlistable - glxflags client-handcode server-handcode - version 1.4 - deprecated 3.1 - extension - offset 577 - -# OpenGL 1.4 (ARB_window_pos) commands -# Note: all WindowPos* entry points use glxropcode ropcode 230, with 3 float parameters - -WindowPos2d(x, y) - return void - param x CoordD in value - param y CoordD in value - category VERSION_1_4_DEPRECATED - vectorequiv WindowPos2dv - version 1.4 - deprecated 3.1 - offset 513 - -WindowPos2dv(v) - return void - param v CoordD in array [2] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 230 - glxflags client-handcode server-handcode - offset 514 - -WindowPos2f(x, y) - return void - param x CoordF in value - param y CoordF in value - category VERSION_1_4_DEPRECATED - vectorequiv WindowPos2fv - version 1.4 - deprecated 3.1 - offset 515 - -WindowPos2fv(v) - return void - param v CoordF in array [2] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 230 - glxflags client-handcode server-handcode - offset 516 - -WindowPos2i(x, y) - return void - param x CoordI in value - param y CoordI in value - category VERSION_1_4_DEPRECATED - vectorequiv WindowPos2iv - version 1.4 - deprecated 3.1 - offset 517 - -WindowPos2iv(v) - return void - param v CoordI in array [2] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 230 - glxflags client-handcode server-handcode - offset 518 - -WindowPos2s(x, y) - return void - param x CoordS in value - param y CoordS in value - category VERSION_1_4_DEPRECATED - vectorequiv WindowPos2sv - version 1.4 - deprecated 3.1 - offset 519 - -WindowPos2sv(v) - return void - param v CoordS in array [2] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 230 - glxflags client-handcode server-handcode - offset 520 - -WindowPos3d(x, y, z) - return void - param x CoordD in value - param y CoordD in value - param z CoordD in value - vectorequiv WindowPos3dv - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - offset 521 - -WindowPos3dv(v) - return void - param v CoordD in array [3] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 230 - glxflags client-handcode server-handcode - offset 522 - -WindowPos3f(x, y, z) - return void - param x CoordF in value - param y CoordF in value - param z CoordF in value - category VERSION_1_4_DEPRECATED - vectorequiv WindowPos3fv - version 1.4 - deprecated 3.1 - offset 523 - -WindowPos3fv(v) - return void - param v CoordF in array [3] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 230 - glxflags client-handcode server-handcode - offset 524 - -WindowPos3i(x, y, z) - return void - param x CoordI in value - param y CoordI in value - param z CoordI in value - category VERSION_1_4_DEPRECATED - vectorequiv WindowPos3iv - version 1.4 - deprecated 3.1 - offset 525 - -WindowPos3iv(v) - return void - param v CoordI in array [3] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 230 - glxflags client-handcode server-handcode - offset 526 - -WindowPos3s(x, y, z) - return void - param x CoordS in value - param y CoordS in value - param z CoordS in value - category VERSION_1_4_DEPRECATED - vectorequiv WindowPos3sv - version 1.4 - deprecated 3.1 - offset 527 - -WindowPos3sv(v) - return void - param v CoordS in array [3] - category VERSION_1_4_DEPRECATED - version 1.4 - deprecated 3.1 - glxropcode 230 - glxflags client-handcode server-handcode - offset 528 - -############################################################################### -############################################################################### -# -# OpenGL 1.5 commands -# -############################################################################### -############################################################################### - -# OpenGL 1.5 (ARB_occlusion_query) commands - -GenQueries(n, ids) - return void - param n SizeI in value - param ids UInt32 out array [n] - category VERSION_1_5 - version 1.5 - extension - glxsingle 162 - glxflags ignore - offset 700 - -DeleteQueries(n, ids) - return void - param n SizeI in value - param ids UInt32 in array [n] - category VERSION_1_5 - version 1.5 - extension - glxsingle 161 - glxflags ignore - offset 701 - -IsQuery(id) - return Boolean - param id UInt32 in value - category VERSION_1_5 - version 1.5 - extension - glxsingle 163 - glxflags ignore - offset 702 - -BeginQuery(target, id) - return void - param target GLenum in value - param id UInt32 in value - category VERSION_1_5 - version 1.5 - extension - glxropcode 231 - glxflags ignore - offset 703 - -EndQuery(target) - return void - param target GLenum in value - category VERSION_1_5 - version 1.5 - extension - glxropcode 232 - glxflags ignore - offset 704 - -GetQueryiv(target, pname, params) - return void - param target GLenum in value - param pname GLenum in value - param params Int32 out array [pname] - category VERSION_1_5 - dlflags notlistable - version 1.5 - extension - glxsingle 164 - glxflags ignore - offset 705 - -GetQueryObjectiv(id, pname, params) - return void - param id UInt32 in value - param pname GLenum in value - param params Int32 out array [pname] - category VERSION_1_5 - dlflags notlistable - version 1.5 - extension - glxsingle 165 - glxflags ignore - offset 706 - -GetQueryObjectuiv(id, pname, params) - return void - param id UInt32 in value - param pname GLenum in value - param params UInt32 out array [pname] - category VERSION_1_5 - dlflags notlistable - version 1.5 - extension - glxsingle 166 - glxflags ignore - offset 707 - -# OpenGL 1.5 (ARB_vertex_buffer_object) commands - -BindBuffer(target, buffer) - return void - param target BufferTargetARB in value - param buffer UInt32 in value - category VERSION_1_5 - version 1.5 - extension - glxropcode ? - glxflags ignore - offset 688 - -DeleteBuffers(n, buffers) - return void - param n SizeI in value - param buffers ConstUInt32 in array [n] - category VERSION_1_5 - version 1.5 - extension - glxropcode ? - glxflags ignore - offset 691 - -GenBuffers(n, buffers) - return void - param n SizeI in value - param buffers UInt32 out array [n] - category VERSION_1_5 - version 1.5 - extension - glxropcode ? - glxflags ignore - offset 692 - -IsBuffer(buffer) - return Boolean - param buffer UInt32 in value - category VERSION_1_5 - version 1.5 - extension - glxropcode ? - glxflags ignore - offset 696 - -BufferData(target, size, data, usage) - return void - param target BufferTargetARB in value - param size BufferSize in value - param data ConstVoid in array [size] - param usage BufferUsageARB in value - category VERSION_1_5 - version 1.5 - extension - glxropcode ? - glxflags ignore - offset 689 - -BufferSubData(target, offset, size, data) - return void - param target BufferTargetARB in value - param offset BufferOffset in value - param size BufferSize in value - param data ConstVoid in array [size] - category VERSION_1_5 - version 1.5 - extension - glxropcode ? - glxflags ignore - offset 690 - -GetBufferSubData(target, offset, size, data) - return void - param target BufferTargetARB in value - param offset BufferOffset in value - param size BufferSize in value - param data Void out array [size] - category VERSION_1_5 - dlflags notlistable - version 1.5 - extension - glxsingle ? - glxflags ignore - offset 695 - -MapBuffer(target, access) - return VoidPointer - param target BufferTargetARB in value - param access BufferAccessARB in value - category VERSION_1_5 - version 1.5 - extension - glxropcode ? - glxflags ignore - offset 697 - -UnmapBuffer(target) - return Boolean - param target BufferTargetARB in value - category VERSION_1_5 - version 1.5 - extension - glxropcode ? - glxflags ignore - offset 698 - -GetBufferParameteriv(target, pname, params) - return void - param target BufferTargetARB in value - param pname BufferPNameARB in value - param params Int32 out array [COMPSIZE(pname)] - category VERSION_1_5 - dlflags notlistable - version 1.5 - extension - glxsingle ? - glxflags ignore - offset 693 - -GetBufferPointerv(target, pname, params) - return void - param target BufferTargetARB in value - param pname BufferPointerNameARB in value - param params VoidPointer out array [1] - category VERSION_1_5 - dlflags notlistable - version 1.5 - extension - glxsingle ? - glxflags ignore - offset 694 - -# OpenGL 1.5 (EXT_shadow_funcs) commands - none - - -############################################################################### -############################################################################### -# -# OpenGL 2.0 commands -# -############################################################################### -############################################################################### - -# OpenGL 2.0 (EXT_blend_equation_separate) commands - -BlendEquationSeparate(modeRGB, modeAlpha) - return void - param modeRGB BlendEquationModeEXT in value - param modeAlpha BlendEquationModeEXT in value - category VERSION_2_0 - version 2.0 - extension - glxropcode 4228 - -# OpenGL 2.0 (ARB_draw_buffers) commands - -DrawBuffers(n, bufs) - return void - param n SizeI in value - param bufs DrawBufferModeATI in array [n] - category VERSION_2_0 - version 2.0 - extension - glxropcode 233 - glxflags ignore - offset ? - -# OpenGL 2.0 (ARB_stencil_two_side) commands - -StencilOpSeparate(face, sfail, dpfail, dppass) - return void - param face StencilFaceDirection in value - param sfail StencilOp in value - param dpfail StencilOp in value - param dppass StencilOp in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -StencilFuncSeparate(face, func, ref, mask) - return void - param face StencilFaceDirection in value - param func StencilFunction in value - param ref ClampedStencilValue in value - param mask MaskedStencilValue in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -StencilMaskSeparate(face, mask) - return void - param face StencilFaceDirection in value - param mask MaskedStencilValue in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -# OpenGL 2.0 (ARB_shader_objects / ARB_vertex_shader / ARB_fragment_shader) commands - -AttachShader(program, shader) - return void - param program UInt32 in value - param shader UInt32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -BindAttribLocation(program, index, name) - return void - param program UInt32 in value - param index UInt32 in value - param name Char in array [] - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -CompileShader(shader) - return void - param shader UInt32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -CreateProgram() - return UInt32 - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -CreateShader(type) - return UInt32 - param type GLenum in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -DeleteProgram(program) - return void - param program UInt32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -DeleteShader(shader) - return void - param shader UInt32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -DetachShader(program, shader) - return void - param program UInt32 in value - param shader UInt32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -DisableVertexAttribArray(index) - return void - param index UInt32 in value - dlflags notlistable - category VERSION_2_0 - version 2.0 - extension soft WINSOFT NV10 - glxflags ignore - offset 666 - -EnableVertexAttribArray(index) - return void - param index UInt32 in value - dlflags notlistable - category VERSION_2_0 - version 2.0 - extension soft WINSOFT NV10 - glxflags ignore - offset 665 - -GetActiveAttrib(program, index, bufSize, length, size, type, name) - return void - param program UInt32 in value - param index UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param size Int32 out array [1] - param type GLenum out array [1] - param name Char out array [] - category VERSION_2_0 - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetActiveUniform(program, index, bufSize, length, size, type, name) - return void - param program UInt32 in value - param index UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param size Int32 out array [1] - param type GLenum out array [1] - param name Char out array [] - category VERSION_2_0 - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetAttachedShaders(program, maxCount, count, obj) - return void - param program UInt32 in value - param maxCount SizeI in value - param count SizeI out array [1] - param obj UInt32 out array [count] - category VERSION_2_0 - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetAttribLocation(program, name) - return Int32 - param program UInt32 in value - param name Char in array [] - category VERSION_2_0 - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetProgramiv(program, pname, params) - return void - param program UInt32 in value - param pname GLenum in value - param params Int32 out array [pname] - category VERSION_2_0 - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetProgramInfoLog(program, bufSize, length, infoLog) - return void - param program UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param infoLog Char out array [length] - category VERSION_2_0 - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetShaderiv(shader, pname, params) - return void - param shader UInt32 in value - param pname GLenum in value - param params Int32 out array [pname] - category VERSION_2_0 - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetShaderInfoLog(shader, bufSize, length, infoLog) - return void - param shader UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param infoLog Char out array [length] - category VERSION_2_0 - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetShaderSource(shader, bufSize, length, source) - return void - param shader UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param source Char out array [length] - category VERSION_2_0 - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetUniformLocation(program, name) - return Int32 - param program UInt32 in value - param name Char in array [] - category VERSION_2_0 - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetUniformfv(program, location, params) - return void - param program UInt32 in value - param location Int32 in value - param params Float32 out array [COMPSIZE(location)] - category VERSION_2_0 - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetUniformiv(program, location, params) - return void - param program UInt32 in value - param location Int32 in value - param params Int32 out array [COMPSIZE(location)] - category VERSION_2_0 - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetVertexAttribdv(index, pname, params) - return void - param index UInt32 in value - param pname VertexAttribPropertyARB in value - param params Float64 out array [4] - dlflags notlistable - category VERSION_2_0 - version 2.0 - extension soft WINSOFT NV10 - glxvendorpriv 1301 - offset 588 - -GetVertexAttribfv(index, pname, params) - return void - param index UInt32 in value - param pname VertexAttribPropertyARB in value - param params Float32 out array [4] - dlflags notlistable - category VERSION_2_0 - version 2.0 - extension soft WINSOFT NV10 - glxvendorpriv 1302 - offset 589 - -GetVertexAttribiv(index, pname, params) - return void - param index UInt32 in value - param pname VertexAttribPropertyARB in value - param params Int32 out array [4] - dlflags notlistable - category VERSION_2_0 - version 2.0 - extension soft WINSOFT NV10 - glxvendorpriv 1303 - offset 590 - -GetVertexAttribPointerv(index, pname, pointer) - return void - param index UInt32 in value - param pname VertexAttribPointerPropertyARB in value - param pointer VoidPointer out array [1] - dlflags notlistable - category VERSION_2_0 - version 2.0 - extension soft WINSOFT NV10 - glxflags ignore - offset 591 - -IsProgram(program) - return Boolean - param program UInt32 in value - dlflags notlistable - category VERSION_2_0 - version 2.0 - extension soft WINSOFT NV10 - glxvendorpriv 1304 - offset 592 - -IsShader(shader) - return Boolean - param shader UInt32 in value - dlflags notlistable - category VERSION_2_0 - version 2.0 - extension soft WINSOFT NV10 - glxvendorpriv ? - offset ? - -LinkProgram(program) - return void - param program UInt32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -ShaderSource(shader, count, string, length) - return void - param shader UInt32 in value - param count SizeI in value - param string CharPointer in array [count] - param length Int32 in array [1] - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -UseProgram(program) - return void - param program UInt32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform1f(location, v0) - return void - param location Int32 in value - param v0 Float32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform2f(location, v0, v1) - return void - param location Int32 in value - param v0 Float32 in value - param v1 Float32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform3f(location, v0, v1, v2) - return void - param location Int32 in value - param v0 Float32 in value - param v1 Float32 in value - param v2 Float32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform4f(location, v0, v1, v2, v3) - return void - param location Int32 in value - param v0 Float32 in value - param v1 Float32 in value - param v2 Float32 in value - param v3 Float32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform1i(location, v0) - return void - param location Int32 in value - param v0 Int32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform2i(location, v0, v1) - return void - param location Int32 in value - param v0 Int32 in value - param v1 Int32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform3i(location, v0, v1, v2) - return void - param location Int32 in value - param v0 Int32 in value - param v1 Int32 in value - param v2 Int32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform4i(location, v0, v1, v2, v3) - return void - param location Int32 in value - param v0 Int32 in value - param v1 Int32 in value - param v2 Int32 in value - param v3 Int32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform1fv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Float32 in array [count] - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform2fv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Float32 in array [count] - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform3fv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Float32 in array [count] - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform4fv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Float32 in array [count] - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform1iv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Int32 in array [count] - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform2iv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Int32 in array [count] - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform3iv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Int32 in array [count] - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform4iv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Int32 in array [count] - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix2fv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count] - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix3fv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count] - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix4fv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count] - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -ValidateProgram(program) - return void - param program UInt32 in value - category VERSION_2_0 - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttrib1d(index, x) - return void - param index UInt32 in value - param x Float64 in value - category VERSION_2_0 - version 2.0 - deprecated 3.1 - vectorequiv VertexAttrib1dv - extension soft WINSOFT NV10 - glxflags ignore - offset 603 - -VertexAttrib1dv(index, v) - return void - param index UInt32 in value - param v Float64 in array [1] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxropcode 4197 - offset 604 - -VertexAttrib1f(index, x) - return void - param index UInt32 in value - param x Float32 in value - category VERSION_2_0 - version 2.0 - deprecated 3.1 - vectorequiv VertexAttrib1fv - extension soft WINSOFT NV10 - glxflags ignore - offset 605 - -VertexAttrib1fv(index, v) - return void - param index UInt32 in value - param v Float32 in array [1] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxropcode 4193 - offset 606 - -VertexAttrib1s(index, x) - return void - param index UInt32 in value - param x Int16 in value - category VERSION_2_0 - version 2.0 - deprecated 3.1 - vectorequiv VertexAttrib1sv - extension soft WINSOFT NV10 - glxflags ignore - offset 607 - -VertexAttrib1sv(index, v) - return void - param index UInt32 in value - param v Int16 in array [1] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxropcode 4189 - offset 608 - -VertexAttrib2d(index, x, y) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - category VERSION_2_0 - version 2.0 - deprecated 3.1 - vectorequiv VertexAttrib2dv - extension soft WINSOFT NV10 - glxflags ignore - offset 609 - -VertexAttrib2dv(index, v) - return void - param index UInt32 in value - param v Float64 in array [2] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxropcode 4198 - offset 610 - -VertexAttrib2f(index, x, y) - return void - param index UInt32 in value - param x Float32 in value - param y Float32 in value - category VERSION_2_0 - version 2.0 - deprecated 3.1 - vectorequiv VertexAttrib2fv - extension soft WINSOFT NV10 - glxflags ignore - offset 611 - -VertexAttrib2fv(index, v) - return void - param index UInt32 in value - param v Float32 in array [2] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxropcode 4194 - offset 612 - -VertexAttrib2s(index, x, y) - return void - param index UInt32 in value - param x Int16 in value - param y Int16 in value - category VERSION_2_0 - version 2.0 - deprecated 3.1 - vectorequiv VertexAttrib2sv - extension soft WINSOFT NV10 - glxflags ignore - offset 613 - -VertexAttrib2sv(index, v) - return void - param index UInt32 in value - param v Int16 in array [2] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxropcode 4190 - offset 614 - -VertexAttrib3d(index, x, y, z) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - category VERSION_2_0 - version 2.0 - deprecated 3.1 - vectorequiv VertexAttrib3dv - extension soft WINSOFT NV10 - glxflags ignore - offset 615 - -VertexAttrib3dv(index, v) - return void - param index UInt32 in value - param v Float64 in array [3] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxropcode 4199 - offset 616 - -VertexAttrib3f(index, x, y, z) - return void - param index UInt32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category VERSION_2_0 - version 2.0 - deprecated 3.1 - vectorequiv VertexAttrib3fv - extension soft WINSOFT NV10 - glxflags ignore - offset 617 - -VertexAttrib3fv(index, v) - return void - param index UInt32 in value - param v Float32 in array [3] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxropcode 4195 - offset 618 - -VertexAttrib3s(index, x, y, z) - return void - param index UInt32 in value - param x Int16 in value - param y Int16 in value - param z Int16 in value - category VERSION_2_0 - version 2.0 - deprecated 3.1 - vectorequiv VertexAttrib3sv - extension soft WINSOFT NV10 - glxflags ignore - offset 619 - -VertexAttrib3sv(index, v) - return void - param index UInt32 in value - param v Int16 in array [3] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxropcode 4191 - offset 620 - -VertexAttrib4Nbv(index, v) - return void - param index UInt32 in value - param v Int8 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxflags ignore - offset 659 - -VertexAttrib4Niv(index, v) - return void - param index UInt32 in value - param v Int32 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxflags ignore - offset 661 - -VertexAttrib4Nsv(index, v) - return void - param index UInt32 in value - param v Int16 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxflags ignore - offset 660 - -VertexAttrib4Nub(index, x, y, z, w) - return void - param index UInt32 in value - param x UInt8 in value - param y UInt8 in value - param z UInt8 in value - param w UInt8 in value - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxflags ignore - offset 627 - -VertexAttrib4Nubv(index, v) - return void - param index UInt32 in value - param v UInt8 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxflags ignore - glxropcode 4201 - offset 628 - -VertexAttrib4Nuiv(index, v) - return void - param index UInt32 in value - param v UInt32 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxflags ignore - offset 663 - -VertexAttrib4Nusv(index, v) - return void - param index UInt32 in value - param v UInt16 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxflags ignore - offset 662 - -VertexAttrib4bv(index, v) - return void - param index UInt32 in value - param v Int8 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxflags ignore - offset 654 - -VertexAttrib4d(index, x, y, z, w) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category VERSION_2_0 - version 2.0 - deprecated 3.1 - vectorequiv VertexAttrib4dv - extension soft WINSOFT NV10 - glxflags ignore - offset 621 - -VertexAttrib4dv(index, v) - return void - param index UInt32 in value - param v Float64 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxropcode 4200 - offset 622 - -VertexAttrib4f(index, x, y, z, w) - return void - param index UInt32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - param w Float32 in value - category VERSION_2_0 - version 2.0 - deprecated 3.1 - vectorequiv VertexAttrib4fv - extension soft WINSOFT NV10 - glxflags ignore - offset 623 - -VertexAttrib4fv(index, v) - return void - param index UInt32 in value - param v Float32 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxropcode 4196 - offset 624 - -VertexAttrib4iv(index, v) - return void - param index UInt32 in value - param v Int32 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxflags ignore - offset 655 - -VertexAttrib4s(index, x, y, z, w) - return void - param index UInt32 in value - param x Int16 in value - param y Int16 in value - param z Int16 in value - param w Int16 in value - category VERSION_2_0 - version 2.0 - deprecated 3.1 - vectorequiv VertexAttrib4sv - extension soft WINSOFT NV10 - glxflags ignore - offset 625 - -VertexAttrib4sv(index, v) - return void - param index UInt32 in value - param v Int16 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxflags ignore - glxropcode 4192 - offset 626 - -VertexAttrib4ubv(index, v) - return void - param index UInt32 in value - param v UInt8 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxflags ignore - offset 656 - -VertexAttrib4uiv(index, v) - return void - param index UInt32 in value - param v UInt32 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxflags ignore - offset 658 - -VertexAttrib4usv(index, v) - return void - param index UInt32 in value - param v UInt16 in array [4] - category VERSION_2_0 - version 2.0 - deprecated 3.1 - extension soft WINSOFT NV10 - glxflags ignore - offset 657 - -VertexAttribPointer(index, size, type, normalized, stride, pointer) - return void - param index UInt32 in value - param size Int32 in value - param type VertexAttribPointerTypeARB in value - param normalized Boolean in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(size/type/stride)] retained - dlflags notlistable - category VERSION_2_0 - version 2.0 - extension soft WINSOFT NV10 - glxflags ignore - offset 664 - - -############################################################################### -############################################################################### -# -# OpenGL 2.1 commands -# -############################################################################### -############################################################################### - -# OpenGL 2.1 (ARB_pixel_buffer_object) commands - none - -# OpenGL 2.1 (EXT_texture_sRGB) commands - none - -# New commands in OpenGL 2.1 - -UniformMatrix2x3fv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [6] - category VERSION_2_1 - version 2.1 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix3x2fv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [6] - category VERSION_2_1 - version 2.1 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix2x4fv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [8] - category VERSION_2_1 - version 2.1 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix4x2fv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [8] - category VERSION_2_1 - version 2.1 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix3x4fv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [12] - category VERSION_2_1 - version 2.1 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix4x3fv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [12] - category VERSION_2_1 - version 2.1 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -############################################################################### -# -# OpenGL 3.0 commands -# -############################################################################### -############################################################################### - -# OpenGL 3.0 (EXT_draw_buffers2) commands - -ColorMaski(index, r, g, b, a) - return void - param index UInt32 in value - param r Boolean in value - param g Boolean in value - param b Boolean in value - param a Boolean in value - category VERSION_3_0 - version 3.0 - extension - glxflags ignore - glfflags ignore - -GetBooleani_v(target, index, data) - return void - param target GLenum in value - param index UInt32 in value - param data Boolean out array [COMPSIZE(target)] - category VERSION_3_0 - version 3.0 - extension - dlflags notlistable - glxflags ignore - glfflags ignore - -GetIntegeri_v(target, index, data) - return void - param target GLenum in value - param index UInt32 in value - param data Int32 out array [COMPSIZE(target)] - category VERSION_3_0 - version 3.0 - extension - dlflags notlistable - glxflags ignore - glfflags ignore - -Enablei(target, index) - return void - param target GLenum in value - param index UInt32 in value - category VERSION_3_0 - version 3.0 - extension - glxflags ignore - glfflags ignore - -Disablei(target, index) - return void - param target GLenum in value - param index UInt32 in value - category VERSION_3_0 - version 3.0 - extension - glxflags ignore - glfflags ignore - -IsEnabledi(target, index) - return Boolean - param target GLenum in value - param index UInt32 in value - category VERSION_3_0 - version 3.0 - extension - dlflags notlistable - glxflags ignore - glfflags ignore - -# OpenGL 3.0 (EXT_transform_feedback) commands - -BeginTransformFeedback(primitiveMode) - return void - param primitiveMode GLenum in value - category VERSION_3_0 - version 3.0 - extension - dlflags notlistable - glxflags ignore - glfflags ignore - -EndTransformFeedback() - return void - category VERSION_3_0 - version 3.0 - extension - dlflags notlistable - glxflags ignore - glfflags ignore - -BindBufferRange(target, index, buffer, offset, size) - return void - param target GLenum in value - param index UInt32 in value - param buffer UInt32 in value - param offset BufferOffset in value - param size BufferSize in value - category VERSION_3_0 - version 3.0 - extension - dlflags notlistable - glxflags ignore - glfflags ignore - -BindBufferBase(target, index, buffer) - return void - param target GLenum in value - param index UInt32 in value - param buffer UInt32 in value - category VERSION_3_0 - version 3.0 - extension - dlflags notlistable - glxflags ignore - glfflags ignore - -TransformFeedbackVaryings(program, count, varyings, bufferMode) - return void - param program UInt32 in value - param count SizeI in value - param varyings CharPointer in array [count] - param bufferMode GLenum in value - category VERSION_3_0 - version 3.0 - extension - dlflags notlistable - glxflags ignore - glfflags ignore - -GetTransformFeedbackVarying(program, index, bufSize, length, size, type, name) - return void - param program UInt32 in value - param index UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param size SizeI out array [1] - param type GLenum out array [1] - param name Char out array [COMPSIZE(length)] - category VERSION_3_0 - dlflags notlistable - version 3.0 - extension - glfflags ignore - glxflags ignore - -ClampColor(target, clamp) - return void - param target ClampColorTargetARB in value - param clamp ClampColorModeARB in value - category VERSION_3_0 - version 3.0 - extension - glxropcode 234 - glxflags ignore - offset ? - -BeginConditionalRender(id, mode) - return void - param id UInt32 in value - param mode TypeEnum in value - category VERSION_3_0 - version 3.0 - glfflags ignore - glxflags ignore - -EndConditionalRender() - return void - category VERSION_3_0 - version 3.0 - glfflags ignore - glxflags ignore - -VertexAttribIPointer(index, size, type, stride, pointer) - return void - param index UInt32 in value - param size Int32 in value - param type VertexAttribEnum in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(size/type/stride)] retained - category VERSION_3_0 - version 3.0 - dlflags notlistable - extension - glfflags ignore - glxflags ignore - -GetVertexAttribIiv(index, pname, params) - return void - param index UInt32 in value - param pname VertexAttribEnum in value - param params Int32 out array [1] - category VERSION_3_0 - version 3.0 - dlflags notlistable - extension - glfflags ignore - glxflags ignore - -GetVertexAttribIuiv(index, pname, params) - return void - param index UInt32 in value - param pname VertexAttribEnum in value - param params UInt32 out array [1] - category VERSION_3_0 - version 3.0 - dlflags notlistable - extension - glfflags ignore - glxflags ignore - -# OpenGL 3.0 (NV_vertex_program4) commands - -VertexAttribI1i(index, x) - return void - param index UInt32 in value - param x Int32 in value - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - vectorequiv VertexAttribI1iv - glxvectorequiv VertexAttribI1iv - extension - glfflags ignore - glxflags ignore - -VertexAttribI2i(index, x, y) - return void - param index UInt32 in value - param x Int32 in value - param y Int32 in value - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - vectorequiv VertexAttribI2iv - glxvectorequiv VertexAttribI2iv - extension - glfflags ignore - glxflags ignore - -VertexAttribI3i(index, x, y, z) - return void - param index UInt32 in value - param x Int32 in value - param y Int32 in value - param z Int32 in value - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - vectorequiv VertexAttribI3iv - glxvectorequiv VertexAttribI3iv - extension - glfflags ignore - glxflags ignore - -VertexAttribI4i(index, x, y, z, w) - return void - param index UInt32 in value - param x Int32 in value - param y Int32 in value - param z Int32 in value - param w Int32 in value - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - vectorequiv VertexAttribI4iv - glxvectorequiv VertexAttribI4iv - extension - glfflags ignore - glxflags ignore - -VertexAttribI1ui(index, x) - return void - param index UInt32 in value - param x UInt32 in value - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - vectorequiv VertexAttribI1uiv - glxvectorequiv VertexAttribI1uiv - extension - glfflags ignore - glxflags ignore - -VertexAttribI2ui(index, x, y) - return void - param index UInt32 in value - param x UInt32 in value - param y UInt32 in value - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - vectorequiv VertexAttribI2uiv - glxvectorequiv VertexAttribI2uiv - extension - glfflags ignore - glxflags ignore - -VertexAttribI3ui(index, x, y, z) - return void - param index UInt32 in value - param x UInt32 in value - param y UInt32 in value - param z UInt32 in value - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - vectorequiv VertexAttribI3uiv - glxvectorequiv VertexAttribI3uiv - extension - glfflags ignore - glxflags ignore - -VertexAttribI4ui(index, x, y, z, w) - return void - param index UInt32 in value - param x UInt32 in value - param y UInt32 in value - param z UInt32 in value - param w UInt32 in value - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - vectorequiv VertexAttribI4uiv - glxvectorequiv VertexAttribI4uiv - extension - glfflags ignore - glxflags ignore - -VertexAttribI1iv(index, v) - return void - param index UInt32 in value - param v Int32 in array [1] - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - extension - glfflags ignore - glxflags ignore - -VertexAttribI2iv(index, v) - return void - param index UInt32 in value - param v Int32 in array [2] - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - extension - glfflags ignore - glxflags ignore - -VertexAttribI3iv(index, v) - return void - param index UInt32 in value - param v Int32 in array [3] - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - extension - glfflags ignore - glxflags ignore - -VertexAttribI4iv(index, v) - return void - param index UInt32 in value - param v Int32 in array [4] - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - extension - glfflags ignore - glxflags ignore - -VertexAttribI1uiv(index, v) - return void - param index UInt32 in value - param v UInt32 in array [1] - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - extension - glfflags ignore - glxflags ignore - -VertexAttribI2uiv(index, v) - return void - param index UInt32 in value - param v UInt32 in array [2] - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - extension - glfflags ignore - glxflags ignore - -VertexAttribI3uiv(index, v) - return void - param index UInt32 in value - param v UInt32 in array [3] - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - extension - glfflags ignore - glxflags ignore - -VertexAttribI4uiv(index, v) - return void - param index UInt32 in value - param v UInt32 in array [4] - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - extension - glfflags ignore - glxflags ignore - -VertexAttribI4bv(index, v) - return void - param index UInt32 in value - param v Int8 in array [4] - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - extension - glfflags ignore - glxflags ignore - -VertexAttribI4sv(index, v) - return void - param index UInt32 in value - param v Int16 in array [4] - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - extension - glfflags ignore - glxflags ignore - -VertexAttribI4ubv(index, v) - return void - param index UInt32 in value - param v UInt8 in array [4] - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - extension - glfflags ignore - glxflags ignore - -VertexAttribI4usv(index, v) - return void - param index UInt32 in value - param v UInt16 in array [4] - category VERSION_3_0 - version 3.0 - deprecated 3.1 - beginend allow-inside - extension - glfflags ignore - glxflags ignore - -# OpenGL 3.0 (EXT_gpu_shader4) commands - -GetUniformuiv(program, location, params) - return void - param program UInt32 in value - param location Int32 in value - param params UInt32 out array [COMPSIZE(program/location)] - category VERSION_3_0 - dlflags notlistable - version 3.0 - extension - glfflags ignore - glxflags ignore - -BindFragDataLocation(program, color, name) - return void - param program UInt32 in value - param color UInt32 in value - param name Char in array [COMPSIZE(name)] - category VERSION_3_0 - dlflags notlistable - version 3.0 - extension - glfflags ignore - glxflags ignore - -GetFragDataLocation(program, name) - return Int32 - param program UInt32 in value - param name Char in array [COMPSIZE(name)] - category VERSION_3_0 - dlflags notlistable - version 3.0 - extension - glfflags ignore - glxflags ignore - -Uniform1ui(location, v0) - return void - param location Int32 in value - param v0 UInt32 in value - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -Uniform2ui(location, v0, v1) - return void - param location Int32 in value - param v0 UInt32 in value - param v1 UInt32 in value - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -Uniform3ui(location, v0, v1, v2) - return void - param location Int32 in value - param v0 UInt32 in value - param v1 UInt32 in value - param v2 UInt32 in value - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -Uniform4ui(location, v0, v1, v2, v3) - return void - param location Int32 in value - param v0 UInt32 in value - param v1 UInt32 in value - param v2 UInt32 in value - param v3 UInt32 in value - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -Uniform1uiv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value UInt32 in array [count] - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -Uniform2uiv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value UInt32 in array [count*2] - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -Uniform3uiv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value UInt32 in array [count*3] - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -Uniform4uiv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value UInt32 in array [count*4] - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -# OpenGL 3.0 (EXT_texture_integer) commands - -TexParameterIiv(target, pname, params) - return void - param target TextureTarget in value - param pname TextureParameterName in value - param params Int32 in array [COMPSIZE(pname)] - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -TexParameterIuiv(target, pname, params) - return void - param target TextureTarget in value - param pname TextureParameterName in value - param params UInt32 in array [COMPSIZE(pname)] - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -GetTexParameterIiv(target, pname, params) - return void - param target TextureTarget in value - param pname GetTextureParameter in value - param params Int32 out array [COMPSIZE(pname)] - category VERSION_3_0 - dlflags notlistable - version 3.0 - extension - glfflags ignore - glxflags ignore - -GetTexParameterIuiv(target, pname, params) - return void - param target TextureTarget in value - param pname GetTextureParameter in value - param params UInt32 out array [COMPSIZE(pname)] - category VERSION_3_0 - dlflags notlistable - version 3.0 - extension - glfflags ignore - glxflags ignore - -# New commands in OpenGL 3.0 - -ClearBufferiv(buffer, drawbuffer, value) - return void - param buffer GLenum in value - param drawbuffer DrawBufferName in value - param value Int32 in array [COMPSIZE(buffer)] - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -ClearBufferuiv(buffer, drawbuffer, value) - return void - param buffer GLenum in value - param drawbuffer DrawBufferName in value - param value UInt32 in array [COMPSIZE(buffer)] - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -ClearBufferfv(buffer, drawbuffer, value) - return void - param buffer GLenum in value - param drawbuffer DrawBufferName in value - param value Float32 in array [COMPSIZE(buffer)] - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -ClearBufferfi(buffer, drawbuffer, depth, stencil) - return void - param buffer GLenum in value - param drawbuffer DrawBufferName in value - param depth Float32 in value - param stencil Int32 in value - category VERSION_3_0 - version 3.0 - extension - glfflags ignore - glxflags ignore - -GetStringi(name, index) - return String - param name GLenum in value - param index UInt32 in value - category VERSION_3_0 - version 3.0 - extension - dlflags notlistable - glxflags client-handcode server-handcode - glfflags ignore - glxsingle ? - -passthru: /* OpenGL 3.0 also reuses entry points from these extensions: */ -passthru: /* ARB_framebuffer_object */ -passthru: /* ARB_map_buffer_range */ -passthru: /* ARB_vertex_array_object */ - -############################################################################### -############################################################################### -# -# OpenGL 3.0 deprecated commands -# -############################################################################### -############################################################################### - -# (none - VertexAttribI* were moved back into non-deprecated) - - -############################################################################### -############################################################################### -# -# OpenGL 3.1 commands -# -############################################################################### -############################################################################### - -# New commands in OpenGL 3.1 - none - -# OpenGL 3.1 (ARB_draw_instanced) commands - -DrawArraysInstanced(mode, first, count, primcount) - return void - param mode BeginMode in value - param first Int32 in value - param count SizeI in value - param primcount SizeI in value - category VERSION_3_1 - version 3.1 - extension - dlflags notlistable - vectorequiv ArrayElement - glfflags ignore - glxflags ignore - -DrawElementsInstanced(mode, count, type, indices, primcount) - return void - param mode BeginMode in value - param count SizeI in value - param type DrawElementsType in value - param indices Void in array [COMPSIZE(count/type)] - param primcount SizeI in value - category VERSION_3_1 - version 3.1 - extension - dlflags notlistable - vectorequiv ArrayElement - glfflags ignore - glxflags ignore - -# OpenGL 3.1 (ARB_texture_buffer_object) commands - -TexBuffer(target, internalformat, buffer) - return void - param target TextureTarget in value - param internalformat GLenum in value - param buffer UInt32 in value - category VERSION_3_1 - version 3.1 - extension - glfflags ignore - glxflags ignore - -# OpenGL 3.1 (ARB_texture_rectangle) commands - none - -# OpenGL 3.1 (SNORM texture) commands - none - -# OpenGL 3.1 (NV_primitive_restart) commands -# This is *not* an alias of PrimitiveRestartIndexNV, since it sets -# server instead of client state. - -PrimitiveRestartIndex(index) - return void - param index UInt32 in value - category VERSION_3_1 - version 3.1 - extension - glxropcode ? - glxflags ignore - offset ? - -passthru: /* OpenGL 3.1 also reuses entry points from these extensions: */ -passthru: /* ARB_copy_buffer */ -passthru: /* ARB_uniform_buffer_object */ - - -############################################################################### -############################################################################### -# -# OpenGL 3.2 commands -# -############################################################################### -############################################################################### - -# New commands in OpenGL 3.2 - -GetInteger64i_v(target, index, data) - return void - param target GLenum in value - param index UInt32 in value - param data Int64 out array [COMPSIZE(target)] - category VERSION_3_2 - version 3.2 - extension - dlflags notlistable - glxflags ignore - glfflags ignore - - -GetBufferParameteri64v(target, pname, params) - return void - param target BufferTargetARB in value - param pname BufferPNameARB in value - param params Int64 out array [COMPSIZE(pname)] - category VERSION_3_2 - dlflags notlistable - version 3.2 - extension - glxsingle ? - glxflags ignore - -# OpenGL 3.2 (ARB_depth_clamp) commands - none -# OpenGL 3.2 (ARB_fragment_coord_conventions) commands - none - -# OpenGL 3.2 (ARB_geometry_shader4) commands -# ProgramParameteriARB was NOT promoted to core 3.2, but -# IS part of core 4.1 through other ARB extensions. - -FramebufferTexture(target, attachment, texture, level) - return void - param target GLenum in value - param attachment GLenum in value - param texture UInt32 in value - param level Int32 in value - category VERSION_3_2 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -# FramebufferTextureLayer already declared in ARB_framebuffer_object -# FramebufferTextureLayer(target, attachment, texture, level, layer) - -# Not promoted to the core along with the rest -# FramebufferTextureFace(target, attachment, texture, level, face) - -# OpenGL 3.2 (ARB_seamless_cube_map) commands - none -# OpenGL 3.2 (ARB_vertex_array_bgra) commands - none - -passthru: /* OpenGL 3.2 also reuses entry points from these extensions: */ -passthru: /* ARB_draw_elements_base_vertex */ -passthru: /* ARB_provoking_vertex */ -passthru: /* ARB_sync */ -passthru: /* ARB_texture_multisample */ - - -############################################################################### -############################################################################### -# -# OpenGL 3.3 commands -# -############################################################################### -############################################################################### - -# New commands in OpenGL 3.3 - -# OpenGL 3.3 (ARB_instanced_arrays) commands - -VertexAttribDivisor(index, divisor) - return void - param index UInt32 in value - param divisor UInt32 in value - category VERSION_3_3 - version 1.1 - extension - glfflags ignore - glxflags ignore - -passthru: /* OpenGL 3.3 also reuses entry points from these extensions: */ -passthru: /* ARB_blend_func_extended */ -passthru: /* ARB_sampler_objects */ -passthru: /* ARB_explicit_attrib_location, but it has none */ -passthru: /* ARB_occlusion_query2 (no entry points) */ -passthru: /* ARB_shader_bit_encoding (no entry points) */ -passthru: /* ARB_texture_rgb10_a2ui (no entry points) */ -passthru: /* ARB_texture_swizzle (no entry points) */ -passthru: /* ARB_timer_query */ -passthru: /* ARB_vertex_type_2_10_10_10_rev */ - - -############################################################################### -############################################################################### -# -# OpenGL 4.0 commands -# -############################################################################### -############################################################################### - -# New commands in OpenGL 4.0 - none - -# OpenGL 4.0 (ARB_sample_shading) commands - -MinSampleShading(value) - return void - param value ClampedColorF in value - category VERSION_4_0 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -# OpenGL 4.0 (ARB_draw_buffers_blend) commands - -BlendEquationi(buf, mode) - return void - param buf UInt32 in value - param mode GLenum in value - category VERSION_4_0 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BlendEquationSeparatei(buf, modeRGB, modeAlpha) - return void - param buf UInt32 in value - param modeRGB GLenum in value - param modeAlpha GLenum in value - category VERSION_4_0 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BlendFunci(buf, src, dst) - return void - param buf UInt32 in value - param src GLenum in value - param dst GLenum in value - category VERSION_4_0 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BlendFuncSeparatei(buf, srcRGB, dstRGB, srcAlpha, dstAlpha) - return void - param buf UInt32 in value - param srcRGB GLenum in value - param dstRGB GLenum in value - param srcAlpha GLenum in value - param dstAlpha GLenum in value - category VERSION_4_0 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -passthru: /* OpenGL 4.0 also reuses entry points from these extensions: */ -passthru: /* ARB_texture_query_lod (no entry points) */ -passthru: /* ARB_draw_indirect */ -passthru: /* ARB_gpu_shader5 (no entry points) */ -passthru: /* ARB_gpu_shader_fp64 */ -passthru: /* ARB_shader_subroutine */ -passthru: /* ARB_tessellation_shader */ -passthru: /* ARB_texture_buffer_object_rgb32 (no entry points) */ -passthru: /* ARB_texture_cube_map_array (no entry points) */ -passthru: /* ARB_texture_gather (no entry points) */ -passthru: /* ARB_transform_feedback2 */ -passthru: /* ARB_transform_feedback3 */ - - -############################################################################### -############################################################################### -# -# OpenGL 4.1 commands -# -############################################################################### -############################################################################### - -# New commands in OpenGL 4.1 - none -newcategory: VERSION_4_1 - -passthru: /* OpenGL 4.1 also reuses entry points from these extensions: */ -passthru: /* ARB_ES2_compatibility */ -passthru: /* ARB_get_program_binary */ -passthru: /* ARB_separate_shader_objects */ -passthru: /* ARB_shader_precision (no entry points) */ -passthru: /* ARB_vertex_attrib_64bit */ -passthru: /* ARB_viewport_array */ - - -############################################################################### -############################################################################### -# -# ARB extensions, in order by ARB extension number -# -############################################################################### -############################################################################### - -############################################################################### -# -# ARB Extension #1 -# ARB_multitexture commands -# -############################################################################### - -ActiveTextureARB(texture) - return void - param texture TextureUnit in value - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 197 - alias ActiveTexture - -ClientActiveTextureARB(texture) - return void - param texture TextureUnit in value - category ARB_multitexture - dlflags notlistable - glxflags ARB client-handcode client-intercept server-handcode - version 1.2 - alias ClientActiveTexture - -MultiTexCoord1dARB(target, s) - return void - param target TextureUnit in value - param s CoordD in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord1dv - -MultiTexCoord1dvARB(target, v) - return void - param target TextureUnit in value - param v CoordD in array [1] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 198 - alias MultiTexCoord1dv - -MultiTexCoord1fARB(target, s) - return void - param target TextureUnit in value - param s CoordF in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord1fv - -MultiTexCoord1fvARB(target, v) - return void - param target TextureUnit in value - param v CoordF in array [1] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 199 - alias MultiTexCoord1fv - -MultiTexCoord1iARB(target, s) - return void - param target TextureUnit in value - param s CoordI in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord1iv - -MultiTexCoord1ivARB(target, v) - return void - param target TextureUnit in value - param v CoordI in array [1] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 200 - alias MultiTexCoord1iv - -MultiTexCoord1sARB(target, s) - return void - param target TextureUnit in value - param s CoordS in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord1sv - -MultiTexCoord1svARB(target, v) - return void - param target TextureUnit in value - param v CoordS in array [1] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 201 - alias MultiTexCoord1sv - -MultiTexCoord2dARB(target, s, t) - return void - param target TextureUnit in value - param s CoordD in value - param t CoordD in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord2dv - -MultiTexCoord2dvARB(target, v) - return void - param target TextureUnit in value - param v CoordD in array [2] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 202 - alias MultiTexCoord2dv - -MultiTexCoord2fARB(target, s, t) - return void - param target TextureUnit in value - param s CoordF in value - param t CoordF in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord2fv - -MultiTexCoord2fvARB(target, v) - return void - param target TextureUnit in value - param v CoordF in array [2] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 203 - alias MultiTexCoord2fv - -MultiTexCoord2iARB(target, s, t) - return void - param target TextureUnit in value - param s CoordI in value - param t CoordI in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord2iv - -MultiTexCoord2ivARB(target, v) - return void - param target TextureUnit in value - param v CoordI in array [2] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 204 - alias MultiTexCoord2iv - -MultiTexCoord2sARB(target, s, t) - return void - param target TextureUnit in value - param s CoordS in value - param t CoordS in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord2sv - -MultiTexCoord2svARB(target, v) - return void - param target TextureUnit in value - param v CoordS in array [2] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 205 - alias MultiTexCoord2sv - -MultiTexCoord3dARB(target, s, t, r) - return void - param target TextureUnit in value - param s CoordD in value - param t CoordD in value - param r CoordD in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord3dv - -MultiTexCoord3dvARB(target, v) - return void - param target TextureUnit in value - param v CoordD in array [3] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 206 - alias MultiTexCoord3dv - -MultiTexCoord3fARB(target, s, t, r) - return void - param target TextureUnit in value - param s CoordF in value - param t CoordF in value - param r CoordF in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord3fv - -MultiTexCoord3fvARB(target, v) - return void - param target TextureUnit in value - param v CoordF in array [3] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 207 - alias MultiTexCoord3fv - -MultiTexCoord3iARB(target, s, t, r) - return void - param target TextureUnit in value - param s CoordI in value - param t CoordI in value - param r CoordI in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord3iv - -MultiTexCoord3ivARB(target, v) - return void - param target TextureUnit in value - param v CoordI in array [3] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 208 - alias MultiTexCoord3iv - -MultiTexCoord3sARB(target, s, t, r) - return void - param target TextureUnit in value - param s CoordS in value - param t CoordS in value - param r CoordS in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord3sv - -MultiTexCoord3svARB(target, v) - return void - param target TextureUnit in value - param v CoordS in array [3] - category ARB_multitexture - version 1.2 - glxflags ARB - glxropcode 209 - alias MultiTexCoord3sv - -MultiTexCoord4dARB(target, s, t, r, q) - return void - param target TextureUnit in value - param s CoordD in value - param t CoordD in value - param r CoordD in value - param q CoordD in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord4dv - -MultiTexCoord4dvARB(target, v) - return void - param target TextureUnit in value - param v CoordD in array [4] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 210 - alias MultiTexCoord4dv - -MultiTexCoord4fARB(target, s, t, r, q) - return void - param target TextureUnit in value - param s CoordF in value - param t CoordF in value - param r CoordF in value - param q CoordF in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord4fv - -MultiTexCoord4fvARB(target, v) - return void - param target TextureUnit in value - param v CoordF in array [4] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 211 - alias MultiTexCoord4fv - -MultiTexCoord4iARB(target, s, t, r, q) - return void - param target TextureUnit in value - param s CoordI in value - param t CoordI in value - param r CoordI in value - param q CoordI in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord4iv - -MultiTexCoord4ivARB(target, v) - return void - param target TextureUnit in value - param v CoordI in array [4] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 212 - alias MultiTexCoord4iv - -MultiTexCoord4sARB(target, s, t, r, q) - return void - param target TextureUnit in value - param s CoordS in value - param t CoordS in value - param r CoordS in value - param q CoordS in value - category ARB_multitexture - glxflags ARB - version 1.2 - vectorequiv MultiTexCoord4sv - -MultiTexCoord4svARB(target, v) - return void - param target TextureUnit in value - param v CoordS in array [4] - category ARB_multitexture - glxflags ARB - version 1.2 - glxropcode 213 - alias MultiTexCoord4sv - -################################################################################ -# -# ARB Extension #2 - GLX_ARB_get_proc_address -# -############################################################################### - -################################################################################ -# -# ARB Extension #3 -# ARB_transpose_matrix commands -# -############################################################################### - -LoadTransposeMatrixfARB(m) - return void - param m Float32 in array [16] - category ARB_transpose_matrix - glxflags ARB client-handcode client-intercept server-handcode - version 1.2 - alias LoadTransposeMatrixf - -LoadTransposeMatrixdARB(m) - return void - param m Float64 in array [16] - category ARB_transpose_matrix - glxflags ARB client-handcode client-intercept server-handcode - version 1.2 - alias LoadTransposeMatrixd - -MultTransposeMatrixfARB(m) - return void - param m Float32 in array [16] - category ARB_transpose_matrix - glxflags ARB client-handcode client-intercept server-handcode - version 1.2 - alias MultTransposeMatrixf - -MultTransposeMatrixdARB(m) - return void - param m Float64 in array [16] - category ARB_transpose_matrix - glxflags ARB client-handcode client-intercept server-handcode - version 1.2 - alias MultTransposeMatrixd - -################################################################################ -# -# ARB Extension #4 - WGL_ARB_buffer_region -# -############################################################################### - -################################################################################ -# -# ARB Extension #5 -# ARB_multisample commands -# -############################################################################### - -SampleCoverageARB(value, invert) - return void - param value ClampedFloat32 in value - param invert Boolean in value - category ARB_multisample - glxflags ARB - version 1.2 - alias SampleCoverage - -################################################################################ -# -# ARB Extension #6 -# ARB_texture_env_add commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_env_add - -################################################################################ -# -# ARB Extension #7 -# ARB_texture_cube_map commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_cube_map - -################################################################################ -# -# ARB Extension #8 - WGL_ARB_extensions_string -# ARB Extension #9 - WGL_ARB_pixel_format commands -# ARB Extension #10 - WGL_ARB_make_current_read commands -# ARB Extension #11 - WGL_ARB_pbuffer -# -############################################################################### - -################################################################################ -# -# ARB Extension #12 -# ARB_texture_compression commands -# -############################################################################### - -# Arguably TexelInternalFormat, not PixelInternalFormat -CompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, data) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param border CheckedInt32 in value - param imageSize SizeI in value - param data CompressedTextureARB in array [imageSize] - category ARB_texture_compression - dlflags handcode - glxflags ARB client-handcode server-handcode - version 1.2 - glxropcode 216 - alias CompressedTexImage3D - wglflags client-handcode server-handcode - -# Arguably TexelInternalFormat, not PixelInternalFormat -CompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, data) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - param border CheckedInt32 in value - param imageSize SizeI in value - param data CompressedTextureARB in array [imageSize] - category ARB_texture_compression - dlflags handcode - glxflags ARB client-handcode server-handcode - version 1.2 - glxropcode 215 - alias CompressedTexImage2D - wglflags client-handcode server-handcode - -# Arguably TexelInternalFormat, not PixelInternalFormat -CompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, data) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param border CheckedInt32 in value - param imageSize SizeI in value - param data CompressedTextureARB in array [imageSize] - category ARB_texture_compression - dlflags handcode - glxflags ARB client-handcode server-handcode - version 1.2 - glxropcode 214 - alias CompressedTexImage1D - wglflags client-handcode server-handcode - -CompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param zoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param format PixelFormat in value - param imageSize SizeI in value - param data CompressedTextureARB in array [imageSize] - category ARB_texture_compression - dlflags handcode - glxflags ARB client-handcode server-handcode - version 1.2 - glxropcode 219 - alias CompressedTexSubImage3D - wglflags client-handcode server-handcode - -CompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, data) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param imageSize SizeI in value - param data CompressedTextureARB in array [imageSize] - category ARB_texture_compression - dlflags handcode - glxflags ARB client-handcode server-handcode - version 1.2 - glxropcode 218 - alias CompressedTexSubImage2D - wglflags client-handcode server-handcode - -CompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, data) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param width SizeI in value - param format PixelFormat in value - param imageSize SizeI in value - param data CompressedTextureARB in array [imageSize] - category ARB_texture_compression - dlflags handcode - glxflags ARB client-handcode server-handcode - version 1.2 - glxropcode 217 - alias CompressedTexSubImage1D - wglflags client-handcode server-handcode - -GetCompressedTexImageARB(target, level, img) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param img CompressedTextureARB out array [COMPSIZE(target/level)] - category ARB_texture_compression - dlflags notlistable - glxflags ARB client-handcode server-handcode - version 1.2 - glxsingle 160 - alias GetCompressedTexImage - wglflags client-handcode server-handcode - -################################################################################ -# -# ARB Extension #13 -# ARB_texture_border_clamp commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_border_clamp - -############################################################################### -# -# ARB Extension #14 -# ARB_point_parameters commands -# -############################################################################### - -PointParameterfARB(pname, param) - return void - param pname PointParameterNameARB in value - param param CheckedFloat32 in value - category ARB_point_parameters - version 1.0 - glxflags ARB - glxropcode 2065 - extension - alias PointParameterf - -PointParameterfvARB(pname, params) - return void - param pname PointParameterNameARB in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category ARB_point_parameters - version 1.0 - glxflags ARB - glxropcode 2066 - extension - alias PointParameterfv - -################################################################################ -# -# ARB Extension #15 -# ARB_vertex_blend commands -# -############################################################################### - -WeightbvARB(size, weights) - return void - param size Int32 in value - param weights Int8 in array [size] - category ARB_vertex_blend - version 1.1 - extension - glxropcode 220 - glxflags ignore - offset ? - -WeightsvARB(size, weights) - return void - param size Int32 in value - param weights Int16 in array [size] - category ARB_vertex_blend - version 1.1 - extension - glxropcode 222 - glxflags ignore - offset ? - -WeightivARB(size, weights) - return void - param size Int32 in value - param weights Int32 in array [size] - category ARB_vertex_blend - version 1.1 - extension - glxropcode 224 - glxflags ignore - offset ? - -WeightfvARB(size, weights) - return void - param size Int32 in value - param weights Float32 in array [size] - category ARB_vertex_blend - version 1.1 - extension - glxropcode 227 - glxflags ignore - offset ? - -WeightdvARB(size, weights) - return void - param size Int32 in value - param weights Float64 in array [size] - category ARB_vertex_blend - version 1.1 - extension - glxropcode 228 - glxflags ignore - offset ? - -WeightubvARB(size, weights) - return void - param size Int32 in value - param weights UInt8 in array [size] - category ARB_vertex_blend - version 1.1 - extension - glxropcode 221 - glxflags ignore - offset ? - -WeightusvARB(size, weights) - return void - param size Int32 in value - param weights UInt16 in array [size] - category ARB_vertex_blend - version 1.1 - extension - glxropcode 223 - glxflags ignore - offset ? - -WeightuivARB(size, weights) - return void - param size Int32 in value - param weights UInt32 in array [size] - category ARB_vertex_blend - version 1.1 - extension - glxropcode 225 - glxflags ignore - offset ? - -WeightPointerARB(size, type, stride, pointer) - return void - param size Int32 in value - param type WeightPointerTypeARB in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(type/stride)] retained - category ARB_vertex_blend - version 1.1 - extension - dlflags notlistable - glxflags ignore - offset ? - -VertexBlendARB(count) - return void - param count Int32 in value - category ARB_vertex_blend - version 1.1 - extension - glxropcode 226 - glxflags ignore - offset ? - -################################################################################ -# -# ARB Extension #16 -# ARB_matrix_palette commands -# -############################################################################### - -CurrentPaletteMatrixARB(index) - return void - param index Int32 in value - category ARB_matrix_palette - version 1.1 - extension - glxropcode 4329 - glxflags ignore - offset ? - -MatrixIndexubvARB(size, indices) - return void - param size Int32 in value - param indices UInt8 in array [size] - category ARB_matrix_palette - version 1.1 - extension - glxropcode 4326 - glxflags ignore - offset ? - -MatrixIndexusvARB(size, indices) - return void - param size Int32 in value - param indices UInt16 in array [size] - category ARB_matrix_palette - version 1.1 - extension - glxropcode 4327 - glxflags ignore - offset ? - -MatrixIndexuivARB(size, indices) - return void - param size Int32 in value - param indices UInt32 in array [size] - category ARB_matrix_palette - version 1.1 - extension - glxropcode 4328 - glxflags ignore - offset ? - -MatrixIndexPointerARB(size, type, stride, pointer) - return void - param size Int32 in value - param type MatrixIndexPointerTypeARB in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(type/stride)] retained - category ARB_matrix_palette - version 1.1 - extension - dlflags notlistable - glxflags ignore - offset ? - -################################################################################ -# -# ARB Extension #17 -# ARB_texture_env_combine commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_env_combine - -################################################################################ -# -# ARB Extension #18 -# ARB_texture_env_crossbar commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_env_crossbar - -################################################################################ -# -# ARB Extension #19 -# ARB_texture_env_dot3 commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_env_dot3 - -############################################################################### -# -# ARB Extension #20 - WGL_ARB_render_texture -# -############################################################################### - -############################################################################### -# -# ARB Extension #21 -# ARB_texture_mirrored_repeat commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_mirrored_repeat - -############################################################################### -# -# ARB Extension #22 -# ARB_depth_texture commands -# -############################################################################### - -# (none) -newcategory: ARB_depth_texture - -############################################################################### -# -# ARB Extension #23 -# ARB_shadow commands -# -############################################################################### - -# (none) -newcategory: ARB_shadow - -############################################################################### -# -# ARB Extension #24 -# ARB_shadow_ambient commands -# -############################################################################### - -# (none) -newcategory: ARB_shadow_ambient - -############################################################################### -# -# ARB Extension #25 -# ARB_window_pos commands -# Note: all entry points use glxropcode ropcode 230, with 3 float parameters -# -############################################################################### - -WindowPos2dARB(x, y) - return void - param x CoordD in value - param y CoordD in value - category ARB_window_pos - vectorequiv WindowPos2dvARB - version 1.0 - alias WindowPos2d - -WindowPos2dvARB(v) - return void - param v CoordD in array [2] - category ARB_window_pos - version 1.0 - glxropcode 230 - glxflags client-handcode server-handcode - alias WindowPos2dv - -WindowPos2fARB(x, y) - return void - param x CoordF in value - param y CoordF in value - category ARB_window_pos - vectorequiv WindowPos2fvARB - version 1.0 - alias WindowPos2f - -WindowPos2fvARB(v) - return void - param v CoordF in array [2] - category ARB_window_pos - version 1.0 - glxropcode 230 - glxflags client-handcode server-handcode - alias WindowPos2fv - -WindowPos2iARB(x, y) - return void - param x CoordI in value - param y CoordI in value - category ARB_window_pos - vectorequiv WindowPos2ivARB - version 1.0 - alias WindowPos2i - -WindowPos2ivARB(v) - return void - param v CoordI in array [2] - category ARB_window_pos - version 1.0 - glxropcode 230 - glxflags client-handcode server-handcode - alias WindowPos2iv - -WindowPos2sARB(x, y) - return void - param x CoordS in value - param y CoordS in value - category ARB_window_pos - vectorequiv WindowPos2svARB - version 1.0 - alias WindowPos2s - -WindowPos2svARB(v) - return void - param v CoordS in array [2] - category ARB_window_pos - version 1.0 - glxropcode 230 - glxflags client-handcode server-handcode - alias WindowPos2sv - -WindowPos3dARB(x, y, z) - return void - param x CoordD in value - param y CoordD in value - param z CoordD in value - vectorequiv WindowPos3dvARB - category ARB_window_pos - version 1.0 - alias WindowPos3d - -WindowPos3dvARB(v) - return void - param v CoordD in array [3] - category ARB_window_pos - version 1.0 - glxropcode 230 - glxflags client-handcode server-handcode - alias WindowPos3dv - -WindowPos3fARB(x, y, z) - return void - param x CoordF in value - param y CoordF in value - param z CoordF in value - category ARB_window_pos - vectorequiv WindowPos3fvARB - version 1.0 - alias WindowPos3f - -WindowPos3fvARB(v) - return void - param v CoordF in array [3] - category ARB_window_pos - version 1.0 - glxropcode 230 - glxflags client-handcode server-handcode - alias WindowPos3fv - -WindowPos3iARB(x, y, z) - return void - param x CoordI in value - param y CoordI in value - param z CoordI in value - category ARB_window_pos - vectorequiv WindowPos3ivARB - version 1.0 - alias WindowPos3i - -WindowPos3ivARB(v) - return void - param v CoordI in array [3] - category ARB_window_pos - version 1.0 - glxropcode 230 - glxflags client-handcode server-handcode - alias WindowPos3iv - -WindowPos3sARB(x, y, z) - return void - param x CoordS in value - param y CoordS in value - param z CoordS in value - category ARB_window_pos - vectorequiv WindowPos3svARB - version 1.0 - alias WindowPos3s - -WindowPos3svARB(v) - return void - param v CoordS in array [3] - category ARB_window_pos - version 1.0 - glxropcode 230 - glxflags client-handcode server-handcode - alias WindowPos3sv - -############################################################################### -# -# ARB Extension #26 -# ARB_vertex_program commands -# -############################################################################### - -VertexAttrib1dARB(index, x) - return void - param index UInt32 in value - param x Float64 in value - category ARB_vertex_program - version 1.3 - vectorequiv VertexAttrib1dvARB - extension soft WINSOFT NV10 - alias VertexAttrib1d - -VertexAttrib1dvARB(index, v) - return void - param index UInt32 in value - param v Float64 in array [1] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4197 - alias VertexAttrib1dv - -VertexAttrib1fARB(index, x) - return void - param index UInt32 in value - param x Float32 in value - category ARB_vertex_program - version 1.3 - vectorequiv VertexAttrib1fvARB - extension soft WINSOFT NV10 - alias VertexAttrib1f - -VertexAttrib1fvARB(index, v) - return void - param index UInt32 in value - param v Float32 in array [1] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4193 - alias VertexAttrib1fv - -VertexAttrib1sARB(index, x) - return void - param index UInt32 in value - param x Int16 in value - category ARB_vertex_program - version 1.3 - vectorequiv VertexAttrib1svARB - extension soft WINSOFT NV10 - alias VertexAttrib1s - -VertexAttrib1svARB(index, v) - return void - param index UInt32 in value - param v Int16 in array [1] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4189 - alias VertexAttrib1sv - -VertexAttrib2dARB(index, x, y) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - category ARB_vertex_program - version 1.3 - vectorequiv VertexAttrib2dvARB - extension soft WINSOFT NV10 - alias VertexAttrib2d - -VertexAttrib2dvARB(index, v) - return void - param index UInt32 in value - param v Float64 in array [2] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4198 - alias VertexAttrib2dv - -VertexAttrib2fARB(index, x, y) - return void - param index UInt32 in value - param x Float32 in value - param y Float32 in value - category ARB_vertex_program - version 1.3 - vectorequiv VertexAttrib2fvARB - extension soft WINSOFT NV10 - alias VertexAttrib2f - -VertexAttrib2fvARB(index, v) - return void - param index UInt32 in value - param v Float32 in array [2] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4194 - alias VertexAttrib2fv - -VertexAttrib2sARB(index, x, y) - return void - param index UInt32 in value - param x Int16 in value - param y Int16 in value - category ARB_vertex_program - version 1.3 - vectorequiv VertexAttrib2svARB - extension soft WINSOFT NV10 - alias VertexAttrib2s - -VertexAttrib2svARB(index, v) - return void - param index UInt32 in value - param v Int16 in array [2] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4190 - alias VertexAttrib2sv - -VertexAttrib3dARB(index, x, y, z) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - category ARB_vertex_program - version 1.3 - vectorequiv VertexAttrib3dvARB - extension soft WINSOFT NV10 - alias VertexAttrib3d - -VertexAttrib3dvARB(index, v) - return void - param index UInt32 in value - param v Float64 in array [3] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4199 - alias VertexAttrib3dv - -VertexAttrib3fARB(index, x, y, z) - return void - param index UInt32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category ARB_vertex_program - version 1.3 - vectorequiv VertexAttrib3fvARB - extension soft WINSOFT NV10 - alias VertexAttrib3f - -VertexAttrib3fvARB(index, v) - return void - param index UInt32 in value - param v Float32 in array [3] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4195 - alias VertexAttrib3fv - -VertexAttrib3sARB(index, x, y, z) - return void - param index UInt32 in value - param x Int16 in value - param y Int16 in value - param z Int16 in value - category ARB_vertex_program - version 1.3 - vectorequiv VertexAttrib3svARB - extension soft WINSOFT NV10 - alias VertexAttrib3s - -VertexAttrib3svARB(index, v) - return void - param index UInt32 in value - param v Int16 in array [3] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4191 - alias VertexAttrib3sv - -VertexAttrib4NbvARB(index, v) - return void - param index UInt32 in value - param v Int8 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias VertexAttrib4Nbv - -VertexAttrib4NivARB(index, v) - return void - param index UInt32 in value - param v Int32 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias VertexAttrib4Niv - -VertexAttrib4NsvARB(index, v) - return void - param index UInt32 in value - param v Int16 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias VertexAttrib4Nsv - -VertexAttrib4NubARB(index, x, y, z, w) - return void - param index UInt32 in value - param x UInt8 in value - param y UInt8 in value - param z UInt8 in value - param w UInt8 in value - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias VertexAttrib4Nub - -VertexAttrib4NubvARB(index, v) - return void - param index UInt32 in value - param v UInt8 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4201 - alias VertexAttrib4Nubv - -VertexAttrib4NuivARB(index, v) - return void - param index UInt32 in value - param v UInt32 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias VertexAttrib4Nuiv - -VertexAttrib4NusvARB(index, v) - return void - param index UInt32 in value - param v UInt16 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias VertexAttrib4Nusv - -VertexAttrib4bvARB(index, v) - return void - param index UInt32 in value - param v Int8 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias VertexAttrib4bv - -VertexAttrib4dARB(index, x, y, z, w) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category ARB_vertex_program - version 1.3 - vectorequiv VertexAttrib4dvARB - extension soft WINSOFT NV10 - alias VertexAttrib4d - -VertexAttrib4dvARB(index, v) - return void - param index UInt32 in value - param v Float64 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4200 - alias VertexAttrib4dv - -VertexAttrib4fARB(index, x, y, z, w) - return void - param index UInt32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - param w Float32 in value - category ARB_vertex_program - version 1.3 - vectorequiv VertexAttrib4fvARB - extension soft WINSOFT NV10 - alias VertexAttrib4f - -VertexAttrib4fvARB(index, v) - return void - param index UInt32 in value - param v Float32 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4196 - alias VertexAttrib4fv - -VertexAttrib4ivARB(index, v) - return void - param index UInt32 in value - param v Int32 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias VertexAttrib4iv - -VertexAttrib4sARB(index, x, y, z, w) - return void - param index UInt32 in value - param x Int16 in value - param y Int16 in value - param z Int16 in value - param w Int16 in value - category ARB_vertex_program - version 1.3 - vectorequiv VertexAttrib4svARB - extension soft WINSOFT NV10 - alias VertexAttrib4s - -VertexAttrib4svARB(index, v) - return void - param index UInt32 in value - param v Int16 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4192 - alias VertexAttrib4sv - -VertexAttrib4ubvARB(index, v) - return void - param index UInt32 in value - param v UInt8 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias VertexAttrib4ubv - -VertexAttrib4uivARB(index, v) - return void - param index UInt32 in value - param v UInt32 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias VertexAttrib4uiv - -VertexAttrib4usvARB(index, v) - return void - param index UInt32 in value - param v UInt16 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias VertexAttrib4usv - -VertexAttribPointerARB(index, size, type, normalized, stride, pointer) - return void - param index UInt32 in value - param size Int32 in value - param type VertexAttribPointerTypeARB in value - param normalized Boolean in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(size/type/stride)] retained - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias VertexAttribPointer - -EnableVertexAttribArrayARB(index) - return void - param index UInt32 in value - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias EnableVertexAttribArray - -DisableVertexAttribArrayARB(index) - return void - param index UInt32 in value - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - alias DisableVertexAttribArray - -ProgramStringARB(target, format, len, string) - return void - param target ProgramTargetARB in value - param format ProgramFormatARB in value - param len SizeI in value - param string Void in array [len] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxflags ignore - offset 667 - -BindProgramARB(target, program) - return void - param target ProgramTargetARB in value - param program UInt32 in value - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxropcode 4180 - offset 579 - -DeleteProgramsARB(n, programs) - return void - param n SizeI in value - param programs UInt32 in array [n] - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxvendorpriv 1294 - offset 580 - -GenProgramsARB(n, programs) - return void - param n SizeI in value - param programs UInt32 out array [n] - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxvendorpriv 1295 - offset 582 - -ProgramEnvParameter4dARB(target, index, x, y, z, w) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category ARB_vertex_program - version 1.3 - vectorequiv ProgramEnvParameter4dvARB - extension soft WINSOFT NV10 - glxflags ignore - offset 668 - -ProgramEnvParameter4dvARB(target, index, params) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param params Float64 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxflags ignore - offset 669 - -ProgramEnvParameter4fARB(target, index, x, y, z, w) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - param w Float32 in value - category ARB_vertex_program - version 1.3 - vectorequiv ProgramEnvParameter4fvARB - extension soft WINSOFT NV10 - glxflags ignore - offset 670 - -ProgramEnvParameter4fvARB(target, index, params) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param params Float32 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxflags ignore - offset 671 - -ProgramLocalParameter4dARB(target, index, x, y, z, w) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category ARB_vertex_program - version 1.3 - vectorequiv ProgramLocalParameter4dvARB - extension soft WINSOFT NV10 - glxflags ignore - offset 672 - -ProgramLocalParameter4dvARB(target, index, params) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param params Float64 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxflags ignore - offset 673 - -ProgramLocalParameter4fARB(target, index, x, y, z, w) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - param w Float32 in value - category ARB_vertex_program - version 1.3 - vectorequiv ProgramLocalParameter4fvARB - extension soft WINSOFT NV10 - glxflags ignore - offset 674 - -ProgramLocalParameter4fvARB(target, index, params) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param params Float32 in array [4] - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxflags ignore - offset 675 - -GetProgramEnvParameterdvARB(target, index, params) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param params Float64 out array [4] - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxflags ignore - offset 676 - -GetProgramEnvParameterfvARB(target, index, params) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param params Float32 out array [4] - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxflags ignore - offset 677 - -GetProgramLocalParameterdvARB(target, index, params) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param params Float64 out array [4] - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxflags ignore - offset 678 - -GetProgramLocalParameterfvARB(target, index, params) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param params Float32 out array [4] - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxflags ignore - offset 679 - -GetProgramivARB(target, pname, params) - return void - param target ProgramTargetARB in value - param pname ProgramPropertyARB in value - param params Int32 out array [1] - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxflags ignore - offset 680 - -GetProgramStringARB(target, pname, string) - return void - param target ProgramTargetARB in value - param pname ProgramStringPropertyARB in value - param string Void out array [COMPSIZE(target,pname)] - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxflags ignore - offset 681 - -GetVertexAttribdvARB(index, pname, params) - return void - param index UInt32 in value - param pname VertexAttribPropertyARB in value - param params Float64 out array [4] - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxvendorpriv 1301 - alias GetVertexAttribdv - -GetVertexAttribfvARB(index, pname, params) - return void - param index UInt32 in value - param pname VertexAttribPropertyARB in value - param params Float32 out array [4] - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxvendorpriv 1302 - alias GetVertexAttribfv - -GetVertexAttribivARB(index, pname, params) - return void - param index UInt32 in value - param pname VertexAttribPropertyARB in value - param params Int32 out array [4] - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxvendorpriv 1303 - alias GetVertexAttribiv - -GetVertexAttribPointervARB(index, pname, pointer) - return void - param index UInt32 in value - param pname VertexAttribPointerPropertyARB in value - param pointer VoidPointer out array [1] - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxflags ignore - alias GetVertexAttribPointerv - -IsProgramARB(program) - return Boolean - param program UInt32 in value - dlflags notlistable - category ARB_vertex_program - version 1.3 - extension soft WINSOFT NV10 - glxvendorpriv 1304 - alias IsProgram - - -############################################################################### -# -# ARB Extension #27 -# ARB_fragment_program commands -# -############################################################################### - -# All ARB_fragment_program entry points are shared with ARB_vertex_program, -# and are only included in that #define block, for now. -newcategory: ARB_fragment_program -passthru: /* All ARB_fragment_program entry points are shared with ARB_vertex_program. */ - -############################################################################### -# -# ARB Extension #28 -# ARB_vertex_buffer_object commands -# -############################################################################### - -BindBufferARB(target, buffer) - return void - param target BufferTargetARB in value - param buffer UInt32 in value - category ARB_vertex_buffer_object - version 1.2 - extension - alias BindBuffer - -DeleteBuffersARB(n, buffers) - return void - param n SizeI in value - param buffers ConstUInt32 in array [n] - category ARB_vertex_buffer_object - version 1.2 - extension - alias DeleteBuffers - -GenBuffersARB(n, buffers) - return void - param n SizeI in value - param buffers UInt32 out array [n] - category ARB_vertex_buffer_object - version 1.2 - extension - alias GenBuffers - -IsBufferARB(buffer) - return Boolean - param buffer UInt32 in value - category ARB_vertex_buffer_object - version 1.2 - extension - alias IsBuffer - -BufferDataARB(target, size, data, usage) - return void - param target BufferTargetARB in value - param size BufferSizeARB in value - param data ConstVoid in array [size] - param usage BufferUsageARB in value - category ARB_vertex_buffer_object - version 1.2 - extension - alias BufferData - -BufferSubDataARB(target, offset, size, data) - return void - param target BufferTargetARB in value - param offset BufferOffsetARB in value - param size BufferSizeARB in value - param data ConstVoid in array [size] - category ARB_vertex_buffer_object - version 1.2 - extension - alias BufferSubData - -GetBufferSubDataARB(target, offset, size, data) - return void - param target BufferTargetARB in value - param offset BufferOffsetARB in value - param size BufferSizeARB in value - param data Void out array [size] - category ARB_vertex_buffer_object - dlflags notlistable - version 1.2 - extension - alias GetBufferSubData - -MapBufferARB(target, access) - return VoidPointer - param target BufferTargetARB in value - param access BufferAccessARB in value - category ARB_vertex_buffer_object - version 1.2 - extension - alias MapBuffer - -UnmapBufferARB(target) - return Boolean - param target BufferTargetARB in value - category ARB_vertex_buffer_object - version 1.2 - extension - alias UnmapBuffer - -GetBufferParameterivARB(target, pname, params) - return void - param target BufferTargetARB in value - param pname BufferPNameARB in value - param params Int32 out array [COMPSIZE(pname)] - category ARB_vertex_buffer_object - dlflags notlistable - version 1.2 - extension - alias GetBufferParameteriv - -GetBufferPointervARB(target, pname, params) - return void - param target BufferTargetARB in value - param pname BufferPointerNameARB in value - param params VoidPointer out array [1] - category ARB_vertex_buffer_object - dlflags notlistable - version 1.2 - extension - alias GetBufferPointerv - -############################################################################### -# -# ARB Extension #29 -# ARB_occlusion_query commands -# -############################################################################### - -GenQueriesARB(n, ids) - return void - param n SizeI in value - param ids UInt32 out array [n] - category ARB_occlusion_query - version 1.5 - extension - alias GenQueries - -DeleteQueriesARB(n, ids) - return void - param n SizeI in value - param ids UInt32 in array [n] - category ARB_occlusion_query - version 1.5 - extension - alias DeleteQueries - -IsQueryARB(id) - return Boolean - param id UInt32 in value - category ARB_occlusion_query - version 1.5 - extension - alias IsQuery - -BeginQueryARB(target, id) - return void - param target GLenum in value - param id UInt32 in value - category ARB_occlusion_query - version 1.5 - extension - alias BeginQuery - -EndQueryARB(target) - return void - param target GLenum in value - category ARB_occlusion_query - version 1.5 - extension - alias EndQuery - -GetQueryivARB(target, pname, params) - return void - param target GLenum in value - param pname GLenum in value - param params Int32 out array [pname] - category ARB_occlusion_query - dlflags notlistable - version 1.5 - extension - alias GetQueryiv - -GetQueryObjectivARB(id, pname, params) - return void - param id UInt32 in value - param pname GLenum in value - param params Int32 out array [pname] - category ARB_occlusion_query - dlflags notlistable - version 1.5 - extension - alias GetQueryObjectiv - -GetQueryObjectuivARB(id, pname, params) - return void - param id UInt32 in value - param pname GLenum in value - param params UInt32 out array [pname] - category ARB_occlusion_query - dlflags notlistable - version 1.5 - extension - alias GetQueryObjectuiv - -############################################################################### -# -# ARB Extension #30 -# ARB_shader_objects commands -# -############################################################################### - -DeleteObjectARB(obj) - return void - param obj handleARB in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetHandleARB(pname) - return handleARB - param pname GLenum in value - category ARB_shader_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -DetachObjectARB(containerObj, attachedObj) - return void - param containerObj handleARB in value - param attachedObj handleARB in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias DetachShader - -CreateShaderObjectARB(shaderType) - return handleARB - param shaderType GLenum in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias CreateShader - -ShaderSourceARB(shaderObj, count, string, length) - return void - param shaderObj handleARB in value - param count SizeI in value - param string charPointerARB in array [count] - param length Int32 in array [1] - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias ShaderSource - -CompileShaderARB(shaderObj) - return void - param shaderObj handleARB in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias CompileShader - -CreateProgramObjectARB() - return handleARB - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias CreateProgram - -AttachObjectARB(containerObj, obj) - return void - param containerObj handleARB in value - param obj handleARB in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias AttachShader - -LinkProgramARB(programObj) - return void - param programObj handleARB in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias LinkProgram - -UseProgramObjectARB(programObj) - return void - param programObj handleARB in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias UseProgram - -ValidateProgramARB(programObj) - return void - param programObj handleARB in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias ValidateProgram - -Uniform1fARB(location, v0) - return void - param location Int32 in value - param v0 Float32 in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform1f - -Uniform2fARB(location, v0, v1) - return void - param location Int32 in value - param v0 Float32 in value - param v1 Float32 in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform2f - -Uniform3fARB(location, v0, v1, v2) - return void - param location Int32 in value - param v0 Float32 in value - param v1 Float32 in value - param v2 Float32 in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform3f - -Uniform4fARB(location, v0, v1, v2, v3) - return void - param location Int32 in value - param v0 Float32 in value - param v1 Float32 in value - param v2 Float32 in value - param v3 Float32 in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform4f - -Uniform1iARB(location, v0) - return void - param location Int32 in value - param v0 Int32 in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform1i - -Uniform2iARB(location, v0, v1) - return void - param location Int32 in value - param v0 Int32 in value - param v1 Int32 in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform2i - -Uniform3iARB(location, v0, v1, v2) - return void - param location Int32 in value - param v0 Int32 in value - param v1 Int32 in value - param v2 Int32 in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform3i - -Uniform4iARB(location, v0, v1, v2, v3) - return void - param location Int32 in value - param v0 Int32 in value - param v1 Int32 in value - param v2 Int32 in value - param v3 Int32 in value - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform4i - -Uniform1fvARB(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Float32 in array [count] - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform1fv - -Uniform2fvARB(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Float32 in array [count] - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform2fv - -Uniform3fvARB(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Float32 in array [count] - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform3fv - -Uniform4fvARB(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Float32 in array [count] - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform4fv - -Uniform1ivARB(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Int32 in array [count] - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform1iv - -Uniform2ivARB(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Int32 in array [count] - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform2iv - -Uniform3ivARB(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Int32 in array [count] - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform3iv - -Uniform4ivARB(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Int32 in array [count] - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias Uniform4iv - -UniformMatrix2fvARB(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count] - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias UniformMatrix2fv - -UniformMatrix3fvARB(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count] - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias UniformMatrix3fv - -UniformMatrix4fvARB(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count] - category ARB_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - alias UniformMatrix4fv - -GetObjectParameterfvARB(obj, pname, params) - return void - param obj handleARB in value - param pname GLenum in value - param params Float32 out array [pname] - category ARB_shader_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetObjectParameterivARB(obj, pname, params) - return void - param obj handleARB in value - param pname GLenum in value - param params Int32 out array [pname] - category ARB_shader_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetInfoLogARB(obj, maxLength, length, infoLog) - return void - param obj handleARB in value - param maxLength SizeI in value - param length SizeI out array [1] - param infoLog charARB out array [length] - category ARB_shader_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetAttachedObjectsARB(containerObj, maxCount, count, obj) - return void - param containerObj handleARB in value - param maxCount SizeI in value - param count SizeI out array [1] - param obj handleARB out array [count] - category ARB_shader_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - alias GetAttachedShaders - -GetUniformLocationARB(programObj, name) - return Int32 - param programObj handleARB in value - param name charARB in array [] - category ARB_shader_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - alias GetUniformLocation - -GetActiveUniformARB(programObj, index, maxLength, length, size, type, name) - return void - param programObj handleARB in value - param index UInt32 in value - param maxLength SizeI in value - param length SizeI out array [1] - param size Int32 out array [1] - param type GLenum out array [1] - param name charARB out array [] - category ARB_shader_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - alias GetActiveUniform - -GetUniformfvARB(programObj, location, params) - return void - param programObj handleARB in value - param location Int32 in value - param params Float32 out array [COMPSIZE(location)] - category ARB_shader_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - alias GetUniformfv - -GetUniformivARB(programObj, location, params) - return void - param programObj handleARB in value - param location Int32 in value - param params Int32 out array [COMPSIZE(location)] - category ARB_shader_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - alias GetUniformiv - -GetShaderSourceARB(obj, maxLength, length, source) - return void - param obj handleARB in value - param maxLength SizeI in value - param length SizeI out array [1] - param source charARB out array [length] - category ARB_shader_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - alias GetShaderSource - - -############################################################################### -# -# ARB Extension #31 -# ARB_vertex_shader commands -# -############################################################################### - -BindAttribLocationARB(programObj, index, name) - return void - param programObj handleARB in value - param index UInt32 in value - param name charARB in array [] - category ARB_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - alias BindAttribLocation - -GetActiveAttribARB(programObj, index, maxLength, length, size, type, name) - return void - param programObj handleARB in value - param index UInt32 in value - param maxLength SizeI in value - param length SizeI out array [1] - param size Int32 out array [1] - param type GLenum out array [1] - param name charARB out array [] - category ARB_vertex_shader - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - alias GetActiveAttrib - -GetAttribLocationARB(programObj, name) - return Int32 - param programObj handleARB in value - param name charARB in array [] - category ARB_vertex_shader - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - alias GetAttribLocation - -############################################################################### -# -# ARB Extension #32 -# ARB_fragment_shader commands -# -############################################################################### - -# (none) -newcategory: ARB_fragment_shader - -############################################################################### -# -# ARB Extension #33 -# ARB_shading_language_100 commands -# -############################################################################### - -# (none) -newcategory: ARB_shading_language_100 - -############################################################################### -# -# ARB Extension #34 -# ARB_texture_non_power_of_two commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_non_power_of_two - -############################################################################### -# -# ARB Extension #35 -# ARB_point_sprite commands -# -############################################################################### - -# (none) -newcategory: ARB_point_sprite - -############################################################################### -# -# ARB Extension #36 -# ARB_fragment_program_shadow commands -# -############################################################################### - -# (none) -newcategory: ARB_fragment_program_shadow - -############################################################################### -# -# ARB Extension #37 -# ARB_draw_buffers commands -# -############################################################################### - -DrawBuffersARB(n, bufs) - return void - param n SizeI in value - param bufs DrawBufferModeATI in array [n] - category ARB_draw_buffers - version 1.5 - extension - alias DrawBuffers - -############################################################################### -# -# ARB Extension #38 -# ARB_texture_rectangle commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_rectangle - -############################################################################### -# -# ARB Extension #39 -# ARB_color_buffer_float commands -# -############################################################################### - -ClampColorARB(target, clamp) - return void - param target ClampColorTargetARB in value - param clamp ClampColorModeARB in value - category ARB_color_buffer_float - version 1.5 - extension - glxropcode 234 - glxflags ignore - alias ClampColor - -############################################################################### -# -# ARB Extension #40 -# ARB_half_float_pixel commands -# -############################################################################### - -# (none) -newcategory: ARB_half_float_pixel - -############################################################################### -# -# ARB Extension #41 -# ARB_texture_float commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_float - -############################################################################### -# -# ARB Extension #42 -# ARB_pixel_buffer_object commands -# -############################################################################### - -# (none) -newcategory: ARB_pixel_buffer_object - -############################################################################### -# -# ARB Extension #43 -# ARB_depth_buffer_float commands (also OpenGL 3.0) -# -############################################################################### - -# (none) -newcategory: ARB_depth_buffer_float - -############################################################################### -# -# ARB Extension #44 -# ARB_draw_instanced commands -# -############################################################################### - -DrawArraysInstancedARB(mode, first, count, primcount) - return void - param mode BeginMode in value - param first Int32 in value - param count SizeI in value - param primcount SizeI in value - category ARB_draw_instanced - version 2.0 - extension soft WINSOFT - dlflags notlistable - vectorequiv ArrayElement - glfflags ignore - glxflags ignore - alias DrawArraysInstanced - -DrawElementsInstancedARB(mode, count, type, indices, primcount) - return void - param mode BeginMode in value - param count SizeI in value - param type DrawElementsType in value - param indices Void in array [COMPSIZE(count/type)] - param primcount SizeI in value - category ARB_draw_instanced - version 2.0 - extension soft WINSOFT - dlflags notlistable - vectorequiv ArrayElement - glfflags ignore - glxflags ignore - alias DrawElementsInstanced - -############################################################################### -# -# ARB Extension #45 -# ARB_framebuffer_object commands (also OpenGL 3.0) -# -############################################################################### - -# Promoted from EXT_framebuffer_object -IsRenderbuffer(renderbuffer) - return Boolean - param renderbuffer UInt32 in value - category ARB_framebuffer_object - version 3.0 - extension - glxvendorpriv 1422 - glxflags ignore - offset ? - -# GLX opcode changed so it can be differentiated from BindRenderbufferEXT -# (see ARB_framebuffer_object extension spec revision 23) -BindRenderbuffer(target, renderbuffer) - return void - param target RenderbufferTarget in value - param renderbuffer UInt32 in value - category ARB_framebuffer_object - version 3.0 - extension - glxropcode 235 - glxflags ignore - offset ? - -DeleteRenderbuffers(n, renderbuffers) - return void - param n SizeI in value - param renderbuffers UInt32 in array [n] - category ARB_framebuffer_object - version 3.0 - extension - glxropcode 4317 - glxflags ignore - offset ? - -GenRenderbuffers(n, renderbuffers) - return void - param n SizeI in value - param renderbuffers UInt32 out array [n] - category ARB_framebuffer_object - version 3.0 - extension - glxvendorpriv 1423 - glxflags ignore - offset ? - -RenderbufferStorage(target, internalformat, width, height) - return void - param target RenderbufferTarget in value - param internalformat GLenum in value - param width SizeI in value - param height SizeI in value - category ARB_framebuffer_object - version 3.0 - extension - glxropcode 4318 - glxflags ignore - offset ? - -GetRenderbufferParameteriv(target, pname, params) - return void - param target RenderbufferTarget in value - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category ARB_framebuffer_object - dlflags notlistable - version 3.0 - extension - glxvendorpriv 1424 - glxflags ignore - offset ? - -IsFramebuffer(framebuffer) - return Boolean - param framebuffer UInt32 in value - category ARB_framebuffer_object - version 3.0 - extension - glxvendorpriv 1425 - glxflags ignore - offset ? - -# GLX opcode changed so it can be differentiated from BindFramebufferEXT -# (see ARB_framebuffer_object extension spec revision 23) -BindFramebuffer(target, framebuffer) - return void - param target FramebufferTarget in value - param framebuffer UInt32 in value - category ARB_framebuffer_object - version 3.0 - extension - glxropcode 236 - glxflags ignore - offset ? - -DeleteFramebuffers(n, framebuffers) - return void - param n SizeI in value - param framebuffers UInt32 in array [n] - category ARB_framebuffer_object - version 3.0 - extension - glxropcode 4320 - glxflags ignore - offset ? - -GenFramebuffers(n, framebuffers) - return void - param n SizeI in value - param framebuffers UInt32 out array [n] - category ARB_framebuffer_object - version 3.0 - extension - glxvendorpriv 1426 - glxflags ignore - offset ? - -CheckFramebufferStatus(target) - return GLenum - param target FramebufferTarget in value - category ARB_framebuffer_object - version 3.0 - extension - glxvendorpriv 1427 - glxflags ignore - offset ? - -FramebufferTexture1D(target, attachment, textarget, texture, level) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param textarget GLenum in value - param texture UInt32 in value - param level Int32 in value - category ARB_framebuffer_object - version 3.0 - extension - glxropcode 4321 - glxflags ignore - offset ? - -FramebufferTexture2D(target, attachment, textarget, texture, level) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param textarget GLenum in value - param texture UInt32 in value - param level Int32 in value - category ARB_framebuffer_object - version 3.0 - extension - glxropcode 4322 - glxflags ignore - offset ? - -FramebufferTexture3D(target, attachment, textarget, texture, level, zoffset) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param textarget GLenum in value - param texture UInt32 in value - param level Int32 in value - param zoffset Int32 in value - category ARB_framebuffer_object - version 3.0 - extension - glxropcode 4323 - glxflags ignore - offset ? - -FramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param renderbuffertarget RenderbufferTarget in value - param renderbuffer UInt32 in value - category ARB_framebuffer_object - version 3.0 - extension - glxropcode 4324 - glxflags ignore - offset ? - -GetFramebufferAttachmentParameteriv(target, attachment, pname, params) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category ARB_framebuffer_object - dlflags notlistable - version 3.0 - extension - glxvendorpriv 1428 - glxflags ignore - offset ? - -GenerateMipmap(target) - return void - param target GLenum in value - category ARB_framebuffer_object - version 3.0 - extension - glxropcode 4325 - glxflags ignore - offset ? - -# Promoted from EXT_framebuffer_blit -BlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter) - return void - param srcX0 Int32 in value - param srcY0 Int32 in value - param srcX1 Int32 in value - param srcY1 Int32 in value - param dstX0 Int32 in value - param dstY0 Int32 in value - param dstX1 Int32 in value - param dstY1 Int32 in value - param mask ClearBufferMask in value - param filter GLenum in value - category ARB_framebuffer_object - version 3.0 - glxropcode 4330 - offset ? - -# Promoted from EXT_framebuffer_multisample -RenderbufferStorageMultisample(target, samples, internalformat, width, height) - return void - param target GLenum in value - param samples SizeI in value - param internalformat GLenum in value - param width SizeI in value - param height SizeI in value - category ARB_framebuffer_object - version 3.0 - glxropcode 4331 - offset ? - -# Promoted from ARB_geometry_shader4 -FramebufferTextureLayer(target, attachment, texture, level, layer) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param texture Texture in value - param level CheckedInt32 in value - param layer CheckedInt32 in value - category ARB_framebuffer_object - version 3.0 - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxropcode 237 - offset ? - - -############################################################################### -# -# ARB Extension #46 -# ARB_framebuffer_sRGB commands (also OpenGL 3.0) -# -############################################################################### - -# (none) -newcategory: ARB_framebuffer_sRGB - -############################################################################### -# -# ARB Extension #47 -# ARB_geometry_shader4 commands -# -############################################################################### - -ProgramParameteriARB(program, pname, value) - return void - param program UInt32 in value - param pname ProgramParameterPName in value - param value Int32 in value - category ARB_geometry_shader4 - version 3.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias ProgramParameteri - -FramebufferTextureARB(target, attachment, texture, level) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param texture Texture in value - param level CheckedInt32 in value - category ARB_geometry_shader4 - version 3.0 - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - -FramebufferTextureLayerARB(target, attachment, texture, level, layer) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param texture Texture in value - param level CheckedInt32 in value - param layer CheckedInt32 in value - category ARB_geometry_shader4 - version 3.0 - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - alias FramebufferTextureLayer - -FramebufferTextureFaceARB(target, attachment, texture, level, face) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param texture Texture in value - param level CheckedInt32 in value - param face TextureTarget in value - category ARB_geometry_shader4 - version 3.0 - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - -############################################################################### -# -# ARB Extension #48 -# ARB_half_float_vertex commands (also OpenGL 3.0) -# -############################################################################### - -# (none) -newcategory: ARB_half_float_vertex - -############################################################################### -# -# ARB Extension #49 -# ARB_instanced_arrays commands -# -############################################################################### - -VertexAttribDivisorARB(index, divisor) - return void - param index UInt32 in value - param divisor UInt32 in value - category ARB_instanced_arrays - version 2.0 - extension - glfflags ignore - glxflags ignore - -############################################################################### -# -# ARB Extension #50 -# ARB_map_buffer_range commands (also OpenGL 3.0) -# -############################################################################### - -MapBufferRange(target, offset, length, access) - return VoidPointer - param target BufferTargetARB in value - param offset BufferOffset in value - param length BufferSize in value - param access BufferAccessMask in value - category ARB_map_buffer_range - version 3.0 - extension - glxropcode ? - glxflags ignore - offset ? - -# Promoted from APPLE_flush_buffer_range -FlushMappedBufferRange(target, offset, length) - return void - param target BufferTargetARB in value - param offset BufferOffset in value - param length BufferSize in value - category ARB_map_buffer_range - version 3.0 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #51 -# ARB_texture_buffer_object commands -# -############################################################################### - -TexBufferARB(target, internalformat, buffer) - return void - param target TextureTarget in value - param internalformat GLenum in value - param buffer UInt32 in value - category ARB_texture_buffer_object - version 3.0 - extension soft WINSOFT NV50 - glfflags ignore - alias TexBuffer - -############################################################################### -# -# ARB Extension #52 -# ARB_texture_compression_rgtc commands (also OpenGL 3.0) -# -############################################################################### - -# (none) -newcategory: ARB_texture_compression_rgtc - -############################################################################### -# -# ARB Extension #53 -# ARB_texture_rg commands (also OpenGL 3.0) -# -############################################################################### - -# (none) -newcategory: ARB_texture_rg - -############################################################################### -# -# ARB Extension #54 -# ARB_vertex_array_object commands (also OpenGL 3.0) -# -############################################################################### - -# Promoted from APPLE_vertex_array_object -BindVertexArray(array) - return void - param array UInt32 in value - category ARB_vertex_array_object - version 3.0 - extension - glxropcode ? - glxflags ignore - offset ? - -DeleteVertexArrays(n, arrays) - return void - param n SizeI in value - param arrays UInt32 in array [n] - category ARB_vertex_array_object - version 3.0 - extension - glxropcode ? - glxflags ignore - offset ? - -GenVertexArrays(n, arrays) - return void - param n SizeI in value - param arrays UInt32 out array [n] - category ARB_vertex_array_object - version 3.0 - extension - glxropcode ? - glxflags ignore - offset ? - -IsVertexArray(array) - return Boolean - param array UInt32 in value - category ARB_vertex_array_object - version 3.0 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #55 - WGL_ARB_create_context -# ARB Extension #56 - GLX_ARB_create_context -# -############################################################################### - -############################################################################### -# -# ARB Extension #57 -# ARB_uniform_buffer_object commands -# -############################################################################### - -GetUniformIndices(program, uniformCount, uniformNames, uniformIndices) - return void - param program UInt32 in value - param uniformCount SizeI in value - param uniformNames CharPointer in array [COMPSIZE(uniformCount)] - param uniformIndices UInt32 out array [COMPSIZE(uniformCount)] - category ARB_uniform_buffer_object - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetActiveUniformsiv(program, uniformCount, uniformIndices, pname, params) - return void - param program UInt32 in value - param uniformCount SizeI in value - param uniformIndices UInt32 in array [COMPSIZE(uniformCount)] - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category ARB_uniform_buffer_object - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetActiveUniformName(program, uniformIndex, bufSize, length, uniformName) - return void - param program UInt32 in value - param uniformIndex UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param uniformName Char out array [bufSize] - category ARB_uniform_buffer_object - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetUniformBlockIndex(program, uniformBlockName) - return UInt32 - param program UInt32 in value - param uniformBlockName Char in array [COMPSIZE()] - category ARB_uniform_buffer_object - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetActiveUniformBlockiv(program, uniformBlockIndex, pname, params) - return void - param program UInt32 in value - param uniformBlockIndex UInt32 in value - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category ARB_uniform_buffer_object - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -GetActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, uniformBlockName) - return void - param program UInt32 in value - param uniformBlockIndex UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param uniformBlockName Char out array [bufSize] - category ARB_uniform_buffer_object - dlflags notlistable - version 2.0 - extension - glxsingle ? - glxflags ignore - offset ? - -UniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding) - return void - param program UInt32 in value - param uniformBlockIndex UInt32 in value - param uniformBlockBinding UInt32 in value - category ARB_uniform_buffer_object - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - - -############################################################################### -# -# ARB Extension #58 -# ARB_compatibility commands -# -############################################################################### - -# (none) -newcategory: ARB_compatibility - -############################################################################### -# -# ARB Extension #59 -# ARB_copy_buffer commands -# -############################################################################### - -CopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size) - return void - param readTarget GLenum in value - param writeTarget GLenum in value - param readOffset BufferOffset in value - param writeOffset BufferOffset in value - param size BufferSize in value - category ARB_copy_buffer - version 3.0 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #60 -# ARB_shader_texture_lod commands -# -############################################################################### - -# (none) -newcategory: ARB_shader_texture_lod - -############################################################################### -# -# ARB Extension #61 -# ARB_depth_clamp commands -# -############################################################################### - -# (none) -newcategory: ARB_depth_clamp - -############################################################################### -# -# ARB Extension #62 -# ARB_draw_elements_base_vertex commands -# -############################################################################### - -DrawElementsBaseVertex(mode, count, type, indices, basevertex) - return void - param mode GLenum in value - param count SizeI in value - param type DrawElementsType in value - param indices Void in array [COMPSIZE(count/type)] - param basevertex Int32 in value - category ARB_draw_elements_base_vertex - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DrawRangeElementsBaseVertex(mode, start, end, count, type, indices, basevertex) - return void - param mode GLenum in value - param start UInt32 in value - param end UInt32 in value - param count SizeI in value - param type DrawElementsType in value - param indices Void in array [COMPSIZE(count/type)] - param basevertex Int32 in value - category ARB_draw_elements_base_vertex - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DrawElementsInstancedBaseVertex(mode, count, type, indices, primcount, basevertex) - return void - param mode GLenum in value - param count SizeI in value - param type DrawElementsType in value - param indices Void in array [COMPSIZE(count/type)] - param primcount SizeI in value - param basevertex Int32 in value - category ARB_draw_elements_base_vertex - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiDrawElementsBaseVertex(mode, count, type, indices, primcount, basevertex) - return void - param mode GLenum in value - param count SizeI in array [COMPSIZE(primcount)] - param type DrawElementsType in value - param indices VoidPointer in array [COMPSIZE(primcount)] - param primcount SizeI in value - param basevertex Int32 in array [COMPSIZE(primcount)] - category ARB_draw_elements_base_vertex - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #63 -# ARB_fragment_coord_conventions commands -# -############################################################################### - -# (none) -newcategory: ARB_fragment_coord_conventions - -############################################################################### -# -# ARB Extension #64 -# ARB_provoking_vertex commands -# -############################################################################### - -ProvokingVertex(mode) - return void - param mode GLenum in value - category ARB_provoking_vertex - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #65 -# ARB_seamless_cube_map commands -# -############################################################################### - -# (none) -newcategory: ARB_seamless_cube_map - -############################################################################### -# -# ARB Extension #66 -# ARB_sync commands -# -############################################################################### - -FenceSync(condition, flags) - return sync - param condition GLenum in value - param flags GLbitfield in value - category ARB_sync - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -IsSync(sync) - return Boolean - param sync sync in value - category ARB_sync - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DeleteSync(sync) - return void - param sync sync in value - category ARB_sync - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ClientWaitSync(sync, flags, timeout) - return GLenum - param sync sync in value - param flags GLbitfield in value - param timeout UInt64 in value - category ARB_sync - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -WaitSync(sync, flags, timeout) - return void - param sync sync in value - param flags GLbitfield in value - param timeout UInt64 in value - category ARB_sync - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetInteger64v(pname, params) - return void - param pname GLenum in value - param params Int64 out array [COMPSIZE(pname)] - category ARB_sync - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetSynciv(sync, pname, bufSize, length, values) - return void - param sync sync in value - param pname GLenum in value - param bufSize SizeI in value - param length SizeI out array [1] - param values Int32 out array [length] - category ARB_sync - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #67 -# ARB_texture_multisample commands -# -############################################################################### - -TexImage2DMultisample(target, samples, internalformat, width, height, fixedsamplelocations) - return void - param target GLenum in value - param samples SizeI in value - param internalformat Int32 in value - param width SizeI in value - param height SizeI in value - param fixedsamplelocations Boolean in value - category ARB_texture_multisample - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexImage3DMultisample(target, samples, internalformat, width, height, depth, fixedsamplelocations) - return void - param target GLenum in value - param samples SizeI in value - param internalformat Int32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param fixedsamplelocations Boolean in value - category ARB_texture_multisample - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetMultisamplefv(pname, index, val) - return void - param pname GLenum in value - param index UInt32 in value - param val Float32 out array [COMPSIZE(pname)] - category ARB_texture_multisample - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -SampleMaski(index, mask) - return void - param index UInt32 in value - param mask GLbitfield in value - category ARB_texture_multisample - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #68 -# ARB_vertex_array_bgra commands -# -############################################################################### - -# (none) -newcategory: ARB_vertex_array_bgra - -############################################################################### -# -# ARB Extension #69 -# ARB_draw_buffers_blend commands -# -############################################################################### - -BlendEquationiARB(buf, mode) - return void - param buf UInt32 in value - param mode GLenum in value - category ARB_draw_buffers_blend - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - alias BlendEquationi - -BlendEquationSeparateiARB(buf, modeRGB, modeAlpha) - return void - param buf UInt32 in value - param modeRGB GLenum in value - param modeAlpha GLenum in value - category ARB_draw_buffers_blend - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - alias BlendEquationSeparatei - -BlendFunciARB(buf, src, dst) - return void - param buf UInt32 in value - param src GLenum in value - param dst GLenum in value - category ARB_draw_buffers_blend - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - alias BlendFunci - -BlendFuncSeparateiARB(buf, srcRGB, dstRGB, srcAlpha, dstAlpha) - return void - param buf UInt32 in value - param srcRGB GLenum in value - param dstRGB GLenum in value - param srcAlpha GLenum in value - param dstAlpha GLenum in value - category ARB_draw_buffers_blend - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - alias BlendFuncSeparatei - -############################################################################### -# -# ARB Extension #70 -# ARB_sample_shading commands -# -############################################################################### - -MinSampleShadingARB(value) - return void - param value ClampedColorF in value - category ARB_sample_shading - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - alias MinSampleShading - -############################################################################### -# -# ARB Extension #71 -# ARB_texture_cube_map_array commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_cube_map_array - -############################################################################### -# -# ARB Extension #72 -# ARB_texture_gather commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_gather - -############################################################################### -# -# ARB Extension #73 -# ARB_texture_query_lod commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_query_lod - -############################################################################### -# -# ARB Extension #74 - WGL_ARB_create_context_profile -# ARB Extension #75 - GLX_ARB_create_context_profile -# -############################################################################### - -############################################################################### -# -# ARB Extension #76 -# ARB_shading_language_include commands -# -############################################################################### - -NamedStringARB(type, namelen, name, stringlen, string) - return void - param type GLenum in value - param namelen Int32 in value - param name Char in array [namelen] - param stringlen Int32 in value - param string Char in array [stringlen] - category ARB_shading_language_include - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DeleteNamedStringARB(namelen, name) - return void - param namelen Int32 in value - param name Char in array [namelen] - category ARB_shading_language_include - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -CompileShaderIncludeARB(shader, count, path, length) - return void - param shader UInt32 in value - param count SizeI in value - param path CharPointer in array [count] - param length Int32 in array [count] - category ARB_shading_language_include - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -IsNamedStringARB(namelen, name) - return Boolean - param namelen Int32 in value - param name Char in array [namelen] - category ARB_shading_language_include - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetNamedStringARB(namelen, name, bufSize, stringlen, string) - return void - param namelen Int32 in value - param name Char in array [namelen] - param bufSize SizeI in value - param stringlen Int32 out array [1] - param string Char out array [bufSize] - category ARB_shading_language_include - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetNamedStringivARB(namelen, name, pname, params) - return void - param namelen Int32 in value - param name Char in array [namelen] - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category ARB_shading_language_include - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #77 -# ARB_texture_compression_bptc commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_compression_bptc - -############################################################################### -# -# ARB Extension #78 -# ARB_blend_func_extended commands -# -############################################################################### - -BindFragDataLocationIndexed(program, colorNumber, index, name) - return void - param program UInt32 in value - param colorNumber UInt32 in value - param index UInt32 in value - param name Char in array [] - category ARB_blend_func_extended - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetFragDataIndex(program, name) - return Int32 - param program UInt32 in value - param name Char in array [] - category ARB_blend_func_extended - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #79 -# ARB_explicit_attrib_location commands -# -############################################################################### - -# (none) -newcategory: ARB_explicit_attrib_location - -############################################################################### -# -# ARB Extension #80 -# ARB_occlusion_query2 commands -# -############################################################################### - -# (none) -newcategory: ARB_occlusion_query2 - -############################################################################### -# -# ARB Extension #81 -# ARB_sampler_objects commands -# -############################################################################### - -GenSamplers(count, samplers) - return void - param count SizeI in value - param samplers UInt32 out array [count] - category ARB_sampler_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DeleteSamplers(count, samplers) - return void - param count SizeI in value - param samplers UInt32 in array [count] - category ARB_sampler_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -IsSampler(sampler) - return Boolean - param sampler UInt32 in value - category ARB_sampler_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BindSampler(unit, sampler) - return void - param unit UInt32 in value - param sampler UInt32 in value - category ARB_sampler_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SamplerParameteri(sampler, pname, param) - return void - param sampler UInt32 in value - param pname GLenum in value - param param Int32 in value - category ARB_sampler_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SamplerParameteriv(sampler, pname, param) - return void - param sampler UInt32 in value - param pname GLenum in value - param param Int32 in array [COMPSIZE(pname)] - category ARB_sampler_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SamplerParameterf(sampler, pname, param) - return void - param sampler UInt32 in value - param pname GLenum in value - param param Float32 in value - category ARB_sampler_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SamplerParameterfv(sampler, pname, param) - return void - param sampler UInt32 in value - param pname GLenum in value - param param Float32 in array [COMPSIZE(pname)] - category ARB_sampler_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SamplerParameterIiv(sampler, pname, param) - return void - param sampler UInt32 in value - param pname GLenum in value - param param Int32 in array [COMPSIZE(pname)] - category ARB_sampler_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SamplerParameterIuiv(sampler, pname, param) - return void - param sampler UInt32 in value - param pname GLenum in value - param param UInt32 in array [COMPSIZE(pname)] - category ARB_sampler_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetSamplerParameteriv(sampler, pname, params) - return void - param sampler UInt32 in value - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category ARB_sampler_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetSamplerParameterIiv(sampler, pname, params) - return void - param sampler UInt32 in value - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category ARB_sampler_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetSamplerParameterfv(sampler, pname, params) - return void - param sampler UInt32 in value - param pname GLenum in value - param params Float32 out array [COMPSIZE(pname)] - category ARB_sampler_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetSamplerParameterIuiv(sampler, pname, params) - return void - param sampler UInt32 in value - param pname GLenum in value - param params UInt32 out array [COMPSIZE(pname)] - category ARB_sampler_objects - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #82 -# ARB_shader_bit_encoding commands -# -############################################################################### - -# (none) -newcategroy: ARB_shader_bit_encoding - -############################################################################### -# -# ARB Extension #83 -# ARB_texture_rgb10_a2ui commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_rgb10_a2ui - -############################################################################### -# -# ARB Extension #84 -# ARB_texture_swizzle commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_swizzle - -############################################################################### -# -# ARB Extension #85 -# ARB_timer_query commands -# -############################################################################### - -QueryCounter(id, target) - return void - param id UInt32 in value - param target GLenum in value - category ARB_timer_query - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetQueryObjecti64v(id, pname, params) - return void - param id UInt32 in value - param pname GLenum in value - param params Int64 out array [COMPSIZE(pname)] - category ARB_timer_query - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetQueryObjectui64v(id, pname, params) - return void - param id UInt32 in value - param pname GLenum in value - param params UInt64 out array [COMPSIZE(pname)] - category ARB_timer_query - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #86 -# ARB_vertex_type_2_10_10_10_rev commands -# -############################################################################### - -VertexP2ui(type, value) - return void - param type GLenum in value - param value UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexP2uiv(type, value) - return void - param type GLenum in value - param value UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexP3ui(type, value) - return void - param type GLenum in value - param value UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexP3uiv(type, value) - return void - param type GLenum in value - param value UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexP4ui(type, value) - return void - param type GLenum in value - param value UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexP4uiv(type, value) - return void - param type GLenum in value - param value UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoordP1ui(type, coords) - return void - param type GLenum in value - param coords UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoordP1uiv(type, coords) - return void - param type GLenum in value - param coords UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoordP2ui(type, coords) - return void - param type GLenum in value - param coords UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoordP2uiv(type, coords) - return void - param type GLenum in value - param coords UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoordP3ui(type, coords) - return void - param type GLenum in value - param coords UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoordP3uiv(type, coords) - return void - param type GLenum in value - param coords UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoordP4ui(type, coords) - return void - param type GLenum in value - param coords UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoordP4uiv(type, coords) - return void - param type GLenum in value - param coords UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoordP1ui(texture, type, coords) - return void - param texture GLenum in value - param type GLenum in value - param coords UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoordP1uiv(texture, type, coords) - return void - param texture GLenum in value - param type GLenum in value - param coords UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoordP2ui(texture, type, coords) - return void - param texture GLenum in value - param type GLenum in value - param coords UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoordP2uiv(texture, type, coords) - return void - param texture GLenum in value - param type GLenum in value - param coords UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoordP3ui(texture, type, coords) - return void - param texture GLenum in value - param type GLenum in value - param coords UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoordP3uiv(texture, type, coords) - return void - param texture GLenum in value - param type GLenum in value - param coords UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoordP4ui(texture, type, coords) - return void - param texture GLenum in value - param type GLenum in value - param coords UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoordP4uiv(texture, type, coords) - return void - param texture GLenum in value - param type GLenum in value - param coords UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -NormalP3ui(type, coords) - return void - param type GLenum in value - param coords UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -NormalP3uiv(type, coords) - return void - param type GLenum in value - param coords UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ColorP3ui(type, color) - return void - param type GLenum in value - param color UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ColorP3uiv(type, color) - return void - param type GLenum in value - param color UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ColorP4ui(type, color) - return void - param type GLenum in value - param color UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ColorP4uiv(type, color) - return void - param type GLenum in value - param color UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SecondaryColorP3ui(type, color) - return void - param type GLenum in value - param color UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SecondaryColorP3uiv(type, color) - return void - param type GLenum in value - param color UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribP1ui(index, type, normalized, value) - return void - param index UInt32 in value - param type GLenum in value - param normalized Boolean in value - param value UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribP1uiv(index, type, normalized, value) - return void - param index UInt32 in value - param type GLenum in value - param normalized Boolean in value - param value UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribP2ui(index, type, normalized, value) - return void - param index UInt32 in value - param type GLenum in value - param normalized Boolean in value - param value UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribP2uiv(index, type, normalized, value) - return void - param index UInt32 in value - param type GLenum in value - param normalized Boolean in value - param value UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribP3ui(index, type, normalized, value) - return void - param index UInt32 in value - param type GLenum in value - param normalized Boolean in value - param value UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribP3uiv(index, type, normalized, value) - return void - param index UInt32 in value - param type GLenum in value - param normalized Boolean in value - param value UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribP4ui(index, type, normalized, value) - return void - param index UInt32 in value - param type GLenum in value - param normalized Boolean in value - param value UInt32 in value - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribP4uiv(index, type, normalized, value) - return void - param index UInt32 in value - param type GLenum in value - param normalized Boolean in value - param value UInt32 in array [1] - category ARB_vertex_type_2_10_10_10_rev - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #87 -# ARB_draw_indirect commands -# -############################################################################### - -DrawArraysIndirect(mode, indirect) - return void - param mode GLenum in value - param indirect Void in array [] - category ARB_draw_indirect - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DrawElementsIndirect(mode, type, indirect) - return void - param mode GLenum in value - param type GLenum in value - param indirect Void in array [] - category ARB_draw_indirect - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #88 -# ARB_gpu_shader5 commands -# -############################################################################### - -# (none) -newcategory: ARB_gpu_shader5 - -############################################################################### -# -# ARB Extension #89 -# ARB_gpu_shader_fp64 commands -# -############################################################################### - -Uniform1d(location, x) - return void - param location Int32 in value - param x Float64 in value - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform2d(location, x, y) - return void - param location Int32 in value - param x Float64 in value - param y Float64 in value - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform3d(location, x, y, z) - return void - param location Int32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform4d(location, x, y, z, w) - return void - param location Int32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform1dv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform2dv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform3dv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform4dv(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix2dv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix3dv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix4dv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix2x3dv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix2x4dv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix3x2dv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix3x4dv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix4x2dv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -UniformMatrix4x3dv(location, count, transpose, value) - return void - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetUniformdv(program, location, params) - return void - param program UInt32 in value - param location Int32 in value - param params Float64 out array [COMPSIZE(location)] - category ARB_gpu_shader_fp64 - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #90 -# ARB_shader_subroutine commands -# -############################################################################### - -GetSubroutineUniformLocation(program, shadertype, name) - return Int32 - param program UInt32 in value - param shadertype GLenum in value - param name Char in array [] - category ARB_shader_subroutine - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetSubroutineIndex(program, shadertype, name) - return UInt32 - param program UInt32 in value - param shadertype GLenum in value - param name Char in array [] - category ARB_shader_subroutine - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetActiveSubroutineUniformiv(program, shadertype, index, pname, values) - return void - param program UInt32 in value - param shadertype GLenum in value - param index UInt32 in value - param pname GLenum in value - param values Int32 out array [COMPSIZE(pname)] - category ARB_shader_subroutine - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetActiveSubroutineUniformName(program, shadertype, index, bufsize, length, name) - return void - param program UInt32 in value - param shadertype GLenum in value - param index UInt32 in value - param bufsize SizeI in value - param length SizeI out array [1] - param name Char out array [bufsize] - category ARB_shader_subroutine - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetActiveSubroutineName(program, shadertype, index, bufsize, length, name) - return void - param program UInt32 in value - param shadertype GLenum in value - param index UInt32 in value - param bufsize SizeI in value - param length SizeI out array [1] - param name Char out array [bufsize] - category ARB_shader_subroutine - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -UniformSubroutinesuiv(shadertype, count, indices) - return void - param shadertype GLenum in value - param count SizeI in value - param indices UInt32 in array [count] - category ARB_shader_subroutine - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetUniformSubroutineuiv(shadertype, location, params) - return void - param shadertype GLenum in value - param location Int32 in value - param params UInt32 out array [1] - category ARB_shader_subroutine - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetProgramStageiv(program, shadertype, pname, values) - return void - param program UInt32 in value - param shadertype GLenum in value - param pname GLenum in value - param values Int32 out array [1] - category ARB_shader_subroutine - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #91 -# ARB_tessellation_shader commands -# -############################################################################### - -PatchParameteri(pname, value) - return void - param pname GLenum in value - param value Int32 in value - category ARB_tessellation_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -PatchParameterfv(pname, values) - return void - param pname GLenum in value - param values Float32 in array [COMPSIZE(pname)] - category ARB_tessellation_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #92 -# ARB_texture_buffer_object_rgb32 commands -# -############################################################################### - -# (none) -newcategory: ARB_texture_buffer_object_rgb32 - -############################################################################### -# -# ARB Extension #93 -# ARB_transform_feedback2 commands -# -############################################################################### - -BindTransformFeedback(target, id) - return void - param target GLenum in value - param id UInt32 in value - category ARB_transform_feedback2 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DeleteTransformFeedbacks(n, ids) - return void - param n SizeI in value - param ids UInt32 in array [n] - category ARB_transform_feedback2 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GenTransformFeedbacks(n, ids) - return void - param n SizeI in value - param ids UInt32 out array [n] - category ARB_transform_feedback2 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -IsTransformFeedback(id) - return Boolean - param id UInt32 in value - category ARB_transform_feedback2 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -PauseTransformFeedback() - return void - category ARB_transform_feedback2 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ResumeTransformFeedback() - return void - category ARB_transform_feedback2 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DrawTransformFeedback(mode, id) - return void - param mode GLenum in value - param id UInt32 in value - category ARB_transform_feedback2 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #94 -# ARB_transform_feedback3 commands -# -############################################################################### - -DrawTransformFeedbackStream(mode, id, stream) - return void - param mode GLenum in value - param id UInt32 in value - param stream UInt32 in value - category ARB_transform_feedback3 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BeginQueryIndexed(target, index, id) - return void - param target GLenum in value - param index UInt32 in value - param id UInt32 in value - category ARB_transform_feedback3 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -EndQueryIndexed(target, index) - return void - param target GLenum in value - param index UInt32 in value - category ARB_transform_feedback3 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetQueryIndexediv(target, index, pname, params) - return void - param target GLenum in value - param index UInt32 in value - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category ARB_transform_feedback3 - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #95 -# ARB_ES2_compatibility commands -# -############################################################################### - -ReleaseShaderCompiler() - return void - category ARB_ES2_compatibility - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ShaderBinary(count, shaders, binaryformat, binary, length) - return void - param count SizeI in value - param shaders UInt32 in array [count] - param binaryformat GLenum in value - param binary Void in array [length] - param length SizeI in value - category ARB_ES2_compatibility - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -GetShaderPrecisionFormat(shadertype, precisiontype, range, precision) - return void - param shadertype GLenum in value - param precisiontype GLenum in value - param range Int32 out array [2] - param precision Int32 out array [2] - category ARB_ES2_compatibility - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -DepthRangef(n, f) - return void - param n ClampedFloat32 in value - param f ClampedFloat32 in value - category ARB_ES2_compatibility - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ClearDepthf(d) - return void - param d ClampedFloat32 in value - category ARB_ES2_compatibility - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #96 -# ARB_get_program_binary commands -# -############################################################################### - -GetProgramBinary(program, bufSize, length, binaryFormat, binary) - return void - param program UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param binaryFormat GLenum out array [1] - param binary Void out array [COMPSIZE(length)] - category ARB_get_program_binary - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -ProgramBinary(program, binaryFormat, binary, length) - return void - param program UInt32 in value - param binaryFormat GLenum in value - param binary Void in array [length] - param length SizeI in value - category ARB_get_program_binary - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramParameteri(program, pname, value) - return void - param program UInt32 in value - param pname ProgramParameterPName in value - param value Int32 in value - category ARB_get_program_binary - version 3.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - -############################################################################### -# -# ARB Extension #97 -# ARB_separate_shader_objects commands -# -############################################################################### - -UseProgramStages(pipeline, stages, program) - return void - param pipeline UInt32 in value - param stages GLbitfield in value - param program UInt32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ActiveShaderProgram(pipeline, program) - return void - param pipeline UInt32 in value - param program UInt32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -CreateShaderProgramv(type, count, strings) - return UInt32 - param type GLenum in value - param count SizeI in value - param strings CharPointer in array [count] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -BindProgramPipeline(pipeline) - return void - param pipeline UInt32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -DeleteProgramPipelines(n, pipelines) - return void - param n SizeI in value - param pipelines UInt32 in array [n] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -GenProgramPipelines(n, pipelines) - return void - param n SizeI in value - param pipelines UInt32 out array [n] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -IsProgramPipeline(pipeline) - return Boolean - param pipeline UInt32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -#@ ProgramParameteri also in ARB_get_program_binary - -GetProgramPipelineiv(pipeline, pname, params) - return void - param pipeline UInt32 in value - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category ARB_separate_shader_objects - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -ProgramUniform1i(program, location, v0) - return void - param program UInt32 in value - param location Int32 in value - param v0 Int32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform1iv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Int32 in array [1] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform1f(program, location, v0) - return void - param program UInt32 in value - param location Int32 in value - param v0 Float32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform1fv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float32 in array [1] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform1d(program, location, v0) - return void - param program UInt32 in value - param location Int32 in value - param v0 Float64 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform1dv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float64 in array [1] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform1ui(program, location, v0) - return void - param program UInt32 in value - param location Int32 in value - param v0 UInt32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform1uiv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value UInt32 in array [1] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2i(program, location, v0, v1) - return void - param program UInt32 in value - param location Int32 in value - param v0 Int32 in value - param v1 Int32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2iv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Int32 in array [2] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2f(program, location, v0, v1) - return void - param program UInt32 in value - param location Int32 in value - param v0 Float32 in value - param v1 Float32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2fv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float32 in array [2] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2d(program, location, v0, v1) - return void - param program UInt32 in value - param location Int32 in value - param v0 Float64 in value - param v1 Float64 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2dv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float64 in array [2] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2ui(program, location, v0, v1) - return void - param program UInt32 in value - param location Int32 in value - param v0 UInt32 in value - param v1 UInt32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2uiv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value UInt32 in array [2] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3i(program, location, v0, v1, v2) - return void - param program UInt32 in value - param location Int32 in value - param v0 Int32 in value - param v1 Int32 in value - param v2 Int32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3iv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Int32 in array [3] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3f(program, location, v0, v1, v2) - return void - param program UInt32 in value - param location Int32 in value - param v0 Float32 in value - param v1 Float32 in value - param v2 Float32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3fv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float32 in array [3] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3d(program, location, v0, v1, v2) - return void - param program UInt32 in value - param location Int32 in value - param v0 Float64 in value - param v1 Float64 in value - param v2 Float64 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3dv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float64 in array [3] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3ui(program, location, v0, v1, v2) - return void - param program UInt32 in value - param location Int32 in value - param v0 UInt32 in value - param v1 UInt32 in value - param v2 UInt32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3uiv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value UInt32 in array [3] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4i(program, location, v0, v1, v2, v3) - return void - param program UInt32 in value - param location Int32 in value - param v0 Int32 in value - param v1 Int32 in value - param v2 Int32 in value - param v3 Int32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4iv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Int32 in array [4] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4f(program, location, v0, v1, v2, v3) - return void - param program UInt32 in value - param location Int32 in value - param v0 Float32 in value - param v1 Float32 in value - param v2 Float32 in value - param v3 Float32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4fv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float32 in array [4] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4d(program, location, v0, v1, v2, v3) - return void - param program UInt32 in value - param location Int32 in value - param v0 Float64 in value - param v1 Float64 in value - param v2 Float64 in value - param v3 Float64 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4dv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float64 in array [4] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4ui(program, location, v0, v1, v2, v3) - return void - param program UInt32 in value - param location Int32 in value - param v0 UInt32 in value - param v1 UInt32 in value - param v2 UInt32 in value - param v3 UInt32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4uiv(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value UInt32 in array [4] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix2fv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [2] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix3fv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [3] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix4fv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [4] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix2dv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [2] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix3dv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [3] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix4dv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [4] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix2x3fv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix3x2fv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix2x4fv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix4x2fv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix3x4fv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix4x3fv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix2x3dv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix3x2dv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix2x4dv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix4x2dv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix3x4dv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix4x3dv(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ValidateProgramPipeline(pipeline) - return void - param pipeline UInt32 in value - category ARB_separate_shader_objects - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -GetProgramPipelineInfoLog(pipeline, bufSize, length, infoLog) - return void - param pipeline UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param infoLog Char out array [COMPSIZE(length)] - category ARB_separate_shader_objects - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #98 -# ARB_shader_precision commands -# -############################################################################### - -############################################################################### -# -# ARB Extension #99 -# ARB_vertex_attrib_64bit commands -# -############################################################################### - -VertexAttribL1d(index, x) - return void - param index UInt32 in value - param x Float64 in value - category ARB_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL2d(index, x, y) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - category ARB_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL3d(index, x, y, z) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - category ARB_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL4d(index, x, y, z, w) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category ARB_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL1dv(index, v) - return void - param index UInt32 in value - param v Float64 in array [1] - category ARB_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL2dv(index, v) - return void - param index UInt32 in value - param v Float64 in array [2] - category ARB_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL3dv(index, v) - return void - param index UInt32 in value - param v Float64 in array [3] - category ARB_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL4dv(index, v) - return void - param index UInt32 in value - param v Float64 in array [4] - category ARB_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribLPointer(index, size, type, stride, pointer) - return void - param index UInt32 in value - param size Int32 in value - param type GLenum in value - param stride SizeI in value - param pointer Void in array [size] - category ARB_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -GetVertexAttribLdv(index, pname, params) - return void - param index UInt32 in value - param pname GLenum in value - param params Float64 out array [COMPSIZE(pname)] - category ARB_vertex_attrib_64bit - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -#@ VertexArrayVertexAttribLOffsetEXT also in EXT_vertex_attrib_64bit - -############################################################################### -# -# ARB Extension #100 -# ARB_viewport_array commands -# -############################################################################### - -ViewportArrayv(first, count, v) - return void - param first UInt32 in value - param count SizeI in value - param v Float32 in array [COMPSIZE(count)] - category ARB_viewport_array - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ViewportIndexedf(index, x, y, w, h) - return void - param index UInt32 in value - param x Float32 in value - param y Float32 in value - param w Float32 in value - param h Float32 in value - category ARB_viewport_array - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ViewportIndexedfv(index, v) - return void - param index UInt32 in value - param v Float32 in array [4] - category ARB_viewport_array - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ScissorArrayv(first, count, v) - return void - param first UInt32 in value - param count SizeI in value - param v Int32 in array [COMPSIZE(count)] - category ARB_viewport_array - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ScissorIndexed(index, left, bottom, width, height) - return void - param index UInt32 in value - param left Int32 in value - param bottom Int32 in value - param width SizeI in value - param height SizeI in value - category ARB_viewport_array - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ScissorIndexedv(index, v) - return void - param index UInt32 in value - param v Int32 in array [4] - category ARB_viewport_array - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -DepthRangeArrayv(first, count, v) - return void - param first UInt32 in value - param count SizeI in value - param v ClampedFloat64 in array [COMPSIZE(count)] - category ARB_viewport_array - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -DepthRangeIndexed(index, n, f) - return void - param index UInt32 in value - param n ClampedFloat64 in value - param f ClampedFloat64 in value - category ARB_viewport_array - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -GetFloati_v(target, index, data) - return void - param target GLenum in value - param index UInt32 in value - param data Float32 out array [COMPSIZE(target)] - category ARB_viewport_array - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetDoublei_v(target, index, data) - return void - param target GLenum in value - param index UInt32 in value - param data Float64 out array [COMPSIZE(target)] - category ARB_viewport_array - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #101 - GLX_ARB_create_context_robustness -# ARB Extension #102 - WGL_ARB_create_context_robustness -# -############################################################################### - -############################################################################### -# -# ARB Extension #103 -# ARB_cl_event commands -# -############################################################################### - -CreateSyncFromCLeventARB(context, event, flags) - return sync - param context cl_context in value - param event cl_event in value - param flags GLbitfield in value - category ARB_cl_event - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #104 -# ARB_debug_output commands -# -############################################################################### - -DebugMessageControlARB(source, type, severity, count, ids, enabled) - return void - param source GLenum in value - param type GLenum in value - param severity GLenum in value - param count SizeI in value - param ids UInt32 in array [count] - param enabled Boolean in value - category ARB_debug_output - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -DebugMessageInsertARB(source, type, id, severity, length, buf) - return void - param source GLenum in value - param type GLenum in value - param id UInt32 in value - param severity GLenum in value - param length SizeI in value - param buf Char in array [length] - category ARB_debug_output - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -DebugMessageCallbackARB(callback, userParam) - return void - param callback GLDEBUGPROCARB in value - param userParam Void in array [COMPSIZE(callback)] - category ARB_debug_output - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -GetDebugMessageLogARB(count, bufsize, sources, types, ids, severities, lengths, messageLog) - return UInt32 - param count UInt32 in value - param bufsize SizeI in value - param sources GLenum out array [count] - param types GLenum out array [count] - param ids UInt32 out array [count] - param severities GLenum out array [count] - param lengths SizeI out array [count] - param messageLog Char out array [COMPSIZE(lengths)] - category ARB_debug_output - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -#@ GetPointerv is redeclared in this extension - -############################################################################### -# -# ARB Extension #105 -# ARB_robustness commands -# -############################################################################### - -GetGraphicsResetStatusARB() - return GLenum - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnMapdvARB(target, query, bufSize, v) - return void - param target GLenum in value - param query GLenum in value - param bufSize SizeI in value - param v Float64 out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnMapfvARB(target, query, bufSize, v) - return void - param target GLenum in value - param query GLenum in value - param bufSize SizeI in value - param v Float32 out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnMapivARB(target, query, bufSize, v) - return void - param target GLenum in value - param query GLenum in value - param bufSize SizeI in value - param v Int32 out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnPixelMapfvARB(map, bufSize, values) - return void - param map GLenum in value - param bufSize SizeI in value - param values Float32 out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnPixelMapuivARB(map, bufSize, values) - return void - param map GLenum in value - param bufSize SizeI in value - param values UInt32 out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnPixelMapusvARB(map, bufSize, values) - return void - param map GLenum in value - param bufSize SizeI in value - param values UInt16 out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnPolygonStippleARB(bufSize, pattern) - return void - param bufSize SizeI in value - param pattern UInt8 out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnColorTableARB(target, format, type, bufSize, table) - return void - param target GLenum in value - param format GLenum in value - param type GLenum in value - param bufSize SizeI in value - param table Void out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnConvolutionFilterARB(target, format, type, bufSize, image) - return void - param target GLenum in value - param format GLenum in value - param type GLenum in value - param bufSize SizeI in value - param image Void out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnSeparableFilterARB(target, format, type, rowBufSize, row, columnBufSize, column, span) - return void - param target GLenum in value - param format GLenum in value - param type GLenum in value - param rowBufSize SizeI in value - param row Void out array [rowBufSize] - param columnBufSize SizeI in value - param column Void out array [columnBufSize] - param span Void out array [0] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnHistogramARB(target, reset, format, type, bufSize, values) - return void - param target GLenum in value - param reset Boolean in value - param format GLenum in value - param type GLenum in value - param bufSize SizeI in value - param values Void out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnMinmaxARB(target, reset, format, type, bufSize, values) - return void - param target GLenum in value - param reset Boolean in value - param format GLenum in value - param type GLenum in value - param bufSize SizeI in value - param values Void out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnTexImageARB(target, level, format, type, bufSize, img) - return void - param target GLenum in value - param level Int32 in value - param format GLenum in value - param type GLenum in value - param bufSize SizeI in value - param img Void out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -ReadnPixelsARB(x, y, width, height, format, type, bufSize, data) - return void - param x Int32 in value - param y Int32 in value - param width SizeI in value - param height SizeI in value - param format GLenum in value - param type GLenum in value - param bufSize SizeI in value - param data Void out array [bufSize] - category ARB_robustness - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -GetnCompressedTexImageARB(target, lod, bufSize, img) - return void - param target GLenum in value - param lod Int32 in value - param bufSize SizeI in value - param img Void out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnUniformfvARB(program, location, bufSize, params) - return void - param program UInt32 in value - param location Int32 in value - param bufSize SizeI in value - param params Float32 out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnUniformivARB(program, location, bufSize, params) - return void - param program UInt32 in value - param location Int32 in value - param bufSize SizeI in value - param params Int32 out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnUniformuivARB(program, location, bufSize, params) - return void - param program UInt32 in value - param location Int32 in value - param bufSize SizeI in value - param params UInt32 out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetnUniformdvARB(program, location, bufSize, params) - return void - param program UInt32 in value - param location Int32 in value - param bufSize SizeI in value - param params Float64 out array [bufSize] - category ARB_robustness - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# ARB Extension #106 -# ARB_shader_stencil_export commands -# -############################################################################### - -# (none) -newcategory: ARB_shader_stencil_export - - -############################################################################### -############################################################################### -# -# Non-ARB extensions, in order by registry extension number -# -############################################################################### -############################################################################### - -############################################################################### -# -# Extension #1 -# EXT_abgr commands -# -############################################################################### - -# (none) -newcategory: EXT_abgr - -############################################################################### -# -# Extension #2 -# EXT_blend_color commands -# -############################################################################### - -BlendColorEXT(red, green, blue, alpha) - return void - param red ClampedColorF in value - param green ClampedColorF in value - param blue ClampedColorF in value - param alpha ClampedColorF in value - category EXT_blend_color - version 1.0 - glxropcode 4096 - glxflags EXT - extension soft - alias BlendColor - -############################################################################### -# -# Extension #3 -# EXT_polygon_offset commands -# -############################################################################### - -PolygonOffsetEXT(factor, bias) - return void - param factor Float32 in value - param bias Float32 in value - category EXT_polygon_offset - version 1.0 - glxropcode 4098 - glxflags EXT - extension soft - offset 414 - -############################################################################### -# -# Extension #4 -# EXT_texture commands -# -############################################################################### - -# (none) -newcategory: EXT_texture - -############################################################################### -# -# Extension #5 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #6 -# EXT_texture3D commands -# -############################################################################### - -# Arguably TexelInternalFormat, not PixelInternalFormat -TexImage3DEXT(target, level, internalformat, width, height, depth, border, format, type, pixels) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param border CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height/depth)] - category EXT_texture3D - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.0 - glxropcode 4114 - extension - alias TexImage3D - -TexSubImage3DEXT(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param zoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height/depth)] - category EXT_texture3D - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.0 - glxropcode 4115 - extension - alias TexSubImage3D - -############################################################################### -# -# Extension #7 -# SGIS_texture_filter4 commands -# -############################################################################### - -GetTexFilterFuncSGIS(target, filter, weights) - return void - param target TextureTarget in value - param filter TextureFilterSGIS in value - param weights Float32 out array [COMPSIZE(target/filter)] - category SGIS_texture_filter4 - dlflags notlistable - version 1.0 - glxflags SGI - glxvendorpriv 4101 - extension - offset 415 - -TexFilterFuncSGIS(target, filter, n, weights) - return void - param target TextureTarget in value - param filter TextureFilterSGIS in value - param n SizeI in value - param weights Float32 in array [n] - category SGIS_texture_filter4 - glxflags SGI - version 1.0 - glxropcode 2064 - extension - offset 416 - -############################################################################### -# -# Extension #8 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #9 -# EXT_subtexture commands -# -############################################################################### - -TexSubImage1DEXT(target, level, xoffset, width, format, type, pixels) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param width SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width)] - category EXT_subtexture - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.0 - glxropcode 4099 - extension - alias TexSubImage1D - -TexSubImage2DEXT(target, level, xoffset, yoffset, width, height, format, type, pixels) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height)] - category EXT_subtexture - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.0 - glxropcode 4100 - extension - alias TexSubImage2D - -############################################################################### -# -# Extension #10 -# EXT_copy_texture commands -# -############################################################################### - -# Arguably TexelInternalFormat, not PixelInternalFormat -CopyTexImage1DEXT(target, level, internalformat, x, y, width, border) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat PixelInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param border CheckedInt32 in value - category EXT_copy_texture - version 1.0 - glxflags EXT - glxropcode 4119 - extension - alias CopyTexImage1D - -# Arguably TexelInternalFormat, not PixelInternalFormat -CopyTexImage2DEXT(target, level, internalformat, x, y, width, height, border) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat PixelInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - param border CheckedInt32 in value - category EXT_copy_texture - version 1.0 - glxflags EXT - glxropcode 4120 - extension - alias CopyTexImage2D - -CopyTexSubImage1DEXT(target, level, xoffset, x, y, width) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - category EXT_copy_texture - version 1.0 - glxflags EXT - glxropcode 4121 - extension - alias CopyTexSubImage1D - -CopyTexSubImage2DEXT(target, level, xoffset, yoffset, x, y, width, height) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - category EXT_copy_texture - version 1.0 - glxflags EXT - glxropcode 4122 - extension - alias CopyTexSubImage2D - -CopyTexSubImage3DEXT(target, level, xoffset, yoffset, zoffset, x, y, width, height) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param zoffset CheckedInt32 in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - category EXT_copy_texture - version 1.0 - glxflags EXT - glxropcode 4123 - extension - alias CopyTexSubImage3D - -############################################################################### -# -# Extension #11 -# EXT_histogram commands -# -############################################################################### - -GetHistogramEXT(target, reset, format, type, values) - return void - param target HistogramTargetEXT in value - param reset Boolean in value - param format PixelFormat in value - param type PixelType in value - param values Void out array [COMPSIZE(target/format/type)] - category EXT_histogram - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.0 - glxvendorpriv 5 - extension - offset 417 - -GetHistogramParameterfvEXT(target, pname, params) - return void - param target HistogramTargetEXT in value - param pname GetHistogramParameterPNameEXT in value - param params Float32 out array [COMPSIZE(pname)] - category EXT_histogram - dlflags notlistable - version 1.0 - glxvendorpriv 6 - glxflags EXT - extension - offset 418 - -GetHistogramParameterivEXT(target, pname, params) - return void - param target HistogramTargetEXT in value - param pname GetHistogramParameterPNameEXT in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_histogram - dlflags notlistable - version 1.0 - glxvendorpriv 7 - glxflags EXT - extension - offset 419 - -GetMinmaxEXT(target, reset, format, type, values) - return void - param target MinmaxTargetEXT in value - param reset Boolean in value - param format PixelFormat in value - param type PixelType in value - param values Void out array [COMPSIZE(target/format/type)] - category EXT_histogram - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.0 - glxvendorpriv 8 - extension - offset 420 - -GetMinmaxParameterfvEXT(target, pname, params) - return void - param target MinmaxTargetEXT in value - param pname GetMinmaxParameterPNameEXT in value - param params Float32 out array [COMPSIZE(pname)] - category EXT_histogram - dlflags notlistable - version 1.0 - glxvendorpriv 9 - glxflags EXT - extension - offset 421 - -GetMinmaxParameterivEXT(target, pname, params) - return void - param target MinmaxTargetEXT in value - param pname GetMinmaxParameterPNameEXT in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_histogram - dlflags notlistable - version 1.0 - glxvendorpriv 10 - glxflags EXT - extension - offset 422 - -HistogramEXT(target, width, internalformat, sink) - return void - param target HistogramTargetEXT in value - param width SizeI in value - param internalformat PixelInternalFormat in value - param sink Boolean in value - category EXT_histogram - version 1.0 - glxropcode 4110 - glxflags EXT - extension - alias Histogram - -MinmaxEXT(target, internalformat, sink) - return void - param target MinmaxTargetEXT in value - param internalformat PixelInternalFormat in value - param sink Boolean in value - category EXT_histogram - version 1.0 - glxropcode 4111 - glxflags EXT - extension - alias Minmax - -ResetHistogramEXT(target) - return void - param target HistogramTargetEXT in value - category EXT_histogram - version 1.0 - glxropcode 4112 - glxflags EXT - extension - alias ResetHistogram - -ResetMinmaxEXT(target) - return void - param target MinmaxTargetEXT in value - category EXT_histogram - version 1.0 - glxropcode 4113 - glxflags EXT - extension - alias ResetMinmax - -############################################################################### -# -# Extension #12 -# EXT_convolution commands -# -############################################################################### - -ConvolutionFilter1DEXT(target, internalformat, width, format, type, image) - return void - param target ConvolutionTargetEXT in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param format PixelFormat in value - param type PixelType in value - param image Void in array [COMPSIZE(format/type/width)] - category EXT_convolution - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.0 - glxropcode 4101 - extension - alias ConvolutionFilter1D - -ConvolutionFilter2DEXT(target, internalformat, width, height, format, type, image) - return void - param target ConvolutionTargetEXT in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param type PixelType in value - param image Void in array [COMPSIZE(format/type/width/height)] - category EXT_convolution - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.0 - glxropcode 4102 - extension - alias ConvolutionFilter2D - -ConvolutionParameterfEXT(target, pname, params) - return void - param target ConvolutionTargetEXT in value - param pname ConvolutionParameterEXT in value - param params CheckedFloat32 in value - category EXT_convolution - version 1.0 - glxropcode 4103 - glxflags EXT - extension - alias ConvolutionParameterf - -ConvolutionParameterfvEXT(target, pname, params) - return void - param target ConvolutionTargetEXT in value - param pname ConvolutionParameterEXT in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category EXT_convolution - version 1.0 - glxropcode 4104 - glxflags EXT - extension - alias ConvolutionParameterfv - -ConvolutionParameteriEXT(target, pname, params) - return void - param target ConvolutionTargetEXT in value - param pname ConvolutionParameterEXT in value - param params CheckedInt32 in value - category EXT_convolution - version 1.0 - glxropcode 4105 - glxflags EXT - extension - alias ConvolutionParameteri - -ConvolutionParameterivEXT(target, pname, params) - return void - param target ConvolutionTargetEXT in value - param pname ConvolutionParameterEXT in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category EXT_convolution - version 1.0 - glxropcode 4106 - glxflags EXT - extension - alias ConvolutionParameteriv - -CopyConvolutionFilter1DEXT(target, internalformat, x, y, width) - return void - param target ConvolutionTargetEXT in value - param internalformat PixelInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - category EXT_convolution - version 1.0 - glxropcode 4107 - glxflags EXT - extension - alias CopyConvolutionFilter1D - -CopyConvolutionFilter2DEXT(target, internalformat, x, y, width, height) - return void - param target ConvolutionTargetEXT in value - param internalformat PixelInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - category EXT_convolution - version 1.0 - glxropcode 4108 - glxflags EXT - extension - alias CopyConvolutionFilter2D - -GetConvolutionFilterEXT(target, format, type, image) - return void - param target ConvolutionTargetEXT in value - param format PixelFormat in value - param type PixelType in value - param image Void out array [COMPSIZE(target/format/type)] - category EXT_convolution - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.0 - glxvendorpriv 1 - extension - offset 423 - -GetConvolutionParameterfvEXT(target, pname, params) - return void - param target ConvolutionTargetEXT in value - param pname ConvolutionParameterEXT in value - param params Float32 out array [COMPSIZE(pname)] - category EXT_convolution - dlflags notlistable - version 1.0 - glxvendorpriv 2 - glxflags EXT - extension - offset 424 - -GetConvolutionParameterivEXT(target, pname, params) - return void - param target ConvolutionTargetEXT in value - param pname ConvolutionParameterEXT in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_convolution - dlflags notlistable - version 1.0 - glxvendorpriv 3 - glxflags EXT - extension - offset 425 - -GetSeparableFilterEXT(target, format, type, row, column, span) - return void - param target SeparableTargetEXT in value - param format PixelFormat in value - param type PixelType in value - param row Void out array [COMPSIZE(target/format/type)] - param column Void out array [COMPSIZE(target/format/type)] - param span Void out array [COMPSIZE(target/format/type)] - category EXT_convolution - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.0 - glxvendorpriv 4 - extension - offset 426 - -SeparableFilter2DEXT(target, internalformat, width, height, format, type, row, column) - return void - param target SeparableTargetEXT in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param type PixelType in value - param row Void in array [COMPSIZE(target/format/type/width)] - param column Void in array [COMPSIZE(target/format/type/height)] - category EXT_convolution - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.0 - glxropcode 4109 - extension - alias SeparableFilter2D - -############################################################################### -# -# Extension #13 -# SGI_color_matrix commands -# -############################################################################### - -# (none) -newcategory: SGI_color_matrix - -############################################################################### -# -# Extension #14 -# SGI_color_table commands -# -############################################################################### - -ColorTableSGI(target, internalformat, width, format, type, table) - return void - param target ColorTableTargetSGI in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param format PixelFormat in value - param type PixelType in value - param table Void in array [COMPSIZE(format/type/width)] - category SGI_color_table - dlflags handcode - glxflags client-handcode server-handcode SGI - version 1.0 - glxropcode 2053 - extension - alias ColorTable - -ColorTableParameterfvSGI(target, pname, params) - return void - param target ColorTableTargetSGI in value - param pname ColorTableParameterPNameSGI in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category SGI_color_table - version 1.0 - glxropcode 2054 - glxflags SGI - extension - alias ColorTableParameterfv - -ColorTableParameterivSGI(target, pname, params) - return void - param target ColorTableTargetSGI in value - param pname ColorTableParameterPNameSGI in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category SGI_color_table - version 1.0 - glxropcode 2055 - glxflags SGI - extension - alias ColorTableParameteriv - -CopyColorTableSGI(target, internalformat, x, y, width) - return void - param target ColorTableTargetSGI in value - param internalformat PixelInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - category SGI_color_table - version 1.0 - glxropcode 2056 - glxflags SGI - extension - alias CopyColorTable - -GetColorTableSGI(target, format, type, table) - return void - param target ColorTableTargetSGI in value - param format PixelFormat in value - param type PixelType in value - param table Void out array [COMPSIZE(target/format/type)] - category SGI_color_table - dlflags notlistable - glxflags client-handcode server-handcode SGI - version 1.0 - glxvendorpriv 4098 - extension - offset 427 - -GetColorTableParameterfvSGI(target, pname, params) - return void - param target ColorTableTargetSGI in value - param pname GetColorTableParameterPNameSGI in value - param params Float32 out array [COMPSIZE(pname)] - category SGI_color_table - dlflags notlistable - version 1.0 - glxflags SGI - glxvendorpriv 4099 - extension - offset 428 - -GetColorTableParameterivSGI(target, pname, params) - return void - param target ColorTableTargetSGI in value - param pname GetColorTableParameterPNameSGI in value - param params Int32 out array [COMPSIZE(pname)] - category SGI_color_table - dlflags notlistable - version 1.0 - glxflags SGI - glxvendorpriv 4100 - extension - offset 429 - -############################################################################### -# -# Extension #15 -# SGIX_pixel_texture commands -# -############################################################################### - -PixelTexGenSGIX(mode) - return void - param mode PixelTexGenModeSGIX in value - category SGIX_pixel_texture - version 1.0 - glxflags SGI - glxropcode 2059 - extension - offset 430 - -############################################################################### -# -# Extension #15 (variant) -# SGIS_pixel_texture commands -# Both SGIS and SGIX forms have extension #15! -# -############################################################################### - -PixelTexGenParameteriSGIS(pname, param) - return void - param pname PixelTexGenParameterNameSGIS in value - param param CheckedInt32 in value - category SGIS_pixel_texture - version 1.0 - extension - glxropcode ? - glxflags ignore - offset 431 - -PixelTexGenParameterivSGIS(pname, params) - return void - param pname PixelTexGenParameterNameSGIS in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category SGIS_pixel_texture - version 1.0 - extension - glxropcode ? - glxflags ignore - offset 432 - -PixelTexGenParameterfSGIS(pname, param) - return void - param pname PixelTexGenParameterNameSGIS in value - param param CheckedFloat32 in value - category SGIS_pixel_texture - version 1.0 - extension - glxropcode ? - glxflags ignore - offset 433 - -PixelTexGenParameterfvSGIS(pname, params) - return void - param pname PixelTexGenParameterNameSGIS in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category SGIS_pixel_texture - version 1.0 - extension - glxropcode ? - glxflags ignore - offset 434 - -GetPixelTexGenParameterivSGIS(pname, params) - return void - param pname PixelTexGenParameterNameSGIS in value - param params CheckedInt32 out array [COMPSIZE(pname)] - dlflags notlistable - category SGIS_pixel_texture - version 1.0 - extension - glxvendorpriv ? - glxflags ignore - offset 435 - -GetPixelTexGenParameterfvSGIS(pname, params) - return void - param pname PixelTexGenParameterNameSGIS in value - param params CheckedFloat32 out array [COMPSIZE(pname)] - dlflags notlistable - category SGIS_pixel_texture - version 1.0 - extension - glxvendorpriv ? - glxflags ignore - offset 436 - -############################################################################### -# -# Extension #16 -# SGIS_texture4D commands -# -############################################################################### - -TexImage4DSGIS(target, level, internalformat, width, height, depth, size4d, border, format, type, pixels) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param size4d SizeI in value - param border CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height/depth/size4d)] - category SGIS_texture4D - dlflags handcode - glxflags client-handcode server-handcode SGI - version 1.0 - glxropcode 2057 - extension - offset 437 - -TexSubImage4DSGIS(target, level, xoffset, yoffset, zoffset, woffset, width, height, depth, size4d, format, type, pixels) - return void - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param zoffset CheckedInt32 in value - param woffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param size4d SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height/depth/size4d)] - category SGIS_texture4D - dlflags handcode - glxflags client-handcode server-handcode SGI - version 1.0 - glxropcode 2058 - extension - offset 438 - -############################################################################### -# -# Extension #17 -# SGI_texture_color_table commands -# -############################################################################### - -# (none) -newcategory: SGI_texture_color_table - -############################################################################### -# -# Extension #18 -# EXT_cmyka commands -# -############################################################################### - -# (none) -newcategory: EXT_cmyka - -############################################################################### -# -# Extension #19 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #20 -# EXT_texture_object commands -# -############################################################################### - -AreTexturesResidentEXT(n, textures, residences) - return Boolean - param n SizeI in value - param textures Texture in array [n] - param residences Boolean out array [n] - category EXT_texture_object - glxflags EXT - glxvendorpriv 11 - dlflags notlistable - version 1.0 - extension - offset 439 - -BindTextureEXT(target, texture) - return void - param target TextureTarget in value - param texture Texture in value - category EXT_texture_object - version 1.0 - glxflags EXT - glxropcode 4117 - extension - alias BindTexture - -DeleteTexturesEXT(n, textures) - return void - param n SizeI in value - param textures Texture in array [n] - category EXT_texture_object - dlflags notlistable - version 1.0 - glxflags EXT - glxvendorpriv 12 - extension - offset 561 - -GenTexturesEXT(n, textures) - return void - param n SizeI in value - param textures Texture out array [n] - category EXT_texture_object - dlflags notlistable - version 1.0 - glxflags EXT - glxvendorpriv 13 - extension - offset 440 - -IsTextureEXT(texture) - return Boolean - param texture Texture in value - category EXT_texture_object - dlflags notlistable - version 1.0 - glxflags EXT - glxvendorpriv 14 - extension - offset 441 - -PrioritizeTexturesEXT(n, textures, priorities) - return void - param n SizeI in value - param textures Texture in array [n] - param priorities ClampedFloat32 in array [n] - category EXT_texture_object - glxflags EXT - version 1.0 - glxropcode 4118 - extension - alias PrioritizeTextures - -############################################################################### -# -# Extension #21 -# SGIS_detail_texture commands -# -############################################################################### - -DetailTexFuncSGIS(target, n, points) - return void - param target TextureTarget in value - param n SizeI in value - param points Float32 in array [n*2] - category SGIS_detail_texture - glxflags SGI - version 1.0 - glxropcode 2051 - extension - offset 442 - -GetDetailTexFuncSGIS(target, points) - return void - param target TextureTarget in value - param points Float32 out array [COMPSIZE(target)] - category SGIS_detail_texture - dlflags notlistable - version 1.0 - glxflags SGI - glxvendorpriv 4096 - extension - offset 443 - -############################################################################### -# -# Extension #22 -# SGIS_sharpen_texture commands -# -############################################################################### - -SharpenTexFuncSGIS(target, n, points) - return void - param target TextureTarget in value - param n SizeI in value - param points Float32 in array [n*2] - category SGIS_sharpen_texture - glxflags SGI - version 1.0 - glxropcode 2052 - extension - offset 444 - -GetSharpenTexFuncSGIS(target, points) - return void - param target TextureTarget in value - param points Float32 out array [COMPSIZE(target)] - category SGIS_sharpen_texture - dlflags notlistable - version 1.0 - glxflags SGI - glxvendorpriv 4097 - extension - offset 445 - -############################################################################### -# -# EXT_packed_pixels commands -# Extension #23 -# -############################################################################### - -# (none) -newcategory: EXT_packed_pixels - -############################################################################### -# -# Extension #24 -# SGIS_texture_lod commands -# -############################################################################### - -# (none) -newcategory: SGIS_texture_lod - -############################################################################### -# -# Extension #25 -# SGIS_multisample commands -# -############################################################################### - -SampleMaskSGIS(value, invert) - return void - param value ClampedFloat32 in value - param invert Boolean in value - category SGIS_multisample - version 1.1 - glxropcode 2048 - glxflags SGI - extension - alias SampleMaskEXT - -SamplePatternSGIS(pattern) - return void - param pattern SamplePatternSGIS in value - category SGIS_multisample - version 1.0 - glxropcode 2049 - glxflags SGI - extension - alias SamplePatternEXT - -############################################################################### -# -# Extension #26 - no specification? -# -############################################################################### - -############################################################################### -# -# Extension #27 -# EXT_rescale_normal commands -# -############################################################################### - -# (none) -newcategory: EXT_rescale_normal - -############################################################################### -# -# Extension #28 - GLX_EXT_visual_info -# Extension #29 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #30 -# EXT_vertex_array commands -# -############################################################################### - -ArrayElementEXT(i) - return void - param i Int32 in value - category EXT_vertex_array - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.0 - extension - alias ArrayElement - -ColorPointerEXT(size, type, stride, count, pointer) - return void - param size Int32 in value - param type ColorPointerType in value - param stride SizeI in value - param count SizeI in value - param pointer Void in array [COMPSIZE(size/type/stride/count)] retained - category EXT_vertex_array - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.0 - extension - offset 448 - -DrawArraysEXT(mode, first, count) - return void - param mode BeginMode in value - param first Int32 in value - param count SizeI in value - category EXT_vertex_array - dlflags handcode - glxflags client-handcode server-handcode EXT - version 1.0 - glxropcode 4116 - extension - alias DrawArrays - -EdgeFlagPointerEXT(stride, count, pointer) - return void - param stride SizeI in value - param count SizeI in value - param pointer Boolean in array [COMPSIZE(stride/count)] retained - category EXT_vertex_array - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.0 - extension - offset 449 - -GetPointervEXT(pname, params) - return void - param pname GetPointervPName in value - param params VoidPointer out array [1] - category EXT_vertex_array - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.0 - extension - alias GetPointerv - -IndexPointerEXT(type, stride, count, pointer) - return void - param type IndexPointerType in value - param stride SizeI in value - param count SizeI in value - param pointer Void in array [COMPSIZE(type/stride/count)] retained - category EXT_vertex_array - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.0 - extension - offset 450 - -NormalPointerEXT(type, stride, count, pointer) - return void - param type NormalPointerType in value - param stride SizeI in value - param count SizeI in value - param pointer Void in array [COMPSIZE(type/stride/count)] retained - category EXT_vertex_array - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.0 - extension - offset 451 - -TexCoordPointerEXT(size, type, stride, count, pointer) - return void - param size Int32 in value - param type TexCoordPointerType in value - param stride SizeI in value - param count SizeI in value - param pointer Void in array [COMPSIZE(size/type/stride/count)] retained - category EXT_vertex_array - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.0 - extension - offset 452 - -VertexPointerEXT(size, type, stride, count, pointer) - return void - param size Int32 in value - param type VertexPointerType in value - param stride SizeI in value - param count SizeI in value - param pointer Void in array [COMPSIZE(size/type/stride/count)] retained - category EXT_vertex_array - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.0 - extension - offset 453 - -############################################################################### -# -# Extension #31 -# EXT_misc_attribute commands -# -############################################################################### - -# (none) -newcategory: EXT_misc_attribute - -############################################################################### -# -# Extension #32 -# SGIS_generate_mipmap commands -# -############################################################################### - -# (none) -newcategory: SGIS_generate_mipmap - -############################################################################### -# -# Extension #33 -# SGIX_clipmap commands -# -############################################################################### - -# (none) -newcategory: SGIX_clipmap - -############################################################################### -# -# Extension #34 -# SGIX_shadow commands -# -############################################################################### - -# (none) -newcategory: SGIX_shadow - -############################################################################### -# -# Extension #35 -# SGIS_texture_edge_clamp commands -# -############################################################################### - -# (none) -newcategory: SGIS_texture_edge_clamp - -############################################################################### -# -# Extension #36 -# SGIS_texture_border_clamp commands -# -############################################################################### - -# (none) -newcategory: SGIS_texture_border_clamp - -############################################################################### -# -# Extension #37 -# EXT_blend_minmax commands -# -############################################################################### - -BlendEquationEXT(mode) - return void - param mode BlendEquationModeEXT in value - category EXT_blend_minmax - version 1.0 - glxropcode 4097 - glxflags EXT - extension soft - alias BlendEquation - -############################################################################### -# -# Extension #38 -# EXT_blend_subtract commands -# -############################################################################### - -# (none) -newcategory: EXT_blend_subtract - -############################################################################### -# -# Extension #39 -# EXT_blend_logic_op commands -# -############################################################################### - -# (none) -newcategory: EXT_blend_logic_op - -############################################################################### -# -# Extension #40 - GLX_SGI_swap_control -# Extension #41 - GLX_SGI_video_sync -# Extension #42 - GLX_SGI_make_current_read -# Extension #43 - GLX_SGIX_video_source -# Extension #44 - GLX_EXT_visual_rating -# -############################################################################### - -############################################################################### -# -# Extension #45 -# SGIX_interlace commands -# -############################################################################### - -# (none) -newcategory: SGIX_interlace - -############################################################################### -# -# Extension #46 -# SGIX_pixel_tiles commands -# -############################################################################### - -# (none) -newcategory: SGIX_pixel_tiles - -############################################################################### -# -# Extension #47 - GLX_EXT_import_context -# Extension #48 - skipped -# Extension #49 - GLX_SGIX_fbconfig -# Extension #50 - GLX_SGIX_pbuffer -# -############################################################################### - -############################################################################### -# -# Extension #51 -# SGIX_texture_select commands -# -############################################################################### - -# (none) -newcategory: SGIX_texture_select - -############################################################################### -# -# Extension #52 -# SGIX_sprite commands -# -############################################################################### - -SpriteParameterfSGIX(pname, param) - return void - param pname SpriteParameterNameSGIX in value - param param CheckedFloat32 in value - category SGIX_sprite - version 1.0 - glxflags SGI - glxropcode 2060 - extension - offset 454 - -SpriteParameterfvSGIX(pname, params) - return void - param pname SpriteParameterNameSGIX in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category SGIX_sprite - version 1.0 - glxflags SGI - glxropcode 2061 - extension - offset 455 - -SpriteParameteriSGIX(pname, param) - return void - param pname SpriteParameterNameSGIX in value - param param CheckedInt32 in value - category SGIX_sprite - version 1.0 - glxflags SGI - glxropcode 2062 - extension - offset 456 - -SpriteParameterivSGIX(pname, params) - return void - param pname SpriteParameterNameSGIX in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category SGIX_sprite - version 1.0 - glxflags SGI - glxropcode 2063 - extension - offset 457 - -############################################################################### -# -# Extension #53 -# SGIX_texture_multi_buffer commands -# -############################################################################### - -# (none) -newcategory: SGIX_texture_multi_buffer - -############################################################################### -# -# Extension #54 -# EXT_point_parameters / SGIS_point_parameters commands -# -############################################################################### - -PointParameterfEXT(pname, param) - return void - param pname PointParameterNameARB in value - param param CheckedFloat32 in value - category EXT_point_parameters - version 1.0 - glxflags SGI - extension - alias PointParameterfARB - -PointParameterfvEXT(pname, params) - return void - param pname PointParameterNameARB in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category EXT_point_parameters - version 1.0 - glxflags SGI - extension - alias PointParameterfvARB - -PointParameterfSGIS(pname, param) - return void - param pname PointParameterNameARB in value - param param CheckedFloat32 in value - category SGIS_point_parameters - version 1.0 - glxflags SGI - extension - alias PointParameterfARB - -PointParameterfvSGIS(pname, params) - return void - param pname PointParameterNameARB in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category SGIS_point_parameters - version 1.0 - glxflags SGI - extension - alias PointParameterfvARB - -############################################################################### -# -# Extension #55 -# SGIX_instruments commands -# -############################################################################### - -GetInstrumentsSGIX() - return Int32 - dlflags notlistable - category SGIX_instruments - version 1.0 - glxflags SGI - glxvendorpriv 4102 - extension - offset 460 - -InstrumentsBufferSGIX(size, buffer) - return void - param size SizeI in value - param buffer Int32 out array [size] retained - dlflags notlistable - category SGIX_instruments - version 1.0 - glxflags SGI - glxvendorpriv 4103 - extension - offset 461 - -PollInstrumentsSGIX(marker_p) - return Int32 - param marker_p Int32 out array [1] - dlflags notlistable - category SGIX_instruments - version 1.0 - glxflags SGI - glxvendorpriv 4104 - extension - offset 462 - -ReadInstrumentsSGIX(marker) - return void - param marker Int32 in value - category SGIX_instruments - version 1.0 - glxflags SGI - glxropcode 2077 - extension - offset 463 - -StartInstrumentsSGIX() - return void - category SGIX_instruments - version 1.0 - glxflags SGI - glxropcode 2069 - extension - offset 464 - -StopInstrumentsSGIX(marker) - return void - param marker Int32 in value - category SGIX_instruments - version 1.0 - glxflags SGI - glxropcode 2070 - extension - offset 465 - -############################################################################### -# -# Extension #56 -# SGIX_texture_scale_bias commands -# -############################################################################### - -# (none) -newcategory: SGIX_texture_scale_bias - -############################################################################### -# -# Extension #57 -# SGIX_framezoom commands -# -############################################################################### - -FrameZoomSGIX(factor) - return void - param factor CheckedInt32 in value - category SGIX_framezoom - version 1.0 - glxflags SGI - glxropcode 2072 - extension - offset 466 - -############################################################################### -# -# Extension #58 -# SGIX_tag_sample_buffer commands -# -############################################################################### - -TagSampleBufferSGIX() - return void - category SGIX_tag_sample_buffer - version 1.0 - glxropcode 2050 - glxflags SGI - extension - offset 467 - -############################################################################### -# -# Extension #59 -# SGIX_polynomial_ffd commands -# -############################################################################### - -DeformationMap3dSGIX(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, w1, w2, wstride, worder, points) - return void - param target FfdTargetSGIX in value - param u1 CoordD in value - param u2 CoordD in value - param ustride Int32 in value - param uorder CheckedInt32 in value - param v1 CoordD in value - param v2 CoordD in value - param vstride Int32 in value - param vorder CheckedInt32 in value - param w1 CoordD in value - param w2 CoordD in value - param wstride Int32 in value - param worder CheckedInt32 in value - param points CoordD in array [COMPSIZE(target/ustride/uorder/vstride/vorder/wstride/worder)] - dlflags handcode - category SGIX_polynomial_ffd - version 1.0 - glxflags SGI ignore - glxropcode 2073 - extension - offset ? - -DeformationMap3fSGIX(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, w1, w2, wstride, worder, points) - return void - param target FfdTargetSGIX in value - param u1 CoordF in value - param u2 CoordF in value - param ustride Int32 in value - param uorder CheckedInt32 in value - param v1 CoordF in value - param v2 CoordF in value - param vstride Int32 in value - param vorder CheckedInt32 in value - param w1 CoordF in value - param w2 CoordF in value - param wstride Int32 in value - param worder CheckedInt32 in value - param points CoordF in array [COMPSIZE(target/ustride/uorder/vstride/vorder/wstride/worder)] - category SGIX_polynomial_ffd - dlflags handcode - version 1.0 - glxflags SGI ignore - glxropcode 2074 - extension - offset ? - -DeformSGIX(mask) - return void - param mask FfdMaskSGIX in value - category SGIX_polynomial_ffd - version 1.0 - glxflags SGI ignore - glxropcode 2075 - extension - offset ? - -LoadIdentityDeformationMapSGIX(mask) - return void - param mask FfdMaskSGIX in value - category SGIX_polynomial_ffd - version 1.0 - glxflags SGI ignore - glxropcode 2076 - extension - offset ? - -############################################################################### -# -# Extension #60 -# SGIX_reference_plane commands -# -############################################################################### - -ReferencePlaneSGIX(equation) - return void - param equation Float64 in array [4] - category SGIX_reference_plane - version 1.0 - glxflags SGI - glxropcode 2071 - extension - offset 468 - -############################################################################### -# -# Extension #61 -# SGIX_flush_raster commands -# -############################################################################### - -FlushRasterSGIX() - return void - category SGIX_flush_raster - version 1.0 - dlflags notlistable - glxflags SGI - glxvendorpriv 4105 - extension - offset 469 - -############################################################################### -# -# Extension #62 - GLX_SGIX_cushion -# -############################################################################### - -############################################################################### -# -# Extension #63 -# SGIX_depth_texture commands -# -############################################################################### - -# (none) -newcategory: SGIX_depth_texture - -############################################################################### -# -# Extension #64 -# SGIS_fog_function commands -# -############################################################################### - -FogFuncSGIS(n, points) - return void - param n SizeI in value - param points Float32 in array [n*2] - category SGIS_fog_function - version 1.1 - glxflags SGI - glxropcode 2067 - extension - offset - -# Need to insert GLX information -GetFogFuncSGIS(points) - return void - param points Float32 out array [COMPSIZE()] - category SGIS_fog_function - version 1.1 - dlflags notlistable - glxflags ignore - extension - offset - -############################################################################### -# -# Extension #65 -# SGIX_fog_offset commands -# -############################################################################### - -# (none) -newcategory: SGIX_fog_offset - -############################################################################### -# -# Extension #66 -# HP_image_transform commands -# -############################################################################### - -ImageTransformParameteriHP(target, pname, param) - return void - param target ImageTransformTargetHP in value - param pname ImageTransformPNameHP in value - param param Int32 in value - category HP_image_transform - version 1.1 - glxropcode ? - offset ? - -ImageTransformParameterfHP(target, pname, param) - return void - param target ImageTransformTargetHP in value - param pname ImageTransformPNameHP in value - param param Float32 in value - category HP_image_transform - version 1.1 - glxropcode ? - offset ? - -ImageTransformParameterivHP(target, pname, params) - return void - param target ImageTransformTargetHP in value - param pname ImageTransformPNameHP in value - param params Int32 in array [COMPSIZE(pname)] - category HP_image_transform - version 1.1 - glxropcode ? - offset ? - -ImageTransformParameterfvHP(target, pname, params) - return void - param target ImageTransformTargetHP in value - param pname ImageTransformPNameHP in value - param params Float32 in array [COMPSIZE(pname)] - category HP_image_transform - version 1.1 - glxropcode ? - offset ? - -GetImageTransformParameterivHP(target, pname, params) - return void - param target ImageTransformTargetHP in value - param pname ImageTransformPNameHP in value - param params Int32 out array [COMPSIZE(pname)] - dlflags notlistable - category HP_image_transform - version 1.1 - glxropcode ? - offset ? - -GetImageTransformParameterfvHP(target, pname, params) - return void - param target ImageTransformTargetHP in value - param pname ImageTransformPNameHP in value - param params Float32 out array [COMPSIZE(pname)] - category HP_image_transform - version 1.1 - glxropcode ? - offset ? - -############################################################################### -# -# Extension #67 -# HP_convolution_border_modes commands -# -############################################################################### - -# (none) -newcategory: HP_convolution_border_modes - -############################################################################### -# -# Extension #68 -# INGR_palette_buffer commands -# -############################################################################### - -#@ (Intergraph hasn't provided a spec) - -############################################################################### -# -# Extension #69 -# SGIX_texture_add_env commands -# -############################################################################### - -# (none) -newcategory: SGIX_texture_add_env - -############################################################################### -# -# Extension #70 - skipped -# Extension #71 - skipped -# Extension #72 - skipped -# Extension #73 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #74 -# EXT_color_subtable commands -# -# This was probably never actually shipped as an EXT - just written up as a -# reference for OpenGL 1.2 ARB_imaging. -# -############################################################################### - -ColorSubTableEXT(target, start, count, format, type, data) - return void - param target ColorTableTarget in value - param start SizeI in value - param count SizeI in value - param format PixelFormat in value - param type PixelType in value - param data Void in array [COMPSIZE(format/type/count)] - category EXT_color_subtable - version 1.2 - alias ColorSubTable - -CopyColorSubTableEXT(target, start, x, y, width) - return void - param target ColorTableTarget in value - param start SizeI in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - category EXT_color_subtable - version 1.2 - alias CopyColorSubTable - -############################################################################### -# -# Extension #75 - GLU_EXT_object_space_tess -# -############################################################################### - -############################################################################### -# -# Extension #76 -# PGI_vertex_hints commands -# -############################################################################### - -# (none) -newcategory: PGI_vertex_hints - -############################################################################### -# -# Extension #77 -# PGI_misc_hints commands -# -############################################################################### - -HintPGI(target, mode) - return void - param target HintTargetPGI in value - param mode Int32 in value - category PGI_misc_hints - version 1.1 - offset 544 - -############################################################################### -# -# Extension #78 -# EXT_paletted_texture commands -# -############################################################################### - -ColorTableEXT(target, internalFormat, width, format, type, table) - return void - param target ColorTableTarget in value - param internalFormat PixelInternalFormat in value - param width SizeI in value - param format PixelFormat in value - param type PixelType in value - param table Void in array [COMPSIZE(format/type/width)] - category EXT_paletted_texture - version 1.1 - alias ColorTable - -GetColorTableEXT(target, format, type, data) - return void - param target ColorTableTarget in value - param format PixelFormat in value - param type PixelType in value - param data Void out array [COMPSIZE(target/format/type)] - category EXT_paletted_texture - version 1.1 - offset 550 - -GetColorTableParameterivEXT(target, pname, params) - return void - param target ColorTableTarget in value - param pname GetColorTableParameterPName in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_paletted_texture - version 1.1 - offset 551 - -GetColorTableParameterfvEXT(target, pname, params) - return void - param target ColorTableTarget in value - param pname GetColorTableParameterPName in value - param params Float32 out array [COMPSIZE(pname)] - category EXT_paletted_texture - version 1.1 - offset 552 - -############################################################################### -# -# Extension #79 -# EXT_clip_volume_hint commands -# -############################################################################### - -# (none) -newcategory: EXT_clip_volume_hint - -############################################################################### -# -# Extension #80 -# SGIX_list_priority commands -# -############################################################################### - -# @@@ Needs vendorpriv opcodes assigned -GetListParameterfvSGIX(list, pname, params) - return void - param list List in value - param pname ListParameterName in value - param params CheckedFloat32 out array [COMPSIZE(pname)] - dlflags notlistable - glxflags ignore - category SGIX_list_priority - version 1.0 - glxvendorpriv ? - extension - offset 470 - -# @@@ Needs vendorpriv opcodes assigned -GetListParameterivSGIX(list, pname, params) - return void - param list List in value - param pname ListParameterName in value - param params CheckedInt32 out array [COMPSIZE(pname)] - dlflags notlistable - glxflags ignore - category SGIX_list_priority - version 1.0 - glxvendorpriv ? - extension - offset 471 - -ListParameterfSGIX(list, pname, param) - return void - param list List in value - param pname ListParameterName in value - param param CheckedFloat32 in value - dlflags notlistable - glxflags ignore - category SGIX_list_priority - version 1.0 - glxropcode 2078 - extension - offset 472 - -ListParameterfvSGIX(list, pname, params) - return void - param list List in value - param pname ListParameterName in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - dlflags notlistable - glxflags ignore - category SGIX_list_priority - version 1.0 - glxropcode 2079 - extension - offset 473 - -ListParameteriSGIX(list, pname, param) - return void - param list List in value - param pname ListParameterName in value - param param CheckedInt32 in value - dlflags notlistable - glxflags ignore - category SGIX_list_priority - version 1.0 - glxropcode 2080 - extension - offset 474 - -ListParameterivSGIX(list, pname, params) - return void - param list List in value - param pname ListParameterName in value - param params CheckedInt32 in array [COMPSIZE(pname)] - dlflags notlistable - glxflags ignore - category SGIX_list_priority - version 1.0 - glxropcode 2081 - extension - offset 475 - -############################################################################### -# -# Extension #81 -# SGIX_ir_instrument1 commands -# -############################################################################### - -# (none) -newcategory: SGIX_ir_instrument1 - -############################################################################### -# -# Extension #82 -# SGIX_calligraphic_fragment commands -# -############################################################################### - -# (none) -newcategory: SGIX_calligraphic_fragment - -############################################################################### -# -# Extension #83 - GLX_SGIX_video_resize -# -############################################################################### - -############################################################################### -# -# Extension #84 -# SGIX_texture_lod_bias commands -# -############################################################################### - -# (none) -newcategory: SGIX_texture_lod_bias - -############################################################################### -# -# Extension #85 - skipped -# Extension #86 - GLX_SGIX_dmbuffer -# Extension #87 - skipped -# Extension #88 - skipped -# Extension #89 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #90 -# SGIX_shadow_ambient commands -# -############################################################################### - -# (none) -newcategory: SGIX_shadow_ambient - -############################################################################### -# -# Extension #91 - GLX_SGIX_swap_group -# Extension #92 - GLX_SGIX_swap_barrier -# -############################################################################### - -############################################################################### -# -# Extension #93 -# EXT_index_texture commands -# -############################################################################### - -# (none) -newcategory: EXT_index_texture - -############################################################################### -# -# Extension #94 -# EXT_index_material commands -# -############################################################################### - -IndexMaterialEXT(face, mode) - return void - param face MaterialFace in value - param mode IndexMaterialParameterEXT in value - category EXT_index_material - version 1.1 - extension soft - glxflags ignore - offset 538 - -############################################################################### -# -# Extension #95 -# EXT_index_func commands -# -############################################################################### - -IndexFuncEXT(func, ref) - return void - param func IndexFunctionEXT in value - param ref ClampedFloat32 in value - category EXT_index_func - version 1.1 - extension soft - glxflags ignore - offset 539 - -############################################################################### -# -# Extension #96 -# EXT_index_array_formats commands -# -############################################################################### - -# (none) -newcategory: EXT_index_array_formats - -############################################################################### -# -# Extension #97 -# EXT_compiled_vertex_array commands -# -############################################################################### - -LockArraysEXT(first, count) - return void - param first Int32 in value - param count SizeI in value - category EXT_compiled_vertex_array - version 1.1 - dlflags notlistable - extension soft - glxflags ignore - offset 540 - -UnlockArraysEXT() - return void - category EXT_compiled_vertex_array - version 1.1 - dlflags notlistable - extension soft - glxflags ignore - offset 541 - -############################################################################### -# -# Extension #98 -# EXT_cull_vertex commands -# -############################################################################### - -CullParameterdvEXT(pname, params) - return void - param pname CullParameterEXT in value - param params Float64 out array [4] - category EXT_cull_vertex - version 1.1 - dlflags notlistable - extension soft - glxflags ignore - offset 542 - -CullParameterfvEXT(pname, params) - return void - param pname CullParameterEXT in value - param params Float32 out array [4] - category EXT_cull_vertex - version 1.1 - dlflags notlistable - extension soft - glxflags ignore - offset 543 - -############################################################################### -# -# Extension #99 - skipped -# Extension #100 - GLU_EXT_nurbs_tessellator -# -############################################################################### - -############################################################################### -# -# Extension #101 -# SGIX_ycrcb commands -# -############################################################################### - -# (none) -newcategory: SGIX_ycrcb - -############################################################################### -# -# Extension #102 -# SGIX_fragment_lighting commands -# -############################################################################### - -FragmentColorMaterialSGIX(face, mode) - return void - param face MaterialFace in value - param mode MaterialParameter in value - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 476 - -FragmentLightfSGIX(light, pname, param) - return void - param light FragmentLightNameSGIX in value - param pname FragmentLightParameterSGIX in value - param param CheckedFloat32 in value - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 477 - -FragmentLightfvSGIX(light, pname, params) - return void - param light FragmentLightNameSGIX in value - param pname FragmentLightParameterSGIX in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 478 - -FragmentLightiSGIX(light, pname, param) - return void - param light FragmentLightNameSGIX in value - param pname FragmentLightParameterSGIX in value - param param CheckedInt32 in value - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 479 - -FragmentLightivSGIX(light, pname, params) - return void - param light FragmentLightNameSGIX in value - param pname FragmentLightParameterSGIX in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 480 - -FragmentLightModelfSGIX(pname, param) - return void - param pname FragmentLightModelParameterSGIX in value - param param CheckedFloat32 in value - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 481 - -FragmentLightModelfvSGIX(pname, params) - return void - param pname FragmentLightModelParameterSGIX in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 482 - -FragmentLightModeliSGIX(pname, param) - return void - param pname FragmentLightModelParameterSGIX in value - param param CheckedInt32 in value - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 483 - -FragmentLightModelivSGIX(pname, params) - return void - param pname FragmentLightModelParameterSGIX in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 484 - -FragmentMaterialfSGIX(face, pname, param) - return void - param face MaterialFace in value - param pname MaterialParameter in value - param param CheckedFloat32 in value - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 485 - -FragmentMaterialfvSGIX(face, pname, params) - return void - param face MaterialFace in value - param pname MaterialParameter in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 486 - -FragmentMaterialiSGIX(face, pname, param) - return void - param face MaterialFace in value - param pname MaterialParameter in value - param param CheckedInt32 in value - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 487 - -FragmentMaterialivSGIX(face, pname, params) - return void - param face MaterialFace in value - param pname MaterialParameter in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 488 - -GetFragmentLightfvSGIX(light, pname, params) - return void - param light FragmentLightNameSGIX in value - param pname FragmentLightParameterSGIX in value - param params Float32 out array [COMPSIZE(pname)] - category SGIX_fragment_lighting - dlflags notlistable - glxflags ignore - version 1.0 - extension - offset 489 - -GetFragmentLightivSGIX(light, pname, params) - return void - param light FragmentLightNameSGIX in value - param pname FragmentLightParameterSGIX in value - param params Int32 out array [COMPSIZE(pname)] - category SGIX_fragment_lighting - dlflags notlistable - glxflags ignore - version 1.0 - extension - offset 490 - -GetFragmentMaterialfvSGIX(face, pname, params) - return void - param face MaterialFace in value - param pname MaterialParameter in value - param params Float32 out array [COMPSIZE(pname)] - category SGIX_fragment_lighting - dlflags notlistable - glxflags ignore - version 1.0 - extension - offset 491 - -GetFragmentMaterialivSGIX(face, pname, params) - return void - param face MaterialFace in value - param pname MaterialParameter in value - param params Int32 out array [COMPSIZE(pname)] - category SGIX_fragment_lighting - dlflags notlistable - glxflags ignore - version 1.0 - extension - offset 492 - -LightEnviSGIX(pname, param) - return void - param pname LightEnvParameterSGIX in value - param param CheckedInt32 in value - category SGIX_fragment_lighting - glxflags ignore - version 1.0 - extension - offset 493 - -############################################################################### -# -# Extension #103 - skipped -# Extension #104 - skipped -# Extension #105 - skipped -# Extension #106 - skipped -# Extension #107 - skipped -# Extension #108 - skipped -# Extension #109 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #110 -# IBM_rasterpos_clip commands -# -############################################################################### - -# (none) -newcategory: IBM_rasterpos_clip - -############################################################################### -# -# Extension #111 -# HP_texture_lighting commands -# -############################################################################### - -# (none) -newcategory: HP_texture_lighting - -############################################################################### -# -# Extension #112 -# EXT_draw_range_elements commands -# -############################################################################### - -# Spec entries to be written -DrawRangeElementsEXT(mode, start, end, count, type, indices) - return void - param mode BeginMode in value - param start UInt32 in value - param end UInt32 in value - param count SizeI in value - param type DrawElementsType in value - param indices Void in array [COMPSIZE(count/type)] - category EXT_draw_range_elements - dlflags handcode - glxflags client-handcode client-intercept server-handcode - version 1.1 - alias DrawRangeElements - -############################################################################### -# -# Extension #113 -# WIN_phong_shading commands -# -############################################################################### - -# (none) -newcategory: WIN_phong_shading - -############################################################################### -# -# Extension #114 -# WIN_specular_fog commands -# -############################################################################### - -# (none) -newcategory: WIN_specular_fog - -############################################################################### -# -# Extension #115 - skipped -# Extension #116 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #117 -# EXT_light_texture commands -# -############################################################################### - -# Spec entries to be written -ApplyTextureEXT(mode) - return void - param mode LightTextureModeEXT in value - category EXT_light_texture - version 1.1 - glxropcode ? - offset ? - -TextureLightEXT(pname) - return void - param pname LightTexturePNameEXT in value - category EXT_light_texture - version 1.1 - glxropcode ? - offset ? - -TextureMaterialEXT(face, mode) - return void - param face MaterialFace in value - param mode MaterialParameter in value - category EXT_light_texture - version 1.1 - glxropcode ? - offset ? - -############################################################################### -# -# Extension #118 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #119 -# SGIX_blend_alpha_minmax commands -# -############################################################################### - -# (none) -newcategory: SGIX_blend_alpha_minmax - -############################################################################### -# -# Extension #120 - skipped -# Extension #121 - skipped -# Extension #122 - skipped -# Extension #123 - skipped -# Extension #124 - skipped -# Extension #125 - skipped -# Extension #126 - skipped -# Extension #127 - skipped -# Extension #128 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #129 -# EXT_bgra commands -# -############################################################################### - -# (none) -newcategory: EXT_bgra - -############################################################################### -# -# Extension #130 - skipped -# Extension #131 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #132 -# SGIX_async commands -# -############################################################################### - -AsyncMarkerSGIX(marker) - return void - param marker UInt32 in value - category SGIX_async - version 1.0 - glxflags ignore - extension - offset ? - -FinishAsyncSGIX(markerp) - return Int32 - param markerp UInt32 out array [1] - category SGIX_async - version 1.0 - dlflags notlistable - glxflags ignore - extension - offset ? - -PollAsyncSGIX(markerp) - return Int32 - param markerp UInt32 out array [1] - category SGIX_async - version 1.0 - dlflags notlistable - glxflags ignore - extension - offset ? - -GenAsyncMarkersSGIX(range) - return UInt32 - param range SizeI in value - category SGIX_async - version 1.0 - dlflags notlistable - glxflags ignore - extension - offset ? - -DeleteAsyncMarkersSGIX(marker, range) - return void - param marker UInt32 in value - param range SizeI in value - category SGIX_async - version 1.0 - dlflags notlistable - glxflags ignore - extension - offset ? - -IsAsyncMarkerSGIX(marker) - return Boolean - param marker UInt32 in value - category SGIX_async - version 1.0 - dlflags notlistable - glxflags ignore - extension - offset ? - -############################################################################### -# -# Extension #133 -# SGIX_async_pixel commands -# -############################################################################### - -# (none) -newcategory: SGIX_async_pixel - -############################################################################### -# -# Extension #134 -# SGIX_async_histogram commands -# -############################################################################### - -# (none) -newcategory: SGIX_async_histogram - -############################################################################### -# -# Extension #135 - skipped (INTEL_texture_scissor was never implemented) -# -############################################################################### - -############################################################################### -# -# Extension #136 -# INTEL_parallel_arrays commands -# -############################################################################### - -VertexPointervINTEL(size, type, pointer) - return void - param size Int32 in value - param type VertexPointerType in value - param pointer VoidPointer in array [4] retained - category INTEL_parallel_arrays - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.1 - offset ? - -NormalPointervINTEL(type, pointer) - return void - param type NormalPointerType in value - param pointer VoidPointer in array [4] retained - category INTEL_parallel_arrays - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.1 - offset ? - -ColorPointervINTEL(size, type, pointer) - return void - param size Int32 in value - param type VertexPointerType in value - param pointer VoidPointer in array [4] retained - category INTEL_parallel_arrays - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.1 - offset ? - -TexCoordPointervINTEL(size, type, pointer) - return void - param size Int32 in value - param type VertexPointerType in value - param pointer VoidPointer in array [4] retained - category INTEL_parallel_arrays - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.1 - offset ? - - -############################################################################### -# -# Extension #137 -# HP_occlusion_test commands -# -############################################################################### - -# (none) -newcategory: HP_occlusion_test - -############################################################################### -# -# Extension #138 -# EXT_pixel_transform commands -# -############################################################################### - -PixelTransformParameteriEXT(target, pname, param) - return void - param target PixelTransformTargetEXT in value - param pname PixelTransformPNameEXT in value - param param Int32 in value - category EXT_pixel_transform - version 1.1 - glxropcode ? - offset ? - -PixelTransformParameterfEXT(target, pname, param) - return void - param target PixelTransformTargetEXT in value - param pname PixelTransformPNameEXT in value - param param Float32 in value - category EXT_pixel_transform - version 1.1 - glxropcode ? - offset ? - -PixelTransformParameterivEXT(target, pname, params) - return void - param target PixelTransformTargetEXT in value - param pname PixelTransformPNameEXT in value - param params Int32 in array [1] - category EXT_pixel_transform - version 1.1 - glxropcode ? - offset ? - -PixelTransformParameterfvEXT(target, pname, params) - return void - param target PixelTransformTargetEXT in value - param pname PixelTransformPNameEXT in value - param params Float32 in array [1] - category EXT_pixel_transform - version 1.1 - glxropcode ? - offset ? - -############################################################################### -# -# Extension #139 -# EXT_pixel_transform_color_table commands -# -############################################################################### - -# (none) -newcategory: EXT_pixel_transform_color_table - -############################################################################### -# -# Extension #140 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #141 -# EXT_shared_texture_palette commands -# -############################################################################### - -# (none) -newcategory: EXT_shared_texture_palette - -############################################################################### -# -# Extension #142 - GLX_SGIS_blended_overlay -# Extension #143 - GLX_SGIS_shared_multisample -# -############################################################################### - -############################################################################### -# -# Extension #144 -# EXT_separate_specular_color commands -# -############################################################################### - -# (none) -newcategory: EXT_separate_specular_color - -############################################################################### -# -# Extension #145 -# EXT_secondary_color commands -# -############################################################################### - -SecondaryColor3bEXT(red, green, blue) - return void - param red ColorB in value - param green ColorB in value - param blue ColorB in value - category EXT_secondary_color - vectorequiv SecondaryColor3bvEXT - version 1.1 - alias SecondaryColor3b - -SecondaryColor3bvEXT(v) - return void - param v ColorB in array [3] - category EXT_secondary_color - version 1.1 - glxropcode 4126 - alias SecondaryColor3bv - -SecondaryColor3dEXT(red, green, blue) - return void - param red ColorD in value - param green ColorD in value - param blue ColorD in value - category EXT_secondary_color - vectorequiv SecondaryColor3dvEXT - version 1.1 - alias SecondaryColor3d - -SecondaryColor3dvEXT(v) - return void - param v ColorD in array [3] - category EXT_secondary_color - version 1.1 - glxropcode 4130 - alias SecondaryColor3dv - -SecondaryColor3fEXT(red, green, blue) - return void - param red ColorF in value - param green ColorF in value - param blue ColorF in value - category EXT_secondary_color - vectorequiv SecondaryColor3fvEXT - version 1.1 - alias SecondaryColor3f - -SecondaryColor3fvEXT(v) - return void - param v ColorF in array [3] - category EXT_secondary_color - version 1.1 - glxropcode 4129 - alias SecondaryColor3fv - -SecondaryColor3iEXT(red, green, blue) - return void - param red ColorI in value - param green ColorI in value - param blue ColorI in value - category EXT_secondary_color - vectorequiv SecondaryColor3ivEXT - version 1.1 - alias SecondaryColor3i - -SecondaryColor3ivEXT(v) - return void - param v ColorI in array [3] - category EXT_secondary_color - version 1.1 - glxropcode 4128 - offset 568 - alias SecondaryColor3iv - -SecondaryColor3sEXT(red, green, blue) - return void - param red ColorS in value - param green ColorS in value - param blue ColorS in value - category EXT_secondary_color - vectorequiv SecondaryColor3svEXT - version 1.1 - alias SecondaryColor3s - -SecondaryColor3svEXT(v) - return void - param v ColorS in array [3] - category EXT_secondary_color - version 1.1 - glxropcode 4127 - alias SecondaryColor3sv - -SecondaryColor3ubEXT(red, green, blue) - return void - param red ColorUB in value - param green ColorUB in value - param blue ColorUB in value - category EXT_secondary_color - vectorequiv SecondaryColor3ubvEXT - version 1.1 - alias SecondaryColor3ub - -SecondaryColor3ubvEXT(v) - return void - param v ColorUB in array [3] - category EXT_secondary_color - version 1.1 - glxropcode 4131 - alias SecondaryColor3ubv - -SecondaryColor3uiEXT(red, green, blue) - return void - param red ColorUI in value - param green ColorUI in value - param blue ColorUI in value - category EXT_secondary_color - vectorequiv SecondaryColor3uivEXT - version 1.1 - alias SecondaryColor3ui - -SecondaryColor3uivEXT(v) - return void - param v ColorUI in array [3] - category EXT_secondary_color - version 1.1 - glxropcode 4133 - alias SecondaryColor3uiv - -SecondaryColor3usEXT(red, green, blue) - return void - param red ColorUS in value - param green ColorUS in value - param blue ColorUS in value - category EXT_secondary_color - vectorequiv SecondaryColor3usvEXT - version 1.1 - alias SecondaryColor3us - -SecondaryColor3usvEXT(v) - return void - param v ColorUS in array [3] - category EXT_secondary_color - version 1.1 - glxropcode 4132 - alias SecondaryColor3usv - -SecondaryColorPointerEXT(size, type, stride, pointer) - return void - param size Int32 in value - param type ColorPointerType in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(size/type/stride)] retained - category EXT_secondary_color - dlflags notlistable - glxflags client-handcode server-handcode EXT - version 1.1 - extension - alias SecondaryColorPointer - -############################################################################### -# -# Extension #146 -# EXT_texture_env commands -# -############################################################################### - -# Dead extension - never implemented (removed from registry!) -# (none) -# newcategory: EXT_texture_env - -############################################################################### -# -# Extension #147 -# EXT_texture_perturb_normal commands -# -############################################################################### - -TextureNormalEXT(mode) - return void - param mode TextureNormalModeEXT in value - category EXT_texture_perturb_normal - version 1.1 - glxropcode ? - offset ? - -############################################################################### -# -# Extension #148 -# EXT_multi_draw_arrays commands -# -############################################################################### - -# first and count are really 'in' -MultiDrawArraysEXT(mode, first, count, primcount) - return void - param mode BeginMode in value - param first Int32 in array [COMPSIZE(primcount)] - param count SizeI in array [COMPSIZE(primcount)] - param primcount SizeI in value - category EXT_multi_draw_arrays - version 1.1 - glxropcode ? - alias MultiDrawArrays - -MultiDrawElementsEXT(mode, count, type, indices, primcount) - return void - param mode BeginMode in value - param count SizeI in array [COMPSIZE(primcount)] - param type DrawElementsType in value - param indices VoidPointer in array [COMPSIZE(primcount)] - param primcount SizeI in value - category EXT_multi_draw_arrays - version 1.1 - glxropcode ? - alias MultiDrawElements - -############################################################################### -# -# Extension #149 -# EXT_fog_coord commands -# -############################################################################### - -FogCoordfEXT(coord) - return void - param coord CoordF in value - category EXT_fog_coord - vectorequiv FogCoordfvEXT - version 1.1 - alias FogCoordf - -FogCoordfvEXT(coord) - return void - param coord CoordF in array [1] - category EXT_fog_coord - version 1.1 - glxropcode 4124 - alias FogCoordfv - -FogCoorddEXT(coord) - return void - param coord CoordD in value - category EXT_fog_coord - vectorequiv FogCoorddvEXT - version 1.1 - alias FogCoordd - -FogCoorddvEXT(coord) - return void - param coord CoordD in array [1] - category EXT_fog_coord - version 1.1 - glxropcode 4125 - alias FogCoorddv - -FogCoordPointerEXT(type, stride, pointer) - return void - param type FogPointerTypeEXT in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(type/stride)] retained - category EXT_fog_coord - dlflags notlistable - version 1.1 - glxflags client-handcode server-handcode EXT - alias FogCoordPointer - -############################################################################### -# -# Extension #150 - skipped -# Extension #151 - skipped -# Extension #152 - skipped -# Extension #153 - skipped -# Extension #154 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #155 -# REND_screen_coordinates commands -# -############################################################################### - -# (none) -newcategory: REND_screen_coordinates - -############################################################################### -# -# Extension #156 -# EXT_coordinate_frame commands -# -############################################################################### - -Tangent3bEXT(tx, ty, tz) - return void - param tx Int8 in value - param ty Int8 in value - param tz Int8 in value - category EXT_coordinate_frame - vectorequiv Tangent3bvEXT - version 1.1 - offset ? - -Tangent3bvEXT(v) - return void - param v Int8 in array [3] - category EXT_coordinate_frame - version 1.1 - glxropcode ? - offset ? - -Tangent3dEXT(tx, ty, tz) - return void - param tx CoordD in value - param ty CoordD in value - param tz CoordD in value - category EXT_coordinate_frame - vectorequiv Tangent3dvEXT - version 1.1 - offset ? - -Tangent3dvEXT(v) - return void - param v CoordD in array [3] - category EXT_coordinate_frame - version 1.1 - glxropcode ? - offset ? - -Tangent3fEXT(tx, ty, tz) - return void - param tx CoordF in value - param ty CoordF in value - param tz CoordF in value - category EXT_coordinate_frame - vectorequiv Tangent3fvEXT - version 1.1 - offset ? - -Tangent3fvEXT(v) - return void - param v CoordF in array [3] - category EXT_coordinate_frame - version 1.1 - glxropcode ? - offset ? - -Tangent3iEXT(tx, ty, tz) - return void - param tx Int32 in value - param ty Int32 in value - param tz Int32 in value - category EXT_coordinate_frame - vectorequiv Tangent3ivEXT - version 1.1 - offset ? - -Tangent3ivEXT(v) - return void - param v Int32 in array [3] - category EXT_coordinate_frame - version 1.1 - glxropcode ? - offset ? - -Tangent3sEXT(tx, ty, tz) - return void - param tx Int16 in value - param ty Int16 in value - param tz Int16 in value - category EXT_coordinate_frame - vectorequiv Tangent3svEXT - version 1.1 - offset ? - -Tangent3svEXT(v) - return void - param v Int16 in array [3] - category EXT_coordinate_frame - version 1.1 - glxropcode ? - offset ? - -Binormal3bEXT(bx, by, bz) - return void - param bx Int8 in value - param by Int8 in value - param bz Int8 in value - category EXT_coordinate_frame - vectorequiv Binormal3bvEXT - version 1.1 - offset ? - -Binormal3bvEXT(v) - return void - param v Int8 in array [3] - category EXT_coordinate_frame - version 1.1 - glxropcode ? - offset ? - -Binormal3dEXT(bx, by, bz) - return void - param bx CoordD in value - param by CoordD in value - param bz CoordD in value - category EXT_coordinate_frame - vectorequiv Binormal3dvEXT - version 1.1 - offset ? - -Binormal3dvEXT(v) - return void - param v CoordD in array [3] - category EXT_coordinate_frame - version 1.1 - glxropcode ? - offset ? - -Binormal3fEXT(bx, by, bz) - return void - param bx CoordF in value - param by CoordF in value - param bz CoordF in value - category EXT_coordinate_frame - vectorequiv Binormal3fvEXT - version 1.1 - offset ? - -Binormal3fvEXT(v) - return void - param v CoordF in array [3] - category EXT_coordinate_frame - version 1.1 - glxropcode ? - offset ? - -Binormal3iEXT(bx, by, bz) - return void - param bx Int32 in value - param by Int32 in value - param bz Int32 in value - category EXT_coordinate_frame - vectorequiv Binormal3ivEXT - version 1.1 - offset ? - -Binormal3ivEXT(v) - return void - param v Int32 in array [3] - category EXT_coordinate_frame - version 1.1 - glxropcode ? - offset ? - -Binormal3sEXT(bx, by, bz) - return void - param bx Int16 in value - param by Int16 in value - param bz Int16 in value - category EXT_coordinate_frame - vectorequiv Binormal3svEXT - version 1.1 - offset ? - -Binormal3svEXT(v) - return void - param v Int16 in array [3] - category EXT_coordinate_frame - version 1.1 - glxropcode ? - offset ? - -TangentPointerEXT(type, stride, pointer) - return void - param type TangentPointerTypeEXT in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(type/stride)] retained - category EXT_coordinate_frame - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - version 1.1 - offset ? - -BinormalPointerEXT(type, stride, pointer) - return void - param type BinormalPointerTypeEXT in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(type/stride)] retained - category EXT_coordinate_frame - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - version 1.1 - offset ? - -############################################################################### -# -# Extension #157 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #158 -# EXT_texture_env_combine commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_env_combine - -############################################################################### -# -# Extension #159 -# APPLE_specular_vector commands -# -############################################################################### - -# (none) -newcategory: APPLE_specular_vector - -############################################################################### -# -# Extension #160 -# APPLE_transform_hint commands -# -############################################################################### - -# (none) -newcategory: APPLE_transform_hint - -############################################################################### -# -# Extension #161 -# SGIX_fog_scale commands -# -############################################################################### - -# (none) -newcategory: SGIX_fog_scale - -############################################################################### -# -# Extension #162 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #163 -# SUNX_constant_data commands -# -############################################################################### - -FinishTextureSUNX() - return void - category SUNX_constant_data - version 1.1 - glxropcode ? - offset ? - -############################################################################### -# -# Extension #164 -# SUN_global_alpha commands -# -############################################################################### - -GlobalAlphaFactorbSUN(factor) - return void - param factor Int8 in value - category SUN_global_alpha - version 1.1 - glxropcode ? - offset ? - -GlobalAlphaFactorsSUN(factor) - return void - param factor Int16 in value - category SUN_global_alpha - version 1.1 - glxropcode ? - offset ? - -GlobalAlphaFactoriSUN(factor) - return void - param factor Int32 in value - category SUN_global_alpha - version 1.1 - glxropcode ? - offset ? - -GlobalAlphaFactorfSUN(factor) - return void - param factor Float32 in value - category SUN_global_alpha - version 1.1 - glxropcode ? - offset ? - -GlobalAlphaFactordSUN(factor) - return void - param factor Float64 in value - category SUN_global_alpha - version 1.1 - glxropcode ? - offset ? - -GlobalAlphaFactorubSUN(factor) - return void - param factor UInt8 in value - category SUN_global_alpha - version 1.1 - glxropcode ? - offset ? - -GlobalAlphaFactorusSUN(factor) - return void - param factor UInt16 in value - category SUN_global_alpha - version 1.1 - glxropcode ? - offset ? - -GlobalAlphaFactoruiSUN(factor) - return void - param factor UInt32 in value - category SUN_global_alpha - version 1.1 - glxropcode ? - offset ? - -############################################################################### -# -# Extension #165 -# SUN_triangle_list commands -# -############################################################################### - -ReplacementCodeuiSUN(code) - return void - param code UInt32 in value - category SUN_triangle_list - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeusSUN(code) - return void - param code UInt16 in value - category SUN_triangle_list - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeubSUN(code) - return void - param code UInt8 in value - category SUN_triangle_list - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuivSUN(code) - return void - param code UInt32 in array [COMPSIZE()] - category SUN_triangle_list - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeusvSUN(code) - return void - param code UInt16 in array [COMPSIZE()] - category SUN_triangle_list - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeubvSUN(code) - return void - param code UInt8 in array [COMPSIZE()] - category SUN_triangle_list - version 1.1 - glxropcode ? - offset ? - -ReplacementCodePointerSUN(type, stride, pointer) - return void - param type ReplacementCodeTypeSUN in value - param stride SizeI in value - param pointer VoidPointer in array [COMPSIZE(type/stride)] retained - category SUN_triangle_list - version 1.1 - glxropcode ? - offset ? - -############################################################################### -# -# Extension #166 -# SUN_vertex commands -# -############################################################################### - -Color4ubVertex2fSUN(r, g, b, a, x, y) - return void - param r UInt8 in value - param g UInt8 in value - param b UInt8 in value - param a UInt8 in value - param x Float32 in value - param y Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -Color4ubVertex2fvSUN(c, v) - return void - param c UInt8 in array [4] - param v Float32 in array [2] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -Color4ubVertex3fSUN(r, g, b, a, x, y, z) - return void - param r UInt8 in value - param g UInt8 in value - param b UInt8 in value - param a UInt8 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -Color4ubVertex3fvSUN(c, v) - return void - param c UInt8 in array [4] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -Color3fVertex3fSUN(r, g, b, x, y, z) - return void - param r Float32 in value - param g Float32 in value - param b Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -Color3fVertex3fvSUN(c, v) - return void - param c Float32 in array [3] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -Normal3fVertex3fSUN(nx, ny, nz, x, y, z) - return void - param nx Float32 in value - param ny Float32 in value - param nz Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -Normal3fVertex3fvSUN(n, v) - return void - param n Float32 in array [3] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -Color4fNormal3fVertex3fSUN(r, g, b, a, nx, ny, nz, x, y, z) - return void - param r Float32 in value - param g Float32 in value - param b Float32 in value - param a Float32 in value - param nx Float32 in value - param ny Float32 in value - param nz Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -Color4fNormal3fVertex3fvSUN(c, n, v) - return void - param c Float32 in array [4] - param n Float32 in array [3] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord2fVertex3fSUN(s, t, x, y, z) - return void - param s Float32 in value - param t Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord2fVertex3fvSUN(tc, v) - return void - param tc Float32 in array [2] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord4fVertex4fSUN(s, t, p, q, x, y, z, w) - return void - param s Float32 in value - param t Float32 in value - param p Float32 in value - param q Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - param w Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord4fVertex4fvSUN(tc, v) - return void - param tc Float32 in array [4] - param v Float32 in array [4] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord2fColor4ubVertex3fSUN(s, t, r, g, b, a, x, y, z) - return void - param s Float32 in value - param t Float32 in value - param r UInt8 in value - param g UInt8 in value - param b UInt8 in value - param a UInt8 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord2fColor4ubVertex3fvSUN(tc, c, v) - return void - param tc Float32 in array [2] - param c UInt8 in array [4] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord2fColor3fVertex3fSUN(s, t, r, g, b, x, y, z) - return void - param s Float32 in value - param t Float32 in value - param r Float32 in value - param g Float32 in value - param b Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord2fColor3fVertex3fvSUN(tc, c, v) - return void - param tc Float32 in array [2] - param c Float32 in array [3] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord2fNormal3fVertex3fSUN(s, t, nx, ny, nz, x, y, z) - return void - param s Float32 in value - param t Float32 in value - param nx Float32 in value - param ny Float32 in value - param nz Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord2fNormal3fVertex3fvSUN(tc, n, v) - return void - param tc Float32 in array [2] - param n Float32 in array [3] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord2fColor4fNormal3fVertex3fSUN(s, t, r, g, b, a, nx, ny, nz, x, y, z) - return void - param s Float32 in value - param t Float32 in value - param r Float32 in value - param g Float32 in value - param b Float32 in value - param a Float32 in value - param nx Float32 in value - param ny Float32 in value - param nz Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord2fColor4fNormal3fVertex3fvSUN(tc, c, n, v) - return void - param tc Float32 in array [2] - param c Float32 in array [4] - param n Float32 in array [3] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord4fColor4fNormal3fVertex4fSUN(s, t, p, q, r, g, b, a, nx, ny, nz, x, y, z, w) - return void - param s Float32 in value - param t Float32 in value - param p Float32 in value - param q Float32 in value - param r Float32 in value - param g Float32 in value - param b Float32 in value - param a Float32 in value - param nx Float32 in value - param ny Float32 in value - param nz Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - param w Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -TexCoord4fColor4fNormal3fVertex4fvSUN(tc, c, n, v) - return void - param tc Float32 in array [4] - param c Float32 in array [4] - param n Float32 in array [3] - param v Float32 in array [4] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiVertex3fSUN(rc, x, y, z) - return void - param rc ReplacementCodeSUN in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiVertex3fvSUN(rc, v) - return void - param rc ReplacementCodeSUN in array [1] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiColor4ubVertex3fSUN(rc, r, g, b, a, x, y, z) - return void - param rc ReplacementCodeSUN in value - param r UInt8 in value - param g UInt8 in value - param b UInt8 in value - param a UInt8 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiColor4ubVertex3fvSUN(rc, c, v) - return void - param rc ReplacementCodeSUN in array [1] - param c UInt8 in array [4] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiColor3fVertex3fSUN(rc, r, g, b, x, y, z) - return void - param rc ReplacementCodeSUN in value - param r Float32 in value - param g Float32 in value - param b Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiColor3fVertex3fvSUN(rc, c, v) - return void - param rc ReplacementCodeSUN in array [1] - param c Float32 in array [3] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiNormal3fVertex3fSUN(rc, nx, ny, nz, x, y, z) - return void - param rc ReplacementCodeSUN in value - param nx Float32 in value - param ny Float32 in value - param nz Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiNormal3fVertex3fvSUN(rc, n, v) - return void - param rc ReplacementCodeSUN in array [1] - param n Float32 in array [3] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiColor4fNormal3fVertex3fSUN(rc, r, g, b, a, nx, ny, nz, x, y, z) - return void - param rc ReplacementCodeSUN in value - param r Float32 in value - param g Float32 in value - param b Float32 in value - param a Float32 in value - param nx Float32 in value - param ny Float32 in value - param nz Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiColor4fNormal3fVertex3fvSUN(rc, c, n, v) - return void - param rc ReplacementCodeSUN in array [1] - param c Float32 in array [4] - param n Float32 in array [3] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiTexCoord2fVertex3fSUN(rc, s, t, x, y, z) - return void - param rc ReplacementCodeSUN in value - param s Float32 in value - param t Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiTexCoord2fVertex3fvSUN(rc, tc, v) - return void - param rc ReplacementCodeSUN in array [1] - param tc Float32 in array [2] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiTexCoord2fNormal3fVertex3fSUN(rc, s, t, nx, ny, nz, x, y, z) - return void - param rc ReplacementCodeSUN in value - param s Float32 in value - param t Float32 in value - param nx Float32 in value - param ny Float32 in value - param nz Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN(rc, tc, n, v) - return void - param rc ReplacementCodeSUN in array [1] - param tc Float32 in array [2] - param n Float32 in array [3] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN(rc, s, t, r, g, b, a, nx, ny, nz, x, y, z) - return void - param rc ReplacementCodeSUN in value - param s Float32 in value - param t Float32 in value - param r Float32 in value - param g Float32 in value - param b Float32 in value - param a Float32 in value - param nx Float32 in value - param ny Float32 in value - param nz Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -ReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN(rc, tc, c, n, v) - return void - param rc ReplacementCodeSUN in array [1] - param tc Float32 in array [2] - param c Float32 in array [4] - param n Float32 in array [3] - param v Float32 in array [3] - category SUN_vertex - version 1.1 - glxropcode ? - offset ? - -############################################################################### -# -# Extension #167 - WGL_EXT_display_color_table -# Extension #168 - WGL_EXT_extensions_string -# Extension #169 - WGL_EXT_make_current_read -# Extension #170 - WGL_EXT_pixel_format -# Extension #171 - WGL_EXT_pbuffer -# Extension #172 - WGL_EXT_swap_control -# -############################################################################### - -############################################################################### -# -# Extension #173 -# EXT_blend_func_separate commands (also INGR_blend_func_separate) -# -############################################################################### - -BlendFuncSeparateEXT(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha) - return void - param sfactorRGB BlendFuncSeparateParameterEXT in value - param dfactorRGB BlendFuncSeparateParameterEXT in value - param sfactorAlpha BlendFuncSeparateParameterEXT in value - param dfactorAlpha BlendFuncSeparateParameterEXT in value - category EXT_blend_func_separate - glxropcode 4134 - version 1.0 - extension - alias BlendFuncSeparate - -BlendFuncSeparateINGR(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha) - return void - param sfactorRGB BlendFuncSeparateParameterEXT in value - param dfactorRGB BlendFuncSeparateParameterEXT in value - param sfactorAlpha BlendFuncSeparateParameterEXT in value - param dfactorAlpha BlendFuncSeparateParameterEXT in value - category INGR_blend_func_separate - glxropcode 4134 - version 1.0 - extension - alias BlendFuncSeparateEXT - -############################################################################### -# -# Extension #174 -# INGR_color_clamp commands -# -############################################################################### - -# (none) -newcategory: INGR_color_clamp - -############################################################################### -# -# Extension #175 -# INGR_interlace_read commands -# -############################################################################### - -# (none) -newcategory: INGR_interlace_read - -############################################################################### -# -# Extension #176 -# EXT_stencil_wrap commands -# -############################################################################### - -# (none) -newcategory: EXT_stencil_wrap - -############################################################################### -# -# Extension #177 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #178 -# EXT_422_pixels commands -# -############################################################################### - -# (none) -newcategory: EXT_422_pixels - -############################################################################### -# -# Extension #179 -# NV_texgen_reflection commands -# -############################################################################### - -# (none) -newcategory: NV_texgen_reflection - -############################################################################### -# -# Extension #??? -# @ EXT_texture_cube_map commands -# -############################################################################### - -# (none) - -############################################################################### -# -# Extension #180 - skipped -# Extension #181 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #182 -# SUN_convolution_border_modes commands -# -############################################################################### - -# (none) -newcategory: SUN_convolution_border_modes - -############################################################################### -# -# Extension #183 - GLX_SUN_get_transparent_index -# Extension #184 - skipped -# -############################################################################### - -############################################################################### -# -# Extension #185 -# EXT_texture_env_add commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_env_add - -############################################################################### -# -# Extension #186 -# EXT_texture_lod_bias commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_lod_bias - -############################################################################### -# -# Extension #187 -# EXT_texture_filter_anisotropic commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_filter_anisotropic - -############################################################################### -# -# Extension #188 -# EXT_vertex_weighting commands -# -############################################################################### - -# GLX stuff to be written -VertexWeightfEXT(weight) - return void - param weight Float32 in value - category EXT_vertex_weighting - vectorequiv VertexWeightfvEXT - version 1.1 - extension soft WINSOFT NV10 - glxflags ignore - offset 494 - -VertexWeightfvEXT(weight) - return void - param weight Float32 in array [1] - category EXT_vertex_weighting - version 1.1 - extension soft WINSOFT NV10 - glxropcode 4135 - glxflags ignore - offset 495 - -VertexWeightPointerEXT(size, type, stride, pointer) - return void - param size SizeI in value - param type VertexWeightPointerTypeEXT in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(type/stride)] retained - category EXT_vertex_weighting - version 1.1 - extension soft WINSOFT NV10 - dlflags notlistable - glxflags ignore - offset 496 - -############################################################################### -# -# Extension #189 -# NV_light_max_exponent commands -# -############################################################################### - -# (none) -newcategory: NV_light_max_exponent - -############################################################################### -# -# Extension #190 -# NV_vertex_array_range commands -# -############################################################################### - -FlushVertexArrayRangeNV() - return void - category NV_vertex_array_range - version 1.1 - extension soft WINSOFT NV10 - dlflags notlistable - glxflags client-handcode server-handcode ignore - offset 497 - -VertexArrayRangeNV(length, pointer) - return void - param length SizeI in value - param pointer Void in array [COMPSIZE(length)] retained - category NV_vertex_array_range - version 1.1 - extension soft WINSOFT NV10 - dlflags notlistable - glxflags client-handcode server-handcode ignore - offset 498 - -############################################################################### -# -# Extension #191 -# NV_register_combiners commands -# -############################################################################### - -CombinerParameterfvNV(pname, params) - return void - param pname CombinerParameterNV in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category NV_register_combiners - version 1.1 - extension soft WINSOFT NV10 - glxropcode 4137 - glxflags ignore - offset 499 - -CombinerParameterfNV(pname, param) - return void - param pname CombinerParameterNV in value - param param Float32 in value - category NV_register_combiners - version 1.1 - extension soft WINSOFT NV10 - glxropcode 4136 - glxflags ignore - offset 500 - -CombinerParameterivNV(pname, params) - return void - param pname CombinerParameterNV in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category NV_register_combiners - version 1.1 - extension soft WINSOFT NV10 - glxropcode 4139 - glxflags ignore - offset 501 - -CombinerParameteriNV(pname, param) - return void - param pname CombinerParameterNV in value - param param Int32 in value - category NV_register_combiners - version 1.1 - extension soft WINSOFT NV10 - glxropcode 4138 - glxflags ignore - offset 502 - -CombinerInputNV(stage, portion, variable, input, mapping, componentUsage) - return void - param stage CombinerStageNV in value - param portion CombinerPortionNV in value - param variable CombinerVariableNV in value - param input CombinerRegisterNV in value - param mapping CombinerMappingNV in value - param componentUsage CombinerComponentUsageNV in value - category NV_register_combiners - version 1.1 - extension soft WINSOFT NV10 - glxropcode 4140 - glxflags ignore - offset 503 - -CombinerOutputNV(stage, portion, abOutput, cdOutput, sumOutput, scale, bias, abDotProduct, cdDotProduct, muxSum) - return void - param stage CombinerStageNV in value - param portion CombinerPortionNV in value - param abOutput CombinerRegisterNV in value - param cdOutput CombinerRegisterNV in value - param sumOutput CombinerRegisterNV in value - param scale CombinerScaleNV in value - param bias CombinerBiasNV in value - param abDotProduct Boolean in value - param cdDotProduct Boolean in value - param muxSum Boolean in value - category NV_register_combiners - version 1.1 - extension soft WINSOFT NV10 - glxropcode 4141 - glxflags ignore - offset 504 - -FinalCombinerInputNV(variable, input, mapping, componentUsage) - return void - param variable CombinerVariableNV in value - param input CombinerRegisterNV in value - param mapping CombinerMappingNV in value - param componentUsage CombinerComponentUsageNV in value - category NV_register_combiners - version 1.1 - extension soft WINSOFT NV10 - glxropcode 4142 - glxflags ignore - offset 505 - -GetCombinerInputParameterfvNV(stage, portion, variable, pname, params) - return void - param stage CombinerStageNV in value - param portion CombinerPortionNV in value - param variable CombinerVariableNV in value - param pname CombinerParameterNV in value - param params Float32 out array [COMPSIZE(pname)] - dlflags notlistable - category NV_register_combiners - version 1.1 - extension soft WINSOFT NV10 - glxvendorpriv 1270 - glxflags ignore - offset 506 - -GetCombinerInputParameterivNV(stage, portion, variable, pname, params) - return void - param stage CombinerStageNV in value - param portion CombinerPortionNV in value - param variable CombinerVariableNV in value - param pname CombinerParameterNV in value - param params Int32 out array [COMPSIZE(pname)] - dlflags notlistable - category NV_register_combiners - version 1.1 - extension soft WINSOFT NV10 - glxvendorpriv 1271 - glxflags ignore - offset 507 - -GetCombinerOutputParameterfvNV(stage, portion, pname, params) - return void - param stage CombinerStageNV in value - param portion CombinerPortionNV in value - param pname CombinerParameterNV in value - param params Float32 out array [COMPSIZE(pname)] - dlflags notlistable - category NV_register_combiners - version 1.1 - extension soft WINSOFT NV10 - glxvendorpriv 1272 - glxflags ignore - offset 508 - -GetCombinerOutputParameterivNV(stage, portion, pname, params) - return void - param stage CombinerStageNV in value - param portion CombinerPortionNV in value - param pname CombinerParameterNV in value - param params Int32 out array [COMPSIZE(pname)] - dlflags notlistable - category NV_register_combiners - version 1.1 - extension soft WINSOFT NV10 - glxvendorpriv 1273 - glxflags ignore - offset 509 - -GetFinalCombinerInputParameterfvNV(variable, pname, params) - return void - param variable CombinerVariableNV in value - param pname CombinerParameterNV in value - param params Float32 out array [COMPSIZE(pname)] - dlflags notlistable - category NV_register_combiners - version 1.1 - extension soft WINSOFT NV10 - glxvendorpriv 1274 - glxflags ignore - offset 510 - -GetFinalCombinerInputParameterivNV(variable, pname, params) - return void - param variable CombinerVariableNV in value - param pname CombinerParameterNV in value - param params Int32 out array [COMPSIZE(pname)] - dlflags notlistable - category NV_register_combiners - version 1.1 - extension soft WINSOFT NV10 - glxvendorpriv 1275 - glxflags ignore - offset 511 - -############################################################################### -# -# Extension #192 -# NV_fog_distance commands -# -############################################################################### - -# (none) -newcategory: NV_fog_distance - -############################################################################### -# -# Extension #193 -# NV_texgen_emboss commands -# -############################################################################### - -# (none) -newcategory: NV_texgen_emboss - -############################################################################### -# -# Extension #194 -# NV_blend_square commands -# -############################################################################### - -# (none) -newcategory: NV_blend_square - -############################################################################### -# -# Extension #195 -# NV_texture_env_combine4 commands -# -############################################################################### - -# (none) -newcategory: NV_texture_env_combine4 - -############################################################################### -# -# Extension #196 -# MESA_resize_buffers commands -# -############################################################################### - -ResizeBuffersMESA() - return void - category MESA_resize_buffers - version 1.0 - glxropcode ? - offset 512 - -############################################################################### -# -# Extension #197 -# MESA_window_pos commands -# -# Note that the 2- and 3-component versions are now aliases of ARB -# entry points. -# -############################################################################### - -WindowPos2dMESA(x, y) - return void - param x CoordD in value - param y CoordD in value - category MESA_window_pos - vectorequiv WindowPos2dvMESA - version 1.0 - alias WindowPos2dARB - -WindowPos2dvMESA(v) - return void - param v CoordD in array [2] - category MESA_window_pos - version 1.0 - glxropcode ? - alias WindowPos2dvARB - -WindowPos2fMESA(x, y) - return void - param x CoordF in value - param y CoordF in value - category MESA_window_pos - vectorequiv WindowPos2fvMESA - version 1.0 - alias WindowPos2fARB - -WindowPos2fvMESA(v) - return void - param v CoordF in array [2] - category MESA_window_pos - version 1.0 - glxropcode ? - alias WindowPos2fvARB - -WindowPos2iMESA(x, y) - return void - param x CoordI in value - param y CoordI in value - category MESA_window_pos - vectorequiv WindowPos2ivMESA - version 1.0 - alias WindowPos2iARB - -WindowPos2ivMESA(v) - return void - param v CoordI in array [2] - category MESA_window_pos - version 1.0 - glxropcode ? - alias WindowPos2ivARB - -WindowPos2sMESA(x, y) - return void - param x CoordS in value - param y CoordS in value - category MESA_window_pos - vectorequiv WindowPos2svMESA - version 1.0 - alias WindowPos2sARB - -WindowPos2svMESA(v) - return void - param v CoordS in array [2] - category MESA_window_pos - version 1.0 - glxropcode ? - alias WindowPos2svARB - -WindowPos3dMESA(x, y, z) - return void - param x CoordD in value - param y CoordD in value - param z CoordD in value - vectorequiv WindowPos3dvMESA - category MESA_window_pos - version 1.0 - alias WindowPos3dARB - -WindowPos3dvMESA(v) - return void - param v CoordD in array [3] - category MESA_window_pos - version 1.0 - glxropcode ? - alias WindowPos3dvARB - -WindowPos3fMESA(x, y, z) - return void - param x CoordF in value - param y CoordF in value - param z CoordF in value - category MESA_window_pos - vectorequiv WindowPos3fvMESA - version 1.0 - alias WindowPos3fARB - -WindowPos3fvMESA(v) - return void - param v CoordF in array [3] - category MESA_window_pos - version 1.0 - glxropcode ? - alias WindowPos3fvARB - -WindowPos3iMESA(x, y, z) - return void - param x CoordI in value - param y CoordI in value - param z CoordI in value - category MESA_window_pos - vectorequiv WindowPos3ivMESA - version 1.0 - alias WindowPos3iARB - -WindowPos3ivMESA(v) - return void - param v CoordI in array [3] - category MESA_window_pos - version 1.0 - glxropcode ? - alias WindowPos3ivARB - -WindowPos3sMESA(x, y, z) - return void - param x CoordS in value - param y CoordS in value - param z CoordS in value - category MESA_window_pos - vectorequiv WindowPos3svMESA - version 1.0 - alias WindowPos3sARB - -WindowPos3svMESA(v) - return void - param v CoordS in array [3] - category MESA_window_pos - version 1.0 - glxropcode ? - alias WindowPos3svARB - -WindowPos4dMESA(x, y, z, w) - return void - param x CoordD in value - param y CoordD in value - param z CoordD in value - param w CoordD in value - vectorequiv WindowPos4dvMESA - category MESA_window_pos - version 1.0 - offset 529 - -WindowPos4dvMESA(v) - return void - param v CoordD in array [4] - category MESA_window_pos - version 1.0 - glxropcode ? - offset 530 - -WindowPos4fMESA(x, y, z, w) - return void - param x CoordF in value - param y CoordF in value - param z CoordF in value - param w CoordF in value - category MESA_window_pos - vectorequiv WindowPos4fvMESA - version 1.0 - offset 531 - -WindowPos4fvMESA(v) - return void - param v CoordF in array [4] - category MESA_window_pos - version 1.0 - glxropcode ? - offset 532 - -WindowPos4iMESA(x, y, z, w) - return void - param x CoordI in value - param y CoordI in value - param z CoordI in value - param w CoordI in value - category MESA_window_pos - vectorequiv WindowPos4ivMESA - version 1.0 - offset 533 - -WindowPos4ivMESA(v) - return void - param v CoordI in array [4] - category MESA_window_pos - version 1.0 - glxropcode ? - offset 534 - -WindowPos4sMESA(x, y, z, w) - return void - param x CoordS in value - param y CoordS in value - param z CoordS in value - param w CoordS in value - category MESA_window_pos - vectorequiv WindowPos4svMESA - version 1.0 - offset 535 - -WindowPos4svMESA(v) - return void - param v CoordS in array [4] - category MESA_window_pos - version 1.0 - glxropcode ? - offset 536 - -############################################################################### -# -# Extension #198 -# EXT_texture_compression_s3tc commands -# -############################################################################### - -#@@ (none yet) - -############################################################################### -# -# Extension #199 -# IBM_cull_vertex commands -# -############################################################################### - -# (none) -newcategory: IBM_cull_vertex - -############################################################################### -# -# Extension #200 -# IBM_multimode_draw_arrays commands -# -############################################################################### - -MultiModeDrawArraysIBM(mode, first, count, primcount, modestride) - return void - param mode BeginMode in array [COMPSIZE(primcount)] - param first Int32 in array [COMPSIZE(primcount)] - param count SizeI in array [COMPSIZE(primcount)] - param primcount SizeI in value - param modestride Int32 in value - category IBM_multimode_draw_arrays - version 1.1 - glxropcode ? - offset 708 - - -MultiModeDrawElementsIBM(mode, count, type, indices, primcount, modestride) - return void - param mode BeginMode in array [COMPSIZE(primcount)] - param count SizeI in array [COMPSIZE(primcount)] - param type DrawElementsType in value - param indices ConstVoidPointer in array [COMPSIZE(primcount)] - param primcount SizeI in value - param modestride Int32 in value - category IBM_multimode_draw_arrays - version 1.1 - glxropcode ? - offset 709 - -############################################################################### -# -# Extension #201 -# IBM_vertex_array_lists commands -# -############################################################################### - -ColorPointerListIBM(size, type, stride, pointer, ptrstride) - return void - param size Int32 in value - param type ColorPointerType in value - param stride Int32 in value - param pointer VoidPointer in array [COMPSIZE(size/type/stride)] retained - param ptrstride Int32 in value - category IBM_vertex_array_lists - version 1.1 - glxropcode ? - offset ? - -SecondaryColorPointerListIBM(size, type, stride, pointer, ptrstride) - return void - param size Int32 in value - param type SecondaryColorPointerTypeIBM in value - param stride Int32 in value - param pointer VoidPointer in array [COMPSIZE(size/type/stride)] retained - param ptrstride Int32 in value - category IBM_vertex_array_lists - version 1.1 - glxropcode ? - offset ? - -EdgeFlagPointerListIBM(stride, pointer, ptrstride) - return void - param stride Int32 in value - param pointer BooleanPointer in array [COMPSIZE(stride)] retained - param ptrstride Int32 in value - category IBM_vertex_array_lists - version 1.1 - glxropcode ? - offset ? - -FogCoordPointerListIBM(type, stride, pointer, ptrstride) - return void - param type FogPointerTypeIBM in value - param stride Int32 in value - param pointer VoidPointer in array [COMPSIZE(type/stride)] retained - param ptrstride Int32 in value - category IBM_vertex_array_lists - version 1.1 - glxropcode ? - offset ? - -IndexPointerListIBM(type, stride, pointer, ptrstride) - return void - param type IndexPointerType in value - param stride Int32 in value - param pointer VoidPointer in array [COMPSIZE(type/stride)] retained - param ptrstride Int32 in value - category IBM_vertex_array_lists - version 1.1 - glxropcode ? - offset ? - -NormalPointerListIBM(type, stride, pointer, ptrstride) - return void - param type NormalPointerType in value - param stride Int32 in value - param pointer VoidPointer in array [COMPSIZE(type/stride)] retained - param ptrstride Int32 in value - category IBM_vertex_array_lists - version 1.1 - glxropcode ? - offset ? - -TexCoordPointerListIBM(size, type, stride, pointer, ptrstride) - return void - param size Int32 in value - param type TexCoordPointerType in value - param stride Int32 in value - param pointer VoidPointer in array [COMPSIZE(size/type/stride)] retained - param ptrstride Int32 in value - category IBM_vertex_array_lists - version 1.1 - glxropcode ? - offset ? - -VertexPointerListIBM(size, type, stride, pointer, ptrstride) - return void - param size Int32 in value - param type VertexPointerType in value - param stride Int32 in value - param pointer VoidPointer in array [COMPSIZE(size/type/stride)] retained - param ptrstride Int32 in value - category IBM_vertex_array_lists - version 1.1 - glxropcode ? - offset ? - -############################################################################### -# -# Extension #202 -# SGIX_subsample commands -# -############################################################################### - -# (none) -newcategory: SGIX_subsample - -############################################################################### -# -# Extension #203 -# SGIX_ycrcba commands -# -############################################################################### - -# (none) -newcategory: SGIX_ycrcba - -############################################################################### -# -# Extension #204 -# SGIX_ycrcb_subsample commands -# -############################################################################### - -# (none) -newcategory: SGIX_ycrcb_subsample - -############################################################################### -# -# Extension #205 -# SGIX_depth_pass_instrument commands -# -############################################################################### - -# (none) -newcategory: SGIX_depth_pass_instrument - -############################################################################### -# -# Extension #206 -# 3DFX_texture_compression_FXT1 commands -# -############################################################################### - -# (none) -newcategory: 3DFX_texture_compression_FXT1 - -############################################################################### -# -# Extension #207 -# 3DFX_multisample commands -# -############################################################################### - -# (none) -newcategory: 3DFX_multisample - -############################################################################### -# -# Extension #208 -# 3DFX_tbuffer commands -# -############################################################################### - -TbufferMask3DFX(mask) - return void - param mask UInt32 in value - category 3DFX_tbuffer - version 1.2 - glxropcode ? - offset 553 - -############################################################################### -# -# Extension #209 -# EXT_multisample commands -# -############################################################################### - -SampleMaskEXT(value, invert) - return void - param value ClampedFloat32 in value - param invert Boolean in value - category EXT_multisample - version 1.0 - glxropcode ? - extension - offset 446 - -SamplePatternEXT(pattern) - return void - param pattern SamplePatternEXT in value - category EXT_multisample - version 1.0 - glxropcode ? - glxflags - extension - offset 447 - -############################################################################### -# -# Extension #210 -# SGIX_vertex_preclip commands -# -############################################################################### - -# (none) -newcategory: SGIX_vertex_preclip - -############################################################################### -# -# Extension #211 -# SGIX_convolution_accuracy commands -# -############################################################################### - -# (none) -newcategory: SGIX_convolution_accuracy - -############################################################################### -# -# Extension #212 -# SGIX_resample commands -# -############################################################################### - -# (none) -newcategory: SGIX_resample - -############################################################################### -# -# Extension #213 -# SGIS_point_line_texgen commands -# -############################################################################### - -# (none) -newcategory: SGIS_point_line_texgen - -############################################################################### -# -# Extension #214 -# SGIS_texture_color_mask commands -# -############################################################################### - -TextureColorMaskSGIS(red, green, blue, alpha) - return void - param red Boolean in value - param green Boolean in value - param blue Boolean in value - param alpha Boolean in value - category SGIS_texture_color_mask - version 1.1 - glxropcode 2082 - extension - offset ? - -############################################################################### -# -# Extension #215 - GLX_MESA_copy_sub_buffer -# Extension #216 - GLX_MESA_pixmap_colormap -# Extension #217 - GLX_MESA_release_buffers -# Extension #218 - GLX_MESA_set_3dfx_mode -# -############################################################################### - -############################################################################### -# -# Extension #219 -# SGIX_igloo_interface commands -# -############################################################################### - -IglooInterfaceSGIX(pname, params) - return void - dlflags notlistable - param pname IglooFunctionSelectSGIX in value - param params IglooParameterSGIX in array [COMPSIZE(pname)] - category SGIX_igloo_interface - version 1.0 - glxflags SGI ignore - extension - glxropcode 200 - offset ? - -############################################################################### -# -# Extension #220 -# EXT_texture_env_dot3 commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_env_dot3 - -############################################################################### -# -# Extension #221 -# ATI_texture_mirror_once commands -# -############################################################################### -# (none) -newcategory: ATI_texture_mirror_once - -############################################################################### -# -# Extension #222 -# NV_fence commands -# -############################################################################### - -DeleteFencesNV(n, fences) - return void - param n SizeI in value - param fences FenceNV in array [n] - category NV_fence - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxvendorpriv 1276 - glxflags ignore - offset 647 - -GenFencesNV(n, fences) - return void - param n SizeI in value - param fences FenceNV out array [n] - category NV_fence - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxvendorpriv 1277 - glxflags ignore - offset 648 - -IsFenceNV(fence) - return Boolean - param fence FenceNV in value - category NV_fence - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxvendorpriv 1278 - glxflags ignore - offset 649 - -TestFenceNV(fence) - return Boolean - param fence FenceNV in value - category NV_fence - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxvendorpriv 1279 - glxflags ignore - offset 650 - -GetFenceivNV(fence, pname, params) - return void - param fence FenceNV in value - param pname FenceParameterNameNV in value - param params Int32 out array [COMPSIZE(pname)] - category NV_fence - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxvendorpriv 1280 - glxflags ignore - offset 651 - -FinishFenceNV(fence) - return void - param fence FenceNV in value - category NV_fence - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxvendorpriv 1312 - glxflags ignore - offset 652 - -SetFenceNV(fence, condition) - return void - param fence FenceNV in value - param condition FenceConditionNV in value - category NV_fence - version 1.2 - extension soft WINSOFT NV10 - glxflags ignore - offset 653 - -############################################################################### -# -# Extension #225 -# NV_evaluators commands -# -############################################################################### - -MapControlPointsNV(target, index, type, ustride, vstride, uorder, vorder, packed, points) - return void - param target EvalTargetNV in value - param index UInt32 in value - param type MapTypeNV in value - param ustride SizeI in value - param vstride SizeI in value - param uorder CheckedInt32 in value - param vorder CheckedInt32 in value - param packed Boolean in value - param points Void in array [COMPSIZE(target/uorder/vorder)] - category NV_evaluators - dlflags handcode - version 1.1 - extension soft WINSOFT NV10 - glxflags ignore - offset ? - -MapParameterivNV(target, pname, params) - return void - param target EvalTargetNV in value - param pname MapParameterNV in value - param params CheckedInt32 in array [COMPSIZE(target/pname)] - category NV_evaluators - version 1.1 - extension soft WINSOFT NV10 - glxflags ignore - offset ? - -MapParameterfvNV(target, pname, params) - return void - param target EvalTargetNV in value - param pname MapParameterNV in value - param params CheckedFloat32 in array [COMPSIZE(target/pname)] - category NV_evaluators - version 1.1 - extension soft WINSOFT NV10 - glxflags ignore - offset ? - -GetMapControlPointsNV(target, index, type, ustride, vstride, packed, points) - return void - param target EvalTargetNV in value - param index UInt32 in value - param type MapTypeNV in value - param ustride SizeI in value - param vstride SizeI in value - param packed Boolean in value - param points Void out array [COMPSIZE(target)] - category NV_evaluators - dlflags notlistable - version 1.1 - extension soft WINSOFT NV10 - glxflags ignore - offset ? - -GetMapParameterivNV(target, pname, params) - return void - param target EvalTargetNV in value - param pname MapParameterNV in value - param params Int32 out array [COMPSIZE(target/pname)] - category NV_evaluators - dlflags notlistable - version 1.1 - extension soft WINSOFT NV10 - glxflags ignore - offset ? - -GetMapParameterfvNV(target, pname, params) - return void - param target EvalTargetNV in value - param pname MapParameterNV in value - param params Float32 out array [COMPSIZE(target/pname)] - category NV_evaluators - dlflags notlistable - version 1.1 - extension soft WINSOFT NV10 - glxflags ignore - offset ? - -GetMapAttribParameterivNV(target, index, pname, params) - return void - param target EvalTargetNV in value - param index UInt32 in value - param pname MapAttribParameterNV in value - param params Int32 out array [COMPSIZE(pname)] - category NV_evaluators - dlflags notlistable - version 1.1 - extension soft WINSOFT NV10 - glxflags ignore - offset ? - -GetMapAttribParameterfvNV(target, index, pname, params) - return void - param target EvalTargetNV in value - param index UInt32 in value - param pname MapAttribParameterNV in value - param params Float32 out array [COMPSIZE(pname)] - category NV_evaluators - dlflags notlistable - version 1.1 - extension soft WINSOFT NV10 - glxflags ignore - offset ? - -EvalMapsNV(target, mode) - return void - param target EvalTargetNV in value - param mode EvalMapsModeNV in value - category NV_evaluators - version 1.1 - extension soft WINSOFT NV10 - glxflags ignore - offset ? - -############################################################################### -# -# Extension #226 -# NV_packed_depth_stencil commands -# -############################################################################### - -# (none) -newcategory: NV_packed_depth_stencil - -############################################################################### -# -# Extension #227 -# NV_register_combiners2 commands -# -############################################################################### - -CombinerStageParameterfvNV(stage, pname, params) - return void - param stage CombinerStageNV in value - param pname CombinerParameterNV in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category NV_register_combiners2 - version 1.1 - extension - glxflags ignore - offset ? - -GetCombinerStageParameterfvNV(stage, pname, params) - return void - param stage CombinerStageNV in value - param pname CombinerParameterNV in value - param params Float32 out array [COMPSIZE(pname)] - dlflags notlistable - category NV_register_combiners2 - version 1.1 - extension - glxflags ignore - offset ? - -############################################################################### -# -# Extension #228 -# NV_texture_compression_vtc commands -# -############################################################################### - -# (none) -newcategory: NV_texture_compression_vtc - -############################################################################### -# -# Extension #229 -# NV_texture_rectangle commands -# -############################################################################### - -# (none) -newcategory: NV_texture_rectangle - -############################################################################### -# -# Extension #230 -# NV_texture_shader commands -# -############################################################################### - -# (none) -newcategory: NV_texture_shader - -############################################################################### -# -# Extension #231 -# NV_texture_shader2 commands -# -############################################################################### - -# (none) -newcategory: NV_texture_shader2 - -############################################################################### -# -# Extension #232 -# NV_vertex_array_range2 commands -# -############################################################################### - -# (none) -newcategory: NV_vertex_array_range2 - -############################################################################### -# -# Extension #233 -# NV_vertex_program commands -# -############################################################################### - -AreProgramsResidentNV(n, programs, residences) - return Boolean - param n SizeI in value - param programs UInt32 in array [n] - param residences Boolean out array [n] - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxflags ignore - glxvendorpriv 1293 - offset 578 - -BindProgramNV(target, id) - return void - param target VertexAttribEnumNV in value - param id UInt32 in value - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4180 - alias BindProgramARB - -DeleteProgramsNV(n, programs) - return void - param n SizeI in value - param programs UInt32 in array [n] - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxvendorpriv 1294 - alias DeleteProgramsARB - -ExecuteProgramNV(target, id, params) - return void - param target VertexAttribEnumNV in value - param id UInt32 in value - param params Float32 in array [4] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxflags ignore - glxropcode 4181 - offset 581 - -GenProgramsNV(n, programs) - return void - param n SizeI in value - param programs UInt32 out array [n] - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxvendorpriv 1295 - alias GenProgramsARB - -GetProgramParameterdvNV(target, index, pname, params) - return void - param target VertexAttribEnumNV in value - param index UInt32 in value - param pname VertexAttribEnumNV in value - param params Float64 out array [4] - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxflags ignore - glxvendorpriv 1297 - offset 583 - -GetProgramParameterfvNV(target, index, pname, params) - return void - param target VertexAttribEnumNV in value - param index UInt32 in value - param pname VertexAttribEnumNV in value - param params Float32 out array [4] - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxflags ignore - glxvendorpriv 1296 - offset 584 - -# GetProgramParameterSigneddvNV(target, index, pname, params) -# return void -# param target VertexAttribEnumNV in value -# param index Int32 in value -# param pname VertexAttribEnumNV in value -# param params Float64 out array [4] -# category NV_vertex_program1_1_dcc -# dlflags notlistable -# version 1.2 -# extension soft WINSOFT NV20 -# glxflags ignore -# offset ? -# -# GetProgramParameterSignedfvNV(target, index, pname, params) -# return void -# param target VertexAttribEnumNV in value -# param index Int32 in value -# param pname VertexAttribEnumNV in value -# param params Float32 out array [4] -# category NV_vertex_program1_1_dcc -# dlflags notlistable -# version 1.2 -# extension soft WINSOFT NV20 -# glxflags ignore -# offset ? - -GetProgramivNV(id, pname, params) - return void - param id UInt32 in value - param pname VertexAttribEnumNV in value - param params Int32 out array [4] - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxflags ignore - glxvendorpriv 1298 - offset 585 - -GetProgramStringNV(id, pname, program) - return void - param id UInt32 in value - param pname VertexAttribEnumNV in value - param program ProgramCharacterNV out array [COMPSIZE(id/pname)] - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxflags ignore - glxvendorpriv 1299 - offset 586 - -GetTrackMatrixivNV(target, address, pname, params) - return void - param target VertexAttribEnumNV in value - param address UInt32 in value - param pname VertexAttribEnumNV in value - param params Int32 out array [1] - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxflags ignore - glxvendorpriv 1300 - offset 587 - -GetVertexAttribdvNV(index, pname, params) - return void - param index UInt32 in value - param pname VertexAttribEnumNV in value - param params Float64 out array [1] - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxvendorpriv 1301 - alias GetVertexAttribdv - -GetVertexAttribfvNV(index, pname, params) - return void - param index UInt32 in value - param pname VertexAttribEnumNV in value - param params Float32 out array [1] - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxvendorpriv 1302 - alias GetVertexAttribfv - -GetVertexAttribivNV(index, pname, params) - return void - param index UInt32 in value - param pname VertexAttribEnumNV in value - param params Int32 out array [1] - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxvendorpriv 1303 - alias GetVertexAttribiv - -GetVertexAttribPointervNV(index, pname, pointer) - return void - param index UInt32 in value - param pname VertexAttribEnumNV in value - param pointer VoidPointer out array [1] - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxflags ignore - alias GetVertexAttribPointerv - -IsProgramNV(id) - return Boolean - param id UInt32 in value - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxvendorpriv 1304 - alias IsProgram - -LoadProgramNV(target, id, len, program) - return void - param target VertexAttribEnumNV in value - param id UInt32 in value - param len SizeI in value - param program UInt8 in array [len] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4183 - offset 593 - -ProgramParameter4dNV(target, index, x, y, z, w) - return void - param target VertexAttribEnumNV in value - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category NV_vertex_program - version 1.2 - vectorequiv ProgramParameter4dvNV - extension soft WINSOFT NV10 - offset 594 - -ProgramParameter4dvNV(target, index, v) - return void - param target VertexAttribEnumNV in value - param index UInt32 in value - param v Float64 in array [4] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4185 - offset 595 - -ProgramParameter4fNV(target, index, x, y, z, w) - return void - param target VertexAttribEnumNV in value - param index UInt32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - param w Float32 in value - category NV_vertex_program - version 1.2 - vectorequiv ProgramParameter4fvNV - extension soft WINSOFT NV10 - offset 596 - -ProgramParameter4fvNV(target, index, v) - return void - param target VertexAttribEnumNV in value - param index UInt32 in value - param v Float32 in array [4] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4184 - offset 597 - -#??? 'count' was SizeI in the latest NVIDIA gl.spec, but UInt32 in the -#??? extension specification in the registry. -ProgramParameters4dvNV(target, index, count, v) - return void - param target VertexAttribEnumNV in value - param index UInt32 in value - param count SizeI in value - param v Float64 in array [count*4] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4187 - offset 598 - -ProgramParameters4fvNV(target, index, count, v) - return void - param target VertexAttribEnumNV in value - param index UInt32 in value - param count SizeI in value - param v Float32 in array [count*4] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4186 - offset 599 - -# ProgramParameterSigned4dNV(target, index, x, y, z, w) -# return void -# param target VertexAttribEnumNV in value -# param index Int32 in value -# param x Float64 in value -# param y Float64 in value -# param z Float64 in value -# param w Float64 in value -# category NV_vertex_program1_1_dcc -# version 1.2 -# vectorequiv ProgramParameterSigned4dvNV -# extension soft WINSOFT NV20 -# offset ? -# -# ProgramParameterSigned4dvNV(target, index, v) -# return void -# param target VertexAttribEnumNV in value -# param index Int32 in value -# param v Float64 in array [4] -# category NV_vertex_program1_1_dcc -# version 1.2 -# extension soft WINSOFT NV20 -# glxflags ignore -# offset ? -# -# ProgramParameterSigned4fNV(target, index, x, y, z, w) -# return void -# param target VertexAttribEnumNV in value -# param index Int32 in value -# param x Float32 in value -# param y Float32 in value -# param z Float32 in value -# param w Float32 in value -# category NV_vertex_program1_1_dcc -# version 1.2 -# vectorequiv ProgramParameterSigned4fvNV -# extension soft WINSOFT NV20 -# offset ? -# -# ProgramParameterSigned4fvNV(target, index, v) -# return void -# param target VertexAttribEnumNV in value -# param index Int32 in value -# param v Float32 in array [4] -# category NV_vertex_program1_1_dcc -# version 1.2 -# extension soft WINSOFT NV20 -# glxflags ignore -# offset ? -# -# ProgramParametersSigned4dvNV(target, index, count, v) -# return void -# param target VertexAttribEnumNV in value -# param index Int32 in value -# param count SizeI in value -# param v Float64 in array [count*4] -# category NV_vertex_program1_1_dcc -# version 1.2 -# extension soft WINSOFT NV20 -# glxflags ignore -# offset ? -# -# ProgramParametersSigned4fvNV(target, index, count, v) -# return void -# param target VertexAttribEnumNV in value -# param index Int32 in value -# param count SizeI in value -# param v Float32 in array [count*4] -# category NV_vertex_program1_1_dcc -# version 1.2 -# extension soft WINSOFT NV20 -# glxflags ignore -# offset ? - -RequestResidentProgramsNV(n, programs) - return void - param n SizeI in value - param programs UInt32 in array [n] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4182 - offset 600 - -TrackMatrixNV(target, address, matrix, transform) - return void - param target VertexAttribEnumNV in value - param address UInt32 in value - param matrix VertexAttribEnumNV in value - param transform VertexAttribEnumNV in value - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4188 - offset 601 - -VertexAttribPointerNV(index, fsize, type, stride, pointer) - return void - param index UInt32 in value - param fsize Int32 in value - param type VertexAttribEnumNV in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(fsize/type/stride)] retained - category NV_vertex_program - dlflags notlistable - version 1.2 - extension soft WINSOFT NV10 - glxflags ignore - offset 602 - -VertexAttrib1dNV(index, x) - return void - param index UInt32 in value - param x Float64 in value - category NV_vertex_program - version 1.2 - vectorequiv VertexAttrib1dvNV - extension soft WINSOFT NV10 - alias VertexAttrib1d - -VertexAttrib1dvNV(index, v) - return void - param index UInt32 in value - param v Float64 in array [1] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4197 - alias VertexAttrib1dv - -VertexAttrib1fNV(index, x) - return void - param index UInt32 in value - param x Float32 in value - category NV_vertex_program - version 1.2 - vectorequiv VertexAttrib1fvNV - extension soft WINSOFT NV10 - alias VertexAttrib1f - -VertexAttrib1fvNV(index, v) - return void - param index UInt32 in value - param v Float32 in array [1] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4193 - alias VertexAttrib1fv - -VertexAttrib1sNV(index, x) - return void - param index UInt32 in value - param x Int16 in value - category NV_vertex_program - version 1.2 - vectorequiv VertexAttrib1svNV - extension soft WINSOFT NV10 - alias VertexAttrib1s - -VertexAttrib1svNV(index, v) - return void - param index UInt32 in value - param v Int16 in array [1] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4189 - alias VertexAttrib1sv - -VertexAttrib2dNV(index, x, y) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - category NV_vertex_program - version 1.2 - vectorequiv VertexAttrib2dvNV - extension soft WINSOFT NV10 - alias VertexAttrib2d - -VertexAttrib2dvNV(index, v) - return void - param index UInt32 in value - param v Float64 in array [2] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4198 - alias VertexAttrib2dv - -VertexAttrib2fNV(index, x, y) - return void - param index UInt32 in value - param x Float32 in value - param y Float32 in value - category NV_vertex_program - version 1.2 - vectorequiv VertexAttrib2fvNV - extension soft WINSOFT NV10 - alias VertexAttrib2f - -VertexAttrib2fvNV(index, v) - return void - param index UInt32 in value - param v Float32 in array [2] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4194 - alias VertexAttrib2fv - -VertexAttrib2sNV(index, x, y) - return void - param index UInt32 in value - param x Int16 in value - param y Int16 in value - category NV_vertex_program - version 1.2 - vectorequiv VertexAttrib2svNV - extension soft WINSOFT NV10 - alias VertexAttrib2s - -VertexAttrib2svNV(index, v) - return void - param index UInt32 in value - param v Int16 in array [2] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4190 - alias VertexAttrib2sv - -VertexAttrib3dNV(index, x, y, z) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - category NV_vertex_program - version 1.2 - vectorequiv VertexAttrib3dvNV - extension soft WINSOFT NV10 - alias VertexAttrib3d - -VertexAttrib3dvNV(index, v) - return void - param index UInt32 in value - param v Float64 in array [3] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4199 - alias VertexAttrib3dv - -VertexAttrib3fNV(index, x, y, z) - return void - param index UInt32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category NV_vertex_program - version 1.2 - vectorequiv VertexAttrib3fvNV - extension soft WINSOFT NV10 - alias VertexAttrib3f - -VertexAttrib3fvNV(index, v) - return void - param index UInt32 in value - param v Float32 in array [3] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4195 - alias VertexAttrib3fv - -VertexAttrib3sNV(index, x, y, z) - return void - param index UInt32 in value - param x Int16 in value - param y Int16 in value - param z Int16 in value - category NV_vertex_program - version 1.2 - vectorequiv VertexAttrib3svNV - extension soft WINSOFT NV10 - alias VertexAttrib3s - -VertexAttrib3svNV(index, v) - return void - param index UInt32 in value - param v Int16 in array [3] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4191 - alias VertexAttrib3sv - -VertexAttrib4dNV(index, x, y, z, w) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category NV_vertex_program - version 1.2 - vectorequiv VertexAttrib4dvNV - extension soft WINSOFT NV10 - alias VertexAttrib4d - -VertexAttrib4dvNV(index, v) - return void - param index UInt32 in value - param v Float64 in array [4] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4200 - alias VertexAttrib4dv - -VertexAttrib4fNV(index, x, y, z, w) - return void - param index UInt32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - param w Float32 in value - category NV_vertex_program - version 1.2 - vectorequiv VertexAttrib4fvNV - extension soft WINSOFT NV10 - alias VertexAttrib4f - -VertexAttrib4fvNV(index, v) - return void - param index UInt32 in value - param v Float32 in array [4] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4196 - alias VertexAttrib4fv - -VertexAttrib4sNV(index, x, y, z, w) - return void - param index UInt32 in value - param x Int16 in value - param y Int16 in value - param z Int16 in value - param w Int16 in value - category NV_vertex_program - version 1.2 - vectorequiv VertexAttrib4svNV - extension soft WINSOFT NV10 - alias VertexAttrib4s - -VertexAttrib4svNV(index, v) - return void - param index UInt32 in value - param v Int16 in array [4] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4192 - alias VertexAttrib4sv - -VertexAttrib4ubNV(index, x, y, z, w) - return void - param index UInt32 in value - param x ColorUB in value - param y ColorUB in value - param z ColorUB in value - param w ColorUB in value - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - vectorequiv VertexAttrib4ubvNV - alias VertexAttrib4Nub - -VertexAttrib4ubvNV(index, v) - return void - param index UInt32 in value - param v ColorUB in array [4] - category NV_vertex_program - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4201 - alias VertexAttrib4Nubv - -VertexAttribs1dvNV(index, count, v) - return void - param index UInt32 in value - param count SizeI in value - param v Float64 in array [count] - category NV_vertex_program - dlflags handcode - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4210 - offset 629 - -VertexAttribs1fvNV(index, count, v) - return void - param index UInt32 in value - param count SizeI in value - param v Float32 in array [count] - category NV_vertex_program - dlflags handcode - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4206 - offset 630 - -VertexAttribs1svNV(index, count, v) - return void - param index UInt32 in value - param count SizeI in value - param v Int16 in array [count] - category NV_vertex_program - dlflags handcode - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4202 - offset 631 - -VertexAttribs2dvNV(index, count, v) - return void - param index UInt32 in value - param count SizeI in value - param v Float64 in array [count*2] - category NV_vertex_program - dlflags handcode - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4211 - offset 632 - -VertexAttribs2fvNV(index, count, v) - return void - param index UInt32 in value - param count SizeI in value - param v Float32 in array [count*2] - category NV_vertex_program - dlflags handcode - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4207 - offset 633 - -VertexAttribs2svNV(index, count, v) - return void - param index UInt32 in value - param count SizeI in value - param v Int16 in array [count*2] - category NV_vertex_program - dlflags handcode - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4203 - offset 634 - -VertexAttribs3dvNV(index, count, v) - return void - param index UInt32 in value - param count SizeI in value - param v Float64 in array [count*3] - category NV_vertex_program - dlflags handcode - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4212 - offset 635 - -VertexAttribs3fvNV(index, count, v) - return void - param index UInt32 in value - param count SizeI in value - param v Float32 in array [count*3] - category NV_vertex_program - dlflags handcode - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4208 - offset 636 - -VertexAttribs3svNV(index, count, v) - return void - param index UInt32 in value - param count SizeI in value - param v Int16 in array [count*3] - category NV_vertex_program - dlflags handcode - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4204 - offset 637 - -VertexAttribs4dvNV(index, count, v) - return void - param index UInt32 in value - param count SizeI in value - param v Float64 in array [count*4] - category NV_vertex_program - dlflags handcode - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4213 - offset 638 - -VertexAttribs4fvNV(index, count, v) - return void - param index UInt32 in value - param count SizeI in value - param v Float32 in array [count*4] - category NV_vertex_program - dlflags handcode - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4209 - offset 639 - -VertexAttribs4svNV(index, count, v) - return void - param index UInt32 in value - param count SizeI in value - param v Int16 in array [count*4] - category NV_vertex_program - dlflags handcode - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4205 - offset 640 - -VertexAttribs4ubvNV(index, count, v) - return void - param index UInt32 in value - param count SizeI in value - param v ColorUB in array [count*4] - category NV_vertex_program - dlflags handcode - version 1.2 - extension soft WINSOFT NV10 - glxropcode 4214 - offset 641 - - -############################################################################### -# -# Extension #234 - GLX_SGIX_visual_select_group -# -############################################################################### - -############################################################################### -# -# Extension #235 -# SGIX_texture_coordinate_clamp commands -# -############################################################################### - -# (none) -newcategory: SGIX_texture_coordinate_clamp - -############################################################################### -# -# Extension #236 -# SGIX_scalebias_hint commands -# -############################################################################### - -# (none) -newcategory: SGIX_scalebias_hint - -############################################################################### -# -# Extension #237 - GLX_OML_swap_method commands -# Extension #238 - GLX_OML_sync_control commands -# -############################################################################### - -############################################################################### -# -# Extension #239 -# OML_interlace commands -# -############################################################################### - -# (none) -newcategory: OML_interlace - -############################################################################### -# -# Extension #240 -# OML_subsample commands -# -############################################################################### - -# (none) -newcategory: OML_subsample - -############################################################################### -# -# Extension #241 -# OML_resample commands -# -############################################################################### - -# (none) -newcategory: OML_resample - -############################################################################### -# -# Extension #242 - WGL_OML_sync_control commands -# -############################################################################### - -############################################################################### -# -# Extension #243 -# NV_copy_depth_to_color commands -# -############################################################################### - -# (none) -newcategory: NV_copy_depth_to_color - -############################################################################### -# -# Extension #244 -# ATI_envmap_bumpmap commands -# -############################################################################### - -TexBumpParameterivATI(pname, param) - return void - param pname TexBumpParameterATI in value - param param Int32 in array [COMPSIZE(pname)] - category ATI_envmap_bumpmap - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexBumpParameterfvATI(pname, param) - return void - param pname TexBumpParameterATI in value - param param Float32 in array [COMPSIZE(pname)] - category ATI_envmap_bumpmap - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetTexBumpParameterivATI(pname, param) - return void - param pname GetTexBumpParameterATI in value - param param Int32 out array [COMPSIZE(pname)] - category ATI_envmap_bumpmap - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetTexBumpParameterfvATI(pname, param) - return void - param pname GetTexBumpParameterATI in value - param param Float32 out array [COMPSIZE(pname)] - category ATI_envmap_bumpmap - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #245 -# ATI_fragment_shader commands -# -############################################################################### - -GenFragmentShadersATI(range) - return UInt32 - param range UInt32 in value - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BindFragmentShaderATI(id) - return void - param id UInt32 in value - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DeleteFragmentShaderATI(id) - return void - param id UInt32 in value - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BeginFragmentShaderATI() - return void - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -EndFragmentShaderATI() - return void - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -PassTexCoordATI(dst, coord, swizzle) - return void - param dst UInt32 in value - param coord UInt32 in value - param swizzle SwizzleOpATI in value - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SampleMapATI(dst, interp, swizzle) - return void - param dst UInt32 in value - param interp UInt32 in value - param swizzle SwizzleOpATI in value - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ColorFragmentOp1ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod) - return void - param op FragmentOpATI in value - param dst UInt32 in value - param dstMask UInt32 in value - param dstMod UInt32 in value - param arg1 UInt32 in value - param arg1Rep UInt32 in value - param arg1Mod UInt32 in value - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ColorFragmentOp2ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod) - return void - param op FragmentOpATI in value - param dst UInt32 in value - param dstMask UInt32 in value - param dstMod UInt32 in value - param arg1 UInt32 in value - param arg1Rep UInt32 in value - param arg1Mod UInt32 in value - param arg2 UInt32 in value - param arg2Rep UInt32 in value - param arg2Mod UInt32 in value - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ColorFragmentOp3ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod) - return void - param op FragmentOpATI in value - param dst UInt32 in value - param dstMask UInt32 in value - param dstMod UInt32 in value - param arg1 UInt32 in value - param arg1Rep UInt32 in value - param arg1Mod UInt32 in value - param arg2 UInt32 in value - param arg2Rep UInt32 in value - param arg2Mod UInt32 in value - param arg3 UInt32 in value - param arg3Rep UInt32 in value - param arg3Mod UInt32 in value - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -AlphaFragmentOp1ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod) - return void - param op FragmentOpATI in value - param dst UInt32 in value - param dstMod UInt32 in value - param arg1 UInt32 in value - param arg1Rep UInt32 in value - param arg1Mod UInt32 in value - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -AlphaFragmentOp2ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod) - return void - param op FragmentOpATI in value - param dst UInt32 in value - param dstMod UInt32 in value - param arg1 UInt32 in value - param arg1Rep UInt32 in value - param arg1Mod UInt32 in value - param arg2 UInt32 in value - param arg2Rep UInt32 in value - param arg2Mod UInt32 in value - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -AlphaFragmentOp3ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod) - return void - param op FragmentOpATI in value - param dst UInt32 in value - param dstMod UInt32 in value - param arg1 UInt32 in value - param arg1Rep UInt32 in value - param arg1Mod UInt32 in value - param arg2 UInt32 in value - param arg2Rep UInt32 in value - param arg2Mod UInt32 in value - param arg3 UInt32 in value - param arg3Rep UInt32 in value - param arg3Mod UInt32 in value - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SetFragmentShaderConstantATI(dst, value) - return void - param dst UInt32 in value - param value ConstFloat32 in array [4] - category ATI_fragment_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #246 -# ATI_pn_triangles commands -# -############################################################################### - -PNTrianglesiATI(pname, param) - return void - param pname PNTrianglesPNameATI in value - param param Int32 in value - category ATI_pn_triangles - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -PNTrianglesfATI(pname, param) - return void - param pname PNTrianglesPNameATI in value - param param Float32 in value - category ATI_pn_triangles - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #247 -# ATI_vertex_array_object commands -# -############################################################################### - -NewObjectBufferATI(size, pointer, usage) - return UInt32 - param size SizeI in value - param pointer ConstVoid in array [size] - param usage ArrayObjectUsageATI in value - category ATI_vertex_array_object - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -IsObjectBufferATI(buffer) - return Boolean - param buffer UInt32 in value - category ATI_vertex_array_object - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -UpdateObjectBufferATI(buffer, offset, size, pointer, preserve) - return void - param buffer UInt32 in value - param offset UInt32 in value - param size SizeI in value - param pointer ConstVoid in array [size] - param preserve PreserveModeATI in value - category ATI_vertex_array_object - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetObjectBufferfvATI(buffer, pname, params) - return void - param buffer UInt32 in value - param pname ArrayObjectPNameATI in value - param params Float32 out array [1] - category ATI_vertex_array_object - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetObjectBufferivATI(buffer, pname, params) - return void - param buffer UInt32 in value - param pname ArrayObjectPNameATI in value - param params Int32 out array [1] - category ATI_vertex_array_object - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -FreeObjectBufferATI(buffer) - return void - param buffer UInt32 in value - category ATI_vertex_array_object - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ArrayObjectATI(array, size, type, stride, buffer, offset) - return void - param array EnableCap in value - param size Int32 in value - param type ScalarType in value - param stride SizeI in value - param buffer UInt32 in value - param offset UInt32 in value - category ATI_vertex_array_object - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetArrayObjectfvATI(array, pname, params) - return void - param array EnableCap in value - param pname ArrayObjectPNameATI in value - param params Float32 out array [1] - category ATI_vertex_array_object - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetArrayObjectivATI(array, pname, params) - return void - param array EnableCap in value - param pname ArrayObjectPNameATI in value - param params Int32 out array [1] - category ATI_vertex_array_object - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -VariantArrayObjectATI(id, type, stride, buffer, offset) - return void - param id UInt32 in value - param type ScalarType in value - param stride SizeI in value - param buffer UInt32 in value - param offset UInt32 in value - category ATI_vertex_array_object - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetVariantArrayObjectfvATI(id, pname, params) - return void - param id UInt32 in value - param pname ArrayObjectPNameATI in value - param params Float32 out array [1] - category ATI_vertex_array_object - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetVariantArrayObjectivATI(id, pname, params) - return void - param id UInt32 in value - param pname ArrayObjectPNameATI in value - param params Int32 out array [1] - category ATI_vertex_array_object - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #248 -# EXT_vertex_shader commands -# -############################################################################### - -BeginVertexShaderEXT() - return void - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -EndVertexShaderEXT() - return void - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BindVertexShaderEXT(id) - return void - param id UInt32 in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GenVertexShadersEXT(range) - return UInt32 - param range UInt32 in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DeleteVertexShaderEXT(id) - return void - param id UInt32 in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ShaderOp1EXT(op, res, arg1) - return void - param op VertexShaderOpEXT in value - param res UInt32 in value - param arg1 UInt32 in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ShaderOp2EXT(op, res, arg1, arg2) - return void - param op VertexShaderOpEXT in value - param res UInt32 in value - param arg1 UInt32 in value - param arg2 UInt32 in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ShaderOp3EXT(op, res, arg1, arg2, arg3) - return void - param op VertexShaderOpEXT in value - param res UInt32 in value - param arg1 UInt32 in value - param arg2 UInt32 in value - param arg3 UInt32 in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SwizzleEXT(res, in, outX, outY, outZ, outW) - return void - param res UInt32 in value - param in UInt32 in value - param outX VertexShaderCoordOutEXT in value - param outY VertexShaderCoordOutEXT in value - param outZ VertexShaderCoordOutEXT in value - param outW VertexShaderCoordOutEXT in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -WriteMaskEXT(res, in, outX, outY, outZ, outW) - return void - param res UInt32 in value - param in UInt32 in value - param outX VertexShaderWriteMaskEXT in value - param outY VertexShaderWriteMaskEXT in value - param outZ VertexShaderWriteMaskEXT in value - param outW VertexShaderWriteMaskEXT in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -InsertComponentEXT(res, src, num) - return void - param res UInt32 in value - param src UInt32 in value - param num UInt32 in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ExtractComponentEXT(res, src, num) - return void - param res UInt32 in value - param src UInt32 in value - param num UInt32 in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GenSymbolsEXT(datatype, storagetype, range, components) - return UInt32 - param datatype DataTypeEXT in value - param storagetype VertexShaderStorageTypeEXT in value - param range ParameterRangeEXT in value - param components UInt32 in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SetInvariantEXT(id, type, addr) - return void - param id UInt32 in value - param type ScalarType in value - param addr Void in array [COMPSIZE(id/type)] - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SetLocalConstantEXT(id, type, addr) - return void - param id UInt32 in value - param type ScalarType in value - param addr Void in array [COMPSIZE(id/type)] - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VariantbvEXT(id, addr) - return void - param id UInt32 in value - param addr Int8 in array [COMPSIZE(id)] - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VariantsvEXT(id, addr) - return void - param id UInt32 in value - param addr Int16 in array [COMPSIZE(id)] - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VariantivEXT(id, addr) - return void - param id UInt32 in value - param addr Int32 in array [COMPSIZE(id)] - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VariantfvEXT(id, addr) - return void - param id UInt32 in value - param addr Float32 in array [COMPSIZE(id)] - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VariantdvEXT(id, addr) - return void - param id UInt32 in value - param addr Float64 in array [COMPSIZE(id)] - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VariantubvEXT(id, addr) - return void - param id UInt32 in value - param addr UInt8 in array [COMPSIZE(id)] - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VariantusvEXT(id, addr) - return void - param id UInt32 in value - param addr UInt16 in array [COMPSIZE(id)] - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VariantuivEXT(id, addr) - return void - param id UInt32 in value - param addr UInt32 in array [COMPSIZE(id)] - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VariantPointerEXT(id, type, stride, addr) - return void - param id UInt32 in value - param type ScalarType in value - param stride UInt32 in value - param addr Void in array [COMPSIZE(id/type/stride)] - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -EnableVariantClientStateEXT(id) - return void - param id UInt32 in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DisableVariantClientStateEXT(id) - return void - param id UInt32 in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BindLightParameterEXT(light, value) - return UInt32 - param light LightName in value - param value LightParameter in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BindMaterialParameterEXT(face, value) - return UInt32 - param face MaterialFace in value - param value MaterialParameter in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BindTexGenParameterEXT(unit, coord, value) - return UInt32 - param unit TextureUnit in value - param coord TextureCoordName in value - param value TextureGenParameter in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BindTextureUnitParameterEXT(unit, value) - return UInt32 - param unit TextureUnit in value - param value VertexShaderTextureUnitParameter in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BindParameterEXT(value) - return UInt32 - param value VertexShaderParameterEXT in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -IsVariantEnabledEXT(id, cap) - return Boolean - param id UInt32 in value - param cap VariantCapEXT in value - category EXT_vertex_shader - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetVariantBooleanvEXT(id, value, data) - return void - param id UInt32 in value - param value GetVariantValueEXT in value - param data Boolean out array [COMPSIZE(id)] - category EXT_vertex_shader - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetVariantIntegervEXT(id, value, data) - return void - param id UInt32 in value - param value GetVariantValueEXT in value - param data Int32 out array [COMPSIZE(id)] - category EXT_vertex_shader - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetVariantFloatvEXT(id, value, data) - return void - param id UInt32 in value - param value GetVariantValueEXT in value - param data Float32 out array [COMPSIZE(id)] - category EXT_vertex_shader - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetVariantPointervEXT(id, value, data) - return void - param id UInt32 in value - param value GetVariantValueEXT in value - param data VoidPointer out array [COMPSIZE(id)] - category EXT_vertex_shader - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetInvariantBooleanvEXT(id, value, data) - return void - param id UInt32 in value - param value GetVariantValueEXT in value - param data Boolean out array [COMPSIZE(id)] - category EXT_vertex_shader - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetInvariantIntegervEXT(id, value, data) - return void - param id UInt32 in value - param value GetVariantValueEXT in value - param data Int32 out array [COMPSIZE(id)] - category EXT_vertex_shader - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetInvariantFloatvEXT(id, value, data) - return void - param id UInt32 in value - param value GetVariantValueEXT in value - param data Float32 out array [COMPSIZE(id)] - category EXT_vertex_shader - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetLocalConstantBooleanvEXT(id, value, data) - return void - param id UInt32 in value - param value GetVariantValueEXT in value - param data Boolean out array [COMPSIZE(id)] - category EXT_vertex_shader - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetLocalConstantIntegervEXT(id, value, data) - return void - param id UInt32 in value - param value GetVariantValueEXT in value - param data Int32 out array [COMPSIZE(id)] - category EXT_vertex_shader - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetLocalConstantFloatvEXT(id, value, data) - return void - param id UInt32 in value - param value GetVariantValueEXT in value - param data Float32 out array [COMPSIZE(id)] - category EXT_vertex_shader - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #249 -# ATI_vertex_streams commands -# -############################################################################### - -VertexStream1sATI(stream, x) - return void - param stream VertexStreamATI in value - param x Int16 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream1svATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Int16 in array [1] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream1iATI(stream, x) - return void - param stream VertexStreamATI in value - param x Int32 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream1ivATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Int32 in array [1] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream1fATI(stream, x) - return void - param stream VertexStreamATI in value - param x Float32 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream1fvATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Float32 in array [1] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream1dATI(stream, x) - return void - param stream VertexStreamATI in value - param x Float64 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream1dvATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Float64 in array [1] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream2sATI(stream, x, y) - return void - param stream VertexStreamATI in value - param x Int16 in value - param y Int16 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream2svATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Int16 in array [2] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream2iATI(stream, x, y) - return void - param stream VertexStreamATI in value - param x Int32 in value - param y Int32 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream2ivATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Int32 in array [2] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream2fATI(stream, x, y) - return void - param stream VertexStreamATI in value - param x Float32 in value - param y Float32 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream2fvATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Float32 in array [2] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream2dATI(stream, x, y) - return void - param stream VertexStreamATI in value - param x Float64 in value - param y Float64 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream2dvATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Float64 in array [2] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream3sATI(stream, x, y, z) - return void - param stream VertexStreamATI in value - param x Int16 in value - param y Int16 in value - param z Int16 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream3svATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Int16 in array [3] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream3iATI(stream, x, y, z) - return void - param stream VertexStreamATI in value - param x Int32 in value - param y Int32 in value - param z Int32 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream3ivATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Int32 in array [3] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream3fATI(stream, x, y, z) - return void - param stream VertexStreamATI in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream3fvATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Float32 in array [3] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream3dATI(stream, x, y, z) - return void - param stream VertexStreamATI in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream3dvATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Float64 in array [3] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream4sATI(stream, x, y, z, w) - return void - param stream VertexStreamATI in value - param x Int16 in value - param y Int16 in value - param z Int16 in value - param w Int16 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream4svATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Int16 in array [4] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream4iATI(stream, x, y, z, w) - return void - param stream VertexStreamATI in value - param x Int32 in value - param y Int32 in value - param z Int32 in value - param w Int32 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream4ivATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Int32 in array [4] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream4fATI(stream, x, y, z, w) - return void - param stream VertexStreamATI in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - param w Float32 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream4fvATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Float32 in array [4] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream4dATI(stream, x, y, z, w) - return void - param stream VertexStreamATI in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexStream4dvATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Float64 in array [4] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -NormalStream3bATI(stream, nx, ny, nz) - return void - param stream VertexStreamATI in value - param nx Int8 in value - param ny Int8 in value - param nz Int8 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -NormalStream3bvATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Int8 in array [3] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -NormalStream3sATI(stream, nx, ny, nz) - return void - param stream VertexStreamATI in value - param nx Int16 in value - param ny Int16 in value - param nz Int16 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -NormalStream3svATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Int16 in array [3] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -NormalStream3iATI(stream, nx, ny, nz) - return void - param stream VertexStreamATI in value - param nx Int32 in value - param ny Int32 in value - param nz Int32 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -NormalStream3ivATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Int32 in array [3] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -NormalStream3fATI(stream, nx, ny, nz) - return void - param stream VertexStreamATI in value - param nx Float32 in value - param ny Float32 in value - param nz Float32 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -NormalStream3fvATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Float32 in array [3] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -NormalStream3dATI(stream, nx, ny, nz) - return void - param stream VertexStreamATI in value - param nx Float64 in value - param ny Float64 in value - param nz Float64 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -NormalStream3dvATI(stream, coords) - return void - param stream VertexStreamATI in value - param coords Float64 in array [3] - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ClientActiveVertexStreamATI(stream) - return void - param stream VertexStreamATI in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexBlendEnviATI(pname, param) - return void - param pname VertexStreamATI in value - param param Int32 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexBlendEnvfATI(pname, param) - return void - param pname VertexStreamATI in value - param param Float32 in value - category ATI_vertex_streams - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #250 - WGL_I3D_digital_video_control -# Extension #251 - WGL_I3D_gamma -# Extension #252 - WGL_I3D_genlock -# Extension #253 - WGL_I3D_image_buffer -# Extension #254 - WGL_I3D_swap_frame_lock -# Extension #255 - WGL_I3D_swap_frame_usage -# -############################################################################### - -############################################################################### -# -# Extension #256 -# ATI_element_array commands -# -############################################################################### - -ElementPointerATI(type, pointer) - return void - param type ElementPointerTypeATI in value - param pointer Void in array [COMPSIZE(type)] retained - category ATI_element_array - dlflags notlistable - glxflags client-handcode client-intercept server-handcode - version 1.2 - offset ? - -DrawElementArrayATI(mode, count) - return void - param mode BeginMode in value - param count SizeI in value - category ATI_element_array - dlflags handcode - glxflags client-handcode client-intercept server-handcode - version 1.2 - offset ? - -DrawRangeElementArrayATI(mode, start, end, count) - return void - param mode BeginMode in value - param start UInt32 in value - param end UInt32 in value - param count SizeI in value - category ATI_element_array - dlflags handcode - glxflags client-handcode client-intercept server-handcode - version 1.2 - offset ? - -############################################################################### -# -# Extension #257 -# SUN_mesh_array commands -# -############################################################################### - -DrawMeshArraysSUN(mode, first, count, width) - return void - param mode BeginMode in value - param first Int32 in value - param count SizeI in value - param width SizeI in value - category SUN_mesh_array - dlflags handcode - glxflags client-handcode client-intercept server-handcode - version 1.1 - glxropcode ? - offset ? - -############################################################################### -# -# Extension #258 -# SUN_slice_accum commands -# -############################################################################### - -# (none) -newcategory: SUN_slice_accum - -############################################################################### -# -# Extension #259 -# NV_multisample_filter_hint commands -# -############################################################################### - -# (none) -newcategory: NV_multisample_filter_hint - -############################################################################### -# -# Extension #260 -# NV_depth_clamp commands -# -############################################################################### - -# (none) -newcategory: NV_depth_clamp - -############################################################################### -# -# Extension #261 -# NV_occlusion_query commands -# -############################################################################### - -GenOcclusionQueriesNV(n, ids) - return void - param n SizeI in value - param ids UInt32 out array [n] - dlflags notlistable - category NV_occlusion_query - version 1.2 - extension soft WINSOFT NV20 - glxflags ignore - -DeleteOcclusionQueriesNV(n, ids) - return void - param n SizeI in value - param ids UInt32 in array [n] - dlflags notlistable - category NV_occlusion_query - version 1.2 - extension soft WINSOFT NV20 - glxflags ignore - -IsOcclusionQueryNV(id) - return Boolean - param id UInt32 in value - dlflags notlistable - category NV_occlusion_query - version 1.2 - extension soft WINSOFT NV20 - glxflags ignore - -BeginOcclusionQueryNV(id) - return void - param id UInt32 in value - category NV_occlusion_query - version 1.2 - extension soft WINSOFT NV20 - glxflags ignore - -EndOcclusionQueryNV() - return void - category NV_occlusion_query - version 1.2 - extension soft WINSOFT NV20 - glxflags ignore - -GetOcclusionQueryivNV(id, pname, params) - return void - param id UInt32 in value - param pname OcclusionQueryParameterNameNV in value - param params Int32 out array [COMPSIZE(pname)] - dlflags notlistable - category NV_occlusion_query - version 1.2 - extension soft WINSOFT NV20 - glxflags ignore - -GetOcclusionQueryuivNV(id, pname, params) - return void - param id UInt32 in value - param pname OcclusionQueryParameterNameNV in value - param params UInt32 out array [COMPSIZE(pname)] - dlflags notlistable - category NV_occlusion_query - version 1.2 - extension soft WINSOFT NV20 - glxflags ignore - -############################################################################### -# -# Extension #262 -# NV_point_sprite commands -# -############################################################################### - -PointParameteriNV(pname, param) - return void - param pname PointParameterNameARB in value - param param Int32 in value - category NV_point_sprite - version 1.2 - extension soft WINSOFT NV20 - glxropcode 4221 - alias PointParameteri - -PointParameterivNV(pname, params) - return void - param pname PointParameterNameARB in value - param params Int32 in array [COMPSIZE(pname)] - category NV_point_sprite - version 1.2 - extension soft WINSOFT NV20 - glxropcode 4222 - alias PointParameteriv - -############################################################################### -# -# Extension #263 - WGL_NV_render_depth_texture -# Extension #264 - WGL_NV_render_texture_rectangle -# -############################################################################### - -############################################################################### -# -# Extension #265 -# NV_texture_shader3 commands -# -############################################################################### - -# (none) -newcategory: NV_texture_shader3 - -############################################################################### -# -# Extension #266 -# NV_vertex_program1_1 commands -# -############################################################################### - -# (none) -newcategory: NV_vertex_program1_1 - -############################################################################### -# -# Extension #267 -# EXT_shadow_funcs commands -# -############################################################################### - -# (none) -newcategory: EXT_shadow_funcs - -############################################################################### -# -# Extension #268 -# EXT_stencil_two_side commands -# -############################################################################### - -ActiveStencilFaceEXT(face) - return void - param face StencilFaceDirection in value - category EXT_stencil_two_side - version 1.3 - glxropcode 4220 - offset 646 - -############################################################################### -# -# Extension #269 -# ATI_text_fragment_shader commands -# -############################################################################### - -# Uses ARB_vertex_program entry points -newcategory: ATI_text_fragment_shader - -############################################################################### -# -# Extension #270 -# APPLE_client_storage commands -# -############################################################################### - -# (none) -newcategory: APPLE_client_storage - -############################################################################### -# -# Extension #271 -# APPLE_element_array commands -# -############################################################################### - -# @@ Need to verify/add GLX protocol - -# @@@ like #256 ATI_element_array -ElementPointerAPPLE(type, pointer) - return void - param type ElementPointerTypeATI in value - param pointer Void in array [type] - category APPLE_element_array - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DrawElementArrayAPPLE(mode, first, count) - return void - param mode BeginMode in value - param first Int32 in value - param count SizeI in value - category APPLE_element_array - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DrawRangeElementArrayAPPLE(mode, start, end, first, count) - return void - param mode BeginMode in value - param start UInt32 in value - param end UInt32 in value - param first Int32 in value - param count SizeI in value - category APPLE_element_array - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiDrawElementArrayAPPLE(mode, first, count, primcount) - return void - param mode BeginMode in value - param first Int32 in array [primcount] - param count SizeI in array [primcount] - param primcount SizeI in value - category APPLE_element_array - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiDrawRangeElementArrayAPPLE(mode, start, end, first, count, primcount) - return void - param mode BeginMode in value - param start UInt32 in value - param end UInt32 in value - param first Int32 in array [primcount] - param count SizeI in array [primcount] - param primcount SizeI in value - category APPLE_element_array - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #272 -# APPLE_fence commands -# -############################################################################### - -# @@ Need to verify/add GLX protocol - -# @@@ like #222 NV_fence -GenFencesAPPLE(n, fences) - return void - param n SizeI in value - param fences FenceNV out array [n] - category APPLE_fence - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -DeleteFencesAPPLE(n, fences) - return void - param n SizeI in value - param fences FenceNV in array [n] - category APPLE_fence - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SetFenceAPPLE(fence) - return void - param fence FenceNV in value - category APPLE_fence - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -IsFenceAPPLE(fence) - return Boolean - param fence FenceNV in value - category APPLE_fence - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TestFenceAPPLE(fence) - return Boolean - param fence FenceNV in value - category APPLE_fence - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -FinishFenceAPPLE(fence) - return void - param fence FenceNV in value - category APPLE_fence - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TestObjectAPPLE(object, name) - return Boolean - param object ObjectTypeAPPLE in value - param name UInt32 in value - category APPLE_fence - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -FinishObjectAPPLE(object, name) - return void - param object ObjectTypeAPPLE in value - param name Int32 in value - category APPLE_fence - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #273 -# APPLE_vertex_array_object commands -# -############################################################################### - -BindVertexArrayAPPLE(array) - return void - param array UInt32 in value - category APPLE_vertex_array_object - version 1.2 - extension - glxropcode ? - glxflags ignore - alias BindVertexArray - -DeleteVertexArraysAPPLE(n, arrays) - return void - param n SizeI in value - param arrays UInt32 in array [n] - category APPLE_vertex_array_object - version 1.2 - extension - glxropcode ? - glxflags ignore - alias DeleteVertexArrays - -GenVertexArraysAPPLE(n, arrays) - return void - param n SizeI in value - param arrays UInt32 out array [n] - category APPLE_vertex_array_object - version 1.2 - extension - glxropcode ? - glxflags ignore - alias GenVertexArray - -IsVertexArrayAPPLE(array) - return Boolean - param array UInt32 in value - category APPLE_vertex_array_object - version 1.2 - extension - glxropcode ? - glxflags ignore - alias IsVertexArray - -############################################################################### -# -# Extension #274 -# APPLE_vertex_array_range commands -# -############################################################################### - -# @@ Need to verify/add GLX protocol - -# @@@ like #190 NV_vertex_array_range, -VertexArrayRangeAPPLE(length, pointer) - return void - param length SizeI in value - param pointer Void out array [length] - category APPLE_vertex_array_range - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -FlushVertexArrayRangeAPPLE(length, pointer) - return void - param length SizeI in value - param pointer Void out array [length] - category APPLE_vertex_array_range - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexArrayParameteriAPPLE(pname, param) - return void - param pname VertexArrayPNameAPPLE in value - param param Int32 in value - category APPLE_vertex_array_range - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #275 -# APPLE_ycbcr_422 commands -# -############################################################################### - -# (none) -newcategory: APPLE_ycbcr_422 - -############################################################################### -# -# Extension #276 -# S3_s3tc commands -# -############################################################################### - -# (none) -newcategory: S3_s3tc - -############################################################################### -# -# Extension #277 -# ATI_draw_buffers commands -# -############################################################################### - -DrawBuffersATI(n, bufs) - return void - param n SizeI in value - param bufs DrawBufferModeATI in array [n] - category ATI_draw_buffers - version 1.2 - extension - glxropcode 233 - alias DrawBuffers - -############################################################################### -# -# Extension #278 - WGL_ATI_pixel_format_float -# -############################################################################### -newcategory: ATI_pixel_format_float -passthru: /* This is really a WGL extension, but defines some associated GL enums. -passthru: * ATI does not export "GL_ATI_pixel_format_float" in the GL_EXTENSIONS string. -passthru: */ - -############################################################################### -# -# Extension #279 -# ATI_texture_env_combine3 commands -# -############################################################################### - -# (none) -newcategory: ATI_texture_env_combine3 - -############################################################################### -# -# Extension #280 -# ATI_texture_float commands -# -############################################################################### - -# (none) -newcategory: ATI_texture_float - -############################################################################### -# -# Extension #281 (also WGL_NV_float_buffer) -# NV_float_buffer commands -# -############################################################################### - -# (none) -newcategory: NV_float_buffer - -############################################################################### -# -# Extension #282 -# NV_fragment_program commands -# -############################################################################### - -# @@ Need to verify/add GLX protocol - -# Some NV_fragment_program entry points are shared with ARB_vertex_program, -# and are only included in that #define block, for now. -newcategory: NV_fragment_program -passthru: /* Some NV_fragment_program entry points are shared with ARB_vertex_program. */ - -ProgramNamedParameter4fNV(id, len, name, x, y, z, w) - return void - param id UInt32 in value - param len SizeI in value - param name UInt8 in array [1] - param x Float32 in value - param y Float32 in value - param z Float32 in value - param w Float32 in value - category NV_fragment_program - version 1.2 - extension - glxropcode ? - glxflags ignore - offset 682 - -ProgramNamedParameter4dNV(id, len, name, x, y, z, w) - return void - param id UInt32 in value - param len SizeI in value - param name UInt8 in array [1] - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category NV_fragment_program - version 1.2 - extension - glxropcode ? - glxflags ignore - offset 683 - -ProgramNamedParameter4fvNV(id, len, name, v) - return void - param id UInt32 in value - param len SizeI in value - param name UInt8 in array [1] - param v Float32 in array [4] - category NV_fragment_program - version 1.2 - extension - glxropcode ? - glxflags ignore - offset 684 - -ProgramNamedParameter4dvNV(id, len, name, v) - return void - param id UInt32 in value - param len SizeI in value - param name UInt8 in array [1] - param v Float64 in array [4] - category NV_fragment_program - version 1.2 - extension - glxropcode ? - glxflags ignore - offset 685 - -GetProgramNamedParameterfvNV(id, len, name, params) - return void - param id UInt32 in value - param len SizeI in value - param name UInt8 in array [1] - param params Float32 out array [4] - category NV_fragment_program - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset 686 - -GetProgramNamedParameterdvNV(id, len, name, params) - return void - param id UInt32 in value - param len SizeI in value - param name UInt8 in array [1] - param params Float64 out array [4] - category NV_fragment_program - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset 687 - -############################################################################### -# -# Extension #283 -# NV_half_float commands -# -############################################################################### - -# @@ Need to verify/add GLX protocol - -Vertex2hNV(x, y) - return void - param x Half16NV in value - param y Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Vertex2hvNV(v) - return void - param v Half16NV in array [2] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Vertex3hNV(x, y, z) - return void - param x Half16NV in value - param y Half16NV in value - param z Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Vertex3hvNV(v) - return void - param v Half16NV in array [3] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Vertex4hNV(x, y, z, w) - return void - param x Half16NV in value - param y Half16NV in value - param z Half16NV in value - param w Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Vertex4hvNV(v) - return void - param v Half16NV in array [4] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Normal3hNV(nx, ny, nz) - return void - param nx Half16NV in value - param ny Half16NV in value - param nz Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Normal3hvNV(v) - return void - param v Half16NV in array [3] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Color3hNV(red, green, blue) - return void - param red Half16NV in value - param green Half16NV in value - param blue Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Color3hvNV(v) - return void - param v Half16NV in array [3] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Color4hNV(red, green, blue, alpha) - return void - param red Half16NV in value - param green Half16NV in value - param blue Half16NV in value - param alpha Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Color4hvNV(v) - return void - param v Half16NV in array [4] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoord1hNV(s) - return void - param s Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoord1hvNV(v) - return void - param v Half16NV in array [1] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoord2hNV(s, t) - return void - param s Half16NV in value - param t Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoord2hvNV(v) - return void - param v Half16NV in array [2] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoord3hNV(s, t, r) - return void - param s Half16NV in value - param t Half16NV in value - param r Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoord3hvNV(v) - return void - param v Half16NV in array [3] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoord4hNV(s, t, r, q) - return void - param s Half16NV in value - param t Half16NV in value - param r Half16NV in value - param q Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoord4hvNV(v) - return void - param v Half16NV in array [4] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoord1hNV(target, s) - return void - param target TextureUnit in value - param s Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoord1hvNV(target, v) - return void - param target TextureUnit in value - param v Half16NV in array [1] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoord2hNV(target, s, t) - return void - param target TextureUnit in value - param s Half16NV in value - param t Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoord2hvNV(target, v) - return void - param target TextureUnit in value - param v Half16NV in array [2] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoord3hNV(target, s, t, r) - return void - param target TextureUnit in value - param s Half16NV in value - param t Half16NV in value - param r Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoord3hvNV(target, v) - return void - param target TextureUnit in value - param v Half16NV in array [3] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoord4hNV(target, s, t, r, q) - return void - param target TextureUnit in value - param s Half16NV in value - param t Half16NV in value - param r Half16NV in value - param q Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MultiTexCoord4hvNV(target, v) - return void - param target TextureUnit in value - param v Half16NV in array [4] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -FogCoordhNV(fog) - return void - param fog Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -FogCoordhvNV(fog) - return void - param fog Half16NV in array [1] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SecondaryColor3hNV(red, green, blue) - return void - param red Half16NV in value - param green Half16NV in value - param blue Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SecondaryColor3hvNV(v) - return void - param v Half16NV in array [3] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexWeighthNV(weight) - return void - param weight Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexWeighthvNV(weight) - return void - param weight Half16NV in array [1] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttrib1hNV(index, x) - return void - param index UInt32 in value - param x Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttrib1hvNV(index, v) - return void - param index UInt32 in value - param v Half16NV in array [1] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttrib2hNV(index, x, y) - return void - param index UInt32 in value - param x Half16NV in value - param y Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttrib2hvNV(index, v) - return void - param index UInt32 in value - param v Half16NV in array [2] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttrib3hNV(index, x, y, z) - return void - param index UInt32 in value - param x Half16NV in value - param y Half16NV in value - param z Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttrib3hvNV(index, v) - return void - param index UInt32 in value - param v Half16NV in array [3] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttrib4hNV(index, x, y, z, w) - return void - param index UInt32 in value - param x Half16NV in value - param y Half16NV in value - param z Half16NV in value - param w Half16NV in value - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttrib4hvNV(index, v) - return void - param index UInt32 in value - param v Half16NV in array [4] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribs1hvNV(index, n, v) - return void - param index UInt32 in value - param n SizeI in value - param v Half16NV in array [n] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribs2hvNV(index, n, v) - return void - param index UInt32 in value - param n SizeI in value - param v Half16NV in array [n] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribs3hvNV(index, n, v) - return void - param index UInt32 in value - param n SizeI in value - param v Half16NV in array [n] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribs4hvNV(index, n, v) - return void - param index UInt32 in value - param n SizeI in value - param v Half16NV in array [n] - category NV_half_float - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #284 -# NV_pixel_data_range commands -# -############################################################################### - -# @@ Need to verify/add GLX protocol - -PixelDataRangeNV(target, length, pointer) - return void - param target PixelDataRangeTargetNV in value - param length SizeI in value - param pointer Void out array [length] - category NV_pixel_data_range - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -FlushPixelDataRangeNV(target) - return void - param target PixelDataRangeTargetNV in value - category NV_pixel_data_range - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #285 -# NV_primitive_restart commands -# -############################################################################### - -# @@ Need to verify/add GLX protocol - -PrimitiveRestartNV() - return void - category NV_primitive_restart - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -PrimitiveRestartIndexNV(index) - return void - param index UInt32 in value - category NV_primitive_restart - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - - -############################################################################### -# -# Extension #286 -# NV_texture_expand_normal commands -# -############################################################################### - -# (none) -newcategory: NV_texture_expand_normal - -############################################################################### -# -# Extension #287 -# NV_vertex_program2 commands -# -############################################################################### - -# (none) -newcategory: NV_vertex_program2 - -############################################################################### -# -# Extension #288 -# ATI_map_object_buffer commands -# -############################################################################### - -# @@ Need to verify/add GLX protocol - -MapObjectBufferATI(buffer) - return VoidPointer - param buffer UInt32 in value - category ATI_map_object_buffer - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -UnmapObjectBufferATI(buffer) - return void - param buffer UInt32 in value - category ATI_map_object_buffer - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #289 -# ATI_separate_stencil commands -# -############################################################################### - -# @@ Need to verify/add GLX protocol - -StencilOpSeparateATI(face, sfail, dpfail, dppass) - return void - param face StencilFaceDirection in value - param sfail StencilOp in value - param dpfail StencilOp in value - param dppass StencilOp in value - category ATI_separate_stencil - version 1.2 - extension - glxropcode ? - glxflags ignore - alias StencilOpSeparate - -StencilFuncSeparateATI(frontfunc, backfunc, ref, mask) - return void - param frontfunc StencilFunction in value - param backfunc StencilFunction in value - param ref ClampedStencilValue in value - param mask MaskedStencilValue in value - category ATI_separate_stencil - version 1.2 - extension - glxropcode ? - glxflags ignore - alias StencilFuncSeparate - -############################################################################### -# -# Extension #290 -# ATI_vertex_attrib_array_object commands -# -############################################################################### - -# @@ Need to verify/add GLX protocol - -VertexAttribArrayObjectATI(index, size, type, normalized, stride, buffer, offset) - return void - param index UInt32 in value - param size Int32 in value - param type VertexAttribPointerTypeARB in value - param normalized Boolean in value - param stride SizeI in value - param buffer UInt32 in value - param offset UInt32 in value - category ATI_vertex_attrib_array_object - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetVertexAttribArrayObjectfvATI(index, pname, params) - return void - param index UInt32 in value - param pname ArrayObjectPNameATI in value - param params Float32 out array [pname] - category ATI_vertex_attrib_array_object - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetVertexAttribArrayObjectivATI(index, pname, params) - return void - param index UInt32 in value - param pname ArrayObjectPNameATI in value - param params Int32 out array [pname] - category ATI_vertex_attrib_array_object - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #291 - OpenGL ES only, not in glext.h -# OES_byte_coordinates commands -# -############################################################################### - -# void Vertex{234}bOES(T coords) -# void Vertex{234}bvOES(T *coords) -# void TexCoord{1234}bOES(T coords) -# void TexCoord{1234}bvOES(T *coords) -# void MultiTexCoord{1234}bOES(enum texture, T coords) -# void MultiTexCoord{1234}bvOES(enum texture, T *coords) -# All are handcode - mapped to non-byte GLX protocol on client side - -# newcategory: OES_byte_coordinates - -############################################################################### -# -# Extension #292 - OpenGL ES only, not in glext.h -# OES_fixed_point commands -# -############################################################################### - -# Too many to list in just a comment - see spec in the extension registry -# All are handcode - mapped to non-byte GLX protocol on client side - -# newcategory: OES_fixed_point - -############################################################################### -# -# Extension #293 - OpenGL ES only, not in glext.h -# OES_single_precision commands -# -############################################################################### - -# void DepthRangefOES(clampf n, clampf f) -# void FrustumfOES(float l, float r, float b, float t, float n, float f) -# void OrthofOES(float l, float r, float b, float t, float n, float f) -# void ClipPlanefOES(enum plane, const float* equation) -# void glClearDepthfOES(clampd depth) -# GLX ropcodes 4308-4312 (not respectively, see extension spec) -# void GetClipPlanefOES(enum plane, float* equation) -# GLX vendor private 1421 - -# newcategory: OES_single_precision - -############################################################################### -# -# Extension #294 - OpenGL ES only, not in glext.h -# OES_compressed_paletted_texture commands -# -############################################################################### - -# (none) -# newcategory: OES_compressed_paletted_texture - -############################################################################### -# -# Extension #295 - This is an OpenGL ES extension, but also implemented in Mesa -# OES_read_format commands -# -############################################################################### - -# (none) -newcategory: OES_read_format - -############################################################################### -# -# Extension #296 - OpenGL ES only, not in glext.h -# OES_query_matrix commands -# -############################################################################### - -# bitfield queryMatrixxOES(fixed mantissa[16], int exponent[16]) -# All are handcode - mapped to non-byte GLX protocol on client side - -# newcategory: OES_query_matrix - -############################################################################### -# -# Extension #297 -# EXT_depth_bounds_test commands -# -############################################################################### - -DepthBoundsEXT(zmin, zmax) - return void - param zmin ClampedFloat64 in value - param zmax ClampedFloat64 in value - category EXT_depth_bounds_test - version 1.2 - extension - glxropcode 4229 - offset 699 - -############################################################################### -# -# Extension #298 -# EXT_texture_mirror_clamp commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_mirror_clamp - -############################################################################### -# -# Extension #299 -# EXT_blend_equation_separate commands -# -############################################################################### - -BlendEquationSeparateEXT(modeRGB, modeAlpha) - return void - param modeRGB BlendEquationModeEXT in value - param modeAlpha BlendEquationModeEXT in value - category EXT_blend_equation_separate - version 1.2 - extension - glxropcode 4228 - alias BlendEquationSeparate - -############################################################################### -# -# Extension #300 -# MESA_pack_invert commands -# -############################################################################### - -# (none) -newcategory: MESA_pack_invert - -############################################################################### -# -# Extension #301 -# MESA_ycbcr_texture commands -# -############################################################################### - -# (none) -newcategory: MESA_ycbcr_texture - -############################################################################### -# -# Extension #301 -# MESA_ycbcr_texture commands -# -############################################################################### - -# (none) -newcategory: MESA_ycbcr_texture - -############################################################################### -# -# Extension #302 -# EXT_pixel_buffer_object commands -# -############################################################################### - -# (none) -newcategory: EXT_pixel_buffer_object - -############################################################################### -# -# Extension #303 -# NV_fragment_program_option commands -# -############################################################################### - -# (none) -newcategory: NV_fragment_program_option - -############################################################################### -# -# Extension #304 -# NV_fragment_program2 commands -# -############################################################################### - -# (none) -newcategory: NV_fragment_program2 - -############################################################################### -# -# Extension #305 -# NV_vertex_program2_option commands -# -############################################################################### - -# (none) -newcategory: NV_vertex_program2_option - -############################################################################### -# -# Extension #306 -# NV_vertex_program3 commands -# -############################################################################### - -# (none) -newcategory: NV_vertex_program3 - -############################################################################### -# -# Extension #307 - GLX_SGIX_hyperpipe commands -# Extension #308 - GLX_MESA_agp_offset commands -# Extension #309 - GL_EXT_texture_compression_dxt1 (OpenGL ES only, subset of _st3c version) -# -############################################################################### - -# (none) -# newcategory: EXT_texture_compression_dxt1 - -############################################################################### -# -# Extension #310 -# EXT_framebuffer_object commands -# -############################################################################### - -IsRenderbufferEXT(renderbuffer) - return Boolean - param renderbuffer UInt32 in value - category EXT_framebuffer_object - version 1.2 - extension - glxvendorpriv 1422 - glxflags ignore - alias IsRenderbuffer - -# Not aliased to BindRenderbuffer -BindRenderbufferEXT(target, renderbuffer) - return void - param target RenderbufferTarget in value - param renderbuffer UInt32 in value - category EXT_framebuffer_object - version 1.2 - extension - glxropcode 4316 - glxflags ignore - -DeleteRenderbuffersEXT(n, renderbuffers) - return void - param n SizeI in value - param renderbuffers UInt32 in array [n] - category EXT_framebuffer_object - version 1.2 - extension - glxropcode 4317 - glxflags ignore - alias DeleteRenderbuffers - -GenRenderbuffersEXT(n, renderbuffers) - return void - param n SizeI in value - param renderbuffers UInt32 out array [n] - category EXT_framebuffer_object - version 1.2 - extension - glxvendorpriv 1423 - glxflags ignore - alias GenRenderbuffers - -RenderbufferStorageEXT(target, internalformat, width, height) - return void - param target RenderbufferTarget in value - param internalformat GLenum in value - param width SizeI in value - param height SizeI in value - category EXT_framebuffer_object - version 1.2 - extension - glxropcode 4318 - glxflags ignore - alias RenderbufferStorage - -GetRenderbufferParameterivEXT(target, pname, params) - return void - param target RenderbufferTarget in value - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_framebuffer_object - dlflags notlistable - version 1.2 - extension - glxvendorpriv 1424 - glxflags ignore - alias GetRenderbufferParameteriv - -IsFramebufferEXT(framebuffer) - return Boolean - param framebuffer UInt32 in value - category EXT_framebuffer_object - version 1.2 - extension - glxvendorpriv 1425 - glxflags ignore - alias IsFramebuffer - -# Not aliased to BindFramebuffer -BindFramebufferEXT(target, framebuffer) - return void - param target FramebufferTarget in value - param framebuffer UInt32 in value - category EXT_framebuffer_object - version 1.2 - extension - glxropcode 4319 - glxflags ignore - -DeleteFramebuffersEXT(n, framebuffers) - return void - param n SizeI in value - param framebuffers UInt32 in array [n] - category EXT_framebuffer_object - version 1.2 - extension - glxropcode 4320 - glxflags ignore - alias DeleteFramebuffers - -GenFramebuffersEXT(n, framebuffers) - return void - param n SizeI in value - param framebuffers UInt32 out array [n] - category EXT_framebuffer_object - version 1.2 - extension - glxvendorpriv 1426 - glxflags ignore - alias GenFramebuffers - -CheckFramebufferStatusEXT(target) - return GLenum - param target FramebufferTarget in value - category EXT_framebuffer_object - version 1.2 - extension - glxvendorpriv 1427 - glxflags ignore - alias CheckFramebufferStatus - -FramebufferTexture1DEXT(target, attachment, textarget, texture, level) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param textarget GLenum in value - param texture UInt32 in value - param level Int32 in value - category EXT_framebuffer_object - version 1.2 - extension - glxropcode 4321 - glxflags ignore - alias FramebufferTexture1D - -FramebufferTexture2DEXT(target, attachment, textarget, texture, level) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param textarget GLenum in value - param texture UInt32 in value - param level Int32 in value - category EXT_framebuffer_object - version 1.2 - extension - glxropcode 4322 - glxflags ignore - alias FramebufferTexture2D - -FramebufferTexture3DEXT(target, attachment, textarget, texture, level, zoffset) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param textarget GLenum in value - param texture UInt32 in value - param level Int32 in value - param zoffset Int32 in value - category EXT_framebuffer_object - version 1.2 - extension - glxropcode 4323 - glxflags ignore - alias FramebufferTexture3D - -FramebufferRenderbufferEXT(target, attachment, renderbuffertarget, renderbuffer) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param renderbuffertarget RenderbufferTarget in value - param renderbuffer UInt32 in value - category EXT_framebuffer_object - version 1.2 - extension - glxropcode 4324 - glxflags ignore - alias FramebufferRenderbuffer - -GetFramebufferAttachmentParameterivEXT(target, attachment, pname, params) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_framebuffer_object - dlflags notlistable - version 1.2 - extension - glxvendorpriv 1428 - glxflags ignore - alias GetFramebufferAttachmentParameteriv - -GenerateMipmapEXT(target) - return void - param target GLenum in value - category EXT_framebuffer_object - version 1.2 - extension - glxropcode 4325 - glxflags ignore - alias GenerateMipmap - - -############################################################################### -# -# Extension #311 -# GREMEDY_string_marker commands -# -############################################################################### - -StringMarkerGREMEDY(len, string) - return void - param len SizeI in value - param string Void in array [len] - category GREMEDY_string_marker - version 1.0 - extension - glxflags ignore - offset ? - -############################################################################### -# -# Extension #312 -# EXT_packed_depth_stencil commands -# -############################################################################### - -# (none) -newcategory: EXT_packed_depth_stencil - -############################################################################### -# -# Extension #313 - WGL_3DL_stereo_control -# -############################################################################### - -############################################################################### -# -# Extension #314 -# EXT_stencil_clear_tag commands -# -############################################################################### - -StencilClearTagEXT(stencilTagBits, stencilClearTag) - return void - param stencilTagBits SizeI in value - param stencilClearTag UInt32 in value - category EXT_stencil_clear_tag - version 1.5 - extension - glxropcode 4223 - glxflags ignore - offset ? - -############################################################################### -# -# Extension #315 -# EXT_texture_sRGB commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_sRGB - -############################################################################### -# -# Extension #316 -# EXT_framebuffer_blit commands -# -############################################################################### - -BlitFramebufferEXT(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter) - return void - param srcX0 Int32 in value - param srcY0 Int32 in value - param srcX1 Int32 in value - param srcY1 Int32 in value - param dstX0 Int32 in value - param dstY0 Int32 in value - param dstX1 Int32 in value - param dstY1 Int32 in value - param mask ClearBufferMask in value - param filter GLenum in value - category EXT_framebuffer_blit - version 1.5 - glxropcode 4330 - alias BlitFramebuffer - -############################################################################### -# -# Extension #317 -# EXT_framebuffer_multisample commands -# -############################################################################### - -RenderbufferStorageMultisampleEXT(target, samples, internalformat, width, height) - return void - param target GLenum in value - param samples SizeI in value - param internalformat GLenum in value - param width SizeI in value - param height SizeI in value - category EXT_framebuffer_multisample - version 1.5 - glxropcode 4331 - alias RenderbufferStorageMultisample - -############################################################################### -# -# Extension #318 -# MESAX_texture_stack commands -# -############################################################################### - -# (none) -newcategory: MESAX_texture_stack - -############################################################################### -# -# Extension #319 -# EXT_timer_query commands -# -############################################################################### - -GetQueryObjecti64vEXT(id, pname, params) - return void - param id UInt32 in value - param pname GLenum in value - param params Int64EXT out array [pname] - category EXT_timer_query - dlflags notlistable - version 1.5 - glxvendorpriv 1328 - glxflags ignore - offset ? - -GetQueryObjectui64vEXT(id, pname, params) - return void - param id UInt32 in value - param pname GLenum in value - param params UInt64EXT out array [pname] - category EXT_timer_query - dlflags notlistable - version 1.5 - glxvendorpriv 1329 - glxflags ignore - offset ? - -############################################################################### -# -# Extension #320 -# EXT_gpu_program_parameters commands -# -############################################################################### - -ProgramEnvParameters4fvEXT(target, index, count, params) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param count SizeI in value - param params Float32 in array [count*4] - category EXT_gpu_program_parameters - version 1.2 - glxropcode 4281 - offset ? - -ProgramLocalParameters4fvEXT(target, index, count, params) - return void - param target ProgramTargetARB in value - param index UInt32 in value - param count SizeI in value - param params Float32 in array [count*4] - category EXT_gpu_program_parameters - version 1.2 - glxropcode 4282 - offset ? - -############################################################################### -# -# Extension #321 -# APPLE_flush_buffer_range commands -# -############################################################################### - -BufferParameteriAPPLE(target, pname, param) - return void - param target GLenum in value - param pname GLenum in value - param param Int32 in value - category APPLE_flush_buffer_range - version 1.5 - extension - glxropcode ? - glxflags ignore - offset ? - -FlushMappedBufferRangeAPPLE(target, offset, size) - return void - param target GLenum in value - param offset BufferOffset in value - param size BufferSize in value - category APPLE_flush_buffer_range - version 1.5 - extension - glxropcode ? - glxflags ignore - alias FlushMappedBufferRange - -############################################################################### -# -# Extension #322 -# NV_gpu_program4 commands -# -############################################################################### - -ProgramLocalParameterI4iNV(target, index, x, y, z, w) - return void - param target ProgramTarget in value - param index UInt32 in value - param x Int32 in value - param y Int32 in value - param z Int32 in value - param w Int32 in value - category NV_gpu_program4 - version 1.3 - vectorequiv ProgramLocalParameterI4ivNV - glxvectorequiv ProgramLocalParameterI4ivNV - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ProgramLocalParameterI4ivNV(target, index, params) - return void - param target ProgramTarget in value - param index UInt32 in value - param params Int32 in array [4] - category NV_gpu_program4 - version 1.3 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ProgramLocalParametersI4ivNV(target, index, count, params) - return void - param target ProgramTarget in value - param index UInt32 in value - param count SizeI in value - param params Int32 in array [count*4] - category NV_gpu_program4 - version 1.3 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ProgramLocalParameterI4uiNV(target, index, x, y, z, w) - return void - param target ProgramTarget in value - param index UInt32 in value - param x UInt32 in value - param y UInt32 in value - param z UInt32 in value - param w UInt32 in value - category NV_gpu_program4 - version 1.3 - vectorequiv ProgramLocalParameterI4uivNV - glxvectorequiv ProgramLocalParameterI4uivNV - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ProgramLocalParameterI4uivNV(target, index, params) - return void - param target ProgramTarget in value - param index UInt32 in value - param params UInt32 in array [4] - category NV_gpu_program4 - version 1.3 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ProgramLocalParametersI4uivNV(target, index, count, params) - return void - param target ProgramTarget in value - param index UInt32 in value - param count SizeI in value - param params UInt32 in array [count*4] - category NV_gpu_program4 - version 1.3 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ProgramEnvParameterI4iNV(target, index, x, y, z, w) - return void - param target ProgramTarget in value - param index UInt32 in value - param x Int32 in value - param y Int32 in value - param z Int32 in value - param w Int32 in value - category NV_gpu_program4 - version 1.3 - vectorequiv ProgramEnvParameterI4ivNV - glxvectorequiv ProgramEnvParameterI4ivNV - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ProgramEnvParameterI4ivNV(target, index, params) - return void - param target ProgramTarget in value - param index UInt32 in value - param params Int32 in array [4] - category NV_gpu_program4 - version 1.3 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ProgramEnvParametersI4ivNV(target, index, count, params) - return void - param target ProgramTarget in value - param index UInt32 in value - param count SizeI in value - param params Int32 in array [count*4] - category NV_gpu_program4 - version 1.3 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ProgramEnvParameterI4uiNV(target, index, x, y, z, w) - return void - param target ProgramTarget in value - param index UInt32 in value - param x UInt32 in value - param y UInt32 in value - param z UInt32 in value - param w UInt32 in value - category NV_gpu_program4 - version 1.3 - vectorequiv ProgramEnvParameterI4uivNV - glxvectorequiv ProgramEnvParameterI4uivNV - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ProgramEnvParameterI4uivNV(target, index, params) - return void - param target ProgramTarget in value - param index UInt32 in value - param params UInt32 in array [4] - category NV_gpu_program4 - version 1.3 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ProgramEnvParametersI4uivNV(target, index, count, params) - return void - param target ProgramTarget in value - param index UInt32 in value - param count SizeI in value - param params UInt32 in array [count*4] - category NV_gpu_program4 - version 1.3 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -GetProgramLocalParameterIivNV(target, index, params) - return void - param target ProgramTarget in value - param index UInt32 in value - param params Int32 out array [4] - dlflags notlistable - category NV_gpu_program4 - version 1.3 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -GetProgramLocalParameterIuivNV(target, index, params) - return void - param target ProgramTarget in value - param index UInt32 in value - param params UInt32 out array [4] - dlflags notlistable - category NV_gpu_program4 - version 1.3 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -GetProgramEnvParameterIivNV(target, index, params) - return void - param target ProgramTarget in value - param index UInt32 in value - param params Int32 out array [4] - dlflags notlistable - category NV_gpu_program4 - version 1.3 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -GetProgramEnvParameterIuivNV(target, index, params) - return void - param target ProgramTarget in value - param index UInt32 in value - param params UInt32 out array [4] - dlflags notlistable - category NV_gpu_program4 - version 1.3 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -############################################################################### -# -# Extension #323 -# NV_geometry_program4 commands -# -############################################################################### - -ProgramVertexLimitNV(target, limit) - return void - param target ProgramTarget in value - param limit Int32 in value - category NV_geometry_program4 - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - -FramebufferTextureEXT(target, attachment, texture, level) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param texture Texture in value - param level CheckedInt32 in value - category NV_geometry_program4 - version 2.0 - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - alias FramebufferTextureARB - -FramebufferTextureLayerEXT(target, attachment, texture, level, layer) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param texture Texture in value - param level CheckedInt32 in value - param layer CheckedInt32 in value - category NV_geometry_program4 - version 2.0 - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - alias FramebufferTextureLayer - -FramebufferTextureFaceEXT(target, attachment, texture, level, face) - return void - param target FramebufferTarget in value - param attachment FramebufferAttachment in value - param texture Texture in value - param level CheckedInt32 in value - param face TextureTarget in value - category NV_geometry_program4 - version 2.0 - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - alias FramebufferTextureFaceARB - -############################################################################### -# -# Extension #324 -# EXT_geometry_shader4 commands -# -############################################################################### - -ProgramParameteriEXT(program, pname, value) - return void - param program UInt32 in value - param pname ProgramParameterPName in value - param value Int32 in value - category EXT_geometry_shader4 - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias ProgramParameteriARB - -############################################################################### -# -# Extension #325 -# NV_vertex_program4 commands -# -############################################################################### - -VertexAttribI1iEXT(index, x) - return void - param index UInt32 in value - param x Int32 in value - category NV_vertex_program4 - beginend allow-inside - vectorequiv VertexAttribI1ivEXT - glxvectorequiv VertexAttribI1ivEXT - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI1i - -VertexAttribI2iEXT(index, x, y) - return void - param index UInt32 in value - param x Int32 in value - param y Int32 in value - category NV_vertex_program4 - beginend allow-inside - vectorequiv VertexAttribI2ivEXT - glxvectorequiv VertexAttribI2ivEXT - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI2i - -VertexAttribI3iEXT(index, x, y, z) - return void - param index UInt32 in value - param x Int32 in value - param y Int32 in value - param z Int32 in value - category NV_vertex_program4 - beginend allow-inside - vectorequiv VertexAttribI3ivEXT - glxvectorequiv VertexAttribI3ivEXT - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI3i - -VertexAttribI4iEXT(index, x, y, z, w) - return void - param index UInt32 in value - param x Int32 in value - param y Int32 in value - param z Int32 in value - param w Int32 in value - category NV_vertex_program4 - beginend allow-inside - vectorequiv VertexAttribI4ivEXT - glxvectorequiv VertexAttribI4ivEXT - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI4i - -VertexAttribI1uiEXT(index, x) - return void - param index UInt32 in value - param x UInt32 in value - category NV_vertex_program4 - beginend allow-inside - vectorequiv VertexAttribI1uivEXT - glxvectorequiv VertexAttribI1uivEXT - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI1ui - -VertexAttribI2uiEXT(index, x, y) - return void - param index UInt32 in value - param x UInt32 in value - param y UInt32 in value - category NV_vertex_program4 - beginend allow-inside - vectorequiv VertexAttribI2uivEXT - glxvectorequiv VertexAttribI2uivEXT - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI2ui - -VertexAttribI3uiEXT(index, x, y, z) - return void - param index UInt32 in value - param x UInt32 in value - param y UInt32 in value - param z UInt32 in value - category NV_vertex_program4 - beginend allow-inside - vectorequiv VertexAttribI3uivEXT - glxvectorequiv VertexAttribI3uivEXT - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI3ui - -VertexAttribI4uiEXT(index, x, y, z, w) - return void - param index UInt32 in value - param x UInt32 in value - param y UInt32 in value - param z UInt32 in value - param w UInt32 in value - category NV_vertex_program4 - beginend allow-inside - vectorequiv VertexAttribI4uivEXT - glxvectorequiv VertexAttribI4uivEXT - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI4ui - -VertexAttribI1ivEXT(index, v) - return void - param index UInt32 in value - param v Int32 in array [1] - category NV_vertex_program4 - beginend allow-inside - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI1iv - -VertexAttribI2ivEXT(index, v) - return void - param index UInt32 in value - param v Int32 in array [2] - category NV_vertex_program4 - beginend allow-inside - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI2iv - -VertexAttribI3ivEXT(index, v) - return void - param index UInt32 in value - param v Int32 in array [3] - category NV_vertex_program4 - beginend allow-inside - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI3iv - -VertexAttribI4ivEXT(index, v) - return void - param index UInt32 in value - param v Int32 in array [4] - category NV_vertex_program4 - beginend allow-inside - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI4iv - -VertexAttribI1uivEXT(index, v) - return void - param index UInt32 in value - param v UInt32 in array [1] - category NV_vertex_program4 - beginend allow-inside - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI1uiv - -VertexAttribI2uivEXT(index, v) - return void - param index UInt32 in value - param v UInt32 in array [2] - category NV_vertex_program4 - beginend allow-inside - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI2uiv - -VertexAttribI3uivEXT(index, v) - return void - param index UInt32 in value - param v UInt32 in array [3] - category NV_vertex_program4 - beginend allow-inside - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI3uiv - -VertexAttribI4uivEXT(index, v) - return void - param index UInt32 in value - param v UInt32 in array [4] - category NV_vertex_program4 - beginend allow-inside - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI4uiv - -VertexAttribI4bvEXT(index, v) - return void - param index UInt32 in value - param v Int8 in array [4] - category NV_vertex_program4 - beginend allow-inside - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI4bv - -VertexAttribI4svEXT(index, v) - return void - param index UInt32 in value - param v Int16 in array [4] - category NV_vertex_program4 - beginend allow-inside - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI4sv - -VertexAttribI4ubvEXT(index, v) - return void - param index UInt32 in value - param v UInt8 in array [4] - category NV_vertex_program4 - beginend allow-inside - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI4ubv - -VertexAttribI4usvEXT(index, v) - return void - param index UInt32 in value - param v UInt16 in array [4] - category NV_vertex_program4 - beginend allow-inside - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribI4usv - -VertexAttribIPointerEXT(index, size, type, stride, pointer) - return void - param index UInt32 in value - param size Int32 in value - param type VertexAttribEnum in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(size/type/stride)] retained - category NV_vertex_program4 - dlflags notlistable - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias VertexAttribIPointer - -GetVertexAttribIivEXT(index, pname, params) - return void - param index UInt32 in value - param pname VertexAttribEnum in value - param params Int32 out array [1] - category NV_vertex_program4 - dlflags notlistable - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias GetVertexAttribIiv - -GetVertexAttribIuivEXT(index, pname, params) - return void - param index UInt32 in value - param pname VertexAttribEnum in value - param params UInt32 out array [1] - category NV_vertex_program4 - dlflags notlistable - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - alias GetVertexAttribIuiv - -############################################################################### -# -# Extension #326 -# EXT_gpu_shader4 commands -# -############################################################################### - -GetUniformuivEXT(program, location, params) - return void - param program UInt32 in value - param location Int32 in value - param params UInt32 out array [COMPSIZE(program/location)] - category EXT_gpu_shader4 - dlflags notlistable - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias GetUniformuiv - -BindFragDataLocationEXT(program, color, name) - return void - param program UInt32 in value - param color UInt32 in value - param name Char in array [COMPSIZE(name)] - category EXT_gpu_shader4 - dlflags notlistable - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias BindFragDataLocation - -GetFragDataLocationEXT(program, name) - return Int32 - param program UInt32 in value - param name Char in array [COMPSIZE(name)] - category EXT_gpu_shader4 - dlflags notlistable - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias GetFragDataLocation - -Uniform1uiEXT(location, v0) - return void - param location Int32 in value - param v0 UInt32 in value - category EXT_gpu_shader4 - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias Uniform1ui - -Uniform2uiEXT(location, v0, v1) - return void - param location Int32 in value - param v0 UInt32 in value - param v1 UInt32 in value - category EXT_gpu_shader4 - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias Uniform2ui - -Uniform3uiEXT(location, v0, v1, v2) - return void - param location Int32 in value - param v0 UInt32 in value - param v1 UInt32 in value - param v2 UInt32 in value - category EXT_gpu_shader4 - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias Uniform3ui - -Uniform4uiEXT(location, v0, v1, v2, v3) - return void - param location Int32 in value - param v0 UInt32 in value - param v1 UInt32 in value - param v2 UInt32 in value - param v3 UInt32 in value - category EXT_gpu_shader4 - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias Uniform4ui - -Uniform1uivEXT(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value UInt32 in array [count] - category EXT_gpu_shader4 - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias Uniform1uiv - -Uniform2uivEXT(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value UInt32 in array [count*2] - category EXT_gpu_shader4 - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias Uniform2uiv - -Uniform3uivEXT(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value UInt32 in array [count*3] - category EXT_gpu_shader4 - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias Uniform3uiv - -Uniform4uivEXT(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value UInt32 in array [count*4] - category EXT_gpu_shader4 - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias Uniform4uiv - -############################################################################### -# -# Extension #327 -# EXT_draw_instanced commands -# -############################################################################### - -DrawArraysInstancedEXT(mode, start, count, primcount) - return void - param mode BeginMode in value - param start Int32 in value - param count SizeI in value - param primcount SizeI in value - category EXT_draw_instanced - version 2.0 - extension soft WINSOFT - dlflags notlistable - vectorequiv ArrayElement - glfflags ignore - glxflags ignore - alias DrawArraysInstancedARB - -DrawElementsInstancedEXT(mode, count, type, indices, primcount) - return void - param mode BeginMode in value - param count SizeI in value - param type DrawElementsType in value - param indices Void in array [COMPSIZE(count/type)] - param primcount SizeI in value - category EXT_draw_instanced - version 2.0 - extension soft WINSOFT - dlflags notlistable - vectorequiv ArrayElement - glfflags ignore - glxflags ignore - alias DrawElementsInstancedARB - -############################################################################### -# -# Extension #328 -# EXT_packed_float commands -# -############################################################################### - -# (none) -newcategory: EXT_packed_float - -############################################################################### -# -# Extension #329 -# EXT_texture_array commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_array - -############################################################################### -# -# Extension #330 -# EXT_texture_buffer_object commands -# -############################################################################### - -TexBufferEXT(target, internalformat, buffer) - return void - param target TextureTarget in value - param internalformat GLenum in value - param buffer UInt32 in value - category EXT_texture_buffer_object - version 2.0 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - alias TexBufferARB - -############################################################################### -# -# Extension #331 -# EXT_texture_compression_latc commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_compression_latc - -############################################################################### -# -# Extension #332 -# EXT_texture_compression_rgtc commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_compression_rgtc - -############################################################################### -# -# Extension #333 -# EXT_texture_shared_exponent commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_shared_exponent - -############################################################################### -# -# Extension #334 -# NV_depth_buffer_float commands -# -############################################################################### - -DepthRangedNV(zNear, zFar) - return void - param zNear Float64 in value - param zFar Float64 in value - category NV_depth_buffer_float - extension soft WINSOFT NV50 - version 2.0 - glfflags ignore - glxflags ignore - -ClearDepthdNV(depth) - return void - param depth Float64 in value - category NV_depth_buffer_float - extension soft WINSOFT NV50 - version 2.0 - glfflags ignore - glxflags ignore - -DepthBoundsdNV(zmin, zmax) - return void - param zmin Float64 in value - param zmax Float64 in value - category NV_depth_buffer_float - extension soft WINSOFT NV50 - version 2.0 - glfflags ignore - glxflags ignore - -############################################################################### -# -# Extension #335 -# NV_fragment_program4 commands -# -############################################################################### - -# (none) -newcategory: NV_fragment_program4 - -############################################################################### -# -# Extension #336 -# NV_framebuffer_multisample_coverage commands -# -############################################################################### - -RenderbufferStorageMultisampleCoverageNV(target, coverageSamples, colorSamples, internalformat, width, height) - return void - param target RenderbufferTarget in value - param coverageSamples SizeI in value - param colorSamples SizeI in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - category NV_framebuffer_multisample_coverage - version 1.5 - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - -############################################################################### -# -# Extension #337 -# EXT_framebuffer_sRGB commands -# -############################################################################### - -# (none) -newcategory: EXT_framebuffer_sRGB - -############################################################################### -# -# Extension #338 -# NV_geometry_shader4 commands -# -############################################################################### - -# (none) -newcategory: NV_geometry_shader4 - -############################################################################### -# -# Extension #339 -# NV_parameter_buffer_object commands -# -############################################################################### - -ProgramBufferParametersfvNV(target, buffer, index, count, params) - return void - param target ProgramTarget in value - param buffer UInt32 in value - param index UInt32 in value - param count SizeI in value - param params Float32 in array [count] - category NV_parameter_buffer_object - version 1.2 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ProgramBufferParametersIivNV(target, buffer, index, count, params) - return void - param target ProgramTarget in value - param buffer UInt32 in value - param index UInt32 in value - param count SizeI in value - param params Int32 in array [count] - category NV_parameter_buffer_object - version 1.2 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ProgramBufferParametersIuivNV(target, buffer, index, count, params) - return void - param target ProgramTarget in value - param buffer UInt32 in value - param index UInt32 in value - param count SizeI in value - param params UInt32 in array [count] - category NV_parameter_buffer_object - version 1.2 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -############################################################################### -# -# Extension #340 -# EXT_draw_buffers2 commands -# -############################################################################### - -ColorMaskIndexedEXT(index, r, g, b, a) - return void - param index UInt32 in value - param r Boolean in value - param g Boolean in value - param b Boolean in value - param a Boolean in value - category EXT_draw_buffers2 - version 2.0 - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias ColorMaski - -GetBooleanIndexedvEXT(target, index, data) - return void - param target GLenum in value - param index UInt32 in value - param data Boolean out array [COMPSIZE(target)] - category EXT_draw_buffers2 - version 2.0 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias GetBooleani_v - -GetIntegerIndexedvEXT(target, index, data) - return void - param target GLenum in value - param index UInt32 in value - param data Int32 out array [COMPSIZE(target)] - category EXT_draw_buffers2 - version 2.0 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias GetIntegeri_v - -EnableIndexedEXT(target, index) - return void - param target GLenum in value - param index UInt32 in value - category EXT_draw_buffers2 - version 2.0 - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias Enablei - -DisableIndexedEXT(target, index) - return void - param target GLenum in value - param index UInt32 in value - category EXT_draw_buffers2 - version 2.0 - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias Disablei - -IsEnabledIndexedEXT(target, index) - return Boolean - param target GLenum in value - param index UInt32 in value - category EXT_draw_buffers2 - version 2.0 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias IsEnabledi - -############################################################################### -# -# Extension #341 -# NV_transform_feedback commands -# -############################################################################### - -BeginTransformFeedbackNV(primitiveMode) - return void - param primitiveMode GLenum in value - category NV_transform_feedback - version 1.5 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias BeginTransformFeedback - -EndTransformFeedbackNV() - return void - category NV_transform_feedback - version 1.5 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias EndTransformFeedback - -TransformFeedbackAttribsNV(count, attribs, bufferMode) - return void - param count UInt32 in value - param attribs Int32 in array [COMPSIZE(count)] - param bufferMode GLenum in value - category NV_transform_feedback - version 1.5 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - -BindBufferRangeNV(target, index, buffer, offset, size) - return void - param target GLenum in value - param index UInt32 in value - param buffer UInt32 in value - param offset BufferOffset in value - param size BufferSize in value - category NV_transform_feedback - version 1.5 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias BindBufferRange - -BindBufferOffsetNV(target, index, buffer, offset) - return void - param target GLenum in value - param index UInt32 in value - param buffer UInt32 in value - param offset BufferOffset in value - category NV_transform_feedback - version 1.5 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias BindBufferOffsetEXT - -BindBufferBaseNV(target, index, buffer) - return void - param target GLenum in value - param index UInt32 in value - param buffer UInt32 in value - category NV_transform_feedback - version 1.5 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias BindBufferBase - -TransformFeedbackVaryingsNV(program, count, locations, bufferMode) - return void - param program UInt32 in value - param count SizeI in value - param locations Int32 in array [count] - param bufferMode GLenum in value - category NV_transform_feedback - version 1.5 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias TransformFeedbackVaryings - -ActiveVaryingNV(program, name) - return void - param program UInt32 in value - param name Char in array [COMPSIZE(name)] - category NV_transform_feedback - version 1.5 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - -GetVaryingLocationNV(program, name) - return Int32 - param program UInt32 in value - param name Char in array [COMPSIZE(name)] - category NV_transform_feedback - dlflags notlistable - version 1.5 - glfflags ignore - glxflags ignore - extension soft WINSOFT - -GetActiveVaryingNV(program, index, bufSize, length, size, type, name) - return void - param program UInt32 in value - param index UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param size SizeI out array [1] - param type GLenum out array [1] - param name Char out array [COMPSIZE(program/index/bufSize)] - category NV_transform_feedback - dlflags notlistable - version 1.5 - extension soft WINSOFT - glfflags ignore - glxflags ignore - -GetTransformFeedbackVaryingNV(program, index, location) - return void - param program UInt32 in value - param index UInt32 in value - param location Int32 out array [1] - category NV_transform_feedback - dlflags notlistable - version 1.5 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias GetTransformFeedbackVarying - -# These commands require ARB_transform_feedback3 -#@@ void TransformFeedbackStreamAttribsNV(sizei count, const int * attribs, sizei nbuffers, const int *bufstreams, enum bufferMode); - -TransformFeedbackStreamAttribsNV(count, attribs, nbuffers, bufstreams, bufferMode) - return void - param count SizeI in value - param attribs Int32 in array [count] - param nbuffers SizeI in value - param bufstreams Int32 in array [nbuffers] - param bufferMode GLenum in value - category NV_transform_feedback - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - - -############################################################################### -# -# Extension #342 -# EXT_bindable_uniform commands -# -############################################################################### - -UniformBufferEXT(program, location, buffer) - return void - param program UInt32 in value - param location Int32 in value - param buffer UInt32 in value - category EXT_bindable_uniform - version 2.0 - extension soft WINSOFT - glxflags ignore - glfflags ignore - -GetUniformBufferSizeEXT(program, location) - return Int32 - param program UInt32 in value - param location Int32 in value - category EXT_bindable_uniform - dlflags notlistable - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - -GetUniformOffsetEXT(program, location) - return BufferOffset - param program UInt32 in value - param location Int32 in value - category EXT_bindable_uniform - dlflags notlistable - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - -############################################################################### -# -# Extension #343 -# EXT_texture_integer extension commands -# -############################################################################### - -TexParameterIivEXT(target, pname, params) - return void - param target TextureTarget in value - param pname TextureParameterName in value - param params Int32 in array [COMPSIZE(pname)] - category EXT_texture_integer - version 2.0 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - alias TexParameterIiv - -TexParameterIuivEXT(target, pname, params) - return void - param target TextureTarget in value - param pname TextureParameterName in value - param params UInt32 in array [COMPSIZE(pname)] - category EXT_texture_integer - version 2.0 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - alias TexParameterIuiv - -GetTexParameterIivEXT(target, pname, params) - return void - param target TextureTarget in value - param pname GetTextureParameter in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_texture_integer - dlflags notlistable - version 1.0 - version 2.0 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - alias GetTexParameterIiv - -GetTexParameterIuivEXT(target, pname, params) - return void - param target TextureTarget in value - param pname GetTextureParameter in value - param params UInt32 out array [COMPSIZE(pname)] - category EXT_texture_integer - dlflags notlistable - version 1.0 - version 2.0 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - alias GetTexParameterIuiv - -ClearColorIiEXT(red, green, blue, alpha) - return void - param red Int32 in value - param green Int32 in value - param blue Int32 in value - param alpha Int32 in value - category EXT_texture_integer - version 2.0 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -ClearColorIuiEXT(red, green, blue, alpha) - return void - param red UInt32 in value - param green UInt32 in value - param blue UInt32 in value - param alpha UInt32 in value - category EXT_texture_integer - version 2.0 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - -############################################################################### -# -# Extension #344 - GLX_EXT_texture_from_pixmap -# -############################################################################### - -############################################################################### -# -# Extension #345 -# GREMEDY_frame_terminator commands -# -############################################################################### - -FrameTerminatorGREMEDY() - return void - category GREMEDY_frame_terminator - version 1.0 - extension - glxflags ignore - offset ? - -############################################################################### -# -# Extension #346 -# NV_conditional_render commands -# -############################################################################### - -BeginConditionalRenderNV(id, mode) - return void - param id UInt32 in value - param mode TypeEnum in value - category NV_conditional_render - glfflags ignore - glxflags ignore - alias BeginConditionalRender - -EndConditionalRenderNV() - return void - category NV_conditional_render - glfflags ignore - glxflags ignore - alias EndConditionalRender - -############################################################################### -# -# Extension #347 -# NV_present_video commands -# -############################################################################### - -# TBD -# void PresentFrameKeyedNV(uint video_slot, uint64EXT minPresentTime, -# uint beginPresentTimeId, uint -# presentDurationId, enum type, enum target0, -# uint fill0, uint key0, enum target1, uint -# fill1, uint key1); -# -# void PresentFrameDualFillNV(uint video_slot, uint64EXT -# minPresentTime, uint beginPresentTimeId, -# uint presentDurationId, enum type, enum -# target0, uint fill0, enum target1, uint -# fill1, enum target2, uint fill2, enum -# target3, uint fill3); -# -# void GetVideoivNV(uint video_slot, enum pname, int *params); -# void GetVideouivNV(uint video_slot, enum pname, uint *params); -# void GetVideoi64vNV(uint video_slot, enum pname, int64EXT *params); -# void GetVideoui64vNV(uint video_slot, enum pname, uint64EXT *params); -# void VideoParameterivNV(uint video_slot, enum pname, const int *params); - -PresentFrameKeyedNV(video_slot, minPresentTime, beginPresentTimeId, presentDurationId, type, target0, fill0, key0, target1, fill1, key1) - return void - param video_slot UInt32 in value - param minPresentTime UInt64EXT in value - param beginPresentTimeId UInt32 in value - param presentDurationId UInt32 in value - param type GLenum in value - param target0 GLenum in value - param fill0 UInt32 in value - param key0 UInt32 in value - param target1 GLenum in value - param fill1 UInt32 in value - param key1 UInt32 in value - category NV_present_video - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -PresentFrameDualFillNV(video_slot, minPresentTime, beginPresentTimeId, presentDurationId, type, target0, fill0, target1, fill1, target2, fill2, target3, fill3) - return void - param video_slot UInt32 in value - param minPresentTime UInt64EXT in value - param beginPresentTimeId UInt32 in value - param presentDurationId UInt32 in value - param type GLenum in value - param target0 GLenum in value - param fill0 UInt32 in value - param target1 GLenum in value - param fill1 UInt32 in value - param target2 GLenum in value - param fill2 UInt32 in value - param target3 GLenum in value - param fill3 UInt32 in value - category NV_present_video - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetVideoivNV(video_slot, pname, params) - return void - param video_slot UInt32 in value - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category NV_present_video - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetVideouivNV(video_slot, pname, params) - return void - param video_slot UInt32 in value - param pname GLenum in value - param params UInt32 out array [COMPSIZE(pname)] - category NV_present_video - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetVideoi64vNV(video_slot, pname, params) - return void - param video_slot UInt32 in value - param pname GLenum in value - param params Int64EXT out array [COMPSIZE(pname)] - category NV_present_video - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetVideoui64vNV(video_slot, pname, params) - return void - param video_slot UInt32 in value - param pname GLenum in value - param params UInt64EXT out array [COMPSIZE(pname)] - category NV_present_video - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #348 - GLX_NV_video_out -# Extension #349 - WGL_NV_video_out -# Extension #350 - GLX_NV_swap_group -# Extension #351 - WGL_NV_swap_group -# -############################################################################### - -############################################################################### -# -# Extension #352 -# EXT_transform_feedback commands -# -############################################################################### - -# From EXT_draw_buffers2: GetBooleanIndexedvEXT / GetIntegerIndexedvEXT - -BeginTransformFeedbackEXT(primitiveMode) - return void - param primitiveMode GLenum in value - category EXT_transform_feedback - version 2.0 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias BeginTransformFeedback - -EndTransformFeedbackEXT() - return void - category EXT_transform_feedback - version 2.0 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias EndTransformFeedback - -BindBufferRangeEXT(target, index, buffer, offset, size) - return void - param target GLenum in value - param index UInt32 in value - param buffer UInt32 in value - param offset BufferOffset in value - param size BufferSize in value - category EXT_transform_feedback - version 2.0 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias BindBufferRange - -# Not promoted to the OpenGL 3.0 core -BindBufferOffsetEXT(target, index, buffer, offset) - return void - param target GLenum in value - param index UInt32 in value - param buffer UInt32 in value - param offset BufferOffset in value - category EXT_transform_feedback - version 2.0 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - -BindBufferBaseEXT(target, index, buffer) - return void - param target GLenum in value - param index UInt32 in value - param buffer UInt32 in value - category EXT_transform_feedback - version 2.0 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias BindBufferBase - -TransformFeedbackVaryingsEXT(program, count, varyings, bufferMode) - return void - param program UInt32 in value - param count SizeI in value - param varyings CharPointer in array [count] - param bufferMode GLenum in value - category EXT_transform_feedback - version 2.0 - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - alias TransformFeedbackVaryings - -GetTransformFeedbackVaryingEXT(program, index, bufSize, length, size, type, name) - return void - param program UInt32 in value - param index UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param size SizeI out array [1] - param type GLenum out array [1] - param name Char out array [COMPSIZE(length)] - category EXT_transform_feedback - dlflags notlistable - version 2.0 - extension soft WINSOFT - glfflags ignore - glxflags ignore - alias GetTransformFeedbackVarying - -############################################################################### -# -# Extension #353 -# EXT_direct_state_access commands -# -############################################################################### - -# New 1.1 client commands - -ClientAttribDefaultEXT(mask) - return void - param mask ClientAttribMask in value - category EXT_direct_state_access - extension soft WINSOFT - dlflags notlistable - glxflags ignore ### client-handcode client-intercept server-handcode - -PushClientAttribDefaultEXT(mask) - return void - param mask ClientAttribMask in value - category EXT_direct_state_access - extension soft WINSOFT - dlflags notlistable - glxflags ignore ### client-handcode client-intercept server-handcode - -# New 1.0 matrix commands - -MatrixLoadfEXT(mode, m) - return void - param mode MatrixMode in value - param m Float32 in array [16] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixLoaddEXT(mode, m) - return void - param mode MatrixMode in value - param m Float64 in array [16] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixMultfEXT(mode, m) - return void - param mode MatrixMode in value - param m Float32 in array [16] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixMultdEXT(mode, m) - return void - param mode MatrixMode in value - param m Float64 in array [16] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixLoadIdentityEXT(mode) - return void - param mode MatrixMode in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixRotatefEXT(mode, angle, x, y, z) - return void - param mode MatrixMode in value - param angle Float32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixRotatedEXT(mode, angle, x, y, z) - return void - param mode MatrixMode in value - param angle Float64 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixScalefEXT(mode, x, y, z) - return void - param mode MatrixMode in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixScaledEXT(mode, x, y, z) - return void - param mode MatrixMode in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixTranslatefEXT(mode, x, y, z) - return void - param mode MatrixMode in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixTranslatedEXT(mode, x, y, z) - return void - param mode MatrixMode in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixFrustumEXT(mode, left, right, bottom, top, zNear, zFar) - return void - param mode MatrixMode in value - param left Float64 in value - param right Float64 in value - param bottom Float64 in value - param top Float64 in value - param zNear Float64 in value - param zFar Float64 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixOrthoEXT(mode, left, right, bottom, top, zNear, zFar) - return void - param mode MatrixMode in value - param left Float64 in value - param right Float64 in value - param bottom Float64 in value - param top Float64 in value - param zNear Float64 in value - param zFar Float64 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixPopEXT(mode) - return void - param mode MatrixMode in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixPushEXT(mode) - return void - param mode MatrixMode in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -# New 1.3 matrix transpose commands - -MatrixLoadTransposefEXT(mode, m) - return void - param mode MatrixMode in value - param m Float32 in array [16] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixLoadTransposedEXT(mode, m) - return void - param mode MatrixMode in value - param m Float64 in array [16] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixMultTransposefEXT(mode, m) - return void - param mode MatrixMode in value - param m Float32 in array [16] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MatrixMultTransposedEXT(mode, m) - return void - param mode MatrixMode in value - param m Float64 in array [16] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -# New 1.1 texture object commands - -TextureParameterfEXT(texture, target, pname, param) - return void - param texture Texture in value - param target TextureTarget in value - param pname TextureParameterName in value - param param CheckedFloat32 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - vectorequiv TextureParameterfvEXT - -TextureParameterfvEXT(texture, target, pname, params) - return void - param texture Texture in value - param target TextureTarget in value - param pname TextureParameterName in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -TextureParameteriEXT(texture, target, pname, param) - return void - param texture Texture in value - param target TextureTarget in value - param pname TextureParameterName in value - param param CheckedInt32 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - vectorequiv TextureParameterivEXT - -TextureParameterivEXT(texture, target, pname, params) - return void - param texture Texture in value - param target TextureTarget in value - param pname TextureParameterName in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -TextureImage1DEXT(texture, target, level, internalformat, width, border, format, type, pixels) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param width SizeI in value - param border CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width)] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - extension soft WINSOFT - glfflags capture-handcode decode-handcode pixel-unpack - -TextureImage2DEXT(texture, target, level, internalformat, width, height, border, format, type, pixels) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param width SizeI in value - param height SizeI in value - param border CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height)] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - extension soft WINSOFT - glfflags capture-handcode decode-handcode pixel-unpack - -TextureSubImage1DEXT(texture, target, level, xoffset, width, format, type, pixels) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param width SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width)] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### EXT client-handcode server-handcode - glxflags ignore - extension soft WINSOFT - glfflags ignore - -TextureSubImage2DEXT(texture, target, level, xoffset, yoffset, width, height, format, type, pixels) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height)] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### EXT client-handcode server-handcode - extension soft WINSOFT - glfflags ignore - -CopyTextureImage1DEXT(texture, target, level, internalformat, x, y, width, border) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param border CheckedInt32 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore ### EXT - -CopyTextureImage2DEXT(texture, target, level, internalformat, x, y, width, height, border) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - param border CheckedInt32 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore ### EXT - -CopyTextureSubImage1DEXT(texture, target, level, xoffset, x, y, width) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore ### EXT - -CopyTextureSubImage2DEXT(texture, target, level, xoffset, yoffset, x, y, width, height) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore ### EXT - -# New 1.1 texture object queries - -GetTextureImageEXT(texture, target, level, format, type, pixels) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void out array [COMPSIZE(target/level/format/type)] - category EXT_direct_state_access - dlflags notlistable - glxflags ignore ### client-handcode server-handcode - extension soft WINSOFT - glfflags capture-execute capture-handcode decode-handcode pixel-pack - -GetTextureParameterfvEXT(texture, target, pname, params) - return void - param texture Texture in value - param target TextureTarget in value - param pname GetTextureParameter in value - param params Float32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -GetTextureParameterivEXT(texture, target, pname, params) - return void - param texture Texture in value - param target TextureTarget in value - param pname GetTextureParameter in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -GetTextureLevelParameterfvEXT(texture, target, level, pname, params) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param pname GetTextureParameter in value - param params Float32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -GetTextureLevelParameterivEXT(texture, target, level, pname, params) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param pname GetTextureParameter in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -# New 1.2 3D texture object commands - -TextureImage3DEXT(texture, target, level, internalformat, width, height, depth, border, format, type, pixels) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param border CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height/depth)] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode EXT - extension soft WINSOFT - glfflags ignore - -TextureSubImage3DEXT(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param zoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height/depth)] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode EXT - extension soft WINSOFT - glfflags ignore - -CopyTextureSubImage3DEXT(texture, target, level, xoffset, yoffset, zoffset, x, y, width, height) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param zoffset CheckedInt32 in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - category EXT_direct_state_access - glxflags ignore ### EXT - extension soft WINSOFT - glfflags ignore - -# New 1.1 multitexture commands - -MultiTexParameterfEXT(texunit, target, pname, param) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param pname TextureParameterName in value - param param CheckedFloat32 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - vectorequiv MultiTexParameterfvEXT - -MultiTexParameterfvEXT(texunit, target, pname, params) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param pname TextureParameterName in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MultiTexParameteriEXT(texunit, target, pname, param) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param pname TextureParameterName in value - param param CheckedInt32 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - vectorequiv MultiTexParameterivEXT - -MultiTexParameterivEXT(texunit, target, pname, params) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param pname TextureParameterName in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags ignore - -MultiTexImage1DEXT(texunit, target, level, internalformat, width, border, format, type, pixels) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param width SizeI in value - param border CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width)] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - extension soft WINSOFT - glfflags capture-handcode decode-handcode pixel-unpack - -MultiTexImage2DEXT(texunit, target, level, internalformat, width, height, border, format, type, pixels) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param width SizeI in value - param height SizeI in value - param border CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height)] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - extension soft WINSOFT - glfflags capture-handcode decode-handcode pixel-unpack - -MultiTexSubImage1DEXT(texunit, target, level, xoffset, width, format, type, pixels) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param width SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width)] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### EXT client-handcode server-handcode - extension soft WINSOFT - glfflags ignore - -MultiTexSubImage2DEXT(texunit, target, level, xoffset, yoffset, width, height, format, type, pixels) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height)] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### EXT client-handcode server-handcode - extension soft WINSOFT - glfflags ignore - -CopyMultiTexImage1DEXT(texunit, target, level, internalformat, x, y, width, border) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param border CheckedInt32 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore ### EXT - -CopyMultiTexImage2DEXT(texunit, target, level, internalformat, x, y, width, height, border) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - param border CheckedInt32 in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore ### EXT - -CopyMultiTexSubImage1DEXT(texunit, target, level, xoffset, x, y, width) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore ### EXT - -CopyMultiTexSubImage2DEXT(texunit, target, level, xoffset, yoffset, x, y, width, height) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore ### EXT - -# New 1.1 multitexture queries - -GetMultiTexImageEXT(texunit, target, level, format, type, pixels) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void out array [COMPSIZE(target/level/format/type)] - category EXT_direct_state_access - dlflags notlistable - glxflags ignore ### client-handcode server-handcode - extension soft WINSOFT - glfflags capture-execute capture-handcode decode-handcode pixel-pack - -GetMultiTexParameterfvEXT(texunit, target, pname, params) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param pname GetTextureParameter in value - param params Float32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -GetMultiTexParameterivEXT(texunit, target, pname, params) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param pname GetTextureParameter in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -GetMultiTexLevelParameterfvEXT(texunit, target, level, pname, params) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param pname GetTextureParameter in value - param params Float32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -GetMultiTexLevelParameterivEXT(texunit, target, level, pname, params) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param pname GetTextureParameter in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -# New 1.2 3D multitexture commands - -MultiTexImage3DEXT(texunit, target, level, internalformat, width, height, depth, border, format, type, pixels) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param border CheckedInt32 in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height/depth)] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode EXT - extension soft WINSOFT - glfflags ignore - -MultiTexSubImage3DEXT(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param zoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param format PixelFormat in value - param type PixelType in value - param pixels Void in array [COMPSIZE(format/type/width/height/depth)] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode EXT - extension soft WINSOFT - glfflags ignore - -CopyMultiTexSubImage3DEXT(texunit, target, level, xoffset, yoffset, zoffset, x, y, width, height) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param zoffset CheckedInt32 in value - param x WinCoord in value - param y WinCoord in value - param width SizeI in value - param height SizeI in value - category EXT_direct_state_access - glxflags ignore ### EXT - extension soft WINSOFT - glfflags ignore - -# New 1.2.1 multitexture texture commands - -BindMultiTextureEXT(texunit, target, texture) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param texture Texture in value - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore ### EXT - -EnableClientStateIndexedEXT(array, index) - return void - param array EnableCap in value - param index UInt32 in value - category EXT_direct_state_access - dlflags notlistable - glxflags ignore ### client-handcode client-intercept server-handcode - extension soft WINSOFT - -DisableClientStateIndexedEXT(array, index) - return void - param array EnableCap in value - param index UInt32 in value - category EXT_direct_state_access - extension soft WINSOFT - dlflags notlistable - glxflags ignore ### client-handcode client-intercept server-handcode - -MultiTexCoordPointerEXT(texunit, size, type, stride, pointer) - return void - param texunit TextureUnit in value - param size Int32 in value - param type TexCoordPointerType in value - param stride SizeI in value - param pointer Void in array [COMPSIZE(size/type/stride)] retained - category EXT_direct_state_access - dlflags notlistable - glxflags ignore ### client-handcode client-intercept server-handcode - extension soft WINSOFT - glfflags ignore - -MultiTexEnvfEXT(texunit, target, pname, param) - return void - param texunit TextureUnit in value - param target TextureEnvTarget in value - param pname TextureEnvParameter in value - param param CheckedFloat32 in value - category EXT_direct_state_access - extension soft WINSOFT - vectorequiv MultiTexEnvfvEXT - glxflags ignore - glfflags gl-enum - -MultiTexEnvfvEXT(texunit, target, pname, params) - return void - param texunit TextureUnit in value - param target TextureEnvTarget in value - param pname TextureEnvParameter in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags gl-enum - -MultiTexEnviEXT(texunit, target, pname, param) - return void - param texunit TextureUnit in value - param target TextureEnvTarget in value - param pname TextureEnvParameter in value - param param CheckedInt32 in value - category EXT_direct_state_access - extension soft WINSOFT - vectorequiv MultiTexEnvivEXT - glxflags ignore - glfflags gl-enum - -MultiTexEnvivEXT(texunit, target, pname, params) - return void - param texunit TextureUnit in value - param target TextureEnvTarget in value - param pname TextureEnvParameter in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags gl-enum - -MultiTexGendEXT(texunit, coord, pname, param) - return void - param texunit TextureUnit in value - param coord TextureCoordName in value - param pname TextureGenParameter in value - param param Float64 in value - category EXT_direct_state_access - extension soft WINSOFT - vectorequiv MultiTexGendvEXT - glxflags ignore - glfflags gl-enum - -MultiTexGendvEXT(texunit, coord, pname, params) - return void - param texunit TextureUnit in value - param coord TextureCoordName in value - param pname TextureGenParameter in value - param params Float64 in array [COMPSIZE(pname)] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags gl-enum - -MultiTexGenfEXT(texunit, coord, pname, param) - return void - param texunit TextureUnit in value - param coord TextureCoordName in value - param pname TextureGenParameter in value - param param CheckedFloat32 in value - category EXT_direct_state_access - extension soft WINSOFT - vectorequiv MultiTexGenfvEXT - glxflags ignore - glfflags gl-enum - -MultiTexGenfvEXT(texunit, coord, pname, params) - return void - param texunit TextureUnit in value - param coord TextureCoordName in value - param pname TextureGenParameter in value - param params CheckedFloat32 in array [COMPSIZE(pname)] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags gl-enum - -MultiTexGeniEXT(texunit, coord, pname, param) - return void - param texunit TextureUnit in value - param coord TextureCoordName in value - param pname TextureGenParameter in value - param param CheckedInt32 in value - category EXT_direct_state_access - extension soft WINSOFT - vectorequiv MultiTexGenivEXT - glxflags ignore - glfflags gl-enum - -MultiTexGenivEXT(texunit, coord, pname, params) - return void - param texunit TextureUnit in value - param coord TextureCoordName in value - param pname TextureGenParameter in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category EXT_direct_state_access - extension soft WINSOFT - glxflags ignore - glfflags gl-enum - -# New 1.2.1 multitexture texture queries - -GetMultiTexEnvfvEXT(texunit, target, pname, params) - return void - param texunit TextureUnit in value - param target TextureEnvTarget in value - param pname TextureEnvParameter in value - param params Float32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -GetMultiTexEnvivEXT(texunit, target, pname, params) - return void - param texunit TextureUnit in value - param target TextureEnvTarget in value - param pname TextureEnvParameter in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -GetMultiTexGendvEXT(texunit, coord, pname, params) - return void - param texunit TextureUnit in value - param coord TextureCoordName in value - param pname TextureGenParameter in value - param params Float64 out array [COMPSIZE(pname)] - category EXT_direct_state_access - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -GetMultiTexGenfvEXT(texunit, coord, pname, params) - return void - param texunit TextureUnit in value - param coord TextureCoordName in value - param pname TextureGenParameter in value - param params Float32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -GetMultiTexGenivEXT(texunit, coord, pname, params) - return void - param texunit TextureUnit in value - param coord TextureCoordName in value - param pname TextureGenParameter in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -# From EXT_draw_buffers2 -# EnableIndexedEXT -# DisableIndexedEXT -# IsEnabledIndexedEXT - -GetFloatIndexedvEXT(target, index, data) - return void - param target TypeEnum in value - param index UInt32 in value - param data Float32 out array [COMPSIZE(target)] - category EXT_direct_state_access - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - -GetDoubleIndexedvEXT(target, index, data) - return void - param target TypeEnum in value - param index UInt32 in value - param data Float64 out array [COMPSIZE(target)] - category EXT_direct_state_access - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - -GetPointerIndexedvEXT(target, index, data) - return void - param target TypeEnum in value - param index UInt32 in value - param data VoidPointer out array [COMPSIZE(target)] - category EXT_direct_state_access - dlflags notlistable - glxflags ignore - glfflags ignore - extension soft WINSOFT - -# New compressed texture commands - -CompressedTextureImage3DEXT(texture, target, level, internalformat, width, height, depth, border, imageSize, bits) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param border CheckedInt32 in value - param imageSize SizeI in value - param bits Void in array [imageSize] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - glfflags ignore - extension soft WINSOFT - -CompressedTextureImage2DEXT(texture, target, level, internalformat, width, height, border, imageSize, bits) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param width SizeI in value - param height SizeI in value - param border CheckedInt32 in value - param imageSize SizeI in value - param bits Void in array [imageSize] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - glfflags ignore - extension soft WINSOFT - -CompressedTextureImage1DEXT(texture, target, level, internalformat, width, border, imageSize, bits) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param width SizeI in value - param border CheckedInt32 in value - param imageSize SizeI in value - param bits Void in array [imageSize] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - glfflags ignore - extension soft WINSOFT - -CompressedTextureSubImage3DEXT(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, bits) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param zoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param format PixelFormat in value - param imageSize SizeI in value - param bits Void in array [imageSize] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - glfflags ignore - extension soft WINSOFT - -CompressedTextureSubImage2DEXT(texture, target, level, xoffset, yoffset, width, height, format, imageSize, bits) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param imageSize SizeI in value - param bits Void in array [imageSize] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - glfflags ignore - extension soft WINSOFT - -CompressedTextureSubImage1DEXT(texture, target, level, xoffset, width, format, imageSize, bits) - return void - param texture Texture in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param width SizeI in value - param format PixelFormat in value - param imageSize SizeI in value - param bits Void in array [imageSize] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - glfflags ignore - extension soft WINSOFT - -# New compressed texture query - -GetCompressedTextureImageEXT(texture, target, lod, img) - return void - param texture Texture in value - param target TextureTarget in value - param lod CheckedInt32 in value - param img Void out array [COMPSIZE(target/lod)] - category EXT_direct_state_access - dlflags notlistable - glxflags ignore ### server-handcode - extension soft WINSOFT - -# New compressed multitexture commands - -CompressedMultiTexImage3DEXT(texunit, target, level, internalformat, width, height, depth, border, imageSize, bits) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param border CheckedInt32 in value - param imageSize SizeI in value - param bits Void in array [imageSize] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - glfflags ignore - extension soft WINSOFT - -CompressedMultiTexImage2DEXT(texunit, target, level, internalformat, width, height, border, imageSize, bits) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param width SizeI in value - param height SizeI in value - param border CheckedInt32 in value - param imageSize SizeI in value - param bits Void in array [imageSize] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - glfflags ignore - extension soft WINSOFT - -CompressedMultiTexImage1DEXT(texunit, target, level, internalformat, width, border, imageSize, bits) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param internalformat TextureInternalFormat in value - param width SizeI in value - param border CheckedInt32 in value - param imageSize SizeI in value - param bits Void in array [imageSize] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - glfflags ignore - extension soft WINSOFT - -CompressedMultiTexSubImage3DEXT(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, bits) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param zoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param format PixelFormat in value - param imageSize SizeI in value - param bits Void in array [imageSize] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - glfflags ignore - extension soft WINSOFT - -CompressedMultiTexSubImage2DEXT(texunit, target, level, xoffset, yoffset, width, height, format, imageSize, bits) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param yoffset CheckedInt32 in value - param width SizeI in value - param height SizeI in value - param format PixelFormat in value - param imageSize SizeI in value - param bits Void in array [imageSize] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - glfflags ignore - extension soft WINSOFT - -CompressedMultiTexSubImage1DEXT(texunit, target, level, xoffset, width, format, imageSize, bits) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param level CheckedInt32 in value - param xoffset CheckedInt32 in value - param width SizeI in value - param format PixelFormat in value - param imageSize SizeI in value - param bits Void in array [imageSize] - category EXT_direct_state_access - dlflags handcode - glxflags ignore ### client-handcode server-handcode - glfflags ignore - extension soft WINSOFT - -# New compressed multitexture query - -GetCompressedMultiTexImageEXT(texunit, target, lod, img) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param lod CheckedInt32 in value - param img Void out array [COMPSIZE(target/lod)] - category EXT_direct_state_access - dlflags notlistable - glxflags ignore ### server-handcode - extension soft WINSOFT - -# New ARB assembly program named commands - -NamedProgramStringEXT(program, target, format, len, string) - return void - param program UInt32 in value - param target ProgramTarget in value - param format ProgramFormat in value - param len SizeI in value - param string Void in array [len] - category EXT_direct_state_access - subcategory ARB_vertex_program - extension soft WINSOFT - glfflags ignore - glxflags ignore ### client-handcode server-handcode EXT - glextmask GL_MASK_ARB_vertex_program|GL_MASK_ARB_fragment_program - -NamedProgramLocalParameter4dEXT(program, target, index, x, y, z, w) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category EXT_direct_state_access - subcategory ARB_vertex_program - vectorequiv NamedProgramLocalParameter4dvEXT - glxvectorequiv NamedProgramLocalParameter4dvEXT - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore ### EXT - glextmask GL_MASK_ARB_vertex_program|GL_MASK_ARB_fragment_program - -NamedProgramLocalParameter4dvEXT(program, target, index, params) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param params Float64 in array [4] - category EXT_direct_state_access - subcategory ARB_vertex_program - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore ### EXT - glextmask GL_MASK_ARB_vertex_program|GL_MASK_ARB_fragment_program - -NamedProgramLocalParameter4fEXT(program, target, index, x, y, z, w) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param x Float32 in value - param y Float32 in value - param z Float32 in value - param w Float32 in value - category EXT_direct_state_access - subcategory ARB_vertex_program - vectorequiv NamedProgramLocalParameter4fvEXT - glxvectorequiv NamedProgramLocalParameter4fvEXT - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore ### EXT - glextmask GL_MASK_ARB_vertex_program|GL_MASK_ARB_fragment_program - -NamedProgramLocalParameter4fvEXT(program, target, index, params) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param params Float32 in array [4] - category EXT_direct_state_access - subcategory ARB_vertex_program - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore ### EXT - glextmask GL_MASK_ARB_vertex_program|GL_MASK_ARB_fragment_program - -# New ARB assembly program named queries - -GetNamedProgramLocalParameterdvEXT(program, target, index, params) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param params Float64 out array [4] - dlflags notlistable - category EXT_direct_state_access - subcategory ARB_vertex_program - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore ### client-handcode server-handcode EXT - glextmask GL_MASK_ARB_vertex_program|GL_MASK_ARB_fragment_program - -GetNamedProgramLocalParameterfvEXT(program, target, index, params) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param params Float32 out array [4] - dlflags notlistable - category EXT_direct_state_access - subcategory ARB_vertex_program - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore ### client-handcode server-handcode EXT - glextmask GL_MASK_ARB_vertex_program|GL_MASK_ARB_fragment_program - -GetNamedProgramivEXT(program, target, pname, params) - return void - param program UInt32 in value - param target ProgramTarget in value - param pname ProgramProperty in value - param params Int32 out array [1] - dlflags notlistable - category EXT_direct_state_access - subcategory ARB_vertex_program - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore ### client-handcode server-handcode EXT - glextmask GL_MASK_ARB_vertex_program|GL_MASK_ARB_fragment_program - -GetNamedProgramStringEXT(program, target, pname, string) - return void - param program UInt32 in value - param target ProgramTarget in value - param pname ProgramStringProperty in value - param string Void out array [COMPSIZE(program,pname)] - dlflags notlistable - category EXT_direct_state_access - subcategory ARB_vertex_program - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore ### client-handcode server-handcode EXT - glextmask GL_MASK_ARB_vertex_program|GL_MASK_ARB_fragment_program - -# New EXT_gpu_program_parameters command - -NamedProgramLocalParameters4fvEXT(program, target, index, count, params) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param count SizeI in value - param params Float32 in array [count*4] - category EXT_direct_state_access - subcategory EXT_gpu_program_parameters - extension soft WINSOFT NV10 - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_gpu_program_parameters - -# New NV_gpu_program4 commands - -NamedProgramLocalParameterI4iEXT(program, target, index, x, y, z, w) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param x Int32 in value - param y Int32 in value - param z Int32 in value - param w Int32 in value - category EXT_direct_state_access - subcategory NV_gpu_program4 - vectorequiv NamedProgramLocalParameterI4ivEXT - glxvectorequiv NamedProgramLocalParameterI4ivEXT - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_gpu_program4 - -NamedProgramLocalParameterI4ivEXT(program, target, index, params) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param params Int32 in array [4] - category EXT_direct_state_access - subcategory NV_gpu_program4 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_gpu_program4 - -NamedProgramLocalParametersI4ivEXT(program, target, index, count, params) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param count SizeI in value - param params Int32 in array [count*4] - category EXT_direct_state_access - subcategory NV_gpu_program4 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_gpu_program4 - -NamedProgramLocalParameterI4uiEXT(program, target, index, x, y, z, w) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param x UInt32 in value - param y UInt32 in value - param z UInt32 in value - param w UInt32 in value - category EXT_direct_state_access - subcategory NV_gpu_program4 - vectorequiv NamedProgramLocalParameterI4uivEXT - glxvectorequiv NamedProgramLocalParameterI4uivEXT - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_gpu_program4 - -NamedProgramLocalParameterI4uivEXT(program, target, index, params) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param params UInt32 in array [4] - category EXT_direct_state_access - subcategory NV_gpu_program4 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_gpu_program4 - -NamedProgramLocalParametersI4uivEXT(program, target, index, count, params) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param count SizeI in value - param params UInt32 in array [count*4] - category EXT_direct_state_access - subcategory NV_gpu_program4 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_gpu_program4 - -GetNamedProgramLocalParameterIivEXT(program, target, index, params) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param params Int32 out array [4] - dlflags notlistable - category EXT_direct_state_access - subcategory NV_gpu_program4 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_gpu_program4 - -GetNamedProgramLocalParameterIuivEXT(program, target, index, params) - return void - param program UInt32 in value - param target ProgramTarget in value - param index UInt32 in value - param params UInt32 out array [4] - dlflags notlistable - category EXT_direct_state_access - subcategory NV_gpu_program4 - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_gpu_program4 - -# New EXT_texture_integer texture object commands - -TextureParameterIivEXT(texture, target, pname, params) - return void - param texture Texture in value - param target TextureTarget in value - param pname TextureParameterName in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category EXT_direct_state_access - subcategory EXT_texture_integer - extension soft WINSOFT - glxflags ignore - glfflags ignore - glextmask GL_MASK_EXT_texture_integer - -TextureParameterIuivEXT(texture, target, pname, params) - return void - param texture Texture in value - param target TextureTarget in value - param pname TextureParameterName in value - param params UInt32 in array [COMPSIZE(pname)] - category EXT_direct_state_access - subcategory EXT_texture_integer - extension soft WINSOFT - glxflags ignore - glfflags ignore - glextmask GL_MASK_EXT_texture_integer - -# New EXT_texture_integer texture object queries - -GetTextureParameterIivEXT(texture, target, pname, params) - return void - param texture Texture in value - param target TextureTarget in value - param pname GetTextureParameter in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - subcategory EXT_texture_integer - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - glextmask GL_MASK_EXT_texture_integer - -GetTextureParameterIuivEXT(texture, target, pname, params) - return void - param texture Texture in value - param target TextureTarget in value - param pname GetTextureParameter in value - param params UInt32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - subcategory EXT_texture_integer - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - glextmask GL_MASK_EXT_texture_integer - -# New EXT_texture_integer multitexture commands - -MultiTexParameterIivEXT(texunit, target, pname, params) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param pname TextureParameterName in value - param params CheckedInt32 in array [COMPSIZE(pname)] - category EXT_direct_state_access - subcategory EXT_texture_integer - extension soft WINSOFT - glxflags ignore - glfflags ignore - glextmask GL_MASK_EXT_texture_integer - -MultiTexParameterIuivEXT(texunit, target, pname, params) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param pname TextureParameterName in value - param params UInt32 in array [COMPSIZE(pname)] - category EXT_direct_state_access - subcategory EXT_texture_integer - extension soft WINSOFT - glxflags ignore - glfflags ignore - glextmask GL_MASK_EXT_texture_integer - -# New EXT_texture_integer multitexture queries - -GetMultiTexParameterIivEXT(texunit, target, pname, params) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param pname GetTextureParameter in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - subcategory EXT_texture_integer - dlflags notlistable - extension soft WINSOFT - glfflags capture-execute gl-enum - glxflags ignore - glextmask GL_MASK_EXT_texture_integer - -GetMultiTexParameterIuivEXT(texunit, target, pname, params) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param pname GetTextureParameter in value - param params UInt32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - subcategory EXT_texture_integer - dlflags notlistable - extension soft WINSOFT - glfflags capture-execute gl-enum - glxflags ignore - glextmask GL_MASK_EXT_texture_integer - -# New GLSL 2.0 uniform commands - -ProgramUniform1fEXT(program, location, v0) - return void - param program UInt32 in value - param location Int32 in value - param v0 Float32 in value - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform2fEXT(program, location, v0, v1) - return void - param program UInt32 in value - param location Int32 in value - param v0 Float32 in value - param v1 Float32 in value - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform3fEXT(program, location, v0, v1, v2) - return void - param program UInt32 in value - param location Int32 in value - param v0 Float32 in value - param v1 Float32 in value - param v2 Float32 in value - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform4fEXT(program, location, v0, v1, v2, v3) - return void - param program UInt32 in value - param location Int32 in value - param v0 Float32 in value - param v1 Float32 in value - param v2 Float32 in value - param v3 Float32 in value - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform1iEXT(program, location, v0) - return void - param program UInt32 in value - param location Int32 in value - param v0 Int32 in value - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform2iEXT(program, location, v0, v1) - return void - param program UInt32 in value - param location Int32 in value - param v0 Int32 in value - param v1 Int32 in value - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform3iEXT(program, location, v0, v1, v2) - return void - param program UInt32 in value - param location Int32 in value - param v0 Int32 in value - param v1 Int32 in value - param v2 Int32 in value - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform4iEXT(program, location, v0, v1, v2, v3) - return void - param program UInt32 in value - param location Int32 in value - param v0 Int32 in value - param v1 Int32 in value - param v2 Int32 in value - param v3 Int32 in value - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform1fvEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float32 in array [count] - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform2fvEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float32 in array [count*2] - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform3fvEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float32 in array [count*3] - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform4fvEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float32 in array [count*4] - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform1ivEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Int32 in array [count] - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform2ivEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Int32 in array [count*2] - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform3ivEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Int32 in array [count*3] - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform4ivEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Int32 in array [count*4] - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniformMatrix2fvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count*4] - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniformMatrix3fvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count*9] - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniformMatrix4fvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count*16] - category EXT_direct_state_access - subcategory VERSION_2_0 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -# New GLSL 2.1 uniform commands - -ProgramUniformMatrix2x3fvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count*6] - category EXT_direct_state_access - subcategory VERSION_2_1 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniformMatrix3x2fvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count*6] - category EXT_direct_state_access - subcategory VERSION_2_1 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniformMatrix2x4fvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count*8] - category EXT_direct_state_access - subcategory VERSION_2_1 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniformMatrix4x2fvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count*8] - category EXT_direct_state_access - subcategory VERSION_2_1 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniformMatrix3x4fvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count*12] - category EXT_direct_state_access - subcategory VERSION_2_1 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniformMatrix4x3fvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float32 in array [count*12] - category EXT_direct_state_access - subcategory VERSION_2_1 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -# New EXT_gpu_shader4 commands - -ProgramUniform1uiEXT(program, location, v0) - return void - param program UInt32 in value - param location Int32 in value - param v0 UInt32 in value - category EXT_direct_state_access - subcategory EXT_gpu_shader4 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform2uiEXT(program, location, v0, v1) - return void - param program UInt32 in value - param location Int32 in value - param v0 UInt32 in value - param v1 UInt32 in value - category EXT_direct_state_access - subcategory EXT_gpu_shader4 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform3uiEXT(program, location, v0, v1, v2) - return void - param program UInt32 in value - param location Int32 in value - param v0 UInt32 in value - param v1 UInt32 in value - param v2 UInt32 in value - category EXT_direct_state_access - subcategory EXT_gpu_shader4 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform4uiEXT(program, location, v0, v1, v2, v3) - return void - param program UInt32 in value - param location Int32 in value - param v0 UInt32 in value - param v1 UInt32 in value - param v2 UInt32 in value - param v3 UInt32 in value - category EXT_direct_state_access - subcategory EXT_gpu_shader4 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform1uivEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value UInt32 in array [count] - category EXT_direct_state_access - subcategory EXT_gpu_shader4 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform2uivEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value UInt32 in array [count*2] - category EXT_direct_state_access - subcategory EXT_gpu_shader4 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform3uivEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value UInt32 in array [count*3] - category EXT_direct_state_access - subcategory EXT_gpu_shader4 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -ProgramUniform4uivEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value UInt32 in array [count*4] - category EXT_direct_state_access - subcategory EXT_gpu_shader4 - glfflags ignore - glxflags ignore - extension soft WINSOFT - glextmask GL_MASK_OpenGL_2_0 - -# New named buffer commands - -NamedBufferDataEXT(buffer, size, data, usage) - return void - param buffer UInt32 in value - param size Sizeiptr in value - param data Void in array [COMPSIZE(size)] - param usage VertexBufferObjectUsage in value - category EXT_direct_state_access - extension soft WINSOFT - dlflags notlistable - glxflags ignore - glfflags ignore - -NamedBufferSubDataEXT(buffer, offset, size, data) - return void - param buffer UInt32 in value - param offset Intptr in value - param size Sizeiptr in value - param data Void in array [COMPSIZE(size)] - category EXT_direct_state_access - extension soft WINSOFT - dlflags notlistable - glxflags ignore - glfflags ignore - -MapNamedBufferEXT(buffer, access) - return VoidPointer - param buffer UInt32 in value - param access VertexBufferObjectAccess in value - category EXT_direct_state_access - extension soft WINSOFT - dlflags notlistable - glxflags ignore - glfflags ignore - -UnmapNamedBufferEXT(buffer) - return Boolean - param buffer UInt32 in value - category EXT_direct_state_access - extension soft WINSOFT - dlflags notlistable - glxflags ignore - glfflags ignore - -MapNamedBufferRangeEXT(buffer, offset, length, access) - return VoidPointer - param buffer UInt32 in value - param offset Intptr in value - param length Sizeiptr in value - param access BufferAccessMask in value - category EXT_direct_state_access - extension soft WINSOFT - dlflags notlistable - glxflags ignore - glfflags ignore - -FlushMappedNamedBufferRangeEXT(buffer, offset, length) - return void - param buffer UInt32 in value - param offset Intptr in value - param length Sizeiptr in value - category EXT_direct_state_access - extension soft WINSOFT - dlflags notlistable - glxflags ignore - glfflags ignore - -NamedCopyBufferSubDataEXT(readBuffer, writeBuffer, readOffset, writeOffset, size) - return void - param readBuffer UInt32 in value - param writeBuffer UInt32 in value - param readOffset Intptr in value - param writeOffset Intptr in value - param size Sizeiptr in value - category EXT_direct_state_access - extension soft WINSOFT - dlflags notlistable - glxflags ignore - glfflags ignore - -# New named buffer queries - -GetNamedBufferParameterivEXT(buffer, pname, params) - return void - param buffer UInt32 in value - param pname VertexBufferObjectParameter in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - extension soft WINSOFT - dlflags notlistable - glxflags ignore - glfflags ignore - -GetNamedBufferPointervEXT(buffer, pname, params) - return void - param buffer UInt32 in value - param pname VertexBufferObjectParameter in value - param params VoidPointer out array [COMPSIZE(pname)] - category EXT_direct_state_access - extension soft WINSOFT - dlflags notlistable - glxflags ignore - glfflags ignore - -GetNamedBufferSubDataEXT(buffer, offset, size, data) - return void - param buffer UInt32 in value - param offset Intptr in value - param size Sizeiptr in value - param data Void out array [COMPSIZE(size)] - category EXT_direct_state_access - extension soft WINSOFT - dlflags notlistable - glxflags ignore - glfflags ignore - -# New named texture buffer texture object command - -TextureBufferEXT(texture, target, internalformat, buffer) - return void - param texture Texture in value - param target TextureTarget in value - param internalformat TypeEnum in value - param buffer UInt32 in value - category EXT_direct_state_access - subcategory EXT_texture_buffer_object - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_texture_buffer_object - dlflags notlistable - -# New named texture buffer multitexture command - -MultiTexBufferEXT(texunit, target, internalformat, buffer) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param internalformat TypeEnum in value - param buffer UInt32 in value - category EXT_direct_state_access - subcategory EXT_texture_buffer_object - extension soft WINSOFT NV50 - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_texture_buffer_object - dlflags notlistable - -# New named frame buffer object commands - -NamedRenderbufferStorageEXT(renderbuffer, internalformat, width, height) - return void - param renderbuffer Renderbuffer in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - category EXT_direct_state_access - subcategory EXT_framebuffer_object - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_object - -GetNamedRenderbufferParameterivEXT(renderbuffer, pname, params) - return void - param renderbuffer Renderbuffer in value - param pname RenderbufferParameterName in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - subcategory EXT_framebuffer_object - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_object - -CheckNamedFramebufferStatusEXT(framebuffer, target) - return FramebufferStatus - param framebuffer Framebuffer in value - param target FramebufferTarget in value - category EXT_direct_state_access - subcategory EXT_framebuffer_object - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_object - -NamedFramebufferTexture1DEXT(framebuffer, attachment, textarget, texture, level) - return void - param framebuffer Framebuffer in value - param attachment FramebufferAttachment in value - param textarget TextureTarget in value - param texture Texture in value - param level CheckedInt32 in value - category EXT_direct_state_access - subcategory EXT_framebuffer_object - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_object - -NamedFramebufferTexture2DEXT(framebuffer, attachment, textarget, texture, level) - return void - param framebuffer Framebuffer in value - param attachment FramebufferAttachment in value - param textarget TextureTarget in value - param texture Texture in value - param level CheckedInt32 in value - category EXT_direct_state_access - subcategory EXT_framebuffer_object - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_object - -NamedFramebufferTexture3DEXT(framebuffer, attachment, textarget, texture, level, zoffset) - return void - param framebuffer Framebuffer in value - param attachment FramebufferAttachment in value - param textarget TextureTarget in value - param texture Texture in value - param level CheckedInt32 in value - param zoffset CheckedInt32 in value - category EXT_direct_state_access - subcategory EXT_framebuffer_object - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_object - -NamedFramebufferRenderbufferEXT(framebuffer, attachment, renderbuffertarget, renderbuffer) - return void - param framebuffer Framebuffer in value - param attachment FramebufferAttachment in value - param renderbuffertarget RenderbufferTarget in value - param renderbuffer Renderbuffer in value - category EXT_direct_state_access - subcategory EXT_framebuffer_object - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_object - -GetNamedFramebufferAttachmentParameterivEXT(framebuffer, attachment, pname, params) - return void - param framebuffer Framebuffer in value - param attachment FramebufferAttachment in value - param pname FramebufferAttachmentParameterName in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - subcategory EXT_framebuffer_object - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_object - -GenerateTextureMipmapEXT(texture, target) - return void - param texture Texture in value - param target TextureTarget in value - category EXT_direct_state_access - subcategory EXT_framebuffer_object - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_object - -GenerateMultiTexMipmapEXT(texunit, target) - return void - param texunit TextureUnit in value - param target TextureTarget in value - category EXT_direct_state_access - subcategory EXT_framebuffer_object - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_object - -FramebufferDrawBufferEXT(framebuffer, mode) - return void - param framebuffer Framebuffer in value - param mode DrawBufferMode in value - category EXT_direct_state_access - subcategory EXT_framebuffer_object - extension soft WINSOFT - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_object - -FramebufferDrawBuffersEXT(framebuffer, n, bufs) - return void - param framebuffer Framebuffer in value - param n SizeI in value - param bufs DrawBufferMode in array [n] - category EXT_direct_state_access - subcategory EXT_framebuffer_object - extension soft WINSOFT - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_object - -FramebufferReadBufferEXT(framebuffer, mode) - return void - param framebuffer Framebuffer in value - param mode ReadBufferMode in value - category EXT_direct_state_access - subcategory EXT_framebuffer_object - extension soft WINSOFT - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_object - -GetFramebufferParameterivEXT(framebuffer, pname, params) - return void - param framebuffer Framebuffer in value - param pname GetFramebufferParameter in value - param params Int32 out array [COMPSIZE(pname)] - category EXT_direct_state_access - subcategory EXT_framebuffer_object - dlflags notlistable - extension soft WINSOFT - glxflags ignore - glfflags capture-execute gl-enum - -# New named framebuffer multisample object commands - -NamedRenderbufferStorageMultisampleEXT(renderbuffer, samples, internalformat, width, height) - return void - param renderbuffer Renderbuffer in value - param samples SizeI in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - category EXT_direct_state_access - subcategory EXT_framebuffer_multisample - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_EXT_framebuffer_multisample - -# New named framebuffer multisample coverage object commands - -NamedRenderbufferStorageMultisampleCoverageEXT(renderbuffer, coverageSamples, colorSamples, internalformat, width, height) - return void - param renderbuffer Renderbuffer in value - param coverageSamples SizeI in value - param colorSamples SizeI in value - param internalformat PixelInternalFormat in value - param width SizeI in value - param height SizeI in value - category EXT_direct_state_access - subcategory NV_framebuffer_multisample_coverage - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_framebuffer_multisample_coverage - -# New named geometry program/shader frame buffer object commands - -NamedFramebufferTextureEXT(framebuffer, attachment, texture, level) - return void - param framebuffer Framebuffer in value - param attachment FramebufferAttachment in value - param texture Texture in value - param level CheckedInt32 in value - category EXT_direct_state_access - subcategory NV_gpu_program4 - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_gpu_program4 - -NamedFramebufferTextureLayerEXT(framebuffer, attachment, texture, level, layer) - return void - param framebuffer Framebuffer in value - param attachment FramebufferAttachment in value - param texture Texture in value - param level CheckedInt32 in value - param layer CheckedInt32 in value - category EXT_direct_state_access - subcategory NV_gpu_program4 - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_gpu_program4 - -NamedFramebufferTextureFaceEXT(framebuffer, attachment, texture, level, face) - return void - param framebuffer Framebuffer in value - param attachment FramebufferAttachment in value - param texture Texture in value - param level CheckedInt32 in value - param face TextureTarget in value - category EXT_direct_state_access - subcategory NV_gpu_program4 - extension soft WINSOFT - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_gpu_program4 - -# New explicit multisample query and commands - -TextureRenderbufferEXT(texture, target, renderbuffer) - return void - param texture Texture in value - param target TextureTarget in value - param renderbuffer UInt32 in value - category EXT_direct_state_access - subcategory NV_explicit_multisample - extension soft WINSOFT NV50 - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_explicit_multisample - -MultiTexRenderbufferEXT(texunit, target, renderbuffer) - return void - param texunit TextureUnit in value - param target TextureTarget in value - param renderbuffer UInt32 in value - category EXT_direct_state_access - subcategory NV_explicit_multisample - extension soft WINSOFT NV50 - dlflags notlistable - glfflags ignore - glxflags ignore - glextmask GL_MASK_NV_explicit_multisample - -# New ARB_gpu_shader_fp64 commands - -ProgramUniform1dEXT(program, location, x) - return void - param program UInt32 in value - param location Int32 in value - param x Float64 in value - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2dEXT(program, location, x, y) - return void - param program UInt32 in value - param location Int32 in value - param x Float64 in value - param y Float64 in value - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3dEXT(program, location, x, y, z) - return void - param program UInt32 in value - param location Int32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4dEXT(program, location, x, y, z, w) - return void - param program UInt32 in value - param location Int32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform1dvEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float64 in array [count] - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2dvEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float64 in array [count] - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3dvEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float64 in array [count] - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4dvEXT(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Float64 in array [count] - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix2dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix3dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix4dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix2x3dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix2x4dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix3x2dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix3x4dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix4x2dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformMatrix4x3dvEXT(program, location, count, transpose, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param transpose Boolean in value - param value Float64 in array [count] - category EXT_direct_state_access - subcategory ARB_gpu_shader_fp64 - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #354 -# EXT_vertex_array_bgra commands -# -############################################################################### - -# (none) -newcategory: EXT_vertex_array_bgra - -############################################################################### -# -# Extension #355 - WGL_NV_gpu_affinity -# -############################################################################### - -############################################################################### -# -# Extension #356 -# EXT_texture_swizzle commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_swizzle - -############################################################################### -# -# Extension #357 -# NV_explicit_multisample commands -# -############################################################################### - -# From EXT_draw_buffers2: GetBooleanIndexedvEXT / GetIntegerIndexedvEXT - -GetMultisamplefvNV(pname, index, val) - return void - param pname GetMultisamplePNameNV in value - param index UInt32 in value - param val Float32 out array [2] - category NV_explicit_multisample - dlflags notlistable - glfflags ignore - glxflags ignore - -SampleMaskIndexedNV(index, mask) - return void - param index UInt32 in value - param mask SampleMaskNV in value - category NV_explicit_multisample - glfflags ignore - glxflags ignore - -TexRenderbufferNV(target, renderbuffer) - return void - param target TextureTarget in value - param renderbuffer UInt32 in value - category NV_explicit_multisample - dlflags notlistable - glfflags ignore - glxflags ignore - -############################################################################### -# -# Extension #358 -# NV_transform_feedback2 commands -# -############################################################################### - -BindTransformFeedbackNV(target, id) - return void - param target BufferTargetARB in value - param id UInt32 in value - category NV_transform_feedback2 - glfflags ignore - glxflags ignore - -DeleteTransformFeedbacksNV(n, ids) - return void - param n SizeI in value - param ids UInt32 in array [n] - category NV_transform_feedback2 - dlflags notlistable - glfflags ignore - glxflags ignore - -GenTransformFeedbacksNV(n, ids) - return void - param n SizeI in value - param ids UInt32 out array [n] - category NV_transform_feedback2 - dlflags notlistable - glfflags ignore - glxflags ignore - -IsTransformFeedbackNV(id) - return Boolean - param id UInt32 in value - category NV_transform_feedback2 - dlflags notlistable - glfflags ignore - glxflags ignore - -PauseTransformFeedbackNV() - return void - category NV_transform_feedback2 - glfflags ignore - glxflags ignore - -ResumeTransformFeedbackNV() - return void - category NV_transform_feedback2 - glfflags ignore - glxflags ignore - -DrawTransformFeedbackNV(mode, id) - return void - param mode GLenum in value - param id UInt32 in value - category NV_transform_feedback2 - glfflags ignore - glxflags ignore - -############################################################################### -# -# Extension #359 -# ATI_meminfo commands -# -############################################################################### - -# (none) -newcategory: ATI_meminfo - -############################################################################### -# -# Extension #360 -# AMD_performance_monitor commands -# -############################################################################### - -GetPerfMonitorGroupsAMD(numGroups, groupsSize, groups) - return void - param numGroups Int32 out array [1] - param groupsSize SizeI in value - param groups UInt32 out array [groupsSize] - category AMD_performance_monitor - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetPerfMonitorCountersAMD(group, numCounters, maxActiveCounters, counterSize, counters) - return void - param group UInt32 in value - param numCounters Int32 out array [1] - param maxActiveCounters Int32 out array [1] - param counterSize SizeI in value - param counters UInt32 out array [counterSize] - category AMD_performance_monitor - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetPerfMonitorGroupStringAMD(group, bufSize, length, groupString) - return void - param group UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param groupString Char out array [bufSize] - category AMD_performance_monitor - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetPerfMonitorCounterStringAMD(group, counter, bufSize, length, counterString) - return void - param group UInt32 in value - param counter UInt32 in value - param bufSize SizeI in value - param length SizeI out array [1] - param counterString Char out array [bufSize] - category AMD_performance_monitor - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetPerfMonitorCounterInfoAMD(group, counter, pname, data) - return void - param group UInt32 in value - param counter UInt32 in value - param pname GLenum in value - param data Void out array [COMPSIZE(pname)] - category AMD_performance_monitor - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GenPerfMonitorsAMD(n, monitors) - return void - param n SizeI in value - param monitors UInt32 out array [n] - category AMD_performance_monitor - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -# 'monitors' is actually in, not out, but extension spec doesn't use const -DeletePerfMonitorsAMD(n, monitors) - return void - param n SizeI in value - param monitors UInt32 out array [n] - category AMD_performance_monitor - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -# 'counterList' is actually in, not out, but extension spec doesn't use const -SelectPerfMonitorCountersAMD(monitor, enable, group, numCounters, counterList) - return void - param monitor UInt32 in value - param enable Boolean in value - param group UInt32 in value - param numCounters Int32 in value - param counterList UInt32 out array [numCounters] - category AMD_performance_monitor - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BeginPerfMonitorAMD(monitor) - return void - param monitor UInt32 in value - category AMD_performance_monitor - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -EndPerfMonitorAMD(monitor) - return void - param monitor UInt32 in value - category AMD_performance_monitor - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetPerfMonitorCounterDataAMD(monitor, pname, dataSize, data, bytesWritten) - return void - param monitor UInt32 in value - param pname GLenum in value - param dataSize SizeI in value - param data UInt32 out array [dataSize] - param bytesWritten Int32 out array [1] - category AMD_performance_monitor - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #361 - WGL_AMD_gpu_association -# -############################################################################### - -############################################################################### -# -# Extension #362 -# AMD_texture_texture4 commands -# -############################################################################### - -# (none) -newcategory: AMD_texture_texture4 - -############################################################################### -# -# Extension #363 -# AMD_vertex_shader_tesselator commands -# -############################################################################### - -TessellationFactorAMD(factor) - return void - param factor Float32 in value - category AMD_vertex_shader_tesselator - version 2.0 - glxsingle ? - glxflags ignore - offset ? - -TessellationModeAMD(mode) - return void - param mode GLenum in value - category AMD_vertex_shader_tesselator - version 2.0 - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #364 -# EXT_provoking_vertex commands -# -############################################################################### - -ProvokingVertexEXT(mode) - return void - param mode GLenum in value - category EXT_provoking_vertex - version 2.1 - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #365 -# EXT_texture_snorm commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_snorm - -############################################################################### -# -# Extension #366 -# AMD_draw_buffers_blend commands -# -############################################################################### - -# void BlendFuncIndexedAMD(uint buf, enum src, enum dst) -# void BlendFuncSeparateIndexedAMD(uint buf, enum srcRGB, enum dstRGB, enum srcAlpha, enum dstAlpha) -# void BlendEquationIndexedAMD(uint buf, enum mode) -# void BlendEquationSeparateIndexedAMD(uint buf, enum modeRGB, enum modeAlpha) - -BlendFuncIndexedAMD(buf, src, dst) - return void - param buf UInt32 in value - param src GLenum in value - param dst GLenum in value - category AMD_draw_buffers_blend - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -BlendFuncSeparateIndexedAMD(buf, srcRGB, dstRGB, srcAlpha, dstAlpha) - return void - param buf UInt32 in value - param srcRGB GLenum in value - param dstRGB GLenum in value - param srcAlpha GLenum in value - param dstAlpha GLenum in value - category AMD_draw_buffers_blend - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -BlendEquationIndexedAMD(buf, mode) - return void - param buf UInt32 in value - param mode GLenum in value - category AMD_draw_buffers_blend - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -BlendEquationSeparateIndexedAMD(buf, modeRGB, modeAlpha) - return void - param buf UInt32 in value - param modeRGB GLenum in value - param modeAlpha GLenum in value - category AMD_draw_buffers_blend - version 2.0 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #367 -# APPLE_texture_range commands -# -############################################################################### - -TextureRangeAPPLE(target, length, pointer) - return void - param target GLenum in value - param length SizeI in value - param pointer Void in array [length] - category APPLE_texture_range - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetTexParameterPointervAPPLE(target, pname, params) - return void - param target GLenum in value - param pname GLenum in value - param params VoidPointer out array [1] - category APPLE_texture_range - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #368 -# APPLE_float_pixels commands -# -############################################################################### - -# (none) -newcategory: APPLE_float_pixels - -############################################################################### -# -# Extension #369 -# APPLE_vertex_program_evaluators commands -# -############################################################################### - -EnableVertexAttribAPPLE(index, pname) - return void - param index UInt32 in value - param pname GLenum in value - category APPLE_vertex_program_evaluators - version 1.5 - extension - glxropcode ? - glxflags ignore - offset ? - -DisableVertexAttribAPPLE(index, pname) - return void - param index UInt32 in value - param pname GLenum in value - category APPLE_vertex_program_evaluators - version 1.5 - extension - glxropcode ? - glxflags ignore - offset ? - -IsVertexAttribEnabledAPPLE(index, pname) - return Boolean - param index UInt32 in value - param pname GLenum in value - category APPLE_vertex_program_evaluators - version 1.5 - extension - glxropcode ? - glxflags ignore - offset ? - -MapVertexAttrib1dAPPLE(index, size, u1, u2, stride, order, points) - return void - param index UInt32 in value - param size UInt32 in value - param u1 CoordD in value - param u2 CoordD in value - param stride Int32 in value - param order CheckedInt32 in value - param points CoordD in array [COMPSIZE(size/stride/order)] - category APPLE_vertex_program_evaluators - version 1.5 - extension - glxropcode ? - glxflags ignore - offset ? - -MapVertexAttrib1fAPPLE(index, size, u1, u2, stride, order, points) - return void - param index UInt32 in value - param size UInt32 in value - param u1 CoordF in value - param u2 CoordF in value - param stride Int32 in value - param order CheckedInt32 in value - param points CoordF in array [COMPSIZE(size/stride/order)] - category APPLE_vertex_program_evaluators - version 1.5 - extension - glxropcode ? - glxflags ignore - offset ? - -MapVertexAttrib2dAPPLE(index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points) - return void - param index UInt32 in value - param size UInt32 in value - param u1 CoordD in value - param u2 CoordD in value - param ustride Int32 in value - param uorder CheckedInt32 in value - param v1 CoordD in value - param v2 CoordD in value - param vstride Int32 in value - param vorder CheckedInt32 in value - param points CoordD in array [COMPSIZE(size/ustride/uorder/vstride/vorder)] - category APPLE_vertex_program_evaluators - version 1.5 - extension - glxropcode ? - glxflags ignore - offset ? - -MapVertexAttrib2fAPPLE(index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points) - return void - param index UInt32 in value - param size UInt32 in value - param u1 CoordF in value - param u2 CoordF in value - param ustride Int32 in value - param uorder CheckedInt32 in value - param v1 CoordF in value - param v2 CoordF in value - param vstride Int32 in value - param vorder CheckedInt32 in value - param points CoordF in array [COMPSIZE(size/ustride/uorder/vstride/vorder)] - category APPLE_vertex_program_evaluators - version 1.5 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #370 -# APPLE_aux_depth_stencil commands -# -############################################################################### - -# (none) -newcategory: APPLE_aux_depth_stencil - -############################################################################### -# -# Extension #371 -# APPLE_object_purgeable commands -# -############################################################################### - -ObjectPurgeableAPPLE(objectType, name, option) - return GLenum - param objectType GLenum in value - param name UInt32 in value - param option GLenum in value - category APPLE_object_purgeable - version 1.5 - extension - glxropcode ? - glxflags ignore - offset ? - -ObjectUnpurgeableAPPLE(objectType, name, option) - return GLenum - param objectType GLenum in value - param name UInt32 in value - param option GLenum in value - category APPLE_object_purgeable - version 1.5 - extension - glxropcode ? - glxflags ignore - offset ? - -GetObjectParameterivAPPLE(objectType, name, pname, params) - return void - param objectType GLenum in value - param name UInt32 in value - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category APPLE_object_purgeable - dlflags notlistable - version 1.5 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #372 -# APPLE_row_bytes commands -# -############################################################################### - -# (none) -newcategory: APPLE_row_bytes - -############################################################################### -# -# Extension #373 -# APPLE_rgb_422 commands -# -############################################################################### - -# (none) -newcategory: APPLE_rgb_422 - -############################################################################### -# -# Extension #374 -# NV_video_capture commands -# -############################################################################### - -BeginVideoCaptureNV(video_capture_slot) - return void - param video_capture_slot UInt32 in value - category NV_video_capture - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BindVideoCaptureStreamBufferNV(video_capture_slot, stream, frame_region, offset) - return void - param video_capture_slot UInt32 in value - param stream UInt32 in value - param frame_region GLenum in value - param offset BufferOffsetARB in value - category NV_video_capture - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -BindVideoCaptureStreamTextureNV(video_capture_slot, stream, frame_region, target, texture) - return void - param video_capture_slot UInt32 in value - param stream UInt32 in value - param frame_region GLenum in value - param target GLenum in value - param texture UInt32 in value - category NV_video_capture - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -EndVideoCaptureNV(video_capture_slot) - return void - param video_capture_slot UInt32 in value - category NV_video_capture - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetVideoCaptureivNV(video_capture_slot, pname, params) - return void - param video_capture_slot UInt32 in value - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category NV_video_capture - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetVideoCaptureStreamivNV(video_capture_slot, stream, pname, params) - return void - param video_capture_slot UInt32 in value - param stream UInt32 in value - param pname GLenum in value - param params Int32 out array [COMPSIZE(pname)] - category NV_video_capture - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetVideoCaptureStreamfvNV(video_capture_slot, stream, pname, params) - return void - param video_capture_slot UInt32 in value - param stream UInt32 in value - param pname GLenum in value - param params Float32 out array [COMPSIZE(pname)] - category NV_video_capture - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetVideoCaptureStreamdvNV(video_capture_slot, stream, pname, params) - return void - param video_capture_slot UInt32 in value - param stream UInt32 in value - param pname GLenum in value - param params Float64 out array [COMPSIZE(pname)] - category NV_video_capture - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -VideoCaptureNV(video_capture_slot, sequence_num, capture_time) - return GLenum - param video_capture_slot UInt32 in value - param sequence_num UInt32 out reference - param capture_time UInt64EXT out reference - category NV_video_capture - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VideoCaptureStreamParameterivNV(video_capture_slot, stream, pname, params) - return void - param video_capture_slot UInt32 in value - param stream UInt32 in value - param pname GLenum in value - param params Int32 in array [COMPSIZE(pname)] - category NV_video_capture - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VideoCaptureStreamParameterfvNV(video_capture_slot, stream, pname, params) - return void - param video_capture_slot UInt32 in value - param stream UInt32 in value - param pname GLenum in value - param params Float32 in array [COMPSIZE(pname)] - category NV_video_capture - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VideoCaptureStreamParameterdvNV(video_capture_slot, stream, pname, params) - return void - param video_capture_slot UInt32 in value - param stream UInt32 in value - param pname GLenum in value - param params Float64 in array [COMPSIZE(pname)] - category NV_video_capture - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #375 - GLX_EXT_swap_control -# -############################################################################### - -############################################################################### -# -# Extension #376 - also GLX_NV_copy_image, WGL_NV_copy_image -# NV_copy_image commands -# -############################################################################### - -CopyImageSubDataNV(srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, width, height, depth) - return void - param srcName UInt32 in value - param srcTarget GLenum in value - param srcLevel Int32 in value - param srcX Int32 in value - param srcY Int32 in value - param srcZ Int32 in value - param dstName UInt32 in value - param dstTarget GLenum in value - param dstLevel Int32 in value - param dstX Int32 in value - param dstY Int32 in value - param dstZ Int32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - category NV_copy_image - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #377 -# EXT_separate_shader_objects commands -# -############################################################################### - -UseShaderProgramEXT(type, program) - return void - param type GLenum in value - param program UInt32 in value - category EXT_separate_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ActiveProgramEXT(program) - return void - param program UInt32 in value - category EXT_separate_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -CreateShaderProgramEXT(type, string) - return UInt32 - param type GLenum in value - param string Char in array [] - category EXT_separate_shader_objects - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #378 -# NV_parameter_buffer_object2 commands -# -############################################################################### - -# (none) -newcategory: NV_parameter_buffer_object2 - -############################################################################### -# -# Extension #379 -# NV_shader_buffer_load commands -# -############################################################################### - -MakeBufferResidentNV(target, access) - return void - param target GLenum in value - param access GLenum in value - category NV_shader_buffer_load - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MakeBufferNonResidentNV(target) - return void - param target GLenum in value - category NV_shader_buffer_load - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -IsBufferResidentNV(target) - return Boolean - param target GLenum in value - category NV_shader_buffer_load - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MakeNamedBufferResidentNV(buffer, access) - return void - param buffer UInt32 in value - param access GLenum in value - category NV_shader_buffer_load - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -MakeNamedBufferNonResidentNV(buffer) - return void - param buffer UInt32 in value - category NV_shader_buffer_load - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -IsNamedBufferResidentNV(buffer) - return Boolean - param buffer UInt32 in value - category NV_shader_buffer_load - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetBufferParameterui64vNV(target, pname, params) - return void - param target GLenum in value - param pname GLenum in value - param params UInt64EXT out array [COMPSIZE(pname)] - category NV_shader_buffer_load - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetNamedBufferParameterui64vNV(buffer, pname, params) - return void - param buffer UInt32 in value - param pname GLenum in value - param params UInt64EXT out array [COMPSIZE(pname)] - category NV_shader_buffer_load - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -GetIntegerui64vNV(value, result) - return void - param value GLenum in value - param result UInt64EXT out array [COMPSIZE(value)] - category NV_shader_buffer_load - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -Uniformui64NV(location, value) - return void - param location Int32 in value - param value UInt64EXT in value - category NV_shader_buffer_load - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniformui64vNV(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value UInt64EXT in array [count] - category NV_shader_buffer_load - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetUniformui64vNV(program, location, params) - return void - param program UInt32 in value - param location Int32 in value - param params UInt64EXT out array [COMPSIZE(program/location)] - category NV_shader_buffer_load - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -ProgramUniformui64NV(program, location, value) - return void - param program UInt32 in value - param location Int32 in value - param value UInt64EXT in value - category NV_shader_buffer_load - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniformui64vNV(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value UInt64EXT in array [count] - category NV_shader_buffer_load - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #380 -# NV_vertex_buffer_unified_memory commands -# -############################################################################### - -BufferAddressRangeNV(pname, index, address, length) - return void - param pname GLenum in value - param index UInt32 in value - param address UInt64EXT in value - param length BufferSize in value - category NV_vertex_buffer_unified_memory - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexFormatNV(size, type, stride) - return void - param size Int32 in value - param type GLenum in value - param stride SizeI in value - category NV_vertex_buffer_unified_memory - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -NormalFormatNV(type, stride) - return void - param type GLenum in value - param stride SizeI in value - category NV_vertex_buffer_unified_memory - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -ColorFormatNV(size, type, stride) - return void - param size Int32 in value - param type GLenum in value - param stride SizeI in value - category NV_vertex_buffer_unified_memory - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -IndexFormatNV(type, stride) - return void - param type GLenum in value - param stride SizeI in value - category NV_vertex_buffer_unified_memory - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -TexCoordFormatNV(size, type, stride) - return void - param size Int32 in value - param type GLenum in value - param stride SizeI in value - category NV_vertex_buffer_unified_memory - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -EdgeFlagFormatNV(stride) - return void - param stride SizeI in value - category NV_vertex_buffer_unified_memory - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -SecondaryColorFormatNV(size, type, stride) - return void - param size Int32 in value - param type GLenum in value - param stride SizeI in value - category NV_vertex_buffer_unified_memory - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -FogCoordFormatNV(type, stride) - return void - param type GLenum in value - param stride SizeI in value - category NV_vertex_buffer_unified_memory - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribFormatNV(index, size, type, normalized, stride) - return void - param index UInt32 in value - param size Int32 in value - param type GLenum in value - param normalized Boolean in value - param stride SizeI in value - category NV_vertex_buffer_unified_memory - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribIFormatNV(index, size, type, stride) - return void - param index UInt32 in value - param size Int32 in value - param type GLenum in value - param stride SizeI in value - category NV_vertex_buffer_unified_memory - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -GetIntegerui64i_vNV(value, index, result) - return void - param value GLenum in value - param index UInt32 in value - param result UInt64EXT out array [COMPSIZE(value)] - category NV_vertex_buffer_unified_memory - dlflags notlistable - version 1.2 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #381 -# NV_texture_barrier commands -# -############################################################################### - -TextureBarrierNV() - return void - category NV_texture_barrier - version 1.2 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #382 -# AMD_shader_stencil_export commands -# -############################################################################### - -# (none) -newcategory: AMD_shader_stencil_export - -############################################################################### -# -# Extension #383 -# AMD_seamless_cubemap_per_texture commands -# -############################################################################### - -# (none) -newcategory: AMD_seamless_cubemap_per_texture - -############################################################################### -# -# Extension #384 - GLX_INTEL_swap_event -# -############################################################################### - -############################################################################### -# -# Extension #385 -# AMD_conservative_depth commands -# -############################################################################### - -# (none) -newcategory: AMD_conservative_depth - -############################################################################### -# -# Extension #386 -# EXT_shader_image_load_store commands -# -############################################################################### - -BindImageTextureEXT(index, texture, level, layered, layer, access, format) - return void - param index UInt32 in value - param texture UInt32 in value - param level Int32 in value - param layered Boolean in value - param layer Int32 in value - param access GLenum in value - param format Int32 in value - category EXT_shader_image_load_store - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -MemoryBarrierEXT(barriers) - return void - param barriers GLbitfield in value - category EXT_shader_image_load_store - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #387 -# EXT_vertex_attrib_64bit commands -# -############################################################################### - -VertexAttribL1dEXT(index, x) - return void - param index UInt32 in value - param x Float64 in value - category EXT_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL2dEXT(index, x, y) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - category EXT_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL3dEXT(index, x, y, z) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - category EXT_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL4dEXT(index, x, y, z, w) - return void - param index UInt32 in value - param x Float64 in value - param y Float64 in value - param z Float64 in value - param w Float64 in value - category EXT_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL1dvEXT(index, v) - return void - param index UInt32 in value - param v Float64 in array [1] - category EXT_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL2dvEXT(index, v) - return void - param index UInt32 in value - param v Float64 in array [2] - category EXT_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL3dvEXT(index, v) - return void - param index UInt32 in value - param v Float64 in array [3] - category EXT_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL4dvEXT(index, v) - return void - param index UInt32 in value - param v Float64 in array [4] - category EXT_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribLPointerEXT(index, size, type, stride, pointer) - return void - param index UInt32 in value - param size Int32 in value - param type GLenum in value - param stride SizeI in value - param pointer Void in array [size] - category EXT_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -GetVertexAttribLdvEXT(index, pname, params) - return void - param index UInt32 in value - param pname GLenum in value - param params Float64 out array [COMPSIZE(pname)] - category EXT_vertex_attrib_64bit - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -# Also in ARB_vertex_array_64bit. Supposedly dependent on another -# unregistered extension, EXT_direct_state_access_memory - -VertexArrayVertexAttribLOffsetEXT(vaobj, buffer, index, size, type, stride, offset) - return void - param vaobj UInt32 in value - param buffer UInt32 in value - param index UInt32 in value - param size Int32 in value - param type GLenum in value - param stride SizeI in value - param offset BufferOffset in value - category EXT_vertex_attrib_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #388 -# NV_gpu_program5 commands -# -############################################################################### - -# These commands require ARB_shader_subroutine -#@@ void ProgramSubroutineParametersuivNV(enum target, sizei count, const uint *params); -#@@ void GetProgramSubroutineParameteruivNV(enum target, uint index, uint *param); - -ProgramSubroutineParametersuivNV(target, count, params) - return void - param target GLenum in value - param count SizeI in value - param params UInt32 in array [count] - category NV_gpu_program5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -GetProgramSubroutineParameteruivNV(target, index, param) - return void - param target GLenum in value - param index UInt32 in value - param param UInt32 out array [COMPSIZE(target)] - category NV_gpu_program5 - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #389 -# NV_gpu_shader5 commands -# -############################################################################### - -Uniform1i64NV(location, x) - return void - param location Int32 in value - param x Int64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform2i64NV(location, x, y) - return void - param location Int32 in value - param x Int64EXT in value - param y Int64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform3i64NV(location, x, y, z) - return void - param location Int32 in value - param x Int64EXT in value - param y Int64EXT in value - param z Int64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform4i64NV(location, x, y, z, w) - return void - param location Int32 in value - param x Int64EXT in value - param y Int64EXT in value - param z Int64EXT in value - param w Int64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform1i64vNV(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Int64EXT in array [count] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform2i64vNV(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Int64EXT in array [COMPSIZE(count*2)] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform3i64vNV(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Int64EXT in array [COMPSIZE(count*3)] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform4i64vNV(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value Int64EXT in array [COMPSIZE(count*4)] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform1ui64NV(location, x) - return void - param location Int32 in value - param x UInt64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform2ui64NV(location, x, y) - return void - param location Int32 in value - param x UInt64EXT in value - param y UInt64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform3ui64NV(location, x, y, z) - return void - param location Int32 in value - param x UInt64EXT in value - param y UInt64EXT in value - param z UInt64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform4ui64NV(location, x, y, z, w) - return void - param location Int32 in value - param x UInt64EXT in value - param y UInt64EXT in value - param z UInt64EXT in value - param w UInt64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform1ui64vNV(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value UInt64EXT in array [count] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform2ui64vNV(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value UInt64EXT in array [COMPSIZE(count*2)] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform3ui64vNV(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value UInt64EXT in array [COMPSIZE(count*3)] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -Uniform4ui64vNV(location, count, value) - return void - param location Int32 in value - param count SizeI in value - param value UInt64EXT in array [COMPSIZE(count*4)] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -GetUniformi64vNV(program, location, params) - return void - param program UInt32 in value - param location Int32 in value - param params Int64EXT out array [COMPSIZE(location)] - category NV_gpu_shader5 - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -ProgramUniform1i64NV(program, location, x) - return void - param program UInt32 in value - param location Int32 in value - param x Int64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2i64NV(program, location, x, y) - return void - param program UInt32 in value - param location Int32 in value - param x Int64EXT in value - param y Int64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3i64NV(program, location, x, y, z) - return void - param program UInt32 in value - param location Int32 in value - param x Int64EXT in value - param y Int64EXT in value - param z Int64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4i64NV(program, location, x, y, z, w) - return void - param program UInt32 in value - param location Int32 in value - param x Int64EXT in value - param y Int64EXT in value - param z Int64EXT in value - param w Int64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform1i64vNV(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Int64EXT in array [count] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2i64vNV(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Int64EXT in array [COMPSIZE(count*2)] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3i64vNV(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Int64EXT in array [COMPSIZE(count*3)] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4i64vNV(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value Int64EXT in array [COMPSIZE(count*4)] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform1ui64NV(program, location, x) - return void - param program UInt32 in value - param location Int32 in value - param x UInt64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2ui64NV(program, location, x, y) - return void - param program UInt32 in value - param location Int32 in value - param x UInt64EXT in value - param y UInt64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3ui64NV(program, location, x, y, z) - return void - param program UInt32 in value - param location Int32 in value - param x UInt64EXT in value - param y UInt64EXT in value - param z UInt64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4ui64NV(program, location, x, y, z, w) - return void - param program UInt32 in value - param location Int32 in value - param x UInt64EXT in value - param y UInt64EXT in value - param z UInt64EXT in value - param w UInt64EXT in value - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform1ui64vNV(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value UInt64EXT in array [count] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform2ui64vNV(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value UInt64EXT in array [COMPSIZE(count*2)] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform3ui64vNV(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value UInt64EXT in array [COMPSIZE(count*3)] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -ProgramUniform4ui64vNV(program, location, count, value) - return void - param program UInt32 in value - param location Int32 in value - param count SizeI in value - param value UInt64EXT in array [COMPSIZE(count*4)] - category NV_gpu_shader5 - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -#@ GetUniformui64vNV also in NV_shader_buffer_load - -############################################################################### -# -# Extension #390 -# NV_shader_buffer_store commands -# -############################################################################### - -# (none) -newcategory: NV_shader_buffer_store - -############################################################################### -# -# Extension #391 -# NV_tessellation_program5 commands -# -############################################################################### - -# (none) -newcategory: NV_tessellation_program5 - -############################################################################### -# -# Extension #392 -# NV_vertex_attrib_integer_64bit commands -# -############################################################################### - -VertexAttribL1i64NV(index, x) - return void - param index UInt32 in value - param x Int64EXT in value - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL2i64NV(index, x, y) - return void - param index UInt32 in value - param x Int64EXT in value - param y Int64EXT in value - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL3i64NV(index, x, y, z) - return void - param index UInt32 in value - param x Int64EXT in value - param y Int64EXT in value - param z Int64EXT in value - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL4i64NV(index, x, y, z, w) - return void - param index UInt32 in value - param x Int64EXT in value - param y Int64EXT in value - param z Int64EXT in value - param w Int64EXT in value - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL1i64vNV(index, v) - return void - param index UInt32 in value - param v Int64EXT in array [1] - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL2i64vNV(index, v) - return void - param index UInt32 in value - param v Int64EXT in array [2] - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL3i64vNV(index, v) - return void - param index UInt32 in value - param v Int64EXT in array [3] - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL4i64vNV(index, v) - return void - param index UInt32 in value - param v Int64EXT in array [4] - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL1ui64NV(index, x) - return void - param index UInt32 in value - param x UInt64EXT in value - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL2ui64NV(index, x, y) - return void - param index UInt32 in value - param x UInt64EXT in value - param y UInt64EXT in value - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL3ui64NV(index, x, y, z) - return void - param index UInt32 in value - param x UInt64EXT in value - param y UInt64EXT in value - param z UInt64EXT in value - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL4ui64NV(index, x, y, z, w) - return void - param index UInt32 in value - param x UInt64EXT in value - param y UInt64EXT in value - param z UInt64EXT in value - param w UInt64EXT in value - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL1ui64vNV(index, v) - return void - param index UInt32 in value - param v UInt64EXT in array [1] - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL2ui64vNV(index, v) - return void - param index UInt32 in value - param v UInt64EXT in array [2] - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL3ui64vNV(index, v) - return void - param index UInt32 in value - param v UInt64EXT in array [3] - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VertexAttribL4ui64vNV(index, v) - return void - param index UInt32 in value - param v UInt64EXT in array [4] - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -GetVertexAttribLi64vNV(index, pname, params) - return void - param index UInt32 in value - param pname GLenum in value - param params Int64EXT out array [COMPSIZE(pname)] - category NV_vertex_attrib_integer_64bit - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -GetVertexAttribLui64vNV(index, pname, params) - return void - param index UInt32 in value - param pname GLenum in value - param params UInt64EXT out array [COMPSIZE(pname)] - category NV_vertex_attrib_integer_64bit - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -#@ VertexAttribLFormatNV also requires NV_vertex_buffer_unified_memory - -VertexAttribLFormatNV(index, size, type, stride) - return void - param index UInt32 in value - param size Int32 in value - param type GLenum in value - param stride SizeI in value - category NV_vertex_attrib_integer_64bit - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #393 -# NV_multisample_coverage commands -# -############################################################################### - -# (none) -newcategory: NV_multisample_coverage - -############################################################################### -# -# Extension #394 -# AMD_name_gen_delete commands -# -############################################################################### - -GenNamesAMD(identifier, num, names) - return void - param identifier GLenum in value - param num UInt32 in value - param names UInt32 out array [num] - category AMD_name_gen_delete - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -DeleteNamesAMD(identifier, num, names) - return void - param identifier GLenum in value - param num UInt32 in value - param names UInt32 in array [num] - category AMD_name_gen_delete - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -IsNameAMD(identifier, name) - return Boolean - param identifier GLenum in value - param name UInt32 in value - category AMD_name_gen_delete - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #395 -# AMD_debug_output commands -# -############################################################################### - -DebugMessageEnableAMD(category, severity, count, ids, enabled) - return void - param category GLenum in value - param severity GLenum in value - param count SizeI in value - param ids UInt32 in array [count] - param enabled Boolean in value - category AMD_debug_output - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -DebugMessageInsertAMD(category, severity, id, length, buf) - return void - param category GLenum in value - param severity GLenum in value - param id UInt32 in value - param length SizeI in value - param buf Char in array [length] - category AMD_debug_output - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -DebugMessageCallbackAMD(callback, userParam) - return void - param callback GLDEBUGPROCAMD in value - param userParam Void out reference - category AMD_debug_output - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -GetDebugMessageLogAMD(count, bufsize, categories, severities, ids, lengths, message) - return UInt32 - param count UInt32 in value - param bufsize SizeI in value - param categories GLenum out array [count] - param severities UInt32 out array [count] - param ids UInt32 out array [count] - param lengths SizeI out array [count] - param message Char out array [bufsize] - category AMD_debug_output - dlflags notlistable - version 4.1 - extension - glxsingle ? - glxflags ignore - offset ? - -############################################################################### -# -# Extension #396 -# NV_vdpau_interop commands -# -############################################################################### - -VDPAUInitNV(vdpDevice, getProcAddress) - return void - param vdpDevice Void in reference - param getProcAddress Void in reference - category NV_vdpau_interop - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VDPAUFiniNV() - return void - category NV_vdpau_interop - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VDPAURegisterVideoSurfaceNV(vdpSurface, target, numTextureNames, textureNames) - return vdpauSurfaceNV - param vdpSurface Void out reference - param target GLenum in value - param numTextureNames SizeI in value - param textureNames UInt32 in array [numTextureNames] - category NV_vdpau_interop - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VDPAURegisterOutputSurfaceNV(vdpSurface, target, numTextureNames, textureNames) - return vdpauSurfaceNV - param vdpSurface Void out reference - param target GLenum in value - param numTextureNames SizeI in value - param textureNames UInt32 in array [numTextureNames] - category NV_vdpau_interop - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VDPAUIsSurfaceNV(surface) - return void - param surface vdpauSurfaceNV in value - category NV_vdpau_interop - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VDPAUUnregisterSurfaceNV(surface) - return void - param surface vdpauSurfaceNV in value - category NV_vdpau_interop - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VDPAUGetSurfaceivNV(surface, pname, bufSize, length, values) - return void - param surface vdpauSurfaceNV in value - param pname GLenum in value - param bufSize SizeI in value - param length SizeI out reference - param values Int32 out array [length] - category NV_vdpau_interop - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VDPAUSurfaceAccessNV(surface, access) - return void - param surface vdpauSurfaceNV in value - param access GLenum in value - category NV_vdpau_interop - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VDPAUMapSurfacesNV(numSurfaces, surfaces) - return void - param numSurfaces SizeI in value - param surfaces vdpauSurfaceNV in array [numSurfaces] - category NV_vdpau_interop - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -VDPAUUnmapSurfacesNV(numSurface, surfaces) - return void - param numSurface SizeI in value - param surfaces vdpauSurfaceNV in array [numSurface] - category NV_vdpau_interop - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - - -############################################################################### -# -# Extension #397 -# AMD_transform_feedback3_lines_triangles commands -# -############################################################################### - -# (none) -newcategory: AMD_transform_feedback3_lines_triangles - -############################################################################### -# -# Extension #398 - GLX_AMD_gpu_association -# Extension #399 - GLX_EXT_create_context_es2_profile -# Extension #400 - WGL_EXT_create_context_es2_profile -# -############################################################################### - -############################################################################### -# -# Extension #401 -# AMD_depth_clamp_separate commands -# -############################################################################### - -# (none) -newcategory: AMD_depth_clamp_separate - -############################################################################### -# -# Extension #402 -# EXT_texture_sRGB_decode commands -# -############################################################################### - -# (none) -newcategory: EXT_texture_sRGB_decode - -############################################################################### -# -# Extension #403 -# NV_texture_multisample commands -# -############################################################################### - -TexImage2DMultisampleCoverageNV(target, coverageSamples, colorSamples, internalFormat, width, height, fixedSampleLocations) - return void - param target GLenum in value - param coverageSamples SizeI in value - param colorSamples SizeI in value - param internalFormat Int32 in value - param width SizeI in value - param height SizeI in value - param fixedSampleLocations Boolean in value - category NV_texture_multisample - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -TexImage3DMultisampleCoverageNV(target, coverageSamples, colorSamples, internalFormat, width, height, depth, fixedSampleLocations) - return void - param target GLenum in value - param coverageSamples SizeI in value - param colorSamples SizeI in value - param internalFormat Int32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param fixedSampleLocations Boolean in value - category NV_texture_multisample - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -TextureImage2DMultisampleNV(texture, target, samples, internalFormat, width, height, fixedSampleLocations) - return void - param texture UInt32 in value - param target GLenum in value - param samples SizeI in value - param internalFormat Int32 in value - param width SizeI in value - param height SizeI in value - param fixedSampleLocations Boolean in value - category NV_texture_multisample - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -TextureImage3DMultisampleNV(texture, target, samples, internalFormat, width, height, depth, fixedSampleLocations) - return void - param texture UInt32 in value - param target GLenum in value - param samples SizeI in value - param internalFormat Int32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param fixedSampleLocations Boolean in value - category NV_texture_multisample - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -TextureImage2DMultisampleCoverageNV(texture, target, coverageSamples, colorSamples, internalFormat, width, height, fixedSampleLocations) - return void - param texture UInt32 in value - param target GLenum in value - param coverageSamples SizeI in value - param colorSamples SizeI in value - param internalFormat Int32 in value - param width SizeI in value - param height SizeI in value - param fixedSampleLocations Boolean in value - category NV_texture_multisample - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - -TextureImage3DMultisampleCoverageNV(texture, target, coverageSamples, colorSamples, internalFormat, width, height, depth, fixedSampleLocations) - return void - param texture UInt32 in value - param target GLenum in value - param coverageSamples SizeI in value - param colorSamples SizeI in value - param internalFormat Int32 in value - param width SizeI in value - param height SizeI in value - param depth SizeI in value - param fixedSampleLocations Boolean in value - category NV_texture_multisample - version 4.1 - extension - glxropcode ? - glxflags ignore - offset ? - - -############################################################################### -# -# Extension #404 -# AMD_blend_minmax_factor commands -# -############################################################################### - -# (none) -newcategory: AMD_blend_minmax_factor - -############################################################################### -# -# Extension #405 (awaiting spec clarification) -# AMD_sample_positions commands -# -############################################################################### - -#@GL_AMD_sample_positions -#@void SetMultisamplefv(enum pname, uint index, const float *val); diff --git a/src/glx/apple/specs/gl.tm b/src/glx/apple/specs/gl.tm deleted file mode 100644 index f7b3856ac6e..00000000000 --- a/src/glx/apple/specs/gl.tm +++ /dev/null @@ -1,328 +0,0 @@ -AccumOp,*,*, GLenum,*,* -AlphaFunction,*,*, GLenum,*,* -AttribMask,*,*, GLbitfield,*,* -BeginMode,*,*, GLenum,*,* -BinormalPointerTypeEXT,*,*, GLenum,*,* -BlendEquationMode,*,*, GLenum,*,* -BlendEquationModeEXT,*,*, GLenum,*,* -BlendFuncSeparateParameterEXT,*,*, GLenum,*,* -BlendingFactorDest,*,*, GLenum,*,* -BlendingFactorSrc,*,*, GLenum,*,* -Boolean,*,*, GLboolean,*,* -BooleanPointer,*,*, GLboolean*,*,* -Char,*,*, GLchar,*,* -CharPointer,*,*, GLchar*,*,* -CheckedFloat32,*,*, GLfloat,*,* -CheckedInt32,*,*, GLint,*,* -ClampColorTargetARB,*,*, GLenum,*,* -ClampColorModeARB,*,*, GLenum,*,* -ClampedColorF,*,*, GLclampf,*,* -ClampedFloat32,*,*, GLclampf,*,* -ClampedFloat64,*,*, GLclampd,*,* -ClampedStencilValue,*,*, GLint,*,* -ClearBufferMask,*,*, GLbitfield,*,* -ClientAttribMask,*,*, GLbitfield,*,* -ClipPlaneName,*,*, GLenum,*,* -ColorB,*,*, GLbyte,*,* -ColorD,*,*, GLdouble,*,* -ColorF,*,*, GLfloat,*,* -ColorI,*,*, GLint,*,* -ColorIndexValueD,*,*, GLdouble,*,* -ColorIndexValueF,*,*, GLfloat,*,* -ColorIndexValueI,*,*, GLint,*,* -ColorIndexValueS,*,*, GLshort,*,* -ColorIndexValueUB,*,*, GLubyte,*,* -ColorMaterialParameter,*,*, GLenum,*,* -ColorPointerType,*,*, GLenum,*,* -ColorS,*,*, GLshort,*,* -ColorTableParameterPName,*,*, GLenum,*,* -ColorTableParameterPNameSGI,*,*, GLenum,*,* -ColorTableTarget,*,*, GLenum,*,* -ColorTableTargetSGI,*,*, GLenum,*,* -ColorUB,*,*, GLubyte,*,* -ColorUI,*,*, GLuint,*,* -ColorUS,*,*, GLushort,*,* -CombinerBiasNV,*,*, GLenum,*,* -CombinerComponentUsageNV,*,*, GLenum,*,* -CombinerMappingNV,*,*, GLenum,*,* -CombinerParameterNV,*,*, GLenum,*,* -CombinerPortionNV,*,*, GLenum,*,* -CombinerRegisterNV,*,*, GLenum,*,* -CombinerScaleNV,*,*, GLenum,*,* -CombinerStageNV,*,*, GLenum,*,* -CombinerVariableNV,*,*, GLenum,*,* -CompressedTextureARB,*,*, GLvoid,*,* -ControlPointNV,*,*, GLvoid,*,* -ControlPointTypeNV,*,*, GLenum,*,* -ConvolutionParameter,*,*, GLenum,*,* -ConvolutionParameterEXT,*,*, GLenum,*,* -ConvolutionTarget,*,*, GLenum,*,* -ConvolutionTargetEXT,*,*, GLenum,*,* -CoordD,*,*, GLdouble,*,* -CoordF,*,*, GLfloat,*,* -CoordI,*,*, GLint,*,* -CoordS,*,*, GLshort,*,* -CullFaceMode,*,*, GLenum,*,* -CullParameterEXT,*,*, GLenum,*,* -DepthFunction,*,*, GLenum,*,* -DrawBufferMode,*,*, GLenum,*,* -DrawBufferName,*,*, GLint,*,* -DrawElementsType,*,*, GLenum,*,* -ElementPointerTypeATI,*,*, GLenum,*,* -EnableCap,*,*, GLenum,*,* -ErrorCode,*,*, GLenum,*,* -EvalMapsModeNV,*,*, GLenum,*,* -EvalTargetNV,*,*, GLenum,*,* -FeedbackElement,*,*, GLfloat,*,* -FeedbackType,*,*, GLenum,*,* -FenceNV,*,*, GLuint,*,* -FenceConditionNV,*,*, GLenum,*,* -FenceParameterNameNV,*,*, GLenum,*,* -FfdMaskSGIX,*,*, GLbitfield,*,* -FfdTargetSGIX,*,*, GLenum,*,* -Float32,*,*, GLfloat,*,* -Float32Pointer,*,*, GLfloat*,*,* -Float64,*,*, GLdouble,*,* -Float64Pointer,*,*, GLdouble*,*,* -FogParameter,*,*, GLenum,*,* -FogPointerTypeEXT,*,*, GLenum,*,* -FogPointerTypeIBM,*,*, GLenum,*,* -FragmentLightModelParameterSGIX,*,*,GLenum,*,* -FragmentLightNameSGIX,*,*, GLenum,*,* -FragmentLightParameterSGIX,*,*, GLenum,*,* -FramebufferAttachment,*,*, GLenum,*,* -FramebufferTarget,*,*, GLenum,*,* -FrontFaceDirection,*,*, GLenum,*,* -FunctionPointer,*,*, _GLfuncptr,*,* -GetColorTableParameterPName,*,*, GLenum,*,* -GetColorTableParameterPNameSGI,*,*, GLenum,*,* -GetConvolutionParameterPName,*,*, GLenum,*,* -GetHistogramParameterPName,*,*, GLenum,*,* -GetHistogramParameterPNameEXT,*,*, GLenum,*,* -GetMapQuery,*,*, GLenum,*,* -GetMinmaxParameterPName,*,*, GLenum,*,* -GetMinmaxParameterPNameEXT,*,*, GLenum,*,* -GetPName,*,*, GLenum,*,* -GetPointervPName,*,*, GLenum,*,* -GetTextureParameter,*,*, GLenum,*,* -HintMode,*,*, GLenum,*,* -HintTarget,*,*, GLenum,*,* -HintTargetPGI,*,*, GLenum,*,* -HistogramTarget,*,*, GLenum,*,* -HistogramTargetEXT,*,*, GLenum,*,* -IglooFunctionSelectSGIX,*,*, GLenum,*,* -IglooParameterSGIX,*,*, GLvoid,*,* -ImageTransformPNameHP,*,*, GLenum,*,* -ImageTransformTargetHP,*,*, GLenum,*,* -IndexFunctionEXT,*,*, GLenum,*,* -IndexMaterialParameterEXT,*,*, GLenum,*,* -IndexPointerType,*,*, GLenum,*,* -Int16,*,*, GLshort,*,* -Int32,*,*, GLint,*,* -Int8,*,*, GLbyte,*,* -InterleavedArrayFormat,*,*, GLenum,*,* -LightEnvParameterSGIX,*,*, GLenum,*,* -LightModelParameter,*,*, GLenum,*,* -LightName,*,*, GLenum,*,* -LightParameter,*,*, GLenum,*,* -LightTextureModeEXT,*,*, GLenum,*,* -LightTexturePNameEXT,*,*, GLenum,*,* -LineStipple,*,*, GLushort,*,* -List,*,*, GLuint,*,* -ListMode,*,*, GLenum,*,* -ListNameType,*,*, GLenum,*,* -ListParameterName,*,*, GLenum,*,* -LogicOp,*,*, GLenum,*,* -MapAttribParameterNV,*,*, GLenum,*,* -MapParameterNV,*,*, GLenum,*,* -MapTarget,*,*, GLenum,*,* -MapTargetNV,*,*, GLenum,*,* -MapTypeNV,*,*, GLenum,*,* -MaskedColorIndexValueF,*,*, GLfloat,*,* -MaskedColorIndexValueI,*,*, GLuint,*,* -MaskedStencilValue,*,*, GLuint,*,* -MaterialFace,*,*, GLenum,*,* -MaterialParameter,*,*, GLenum,*,* -MatrixIndexPointerTypeARB,*,*, GLenum,*,* -MatrixMode,*,*, GLenum,*,* -MatrixTransformNV,*,*, GLenum,*,* -MeshMode1,*,*, GLenum,*,* -MeshMode2,*,*, GLenum,*,* -MinmaxTarget,*,*, GLenum,*,* -MinmaxTargetEXT,*,*, GLenum,*,* -NormalPointerType,*,*, GLenum,*,* -NurbsCallback,*,*, GLenum,*,* -NurbsObj,*,*, GLUnurbs*,*,* -NurbsProperty,*,*, GLenum,*,* -NurbsTrim,*,*, GLenum,*,* -OcclusionQueryParameterNameNV,*,*, GLenum,*,* -PixelCopyType,*,*, GLenum,*,* -PixelFormat,*,*, GLenum,*,* -PixelInternalFormat,*,*, GLenum,*,* -PixelMap,*,*, GLenum,*,* -PixelStoreParameter,*,*, GLenum,*,* -PixelTexGenModeSGIX,*,*, GLenum,*,* -PixelTexGenParameterNameSGIS,*,*, GLenum,*,* -PixelTransferParameter,*,*, GLenum,*,* -PixelTransformPNameEXT,*,*, GLenum,*,* -PixelTransformTargetEXT,*,*, GLenum,*,* -PixelType,*,*, GLenum,*,* -PointParameterNameARB,*,*, GLenum,*,* -PolygonMode,*,*, GLenum,*,* -ProgramNV,*,*, GLuint,*,* -ProgramCharacterNV,*,*, GLubyte,*,* -ProgramParameterNV,*,*, GLenum,*,* -ProgramParameterPName,*,*, GLenum,*,* -QuadricCallback,*,*, GLenum,*,* -QuadricDrawStyle,*,*, GLenum,*,* -QuadricNormal,*,*, GLenum,*,* -QuadricObj,*,*, GLUquadric*,*,* -QuadricOrientation,*,*, GLenum,*,* -ReadBufferMode,*,*, GLenum,*,* -RenderbufferTarget,*,*, GLenum,*,* -RenderingMode,*,*, GLenum,*,* -ReplacementCodeSUN,*,*, GLuint,*,* -ReplacementCodeTypeSUN,*,*, GLenum,*,* -SamplePassARB,*,*, GLenum,*,* -SamplePatternEXT,*,*, GLenum,*,* -SamplePatternSGIS,*,*, GLenum,*,* -SecondaryColorPointerTypeIBM,*,*, GLenum,*,* -SelectName,*,*, GLuint,*,* -SeparableTarget,*,*, GLenum,*,* -SeparableTargetEXT,*,*, GLenum,*,* -ShadingModel,*,*, GLenum,*,* -SizeI,*,*, GLsizei,*,* -SpriteParameterNameSGIX,*,*, GLenum,*,* -StencilFunction,*,*, GLenum,*,* -StencilFaceDirection,*,*, GLenum,*,* -StencilOp,*,*, GLenum,*,* -StencilValue,*,*, GLint,*,* -String,*,*, const GLubyte *,*,* -StringName,*,*, GLenum,*,* -TangentPointerTypeEXT,*,*, GLenum,*,* -TessCallback,*,*, GLenum,*,* -TessContour,*,*, GLenum,*,* -TessProperty,*,*, GLenum,*,* -TesselatorObj,*,*, GLUtesselator*,*,* -TexCoordPointerType,*,*, GLenum,*,* -Texture,*,*, GLuint,*,* -TextureComponentCount,*,*, GLint,*,* -TextureCoordName,*,*, GLenum,*,* -TextureEnvParameter,*,*, GLenum,*,* -TextureEnvTarget,*,*, GLenum,*,* -TextureFilterSGIS,*,*, GLenum,*,* -TextureGenParameter,*,*, GLenum,*,* -TextureNormalModeEXT,*,*, GLenum,*,* -TextureParameterName,*,*, GLenum,*,* -TextureTarget,*,*, GLenum,*,* -TextureUnit,*,*, GLenum,*,* -UInt16,*,*, GLushort,*,* -UInt32,*,*, GLuint,*,* -UInt8,*,*, GLubyte,*,* -VertexAttribEnum,*,*, GLenum,*,* -VertexAttribEnumNV,*,*, GLenum,*,* -VertexAttribPointerTypeNV,*,*, GLenum,*,* -VertexPointerType,*,*, GLenum,*,* -VertexWeightPointerTypeEXT,*,*, GLenum,*,* -Void,*,*, GLvoid,*,* -VoidPointer,*,*, GLvoid*,*,* -ConstVoidPointer,*,*, GLvoid* const,*,* -WeightPointerTypeARB,*,*, GLenum,*,* -WinCoord,*,*, GLint,*,* -void,*,*, *,*,* -ArrayObjectPNameATI,*,*, GLenum,*,* -ArrayObjectUsageATI,*,*, GLenum,*,*, -ConstFloat32,*,*, GLfloat,*,* -ConstInt32,*,*, GLint,*,* -ConstUInt32,*,*, GLuint,*,* -ConstVoid,*,*, GLvoid,*,* -DataTypeEXT,*,*, GLenum,*,* -FragmentOpATI,*,*, GLenum,*,* -GetTexBumpParameterATI,*,*, GLenum,*,* -GetVariantValueEXT,*,*, GLenum,*,* -ParameterRangeEXT,*,*, GLenum,*,* -PreserveModeATI,*,*, GLenum,*,* -ProgramFormatARB,*,*, GLenum,*,* -ProgramTargetARB,*,*, GLenum,*,* -ProgramTarget,*,*, GLenum,*,* -ProgramPropertyARB,*,*, GLenum,*,* -ProgramStringPropertyARB,*,*, GLenum,*,* -ScalarType,*,*, GLenum,*,* -SwizzleOpATI,*,*, GLenum,*,* -TexBumpParameterATI,*,*, GLenum,*,* -VariantCapEXT,*,*, GLenum,*,* -VertexAttribPointerPropertyARB,*,*, GLenum,*,* -VertexAttribPointerTypeARB,*,*, GLenum,*,* -VertexAttribPropertyARB,*,*, GLenum,*,* -VertexShaderCoordOutEXT,*,*, GLenum,*,* -VertexShaderOpEXT,*,*, GLenum,*,* -VertexShaderParameterEXT,*,*, GLenum,*,* -VertexShaderStorageTypeEXT,*,*, GLenum,*,* -VertexShaderTextureUnitParameter,*,*, GLenum,*,* -VertexShaderWriteMaskEXT,*,*, GLenum,*,* -VertexStreamATI,*,*, GLenum,*,* -PNTrianglesPNameATI,*,*, GLenum,*,* -# ARB_vertex_buffer_object types and core equivalents for new types -BufferOffset,*,*, GLintptr,*,* -BufferSize,*,*, GLsizeiptr,*,* -BufferAccessARB,*,*, GLenum,*,* -BufferOffsetARB,*,*, GLintptrARB,*,* -BufferPNameARB,*,*, GLenum,*,* -BufferPointerNameARB,*,*, GLenum,*,* -BufferSizeARB,*,*, GLsizeiptrARB,*,* -BufferTargetARB,*,*, GLenum,*,* -BufferUsageARB,*,*, GLenum,*,* -# APPLE_fence -ObjectTypeAPPLE,*,*, GLenum,*,* -# APPLE_vertex_array_range -VertexArrayPNameAPPLE,*,*, GLenum,*,* -# ATI_draw_buffers -DrawBufferModeATI,*,*, GLenum,*,* -# NV_half -Half16NV,*,*, GLhalfNV,*,* -# NV_pixel_data_range -PixelDataRangeTargetNV,*,*, GLenum,*,* -# Generic types for as-yet-unspecified enums -TypeEnum,*,*, GLenum,*,* -GLbitfield,*,*, GLbitfield,*,* -GLenum,*,*, GLenum,*,* -Int64,*,*, GLint64,*,* -UInt64,*,*, GLuint64,*,* -# Object handle & data pointers -handleARB,*,*, GLhandleARB,*,* -charARB,*,*, GLcharARB,*,* -charPointerARB,*,*, GLcharARB*,*,* -sync,*,*, GLsync,*,*, -# EXT_timer_query -Int64EXT,*,*, GLint64EXT,*,* -UInt64EXT,*,*, GLuint64EXT,*,* -# EXT_direct_state_access -FramebufferAttachmentParameterName,*,*, GLenum,*,* -Framebuffer,*,*, GLuint,*,* -FramebufferStatus,*,*, GLenum,*,* -GetFramebufferParameter,*,*, GLenum,*,* -Intptr,*,*, GLintptr,*,* -ProgramFormat,*,*, GLenum,*,* -ProgramProperty,*,*, GLenum,*,* -ProgramStringProperty,*,*, GLenum,*,* -Renderbuffer,*,*, GLuint,*,* -RenderbufferParameterName,*,*, GLenum,*,* -Sizeiptr,*,*, GLsizeiptr,*,* -TextureInternalFormat,*,*, GLenum,*,* -VertexBufferObjectAccess,*,*, GLenum,*,* -VertexBufferObjectParameter,*,*, GLenum,*,* -VertexBufferObjectUsage,*,*, GLenum,*,* -# ARB_map_buffer_range -BufferAccessMask,*,*, GLbitfield,*,* -# NV_explicit_multisample -GetMultisamplePNameNV,*,*, GLenum,*,* -SampleMaskNV,*,*, GLbitfield,*,* -# ARB_debug_output -GLDEBUGPROCARB,*,*, GLDEBUGPROCARB,*,* -# AMD_debug_output -GLDEBUGPROCAMD,*,*, GLDEBUGPROCAMD,*,* -# NV_vdpau_interop -vdpauSurfaceNV,*,*, GLvdpauSurfaceNV,*,*, -# External API types -cl_context,*,*, struct _cl_context *,*,* -cl_event,*,*, struct _cl_event *,*,* diff --git a/src/glx/apple/specs/glx.spec b/src/glx/apple/specs/glx.spec deleted file mode 100644 index b8b8df296c7..00000000000 --- a/src/glx/apple/specs/glx.spec +++ /dev/null @@ -1,602 +0,0 @@ -# Copyright (c) 1991-2005 Silicon Graphics, Inc. All Rights Reserved. -# Copyright (c) 2006-2010 The Khronos Group, Inc. -# -# This document is licensed under the SGI Free Software B License Version -# 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . -# -# $Revision: 10796 $ on $Date: 2010-03-19 17:31:10 -0700 (Fri, 19 Mar 2010) $ - -required-props: -param: retval retained -dlflags: notlistable handcode nop -glxflags: client-handcode server-handcode -glxvendorglx: * -vectorequiv: * -category: pixel-rw bgn-end display-list drawing drawing-control feedback framebuf misc modeling pixel-op pixel-rw state-req xform glx glxopcode -glxopcode: * - -############################################################################### -# -# GLX1.0 commands -# -############################################################################### -Render() - return void - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxopcode 1 - - -RenderLarge() - return void - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxopcode 2 - - -CreateContext(gc_id, screen, visual, share_list) - return void - param gc_id Int32 in value - param screen Int32 in value - param visual Int32 in value - param share_list Int32 in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxopcode 3 - - -DestroyContext(context) - return void - param context Int32 in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxopcode 4 - - -MakeCurrent(drawable, context) - return void - param drawable Int32 in value - param context Int32 in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxopcode 5 - - -IsDirect(dpy, context) - return void - param dpy Int32 in value - param context Int32 in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxopcode 6 - - -QueryVersion(major, minor) - return void - param major Int32 out reference - param minor Int32 out reference - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxopcode 7 - - -WaitGL(context) - return void - param context Int32 in value - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxopcode 8 - - -WaitX() - return void - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxopcode 9 - - -CopyContext(source, dest, mask) - return void - param source Int32 in value - param dest Int32 in value - param mask Int32 in value - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxopcode 10 - - -SwapBuffers(drawable) - return void - param drawable Int32 in value - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxopcode 11 - - -UseXFont(font, first, count, list_base) - return void - param font Int32 in value - param first Int32 in value - param count Int32 in value - param list_base Int32 in value - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxopcode 12 - - -CreateGLXPixmap(visual, pixmap, glxpixmap) - return void - param visual Int32 in value - param pixmap Int32 in value - param glxpixmap Int32 in value - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxopcode 13 - -GetVisualConfigs() - return void - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxopcode 14 - - -DestroyGLXPixmap(pixmap) - return void - param pixmap Int32 in value - glxflags client-handcode - category glx - dlflags notlistable - glxopcode 15 - - -VendorPrivate() - return void - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxopcode 16 - - -VendorPrivateWithReply() - return void - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxopcode 17 - -############################################################################### -# -# GLX1.1 commands -# -############################################################################### -QueryExtensionsString(screen) - return void - param screen Int32 in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxopcode 18 - -QueryServerString(screen, name) - return void - param screen Int32 in value - param name Int32 in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxopcode 19 - -ClientInfo() - return void - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxopcode 20 - -############################################################################### -# -# GLX1.3 commands -# -############################################################################### -GetFBConfigs() - return void - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxopcode 21 - -CreatePixmap(config, pixmap, glxpixmap) - return void - param config Int32 in value - param pixmap Int32 in value - param glxpixmap Int32 in value - dlflags notlistable - glxflags client-handcode server-handcode - category glx - glxopcode 22 - -DestroyPixmap(glxpixmap) - return void - param glxpixmap Int32 in value - dlflags notlistable - glxflags client-handcode server-handcode - category glx - glxopcode 23 - -CreateNewContext(config, render_type, share_list, direct) - return void - param config Int32 in value - param render_type Int32 in value - param share_list Int32 in value - param direct Int32 in value - dlflags notlistable - glxflags client-handcode server-handcode - category glx - glxopcode 24 - -QueryContext() - return void - dlflags notlistable - glxflags client-handcode server-handcode - category glx - glxopcode 25 - -MakeContextCurrent(drawable, readdrawable, context) - return void - param drawable Int32 in value - param readdrawable Int32 in value - param context Int32 in value - dlflags notlistable - glxflags client-handcode server-handcode - category glx - glxopcode 26 - -CreatePbuffer(config, pbuffer) - return void - param config Int32 in value - param pbuffer Int32 in value - dlflags notlistable - glxflags client-handcode server-handcode - category glx - glxopcode 27 - -DestroyPbuffer(pbuffer) - return void - param pbuffer Int32 in value - dlflags notlistable - glxflags client-handcode - category glx - glxopcode 28 - -GetDrawableAttributes(drawable) - return void - param drawable Int32 in value - dlflags notlistable - glxflags client-handcode server-handcode - category glx - glxopcode 29 - -ChangeDrawableAttributes(drawable) - return void - param drawable Int32 in value - dlflags notlistable - glxflags client-handcode server-handcode - category glx - glxopcode 30 - -CreateWindow(config, window, glxwindow) - return void - param config Int32 in value - param window Int32 in value - param glxwindow Int32 in value - dlflags notlistable - glxflags client-handcode server-handcode - category glx - glxopcode 31 - -DestroyWindow(glxwindow) - return void - param glxwindow Int32 in value - dlflags notlistable - glxflags client-handcode server-handcode - category glx - glxopcode 32 - -############################################################################### -# -# IRIX5.3 extension commands -# -############################################################################### - -############################################################################### -# -# SGI_swap_control extension commands -# -############################################################################### -SwapIntervalSGI() - return void - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx 65536 - -############################################################################### -# -# IRIX5.3-PATCH154 extension commands -# -############################################################################### - -############################################################################### -# -# SGI_make_current_read extension commands -# -############################################################################### -MakeCurrentReadSGI(drawable, readdrawable, context) - return void - param drawable Int32 in value - param readdrawable Int32 in value - param context Int32 in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx 65537 - -############################################################################### -# -# SGIX_video_source extension commands -# -############################################################################### -CreateGLXVideoSourceSGIX(dpy, screen, server, path, class, node) - return void - param dpy Int32 in value - param screen Int32 in value - param server Int32 in value - param path Int32 in value - param class Int32 in value - param node Int32 in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx 65538 - -DestroyGLXVideoSourceSGIX(dpy, glxvideosource) - return void - param dpy Int32 in value - param glxvideosource Int32 in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx 65539 - -############################################################################### -# -# IRIX6.2 extension commands -# -############################################################################### - -############################################################################### -# -# EXT_import_context extension commands -# -############################################################################### -QueryContextInfoEXT() - return void - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxvendorglx 1024 - -############################################################################### -# -# SGIX_fbconfig extension commands -# -############################################################################### -GetFBConfigsSGIX() - return void - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxvendorglx 65540 - -CreateContextWithConfigSGIX(gc_id, screen, config, share_list) - return void - param gc_id Int32 in value - param screen Int32 in value - param config Int32 in value - param share_list Int32 in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx 65541 - -CreateGLXPixmapWithConfigSGIX(config, pixmap, glxpixmap) - return void - param config Int32 in value - param pixmap Int32 in value - param glxpixmap Int32 in value - category glx - dlflags notlistable - glxflags client-handcode server-handcode - glxvendorglx 65542 - -############################################################################### -# -# SGIX_pbuffer extension commands -# -############################################################################### - -CreateGLXPbufferSGIX(config, pbuffer) - return void - param config Int32 in value - param pbuffer Int32 in value - dlflags notlistable - glxflags client-handcode server-handcode - category glx - glxvendorglx 65543 - -DestroyGLXPbufferSGIX(pbuffer) - return void - param pbuffer Int32 in value - dlflags notlistable - glxflags client-handcode - category glx - glxvendorglx 65544 - -ChangeDrawableAttributesSGIX(drawable) - return void - param drawable Int32 in value - dlflags notlistable - glxflags client-handcode server-handcode - category glx - glxvendorglx 65545 - -GetDrawableAttributesSGIX(drawable) - return void - param drawable Int32 in value - dlflags notlistable - glxflags client-handcode server-handcode - category glx - glxvendorglx 65546 - -############################################################################### -# -# SGIX_swap_group extension commands -# -############################################################################### - -JoinSwapGroupSGIX(window,group) - return void - param window Int32 in value - param group Int32 in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx 65547 - -############################################################################### -# -# SGIX_swap_barrier extension commands -# -############################################################################### - -BindSwapBarrierSGIX(window,barrier) - return void - param window Int32 in value - param barrier Int32 in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx 65548 - -QueryMaxSwapBarriersSGIX() - return void - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx 65549 - -############################################################################### -# -# SGIX_hyperpipe extension commands -# -############################################################################### - -QueryHyperpipeNetworkSGIX(dpy, npipes) - return GLXHyperpipeNetworkPointer - param dpy Display out reference - param npipes int out reference - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx 65550 - -HyperpipeConfigSGIX(dpy, networkId, npipes, cfg, hpId) - return int - param dpy Display out reference - param networkId int in value - param npipes int in value - param cfg GLXHyperpipeConfig in array[npipes] - param hpId int out reference - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx 65552 - -QueryHyperpipeConfigSGIX(dpy, hpId, npipes) - return GLXHyperpipeConfigPointer - param dpy Display out reference - param hpId int in value - param npipes int out reference - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx 65551 - -DestroyHyperpipeConfigSGIX(dpy, hpId) - return int - param dpy Display out reference - param hpId int in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx 65553 - -BindHyperpipeSGIX(dpy, hpId) - return int - param dpy Display out reference - param hpId int in value - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx ??? - -QueryHyperpipeBestAttribSGIX(dpy, timeSlice, attrib, size, attribList, returnAttribList) - return int - param dpy Display out reference - param timeSlice int in value - param attrib int in value - param size int in value - param attribList Void in array[size] - param returnAttribList Void out array[size] - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx ??? - -HyperpipeAttribSGIX(dpy, timeSlice, attrib, size, attribList) - return int - param dpy Display out reference - param timeSlice int in value - param attrib int in value - param size int in value - param attribList void in array[size] - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx ??? - -QueryHyperpipeAttribSGIX(dpy, timeSlice, attrib, size, returnAttribList) - return int - param dpy Display out reference - param timeSlice int in value - param attrib int in value - param size int in value - param returnAttribList void in array[size] - glxflags client-handcode server-handcode - category glx - dlflags notlistable - glxvendorglx ??? diff --git a/src/glx/apple/specs/glxenum.spec b/src/glx/apple/specs/glxenum.spec deleted file mode 100644 index 4bf6462fbb1..00000000000 --- a/src/glx/apple/specs/glxenum.spec +++ /dev/null @@ -1,479 +0,0 @@ -# Copyright (c) 1991-2005 Silicon Graphics, Inc. All Rights Reserved. -# Copyright (c) 2006-2010 The Khronos Group, Inc. -# -# This document is licensed under the SGI Free Software B License Version -# 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . -# -# $Revision: 12183 $ on $Date: 2010-08-06 02:53:05 -0700 (Fri, 06 Aug 2010) $ - -# This is the GLX enumerant registry. -# -# It is an extremely important file. Do not mess with it unless -# you know what you're doing and have permission to do so. -# -# Rules for modification are the same as the rules for the OpenGL -# enumerant registry (gl.spec). Basically, don't modify this -# file unless you're the Khronos API Registrar. - -Extensions define: - VERSION_1_1 = 1 - VERSION_1_2 = 1 - VERSION_1_3 = 1 - VERSION_1_4 = 1 - SGIS_multisample = 1 - EXT_visual_info = 1 - SGI_swap_control = 1 - SGI_video_sync = 1 - SGI_make_current_read = 1 - SGIX_video_source = 1 - EXT_visual_rating = 1 - EXT_import_context = 1 - SGIX_fbconfig = 1 - SGIX_pbuffer = 1 - SGI_cushion = 1 - SGIX_video_resize = 1 - SGIX_dmbuffer = 1 - SGIX_swap_group = 1 - SGIX_swap_barrier = 1 - SGIS_blended_overlay = 1 - SGIS_shared_multisample = 1 - SUN_get_transparent_index = 1 - 3DFX_multisample = 1 - MESA_copy_sub_buffer = 1 - MESA_pixmap_colormap = 1 - MESA_release_buffers = 1 - MESA_set_3dfx_mode = 1 - SGIX_visual_select_group = 1 - SGIX_hyperpipe = 1 - -GLXStringName enum: - VENDOR = 0x1 - VERSION = 0x2 - EXTENSIONS = 0x3 - -GLXErrorCode enum: - BAD_SCREEN = 1 - BAD_ATTRIBUTE = 2 - NO_EXTENSION = 3 - BAD_VISUAL = 4 - BAD_CONTEXT = 5 - BAD_VALUE = 6 - BAD_ENUM = 7 - BAD_HYPERPIPE_CONFIG_SGIX = 91 # SGIX_hyperpipe - BAD_HYPERPIPE_SGIX = 92 # " - -# Reserved bits in bitfields of various purposes - -GLXDrawableTypeMask enum: - WINDOW_BIT = 0x00000001 # DRAWABLE_TYPE value - PIXMAP_BIT = 0x00000002 # " - PBUFFER_BIT = 0x00000004 # " - WINDOW_BIT_SGIX = 0x00000001 # DRAWABLE_TYPE_SGIX value - PIXMAP_BIT_SGIX = 0x00000002 # " - PBUFFER_BIT_SGIX = 0x00000004 # " - -GLXRenderTypeMask enum: - RGBA_BIT = 0x00000001 # RENDER_TYPE value - COLOR_INDEX_BIT = 0x00000002 # " - RGBA_BIT_SGIX = 0x00000001 # RENDER_TYPE_SGIX value - COLOR_INDEX_BIT_SGIX = 0x00000002 # " - RGBA_FLOAT_BIT_ARB = 0x00000004 # RENDER_TYPE value (from ARB_fbconfig_float) - RGBA_UNSIGNED_FLOAT_BIT_EXT = 0x00000008 # RENDER_TYPE value (from EXT_fbconfig_packed_float) - -GLXSyncType enum: - SYNC_FRAME_SGIX = 0x00000000 # ChannelRectSyncSGIX synctype - SYNC_SWAP_SGIX = 0x00000001 # " - -GLXEventMask enum: - PBUFFER_CLOBBER_MASK = 0x08000000 # SelectEvent mask - BUFFER_CLOBBER_MASK_SGIX = 0x08000000 # SelectEventSGIX mask - BUFFER_SWAP_COMPLETE_INTEL_MASK = 0x04000000 # SelectEvent mask (for GLX_INTEL_swap_event) - -GLXPbufferClobberMask enum: - FRONT_LEFT_BUFFER_BIT = 0x00000001 # PbufferClobberEvent mask - FRONT_RIGHT_BUFFER_BIT = 0x00000002 # " - BACK_LEFT_BUFFER_BIT = 0x00000004 # " - BACK_RIGHT_BUFFER_BIT = 0x00000008 # " - AUX_BUFFERS_BIT = 0x00000010 # " - DEPTH_BUFFER_BIT = 0x00000020 # " - STENCIL_BUFFER_BIT = 0x00000040 # " - ACCUM_BUFFER_BIT = 0x00000080 # " - FRONT_LEFT_BUFFER_BIT_SGIX = 0x00000001 # BufferClobberEventSGIX mask - FRONT_RIGHT_BUFFER_BIT_SGIX = 0x00000002 # " - BACK_LEFT_BUFFER_BIT_SGIX = 0x00000004 # " - BACK_RIGHT_BUFFER_BIT_SGIX = 0x00000008 # " - AUX_BUFFERS_BIT_SGIX = 0x00000010 # " - DEPTH_BUFFER_BIT_SGIX = 0x00000020 # " - STENCIL_BUFFER_BIT_SGIX = 0x00000040 # " - ACCUM_BUFFER_BIT_SGIX = 0x00000080 # " - SAMPLE_BUFFERS_BIT_SGIX = 0x00000100 # " - -GLXHyperpipeTypeMask enum: - HYPERPIPE_DISPLAY_PIPE_SGIX = 0x00000001 # SGIX_hyperpipe - HYPERPIPE_RENDER_PIPE_SGIX = 0x00000002 # " - -GLXHyperpipeAttrib enum: - PIPE_RECT_SGIX = 0x00000001 # SGIX_hyperpipe - PIPE_RECT_LIMITS_SGIX = 0x00000002 # " - HYPERPIPE_STEREO_SGIX = 0x00000003 # " - HYPERPIPE_PIXEL_AVERAGE_SGIX = 0x00000004 # " - -GLXHyperpipeMisc enum: - HYPERPIPE_PIPE_NAME_LENGTH_SGIX = 80 # SGIX_hyperpipe - -GLXBindToTextureTargetMask enum: - TEXTURE_1D_BIT_EXT = 0x00000001 # EXT_texture_from_pixmap - TEXTURE_2D_BIT_EXT = 0x00000002 - TEXTURE_RECTANGLE_BIT_EXT = 0x00000004 - -# CONTEXT_FLAGS_ARB bits (shared with WGL and GL) -GLXContextFlags enum: - CONTEXT_DEBUG_BIT_ARB = 0x00000001 # ARB_create_context - CONTEXT_FORWARD_COMPATIBLE_BIT_ARB = 0x00000002 # ARB_create_context - CONTEXT_ROBUST_ACCESS_BIT_ARB = 0x00000004 # ARB_create_context_robustness - -# CONTEXT_PROFILE_MASK_ARB bits -GLXContextProfileMask enum: - CONTEXT_CORE_PROFILE_BIT_ARB = 0x00000001 # ARB_create_context_profile - CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB = 0x00000002 # ARB_create_context_profile - CONTEXT_ES2_PROFILE_BIT_EXT = 0x00000004 # EXT_create_context_es2_profile - -GLXAttribute enum: - USE_GL = 1 # Visual attributes - BUFFER_SIZE = 2 # " - LEVEL = 3 # " - RGBA = 4 # " - DOUBLEBUFFER = 5 # " - STEREO = 6 # " - AUX_BUFFERS = 7 # " - RED_SIZE = 8 # " - GREEN_SIZE = 9 # " - BLUE_SIZE = 10 # " - ALPHA_SIZE = 11 # " - DEPTH_SIZE = 12 # " - STENCIL_SIZE = 13 # " - ACCUM_RED_SIZE = 14 # " - ACCUM_GREEN_SIZE = 15 # " - ACCUM_BLUE_SIZE = 16 # " - ACCUM_ALPHA_SIZE = 17 # " - CONFIG_CAVEAT = 0x20 # " - X_VISUAL_TYPE = 0x22 # " - TRANSPARENT_TYPE = 0x23 # " - TRANSPARENT_INDEX_VALUE = 0x24 # " - TRANSPARENT_RED_VALUE = 0x25 # " - TRANSPARENT_GREEN_VALUE = 0x26 # " - TRANSPARENT_BLUE_VALUE = 0x27 # " - TRANSPARENT_ALPHA_VALUE = 0x28 # " - DONT_CARE = 0xFFFFFFFF # may be specified for ChooseFBConfig attributes - NONE = 0x8000 # several attribute values - SLOW_CONFIG = 0x8001 # CONFIG_CAVEAT attribute value - TRUE_COLOR = 0x8002 # X_VISUAL_TYPE attribute value - DIRECT_COLOR = 0x8003 # " - PSEUDO_COLOR = 0x8004 # " - STATIC_COLOR = 0x8005 # " - GRAY_SCALE = 0x8006 # " - STATIC_GRAY = 0x8007 # " - TRANSPARENT_RGB = 0x8008 # TRANSPARENT_TYPE attribute value - TRANSPARENT_INDEX = 0x8009 # " - VISUAL_ID = 0x800B # Context attribute - SCREEN = 0x800C # " - NON_CONFORMANT_CONFIG = 0x800D # CONFIG_CAVEAT attribute value - DRAWABLE_TYPE = 0x8010 # FBConfig attribute - RENDER_TYPE = 0x8011 # " - X_RENDERABLE = 0x8012 # " - FBCONFIG_ID = 0x8013 # " - RGBA_TYPE = 0x8014 # CreateNewContext render_type value - COLOR_INDEX_TYPE = 0x8015 # " - MAX_PBUFFER_WIDTH = 0x8016 # FBConfig attribute - MAX_PBUFFER_HEIGHT = 0x8017 # " - MAX_PBUFFER_PIXELS = 0x8018 # " - PRESERVED_CONTENTS = 0x801B # CreateGLXPbuffer attribute - LARGEST_PBUFFER = 0x801C # " - WIDTH = 0x801D # Drawable attribute - HEIGHT = 0x801E # " - EVENT_MASK = 0x801F # " - DAMAGED = 0x8020 # PbufferClobber event_type value - SAVED = 0x8021 # " - WINDOW = 0x8022 # PbufferClobber draw_type value - PBUFFER = 0x8023 # " - PBUFFER_HEIGHT = 0x8040 # CreateGLXPbuffer attribute - PBUFFER_WIDTH = 0x8041 # " - VISUAL_CAVEAT_EXT = 0x20 # Visual attribute - X_VISUAL_TYPE_EXT = 0x22 # " - TRANSPARENT_TYPE_EXT = 0x23 # " - TRANSPARENT_INDEX_VALUE_EXT = 0x24 # " - TRANSPARENT_RED_VALUE_EXT = 0x25 # " - TRANSPARENT_GREEN_VALUE_EXT = 0x26 # " - TRANSPARENT_BLUE_VALUE_EXT = 0x27 # " - TRANSPARENT_ALPHA_VALUE_EXT = 0x28 # " - NONE_EXT = 0x8000 # several EXT attribute values - SLOW_VISUAL_EXT = 0x8001 # VISUAL_CAVEAT_EXT attribute value - TRUE_COLOR_EXT = 0x8002 # X_VISUAL_TYPE_EXT attribute value - DIRECT_COLOR_EXT = 0x8003 # " - PSEUDO_COLOR_EXT = 0x8004 # " - STATIC_COLOR_EXT = 0x8005 # " - GRAY_SCALE_EXT = 0x8006 # " - STATIC_GRAY_EXT = 0x8007 # " - TRANSPARENT_RGB_EXT = 0x8008 # TRANSPARENT_TYPE_EXT attribute value - TRANSPARENT_INDEX_EXT = 0x8009 # " - SHARE_CONTEXT_EXT = 0x800A # QueryContextInfoEXT attribute - VISUAL_ID_EXT = 0x800B # " - SCREEN_EXT = 0x800C # " - NON_CONFORMANT_VISUAL_EXT = 0x800D # VISUAL_CAVEAT_EXT attribute value - DRAWABLE_TYPE_SGIX = 0x8010 # FBConfigSGIX attribute - RENDER_TYPE_SGIX = 0x8011 # " - X_RENDERABLE_SGIX = 0x8012 # " - FBCONFIG_ID_SGIX = 0x8013 # " - RGBA_TYPE_SGIX = 0x8014 # CreateContextWithConfigSGIX render_type value - COLOR_INDEX_TYPE_SGIX = 0x8015 # " - MAX_PBUFFER_WIDTH_SGIX = 0x8016 # FBConfigSGIX attribute - MAX_PBUFFER_HEIGHT_SGIX = 0x8017 # " - MAX_PBUFFER_PIXELS_SGIX = 0x8018 # " - OPTIMAL_PBUFFER_WIDTH_SGIX = 0x8019 # " - OPTIMAL_PBUFFER_HEIGHT_SGIX = 0x801A # " - PRESERVED_CONTENTS_SGIX = 0x801B # PbufferSGIX attribute - LARGEST_PBUFFER_SGIX = 0x801C # " - WIDTH_SGIX = 0x801D # " - HEIGHT_SGIX = 0x801E # " - EVENT_MASK_SGIX = 0x801F # " - DAMAGED_SGIX = 0x8020 # BufferClobberSGIX event_type value - SAVED_SGIX = 0x8021 # " - WINDOW_SGIX = 0x8022 # BufferClobberSGIX draw_type value - PBUFFER_SGIX = 0x8023 # " - DIGITAL_MEDIA_PBUFFER_SGIX = 0x8024 # PbufferSGIX attribute - BLENDED_RGBA_SGIS = 0x8025 # TRANSPARENT_TYPE_EXT attribute value - MULTISAMPLE_SUB_RECT_WIDTH_SGIS = 0x8026 # Visual attribute (shared_multisample) - MULTISAMPLE_SUB_RECT_HEIGHT_SGIS = 0x8027 # " - VISUAL_SELECT_GROUP_SGIX = 0x8028 # Visual attribute (visual_select_group) - HYPERPIPE_ID_SGIX = 0x8030 # Associated hyperpipe ID (SGIX_hyperpipe) - SAMPLE_BUFFERS_SGIS = 100000 # Visual attribute (SGIS_multisample) - SAMPLES_SGIS = 100001 # " - SAMPLE_BUFFERS_ARB = 100000 # Visual attribute (ARB_multisample - alias of SGIS_multisample) - SAMPLES_ARB = 100001 # " - SAMPLE_BUFFERS = 100000 # Visual attribute (GLX 1.4 core - alias of SGIS_multisample) - SAMPLES = 100001 # " - COVERAGE_SAMPLES_NV = 100001 # Visual attribute (NV_multisample_coverage - reuse SAMPLES_ARB) - -############################################################################### - -# AMD: 0x1F00-0x1F02 (additional; see below; equivalent to corresponding WGL/GL tokens) - -############################################################################### - -# ARB: 0x2070-0x209F - -# Shared with WGL, synchronize create_context_* enums with wglenum.spec! - -# Also includes a bitmask - see ContextFlags above -# ARB_create_context enum: - CONTEXT_MAJOR_VERSION_ARB = 0x2091 - CONTEXT_MINOR_VERSION_ARB = 0x2092 -# 0x2093 used for WGL_CONTEXT_LAYER_PLANE_ARB - CONTEXT_FLAGS_ARB = 0x2094 -# 0x2095 collides with WGL_ERROR_INVALID_VERSION_ARB! - CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB = 0x2095 -# 0x2096 used for WGL_ERROR_INVALID_PROFILE_ARB - -# ARB_future_use: 0x2097-0x209F - -############################################################################### - -# NVIDIA: 0x20A0 - 0x219F (shared with WGL) - -# NV_float_buffer enum: - FLOAT_COMPONENTS_NV = 0x20B0 -# EXT_fbconfig_packed_float enum: - RGBA_UNSIGNED_FLOAT_TYPE_EXT = 0x20B1 -# ARB_framebuffer_sRGB enum: - FRAMEBUFFER_SRGB_CAPABLE_ARB = 0x20B2 -# EXT_framebuffer_sRGB enum: - FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x20B2 -# NV_multisample_coverage enum: - COLOR_SAMPLES_NV = 0x20B3 - -# NV_future_use: 0x20B4-0x20B8 - -# ARB_fbconfig_float enum: - RGBA_FLOAT_TYPE_ARB = 0x20B9 - -# NV_future_use: 0x20BA-0x20C2 - -# NV_video_out enum: - VIDEO_OUT_COLOR_NV = 0x20C3 - VIDEO_OUT_ALPHA_NV = 0x20C4 - VIDEO_OUT_DEPTH_NV = 0x20C5 - VIDEO_OUT_COLOR_AND_ALPHA_NV = 0x20C6 - VIDEO_OUT_COLOR_AND_DEPTH_NV = 0x20C7 - VIDEO_OUT_FRAME_NV = 0x20C8 - VIDEO_OUT_FIELD_1_NV = 0x20C9 - VIDEO_OUT_FIELD_2_NV = 0x20CA - VIDEO_OUT_STACKED_FIELDS_1_2_NV = 0x20CB - VIDEO_OUT_STACKED_FIELDS_2_1_NV = 0x20CC - -# NV_video_capture enum: - DEVICE_ID_NV = 0x20CD - UNIQUE_ID_NV = 0x20CE - NUM_VIDEO_CAPTURE_SLOTS_NV = 0x20CF - -# EXT_texture_from_pixmap enum: - BIND_TO_TEXTURE_RGB_EXT = 0x20D0 - BIND_TO_TEXTURE_RGBA_EXT = 0x20D1 - BIND_TO_MIPMAP_TEXTURE_EXT = 0x20D2 - BIND_TO_TEXTURE_TARGETS_EXT = 0x20D3 - Y_INVERTED_EXT = 0x20D4 - TEXTURE_FORMAT_EXT = 0x20D5 - TEXTURE_TARGET_EXT = 0x20D6 - MIPMAP_TEXTURE_EXT = 0x20D7 - TEXTURE_FORMAT_NONE_EXT = 0x20D8 - TEXTURE_FORMAT_RGB_EXT = 0x20D9 - TEXTURE_FORMAT_RGBA_EXT = 0x20DA - TEXTURE_1D_EXT = 0x20DB - TEXTURE_2D_EXT = 0x20DC - TEXTURE_RECTANGLE_EXT = 0x20DD - FRONT_LEFT_EXT = 0x20DE - FRONT_RIGHT_EXT = 0x20DF - BACK_LEFT_EXT = 0x20E0 - BACK_RIGHT_EXT = 0x20E1 - FRONT_EXT = GLX_FRONT_LEFT_EXT - BACK_EXT = GLX_BACK_LEFT_EXT - AUX0_EXT = 0x20E2 - AUX1_EXT = 0x20E3 - AUX2_EXT = 0x20E4 - AUX3_EXT = 0x20E5 - AUX4_EXT = 0x20E6 - AUX5_EXT = 0x20E7 - AUX6_EXT = 0x20E8 - AUX7_EXT = 0x20E9 - AUX8_EXT = 0x20EA - AUX9_EXT = 0x20EB - -# NV_future_use: 0x20EC-0x20EF - -NV_present_video enum: - NUM_VIDEO_SLOTS_NV = 0x20F0 - -EXT_swap_control enum: - SWAP_INTERVAL_EXT = 0x20F1 - MAX_SWAP_INTERVAL_EXT = 0x20F2 - -# NV_future_use: 0x20F3-0x219F - -############################################################################### - -# AMD: 0x21A0-0x21AF - -# Shared with WGL, synchronize with wglenum.spec! - -# WGL extensions: 0x21A0-0x21A1 - -GLX_AMD_gpu_association enum: - GPU_VENDOR_AMD = 0x1F00 - GPU_RENDERER_STRING_AMD = 0x1F01 - GPU_OPENGL_VERSION_STRING_AMD = 0x1F02 - GPU_FASTEST_TARGET_GPUS_AMD = 0x21A2 - GPU_RAM_AMD = 0x21A3 - GPU_CLOCK_AMD = 0x21A4 - GPU_NUM_PIPES_AMD = 0x21A5 - GPU_NUM_SIMD_AMD = 0x21A6 - GPU_NUM_RB_AMD = 0x21A7 - GPU_NUM_SPI_AMD = 0x21A8 - -# AMD_future_use: 0x21A9-0x21AF - -############################################################################### - -# MESA (not in a reserved block) - -# MESA_set_3dfx_mode enum: -# 3DFX_WINDOW_MODE_MESA = 0x1 -# 3DFX_FULLSCREEN_MODE_MESA = 0x2 - -############################################################################### - -# SGI_future_use: 0x8029-0x802F -# SGIX_hyperpipe adds attribute name HYPERPIPE_ID_SGIX = 0x8030 -# SGI_future_use: 0x8031-0x803F - -############################################################################### - -# ARB_future_use: 0x8042-0x804F - -############################################################################### - -# 3DFX: 0x8050-0x805F - -# 3DFX_multisample enum: -# SAMPLE_BUFFERS_3DFX = 0x8050 -# SAMPLES_3DFX = 0x8051 - -############################################################################### - -# OML: 0x8060-0x806F - -# OML_swap_method enum: -# SWAP_METHOD_OML = 0x8060 -# SWAP_EXCHANGE_OML = 0x8061 -# SWAP_COPY_OML = 0x8062 -# SWAP_UNDEFINED_OML = 0x8063 - -# OML_future_use: 0x8064-0x806F - -############################################################################### - -# NVIDIA: 0x8070 - 0x816F - -NVIDIA_future_use: 0x8070-0x816F - -############################################################################### - -# SUN: 0x8170 - 0x817F - -SUN_future_use: 0x8170-0x817F - -############################################################################### - -# INTEL: 0x8180 - 0x818F - -# INTEL_swap_event: 0x8180-0x8182 -# EXCHANGE_COMPLETE_INTEL = 0x8180 -# COPY_COMPLETE_INTEL = 0x8181 -# FLIP_COMPLETE_INTEL = 0x8182 - -INTEL_future_use: 0x8183-0x818F - -############################################################################### -### Please remember that new GLX enum allocations must be obtained by request -### to the Khronos API Registrar (see comments at the top of this file) -### File requests in the Khronos Bugzilla, OpenGL project, Registry component. -### Also note that some GLX enum values are shared with GL and WGL, and -### new ranges should be allocated with such overlaps in mind. -############################################################################### - -# Any_vendor_future_use: 0x8190-0x824F - -############################################################################### - -# ARB: 0x8250-0x826F -# No additional values should be used from this range, which includes -# the range used by GL_ARB_robustness rounded up to multiples of 16. - -# Also includes a bitmask - see ContextFlags above -# All values are shared with GLX and GL -GLX_ARB_create_context_robustness enum: - LOSE_CONTEXT_ON_RESET_ARB = 0x8252 # shared with GL_ARB_robustness - CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256 # shared with GL_ARB_robustness - NO_RESET_NOTIFICATION_ARB = 0x8261 # shared with GL_ARB_robustness - -# Any_vendor_future_use: 0x8270-0x9125 - -# Also includes a bitmask - see ContextProfileMask above -# All values are shared with GLX and GL -ARB_create_context_profile enum: - CONTEXT_PROFILE_MASK_ARB = 0x9126 - -# Any_vendor_future_use: 0x9127-0xFFFF -# -# This range must be the last range in the file. To generate a new -# range, allocate multiples of 16 from the beginning of the first -# Any_vendor_future_use range and update glxenum.spec, glxenumext.spec, -# and extensions.reserved. diff --git a/src/glx/apple/specs/glxenumext.spec b/src/glx/apple/specs/glxenumext.spec deleted file mode 100644 index 835bff2a181..00000000000 --- a/src/glx/apple/specs/glxenumext.spec +++ /dev/null @@ -1,565 +0,0 @@ -# Copyright (c) 1991-2005 Silicon Graphics, Inc. All Rights Reserved. -# Copyright (c) 2006-2010 The Khronos Group, Inc. -# -# This document is licensed under the SGI Free Software B License Version -# 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . -# -# $Revision: 12183 $ on $Date: 2010-08-06 02:53:05 -0700 (Fri, 06 Aug 2010) $ - -# List of GLX enumerants for glxext.h header -# -# This is NOT the master GLX enumerant registry (glxenum.spec). -# -# Unlike glxenum.spec, glxenumext.spec is -# (1) In order by extension number. -# (2) Includes only GLX extensions and GLX 1.3/1.4 core enumerants, -# since it's assumed all today support at least GLX 1.2. -# (3) Has no 'Extensions' section, since enums are always -# conditionally protected against multiple definition -# by glextenum.pl. -# (4) Is processed by glextenum.pl, which has evolved -# from enum.pl - should merge back into one script. - -# glxext.h version number - this should be automatically updated, -# when changing either enum or template spec files. - -passthru: -passthru: /* Header file version number, required by OpenGL ABI for Linux */ -passthru: /* glxext.h last updated 2010/08/06 */ -passthru: /* Current version at http://www.opengl.org/registry/ */ -passthru: #define GLX_GLXEXT_VERSION 32 - -############################################################################### -# -# GLX 1.3 enums -# -############################################################################### - -VERSION_1_3 enum: - WINDOW_BIT = 0x00000001 # DRAWABLE_TYPE value - PIXMAP_BIT = 0x00000002 # " - PBUFFER_BIT = 0x00000004 # " - RGBA_BIT = 0x00000001 # RENDER_TYPE value - COLOR_INDEX_BIT = 0x00000002 # " - PBUFFER_CLOBBER_MASK = 0x08000000 # SelectEvent mask - FRONT_LEFT_BUFFER_BIT = 0x00000001 # PbufferClobberEvent mask - FRONT_RIGHT_BUFFER_BIT = 0x00000002 # " - BACK_LEFT_BUFFER_BIT = 0x00000004 # " - BACK_RIGHT_BUFFER_BIT = 0x00000008 # " - AUX_BUFFERS_BIT = 0x00000010 # " - DEPTH_BUFFER_BIT = 0x00000020 # " - STENCIL_BUFFER_BIT = 0x00000040 # " - ACCUM_BUFFER_BIT = 0x00000080 # " - CONFIG_CAVEAT = 0x20 # " - X_VISUAL_TYPE = 0x22 # " - TRANSPARENT_TYPE = 0x23 # " - TRANSPARENT_INDEX_VALUE = 0x24 # " - TRANSPARENT_RED_VALUE = 0x25 # " - TRANSPARENT_GREEN_VALUE = 0x26 # " - TRANSPARENT_BLUE_VALUE = 0x27 # " - TRANSPARENT_ALPHA_VALUE = 0x28 # " - DONT_CARE = 0xFFFFFFFF # may be specified for ChooseFBConfig attributes - NONE = 0x8000 # several attribute values - SLOW_CONFIG = 0x8001 # CONFIG_CAVEAT attribute value - TRUE_COLOR = 0x8002 # X_VISUAL_TYPE attribute value - DIRECT_COLOR = 0x8003 # " - PSEUDO_COLOR = 0x8004 # " - STATIC_COLOR = 0x8005 # " - GRAY_SCALE = 0x8006 # " - STATIC_GRAY = 0x8007 # " - TRANSPARENT_RGB = 0x8008 # TRANSPARENT_TYPE attribute value - TRANSPARENT_INDEX = 0x8009 # " - VISUAL_ID = 0x800B # Context attribute - SCREEN = 0x800C # " - NON_CONFORMANT_CONFIG = 0x800D # CONFIG_CAVEAT attribute value - DRAWABLE_TYPE = 0x8010 # FBConfig attribute - RENDER_TYPE = 0x8011 # " - X_RENDERABLE = 0x8012 # " - FBCONFIG_ID = 0x8013 # " - RGBA_TYPE = 0x8014 # CreateNewContext render_type value - COLOR_INDEX_TYPE = 0x8015 # " - MAX_PBUFFER_WIDTH = 0x8016 # FBConfig attribute - MAX_PBUFFER_HEIGHT = 0x8017 # " - MAX_PBUFFER_PIXELS = 0x8018 # " - PRESERVED_CONTENTS = 0x801B # CreateGLXPbuffer attribute - LARGEST_PBUFFER = 0x801C # " - WIDTH = 0x801D # Drawable attribute - HEIGHT = 0x801E # " - EVENT_MASK = 0x801F # " - DAMAGED = 0x8020 # PbufferClobber event_type value - SAVED = 0x8021 # " - WINDOW = 0x8022 # PbufferClobber draw_type value - PBUFFER = 0x8023 # " - PBUFFER_HEIGHT = 0x8040 # CreateGLXPbuffer attribute - PBUFFER_WIDTH = 0x8041 # " - -############################################################################### -# -# GLX 1.4 enums -# -############################################################################### - -VERSION_1_4 enum: - SAMPLE_BUFFERS = 100000 - SAMPLES = 100001 - -############################################################################### -# -# ARB GLX extensions, in ARB extension order -# -############################################################################### - -############################################################################### - -# No new tokens -# ARB Extension #2 -ARB_get_proc_address enum: - -############################################################################### - -# ARB Extension #5 -ARB_multisample enum: - SAMPLE_BUFFERS_ARB = 100000 - SAMPLES_ARB = 100001 - -############################################################################### - -# ARB Extension #28 -ARB_vertex_buffer_object enum: - CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB = 0x2095 - -############################################################################### - -# ARB Extension #39 -ARB_fbconfig_float enum: - RGBA_FLOAT_TYPE_ARB = 0x20B9 - RGBA_FLOAT_BIT_ARB = 0x00000004 - -############################################################################### - -# ARB Extension #46 -ARB_framebuffer_sRGB enum: - FRAMEBUFFER_SRGB_CAPABLE_ARB = 0x20B2 - -############################################################################### - -# ARB Extension #56 -ARB_create_context enum: - CONTEXT_DEBUG_BIT_ARB = 0x00000001 - CONTEXT_FORWARD_COMPATIBLE_BIT_ARB = 0x00000002 - CONTEXT_MAJOR_VERSION_ARB = 0x2091 - CONTEXT_MINOR_VERSION_ARB = 0x2092 - CONTEXT_FLAGS_ARB = 0x2094 - -############################################################################### - -# ARB Extension #75 -ARB_create_context_profile enum: - CONTEXT_CORE_PROFILE_BIT_ARB = 0x00000001 - CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB = 0x00000002 - CONTEXT_PROFILE_MASK_ARB = 0x9126 - -############################################################################### - -# ARB Extension #101 -# All values are shared with GLX and GL -ARB_create_context_robustness enum: - CONTEXT_ROBUST_ACCESS_BIT_ARB = 0x00000004 - LOSE_CONTEXT_ON_RESET_ARB = 0x8252 - CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256 - NO_RESET_NOTIFICATION_ARB = 0x8261 - -############################################################################### -# -# non-ARB GLX extensions, in registry order -# -############################################################################### - -############################################################################### - -# Unfortunately, the SGIS_multisample specification and the IRIX -# implementation are inconsistent; the spec assigns enums as follows. -# ARB_multisample reuses these enums with ARB suffixes, and it can't -# be changed at this point. So in the interest of supporting both -# extensions on non-IRIX platforms, the SGIS enums will be defined -# here as originally specified. - -# Extension #25 -SGIS_multisample enum: - SAMPLE_BUFFERS_SGIS = 100000 - SAMPLES_SGIS = 100001 - -############################################################################### - -# Extension #28 -EXT_visual_info enum: - X_VISUAL_TYPE_EXT = 0x22 - TRANSPARENT_TYPE_EXT = 0x23 - TRANSPARENT_INDEX_VALUE_EXT = 0x24 - TRANSPARENT_RED_VALUE_EXT = 0x25 - TRANSPARENT_GREEN_VALUE_EXT = 0x26 - TRANSPARENT_BLUE_VALUE_EXT = 0x27 - TRANSPARENT_ALPHA_VALUE_EXT = 0x28 - NONE_EXT = 0x8000 - TRUE_COLOR_EXT = 0x8002 - DIRECT_COLOR_EXT = 0x8003 - PSEUDO_COLOR_EXT = 0x8004 - STATIC_COLOR_EXT = 0x8005 - GRAY_SCALE_EXT = 0x8006 - STATIC_GRAY_EXT = 0x8007 - TRANSPARENT_RGB_EXT = 0x8008 - TRANSPARENT_INDEX_EXT = 0x8009 - -############################################################################### - -# No new tokens -# Extension #40 -SGI_swap_control enum: - -############################################################################### - -# No new tokens -# Extension #41 -SGI_video_sync enum: - -############################################################################### - -# No new tokens -# Extension #42 -SGI_make_current_read enum: - -############################################################################### - -# No new tokens -# Extension #43 -SGIX_video_source enum: - -############################################################################### - -# Extension #44 -EXT_visual_rating enum: - VISUAL_CAVEAT_EXT = 0x20 - SLOW_VISUAL_EXT = 0x8001 - NON_CONFORMANT_VISUAL_EXT = 0x800D - use EXT_visual_info NONE_EXT - -############################################################################### - -# Extension #47 -EXT_import_context enum: - SHARE_CONTEXT_EXT = 0x800A - VISUAL_ID_EXT = 0x800B - SCREEN_EXT = 0x800C - -############################################################################### - -# Extension #49 -SGIX_fbconfig enum: - WINDOW_BIT_SGIX = 0x00000001 - PIXMAP_BIT_SGIX = 0x00000002 - RGBA_BIT_SGIX = 0x00000001 - COLOR_INDEX_BIT_SGIX = 0x00000002 - DRAWABLE_TYPE_SGIX = 0x8010 - RENDER_TYPE_SGIX = 0x8011 - X_RENDERABLE_SGIX = 0x8012 - FBCONFIG_ID_SGIX = 0x8013 - RGBA_TYPE_SGIX = 0x8014 - COLOR_INDEX_TYPE_SGIX = 0x8015 - use EXT_import_context SCREEN_EXT - -############################################################################### - -# Extension #50 -SGIX_pbuffer enum: - PBUFFER_BIT_SGIX = 0x00000004 - BUFFER_CLOBBER_MASK_SGIX = 0x08000000 - FRONT_LEFT_BUFFER_BIT_SGIX = 0x00000001 - FRONT_RIGHT_BUFFER_BIT_SGIX = 0x00000002 - BACK_LEFT_BUFFER_BIT_SGIX = 0x00000004 - BACK_RIGHT_BUFFER_BIT_SGIX = 0x00000008 - AUX_BUFFERS_BIT_SGIX = 0x00000010 - DEPTH_BUFFER_BIT_SGIX = 0x00000020 - STENCIL_BUFFER_BIT_SGIX = 0x00000040 - ACCUM_BUFFER_BIT_SGIX = 0x00000080 - SAMPLE_BUFFERS_BIT_SGIX = 0x00000100 - MAX_PBUFFER_WIDTH_SGIX = 0x8016 - MAX_PBUFFER_HEIGHT_SGIX = 0x8017 - MAX_PBUFFER_PIXELS_SGIX = 0x8018 - OPTIMAL_PBUFFER_WIDTH_SGIX = 0x8019 - OPTIMAL_PBUFFER_HEIGHT_SGIX = 0x801A - PRESERVED_CONTENTS_SGIX = 0x801B - LARGEST_PBUFFER_SGIX = 0x801C - WIDTH_SGIX = 0x801D - HEIGHT_SGIX = 0x801E - EVENT_MASK_SGIX = 0x801F - DAMAGED_SGIX = 0x8020 - SAVED_SGIX = 0x8021 - WINDOW_SGIX = 0x8022 - PBUFFER_SGIX = 0x8023 - -############################################################################### - -# Extension #62 -SGI_cushion enum: -# CUSHION_BUFFERS_SGI ???? - -############################################################################### - -# Extension #83 -SGIX_video_resize enum: - SYNC_FRAME_SGIX = 0x00000000 - SYNC_SWAP_SGIX = 0x00000001 - -############################################################################### - -# Extension #86 -SGIX_dmbuffer enum: - DIGITAL_MEDIA_PBUFFER_SGIX = 0x8024 - -############################################################################### - -# No new tokens -# Extension #91 -SGIX_swap_group enum: - -############################################################################### - -# No new tokens -# Extension #92 -SGIX_swap_barrier enum: - -############################################################################### - -# Extension #142 -SGIS_blended_overlay enum: - BLENDED_RGBA_SGIS = 0x8025 - -############################################################################### - -# Extension #143 -SGIS_shared_multisample enum: - MULTISAMPLE_SUB_RECT_WIDTH_SGIS = 0x8026 - MULTISAMPLE_SUB_RECT_HEIGHT_SGIS = 0x8027 - -############################################################################### - -# No new tokens -# Extension #183 -SUN_get_transparent_index enum: - -############################################################################### - -# Extension #207 -3DFX_multisample enum: - SAMPLE_BUFFERS_3DFX = 0x8050 - SAMPLES_3DFX = 0x8051 - -############################################################################### - -# No new tokens -# Extension #215 -MESA_copy_sub_buffer enum: - -############################################################################### - -# No new tokens -# Extension #216 -MESA_pixmap_colormap enum: - -############################################################################### - -# No new tokens -# Extension #217 -MESA_release_buffers enum: - -############################################################################### - -# Extension #218 -MESA_set_3dfx_mode enum: - 3DFX_WINDOW_MODE_MESA = 0x1 - 3DFX_FULLSCREEN_MODE_MESA = 0x2 - -############################################################################### - -# Extension #234 -SGIX_visual_select_group enum: - VISUAL_SELECT_GROUP_SGIX = 0x8028 - -############################################################################### - -# Extension #237 -OML_swap_method enum: - SWAP_METHOD_OML = 0x8060 - SWAP_EXCHANGE_OML = 0x8061 - SWAP_COPY_OML = 0x8062 - SWAP_UNDEFINED_OML = 0x8063 - -############################################################################### - -# No new tokens -# Extension #238 -OML_sync_control enum: - -############################################################################### - -# Extension #281 -NV_float_buffer enum: - FLOAT_COMPONENTS_NV = 0x20B0 - -############################################################################### - -# Extension #307 -SGIX_hyperpipe enum: - HYPERPIPE_PIPE_NAME_LENGTH_SGIX = 80 - BAD_HYPERPIPE_CONFIG_SGIX = 91 - BAD_HYPERPIPE_SGIX = 92 - HYPERPIPE_DISPLAY_PIPE_SGIX = 0x00000001 - HYPERPIPE_RENDER_PIPE_SGIX = 0x00000002 - PIPE_RECT_SGIX = 0x00000001 - PIPE_RECT_LIMITS_SGIX = 0x00000002 - HYPERPIPE_STEREO_SGIX = 0x00000003 - HYPERPIPE_PIXEL_AVERAGE_SGIX = 0x00000004 - HYPERPIPE_ID_SGIX = 0x8030 - -############################################################################### - -# No new tokens -# Extension #308 -MESA_agp_offset enum: - -############################################################################### - -# Extension #328 -EXT_fbconfig_packed_float enum: - RGBA_UNSIGNED_FLOAT_TYPE_EXT = 0x20B1 - RGBA_UNSIGNED_FLOAT_BIT_EXT = 0x00000008 - -############################################################################### - -# Extension #337 -EXT_framebuffer_sRGB enum: - FRAMEBUFFER_SRGB_CAPABLE_EXT = 0x20B2 - -############################################################################### - -# Extension #344 -EXT_texture_from_pixmap enum: - TEXTURE_1D_BIT_EXT = 0x00000001 - TEXTURE_2D_BIT_EXT = 0x00000002 - TEXTURE_RECTANGLE_BIT_EXT = 0x00000004 - BIND_TO_TEXTURE_RGB_EXT = 0x20D0 - BIND_TO_TEXTURE_RGBA_EXT = 0x20D1 - BIND_TO_MIPMAP_TEXTURE_EXT = 0x20D2 - BIND_TO_TEXTURE_TARGETS_EXT = 0x20D3 - Y_INVERTED_EXT = 0x20D4 - TEXTURE_FORMAT_EXT = 0x20D5 - TEXTURE_TARGET_EXT = 0x20D6 - MIPMAP_TEXTURE_EXT = 0x20D7 - TEXTURE_FORMAT_NONE_EXT = 0x20D8 - TEXTURE_FORMAT_RGB_EXT = 0x20D9 - TEXTURE_FORMAT_RGBA_EXT = 0x20DA - TEXTURE_1D_EXT = 0x20DB - TEXTURE_2D_EXT = 0x20DC - TEXTURE_RECTANGLE_EXT = 0x20DD - FRONT_LEFT_EXT = 0x20DE - FRONT_RIGHT_EXT = 0x20DF - BACK_LEFT_EXT = 0x20E0 - BACK_RIGHT_EXT = 0x20E1 - FRONT_EXT = GLX_FRONT_LEFT_EXT - BACK_EXT = GLX_BACK_LEFT_EXT - AUX0_EXT = 0x20E2 - AUX1_EXT = 0x20E3 - AUX2_EXT = 0x20E4 - AUX3_EXT = 0x20E5 - AUX4_EXT = 0x20E6 - AUX5_EXT = 0x20E7 - AUX6_EXT = 0x20E8 - AUX7_EXT = 0x20E9 - AUX8_EXT = 0x20EA - AUX9_EXT = 0x20EB - -############################################################################### - -# Extension #347 -NV_present_video enum: - NUM_VIDEO_SLOTS_NV = 0x20F0 - -############################################################################### - -# Extension #348 -NV_video_out enum: - VIDEO_OUT_COLOR_NV = 0x20C3 - VIDEO_OUT_ALPHA_NV = 0x20C4 - VIDEO_OUT_DEPTH_NV = 0x20C5 - VIDEO_OUT_COLOR_AND_ALPHA_NV = 0x20C6 - VIDEO_OUT_COLOR_AND_DEPTH_NV = 0x20C7 - VIDEO_OUT_FRAME_NV = 0x20C8 - VIDEO_OUT_FIELD_1_NV = 0x20C9 - VIDEO_OUT_FIELD_2_NV = 0x20CA - VIDEO_OUT_STACKED_FIELDS_1_2_NV = 0x20CB - VIDEO_OUT_STACKED_FIELDS_2_1_NV = 0x20CC - -############################################################################### - -# No new tokens -# Extension #350 -NV_swap_group enum: - -############################################################################### - -# Extension #374 -NV_video_capture enum: - DEVICE_ID_NV = 0x20CD - UNIQUE_ID_NV = 0x20CE - NUM_VIDEO_CAPTURE_SLOTS_NV = 0x20CF - -############################################################################### - -# Extension #375 -EXT_swap_control enum: - SWAP_INTERVAL_EXT = 0x20F1 - MAX_SWAP_INTERVAL_EXT = 0x20F2 - -############################################################################### - -# No new tokens -# Extension #376 -NV_copy_image enum: - -############################################################################### - -# Extension #384 -INTEL_swap_event enum: - BUFFER_SWAP_COMPLETE_INTEL_MASK = 0x04000000 - EXCHANGE_COMPLETE_INTEL = 0x8180 - COPY_COMPLETE_INTEL = 0x8181 - FLIP_COMPLETE_INTEL = 0x8182 - -############################################################################### - -# Extension #393 -NV_multisample_coverage enum: - COVERAGE_SAMPLES_NV = 100001 - COLOR_SAMPLES_NV = 0x20B3 - -############################################################################### - -# Extension #398 -AMD_gpu_association enum: - GPU_VENDOR_AMD = 0x1F00 - GPU_RENDERER_STRING_AMD = 0x1F01 - GPU_OPENGL_VERSION_STRING_AMD = 0x1F02 - GPU_FASTEST_TARGET_GPUS_AMD = 0x21A2 - GPU_RAM_AMD = 0x21A3 - GPU_CLOCK_AMD = 0x21A4 - GPU_NUM_PIPES_AMD = 0x21A5 - GPU_NUM_SIMD_AMD = 0x21A6 - GPU_NUM_RB_AMD = 0x21A7 - GPU_NUM_SPI_AMD = 0x21A8 - -############################################################################### - -# Extension #399 -# All values are shared with WGL and GL -EXT_create_context_es2_profile enum: - CONTEXT_ES2_PROFILE_BIT_EXT = 0x00000004 diff --git a/src/glx/apple/specs/glxext.spec b/src/glx/apple/specs/glxext.spec deleted file mode 100644 index 4719caf5622..00000000000 --- a/src/glx/apple/specs/glxext.spec +++ /dev/null @@ -1,1492 +0,0 @@ -# glxext.spec file -# DON'T REMOVE PREVIOUS LINE!!! libspec depends on it! -# -# Copyright (c) 1991-2005 Silicon Graphics, Inc. All Rights Reserved. -# Copyright (c) 2006-2010 The Khronos Group, Inc. -# -# This document is licensed under the SGI Free Software B License Version -# 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . -# -# $Revision: 12183 $ on $Date: 2010-08-06 02:53:05 -0700 (Fri, 06 Aug 2010) $ - -required-props: -param: retval retained -glxflags: client-handcode client-intercept server-handcode -glxvendorglx: * -vectorequiv: * -category: VERSION_1_3 VERSION_1_4 ARB_get_proc_address ARB_multisample ARB_fbconfig_float EXT_import_context SGIX_dmbuffer SGIX_fbconfig SGIX_pbuffer SGIX_swap_barrier SGIX_swap_group SGIX_video_resize SGIX_video_source SGI_cushion SGI_make_current_read SGI_swap_control SGI_video_sync SUN_get_transparent_index MESA_agp_offset MESA_copy_sub_buffer MESA_pixmap_colormap MESA_release_buffers MESA_set_3dfx_mode SGIX_visual_select_group OML_sync_control SGIX_hyperpipe EXT_texture_from_pixmap NV_swap_group NV_video_output NV_present_video ARB_create_context NV_video_capture NV_copy_image EXT_swap_control ARB_framebuffer_sRGB -glxopcode: * - -# -# Boilerplate to define types used by some extensions. This is done -# up front, since it involves some complexities in protecting -# the declarations whether or not the -protect flag is given to -# the generator scripts. -# - -passthru: #ifndef GLX_ARB_get_proc_address -passthru: typedef void (*__GLXextFuncPtr)(void); -passthru: #endif -passthru: -passthru: #ifndef GLX_SGIX_video_source -passthru: typedef XID GLXVideoSourceSGIX; -passthru: #endif -passthru: -passthru: #ifndef GLX_SGIX_fbconfig -passthru: typedef XID GLXFBConfigIDSGIX; -passthru: typedef struct __GLXFBConfigRec *GLXFBConfigSGIX; -passthru: #endif -passthru: -passthru: #ifndef GLX_SGIX_pbuffer -passthru: typedef XID GLXPbufferSGIX; -passthru: typedef struct { -passthru: int type; -passthru: unsigned long serial; /* # of last request processed by server */ -passthru: Bool send_event; /* true if this came for SendEvent request */ -passthru: Display *display; /* display the event was read from */ -passthru: GLXDrawable drawable; /* i.d. of Drawable */ -passthru: int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */ -passthru: int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */ -passthru: unsigned int mask; /* mask indicating which buffers are affected*/ -passthru: int x, y; -passthru: int width, height; -passthru: int count; /* if nonzero, at least this many more */ -passthru: } GLXBufferClobberEventSGIX; -passthru: #endif -passthru: -passthru: #ifndef GLX_NV_video_output -passthru: typedef unsigned int GLXVideoDeviceNV; -passthru: #endif -passthru: -passthru: #ifndef GLX_NV_video_capture -passthru: typedef XID GLXVideoCaptureDeviceNV; -passthru: #endif -passthru: -passthru: #ifndef GLEXT_64_TYPES_DEFINED -passthru: /* This code block is duplicated in glext.h, so must be protected */ -passthru: #define GLEXT_64_TYPES_DEFINED -passthru: /* Define int32_t, int64_t, and uint64_t types for UST/MSC */ -passthru: /* (as used in the GLX_OML_sync_control extension). */ -passthru: #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L -passthru: #include -passthru: #elif defined(__sun__) || defined(__digital__) -passthru: #include -passthru: #if defined(__STDC__) -passthru: #if defined(__arch64__) || defined(_LP64) -passthru: typedef long int int64_t; -passthru: typedef unsigned long int uint64_t; -passthru: #else -passthru: typedef long long int int64_t; -passthru: typedef unsigned long long int uint64_t; -passthru: #endif /* __arch64__ */ -passthru: #endif /* __STDC__ */ -passthru: #elif defined( __VMS ) || defined(__sgi) -passthru: #include -passthru: #elif defined(__SCO__) || defined(__USLC__) -passthru: #include -passthru: #elif defined(__UNIXOS2__) || defined(__SOL64__) -passthru: typedef long int int32_t; -passthru: typedef long long int int64_t; -passthru: typedef unsigned long long int uint64_t; -passthru: #elif defined(_WIN32) && defined(__GNUC__) -passthru: #include -passthru: #elif defined(_WIN32) -passthru: typedef __int32 int32_t; -passthru: typedef __int64 int64_t; -passthru: typedef unsigned __int64 uint64_t; -passthru: #else -passthru: #include /* Fallback option */ -passthru: #endif -passthru: #endif -passthru: - -############################################################################### -# -# GLX 1.3 commands -# -############################################################################### - -GetFBConfigs(dpy, screen, nelements) - return GLXFBConfigPointer - param dpy Display out reference - param screen int in value - param nelements int out reference - category VERSION_1_3 - glxflags client-handcode server-handcode - glxopcode 21 - -ChooseFBConfig(dpy, screen, attrib_list, nelements) - return GLXFBConfigPointer - param dpy Display out reference - param screen int in value - param attrib_list int in reference - param nelements int out reference - category VERSION_1_3 - glxflags client-handcode client-intercept server-handcode - -GetFBConfigAttrib(dpy, config, attribute, value) - return int - param dpy Display out reference - param config GLXFBConfig in value - param attribute int in value - param value int out reference - category VERSION_1_3 - glxflags client-handcode client-intercept server-handcode - -GetVisualFromFBConfig(dpy, config) - return XVisualInfoPointer - param dpy Display out reference - param config GLXFBConfig in value - category VERSION_1_3 - glxflags client-handcode client-intercept server-handcode - -CreateWindow(dpy, config, win, attrib_list) - return GLXWindow - param dpy Display out reference - param config GLXFBConfig in value - param win Window in value - param attrib_list int in reference - category VERSION_1_3 - glxflags client-handcode server-handcode - glxopcode 31 - -DestroyWindow(dpy, win) - return void - param dpy Display out reference - param win GLXWindow in value - category VERSION_1_3 - glxflags client-handcode server-handcode - glxopcode 32 - -CreatePixmap(dpy, config, pixmap, attrib_list) - return GLXPixmap - param dpy Display out reference - param config GLXFBConfig in value - param pixmap Pixmap in value - param attrib_list int in reference - category VERSION_1_3 - glxflags client-handcode server-handcode - glxopcode 22 - -DestroyPixmap(dpy, pixmap) - return void - param dpy Display out reference - param pixmap GLXPixmap in value - category VERSION_1_3 - glxflags client-handcode server-handcode - glxopcode 23 - -CreatePbuffer(dpy, config, attrib_list) - return GLXPbuffer - param dpy Display out reference - param config GLXFBConfig in value - param attrib_list int in reference - category VERSION_1_3 - glxflags client-handcode server-handcode - glxopcode 27 - -DestroyPbuffer(dpy, pbuf) - return void - param dpy Display out reference - param pbuf GLXPbuffer in value - category VERSION_1_3 - glxflags client-handcode server-handcode - glxopcode 28 - -# glXGetDrawableAttributes -> GLX opcode 29 -# glXChangeDrawableAttributes -> GLX opcode 30 - -# Uses glXGetDrawableAttributes protocol -QueryDrawable(dpy, draw, attribute, value) - return void - param dpy Display out reference - param draw GLXDrawable in value - param attribute int in value - param value uint out reference - category VERSION_1_3 - glxflags client-handcode client-intercept server-handcode - -CreateNewContext(dpy, config, render_type, share_list, direct) - return GLXContext - param dpy Display out reference - param config GLXFBConfig in value - param render_type int in value - param share_list GLXContext in value - param direct Bool in value - category VERSION_1_3 - glxflags client-handcode server-handcode - glxopcode 24 - -MakeContextCurrent(dpy, draw, read, ctx) - return Bool - param dpy Display out reference - param draw GLXDrawable in value - param read GLXDrawable in value - param ctx GLXContext in value - category VERSION_1_3 - glxflags client-handcode server-handcode - glxopcode 26 - -GetCurrentReadDrawable() - return GLXDrawable - category VERSION_1_3 - glxflags client-handcode client-intercept server-handcode - -GetCurrentDisplay() - return DisplayPointer - category VERSION_1_3 - glxflags client-handcode client-intercept server-handcode - -QueryContext(dpy, ctx, attribute, value) - return int - param dpy Display out reference - param ctx GLXContext in value - param attribute int in value - param value int out reference - category VERSION_1_3 - glxflags client-handcode server-handcode - glxopcode 25 - -# Uses glXChangeDrawableAttributes protocol -SelectEvent(dpy, draw, event_mask) - return void - param dpy Display out reference - param draw GLXDrawable in value - param event_mask ulong in value - category VERSION_1_3 - glxflags client-handcode server-handcode - -# Uses glXGetDrawableAttributes protocol -GetSelectedEvent(dpy, draw, event_mask) - return void - param dpy Display out reference - param draw GLXDrawable in value - param event_mask ulong out reference - category VERSION_1_3 - glxflags client-handcode client-intercept server-handcode - -############################################################################### -# -# GLX 1.4 commands -# -############################################################################### - -GetProcAddress(procName) - return FunctionPointer - param procName GLubyte in reference - category VERSION_1_4 - glxflags client-handcode client-intercept server-handcode - -############################################################################### -# -# ARB Extension #2 -# ARB_get_proc_address commands -# @promoted to core in GLX 1.4, but there's no provision for aliasing -# @in GLX spec files, yet -# -############################################################################### - -GetProcAddressARB(procName) - return FunctionPointer - param procName GLubyte in reference - category ARB_get_proc_address - glxflags client-handcode client-intercept server-handcode - -############################################################################### -# -# ARB Extension #5 -# ARB_multisample commands -# -############################################################################### - -# (none) -newcategory: ARB_multisample - -############################################################################### -# -# ARB Extension #39 -# ARB_fbconfig_float commands -# -############################################################################### - -# (none) -newcategory: ARB_fbconfig_float - -############################################################################### -# -# ARB Extension #46 -# ARB_framebuffer_sRGB commands -# -############################################################################### - -# (none) -newcategory: ARB_framebuffer_sRGB - -############################################################################### -# -# ARB Extension #56 -# ARB_create_context commands -# -############################################################################### - -CreateContextAttribsARB(dpy, config, share_context, direct, attrib_list) - return GLXContext - param dpy Display out reference - param config GLXFBConfig in value - param share_context GLXContext in value - param direct Bool in value - param attrib_list int in reference - category ARB_create_context - glxflags client-handcode client-intercept server-handcode - glxopcode 34 - -############################################################################### -# -# ARB Extension #75 -# ARB_create_context_profile commands -# -############################################################################### - -# (none) -newcategory: ARB_create_context_profile - -############################################################################### -# -# ARB Extension #101 -# ARB_create_context_robustness commands -# -############################################################################### - -# (none) -newcategory: ARB_create_context_robustness - - -############################################################################### -# -# Extension #25 -# SGIS_multisample commands -# -############################################################################### - -# (none) -newcategory: SGIS_multisample - -############################################################################### -# -# Extension #28 -# EXT_visual_info commands -# -############################################################################### - -# (none) -newcategory: EXT_visual_info - -############################################################################### -# -# Extension #40 -# SGI_swap_control commands -# -############################################################################### - -SwapIntervalSGI(interval) - return int - param interval int in value - category SGI_swap_control - glxflags client-handcode server-handcode - glxvendorglx 65536 - -############################################################################### -# -# Extension #41 -# SGI_video_sync commands -# -############################################################################### - -GetVideoSyncSGI(count) - return int - param count uint out reference - category SGI_video_sync - glxflags client-handcode client-intercept server-handcode - -WaitVideoSyncSGI(divisor, remainder, count) - return int - param divisor int in value - param remainder int in value - param count uint out reference - category SGI_video_sync - glxflags client-handcode client-intercept server-handcode - -############################################################################### -# -# Extension #42 -# SGI_make_current_read commands -# -############################################################################### - -MakeCurrentReadSGI(dpy, draw, read, ctx) - return Bool - param dpy Display out reference - param draw GLXDrawable in value - param read GLXDrawable in value - param ctx GLXContext in value - category SGI_make_current_read - glxflags client-handcode server-handcode - glxvendorglx 65537 - -GetCurrentReadDrawableSGI() - return GLXDrawable - category SGI_make_current_read - glxflags client-handcode client-intercept server-handcode - -############################################################################### -# -# Extension #43 -# SGIX_video_source commands -# -############################################################################### - -newcategory: SGIX_video_source -passthru: #ifdef _VL_H - -CreateGLXVideoSourceSGIX(display, screen, server, path, nodeClass, drainNode) - return GLXVideoSourceSGIX - param display Display out reference - param screen int in value - param server VLServer in value - param path VLPath in value - param nodeClass int in value - param drainNode VLNode in value - category SGIX_video_source - glxflags client-handcode server-handcode - glxvendorglx 65538 - -DestroyGLXVideoSourceSGIX(dpy, glxvideosource) - return void - param dpy Display out reference - param glxvideosource GLXVideoSourceSGIX in value - category SGIX_video_source - glxflags client-handcode server-handcode - glxvendorglx 65539 - -passend: #endif /* _VL_H */ -endcategory: - -############################################################################### -# -# Extension #44 -# EXT_visual_rating commands -# -############################################################################### - -# (none) -newcategory: EXT_visual_rating - -############################################################################### -# -# Extension #47 -# EXT_import_context commands -# -############################################################################### - -GetCurrentDisplayEXT() - return DisplayPointer - category EXT_import_context - glxflags client-handcode client-intercept server-handcode - -QueryContextInfoEXT(dpy, context, attribute, value) - return int - param dpy Display out reference - param context GLXContext in value - param attribute int in value - param value int out reference - category EXT_import_context - glxflags client-handcode server-handcode - glxvendorglx 1024 - -# 'constGLXContext' is a hack; the extension specification and glx.h -# should be fixed instead. -GetContextIDEXT(context) - return GLXContextID - param context constGLXContext in value - category EXT_import_context - glxflags client-handcode client-intercept server-handcode - -ImportContextEXT(dpy, contextID) - return GLXContext - param dpy Display out reference - param contextID GLXContextID in value - category EXT_import_context - glxflags client-handcode client-intercept server-handcode - -FreeContextEXT(dpy, context) - return void - param dpy Display out reference - param context GLXContext in value - category EXT_import_context - glxflags client-handcode client-intercept server-handcode - -############################################################################### -# -# Extension #49 -# SGIX_fbconfig commands -# -############################################################################### - -# GetFBConfigsSGIX protocol -> VendorPrivate opcode 65540 - -GetFBConfigAttribSGIX(dpy, config, attribute, value) - return int - param dpy Display out reference - param config GLXFBConfigSGIX in value - param attribute int in value - param value int out reference - category SGIX_fbconfig - glxflags client-handcode client-intercept server-handcode - -ChooseFBConfigSGIX(dpy, screen, attrib_list, nelements) - return GLXFBConfigSGIXPointer - param dpy Display out reference - param screen int in value - param attrib_list int out reference - param nelements int out reference - category SGIX_fbconfig - glxflags client-handcode client-intercept server-handcode - -CreateGLXPixmapWithConfigSGIX(dpy, config, pixmap) - return GLXPixmap - param dpy Display out reference - param config GLXFBConfigSGIX in value - param pixmap Pixmap in value - category SGIX_fbconfig - glxflags client-handcode server-handcode - glxvendorglx 65542 - -CreateContextWithConfigSGIX(dpy, config, render_type, share_list, direct) - return GLXContext - param dpy Display out reference - param config GLXFBConfigSGIX in value - param render_type int in value - param share_list GLXContext in value - param direct Bool in value - category SGIX_fbconfig - glxflags client-handcode server-handcode - glxvendorglx 65541 - -GetVisualFromFBConfigSGIX(dpy, config) - return XVisualInfoPointer - param dpy Display out reference - param config GLXFBConfigSGIX in value - category SGIX_fbconfig - glxflags client-handcode client-intercept server-handcode - -GetFBConfigFromVisualSGIX(dpy, vis) - return GLXFBConfigSGIX - param dpy Display out reference - param vis XVisualInfo out reference - category SGIX_fbconfig - glxflags client-handcode client-intercept server-handcode - -############################################################################### -# -# Extension #50 -# SGIX_pbuffer commands -# -############################################################################### - -# ChangeDrawableAttributesSGIX protocol -> VendorPrivate opcode 65545 -# GetDrawableAttributesSGIX protocol -> VendorPrivate opcode 65546 - -CreateGLXPbufferSGIX(dpy, config, width, height, attrib_list) - return GLXPbufferSGIX - param dpy Display out reference - param config GLXFBConfigSGIX in value - param width uint in value - param height uint in value - param attrib_list int out reference - category SGIX_pbuffer - glxflags client-handcode server-handcode - glxvendorglx 65543 - -DestroyGLXPbufferSGIX(dpy, pbuf) - return void - param dpy Display out reference - param pbuf GLXPbufferSGIX in value - category SGIX_pbuffer - glxflags client-handcode - glxvendorglx 65544 - -QueryGLXPbufferSGIX(dpy, pbuf, attribute, value) - return int - param dpy Display out reference - param pbuf GLXPbufferSGIX in value - param attribute int in value - param value uint out reference - category SGIX_pbuffer - -SelectEventSGIX(dpy, drawable, mask) - return void - param dpy Display out reference - param drawable GLXDrawable in value - param mask ulong in value - category SGIX_pbuffer - -GetSelectedEventSGIX(dpy, drawable, mask) - return void - param dpy Display out reference - param drawable GLXDrawable in value - param mask ulong out reference - category SGIX_pbuffer - -############################################################################### -# -# Extension #62 -# SGI_cushion commands -# -############################################################################### - -CushionSGI(dpy, window, cushion) - return void - param dpy Display out reference - param window Window in value - param cushion float in value - category SGI_cushion - -############################################################################### -# -# Extension #83 -# SGIX_video_resize commands -# -############################################################################### - -BindChannelToWindowSGIX(display, screen, channel, window) - return int - param display Display out reference - param screen int in value - param channel int in value - param window Window in value - category SGIX_video_resize - -ChannelRectSGIX(display, screen, channel, x, y, w, h) - return int - param display Display out reference - param screen int in value - param channel int in value - param x int in value - param y int in value - param w int in value - param h int in value - category SGIX_video_resize - -QueryChannelRectSGIX(display, screen, channel, dx, dy, dw, dh) - return int - param display Display out reference - param screen int in value - param channel int in value - param dx int out reference - param dy int out reference - param dw int out reference - param dh int out reference - category SGIX_video_resize - -QueryChannelDeltasSGIX(display, screen, channel, x, y, w, h) - return int - param display Display out reference - param screen int in value - param channel int in value - param x int out reference - param y int out reference - param w int out reference - param h int out reference - category SGIX_video_resize - -# @@@ Not in man page - this entry point may not be shipping? -ChannelRectSyncSGIX(display, screen, channel, synctype) - return int - param display Display out reference - param screen int in value - param channel int in value - param synctype GLenum in value - category SGIX_video_resize - -############################################################################### -# -# Extension #86 -# SGIX_dmbuffer commands -# -############################################################################### - -newcategory: SGIX_dmbuffer -passthru: #ifdef _DM_BUFFER_H_ - -AssociateDMPbufferSGIX(dpy, pbuffer, params, dmbuffer) - return Bool - param dpy Display out reference - param pbuffer GLXPbufferSGIX in value - param params DMparams out reference - param dmbuffer DMbuffer in value - category SGIX_dmbuffer - -passend: #endif /* _DM_BUFFER_H_ */ -endcategory: - -############################################################################### -# -# Extension #91 -# SGIX_swap_group commands -# -############################################################################### - -JoinSwapGroupSGIX(dpy, drawable, member) - return void - param dpy Display out reference - param drawable GLXDrawable in value - param member GLXDrawable in value - category SGIX_swap_group - glxflags client-handcode server-handcode - glxvendorglx 65547 - -############################################################################### -# -# Extension #92 -# SGIX_swap_barrier commands -# -############################################################################### - -BindSwapBarrierSGIX(dpy, drawable, barrier) - return void - param dpy Display out reference - param drawable GLXDrawable in value - param barrier int in value - category SGIX_swap_barrier - glxflags client-handcode server-handcode - glxvendorglx 65548 - -QueryMaxSwapBarriersSGIX(dpy, screen, max) - return Bool - param dpy Display out reference - param screen int in value - param max int out reference - category SGIX_swap_barrier - glxflags client-handcode server-handcode - glxvendorglx 65549 - -############################################################################### -# -# Extension #183 -# SUN_get_transparent_index commands -# -############################################################################### - -GetTransparentIndexSUN(dpy, overlay, underlay, pTransparentIndex) - return Status - param dpy Display out reference - param overlay Window in value - param underlay Window in value - param pTransparentIndex long out reference - category SUN_get_transparent_index - -############################################################################### -# -# Extension #215 -# MESA_copy_sub_buffer commands -# -############################################################################### - -CopySubBufferMESA(dpy, drawable, x, y, width, height) - return void - param dpy Display out reference - param drawable GLXDrawable in value - param x int in value - param y int in value - param width int in value - param height int in value - category MESA_copy_sub_buffer - glxflags client-handcode client-intercept server-handcode - -############################################################################### -# -# Extension #216 -# MESA_pixmap_colormap commands -# -############################################################################### - -CreateGLXPixmapMESA(dpy, visual, pixmap, cmap) - return GLXPixmap - param dpy Display out reference - param visual XVisualInfo out reference - param pixmap Pixmap in value - param cmap Colormap in value - category MESA_pixmap_colormap - glxflags client-handcode client-intercept server-handcode - -############################################################################### -# -# Extension #217 -# MESA_release_buffers commands -# -############################################################################### - -ReleaseBuffersMESA(dpy, drawable) - return Bool - param dpy Display out reference - param drawable GLXDrawable in value - category MESA_release_buffers - glxflags client-handcode client-intercept server-handcode - -############################################################################### -# -# Extension #218 -# MESA_set_3dfx_mode commands -# -############################################################################### - -# Brian's spec has this as returning 'GLboolean' and taking 'GLint mode' -Set3DfxModeMESA(mode) - return Bool - param mode int in value - category MESA_set_3dfx_mode - glxflags client-handcode client-intercept server-handcode - -############################################################################### -# -# Extension #234 -# SGIX_visual_select_group commands -# -############################################################################### - -# (none) -newcategory: SGIX_visual_select_group - -############################################################################### -# -# Extension #237 -# OML_swap_method commands -# -############################################################################### - -# (none) -newcategory: OML_swap_method - -############################################################################### -# -# Extension #238 -# OML_sync_control commands -# -############################################################################### - -GetSyncValuesOML(dpy, drawable, ust, msc, sbc) - return Bool - param dpy Display out reference - param drawable GLXDrawable in value - param ust int64_t out reference - param msc int64_t out reference - param sbc int64_t out reference - category OML_sync_control - glxflags client-handcode server-handcode - -GetMscRateOML(dpy, drawable, numerator, denominator) - return Bool - param dpy Display out reference - param drawable GLXDrawable in value - param numerator int32_t out reference - param denominator int32_t out reference - category OML_sync_control - glxflags client-handcode server-handcode - -SwapBuffersMscOML(dpy, drawable, target_msc, divisor, remainder) - return int64_t - param dpy Display out reference - param drawable GLXDrawable in value - param target_msc int64_t in value - param divisor int64_t in value - param remainder int64_t in value - category OML_sync_control - glxflags client-handcode server-handcode - -WaitForMscOML(dpy, drawable, target_msc, divisor, remainder, ust, msc, sbc) - return Bool - param dpy Display out reference - param drawable GLXDrawable in value - param target_msc int64_t in value - param divisor int64_t in value - param remainder int64_t in value - param ust int64_t out reference - param msc int64_t out reference - param sbc int64_t out reference - category OML_sync_control - glxflags client-handcode server-handcode - -WaitForSbcOML(dpy, drawable, target_sbc, ust, msc, sbc) - return Bool - param dpy Display out reference - param drawable GLXDrawable in value - param target_sbc int64_t in value - param ust int64_t out reference - param msc int64_t out reference - param sbc int64_t out reference - category OML_sync_control - glxflags client-handcode server-handcode - -############################################################################### -# -# Extension #281 -# NV_float_buffer commands -# -############################################################################### - -# (none) -newcategory: NV_float_buffer - -############################################################################### -# -# Extension #307 -# SGIX_hyperpipe commands -# -############################################################################### - -newcategory: SGIX_hyperpipe -passthru: -passthru: typedef struct { -passthru: char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; -passthru: int networkId; -passthru: } GLXHyperpipeNetworkSGIX; -passthru: -passthru: typedef struct { -passthru: char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; -passthru: int channel; -passthru: unsigned int -passthru: participationType; -passthru: int timeSlice; -passthru: } GLXHyperpipeConfigSGIX; -passthru: -passthru: typedef struct { -passthru: char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; -passthru: int srcXOrigin, srcYOrigin, srcWidth, srcHeight; -passthru: int destXOrigin, destYOrigin, destWidth, destHeight; -passthru: } GLXPipeRect; -passthru: -passthru: typedef struct { -passthru: char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX]; -passthru: int XOrigin, YOrigin, maxHeight, maxWidth; -passthru: } GLXPipeRectLimits; -passthru: - -QueryHyperpipeNetworkSGIX(dpy, npipes) - return GLXHyperpipeNetworkSGIXPointer - param dpy Display out reference - param npipes int out reference - glxflags client-handcode server-handcode - category SGIX_hyperpipe - glxvendorglx 65550 - -HyperpipeConfigSGIX(dpy, networkId, npipes, cfg, hpId) - return int - param dpy Display out reference - param networkId int in value - param npipes int in value - param cfg GLXHyperpipeConfigSGIX out array [COMPSIZE(npipes)] - param hpId int out reference - glxflags client-handcode server-handcode - category SGIX_hyperpipe - glxvendorglx 65552 - -QueryHyperpipeConfigSGIX(dpy, hpId, npipes) - return GLXHyperpipeConfigSGIXPointer - param dpy Display out reference - param hpId int in value - param npipes int out reference - glxflags client-handcode server-handcode - category SGIX_hyperpipe - glxvendorglx 65551 - -DestroyHyperpipeConfigSGIX(dpy, hpId) - return int - param dpy Display out reference - param hpId int in value - glxflags client-handcode server-handcode - category SGIX_hyperpipe - glxvendorglx 65553 - -BindHyperpipeSGIX(dpy, hpId) - return int - param dpy Display out reference - param hpId int in value - glxflags client-handcode server-handcode - category SGIX_hyperpipe - glxvendorglx ??? - -QueryHyperpipeBestAttribSGIX(dpy, timeSlice, attrib, size, attribList, returnAttribList) - return int - param dpy Display out reference - param timeSlice int in value - param attrib int in value - param size int in value - param attribList void out array [COMPSIZE(size)] - param returnAttribList void out array [COMPSIZE(size)] - glxflags client-handcode server-handcode - category SGIX_hyperpipe - glxvendorglx ??? - -HyperpipeAttribSGIX(dpy, timeSlice, attrib, size, attribList) - return int - param dpy Display out reference - param timeSlice int in value - param attrib int in value - param size int in value - param attribList void out array [COMPSIZE(size)] - glxflags client-handcode server-handcode - category SGIX_hyperpipe - glxvendorglx ??? - -QueryHyperpipeAttribSGIX(dpy, timeSlice, attrib, size, returnAttribList) - return int - param dpy Display out reference - param timeSlice int in value - param attrib int in value - param size int in value - param returnAttribList void out array [COMPSIZE(size)] - glxflags client-handcode server-handcode - category SGIX_hyperpipe - glxvendorglx ??? - -############################################################################### -# -# Extension #308 -# MESA_agp_offset commands -# -############################################################################### - -GetAGPOffsetMESA(pointer) - return uint - param pointer void in reference - glxflags client-handcode client-intercept server-handcode - category MESA_agp_offset - -############################################################################### -# -# Extension #328 -# EXT_fbconfig_packed_float commands -# -############################################################################### - -# (none) -newcategory: EXT_fbconfig_packed_float - -############################################################################### -# -# Extension #337 -# EXT_framebuffer_sRGB commands -# -############################################################################### - -# (none) -newcategory: EXT_framebuffer_sRGB - -############################################################################### -# -# Extension #344 -# EXT_texture_from_pixmap commands -# -############################################################################### - -BindTexImageEXT(dpy, drawable, buffer, attrib_list) - return void - param dpy Display out reference - param drawable GLXDrawable in value - param buffer int in value - param attrib_list int in reference - category EXT_texture_from_pixmap - glxflags client-handcode server-handcode - glxvendorglx 1330 - -ReleaseTexImageEXT(dpy, drawable, buffer) - return void - param dpy Display out reference - param drawable GLXDrawable in value - param buffer int in value - category EXT_texture_from_pixmap - glxflags client-handcode server-handcode - glxvendorglx 1331 - -############################################################################### -# -# Extension #347 -# NV_present_video commands -# -############################################################################### - -EnumerateVideoDevicesNV(dpy, screen, nelements) - return uintPointer - param dpy Display out reference - param screen int in value - param nelements int out reference - category NV_present_video - glxflags client-handcode server-handcode - -BindVideoDeviceNV(dpy, video_slot, video_device, attrib_list) - return int - param dpy Display out reference - param video_slot uint in value - param video_device uint in value - param attrib_list int in reference - category NV_present_video - glxflags client-handcode server-handcode - -############################################################################### -# -# Extension #348 -# NV_video_output commands -# -############################################################################### - -GetVideoDeviceNV(dpy, screen, numVideoDevices, pVideoDevice) - return int - param dpy Display out reference - param screen int in value - param numVideoDevices int in value - param pVideoDevice GLXVideoDeviceNV out array [COMPSIZE(numVideoDevices)] - category NV_video_output - glxflags client-handcode server-handcode - -ReleaseVideoDeviceNV(dpy, screen, VideoDevice) - return int - param dpy Display out reference - param screen int in value - param VideoDevice GLXVideoDeviceNV in value - category NV_video_output - glxflags client-handcode server-handcode - -BindVideoImageNV(dpy, VideoDevice, pbuf, iVideoBuffer) - return int - param dpy Display out reference - param VideoDevice GLXVideoDeviceNV in value - param pbuf GLXPbuffer in value - param iVideoBuffer int in value - category NV_video_output - glxflags client-handcode server-handcode - -ReleaseVideoImageNV(dpy, pbuf) - return int - param dpy Display out reference - param pbuf GLXPbuffer in value - category NV_video_output - glxflags client-handcode server-handcode - -SendPbufferToVideoNV(dpy, pbuf, iBufferType, pulCounterPbuffer, bBlock) - return int - param dpy Display out reference - param pbuf GLXPbuffer in value - param iBufferType int in value - param pulCounterPbuffer ulong out reference - param bBlock GLboolean in value - category NV_video_output - glxflags client-handcode server-handcode - -GetVideoInfoNV(dpy, screen, VideoDevice, pulCounterOutputPbuffer, pulCounterOutputVideo) - return int - param dpy Display out reference - param screen int in value - param VideoDevice GLXVideoDeviceNV in value - param pulCounterOutputPbuffer ulong out reference - param pulCounterOutputVideo ulong out reference - category NV_video_output - glxflags client-handcode server-handcode - -############################################################################### -# -# Extension #350 -# NV_swap_group commands -# -############################################################################### - -JoinSwapGroupNV(dpy, drawable, group) - return Bool - param dpy Display out reference - param drawable GLXDrawable in value - param group GLuint in value - category NV_swap_group - glxflags client-handcode server-handcode - -BindSwapBarrierNV(dpy, group, barrier) - return Bool - param dpy Display out reference - param group GLuint in value - param barrier GLuint in value - category NV_swap_group - glxflags client-handcode server-handcode - -QuerySwapGroupNV(dpy, drawable, group, barrier) - return Bool - param dpy Display out reference - param drawable GLXDrawable in value - param group GLuint out reference - param barrier GLuint out reference - category NV_swap_group - glxflags client-handcode server-handcode - -QueryMaxSwapGroupsNV(dpy, screen, maxGroups, maxBarriers) - return Bool - param dpy Display out reference - param screen int in value - param maxGroups GLuint out reference - param maxBarriers GLuint out reference - category NV_swap_group - glxflags client-handcode server-handcode - -QueryFrameCountNV(dpy, screen, count) - return Bool - param dpy Display out reference - param screen int in value - param count GLuint out reference - category NV_swap_group - glxflags client-handcode server-handcode - -ResetFrameCountNV(dpy, screen) - return Bool - param dpy Display out reference - param screen int in value - category NV_swap_group - glxflags client-handcode server-handcode - -############################################################################### -# -# Extension #374 -# NV_video_capture commands -# -############################################################################### - -BindVideoCaptureDeviceNV(dpy, video_capture_slot, device) - return int - param dpy Display out reference - param video_capture_slot uint in value - param device GLXVideoCaptureDeviceNV in value - category NV_video_capture - glxflags client-handcode server-handcode - -EnumerateVideoCaptureDevicesNV(dpy, screen, nelements) - return GLXVideoCaptureDeviceNVPointer - param dpy Display out reference - param screen int in value - param nelements int out reference - category NV_video_capture - glxflags client-handcode server-handcode - -LockVideoCaptureDeviceNV(dpy, device) - return void - param dpy Display out reference - param device GLXVideoCaptureDeviceNV in value - category NV_video_capture - glxflags client-handcode server-handcode - -QueryVideoCaptureDeviceNV(dpy, device, attribute, value) - return int - param dpy Display out reference - param device GLXVideoCaptureDeviceNV in value - param attribute int in value - param value int out array [COMPSIZE(attribute)] - category NV_video_capture - glxflags client-handcode server-handcode - -ReleaseVideoCaptureDeviceNV(dpy, device) - return void - param dpy Display out reference - param device GLXVideoCaptureDeviceNV in value - category NV_video_capture - glxflags client-handcode server-handcode - -############################################################################### -# -# Extension #375 -# EXT_swap_control commands -# -############################################################################### - -SwapIntervalEXT(dpy, drawable, interval) - return int - param dpy Display out reference - param drawable GLXDrawable in value - param interval int in value - category EXT_swap_control - glxflags client-handcode server-handcode - -############################################################################### -# -# Extension #376 -# NV_copy_image commands -# -############################################################################### - -CopyImageSubDataNV(dpy, srcCtx, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstCtx, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, width, height, depth) - return void - param dpy Display out reference - param srcCtx GLXContext in value - param srcName GLuint in value - param srcTarget GLenum in value - param srcLevel GLint in value - param srcX GLint in value - param srcY GLint in value - param srcZ GLint in value - param dstCtx GLXContext in value - param dstName GLuint in value - param dstTarget GLenum in value - param dstLevel GLint in value - param dstX GLint in value - param dstY GLint in value - param dstZ GLint in value - param width GLsizei in value - param height GLsizei in value - param depth GLsizei in value - category NV_copy_image - glxflags client-handcode server-handcode - -############################################################################### -# -# Extension #384 -# INTEL_swap_event commands -# -############################################################################### - -# (none) -newcategory: INTEL_swap_event - -############################################################################### -# -# Extension #393 -# NV_multisample_coverage commands -# -############################################################################### - -# (none) -newcategory: NV_multisample_coverage - -############################################################################### -# -# Extension #399 -# AMD_gpu_association commands -# -############################################################################### - -# These are a weird mishmash of X and Windows types - are they correct? -# Leave out of glxext.h for the time being. - -#@ UINT glXGetGPUIDsAMD(UINT maxCount, UINT *ids); -#@ INT glXGetGPUInfoAMD(UINT id, INT property, GLenum dataType, -#@ UINT size, void *data) -#@ UINT glXGetContextGPUIDAMD(GLXContext ctx); -#@ HGLRC glXCreateAssociatedContextAMD(UINT id, GLXContext share_list); -#@ HGLRC glXCreateAssociatedContextAttribsAMD(UINT id, GLXContext share_context, -#@ const int *attribList); -#@ BOOL glXDeleteAssociatedContextAMD(GLXContext ctx); -#@ BOOL glXMakeAssociatedContextCurrentAMD(GLXContext ctx); -#@ HGLRC glXGetCurrentAssociatedContextAMD(void); -#@ VOID glXBlitContextFramebufferAMD(GLXContext dstCtx, GLint srcX0, GLint srcY0, -#@ GLint srcX1, GLint srcY1, GLint dstX0, -#@ GLint dstY0, GLint dstX1, GLint dstY1, -#@ GLbitfield mask, GLenum filter); - -#@ glXGetGPUIDsAMD(maxCount, ids) -#@ return UINT -#@ param maxCount UINT in value -#@ param ids UINT in array [???] -#@ category AMD_gpu_association -#@ version 4.1 -#@ extension -#@ glxropcode ? -#@ glxflags ignore -#@ offset ? -#@ -#@ glXGetGPUInfoAMD(id, property, dataType, size, data) -#@ return INT -#@ param id UINT in value -#@ param property INT in value -#@ param dataType GLenum in value -#@ param size UINT in value -#@ param data void in array [???] -#@ category AMD_gpu_association -#@ version 4.1 -#@ extension -#@ glxropcode ? -#@ glxflags ignore -#@ offset ? -#@ -#@ glXGetContextGPUIDAMD(ctx) -#@ return UINT -#@ param ctx GLXContext in value -#@ category AMD_gpu_association -#@ version 4.1 -#@ extension -#@ glxropcode ? -#@ glxflags ignore -#@ offset ? -#@ -#@ glXCreateAssociatedContextAMD(id, share_list) -#@ return HGLRC -#@ param id UINT in value -#@ param share_list GLXContext in value -#@ category AMD_gpu_association -#@ version 4.1 -#@ extension -#@ glxropcode ? -#@ glxflags ignore -#@ offset ? -#@ -#@ glXCreateAssociatedContextAttribsAMD(id, share_context, attribList) -#@ return HGLRC -#@ param id UINT in value -#@ param share_context GLXContext in value -#@ param attribList Int32 in array [???] -#@ category AMD_gpu_association -#@ version 4.1 -#@ extension -#@ glxropcode ? -#@ glxflags ignore -#@ offset ? -#@ -#@ glXDeleteAssociatedContextAMD(ctx) -#@ return BOOL -#@ param ctx GLXContext in value -#@ category AMD_gpu_association -#@ version 4.1 -#@ extension -#@ glxropcode ? -#@ glxflags ignore -#@ offset ? -#@ -#@ glXMakeAssociatedContextCurrentAMD(ctx) -#@ return BOOL -#@ param ctx GLXContext in value -#@ category AMD_gpu_association -#@ version 4.1 -#@ extension -#@ glxropcode ? -#@ glxflags ignore -#@ offset ? -#@ -#@ glXGetCurrentAssociatedContextAMD() -#@ return HGLRC -#@ category AMD_gpu_association -#@ version 4.1 -#@ extension -#@ glxropcode ? -#@ glxflags ignore -#@ offset ? -#@ -#@ glXBlitContextFramebufferAMD(dstCtx, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter) -#@ return VOID -#@ param dstCtx GLXContext in value -#@ param srcX0 GLint in value -#@ param srcY0 GLint in value -#@ param srcX1 GLint in value -#@ param srcY1 GLint in value -#@ param dstX0 GLint in value -#@ param dstY0 GLint in value -#@ param dstX1 GLint in value -#@ param dstY1 GLint in value -#@ param mask GLbitfield in value -#@ param filter GLenum in value -#@ category AMD_gpu_association -#@ version 4.1 -#@ extension -#@ glxropcode ? -#@ glxflags ignore -#@ offset ? diff --git a/src/glx/apple/specs/update.sh b/src/glx/apple/specs/update.sh deleted file mode 100755 index f8c3158a539..00000000000 --- a/src/glx/apple/specs/update.sh +++ /dev/null @@ -1,4 +0,0 @@ -for f in enum.spec enumext.spec gl.spec gl.tm glx.spec glxenum.spec glxenumext.spec glxext.spec ; do - curl -LO http://www.opengl.org/registry/api/$f -done - From 3a71f880d2284cb4d3f7f4de44f83eff95e6a789 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 7 Jun 2011 21:21:47 -0700 Subject: [PATCH 098/145] apple: Update dispatch table to current OpenGL specs This updates the apple dispatch table to match the current glapi. Aliases are still not handled very well. Signed-off-by: Jeremy Huddleston --- src/glx/apple/apple_glapi.c | 258 ++++++++++++++++++++++++++++++++---- 1 file changed, 233 insertions(+), 25 deletions(-) diff --git a/src/glx/apple/apple_glapi.c b/src/glx/apple/apple_glapi.c index 88c317fbe38..7b2d7770442 100644 --- a/src/glx/apple/apple_glapi.c +++ b/src/glx/apple/apple_glapi.c @@ -83,7 +83,7 @@ void apple_xgl_init_direct(void) { assert(__ogl_framework_api); /* to update: - * for f in $(grep 'define SET_' ../../../glx/dispatch.h | cut -f2 -d' ' | cut -f1 -d\( | sort -u); do grep -q $f indirect.c && echo $f ; done | grep -v by_offset | sed 's:SET_\(.*\)$:SET_\1(__ogl_framework_api, dlsym(handle, "gl\1"))\;:' + * for f in $(grep SET_ ../../mesa/main/glapidispatch.h | grep INLINE | sed 's:^.*\(SET_[^(]*\)(.*$:\1:' | sort -u); do grep -q "$f(" apple_glapi.c || echo $f ; done | sed 's:SET_\(.*\)$: SET_\1(__ogl_framework_api, dlsym(handle, "gl\1"))\;:' */ SET_Accum(__ogl_framework_api, dlsym(handle, "glAccum")); @@ -422,21 +422,6 @@ void apple_xgl_init_direct(void) { SET_TexGenfv(__ogl_framework_api, dlsym(handle, "glTexGenfv")); SET_TexGeni(__ogl_framework_api, dlsym(handle, "glTexGeni")); SET_TexGeniv(__ogl_framework_api, dlsym(handle, "glTexGeniv")); - - /* Pointer Incompatability: - * internalformat is a GLenum according to /System/Library/Frameworks/OpenGL.framework/Headers/gl.h - * extern void glTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); - * extern void glTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); - * extern void glTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels); - * - * and it's a GLint in glx/glapitable.h and according to the man page - * void ( * TexImage1D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid * pixels); - * void ( * TexImage2D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels); - * void ( * TexImage3D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid * pixels); - * - * gl.h contains incorrect prototypes for glTexImage[123]D - */ - SET_TexImage1D(__ogl_framework_api, dlsym(handle, "glTexImage1D")); SET_TexImage2D(__ogl_framework_api, dlsym(handle, "glTexImage2D")); SET_TexImage3D(__ogl_framework_api, dlsym(handle, "glTexImage3D")); @@ -478,12 +463,17 @@ void apple_xgl_init_direct(void) { /* GL_VERSION_2_0 */ SET_AttachShader(__ogl_framework_api, dlsym(handle, "glAttachShader")); + SET_CreateProgram(__ogl_framework_api, dlsym(handle, "glCreateProgram")); + SET_CreateShader(__ogl_framework_api, dlsym(handle, "glCreateShader")); + SET_DeleteProgram(__ogl_framework_api, dlsym(handle, "glDeleteProgram")); SET_DeleteShader(__ogl_framework_api, dlsym(handle, "glDeleteShader")); SET_DetachShader(__ogl_framework_api, dlsym(handle, "glDetachShader")); SET_GetAttachedShaders(__ogl_framework_api, dlsym(handle, "glGetAttachedShaders")); + SET_GetProgramiv(__ogl_framework_api, dlsym(handle, "glGetProgramiv")); SET_GetProgramInfoLog(__ogl_framework_api, dlsym(handle, "glGetProgramInfoLog")); SET_GetShaderInfoLog(__ogl_framework_api, dlsym(handle, "glGetShaderInfoLog")); SET_GetShaderiv(__ogl_framework_api, dlsym(handle, "glGetShaderiv")); + SET_IsProgram(__ogl_framework_api, dlsym(handle, "glIsProgram")); SET_IsShader(__ogl_framework_api, dlsym(handle, "glIsShader")); SET_StencilFuncSeparate(__ogl_framework_api, dlsym(handle, "glStencilFuncSeparate")); SET_StencilMaskSeparate(__ogl_framework_api, dlsym(handle, "glStencilMaskSeparate")); @@ -497,6 +487,22 @@ void apple_xgl_init_direct(void) { SET_UniformMatrix4x2fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix4x2fv")); SET_UniformMatrix4x3fv(__ogl_framework_api, dlsym(handle, "glUniformMatrix4x3fv")); + /* GL_VERSION_3_0 */ + SET_ClampColor(__ogl_framework_api, dlsym(handle, "glClampColor")); + SET_ClearBufferfi(__ogl_framework_api, dlsym(handle, "glClearBufferfi")); + SET_ClearBufferfv(__ogl_framework_api, dlsym(handle, "glClearBufferfv")); + SET_ClearBufferiv(__ogl_framework_api, dlsym(handle, "glClearBufferiv")); + SET_ClearBufferuiv(__ogl_framework_api, dlsym(handle, "glClearBufferuiv")); + SET_GetStringi(__ogl_framework_api, dlsym(handle, "glGetStringi")); + + /* GL_VERSION_3_1 */ + SET_TexBuffer(__ogl_framework_api, dlsym(handle, "glTexBuffer")); + + /* GL_VERSION_3_2 */ + SET_FramebufferTexture(__ogl_framework_api, dlsym(handle, "glFramebufferTexture")); + SET_GetBufferParameteri64v(__ogl_framework_api, dlsym(handle, "glGetBufferParameteri64v")); + SET_GetInteger64i_v(__ogl_framework_api, dlsym(handle, "glGetInteger64i_v")); + /* GL_APPLE_vertex_array_object */ SET_BindVertexArrayAPPLE(__ogl_framework_api, dlsym(handle, "glBindVertexArrayAPPLE")); SET_DeleteVertexArraysAPPLE(__ogl_framework_api, dlsym(handle, "glDeleteVertexArraysAPPLE")); @@ -794,15 +800,6 @@ void apple_xgl_init_direct(void) { SET_ProgramEnvParameters4fvEXT(__ogl_framework_api, dlsym(handle, "glProgramEnvParameters4fvEXT")); SET_ProgramLocalParameters4fvEXT(__ogl_framework_api, dlsym(handle, "glProgramLocalParameters4fvEXT")); - /* Pointer Incompatability: - * This warning can be safely ignored. OpenGL.framework adds const to the - * two pointers. - * - * extern void glMultiDrawArraysEXT (GLenum, const GLint *, const GLsizei *, GLsizei); - * - * void ( * MultiDrawArraysEXT)(GLenum mode, GLint * first, GLsizei * count, GLsizei primcount); - */ - /* GL_EXT_multi_draw_arrays */ SET_MultiDrawArraysEXT(__ogl_framework_api, (void *)dlsym(handle, "glMultiDrawArraysEXT")); SET_MultiDrawElementsEXT(__ogl_framework_api, dlsym(handle, "glMultiDrawElementsEXT")); @@ -990,6 +987,217 @@ void apple_xgl_init_direct(void) { SET_PixelTexGenParameterivSGIS(__ogl_framework_api, dlsym(handle, "glPixelTexGenParameterivSGIS")); SET_PixelTexGenSGIX(__ogl_framework_api, dlsym(handle, "glPixelTexGenSGIX")); + /* GL_EXT_separate_shader_objects */ + SET_ActiveProgramEXT(__ogl_framework_api, dlsym(handle, "glActiveProgramEXT")); + SET_CreateShaderProgramEXT(__ogl_framework_api, dlsym(handle, "glCreateShaderProgramEXT")); + SET_UseShaderProgramEXT(__ogl_framework_api, dlsym(handle, "glUseShaderProgramEXT")); + + /* GL_NV_conditional_render */ + SET_BeginConditionalRenderNV(__ogl_framework_api, dlsym(handle, "glBeginConditionalRenderNV")); + SET_EndConditionalRenderNV(__ogl_framework_api, dlsym(handle, "glEndConditionalRenderNV")); + + /* GL_EXT_transform_feedback */ + SET_BeginTransformFeedbackEXT(__ogl_framework_api, dlsym(handle, "glBeginTransformFeedbackEXT")); + SET_EndTransformFeedbackEXT(__ogl_framework_api, dlsym(handle, "glEndTransformFeedbackEXT")); + SET_BindBufferBaseEXT(__ogl_framework_api, dlsym(handle, "glBindBufferBaseEXT")); + SET_BindBufferOffsetEXT(__ogl_framework_api, dlsym(handle, "glBindBufferOffsetEXT")); + SET_BindBufferRangeEXT(__ogl_framework_api, dlsym(handle, "glBindBufferRangeEXT")); + SET_TransformFeedbackVaryingsEXT(__ogl_framework_api, dlsym(handle, "glTransformFeedbackVaryingsEXT")); + SET_GetTransformFeedbackVaryingEXT(__ogl_framework_api, dlsym(handle, "glGetTransformFeedbackVaryingEXT")); + + /* GL_EXT_gpu_shader4 */ + SET_BindFragDataLocationEXT(__ogl_framework_api, dlsym(handle, "glBindFragDataLocationEXT")); + SET_GetFragDataLocationEXT(__ogl_framework_api, dlsym(handle, "glGetFragDataLocationEXT")); + SET_GetUniformuivEXT(__ogl_framework_api, dlsym(handle, "glGetUniformuivEXT")); + SET_Uniform1uiEXT(__ogl_framework_api, dlsym(handle, "glUniform1uiEXT")); + SET_Uniform1uivEXT(__ogl_framework_api, dlsym(handle, "glUniform1uivEXT")); + SET_Uniform2uiEXT(__ogl_framework_api, dlsym(handle, "glUniform2uiEXT")); + SET_Uniform2uivEXT(__ogl_framework_api, dlsym(handle, "glUniform2uivEXT")); + SET_Uniform3uiEXT(__ogl_framework_api, dlsym(handle, "glUniform3uiEXT")); + SET_Uniform3uivEXT(__ogl_framework_api, dlsym(handle, "glUniform3uivEXT")); + SET_Uniform4uiEXT(__ogl_framework_api, dlsym(handle, "glUniform4uiEXT")); + SET_Uniform4uivEXT(__ogl_framework_api, dlsym(handle, "glUniform4uivEXT")); + + /* GL_ARB_sampler_objects */ + SET_BindSampler(__ogl_framework_api, dlsym(handle, "glBindSampler")); + SET_DeleteSamplers(__ogl_framework_api, dlsym(handle, "glDeleteSamplers")); + SET_GenSamplers(__ogl_framework_api, dlsym(handle, "glGenSamplers")); + SET_GetSamplerParameterIiv(__ogl_framework_api, dlsym(handle, "glGetSamplerParameterIiv")); + SET_GetSamplerParameterIuiv(__ogl_framework_api, dlsym(handle, "glGetSamplerParameterIuiv")); + SET_GetSamplerParameterfv(__ogl_framework_api, dlsym(handle, "glGetSamplerParameterfv")); + SET_GetSamplerParameteriv(__ogl_framework_api, dlsym(handle, "glGetSamplerParameteriv")); + SET_IsSampler(__ogl_framework_api, dlsym(handle, "glIsSampler")); + SET_SamplerParameterIiv(__ogl_framework_api, dlsym(handle, "glSamplerParameterIiv")); + SET_SamplerParameterIuiv(__ogl_framework_api, dlsym(handle, "glSamplerParameterIuiv")); + SET_SamplerParameterf(__ogl_framework_api, dlsym(handle, "glSamplerParameterf")); + SET_SamplerParameterfv(__ogl_framework_api, dlsym(handle, "glSamplerParameterfv")); + SET_SamplerParameteri(__ogl_framework_api, dlsym(handle, "glSamplerParameteri")); + SET_SamplerParameteriv(__ogl_framework_api, dlsym(handle, "glSamplerParameteriv")); + + /* GL_ARB_transform_feedback2 */ + SET_BindTransformFeedback(__ogl_framework_api, dlsym(handle, "glBindTransformFeedback")); + SET_DeleteTransformFeedbacks(__ogl_framework_api, dlsym(handle, "glDeleteTransformFeedbacks")); + SET_DrawTransformFeedback(__ogl_framework_api, dlsym(handle, "glDrawTransformFeedback")); + SET_GenTransformFeedbacks(__ogl_framework_api, dlsym(handle, "glGenTransformFeedbacks")); + SET_IsTransformFeedback(__ogl_framework_api, dlsym(handle, "glIsTransformFeedback")); + SET_PauseTransformFeedback(__ogl_framework_api, dlsym(handle, "glPauseTransformFeedback")); + SET_ResumeTransformFeedback(__ogl_framework_api, dlsym(handle, "glResumeTransformFeedback")); + + /* GL_ARB_vertex_array_object */ + SET_BindVertexArray(__ogl_framework_api, dlsym(handle, "glBindVertexArray")); + SET_GenVertexArrays(__ogl_framework_api, dlsym(handle, "glGenVertexArrays")); + + /* GL_ARB_draw_buffers_blend */ + SET_BlendEquationSeparateiARB(__ogl_framework_api, dlsym(handle, "glBlendEquationSeparateiARB")); + SET_BlendEquationiARB(__ogl_framework_api, dlsym(handle, "glBlendEquationiARB")); + SET_BlendFuncSeparateiARB(__ogl_framework_api, dlsym(handle, "glBlendFuncSeparateiARB")); + SET_BlendFunciARB(__ogl_framework_api, dlsym(handle, "glBlendFunciARB")); + + /* GL_APPLE_flush_buffer_range */ + SET_BufferParameteriAPPLE(__ogl_framework_api, dlsym(handle, "glBufferParameteriAPPLE")); + SET_FlushMappedBufferRangeAPPLE(__ogl_framework_api, dlsym(handle, "glFlushMappedBufferRangeAPPLE")); + + /* GL_ARB_color_buffer_float */ + SET_ClampColorARB(__ogl_framework_api, dlsym(handle, "glClampColorARB")); + + /* GL_EXT_texture_integer */ + SET_ClearColorIiEXT(__ogl_framework_api, dlsym(handle, "glClearColorIiEXT")); + SET_ClearColorIuiEXT(__ogl_framework_api, dlsym(handle, "glClearColorIuiEXT")); + SET_TexParameterIivEXT(__ogl_framework_api, dlsym(handle, "glTexParameterIivEXT")); + SET_TexParameterIuivEXT(__ogl_framework_api, dlsym(handle, "glTexParameterIuivEXT")); + SET_GetTexParameterIivEXT(__ogl_framework_api, dlsym(handle, "glGetTexParameterIivEXT")); + SET_GetTexParameterIuivEXT(__ogl_framework_api, dlsym(handle, "glGetTexParameterIuivEXT")); + + /* GL_ARB_ES2_compatibility */ + SET_ClearDepthf(__ogl_framework_api, dlsym(handle, "glClearDepthf")); + SET_DepthRangef(__ogl_framework_api, dlsym(handle, "glDepthRangef")); + SET_GetShaderPrecisionFormat(__ogl_framework_api, dlsym(handle, "glGetShaderPrecisionFormat")); + SET_ReleaseShaderCompiler(__ogl_framework_api, dlsym(handle, "glReleaseShaderCompiler")); + SET_ShaderBinary(__ogl_framework_api, dlsym(handle, "glShaderBinary")); + + /* GL_EXT_draw_buffers2 */ + SET_ColorMaskIndexedEXT(__ogl_framework_api, dlsym(handle, "glColorMaskIndexedEXT")); + SET_DisableIndexedEXT(__ogl_framework_api, dlsym(handle, "glDisableIndexedEXT")); + SET_EnableIndexedEXT(__ogl_framework_api, dlsym(handle, "glEnableIndexedEXT")); + SET_GetBooleanIndexedvEXT(__ogl_framework_api, dlsym(handle, "glGetBooleanIndexedvEXT")); + SET_GetIntegerIndexedvEXT(__ogl_framework_api, dlsym(handle, "glGetIntegerIndexedvEXT")); + SET_IsEnabledIndexedEXT(__ogl_framework_api, dlsym(handle, "glIsEnabledIndexedEXT")); + + /* GL_ARB_draw_instanced */ + SET_DrawArraysInstancedARB(__ogl_framework_api, dlsym(handle, "glDrawArraysInstancedARB")); + SET_DrawElementsInstancedARB(__ogl_framework_api, dlsym(handle, "glDrawElementsInstancedARB")); + + /* GL_ARB_geometry_shader4 */ + SET_FramebufferTextureARB(__ogl_framework_api, dlsym(handle, "glFramebufferTextureARB")); + SET_FramebufferTextureFaceARB(__ogl_framework_api, dlsym(handle, "glFramebufferTextureFaceARB")); + SET_ProgramParameteriARB(__ogl_framework_api, dlsym(handle, "glProgramParameteriARB")); + + /* GL_ARB_sync */ + SET_ClientWaitSync(__ogl_framework_api, dlsym(handle, "glClientWaitSync")); + SET_DeleteSync(__ogl_framework_api, dlsym(handle, "glDeleteSync")); + SET_FenceSync(__ogl_framework_api, dlsym(handle, "glFenceSync")); + SET_GetInteger64v(__ogl_framework_api, dlsym(handle, "glGetInteger64v")); + SET_GetSynciv(__ogl_framework_api, dlsym(handle, "glGetSynciv")); + SET_IsSync(__ogl_framework_api, dlsym(handle, "glIsSync")); + SET_WaitSync(__ogl_framework_api, dlsym(handle, "glWaitSync")); + + /* GL_ARB_copy_buffer */ + SET_CopyBufferSubData(__ogl_framework_api, dlsym(handle, "glCopyBufferSubData")); + + /* GL_ARB_draw_elements_base_vertex */ + SET_DrawElementsBaseVertex(__ogl_framework_api, dlsym(handle, "glDrawElementsBaseVertex")); + SET_DrawElementsInstancedBaseVertex(__ogl_framework_api, dlsym(handle, "glDrawElementsInstancedBaseVertex")); + SET_DrawRangeElementsBaseVertex(__ogl_framework_api, dlsym(handle, "glDrawRangeElementsBaseVertex")); + SET_MultiDrawElementsBaseVertex(__ogl_framework_api, dlsym(handle, "glMultiDrawElementsBaseVertex")); + + /* GL_ARB_map_buffer_range */ + SET_FlushMappedBufferRange(__ogl_framework_api, dlsym(handle, "glFlushMappedBufferRange")); + SET_MapBufferRange(__ogl_framework_api, dlsym(handle, "glMapBufferRange")); + + /* GL_ARB_robustness */ + SET_GetGraphicsResetStatusARB(__ogl_framework_api, dlsym(handle, "glGetGraphicsResetStatusARB")); + SET_GetnColorTableARB(__ogl_framework_api, dlsym(handle, "glGetnColorTableARB")); + SET_GetnCompressedTexImageARB(__ogl_framework_api, dlsym(handle, "glGetnCompressedTexImageARB")); + SET_GetnConvolutionFilterARB(__ogl_framework_api, dlsym(handle, "glGetnConvolutionFilterARB")); + SET_GetnHistogramARB(__ogl_framework_api, dlsym(handle, "glGetnHistogramARB")); + SET_GetnMapdvARB(__ogl_framework_api, dlsym(handle, "glGetnMapdvARB")); + SET_GetnMapfvARB(__ogl_framework_api, dlsym(handle, "glGetnMapfvARB")); + SET_GetnMapivARB(__ogl_framework_api, dlsym(handle, "glGetnMapivARB")); + SET_GetnMinmaxARB(__ogl_framework_api, dlsym(handle, "glGetnMinmaxARB")); + SET_GetnPixelMapfvARB(__ogl_framework_api, dlsym(handle, "glGetnPixelMapfvARB")); + SET_GetnPixelMapuivARB(__ogl_framework_api, dlsym(handle, "glGetnPixelMapuivARB")); + SET_GetnPixelMapusvARB(__ogl_framework_api, dlsym(handle, "glGetnPixelMapusvARB")); + SET_GetnPolygonStippleARB(__ogl_framework_api, dlsym(handle, "glGetnPolygonStippleARB")); + SET_GetnSeparableFilterARB(__ogl_framework_api, dlsym(handle, "glGetnSeparableFilterARB")); + SET_GetnTexImageARB(__ogl_framework_api, dlsym(handle, "glGetnTexImageARB")); + SET_GetnUniformdvARB(__ogl_framework_api, dlsym(handle, "glGetnUniformdvARB")); + SET_GetnUniformfvARB(__ogl_framework_api, dlsym(handle, "glGetnUniformfvARB")); + SET_GetnUniformivARB(__ogl_framework_api, dlsym(handle, "glGetnUniformivARB")); + SET_GetnUniformuivARB(__ogl_framework_api, dlsym(handle, "glGetnUniformuivARB")); + SET_ReadnPixelsARB(__ogl_framework_api, dlsym(handle, "glReadnPixelsARB")); + + /* GL_APPLE_object_purgeable */ + SET_GetObjectParameterivAPPLE(__ogl_framework_api, dlsym(handle, "glGetObjectParameterivAPPLE")); + SET_ObjectPurgeableAPPLE(__ogl_framework_api, dlsym(handle, "glObjectPurgeableAPPLE")); + SET_ObjectUnpurgeableAPPLE(__ogl_framework_api, dlsym(handle, "glObjectUnpurgeableAPPLE")); + + /* GL_ATI_envmap_bumpmap */ + SET_GetTexBumpParameterfvATI(__ogl_framework_api, dlsym(handle, "glGetTexBumpParameterfvATI")); + SET_GetTexBumpParameterivATI(__ogl_framework_api, dlsym(handle, "glGetTexBumpParameterivATI")); + SET_TexBumpParameterfvATI(__ogl_framework_api, dlsym(handle, "glTexBumpParameterfvATI")); + SET_TexBumpParameterivATI(__ogl_framework_api, dlsym(handle, "glTexBumpParameterivATI")); + + /* GL_APPLE_texture_range */ + SET_GetTexParameterPointervAPPLE(__ogl_framework_api, dlsym(handle, "glGetTexParameterPointervAPPLE")); + SET_TextureRangeAPPLE(__ogl_framework_api, dlsym(handle, "glTextureRangeAPPLE")); + + /* GL_NV_vertex_program4 */ + SET_GetVertexAttribIivEXT(__ogl_framework_api, dlsym(handle, "glGetVertexAttribIivEXT")); + SET_GetVertexAttribIuivEXT(__ogl_framework_api, dlsym(handle, "glGetVertexAttribIuivEXT")); + SET_VertexAttribDivisor(__ogl_framework_api, dlsym(handle, "glVertexAttribDivisor")); + SET_VertexAttribDivisorARB(__ogl_framework_api, dlsym(handle, "glVertexAttribDivisorARB")); + SET_VertexAttribI1iEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI1iEXT")); + SET_VertexAttribI1ivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI1ivEXT")); + SET_VertexAttribI1uiEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI1uiEXT")); + SET_VertexAttribI1uivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI1uivEXT")); + SET_VertexAttribI2iEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI2iEXT")); + SET_VertexAttribI2ivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI2ivEXT")); + SET_VertexAttribI2uiEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI2uiEXT")); + SET_VertexAttribI2uivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI2uivEXT")); + SET_VertexAttribI3iEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI3iEXT")); + SET_VertexAttribI3ivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI3ivEXT")); + SET_VertexAttribI3uiEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI3uiEXT")); + SET_VertexAttribI3uivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI3uivEXT")); + SET_VertexAttribI4bvEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4bvEXT")); + SET_VertexAttribI4iEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4iEXT")); + SET_VertexAttribI4ivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4ivEXT")); + SET_VertexAttribI4svEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4svEXT")); + SET_VertexAttribI4ubvEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4ubvEXT")); + SET_VertexAttribI4uiEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4uiEXT")); + SET_VertexAttribI4uivEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4uivEXT")); + SET_VertexAttribI4usvEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribI4usvEXT")); + SET_VertexAttribIPointerEXT(__ogl_framework_api, dlsym(handle, "glVertexAttribIPointerEXT")); + + /* GL_NV_primitive_restart */ + SET_PrimitiveRestartIndexNV(__ogl_framework_api, dlsym(handle, "glPrimitiveRestartIndexNV")); + SET_PrimitiveRestartNV(__ogl_framework_api, dlsym(handle, "glPrimitiveRestartNV")); + + /* GL_EXT_provoking_vertex */ + SET_ProvokingVertexEXT(__ogl_framework_api, dlsym(handle, "glProvokingVertexEXT")); + + /* GL_ARB_texture_buffer_object */ + SET_TexBufferARB(__ogl_framework_api, dlsym(handle, "glTexBufferARB")); + + /* GL_NV_texture_barrier */ + SET_TextureBarrierNV(__ogl_framework_api, dlsym(handle, "glTextureBarrierNV")); + + /* GL_ARB_framebuffer_object */ + SET_RenderbufferStorageMultisample(__ogl_framework_api, dlsym(handle, "glRenderbufferStorageMultisample")); + + /* GL_OES_EGL_image */ + SET_EGLImageTargetRenderbufferStorageOES(__ogl_framework_api, dlsym(handle, "glEGLImageTargetRenderbufferStorageOES")); + SET_EGLImageTargetTexture2DOES(__ogl_framework_api, dlsym(handle, "glEGLImageTargetTexture2DOES")); + __applegl_api = malloc(sizeof(struct _glapi_table)); assert(__applegl_api); memcpy(__applegl_api, __ogl_framework_api, sizeof(struct _glapi_table)); From 0e8d045bf8bc930576cc69b9de8a31a4c973dc7c Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 7 Jun 2011 00:51:18 -0400 Subject: [PATCH 099/145] osmesa: Fix missing symbols when GLX_INDIRECT_RENDERING is defined. When GLX_INDIRECT_RENDERING is defined, some symbols are used in libglapi.a but are not defined. Define them through the help of glapitemp.h. Signed-off-by: Jeremy Huddleston Signed-off-by: Chia-I Wu --- src/mesa/drivers/osmesa/osmesa.c | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index 68d71144642..4e6d5b69d57 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -1553,3 +1553,31 @@ OSMesaColorClamp(GLboolean enable) } +/** + * When GLX_INDIRECT_RENDERING is defined, some symbols are missing in + * libglapi.a. We need to define them here. + */ +#ifdef GLX_INDIRECT_RENDERING + +#define GL_GLEXT_PROTOTYPES +#include "GL/gl.h" +#include "glapi/glapi.h" +#include "glapi/glapitable.h" + +#if defined(USE_MGL_NAMESPACE) +#define NAME(func) mgl##func +#else +#define NAME(func) gl##func +#endif + +#define DISPATCH(FUNC, ARGS, MESSAGE) \ + GET_DISPATCH()->FUNC ARGS + +#define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \ + return GET_DISPATCH()->FUNC ARGS + +/* skip normal ones */ +#define _GLAPI_SKIP_NORMAL_ENTRY_POINTS +#include "glapi/glapitemp.h" + +#endif /* GLX_INDIRECT_RENDERING */ From f6572017b94a137a4102342ebf6cd20dedc90271 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 08:05:40 -0600 Subject: [PATCH 100/145] draw: fix edge flag handling in clipper (for unfilled tris/quads/polygons) Previously, we were errantly drawing some interior edges of clipped polygons and quads. Also, we were introducing extra edges where polygons intersected the view frustum clip planes. The main problem was that we were ignoring the edgeflags encoded in the primitive header's 'flags' field which are set during polygon/quad ->tri decomposition. We need to observe those during clipping. Since we can't modify the existing vert's edgeflag fields, we need to store them in a parallel array. Edge flags also need to be handled differently for view frustum planes vs. user-defined clip planes. In the former case we don't want to draw new clip edges but in the later case we do. This matches NVIDIA's behaviour and it just looks right. Finally, note that the LLVM draw code does not properly set vertex edge flags. It's OK on the regular software path though. --- src/gallium/auxiliary/draw/draw_pipe_clip.c | 62 +++++++++++++++++++-- 1 file changed, 57 insertions(+), 5 deletions(-) diff --git a/src/gallium/auxiliary/draw/draw_pipe_clip.c b/src/gallium/auxiliary/draw/draw_pipe_clip.c index a10d8e9edc0..b49502cec48 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_clip.c +++ b/src/gallium/auxiliary/draw/draw_pipe_clip.c @@ -163,6 +163,7 @@ static void interp( const struct clip_stage *clip, */ static void emit_poly( struct draw_stage *stage, struct vertex_header **inlist, + const boolean *edgeflags, unsigned n, const struct prim_header *origPrim) { @@ -181,6 +182,9 @@ static void emit_poly( struct draw_stage *stage, edge_last = DRAW_PIPE_EDGE_FLAG_1; } + if (!edgeflags[0]) + edge_first = 0; + /* later stages may need the determinant, but only the sign matters */ header.det = origPrim->det; header.flags = DRAW_PIPE_RESET_STIPPLE | edge_first | edge_middle; @@ -199,7 +203,11 @@ static void emit_poly( struct draw_stage *stage, header.v[2] = inlist[0]; /* the provoking vertex */ } - if (i == n-1) + if (!edgeflags[i-1]) { + header.flags &= ~edge_middle; + } + + if (i == n - 1 && edgeflags[i]) header.flags |= edge_last; if (0) { @@ -248,15 +256,33 @@ do_clip_tri( struct draw_stage *stage, unsigned tmpnr = 0; unsigned n = 3; unsigned i; + boolean aEdges[MAX_CLIPPED_VERTICES]; + boolean bEdges[MAX_CLIPPED_VERTICES]; + boolean *inEdges = aEdges; + boolean *outEdges = bEdges; inlist[0] = header->v[0]; inlist[1] = header->v[1]; inlist[2] = header->v[2]; + /* + * Note: at this point we can't just use the per-vertex edge flags. + * We have to observe the edge flag bits set in header->flags which + * were set during primitive decomposition. Put those flags into + * an edge flags array which parallels the vertex array. + * Later, in the 'unfilled' pipeline stage we'll draw the edge if both + * the header.flags bit is set AND the per-vertex edgeflag field is set. + */ + inEdges[0] = !!(header->flags & DRAW_PIPE_EDGE_FLAG_0); + inEdges[1] = !!(header->flags & DRAW_PIPE_EDGE_FLAG_1); + inEdges[2] = !!(header->flags & DRAW_PIPE_EDGE_FLAG_2); + while (clipmask && n >= 3) { const unsigned plane_idx = ffs(clipmask)-1; + const boolean is_user_clip_plane = plane_idx >= 6; const float *plane = clipper->plane[plane_idx]; struct vertex_header *vert_prev = inlist[0]; + boolean *edge_prev = &inEdges[0]; float dp_prev = dot4( vert_prev->clip, plane ); unsigned outcount = 0; @@ -266,9 +292,11 @@ do_clip_tri( struct draw_stage *stage, if (n >= MAX_CLIPPED_VERTICES) return; inlist[n] = inlist[0]; /* prevent rotation of vertices */ + inEdges[n] = inEdges[0]; for (i = 1; i <= n; i++) { struct vertex_header *vert = inlist[i]; + boolean *edge = &inEdges[i]; float dp = dot4( vert->clip, plane ); @@ -276,11 +304,13 @@ do_clip_tri( struct draw_stage *stage, assert(outcount < MAX_CLIPPED_VERTICES); if (outcount >= MAX_CLIPPED_VERTICES) return; + outEdges[outcount] = *edge_prev; outlist[outcount++] = vert_prev; } if (DIFFERENT_SIGNS(dp, dp_prev)) { struct vertex_header *new_vert; + boolean *new_edge; assert(tmpnr < MAX_CLIPPED_VERTICES + 1); if (tmpnr >= MAX_CLIPPED_VERTICES + 1) @@ -290,6 +320,8 @@ do_clip_tri( struct draw_stage *stage, assert(outcount < MAX_CLIPPED_VERTICES); if (outcount >= MAX_CLIPPED_VERTICES) return; + + new_edge = &outEdges[outcount]; outlist[outcount++] = new_vert; if (IS_NEGATIVE(dp)) { @@ -299,10 +331,22 @@ do_clip_tri( struct draw_stage *stage, float t = dp / (dp - dp_prev); interp( clipper, new_vert, t, vert, vert_prev ); - /* Force edgeflag true in this case: + /* Whether or not to set edge flag for the new vert depends + * on whether it's a user-defined clipping plane. We're + * copying NVIDIA's behaviour here. */ - new_vert->edgeflag = 1; - } else { + if (is_user_clip_plane) { + /* we want to see an edge along the clip plane */ + *new_edge = TRUE; + new_vert->edgeflag = TRUE; + } + else { + /* we don't want to see an edge along the frustum clip plane */ + *new_edge = *edge_prev; + new_vert->edgeflag = FALSE; + } + } + else { /* Coming back in. */ float t = dp_prev / (dp_prev - dp); @@ -311,10 +355,12 @@ do_clip_tri( struct draw_stage *stage, /* Copy starting vert's edgeflag: */ new_vert->edgeflag = vert_prev->edgeflag; + *new_edge = *edge_prev; } } vert_prev = vert; + edge_prev = edge; dp_prev = dp; } @@ -325,6 +371,12 @@ do_clip_tri( struct draw_stage *stage, outlist = tmp; n = outcount; } + { + boolean *tmp = inEdges; + inEdges = outEdges; + outEdges = tmp; + } + } /* If flat-shading, copy provoking vertex color to polygon vertex[0] @@ -353,7 +405,7 @@ do_clip_tri( struct draw_stage *stage, /* Emit the polygon as triangles to the setup stage: */ - emit_poly( stage, inlist, n, header ); + emit_poly( stage, inlist, inEdges, n, header ); } } From 5f2deba9f3f3f9230a9fdd2848e20c1e23e98b8f Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 08:05:40 -0600 Subject: [PATCH 101/145] gallium: s/bool/boolean/ --- src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c | 2 +- src/gallium/auxiliary/util/u_linkage.h | 2 +- src/gallium/auxiliary/util/u_staging.c | 2 +- src/gallium/auxiliary/util/u_staging.h | 2 +- src/gallium/drivers/i915/i915_batchbuffer.h | 2 +- src/gallium/drivers/nvfx/nvfx_surface.c | 4 ++-- src/gallium/drivers/nvfx/nvfx_transfer.c | 2 +- src/gallium/drivers/r300/r300_state_derived.c | 2 +- src/gallium/drivers/r600/r600_asm.c | 4 ++-- src/gallium/drivers/r600/r600_pipe.h | 10 +++++----- src/gallium/tests/unit/u_format_test.c | 4 ++-- src/gallium/winsys/r600/drm/r600_bomgr.c | 2 +- src/gallium/winsys/r600/drm/r600_priv.h | 4 ++-- 13 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c index ad514463de0..5ad32d9182c 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_info.c @@ -105,7 +105,7 @@ analyse_tex(struct analysis_context *ctx, if (info->num_texs < Elements(info->tex)) { struct lp_tgsi_texture_info *tex_info = &info->tex[info->num_texs]; - bool indirect = FALSE; + boolean indirect = FALSE; unsigned readmask = 0; tex_info->target = inst->Texture.Texture; diff --git a/src/gallium/auxiliary/util/u_linkage.h b/src/gallium/auxiliary/util/u_linkage.h index 4720e0ee603..43ec917fc81 100644 --- a/src/gallium/auxiliary/util/u_linkage.h +++ b/src/gallium/auxiliary/util/u_linkage.h @@ -35,7 +35,7 @@ struct util_semantic_set unsigned long masks[256 / 8 / sizeof(unsigned long)]; }; -static INLINE bool +static INLINE boolean util_semantic_set_contains(struct util_semantic_set *set, unsigned char value) { return !!(set->masks[value / (sizeof(long) * 8)] & (1 << (value / (sizeof(long) * 8)))); diff --git a/src/gallium/auxiliary/util/u_staging.c b/src/gallium/auxiliary/util/u_staging.c index b6bf241a22a..b5e37932e83 100644 --- a/src/gallium/auxiliary/util/u_staging.c +++ b/src/gallium/auxiliary/util/u_staging.c @@ -55,7 +55,7 @@ util_staging_transfer_init(struct pipe_context *pipe, unsigned level, unsigned usage, const struct pipe_box *box, - bool direct, struct util_staging_transfer *tx) + boolean direct, struct util_staging_transfer *tx) { struct pipe_screen *pscreen = pipe->screen; diff --git a/src/gallium/auxiliary/util/u_staging.h b/src/gallium/auxiliary/util/u_staging.h index 49839d25439..ddbb33443e4 100644 --- a/src/gallium/auxiliary/util/u_staging.h +++ b/src/gallium/auxiliary/util/u_staging.h @@ -55,7 +55,7 @@ util_staging_transfer_init(struct pipe_context *pipe, unsigned level, unsigned usage, const struct pipe_box *box, - bool direct, struct util_staging_transfer *tx); + boolean direct, struct util_staging_transfer *tx); void util_staging_transfer_destroy(struct pipe_context *pipe, struct pipe_transfer *ptx); diff --git a/src/gallium/drivers/i915/i915_batchbuffer.h b/src/gallium/drivers/i915/i915_batchbuffer.h index 78554034781..14ae749c828 100644 --- a/src/gallium/drivers/i915/i915_batchbuffer.h +++ b/src/gallium/drivers/i915/i915_batchbuffer.h @@ -95,7 +95,7 @@ static INLINE int i915_winsys_batchbuffer_reloc(struct i915_winsys_batchbuffer *batch, struct i915_winsys_buffer *buffer, enum i915_winsys_buffer_usage usage, - size_t offset, bool fenced) + size_t offset, boolean fenced) { return batch->iws->batchbuffer_reloc(batch, buffer, usage, offset, fenced); } diff --git a/src/gallium/drivers/nvfx/nvfx_surface.c b/src/gallium/drivers/nvfx/nvfx_surface.c index ced26494e15..339906e6a63 100644 --- a/src/gallium/drivers/nvfx/nvfx_surface.c +++ b/src/gallium/drivers/nvfx/nvfx_surface.c @@ -84,7 +84,7 @@ nvfx_region_set_format(struct nv04_region* rgn, enum pipe_format format) } static INLINE void -nvfx_region_init_for_surface(struct nv04_region* rgn, struct nvfx_surface* surf, unsigned x, unsigned y, bool for_write) +nvfx_region_init_for_surface(struct nv04_region* rgn, struct nvfx_surface* surf, unsigned x, unsigned y, boolean for_write) { rgn->x = x; rgn->y = y; @@ -120,7 +120,7 @@ nvfx_region_init_for_surface(struct nv04_region* rgn, struct nvfx_surface* surf, } static INLINE void -nvfx_region_init_for_subresource(struct nv04_region* rgn, struct pipe_resource* pt, unsigned level, unsigned x, unsigned y, unsigned z, bool for_write) +nvfx_region_init_for_subresource(struct nv04_region* rgn, struct pipe_resource* pt, unsigned level, unsigned x, unsigned y, unsigned z, boolean for_write) { if(pt->target != PIPE_BUFFER) { diff --git a/src/gallium/drivers/nvfx/nvfx_transfer.c b/src/gallium/drivers/nvfx/nvfx_transfer.c index 2debcb6eb8f..cc4b51ec1f8 100644 --- a/src/gallium/drivers/nvfx/nvfx_transfer.c +++ b/src/gallium/drivers/nvfx/nvfx_transfer.c @@ -56,7 +56,7 @@ nvfx_transfer_new(struct pipe_context *pipe, else { struct nvfx_staging_transfer* tx; - bool direct = !nvfx_resource_on_gpu(pt) && pt->flags & NVFX_RESOURCE_FLAG_LINEAR; + boolean direct = !nvfx_resource_on_gpu(pt) && pt->flags & NVFX_RESOURCE_FLAG_LINEAR; tx = CALLOC_STRUCT(nvfx_staging_transfer); if(!tx) diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c index 04499c78cc6..121409b2260 100644 --- a/src/gallium/drivers/r300/r300_state_derived.c +++ b/src/gallium/drivers/r300/r300_state_derived.c @@ -438,7 +438,7 @@ static void r300_update_rs_block(struct r300_context *r300) /* Rasterize texture coordinates. */ for (i = 0; i < ATTR_GENERIC_COUNT && tex_count < 8; i++) { - bool sprite_coord = false; + boolean sprite_coord = false; if (fs_inputs->generic[i] != ATTR_UNUSED) { sprite_coord = !!(r300->sprite_coord_enable & (1 << i)); diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index 65e539eba35..3196d97dbbb 100644 --- a/src/gallium/drivers/r600/r600_asm.c +++ b/src/gallium/drivers/r600/r600_asm.c @@ -1088,7 +1088,7 @@ static int r600_bc_alloc_kcache_lines(struct r600_bc *bc, struct r600_bc_alu *al /* Collect required cache lines. */ for (i = 0; i < 3; ++i) { - bool found = false; + boolean found = false; unsigned int line; if (alu->src[i].sel < 512) @@ -1140,7 +1140,7 @@ static int r600_bc_alloc_kcache_lines(struct r600_bc *bc, struct r600_bc_alu *al /* Setup the kcache lines. */ for (i = 0; i < count; ++i) { - bool found = false; + boolean found = false; for (j = 0; j < 2; ++j) { if (kcache[j].mode == V_SQ_CF_KCACHE_LOCK_2 && diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index f40d6fd3fa2..d92b74ebc4e 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -87,7 +87,7 @@ struct r600_pipe_sampler_view { struct r600_pipe_rasterizer { struct r600_pipe_state rstate; - bool flatshade; + boolean flatshade; unsigned sprite_coord_enable; float offset_units; float offset_scale; @@ -193,17 +193,17 @@ struct r600_pipe_context { struct r600_pipe_state spi; /* shader information */ unsigned sprite_coord_enable; - bool flatshade; - bool export_16bpc; + boolean flatshade; + boolean export_16bpc; unsigned alpha_ref; - bool alpha_ref_dirty; + boolean alpha_ref_dirty; struct r600_textures_info ps_samplers; struct r600_pipe_fences fences; struct u_vbuf_mgr *vbuf_mgr; struct util_slab_mempool pool_transfers; - bool blit; + boolean blit; }; diff --git a/src/gallium/tests/unit/u_format_test.c b/src/gallium/tests/unit/u_format_test.c index ba0dd17957e..f831e5dd754 100644 --- a/src/gallium/tests/unit/u_format_test.c +++ b/src/gallium/tests/unit/u_format_test.c @@ -638,7 +638,7 @@ test_one_func(const struct util_format_description *format_desc, const char *suffix) { unsigned i; - bool success = TRUE; + boolean success = TRUE; printf("Testing util_format_%s_%s ...\n", format_desc->short_name, suffix); @@ -662,7 +662,7 @@ static boolean test_all(void) { enum pipe_format format; - bool success = TRUE; + boolean success = TRUE; for (format = 1; format < PIPE_FORMAT_COUNT; ++format) { const struct util_format_description *format_desc; diff --git a/src/gallium/winsys/r600/drm/r600_bomgr.c b/src/gallium/winsys/r600/drm/r600_bomgr.c index 446ef0f9cfc..4918d5eb0b1 100644 --- a/src/gallium/winsys/r600/drm/r600_bomgr.c +++ b/src/gallium/winsys/r600/drm/r600_bomgr.c @@ -116,7 +116,7 @@ void r600_bomgr_bo_init(struct r600_bomgr *mgr, struct r600_bo *bo) bo->manager_id = 1; } -bool r600_bomgr_bo_destroy(struct r600_bomgr *mgr, struct r600_bo *bo) +boolean r600_bomgr_bo_destroy(struct r600_bomgr *mgr, struct r600_bo *bo) { bo->start = os_time_get(); bo->end = bo->start + mgr->usecs; diff --git a/src/gallium/winsys/r600/drm/r600_priv.h b/src/gallium/winsys/r600/drm/r600_priv.h index 082370ae106..45bc64fcf9a 100644 --- a/src/gallium/winsys/r600/drm/r600_priv.h +++ b/src/gallium/winsys/r600/drm/r600_priv.h @@ -197,7 +197,7 @@ void r600_bo_destroy(struct radeon *radeon, struct r600_bo *bo); */ struct r600_bomgr *r600_bomgr_create(struct radeon *radeon, unsigned usecs); void r600_bomgr_destroy(struct r600_bomgr *mgr); -bool r600_bomgr_bo_destroy(struct r600_bomgr *mgr, struct r600_bo *bo); +boolean r600_bomgr_bo_destroy(struct r600_bomgr *mgr, struct r600_bo *bo); void r600_bomgr_bo_init(struct r600_bomgr *mgr, struct r600_bo *bo); struct r600_bo *r600_bomgr_bo_create(struct r600_bomgr *mgr, unsigned size, @@ -230,7 +230,7 @@ static inline void radeon_bo_unmap(struct radeon *radeon, struct radeon_bo *bo) /* * fence */ -static inline bool fence_is_after(unsigned fence, unsigned ofence) +static inline boolean fence_is_after(unsigned fence, unsigned ofence) { /* handle wrap around */ if (fence < 0x80000000 && ofence > 0x80000000) From f9c2feb96b5854ca8030d94a5ea5b168ec818fe8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 08:05:40 -0600 Subject: [PATCH 102/145] mesa: add more sampler types to is_sampler_type() --- src/mesa/main/uniforms.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index c9b12c8c2e1..771e039eb35 100644 --- a/src/mesa/main/uniforms.c +++ b/src/mesa/main/uniforms.c @@ -109,12 +109,16 @@ is_sampler_type(GLenum type) case GL_SAMPLER_CUBE: case GL_SAMPLER_1D_SHADOW: case GL_SAMPLER_2D_SHADOW: + case GL_SAMPLER_CUBE_SHADOW: case GL_SAMPLER_2D_RECT_ARB: case GL_SAMPLER_2D_RECT_SHADOW_ARB: case GL_SAMPLER_1D_ARRAY_EXT: case GL_SAMPLER_2D_ARRAY_EXT: case GL_SAMPLER_1D_ARRAY_SHADOW_EXT: case GL_SAMPLER_2D_ARRAY_SHADOW_EXT: + case GL_SAMPLER_CUBE_MAP_ARRAY: + case GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW: + case GL_SAMPLER_BUFFER: return GL_TRUE; default: return GL_FALSE; From 3d75c42bbf34c8a16de425da81b6fb02a8aa4b47 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 08:05:40 -0600 Subject: [PATCH 103/145] mesa: remove old comment --- src/mesa/main/uniforms.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c index 771e039eb35..1c4fd82baac 100644 --- a/src/mesa/main/uniforms.c +++ b/src/mesa/main/uniforms.c @@ -1461,7 +1461,6 @@ _mesa_init_shader_uniform_dispatch(struct _glapi_table *exec) SET_UniformMatrix4x3fv(exec, _mesa_UniformMatrix4x3fv); /* OpenGL 3.0 */ - /* XXX finish dispatch */ SET_Uniform1uiEXT(exec, _mesa_Uniform1ui); SET_Uniform2uiEXT(exec, _mesa_Uniform2ui); SET_Uniform3uiEXT(exec, _mesa_Uniform3ui); From 713fb507596181f91990a0eb1470f0b95bf2f3d9 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 08:05:40 -0600 Subject: [PATCH 104/145] gallium: fix comments for pipe_stream_output_state --- src/gallium/include/pipe/p_state.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 86ef255cd2e..d442c15c02a 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -372,19 +372,21 @@ struct pipe_resource unsigned flags; /**< bitmask of PIPE_RESOURCE_FLAG_x */ }; + +/** + * Stream output for vertex transform feedback. + */ struct pipe_stream_output_state { - /**< number of the output buffer to insert each element into */ + /** number of the output buffer to insert each element into */ int output_buffer[PIPE_MAX_SHADER_OUTPUTS]; - /**< which register to grab each output from */ + /** which register to grab each output from */ int register_index[PIPE_MAX_SHADER_OUTPUTS]; - /**< TGSI_WRITEMASK signifying which components to output */ + /** TGSI_WRITEMASK signifying which components to output */ ubyte register_mask[PIPE_MAX_SHADER_OUTPUTS]; - /**< number of outputs */ + /** number of outputs */ int num_outputs; - - /**< stride for an entire vertex, only used if all output_buffers - * are 0 */ + /** stride for an entire vertex, only used if all output_buffers are 0 */ unsigned stride; }; From d329b68f350a6db9439f71a0d1a8d2a8e2fd426c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 08:05:41 -0600 Subject: [PATCH 105/145] vbo: added a comment --- src/mesa/vbo/vbo_save.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/vbo/vbo_save.h b/src/mesa/vbo/vbo_save.h index cd827ce6c06..45cd299798f 100644 --- a/src/mesa/vbo/vbo_save.h +++ b/src/mesa/vbo/vbo_save.h @@ -73,7 +73,7 @@ struct vbo_save_vertex_list { GLuint current_size; GLuint buffer_offset; - GLuint count; + GLuint count; /**< vertex count */ GLuint wrap_count; /* number of copied vertices at start */ GLboolean dangling_attr_ref; /* current attr implicitly referenced outside the list */ From a25271fcb8d12298e64890cad25919938ae12018 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 08:05:41 -0600 Subject: [PATCH 106/145] st: use _mesa_is_bufferobj() --- src/mesa/state_tracker/st_draw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c index 46a4f9cf8c5..56955d357b1 100644 --- a/src/mesa/state_tracker/st_draw.c +++ b/src/mesa/state_tracker/st_draw.c @@ -42,6 +42,7 @@ #include "main/imports.h" #include "main/image.h" +#include "main/bufferobj.h" #include "main/macros.h" #include "main/mfeatures.h" #include "program/prog_uniform.h" @@ -336,7 +337,7 @@ setup_interleaved_attribs(struct gl_context *ctx, assert(element_size == array->Size * _mesa_sizeof_type(array->Type)); if (attr == 0) { - if (bufobj && bufobj->Name) { + if (bufobj && _mesa_is_bufferobj(bufobj)) { vbuffer->buffer = NULL; pipe_resource_reference(&vbuffer->buffer, stobj->buffer); vbuffer->buffer_offset = pointer_to_offset(low_addr); @@ -402,7 +403,7 @@ setup_non_interleaved_attribs(struct gl_context *ctx, assert(element_size == array->Size * _mesa_sizeof_type(array->Type)); - if (bufobj && bufobj->Name) { + if (bufobj && _mesa_is_bufferobj(bufobj)) { /* Attribute data is in a VBO. * Recall that for VBOs, the gl_client_array->Ptr field is * really an offset from the start of the VBO, not a pointer. @@ -493,7 +494,7 @@ setup_index_buffer(struct gl_context *ctx, } /* get/create the index buffer object */ - if (bufobj && bufobj->Name) { + if (bufobj && _mesa_is_bufferobj(bufobj)) { /* elements/indexes are in a real VBO */ struct st_buffer_object *stobj = st_buffer_object(bufobj); pipe_resource_reference(&ibuffer->buffer, stobj->buffer); From f1cdce95f606584a56eabf3b38eea19ff4c75757 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 08:05:41 -0600 Subject: [PATCH 107/145] vbo: check array indexes to prevent negative indexing See the piglit dlist-fdo31590.c test NOTE: This is a candidate for the 7.10 branch. --- src/mesa/vbo/vbo_exec_api.c | 12 ++++++++---- src/mesa/vbo/vbo_save_api.c | 11 +++++------ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c index 3c7c439b64c..2b8d38ef283 100644 --- a/src/mesa/vbo/vbo_exec_api.c +++ b/src/mesa/vbo/vbo_exec_api.c @@ -608,11 +608,15 @@ static void GLAPIENTRY vbo_exec_End( void ) if (ctx->Driver.CurrentExecPrimitive != PRIM_OUTSIDE_BEGIN_END) { struct vbo_exec_context *exec = &vbo_context(ctx)->exec; - int idx = exec->vtx.vert_count; - int i = exec->vtx.prim_count - 1; - exec->vtx.prim[i].end = 1; - exec->vtx.prim[i].count = idx - exec->vtx.prim[i].start; + if (exec->vtx.prim_count > 0) { + /* close off current primitive */ + int idx = exec->vtx.vert_count; + int i = exec->vtx.prim_count - 1; + + exec->vtx.prim[i].end = 1; + exec->vtx.prim[i].count = idx - exec->vtx.prim[i].start; + } ctx->Driver.CurrentExecPrimitive = PRIM_OUTSIDE_BEGIN_END; diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c index 836c76fe835..cf821a72de0 100644 --- a/src/mesa/vbo/vbo_save_api.c +++ b/src/mesa/vbo/vbo_save_api.c @@ -686,12 +686,11 @@ static void DO_FALLBACK( struct gl_context *ctx ) struct vbo_save_context *save = &vbo_context(ctx)->save; if (save->vert_count || save->prim_count) { - GLint i = save->prim_count - 1; - - /* Close off in-progress primitive. - */ - save->prim[i].count = (save->vert_count - - save->prim[i].start); + if (save->prim_count > 0) { + /* Close off in-progress primitive. */ + GLint i = save->prim_count - 1; + save->prim[i].count = save->vert_count - save->prim[i].start; + } /* Need to replay this display list with loopback, * unfortunately, otherwise this primitive won't be handled From 62811057f41bf7c027da6156a44383266c7f3952 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 08:05:41 -0600 Subject: [PATCH 108/145] vbo: remove node->count > 0 test in vbo_save_playback_vertex_list() See piglit dlist-fdo31590.c test and http://bugs.freedesktop.org/show_bug.cgi?id=31590 In this case we had node->prim_count=1 but node->count==0 because the display list started with glBegin() but had no vertices. The call to glEvalCoord1f() triggered the DO_FALLBACK() path. When replaying the display list, the old condition basically no-op'd the call to vbo_save_playback_vertex_list call(). That led to the invalid operation error being raised in glEnd(). NOTE: This is a candidate for the 7.10 branch. --- src/mesa/vbo/vbo_save_draw.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/mesa/vbo/vbo_save_draw.c b/src/mesa/vbo/vbo_save_draw.c index ca4cff38a89..a37af73e0db 100644 --- a/src/mesa/vbo/vbo_save_draw.c +++ b/src/mesa/vbo/vbo_save_draw.c @@ -249,7 +249,7 @@ vbo_save_playback_vertex_list(struct gl_context *ctx, void *data) FLUSH_CURRENT(ctx, 0); - if (node->prim_count > 0 && node->count > 0) { + if (node->prim_count > 0) { if (ctx->Driver.CurrentExecPrimitive != PRIM_OUTSIDE_BEGIN_END && node->prim[0].begin) { @@ -289,14 +289,16 @@ vbo_save_playback_vertex_list(struct gl_context *ctx, void *data) if (ctx->NewState) _mesa_update_state( ctx ); - vbo_context(ctx)->draw_prims(ctx, - save->inputs, - node->prim, - node->prim_count, - NULL, - GL_TRUE, - 0, /* Node is a VBO, so this is ok */ - node->count - 1); + if (node->count > 0) { + vbo_context(ctx)->draw_prims(ctx, + save->inputs, + node->prim, + node->prim_count, + NULL, + GL_TRUE, + 0, /* Node is a VBO, so this is ok */ + node->count - 1); + } } /* Copy to current? From f1733d16de56b1fbecc2b0f22fc3270b85a813cc Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 08:05:41 -0600 Subject: [PATCH 109/145] vbo: rename DO_FALLBACK -> dlist_fallback --- src/mesa/vbo/vbo_save_api.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c index cf821a72de0..dd6e89942f2 100644 --- a/src/mesa/vbo/vbo_save_api.c +++ b/src/mesa/vbo/vbo_save_api.c @@ -681,7 +681,7 @@ do { \ * -- Flush current buffer * -- Fallback to opcodes for the rest of the begin/end object. */ -static void DO_FALLBACK( struct gl_context *ctx ) +static void dlist_fallback( struct gl_context *ctx ) { struct vbo_save_context *save = &vbo_context(ctx)->save; @@ -711,56 +711,56 @@ static void DO_FALLBACK( struct gl_context *ctx ) static void GLAPIENTRY _save_EvalCoord1f( GLfloat u ) { GET_CURRENT_CONTEXT(ctx); - DO_FALLBACK(ctx); + dlist_fallback(ctx); CALL_EvalCoord1f(ctx->Save, (u)); } static void GLAPIENTRY _save_EvalCoord1fv( const GLfloat *v ) { GET_CURRENT_CONTEXT(ctx); - DO_FALLBACK(ctx); + dlist_fallback(ctx); CALL_EvalCoord1fv(ctx->Save, (v)); } static void GLAPIENTRY _save_EvalCoord2f( GLfloat u, GLfloat v ) { GET_CURRENT_CONTEXT(ctx); - DO_FALLBACK(ctx); + dlist_fallback(ctx); CALL_EvalCoord2f(ctx->Save, (u, v)); } static void GLAPIENTRY _save_EvalCoord2fv( const GLfloat *v ) { GET_CURRENT_CONTEXT(ctx); - DO_FALLBACK(ctx); + dlist_fallback(ctx); CALL_EvalCoord2fv(ctx->Save, (v)); } static void GLAPIENTRY _save_EvalPoint1( GLint i ) { GET_CURRENT_CONTEXT(ctx); - DO_FALLBACK(ctx); + dlist_fallback(ctx); CALL_EvalPoint1(ctx->Save, (i)); } static void GLAPIENTRY _save_EvalPoint2( GLint i, GLint j ) { GET_CURRENT_CONTEXT(ctx); - DO_FALLBACK(ctx); + dlist_fallback(ctx); CALL_EvalPoint2(ctx->Save, (i, j)); } static void GLAPIENTRY _save_CallList( GLuint l ) { GET_CURRENT_CONTEXT(ctx); - DO_FALLBACK(ctx); + dlist_fallback(ctx); CALL_CallList(ctx->Save, (l)); } static void GLAPIENTRY _save_CallLists( GLsizei n, GLenum type, const GLvoid *v ) { GET_CURRENT_CONTEXT(ctx); - DO_FALLBACK(ctx); + dlist_fallback(ctx); CALL_CallLists(ctx->Save, (n, type, v)); } From 9404835ccdcd503b2cd50797f43b04ebe8db6873 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 08:05:41 -0600 Subject: [PATCH 110/145] mesa: add include/c99/*.h files to tarballs See https://bugs.freedesktop.org/show_bug.cgi?id=36238 NOTE: This is a candidate for the 7.10 branch. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 2fc35b26c7f..07ec6868856 100644 --- a/Makefile +++ b/Makefile @@ -231,6 +231,7 @@ MAIN_FILES = \ $(DIRECTORY)/include/GL/wglext.h \ $(DIRECTORY)/include/GL/wmesa.h \ $(DIRECTORY)/include/pci_ids/*.h \ + $(DIRECTORY)/include/c99/*.h \ $(DIRECTORY)/src/getopt/SConscript \ $(DIRECTORY)/src/getopt/getopt*.[ch] \ $(DIRECTORY)/src/glsl/Makefile \ From 7c2847a972cd68107348ba8fe3667dc211b78f3e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 08:05:41 -0600 Subject: [PATCH 111/145] vbo: run 'indent' on vbo_save_api.c --- src/mesa/vbo/vbo_save_api.c | 880 ++++++++++++++++++++---------------- 1 file changed, 487 insertions(+), 393 deletions(-) diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c index dd6e89942f2..9041f791edd 100644 --- a/src/mesa/vbo/vbo_save_api.c +++ b/src/mesa/vbo/vbo_save_api.c @@ -100,12 +100,13 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. * NOTE: Old 'parity' issue is gone, but copying can still be * wrong-footed on replay. */ -static GLuint _save_copy_vertices( struct gl_context *ctx, - const struct vbo_save_vertex_list *node, - const GLfloat *src_buffer) +static GLuint +_save_copy_vertices(struct gl_context *ctx, + const struct vbo_save_vertex_list *node, + const GLfloat * src_buffer) { - struct vbo_save_context *save = &vbo_context( ctx )->save; - const struct _mesa_prim *prim = &node->prim[node->prim_count-1]; + struct vbo_save_context *save = &vbo_context(ctx)->save; + const struct _mesa_prim *prim = &node->prim[node->prim_count - 1]; GLuint nr = prim->count; GLuint sz = save->vertex_size; const GLfloat *src = src_buffer + prim->start * sz; @@ -114,55 +115,65 @@ static GLuint _save_copy_vertices( struct gl_context *ctx, if (prim->end) return 0; - - switch( prim->mode ) - { + + switch (prim->mode) { case GL_POINTS: return 0; case GL_LINES: - ovf = nr&1; - for (i = 0 ; i < ovf ; i++) - memcpy( dst+i*sz, src+(nr-ovf+i)*sz, sz*sizeof(GLfloat) ); + ovf = nr & 1; + for (i = 0; i < ovf; i++) + memcpy(dst + i * sz, src + (nr - ovf + i) * sz, + sz * sizeof(GLfloat)); return i; case GL_TRIANGLES: - ovf = nr%3; - for (i = 0 ; i < ovf ; i++) - memcpy( dst+i*sz, src+(nr-ovf+i)*sz, sz*sizeof(GLfloat) ); + ovf = nr % 3; + for (i = 0; i < ovf; i++) + memcpy(dst + i * sz, src + (nr - ovf + i) * sz, + sz * sizeof(GLfloat)); return i; case GL_QUADS: - ovf = nr&3; - for (i = 0 ; i < ovf ; i++) - memcpy( dst+i*sz, src+(nr-ovf+i)*sz, sz*sizeof(GLfloat) ); + ovf = nr & 3; + for (i = 0; i < ovf; i++) + memcpy(dst + i * sz, src + (nr - ovf + i) * sz, + sz * sizeof(GLfloat)); return i; case GL_LINE_STRIP: - if (nr == 0) - return 0; + if (nr == 0) + return 0; else { - memcpy( dst, src+(nr-1)*sz, sz*sizeof(GLfloat) ); - return 1; + memcpy(dst, src + (nr - 1) * sz, sz * sizeof(GLfloat)); + return 1; } case GL_LINE_LOOP: case GL_TRIANGLE_FAN: case GL_POLYGON: - if (nr == 0) - return 0; + if (nr == 0) + return 0; else if (nr == 1) { - memcpy( dst, src+0, sz*sizeof(GLfloat) ); - return 1; - } else { - memcpy( dst, src+0, sz*sizeof(GLfloat) ); - memcpy( dst+sz, src+(nr-1)*sz, sz*sizeof(GLfloat) ); - return 2; + memcpy(dst, src + 0, sz * sizeof(GLfloat)); + return 1; + } + else { + memcpy(dst, src + 0, sz * sizeof(GLfloat)); + memcpy(dst + sz, src + (nr - 1) * sz, sz * sizeof(GLfloat)); + return 2; } case GL_TRIANGLE_STRIP: case GL_QUAD_STRIP: switch (nr) { - case 0: ovf = 0; break; - case 1: ovf = 1; break; - default: ovf = 2 + (nr&1); break; + case 0: + ovf = 0; + break; + case 1: + ovf = 1; + break; + default: + ovf = 2 + (nr & 1); + break; } - for (i = 0 ; i < ovf ; i++) - memcpy( dst+i*sz, src+(nr-ovf+i)*sz, sz*sizeof(GLfloat) ); + for (i = 0; i < ovf; i++) + memcpy(dst + i * sz, src + (nr - ovf + i) * sz, + sz * sizeof(GLfloat)); return i; default: assert(0); @@ -171,9 +182,11 @@ static GLuint _save_copy_vertices( struct gl_context *ctx, } -static struct vbo_save_vertex_store *alloc_vertex_store( struct gl_context *ctx ) +static struct vbo_save_vertex_store * +alloc_vertex_store(struct gl_context *ctx) { - struct vbo_save_vertex_store *vertex_store = CALLOC_STRUCT(vbo_save_vertex_store); + struct vbo_save_vertex_store *vertex_store = + CALLOC_STRUCT(vbo_save_vertex_store); /* obj->Name needs to be non-zero, but won't ever be examined more * closely than that. In particular these buffers won't be entered @@ -185,12 +198,10 @@ static struct vbo_save_vertex_store *alloc_vertex_store( struct gl_context *ctx VBO_BUF_ID, GL_ARRAY_BUFFER_ARB); - ctx->Driver.BufferData( ctx, - GL_ARRAY_BUFFER_ARB, - VBO_SAVE_BUFFER_SIZE * sizeof(GLfloat), - NULL, - GL_STATIC_DRAW_ARB, - vertex_store->bufferobj); + ctx->Driver.BufferData(ctx, + GL_ARRAY_BUFFER_ARB, + VBO_SAVE_BUFFER_SIZE * sizeof(GLfloat), + NULL, GL_STATIC_DRAW_ARB, vertex_store->bufferobj); vertex_store->buffer = NULL; vertex_store->used = 0; @@ -199,7 +210,10 @@ static struct vbo_save_vertex_store *alloc_vertex_store( struct gl_context *ctx return vertex_store; } -static void free_vertex_store( struct gl_context *ctx, struct vbo_save_vertex_store *vertex_store ) + +static void +free_vertex_store(struct gl_context *ctx, + struct vbo_save_vertex_store *vertex_store) { assert(!vertex_store->buffer); @@ -207,51 +221,62 @@ static void free_vertex_store( struct gl_context *ctx, struct vbo_save_vertex_st _mesa_reference_buffer_object(ctx, &vertex_store->bufferobj, NULL); } - FREE( vertex_store ); + FREE(vertex_store); } -static GLfloat *map_vertex_store( struct gl_context *ctx, struct vbo_save_vertex_store *vertex_store ) + +static GLfloat * +map_vertex_store(struct gl_context *ctx, + struct vbo_save_vertex_store *vertex_store) { assert(vertex_store->bufferobj); assert(!vertex_store->buffer); - vertex_store->buffer = (GLfloat *)ctx->Driver.MapBuffer(ctx, - GL_ARRAY_BUFFER_ARB, /* not used */ - GL_WRITE_ONLY, /* not used */ - vertex_store->bufferobj); + vertex_store->buffer = + (GLfloat *) ctx->Driver.MapBuffer(ctx, + GL_ARRAY_BUFFER_ARB, /* not used */ + GL_WRITE_ONLY, /* not used */ + vertex_store-> + bufferobj); assert(vertex_store->buffer); return vertex_store->buffer + vertex_store->used; } -static void unmap_vertex_store( struct gl_context *ctx, struct vbo_save_vertex_store *vertex_store ) + +static void +unmap_vertex_store(struct gl_context *ctx, + struct vbo_save_vertex_store *vertex_store) { - ctx->Driver.UnmapBuffer( ctx, GL_ARRAY_BUFFER_ARB, vertex_store->bufferobj ); + ctx->Driver.UnmapBuffer(ctx, GL_ARRAY_BUFFER_ARB, vertex_store->bufferobj); vertex_store->buffer = NULL; } -static struct vbo_save_primitive_store *alloc_prim_store( struct gl_context *ctx ) +static struct vbo_save_primitive_store * +alloc_prim_store(struct gl_context *ctx) { - struct vbo_save_primitive_store *store = CALLOC_STRUCT(vbo_save_primitive_store); + struct vbo_save_primitive_store *store = + CALLOC_STRUCT(vbo_save_primitive_store); (void) ctx; store->used = 0; store->refcount = 1; return store; } -static void _save_reset_counters( struct gl_context *ctx ) + +static void +_save_reset_counters(struct gl_context *ctx) { struct vbo_save_context *save = &vbo_context(ctx)->save; save->prim = save->prim_store->buffer + save->prim_store->used; - save->buffer = (save->vertex_store->buffer + - save->vertex_store->used); + save->buffer = save->vertex_store->buffer + save->vertex_store->used; assert(save->buffer == save->buffer_ptr); if (save->vertex_size) - save->max_vert = ((VBO_SAVE_BUFFER_SIZE - save->vertex_store->used) / - save->vertex_size); + save->max_vert = ((VBO_SAVE_BUFFER_SIZE - save->vertex_store->used) / + save->vertex_size); else save->max_vert = 0; @@ -262,10 +287,12 @@ static void _save_reset_counters( struct gl_context *ctx ) } -/* Insert the active immediate struct onto the display list currently +/** + * Insert the active immediate struct onto the display list currently * being built. */ -static void _save_compile_vertex_list( struct gl_context *ctx ) +static void +_save_compile_vertex_list(struct gl_context *ctx) { struct vbo_save_context *save = &vbo_context(ctx)->save; struct vbo_save_vertex_list *node; @@ -283,7 +310,8 @@ static void _save_compile_vertex_list( struct gl_context *ctx ) */ memcpy(node->attrsz, save->attrsz, sizeof(node->attrsz)); node->vertex_size = save->vertex_size; - node->buffer_offset = (save->buffer - save->vertex_store->buffer) * sizeof(GLfloat); + node->buffer_offset = + (save->buffer - save->vertex_store->buffer) * sizeof(GLfloat); node->count = save->vert_count; node->wrap_count = save->copied.nr; node->dangling_attr_ref = save->dangling_attr_ref; @@ -298,34 +326,33 @@ static void _save_compile_vertex_list( struct gl_context *ctx ) if (node->prim[0].no_current_update) { node->current_size = 0; node->current_data = NULL; - } else { + } + else { node->current_size = node->vertex_size - node->attrsz[0]; node->current_data = NULL; - + if (node->current_size) { /* If the malloc fails, we just pull the data out of the VBO * later instead. */ - node->current_data = MALLOC( node->current_size * sizeof(GLfloat) ); + node->current_data = MALLOC(node->current_size * sizeof(GLfloat)); if (node->current_data) { - const char *buffer = (const char *)save->vertex_store->buffer; + const char *buffer = (const char *) save->vertex_store->buffer; unsigned attr_offset = node->attrsz[0] * sizeof(GLfloat); unsigned vertex_offset = 0; - + if (node->count) - vertex_offset = (node->count-1) * node->vertex_size * sizeof(GLfloat); - - memcpy( node->current_data, - buffer + node->buffer_offset + vertex_offset + attr_offset, - node->current_size * sizeof(GLfloat) ); + vertex_offset = + (node->count - 1) * node->vertex_size * sizeof(GLfloat); + + memcpy(node->current_data, + buffer + node->buffer_offset + vertex_offset + attr_offset, + node->current_size * sizeof(GLfloat)); } } } - - - assert(node->attrsz[VBO_ATTRIB_POS] != 0 || - node->count == 0); + assert(node->attrsz[VBO_ATTRIB_POS] != 0 || node->count == 0); if (save->dangling_attr_ref) ctx->ListState.CurrentList->Flags |= DLIST_DANGLING_REFS; @@ -333,11 +360,9 @@ static void _save_compile_vertex_list( struct gl_context *ctx ) save->vertex_store->used += save->vertex_size * node->count; save->prim_store->used += node->prim_count; - /* Copy duplicated vertices */ - save->copied.nr = _save_copy_vertices( ctx, node, save->buffer ); - + save->copied.nr = _save_copy_vertices(ctx, node, save->buffer); /* Deal with GL_COMPILE_AND_EXECUTE: */ @@ -346,57 +371,55 @@ static void _save_compile_vertex_list( struct gl_context *ctx ) _glapi_set_dispatch(ctx->Exec); - vbo_loopback_vertex_list( ctx, - (const GLfloat *)((const char *)save->vertex_store->buffer + - node->buffer_offset), - node->attrsz, - node->prim, - node->prim_count, - node->wrap_count, - node->vertex_size); + vbo_loopback_vertex_list(ctx, + (const GLfloat *) ((const char *) save-> + vertex_store->buffer + + node->buffer_offset), + node->attrsz, node->prim, node->prim_count, + node->wrap_count, node->vertex_size); _glapi_set_dispatch(dispatch); } - /* Decide whether the storage structs are full, or can be used for * the next vertex lists as well. */ - if (save->vertex_store->used > + if (save->vertex_store->used > VBO_SAVE_BUFFER_SIZE - 16 * (save->vertex_size + 4)) { /* Unmap old store: */ - unmap_vertex_store( ctx, save->vertex_store ); + unmap_vertex_store(ctx, save->vertex_store); /* Release old reference: */ - save->vertex_store->refcount--; + save->vertex_store->refcount--; assert(save->vertex_store->refcount != 0); save->vertex_store = NULL; /* Allocate and map new store: */ - save->vertex_store = alloc_vertex_store( ctx ); - save->buffer_ptr = map_vertex_store( ctx, save->vertex_store ); - } + save->vertex_store = alloc_vertex_store(ctx); + save->buffer_ptr = map_vertex_store(ctx, save->vertex_store); + } if (save->prim_store->used > VBO_SAVE_PRIM_SIZE - 6) { - save->prim_store->refcount--; + save->prim_store->refcount--; assert(save->prim_store->refcount != 0); - save->prim_store = alloc_prim_store( ctx ); - } + save->prim_store = alloc_prim_store(ctx); + } /* Reset our structures for the next run of vertices: */ - _save_reset_counters( ctx ); + _save_reset_counters(ctx); } -/* TODO -- If no new vertices have been stored, don't bother saving - * it. +/** + * TODO -- If no new vertices have been stored, don't bother saving it. */ -static void _save_wrap_buffers( struct gl_context *ctx ) +static void +_save_wrap_buffers(struct gl_context *ctx) { struct vbo_save_context *save = &vbo_context(ctx)->save; GLint i = save->prim_count - 1; @@ -409,15 +432,14 @@ static void _save_wrap_buffers( struct gl_context *ctx ) /* Close off in-progress primitive. */ - save->prim[i].count = (save->vert_count - - save->prim[i].start); + save->prim[i].count = (save->vert_count - save->prim[i].start); mode = save->prim[i].mode; weak = save->prim[i].weak; no_current_update = save->prim[i].no_current_update; - + /* store the copied vertices, and allocate a new list. */ - _save_compile_vertex_list( ctx ); + _save_compile_vertex_list(ctx); /* Restart interrupted primitive */ @@ -434,11 +456,12 @@ static void _save_wrap_buffers( struct gl_context *ctx ) } - -/* Called only when buffers are wrapped as the result of filling the +/** + * Called only when buffers are wrapped as the result of filling the * vertex_store struct. */ -static void _save_wrap_filled_vertex( struct gl_context *ctx ) +static void +_save_wrap_filled_vertex(struct gl_context *ctx) { struct vbo_save_context *save = &vbo_context(ctx)->save; GLfloat *data = save->copied.buffer; @@ -446,14 +469,14 @@ static void _save_wrap_filled_vertex( struct gl_context *ctx ) /* Emit a glEnd to close off the last vertex list. */ - _save_wrap_buffers( ctx ); - - /* Copy stored stored vertices to start of new list. + _save_wrap_buffers(ctx); + + /* Copy stored stored vertices to start of new list. */ assert(save->max_vert - save->vert_count > save->copied.nr); - for (i = 0 ; i < save->copied.nr ; i++) { - memcpy( save->buffer_ptr, data, save->vertex_size * sizeof(GLfloat)); + for (i = 0; i < save->copied.nr; i++) { + memcpy(save->buffer_ptr, data, save->vertex_size * sizeof(GLfloat)); data += save->vertex_size; save->buffer_ptr += save->vertex_size; save->vert_count++; @@ -461,46 +484,48 @@ static void _save_wrap_filled_vertex( struct gl_context *ctx ) } -static void _save_copy_to_current( struct gl_context *ctx ) +static void +_save_copy_to_current(struct gl_context *ctx) { - struct vbo_save_context *save = &vbo_context(ctx)->save; + struct vbo_save_context *save = &vbo_context(ctx)->save; GLuint i; - for (i = VBO_ATTRIB_POS+1 ; i < VBO_ATTRIB_MAX ; i++) { + for (i = VBO_ATTRIB_POS + 1; i < VBO_ATTRIB_MAX; i++) { if (save->attrsz[i]) { - save->currentsz[i][0] = save->attrsz[i]; - COPY_CLEAN_4V(save->current[i], - save->attrsz[i], - save->attrptr[i]); + save->currentsz[i][0] = save->attrsz[i]; + COPY_CLEAN_4V(save->current[i], save->attrsz[i], save->attrptr[i]); } } } -static void _save_copy_from_current( struct gl_context *ctx ) +static void +_save_copy_from_current(struct gl_context *ctx) { - struct vbo_save_context *save = &vbo_context(ctx)->save; + struct vbo_save_context *save = &vbo_context(ctx)->save; GLint i; - for (i = VBO_ATTRIB_POS+1 ; i < VBO_ATTRIB_MAX ; i++) { + for (i = VBO_ATTRIB_POS + 1; i < VBO_ATTRIB_MAX; i++) { switch (save->attrsz[i]) { - case 4: save->attrptr[i][3] = save->current[i][3]; - case 3: save->attrptr[i][2] = save->current[i][2]; - case 2: save->attrptr[i][1] = save->current[i][1]; - case 1: save->attrptr[i][0] = save->current[i][0]; - case 0: break; + case 4: + save->attrptr[i][3] = save->current[i][3]; + case 3: + save->attrptr[i][2] = save->current[i][2]; + case 2: + save->attrptr[i][1] = save->current[i][1]; + case 1: + save->attrptr[i][0] = save->current[i][0]; + case 0: + break; } } } - - /* Flush existing data, set new attrib size, replay copied vertices. - */ -static void _save_upgrade_vertex( struct gl_context *ctx, - GLuint attr, - GLuint newsz ) + */ +static void +_save_upgrade_vertex(struct gl_context *ctx, GLuint attr, GLuint newsz) { struct vbo_save_context *save = &vbo_context(ctx)->save; GLuint oldsz; @@ -510,16 +535,16 @@ static void _save_upgrade_vertex( struct gl_context *ctx, /* Store the current run of vertices, and emit a GL_END. Emit a * BEGIN in the new buffer. */ - if (save->vert_count) - _save_wrap_buffers( ctx ); + if (save->vert_count) + _save_wrap_buffers(ctx); else - assert( save->copied.nr == 0 ); + assert(save->copied.nr == 0); /* Do a COPY_TO_CURRENT to ensure back-copying works for the case * when the attribute already exists in the vertex and is having * its size increased. */ - _save_copy_to_current( ctx ); + _save_copy_to_current(ctx); /* Fix up sizes: */ @@ -527,24 +552,25 @@ static void _save_upgrade_vertex( struct gl_context *ctx, save->attrsz[attr] = newsz; save->vertex_size += newsz - oldsz; - save->max_vert = ((VBO_SAVE_BUFFER_SIZE - save->vertex_store->used) / - save->vertex_size); + save->max_vert = ((VBO_SAVE_BUFFER_SIZE - save->vertex_store->used) / + save->vertex_size); save->vert_count = 0; /* Recalculate all the attrptr[] values: */ - for (i = 0, tmp = save->vertex ; i < VBO_ATTRIB_MAX ; i++) { + for (i = 0, tmp = save->vertex; i < VBO_ATTRIB_MAX; i++) { if (save->attrsz[i]) { - save->attrptr[i] = tmp; - tmp += save->attrsz[i]; + save->attrptr[i] = tmp; + tmp += save->attrsz[i]; + } + else { + save->attrptr[i] = NULL; /* will not be dereferenced. */ } - else - save->attrptr[i] = NULL; /* will not be dereferenced. */ } /* Copy from current to repopulate the vertex with correct values. */ - _save_copy_from_current( ctx ); + _save_copy_from_current(ctx); /* Replay stored vertices to translate them to new format here. * @@ -552,8 +578,7 @@ static void _save_upgrade_vertex( struct gl_context *ctx, * has not been defined before, this list is somewhat degenerate, * and will need fixup at runtime. */ - if (save->copied.nr) - { + if (save->copied.nr) { GLfloat *data = save->copied.buffer; GLfloat *dest = save->buffer; GLuint j; @@ -561,32 +586,32 @@ static void _save_upgrade_vertex( struct gl_context *ctx, /* Need to note this and fix up at runtime (or loopback): */ if (attr != VBO_ATTRIB_POS && save->currentsz[attr][0] == 0) { - assert(oldsz == 0); - save->dangling_attr_ref = GL_TRUE; + assert(oldsz == 0); + save->dangling_attr_ref = GL_TRUE; } - for (i = 0 ; i < save->copied.nr ; i++) { - for (j = 0 ; j < VBO_ATTRIB_MAX ; j++) { - if (save->attrsz[j]) { - if (j == attr) { - if (oldsz) { - COPY_CLEAN_4V( dest, oldsz, data ); - data += oldsz; - dest += newsz; - } - else { - COPY_SZ_4V( dest, newsz, save->current[attr] ); - dest += newsz; - } - } - else { - GLint sz = save->attrsz[j]; - COPY_SZ_4V( dest, sz, data ); - data += sz; - dest += sz; - } - } - } + for (i = 0; i < save->copied.nr; i++) { + for (j = 0; j < VBO_ATTRIB_MAX; j++) { + if (save->attrsz[j]) { + if (j == attr) { + if (oldsz) { + COPY_CLEAN_4V(dest, oldsz, data); + data += oldsz; + dest += newsz; + } + else { + COPY_SZ_4V(dest, newsz, save->current[attr]); + dest += newsz; + } + } + else { + GLint sz = save->attrsz[j]; + COPY_SZ_4V(dest, sz, data); + data += sz; + dest += sz; + } + } + } } save->buffer_ptr = dest; @@ -594,15 +619,17 @@ static void _save_upgrade_vertex( struct gl_context *ctx, } } -static void save_fixup_vertex( struct gl_context *ctx, GLuint attr, GLuint sz ) + +static void +save_fixup_vertex(struct gl_context *ctx, GLuint attr, GLuint sz) { - struct vbo_save_context *save = &vbo_context(ctx)->save; + struct vbo_save_context *save = &vbo_context(ctx)->save; if (sz > save->attrsz[attr]) { /* New size is larger. Need to flush existing vertices and get * an enlarged vertex format. */ - _save_upgrade_vertex( ctx, attr, sz ); + _save_upgrade_vertex(ctx, attr, sz); } else if (sz < save->active_sz[attr]) { static GLfloat id[4] = { 0, 0, 0, 1 }; @@ -611,29 +638,31 @@ static void save_fixup_vertex( struct gl_context *ctx, GLuint attr, GLuint sz ) /* New size is equal or smaller - just need to fill in some * zeros. */ - for (i = sz ; i <= save->attrsz[attr] ; i++) - save->attrptr[attr][i-1] = id[i-1]; + for (i = sz; i <= save->attrsz[attr]; i++) + save->attrptr[attr][i - 1] = id[i - 1]; } save->active_sz[attr] = sz; } -static void _save_reset_vertex( struct gl_context *ctx ) + +static void +_save_reset_vertex(struct gl_context *ctx) { struct vbo_save_context *save = &vbo_context(ctx)->save; GLuint i; - for (i = 0 ; i < VBO_ATTRIB_MAX ; i++) { + for (i = 0; i < VBO_ATTRIB_MAX; i++) { save->attrsz[i] = 0; save->active_sz[i] = 0; } - + save->vertex_size = 0; } -#define ERROR(err) _mesa_compile_error( ctx, err, __FUNCTION__ ); +#define ERROR(err) _mesa_compile_error(ctx, err, __FUNCTION__); /* Only one size for each attribute may be active at once. Eg. if @@ -642,7 +671,7 @@ static void _save_reset_vertex( struct gl_context *ctx ) * 3f version won't otherwise set color[3] to 1.0 -- this is the job * of the chooser function when switching between Color4f and Color3f. */ -#define ATTR( A, N, V0, V1, V2, V3 ) \ +#define ATTR(A, N, V0, V1, V2, V3) \ do { \ struct vbo_save_context *save = &vbo_context(ctx)->save; \ \ @@ -666,7 +695,7 @@ do { \ save->buffer_ptr += save->vertex_size; \ \ if (++save->vert_count >= save->max_vert) \ - _save_wrap_filled_vertex( ctx ); \ + _save_wrap_filled_vertex(ctx); \ } \ } while (0) @@ -681,7 +710,8 @@ do { \ * -- Flush current buffer * -- Fallback to opcodes for the rest of the begin/end object. */ -static void dlist_fallback( struct gl_context *ctx ) +static void +dlist_fallback(struct gl_context *ctx) { struct vbo_save_context *save = &vbo_context(ctx)->save; @@ -697,67 +727,76 @@ static void dlist_fallback( struct gl_context *ctx ) * properly: */ save->dangling_attr_ref = 1; - - _save_compile_vertex_list( ctx ); + + _save_compile_vertex_list(ctx); } - _save_copy_to_current( ctx ); - _save_reset_vertex( ctx ); - _save_reset_counters( ctx ); - _mesa_install_save_vtxfmt( ctx, &ctx->ListState.ListVtxfmt ); + _save_copy_to_current(ctx); + _save_reset_vertex(ctx); + _save_reset_counters(ctx); + _mesa_install_save_vtxfmt(ctx, &ctx->ListState.ListVtxfmt); ctx->Driver.SaveNeedFlush = 0; } -static void GLAPIENTRY _save_EvalCoord1f( GLfloat u ) + +static void GLAPIENTRY +_save_EvalCoord1f(GLfloat u) { GET_CURRENT_CONTEXT(ctx); dlist_fallback(ctx); CALL_EvalCoord1f(ctx->Save, (u)); } -static void GLAPIENTRY _save_EvalCoord1fv( const GLfloat *v ) +static void GLAPIENTRY +_save_EvalCoord1fv(const GLfloat * v) { GET_CURRENT_CONTEXT(ctx); dlist_fallback(ctx); CALL_EvalCoord1fv(ctx->Save, (v)); } -static void GLAPIENTRY _save_EvalCoord2f( GLfloat u, GLfloat v ) +static void GLAPIENTRY +_save_EvalCoord2f(GLfloat u, GLfloat v) { GET_CURRENT_CONTEXT(ctx); dlist_fallback(ctx); CALL_EvalCoord2f(ctx->Save, (u, v)); } -static void GLAPIENTRY _save_EvalCoord2fv( const GLfloat *v ) +static void GLAPIENTRY +_save_EvalCoord2fv(const GLfloat * v) { GET_CURRENT_CONTEXT(ctx); dlist_fallback(ctx); CALL_EvalCoord2fv(ctx->Save, (v)); } -static void GLAPIENTRY _save_EvalPoint1( GLint i ) +static void GLAPIENTRY +_save_EvalPoint1(GLint i) { GET_CURRENT_CONTEXT(ctx); dlist_fallback(ctx); CALL_EvalPoint1(ctx->Save, (i)); } -static void GLAPIENTRY _save_EvalPoint2( GLint i, GLint j ) +static void GLAPIENTRY +_save_EvalPoint2(GLint i, GLint j) { GET_CURRENT_CONTEXT(ctx); dlist_fallback(ctx); CALL_EvalPoint2(ctx->Save, (i, j)); } -static void GLAPIENTRY _save_CallList( GLuint l ) +static void GLAPIENTRY +_save_CallList(GLuint l) { GET_CURRENT_CONTEXT(ctx); dlist_fallback(ctx); CALL_CallList(ctx->Save, (l)); } -static void GLAPIENTRY _save_CallLists( GLsizei n, GLenum type, const GLvoid *v ) +static void GLAPIENTRY +_save_CallLists(GLsizei n, GLenum type, const GLvoid * v) { GET_CURRENT_CONTEXT(ctx); dlist_fallback(ctx); @@ -766,13 +805,13 @@ static void GLAPIENTRY _save_CallLists( GLsizei n, GLenum type, const GLvoid *v - /* This begin is hooked into ... Updating of * ctx->Driver.CurrentSavePrimitive is already taken care of. */ -GLboolean vbo_save_NotifyBegin( struct gl_context *ctx, GLenum mode ) +GLboolean +vbo_save_NotifyBegin(struct gl_context *ctx, GLenum mode) { - struct vbo_save_context *save = &vbo_context(ctx)->save; + struct vbo_save_context *save = &vbo_context(ctx)->save; GLuint i = save->prim_count++; @@ -781,133 +820,169 @@ GLboolean vbo_save_NotifyBegin( struct gl_context *ctx, GLenum mode ) save->prim[i].begin = 1; save->prim[i].end = 0; save->prim[i].weak = (mode & VBO_SAVE_PRIM_WEAK) ? 1 : 0; - save->prim[i].no_current_update = (mode & VBO_SAVE_PRIM_NO_CURRENT_UPDATE) ? 1 : 0; + save->prim[i].no_current_update = + (mode & VBO_SAVE_PRIM_NO_CURRENT_UPDATE) ? 1 : 0; save->prim[i].pad = 0; save->prim[i].start = save->vert_count; - save->prim[i].count = 0; - save->prim[i].num_instances = 1; + save->prim[i].count = 0; + save->prim[i].num_instances = 1; - _mesa_install_save_vtxfmt( ctx, &save->vtxfmt ); + _mesa_install_save_vtxfmt(ctx, &save->vtxfmt); ctx->Driver.SaveNeedFlush = 1; return GL_TRUE; } - -static void GLAPIENTRY _save_End( void ) +static void GLAPIENTRY +_save_End(void) { - GET_CURRENT_CONTEXT( ctx ); - struct vbo_save_context *save = &vbo_context(ctx)->save; + GET_CURRENT_CONTEXT(ctx); + struct vbo_save_context *save = &vbo_context(ctx)->save; GLint i = save->prim_count - 1; ctx->Driver.CurrentSavePrimitive = PRIM_OUTSIDE_BEGIN_END; save->prim[i].end = 1; - save->prim[i].count = (save->vert_count - - save->prim[i].start); + save->prim[i].count = (save->vert_count - save->prim[i].start); if (i == (GLint) save->prim_max - 1) { - _save_compile_vertex_list( ctx ); + _save_compile_vertex_list(ctx); assert(save->copied.nr == 0); } /* Swap out this vertex format while outside begin/end. Any color, * etc. received between here and the next begin will be compiled * as opcodes. - */ - _mesa_install_save_vtxfmt( ctx, &ctx->ListState.ListVtxfmt ); + */ + _mesa_install_save_vtxfmt(ctx, &ctx->ListState.ListVtxfmt); } /* These are all errors as this vtxfmt is only installed inside * begin/end pairs. */ -static void GLAPIENTRY _save_DrawElements(GLenum mode, GLsizei count, GLenum type, - const GLvoid *indices) +static void GLAPIENTRY +_save_DrawElements(GLenum mode, GLsizei count, GLenum type, + const GLvoid * indices) { GET_CURRENT_CONTEXT(ctx); - (void) mode; (void) count; (void) type; (void) indices; - _mesa_compile_error( ctx, GL_INVALID_OPERATION, "glDrawElements" ); -} - - -static void GLAPIENTRY _save_DrawRangeElements(GLenum mode, - GLuint start, GLuint end, - GLsizei count, GLenum type, - const GLvoid *indices) -{ - GET_CURRENT_CONTEXT(ctx); - (void) mode; (void) start; (void) end; (void) count; (void) type; (void) indices; - _mesa_compile_error( ctx, GL_INVALID_OPERATION, "glDrawRangeElements" ); -} - -static void GLAPIENTRY _save_DrawElementsBaseVertex(GLenum mode, - GLsizei count, - GLenum type, - const GLvoid *indices, - GLint basevertex) -{ - GET_CURRENT_CONTEXT(ctx); - (void) mode; (void) count; (void) type; (void) indices; (void)basevertex; - - _mesa_compile_error( ctx, GL_INVALID_OPERATION, "glDrawElements" ); -} - -static void GLAPIENTRY _save_DrawRangeElementsBaseVertex(GLenum mode, - GLuint start, - GLuint end, - GLsizei count, - GLenum type, - const GLvoid *indices, - GLint basevertex) -{ - GET_CURRENT_CONTEXT(ctx); - (void) mode; (void) start; (void) end; (void) count; (void) type; - (void) indices; (void)basevertex; - - _mesa_compile_error( ctx, GL_INVALID_OPERATION, "glDrawRangeElements" ); -} - -static void GLAPIENTRY _save_DrawArrays(GLenum mode, GLint start, GLsizei count) -{ - GET_CURRENT_CONTEXT(ctx); - (void) mode; (void) start; (void) count; - _mesa_compile_error( ctx, GL_INVALID_OPERATION, "glDrawArrays" ); -} - -static void GLAPIENTRY _save_Rectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ) -{ - GET_CURRENT_CONTEXT(ctx); - (void) x1; (void) y1; (void) x2; (void) y2; - _mesa_compile_error( ctx, GL_INVALID_OPERATION, "glRectf" ); -} - -static void GLAPIENTRY _save_EvalMesh1( GLenum mode, GLint i1, GLint i2 ) -{ - GET_CURRENT_CONTEXT(ctx); - (void) mode; (void) i1; (void) i2; - _mesa_compile_error( ctx, GL_INVALID_OPERATION, "glEvalMesh1" ); -} - -static void GLAPIENTRY _save_EvalMesh2( GLenum mode, GLint i1, GLint i2, - GLint j1, GLint j2 ) -{ - GET_CURRENT_CONTEXT(ctx); - (void) mode; (void) i1; (void) i2; (void) j1; (void) j2; - _mesa_compile_error( ctx, GL_INVALID_OPERATION, "glEvalMesh2" ); -} - -static void GLAPIENTRY _save_Begin( GLenum mode ) -{ - GET_CURRENT_CONTEXT( ctx ); (void) mode; - _mesa_compile_error( ctx, GL_INVALID_OPERATION, "Recursive glBegin" ); + (void) count; + (void) type; + (void) indices; + _mesa_compile_error(ctx, GL_INVALID_OPERATION, "glDrawElements"); } -static void GLAPIENTRY _save_PrimitiveRestartNV( void ) +static void GLAPIENTRY +_save_DrawRangeElements(GLenum mode, GLuint start, GLuint end, + GLsizei count, GLenum type, const GLvoid * indices) +{ + GET_CURRENT_CONTEXT(ctx); + (void) mode; + (void) start; + (void) end; + (void) count; + (void) type; + (void) indices; + _mesa_compile_error(ctx, GL_INVALID_OPERATION, "glDrawRangeElements"); +} + + +static void GLAPIENTRY +_save_DrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type, + const GLvoid * indices, GLint basevertex) +{ + GET_CURRENT_CONTEXT(ctx); + (void) mode; + (void) count; + (void) type; + (void) indices; + (void) basevertex; + _mesa_compile_error(ctx, GL_INVALID_OPERATION, "glDrawElements"); +} + + +static void GLAPIENTRY +_save_DrawRangeElementsBaseVertex(GLenum mode, + GLuint start, + GLuint end, + GLsizei count, + GLenum type, + const GLvoid * indices, GLint basevertex) +{ + GET_CURRENT_CONTEXT(ctx); + (void) mode; + (void) start; + (void) end; + (void) count; + (void) type; + (void) indices; + (void) basevertex; + _mesa_compile_error(ctx, GL_INVALID_OPERATION, "glDrawRangeElements"); +} + + +static void GLAPIENTRY +_save_DrawArrays(GLenum mode, GLint start, GLsizei count) +{ + GET_CURRENT_CONTEXT(ctx); + (void) mode; + (void) start; + (void) count; + _mesa_compile_error(ctx, GL_INVALID_OPERATION, "glDrawArrays"); +} + + +static void GLAPIENTRY +_save_Rectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2) +{ + GET_CURRENT_CONTEXT(ctx); + (void) x1; + (void) y1; + (void) x2; + (void) y2; + _mesa_compile_error(ctx, GL_INVALID_OPERATION, "glRectf"); +} + + +static void GLAPIENTRY +_save_EvalMesh1(GLenum mode, GLint i1, GLint i2) +{ + GET_CURRENT_CONTEXT(ctx); + (void) mode; + (void) i1; + (void) i2; + _mesa_compile_error(ctx, GL_INVALID_OPERATION, "glEvalMesh1"); +} + + +static void GLAPIENTRY +_save_EvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2) +{ + GET_CURRENT_CONTEXT(ctx); + (void) mode; + (void) i1; + (void) i2; + (void) j1; + (void) j2; + _mesa_compile_error(ctx, GL_INVALID_OPERATION, "glEvalMesh2"); +} + + +static void GLAPIENTRY +_save_Begin(GLenum mode) +{ + GET_CURRENT_CONTEXT(ctx); + (void) mode; + _mesa_compile_error(ctx, GL_INVALID_OPERATION, "Recursive glBegin"); +} + + +static void GLAPIENTRY +_save_PrimitiveRestartNV(void) { GLenum curPrim; - GET_CURRENT_CONTEXT( ctx ); + GET_CURRENT_CONTEXT(ctx); curPrim = ctx->Driver.CurrentSavePrimitive; @@ -920,96 +995,102 @@ static void GLAPIENTRY _save_PrimitiveRestartNV( void ) * maintained in ctx->ListState, active when the list is known or * suspected to be outside any begin/end primitive. */ -static void GLAPIENTRY _save_OBE_Rectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 ) +static void GLAPIENTRY +_save_OBE_Rectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2) { GET_CURRENT_CONTEXT(ctx); - vbo_save_NotifyBegin( ctx, GL_QUADS | VBO_SAVE_PRIM_WEAK ); - CALL_Vertex2f(GET_DISPATCH(), ( x1, y1 )); - CALL_Vertex2f(GET_DISPATCH(), ( x2, y1 )); - CALL_Vertex2f(GET_DISPATCH(), ( x2, y2 )); - CALL_Vertex2f(GET_DISPATCH(), ( x1, y2 )); + vbo_save_NotifyBegin(ctx, GL_QUADS | VBO_SAVE_PRIM_WEAK); + CALL_Vertex2f(GET_DISPATCH(), (x1, y1)); + CALL_Vertex2f(GET_DISPATCH(), (x2, y1)); + CALL_Vertex2f(GET_DISPATCH(), (x2, y2)); + CALL_Vertex2f(GET_DISPATCH(), (x1, y2)); CALL_End(GET_DISPATCH(), ()); } -static void GLAPIENTRY _save_OBE_DrawArrays(GLenum mode, GLint start, GLsizei count) +static void GLAPIENTRY +_save_OBE_DrawArrays(GLenum mode, GLint start, GLsizei count) { GET_CURRENT_CONTEXT(ctx); GLint i; - if (!_mesa_validate_DrawArrays( ctx, mode, start, count )) + if (!_mesa_validate_DrawArrays(ctx, mode, start, count)) return; - _ae_map_vbos( ctx ); + _ae_map_vbos(ctx); - vbo_save_NotifyBegin( ctx, mode | VBO_SAVE_PRIM_WEAK | VBO_SAVE_PRIM_NO_CURRENT_UPDATE); + vbo_save_NotifyBegin(ctx, (mode | VBO_SAVE_PRIM_WEAK + | VBO_SAVE_PRIM_NO_CURRENT_UPDATE)); for (i = 0; i < count; i++) - CALL_ArrayElement(GET_DISPATCH(), (start + i)); + CALL_ArrayElement(GET_DISPATCH(), (start + i)); CALL_End(GET_DISPATCH(), ()); - _ae_unmap_vbos( ctx ); + _ae_unmap_vbos(ctx); } + /* Could do better by copying the arrays and element list intact and * then emitting an indexed prim at runtime. */ -static void GLAPIENTRY _save_OBE_DrawElements(GLenum mode, GLsizei count, GLenum type, - const GLvoid *indices) +static void GLAPIENTRY +_save_OBE_DrawElements(GLenum mode, GLsizei count, GLenum type, + const GLvoid * indices) { GET_CURRENT_CONTEXT(ctx); GLint i; - if (!_mesa_validate_DrawElements( ctx, mode, count, type, indices, 0 )) + if (!_mesa_validate_DrawElements(ctx, mode, count, type, indices, 0)) return; - _ae_map_vbos( ctx ); + _ae_map_vbos(ctx); if (_mesa_is_bufferobj(ctx->Array.ElementArrayBufferObj)) - indices = ADD_POINTERS(ctx->Array.ElementArrayBufferObj->Pointer, indices); + indices = + ADD_POINTERS(ctx->Array.ElementArrayBufferObj->Pointer, indices); - vbo_save_NotifyBegin( ctx, mode | VBO_SAVE_PRIM_WEAK | VBO_SAVE_PRIM_NO_CURRENT_UPDATE ); + vbo_save_NotifyBegin(ctx, (mode | VBO_SAVE_PRIM_WEAK | + VBO_SAVE_PRIM_NO_CURRENT_UPDATE)); switch (type) { case GL_UNSIGNED_BYTE: - for (i = 0 ; i < count ; i++) - CALL_ArrayElement(GET_DISPATCH(), ( ((GLubyte *)indices)[i] )); + for (i = 0; i < count; i++) + CALL_ArrayElement(GET_DISPATCH(), (((GLubyte *) indices)[i])); break; case GL_UNSIGNED_SHORT: - for (i = 0 ; i < count ; i++) - CALL_ArrayElement(GET_DISPATCH(), ( ((GLushort *)indices)[i] )); + for (i = 0; i < count; i++) + CALL_ArrayElement(GET_DISPATCH(), (((GLushort *) indices)[i])); break; case GL_UNSIGNED_INT: - for (i = 0 ; i < count ; i++) - CALL_ArrayElement(GET_DISPATCH(), ( ((GLuint *)indices)[i] )); + for (i = 0; i < count; i++) + CALL_ArrayElement(GET_DISPATCH(), (((GLuint *) indices)[i])); break; default: - _mesa_error( ctx, GL_INVALID_ENUM, "glDrawElements(type)" ); + _mesa_error(ctx, GL_INVALID_ENUM, "glDrawElements(type)"); break; } CALL_End(GET_DISPATCH(), ()); - _ae_unmap_vbos( ctx ); + _ae_unmap_vbos(ctx); } -static void GLAPIENTRY _save_OBE_DrawRangeElements(GLenum mode, - GLuint start, GLuint end, - GLsizei count, GLenum type, - const GLvoid *indices) + +static void GLAPIENTRY +_save_OBE_DrawRangeElements(GLenum mode, GLuint start, GLuint end, + GLsizei count, GLenum type, + const GLvoid * indices) { GET_CURRENT_CONTEXT(ctx); - if (_mesa_validate_DrawRangeElements( ctx, mode, - start, end, - count, type, indices, 0 )) - _save_OBE_DrawElements( mode, count, type, indices ); + if (_mesa_validate_DrawRangeElements(ctx, mode, + start, end, count, type, indices, 0)) { + _save_OBE_DrawElements(mode, count, type, indices); + } } - - - -static void _save_vtxfmt_init( struct gl_context *ctx ) +static void +_save_vtxfmt_init(struct gl_context *ctx) { struct vbo_save_context *save = &vbo_context(ctx)->save; GLvertexformat *vfmt = &save->vtxfmt; @@ -1072,7 +1153,7 @@ static void _save_vtxfmt_init( struct gl_context *ctx ) vfmt->VertexAttrib3fvNV = _save_VertexAttrib3fvNV; vfmt->VertexAttrib4fNV = _save_VertexAttrib4fNV; vfmt->VertexAttrib4fvNV = _save_VertexAttrib4fvNV; - + /* integer-valued */ vfmt->VertexAttribI1i = _save_VertexAttribI1i; vfmt->VertexAttribI2i = _save_VertexAttribI2i; @@ -1092,8 +1173,8 @@ static void _save_vtxfmt_init( struct gl_context *ctx ) vfmt->VertexAttribI4uiv = _save_VertexAttribI4uiv; /* This will all require us to fallback to saving the list as opcodes: - */ - _MESA_INIT_DLIST_VTXFMT(vfmt, _save_); /* inside begin/end */ + */ + _MESA_INIT_DLIST_VTXFMT(vfmt, _save_); /* inside begin/end */ _MESA_INIT_EVAL_VTXFMT(vfmt, _save_); @@ -1113,7 +1194,8 @@ static void _save_vtxfmt_init( struct gl_context *ctx ) } -void vbo_save_SaveFlushVertices( struct gl_context *ctx ) +void +vbo_save_SaveFlushVertices(struct gl_context *ctx) { struct vbo_save_context *save = &vbo_context(ctx)->save; @@ -1123,36 +1205,40 @@ void vbo_save_SaveFlushVertices( struct gl_context *ctx ) ctx->Driver.CurrentSavePrimitive <= GL_POLYGON) return; - if (save->vert_count || - save->prim_count) - _save_compile_vertex_list( ctx ); - - _save_copy_to_current( ctx ); - _save_reset_vertex( ctx ); - _save_reset_counters( ctx ); + if (save->vert_count || save->prim_count) + _save_compile_vertex_list(ctx); + + _save_copy_to_current(ctx); + _save_reset_vertex(ctx); + _save_reset_counters(ctx); ctx->Driver.SaveNeedFlush = 0; } -void vbo_save_NewList( struct gl_context *ctx, GLuint list, GLenum mode ) + +void +vbo_save_NewList(struct gl_context *ctx, GLuint list, GLenum mode) { struct vbo_save_context *save = &vbo_context(ctx)->save; - (void) list; (void) mode; + (void) list; + (void) mode; if (!save->prim_store) - save->prim_store = alloc_prim_store( ctx ); + save->prim_store = alloc_prim_store(ctx); - if (!save->vertex_store) - save->vertex_store = alloc_vertex_store( ctx ); - - save->buffer_ptr = map_vertex_store( ctx, save->vertex_store ); - - _save_reset_vertex( ctx ); - _save_reset_counters( ctx ); + if (!save->vertex_store) + save->vertex_store = alloc_vertex_store(ctx); + + save->buffer_ptr = map_vertex_store(ctx, save->vertex_store); + + _save_reset_vertex(ctx); + _save_reset_counters(ctx); ctx->Driver.SaveNeedFlush = 0; } -void vbo_save_EndList( struct gl_context *ctx ) + +void +vbo_save_EndList(struct gl_context *ctx) { struct vbo_save_context *save = &vbo_context(ctx)->save; @@ -1164,38 +1250,41 @@ void vbo_save_EndList( struct gl_context *ctx ) GLint i = save->prim_count - 1; ctx->Driver.CurrentSavePrimitive = PRIM_OUTSIDE_BEGIN_END; save->prim[i].end = 0; - save->prim[i].count = (save->vert_count - - save->prim[i].start); + save->prim[i].count = (save->vert_count - save->prim[i].start); } /* Make sure this vertex list gets replayed by the "loopback" * mechanism: */ save->dangling_attr_ref = 1; - vbo_save_SaveFlushVertices( ctx ); + vbo_save_SaveFlushVertices(ctx); /* Swap out this vertex format while outside begin/end. Any color, * etc. received between here and the next begin will be compiled * as opcodes. - */ - _mesa_install_save_vtxfmt( ctx, &ctx->ListState.ListVtxfmt ); + */ + _mesa_install_save_vtxfmt(ctx, &ctx->ListState.ListVtxfmt); } - unmap_vertex_store( ctx, save->vertex_store ); + unmap_vertex_store(ctx, save->vertex_store); assert(save->vertex_size == 0); } - -void vbo_save_BeginCallList( struct gl_context *ctx, struct gl_display_list *dlist ) + + +void +vbo_save_BeginCallList(struct gl_context *ctx, struct gl_display_list *dlist) { struct vbo_save_context *save = &vbo_context(ctx)->save; save->replay_flags |= dlist->Flags; } -void vbo_save_EndCallList( struct gl_context *ctx ) + +void +vbo_save_EndCallList(struct gl_context *ctx) { struct vbo_save_context *save = &vbo_context(ctx)->save; - + if (ctx->ListState.CallDepth == 1) { /* This is correct: want to keep only the VBO_SAVE_FALLBACK * flag, if it is set: @@ -1205,16 +1294,17 @@ void vbo_save_EndCallList( struct gl_context *ctx ) } -static void vbo_destroy_vertex_list( struct gl_context *ctx, void *data ) +static void +vbo_destroy_vertex_list(struct gl_context *ctx, void *data) { - struct vbo_save_vertex_list *node = (struct vbo_save_vertex_list *)data; + struct vbo_save_vertex_list *node = (struct vbo_save_vertex_list *) data; (void) ctx; - if ( --node->vertex_store->refcount == 0 ) - free_vertex_store( ctx, node->vertex_store ); + if (--node->vertex_store->refcount == 0) + free_vertex_store(ctx, node->vertex_store); - if ( --node->prim_store->refcount == 0 ) - FREE( node->prim_store ); + if (--node->prim_store->refcount == 0) + FREE(node->prim_store); if (node->current_data) { FREE(node->current_data); @@ -1223,32 +1313,32 @@ static void vbo_destroy_vertex_list( struct gl_context *ctx, void *data ) } -static void vbo_print_vertex_list( struct gl_context *ctx, void *data ) +static void +vbo_print_vertex_list(struct gl_context *ctx, void *data) { - struct vbo_save_vertex_list *node = (struct vbo_save_vertex_list *)data; + struct vbo_save_vertex_list *node = (struct vbo_save_vertex_list *) data; GLuint i; (void) ctx; printf("VBO-VERTEX-LIST, %u vertices %d primitives, %d vertsize\n", - node->count, - node->prim_count, - node->vertex_size); + node->count, node->prim_count, node->vertex_size); - for (i = 0 ; i < node->prim_count ; i++) { + for (i = 0; i < node->prim_count; i++) { struct _mesa_prim *prim = &node->prim[i]; _mesa_debug(NULL, " prim %d: %s%s %d..%d %s %s\n", - i, - _mesa_lookup_prim_by_nr(prim->mode), - prim->weak ? " (weak)" : "", - prim->start, - prim->start + prim->count, - (prim->begin) ? "BEGIN" : "(wrap)", - (prim->end) ? "END" : "(wrap)"); + i, + _mesa_lookup_prim_by_nr(prim->mode), + prim->weak ? " (weak)" : "", + prim->start, + prim->start + prim->count, + (prim->begin) ? "BEGIN" : "(wrap)", + (prim->end) ? "END" : "(wrap)"); } } -static void _save_current_init( struct gl_context *ctx ) +static void +_save_current_init(struct gl_context *ctx) { struct vbo_save_context *save = &vbo_context(ctx)->save; GLint i; @@ -1268,25 +1358,27 @@ static void _save_current_init( struct gl_context *ctx ) } } + /** * Initialize the display list compiler */ -void vbo_save_api_init( struct vbo_save_context *save ) +void +vbo_save_api_init(struct vbo_save_context *save) { struct gl_context *ctx = save->ctx; GLuint i; save->opcode_vertex_list = - _mesa_dlist_alloc_opcode( ctx, - sizeof(struct vbo_save_vertex_list), - vbo_save_playback_vertex_list, - vbo_destroy_vertex_list, - vbo_print_vertex_list ); + _mesa_dlist_alloc_opcode(ctx, + sizeof(struct vbo_save_vertex_list), + vbo_save_playback_vertex_list, + vbo_destroy_vertex_list, + vbo_print_vertex_list); ctx->Driver.NotifySaveBegin = vbo_save_NotifyBegin; - _save_vtxfmt_init( ctx ); - _save_current_init( ctx ); + _save_vtxfmt_init(ctx); + _save_current_init(ctx); /* These will actually get set again when binding/drawing */ for (i = 0; i < VBO_ATTRIB_MAX; i++) @@ -1300,9 +1392,11 @@ void vbo_save_api_init( struct vbo_save_context *save ) ctx->ListState.ListVtxfmt.DrawElements = _save_OBE_DrawElements; ctx->ListState.ListVtxfmt.DrawRangeElements = _save_OBE_DrawRangeElements; /* loops back into _save_OBE_DrawElements */ - ctx->ListState.ListVtxfmt.MultiDrawElementsEXT = _mesa_noop_MultiDrawElements; - ctx->ListState.ListVtxfmt.MultiDrawElementsBaseVertex = _mesa_noop_MultiDrawElementsBaseVertex; - _mesa_install_save_vtxfmt( ctx, &ctx->ListState.ListVtxfmt ); + ctx->ListState.ListVtxfmt.MultiDrawElementsEXT = + _mesa_noop_MultiDrawElements; + ctx->ListState.ListVtxfmt.MultiDrawElementsBaseVertex = + _mesa_noop_MultiDrawElementsBaseVertex; + _mesa_install_save_vtxfmt(ctx, &ctx->ListState.ListVtxfmt); } From fe3a3434412482ff1b0a113e1008fd7dd7b42359 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 8 Jun 2011 10:50:18 -0400 Subject: [PATCH 112/145] r600g: fix mixup in GPR resource reg setup GLOBAL_GPR regs should be 0. Need to set the number of temp regs in SQ_GPR_RESOURCE_MGMT_1. Signed-off-by: Alex Deucher --- src/gallium/drivers/r600/evergreen_state.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index 9114734b406..9ebfe54c76d 100644 --- a/src/gallium/drivers/r600/evergreen_state.c +++ b/src/gallium/drivers/r600/evergreen_state.c @@ -1023,7 +1023,10 @@ static void cayman_init_config(struct r600_pipe_context *rctx) tmp |= S_008C00_EXPORT_SRC_C(1); r600_pipe_state_add_reg(rstate, R_008C00_SQ_CONFIG, tmp, 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, (4 << 28), 0xFFFFFFFF, NULL); + /* always set the temp clauses */ + r600_pipe_state_add_reg(rstate, R_008C04_SQ_GPR_RESOURCE_MGMT_1, S_008C04_NUM_CLAUSE_TEMP_GPRS(4), 0xFFFFFFFF, NULL); + r600_pipe_state_add_reg(rstate, R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, 0, 0xFFFFFFFF, NULL); + r600_pipe_state_add_reg(rstate, R_008C14_SQ_GLOBAL_GPR_RESOURCE_MGMT_2, 0, 0xFFFFFFFF, NULL); r600_pipe_state_add_reg(rstate, R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, (1 << 8), 0xFFFFFFFF, NULL); r600_pipe_state_add_reg(rstate, R_028A48_PA_SC_MODE_CNTL_0, 0x0, 0xFFFFFFFF, NULL); @@ -1377,9 +1380,13 @@ void evergreen_init_config(struct r600_pipe_context *rctx) /* enable dynamic GPR resource management */ if (r600_get_minor_version(rctx->radeon) >= 7) { - r600_pipe_state_add_reg(rstate, R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, (4 << 28), 0xFFFFFFFF, NULL); + /* always set temp clauses */ + r600_pipe_state_add_reg(rstate, R_008C04_SQ_GPR_RESOURCE_MGMT_1, + S_008C04_NUM_CLAUSE_TEMP_GPRS(num_temp_gprs), 0xFFFFFFFF, NULL); + r600_pipe_state_add_reg(rstate, R_008C10_SQ_GLOBAL_GPR_RESOURCE_MGMT_1, 0, 0xFFFFFFFF, NULL); + r600_pipe_state_add_reg(rstate, R_008C14_SQ_GLOBAL_GPR_RESOURCE_MGMT_2, 0, 0xFFFFFFFF, NULL); r600_pipe_state_add_reg(rstate, R_008D8C_SQ_DYN_GPR_CNTL_PS_FLUSH_REQ, (1 << 8), 0xFFFFFFFF, NULL); - r600_pipe_state_add_reg(rstate, R_028838_SQ_DYN_GPR_RESOURCE_LIMIT_1, + r600_pipe_state_add_reg(rstate, R_028838_SQ_DYN_GPR_RESOURCE_LIMIT_1, S_028838_PS_GPRS(0x1e) | S_028838_VS_GPRS(0x1e) | S_028838_GS_GPRS(0x1e) | From fed482f5e30ea6b230ed20982551b340570dc3e9 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 8 Jun 2011 22:04:16 +0800 Subject: [PATCH 113/145] mesa: fix GLES remap table setup again Generate different glapidispatch.h's for GL and GLES. For GLES, we want a local remap table. This reverts commit 5af46e836073d2112b147b524e441bdb808cc128. The commit will break GL remap table setup when main/glapidispatch.h is regenerated. --- src/mapi/glapi/gen/gl_table.py | 22 +++++++++++++--------- src/mesa/main/es_generator.py | 5 +++-- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/src/mapi/glapi/gen/gl_table.py b/src/mapi/glapi/gen/gl_table.py index c3cc6164f2c..bd3f3eb71c7 100644 --- a/src/mapi/glapi/gen/gl_table.py +++ b/src/mapi/glapi/gen/gl_table.py @@ -149,14 +149,18 @@ class PrintRemapTable(gl_XML.gl_print_base): print '#else /* !_GLAPI_USE_REMAP_TABLE */' print '' - print '#define driDispatchRemapTable_size %u' % (count) - print 'extern int driDispatchRemapTable[ driDispatchRemapTable_size ];' - print '' - print '#if FEATURE_remap_table' - print '#define driDispatchRemapTable remap_table' - print 'static int remap_table[driDispatchRemapTable_size];' - print '#endif' - print '' + if self.es: + remap_table = "esLocalRemapTable" + + print '#define %s_size %u' % (remap_table, count) + print 'static int %s[ %s_size ];' % (remap_table, remap_table) + print '' + else: + remap_table = "driDispatchRemapTable" + + print '#define %s_size %u' % (remap_table, count) + print 'extern int %s[ %s_size ];' % (remap_table, remap_table) + print '' for f, index in functions: print '#define %s_remap_index %u' % (f.name, index) @@ -164,7 +168,7 @@ class PrintRemapTable(gl_XML.gl_print_base): print '' for f, index in functions: - print '#define _gloffset_%s driDispatchRemapTable[%s_remap_index]' % (f.name, f.name) + print '#define _gloffset_%s %s[%s_remap_index]' % (f.name, remap_table, f.name) print '' print '#endif /* _GLAPI_USE_REMAP_TABLE */' diff --git a/src/mesa/main/es_generator.py b/src/mesa/main/es_generator.py index 87d8bd31682..5b49416782d 100644 --- a/src/mesa/main/es_generator.py +++ b/src/mesa/main/es_generator.py @@ -680,6 +680,7 @@ print """ #if FEATURE_remap_table +/* define esLocalRemapTable */ /* cannot include main/dispatch.h here */ #define _GLAPI_USE_REMAP_TABLE #include "%sapi/main/glapidispatch.h" @@ -701,7 +702,7 @@ init_remap_table(void) return; } - for (i = 0; i < driDispatchRemapTable_size; i++) { + for (i = 0; i < esLocalRemapTable_size; i++) { GLint offset; const char *spec; @@ -710,7 +711,7 @@ init_remap_table(void) spec = _mesa_function_pool + remap[i].pool_index; offset = _mesa_map_function_spec(spec); - remap_table[i] = offset; + esLocalRemapTable[i] = offset; } initialized = GL_TRUE; _glthread_UNLOCK_MUTEX(mutex); From 0dc45374f2c62e33680f3a5729a18ba9ee40cd4d Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 8 Jun 2011 21:51:41 +0800 Subject: [PATCH 114/145] mesa: fix function remapping for dlist glapidispatch.h should not be included directly. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=36282 --- src/mesa/main/dlist.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index c23593bc30d..958f5a69739 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -49,7 +49,6 @@ #include "eval.h" #include "framebuffer.h" #include "glapi/glapi.h" -#include "glapidispatch.h" #include "hash.h" #include "image.h" #include "light.h" From 4bb748b609288205ddea750550185d7642025bff Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 8 Jun 2011 22:24:32 +0800 Subject: [PATCH 115/145] mesa: merge glapidispatch.h into dispatch.h glapidispatch.h was located in glapi and shared with mesa core. Because the way it was shared, mesa core must include it indirectly via main/dispatch.h. Now that it is no longer needed by glapi and is located in core mesa, merging it with main/dispatch.h to avoid wrong uses. --- src/glx/apple/apple_glapi.c | 4 +- src/mapi/glapi/gen-es/Makefile | 4 +- src/mapi/glapi/gen/Makefile | 4 +- src/mapi/glapi/gen/gl_table.py | 19 +- src/mesa/SConscript | 4 +- src/mesa/main/dispatch.h | 12245 +++++++++++++++++++++++++++++- src/mesa/main/es_generator.py | 7 +- src/mesa/main/glapidispatch.h | 12268 ------------------------------- 8 files changed, 12257 insertions(+), 12298 deletions(-) delete mode 100644 src/mesa/main/glapidispatch.h diff --git a/src/glx/apple/apple_glapi.c b/src/glx/apple/apple_glapi.c index 7b2d7770442..99570509888 100644 --- a/src/glx/apple/apple_glapi.c +++ b/src/glx/apple/apple_glapi.c @@ -40,7 +40,7 @@ #include "glapi.h" #include "glapitable.h" -#include "glapidispatch.h" +#include "main/dispatch.h" #include "apple_glx.h" #include "apple_xgl_api.h" @@ -83,7 +83,7 @@ void apple_xgl_init_direct(void) { assert(__ogl_framework_api); /* to update: - * for f in $(grep SET_ ../../mesa/main/glapidispatch.h | grep INLINE | sed 's:^.*\(SET_[^(]*\)(.*$:\1:' | sort -u); do grep -q "$f(" apple_glapi.c || echo $f ; done | sed 's:SET_\(.*\)$: SET_\1(__ogl_framework_api, dlsym(handle, "gl\1"))\;:' + * for f in $(grep SET_ ../../mesa/main/dispatch.h | grep INLINE | sed 's:^.*\(SET_[^(]*\)(.*$:\1:' | sort -u); do grep -q "$f(" apple_glapi.c || echo $f ; done | sed 's:SET_\(.*\)$: SET_\1(__ogl_framework_api, dlsym(handle, "gl\1"))\;:' */ SET_Accum(__ogl_framework_api, dlsym(handle, "glAccum")); diff --git a/src/mapi/glapi/gen-es/Makefile b/src/mapi/glapi/gen-es/Makefile index 7a5bb35ca11..bf66ec037cf 100644 --- a/src/mapi/glapi/gen-es/Makefile +++ b/src/mapi/glapi/gen-es/Makefile @@ -5,7 +5,7 @@ include $(TOP)/configs/current OUTPUTS := \ glapi_mapi_tmp.h \ - main/glapidispatch.h \ + main/dispatch.h \ main/remap_helper.h COMMON = gl_and_es_API.xml gl_XML.py glX_XML.py license.py typeexpr.py @@ -57,7 +57,7 @@ endef $(PYTHON2) $(PYTHON_FLAGS) $< \ --printer $(PRINTER) --mode lib $(GLAPI)/gl_and_es_API.xml > $@ -%/main/glapidispatch.h: $(GLAPI)/gl_table.py $(COMMON) +%/main/dispatch.h: $(GLAPI)/gl_table.py $(COMMON) $(call gen-glapi,-c -m remap_table) %/main/remap_helper.h: $(GLAPI)/remap_helper.py $(COMMON) diff --git a/src/mapi/glapi/gen/Makefile b/src/mapi/glapi/gen/Makefile index c3829dc005e..7415bdc5267 100644 --- a/src/mapi/glapi/gen/Makefile +++ b/src/mapi/glapi/gen/Makefile @@ -27,7 +27,7 @@ MESA_OUTPUTS = \ $(MESA_GLAPI_OUTPUTS) \ $(MESA_GLAPI_ASM_OUTPUTS) \ $(MESA_DIR)/main/enums.c \ - $(MESA_DIR)/main/glapidispatch.h \ + $(MESA_DIR)/main/dispatch.h \ $(MESA_DIR)/main/remap_helper.h \ $(MESA_GLX_DIR)/indirect.c \ $(MESA_GLX_DIR)/indirect.h \ @@ -180,7 +180,7 @@ $(MESA_DIR)/main/enums.c: gl_enums.py $(COMMON) $(ES_API) -f $(MESA_GLAPI_DIR)/gen-es/es1_API.xml \ -f $(MESA_GLAPI_DIR)/gen-es/es2_API.xml > $@ -$(MESA_DIR)/main/glapidispatch.h: gl_table.py $(COMMON) +$(MESA_DIR)/main/dispatch.h: gl_table.py $(COMMON) $(PYTHON2) $(PYTHON_FLAGS) $< -m remap_table > $@ $(MESA_DIR)/main/remap_helper.h: remap_helper.py $(COMMON) diff --git a/src/mapi/glapi/gen/gl_table.py b/src/mapi/glapi/gen/gl_table.py index bd3f3eb71c7..05979e3813f 100644 --- a/src/mapi/glapi/gen/gl_table.py +++ b/src/mapi/glapi/gen/gl_table.py @@ -73,7 +73,7 @@ class PrintRemapTable(gl_XML.gl_print_base): gl_XML.gl_print_base.__init__(self) self.es = es - self.header_tag = '_GLAPI_DISPATCH_H_' + self.header_tag = '_DISPATCH_H_' self.name = "gl_table.py (from Mesa)" self.license = license.bsd_license_template % ("(C) Copyright IBM Corporation 2005", "IBM") return @@ -81,10 +81,8 @@ class PrintRemapTable(gl_XML.gl_print_base): def printRealHeader(self): print """ -/* this file should not be included directly in mesa */ - /** - * \\file glapidispatch.h + * \\file main/dispatch.h * Macros for handling GL dispatch tables. * * For each known GL function, there are 3 macros in this file. The first @@ -93,8 +91,9 @@ class PrintRemapTable(gl_XML.gl_print_base): * can SET_FuncName, are used to get and set the dispatch pointer for the * named function in the specified dispatch table. */ + +#include "main/mfeatures.h" """ - return def printBody(self, api): @@ -139,14 +138,14 @@ class PrintRemapTable(gl_XML.gl_print_base): print '#define _gloffset_%s %d' % (f.name, f.offset) print '' - print '#if !defined(_GLAPI_USE_REMAP_TABLE)' + print '#if !FEATURE_remap_table' print '' for f, index in functions: print '#define _gloffset_%s %d' % (f.name, f.offset) print '' - print '#else /* !_GLAPI_USE_REMAP_TABLE */' + print '#else /* !FEATURE_remap_table */' print '' if self.es: @@ -171,7 +170,7 @@ class PrintRemapTable(gl_XML.gl_print_base): print '#define _gloffset_%s %s[%s_remap_index]' % (f.name, remap_table, f.name) print '' - print '#endif /* _GLAPI_USE_REMAP_TABLE */' + print '#endif /* !FEATURE_remap_table */' print '' for f, index in abi_functions + functions: @@ -200,12 +199,12 @@ class PrintRemapTable(gl_XML.gl_print_base): print '#define SET_%s(disp, fn) SET_%s(disp, fn)' % (name, f.name) print '' - print '#if defined(_GLAPI_USE_REMAP_TABLE)' + print '#if FEATURE_remap_table' for f in alias_functions: for name in f.entry_points: if name != f.name: print '#define %s_remap_index %s_remap_index' % (name, f.name) - print '#endif /* defined(_GLAPI_USE_REMAP_TABLE) */' + print '#endif /* FEATURE_remap_table */' print '' return diff --git a/src/mesa/SConscript b/src/mesa/SConscript index 2d8a17727c5..fdb4d5a5814 100644 --- a/src/mesa/SConscript +++ b/src/mesa/SConscript @@ -346,7 +346,7 @@ if env['gles']: GLAPI = '#src/mapi/glapi/' gles_headers = [] gles_headers += env.CodeGenerate( - target = 'es1api/main/glapidispatch.h', + target = 'es1api/main/dispatch.h', script = GLAPI + 'gen/gl_table.py', source = GLAPI + 'gen-es/es1_API.xml', command = python_cmd + ' $SCRIPT -c -m remap_table -f $SOURCE > $TARGET', @@ -358,7 +358,7 @@ if env['gles']: command = python_cmd + ' $SCRIPT -f $SOURCE > $TARGET', ) gles_headers += env.CodeGenerate( - target = 'es2api/main/glapidispatch.h', + target = 'es2api/main/dispatch.h', script = GLAPI + 'gen/gl_table.py', source = GLAPI + 'gen-es/es2_API.xml', command = python_cmd + ' $SCRIPT -c -m remap_table -f $SOURCE > $TARGET', diff --git a/src/mesa/main/dispatch.h b/src/mesa/main/dispatch.h index a597959cf8e..3f558e1ba77 100644 --- a/src/mesa/main/dispatch.h +++ b/src/mesa/main/dispatch.h @@ -1,3 +1,5 @@ +/* DO NOT EDIT - This file generated automatically by gl_table.py (from Mesa) script */ + /* * (C) Copyright IBM Corporation 2005 * All Rights Reserved. @@ -23,15 +25,12244 @@ * SOFTWARE. */ -#ifndef _DISPATCH_H -#define _DISPATCH_H +#if !defined( _DISPATCH_H_ ) +# define _DISPATCH_H_ + + +/** + * \file main/dispatch.h + * Macros for handling GL dispatch tables. + * + * For each known GL function, there are 3 macros in this file. The first + * macro is named CALL_FuncName and is used to call that GL function using + * the specified dispatch table. The other 2 macros, called GET_FuncName + * can SET_FuncName, are used to get and set the dispatch pointer for the + * named function in the specified dispatch table. + */ #include "main/mfeatures.h" -#if FEATURE_remap_table -#define _GLAPI_USE_REMAP_TABLE -#endif +#define CALL_by_offset(disp, cast, offset, parameters) \ + (*(cast (GET_by_offset(disp, offset)))) parameters +#define GET_by_offset(disp, offset) \ + (offset >= 0) ? (((_glapi_proc *)(disp))[offset]) : NULL +#define SET_by_offset(disp, offset, fn) \ + do { \ + if ( (offset) < 0 ) { \ + /* fprintf( stderr, "[%s:%u] SET_by_offset(%p, %d, %s)!\n", */ \ + /* __func__, __LINE__, disp, offset, # fn); */ \ + /* abort(); */ \ + } \ + else { \ + ( (_glapi_proc *) (disp) )[offset] = (_glapi_proc) fn; \ + } \ + } while(0) -#include "main/glapidispatch.h" +/* total number of offsets below */ +#define _gloffset_COUNT 929 -#endif /* _DISPATCH_H */ +#define _gloffset_NewList 0 +#define _gloffset_EndList 1 +#define _gloffset_CallList 2 +#define _gloffset_CallLists 3 +#define _gloffset_DeleteLists 4 +#define _gloffset_GenLists 5 +#define _gloffset_ListBase 6 +#define _gloffset_Begin 7 +#define _gloffset_Bitmap 8 +#define _gloffset_Color3b 9 +#define _gloffset_Color3bv 10 +#define _gloffset_Color3d 11 +#define _gloffset_Color3dv 12 +#define _gloffset_Color3f 13 +#define _gloffset_Color3fv 14 +#define _gloffset_Color3i 15 +#define _gloffset_Color3iv 16 +#define _gloffset_Color3s 17 +#define _gloffset_Color3sv 18 +#define _gloffset_Color3ub 19 +#define _gloffset_Color3ubv 20 +#define _gloffset_Color3ui 21 +#define _gloffset_Color3uiv 22 +#define _gloffset_Color3us 23 +#define _gloffset_Color3usv 24 +#define _gloffset_Color4b 25 +#define _gloffset_Color4bv 26 +#define _gloffset_Color4d 27 +#define _gloffset_Color4dv 28 +#define _gloffset_Color4f 29 +#define _gloffset_Color4fv 30 +#define _gloffset_Color4i 31 +#define _gloffset_Color4iv 32 +#define _gloffset_Color4s 33 +#define _gloffset_Color4sv 34 +#define _gloffset_Color4ub 35 +#define _gloffset_Color4ubv 36 +#define _gloffset_Color4ui 37 +#define _gloffset_Color4uiv 38 +#define _gloffset_Color4us 39 +#define _gloffset_Color4usv 40 +#define _gloffset_EdgeFlag 41 +#define _gloffset_EdgeFlagv 42 +#define _gloffset_End 43 +#define _gloffset_Indexd 44 +#define _gloffset_Indexdv 45 +#define _gloffset_Indexf 46 +#define _gloffset_Indexfv 47 +#define _gloffset_Indexi 48 +#define _gloffset_Indexiv 49 +#define _gloffset_Indexs 50 +#define _gloffset_Indexsv 51 +#define _gloffset_Normal3b 52 +#define _gloffset_Normal3bv 53 +#define _gloffset_Normal3d 54 +#define _gloffset_Normal3dv 55 +#define _gloffset_Normal3f 56 +#define _gloffset_Normal3fv 57 +#define _gloffset_Normal3i 58 +#define _gloffset_Normal3iv 59 +#define _gloffset_Normal3s 60 +#define _gloffset_Normal3sv 61 +#define _gloffset_RasterPos2d 62 +#define _gloffset_RasterPos2dv 63 +#define _gloffset_RasterPos2f 64 +#define _gloffset_RasterPos2fv 65 +#define _gloffset_RasterPos2i 66 +#define _gloffset_RasterPos2iv 67 +#define _gloffset_RasterPos2s 68 +#define _gloffset_RasterPos2sv 69 +#define _gloffset_RasterPos3d 70 +#define _gloffset_RasterPos3dv 71 +#define _gloffset_RasterPos3f 72 +#define _gloffset_RasterPos3fv 73 +#define _gloffset_RasterPos3i 74 +#define _gloffset_RasterPos3iv 75 +#define _gloffset_RasterPos3s 76 +#define _gloffset_RasterPos3sv 77 +#define _gloffset_RasterPos4d 78 +#define _gloffset_RasterPos4dv 79 +#define _gloffset_RasterPos4f 80 +#define _gloffset_RasterPos4fv 81 +#define _gloffset_RasterPos4i 82 +#define _gloffset_RasterPos4iv 83 +#define _gloffset_RasterPos4s 84 +#define _gloffset_RasterPos4sv 85 +#define _gloffset_Rectd 86 +#define _gloffset_Rectdv 87 +#define _gloffset_Rectf 88 +#define _gloffset_Rectfv 89 +#define _gloffset_Recti 90 +#define _gloffset_Rectiv 91 +#define _gloffset_Rects 92 +#define _gloffset_Rectsv 93 +#define _gloffset_TexCoord1d 94 +#define _gloffset_TexCoord1dv 95 +#define _gloffset_TexCoord1f 96 +#define _gloffset_TexCoord1fv 97 +#define _gloffset_TexCoord1i 98 +#define _gloffset_TexCoord1iv 99 +#define _gloffset_TexCoord1s 100 +#define _gloffset_TexCoord1sv 101 +#define _gloffset_TexCoord2d 102 +#define _gloffset_TexCoord2dv 103 +#define _gloffset_TexCoord2f 104 +#define _gloffset_TexCoord2fv 105 +#define _gloffset_TexCoord2i 106 +#define _gloffset_TexCoord2iv 107 +#define _gloffset_TexCoord2s 108 +#define _gloffset_TexCoord2sv 109 +#define _gloffset_TexCoord3d 110 +#define _gloffset_TexCoord3dv 111 +#define _gloffset_TexCoord3f 112 +#define _gloffset_TexCoord3fv 113 +#define _gloffset_TexCoord3i 114 +#define _gloffset_TexCoord3iv 115 +#define _gloffset_TexCoord3s 116 +#define _gloffset_TexCoord3sv 117 +#define _gloffset_TexCoord4d 118 +#define _gloffset_TexCoord4dv 119 +#define _gloffset_TexCoord4f 120 +#define _gloffset_TexCoord4fv 121 +#define _gloffset_TexCoord4i 122 +#define _gloffset_TexCoord4iv 123 +#define _gloffset_TexCoord4s 124 +#define _gloffset_TexCoord4sv 125 +#define _gloffset_Vertex2d 126 +#define _gloffset_Vertex2dv 127 +#define _gloffset_Vertex2f 128 +#define _gloffset_Vertex2fv 129 +#define _gloffset_Vertex2i 130 +#define _gloffset_Vertex2iv 131 +#define _gloffset_Vertex2s 132 +#define _gloffset_Vertex2sv 133 +#define _gloffset_Vertex3d 134 +#define _gloffset_Vertex3dv 135 +#define _gloffset_Vertex3f 136 +#define _gloffset_Vertex3fv 137 +#define _gloffset_Vertex3i 138 +#define _gloffset_Vertex3iv 139 +#define _gloffset_Vertex3s 140 +#define _gloffset_Vertex3sv 141 +#define _gloffset_Vertex4d 142 +#define _gloffset_Vertex4dv 143 +#define _gloffset_Vertex4f 144 +#define _gloffset_Vertex4fv 145 +#define _gloffset_Vertex4i 146 +#define _gloffset_Vertex4iv 147 +#define _gloffset_Vertex4s 148 +#define _gloffset_Vertex4sv 149 +#define _gloffset_ClipPlane 150 +#define _gloffset_ColorMaterial 151 +#define _gloffset_CullFace 152 +#define _gloffset_Fogf 153 +#define _gloffset_Fogfv 154 +#define _gloffset_Fogi 155 +#define _gloffset_Fogiv 156 +#define _gloffset_FrontFace 157 +#define _gloffset_Hint 158 +#define _gloffset_Lightf 159 +#define _gloffset_Lightfv 160 +#define _gloffset_Lighti 161 +#define _gloffset_Lightiv 162 +#define _gloffset_LightModelf 163 +#define _gloffset_LightModelfv 164 +#define _gloffset_LightModeli 165 +#define _gloffset_LightModeliv 166 +#define _gloffset_LineStipple 167 +#define _gloffset_LineWidth 168 +#define _gloffset_Materialf 169 +#define _gloffset_Materialfv 170 +#define _gloffset_Materiali 171 +#define _gloffset_Materialiv 172 +#define _gloffset_PointSize 173 +#define _gloffset_PolygonMode 174 +#define _gloffset_PolygonStipple 175 +#define _gloffset_Scissor 176 +#define _gloffset_ShadeModel 177 +#define _gloffset_TexParameterf 178 +#define _gloffset_TexParameterfv 179 +#define _gloffset_TexParameteri 180 +#define _gloffset_TexParameteriv 181 +#define _gloffset_TexImage1D 182 +#define _gloffset_TexImage2D 183 +#define _gloffset_TexEnvf 184 +#define _gloffset_TexEnvfv 185 +#define _gloffset_TexEnvi 186 +#define _gloffset_TexEnviv 187 +#define _gloffset_TexGend 188 +#define _gloffset_TexGendv 189 +#define _gloffset_TexGenf 190 +#define _gloffset_TexGenfv 191 +#define _gloffset_TexGeni 192 +#define _gloffset_TexGeniv 193 +#define _gloffset_FeedbackBuffer 194 +#define _gloffset_SelectBuffer 195 +#define _gloffset_RenderMode 196 +#define _gloffset_InitNames 197 +#define _gloffset_LoadName 198 +#define _gloffset_PassThrough 199 +#define _gloffset_PopName 200 +#define _gloffset_PushName 201 +#define _gloffset_DrawBuffer 202 +#define _gloffset_Clear 203 +#define _gloffset_ClearAccum 204 +#define _gloffset_ClearIndex 205 +#define _gloffset_ClearColor 206 +#define _gloffset_ClearStencil 207 +#define _gloffset_ClearDepth 208 +#define _gloffset_StencilMask 209 +#define _gloffset_ColorMask 210 +#define _gloffset_DepthMask 211 +#define _gloffset_IndexMask 212 +#define _gloffset_Accum 213 +#define _gloffset_Disable 214 +#define _gloffset_Enable 215 +#define _gloffset_Finish 216 +#define _gloffset_Flush 217 +#define _gloffset_PopAttrib 218 +#define _gloffset_PushAttrib 219 +#define _gloffset_Map1d 220 +#define _gloffset_Map1f 221 +#define _gloffset_Map2d 222 +#define _gloffset_Map2f 223 +#define _gloffset_MapGrid1d 224 +#define _gloffset_MapGrid1f 225 +#define _gloffset_MapGrid2d 226 +#define _gloffset_MapGrid2f 227 +#define _gloffset_EvalCoord1d 228 +#define _gloffset_EvalCoord1dv 229 +#define _gloffset_EvalCoord1f 230 +#define _gloffset_EvalCoord1fv 231 +#define _gloffset_EvalCoord2d 232 +#define _gloffset_EvalCoord2dv 233 +#define _gloffset_EvalCoord2f 234 +#define _gloffset_EvalCoord2fv 235 +#define _gloffset_EvalMesh1 236 +#define _gloffset_EvalPoint1 237 +#define _gloffset_EvalMesh2 238 +#define _gloffset_EvalPoint2 239 +#define _gloffset_AlphaFunc 240 +#define _gloffset_BlendFunc 241 +#define _gloffset_LogicOp 242 +#define _gloffset_StencilFunc 243 +#define _gloffset_StencilOp 244 +#define _gloffset_DepthFunc 245 +#define _gloffset_PixelZoom 246 +#define _gloffset_PixelTransferf 247 +#define _gloffset_PixelTransferi 248 +#define _gloffset_PixelStoref 249 +#define _gloffset_PixelStorei 250 +#define _gloffset_PixelMapfv 251 +#define _gloffset_PixelMapuiv 252 +#define _gloffset_PixelMapusv 253 +#define _gloffset_ReadBuffer 254 +#define _gloffset_CopyPixels 255 +#define _gloffset_ReadPixels 256 +#define _gloffset_DrawPixels 257 +#define _gloffset_GetBooleanv 258 +#define _gloffset_GetClipPlane 259 +#define _gloffset_GetDoublev 260 +#define _gloffset_GetError 261 +#define _gloffset_GetFloatv 262 +#define _gloffset_GetIntegerv 263 +#define _gloffset_GetLightfv 264 +#define _gloffset_GetLightiv 265 +#define _gloffset_GetMapdv 266 +#define _gloffset_GetMapfv 267 +#define _gloffset_GetMapiv 268 +#define _gloffset_GetMaterialfv 269 +#define _gloffset_GetMaterialiv 270 +#define _gloffset_GetPixelMapfv 271 +#define _gloffset_GetPixelMapuiv 272 +#define _gloffset_GetPixelMapusv 273 +#define _gloffset_GetPolygonStipple 274 +#define _gloffset_GetString 275 +#define _gloffset_GetTexEnvfv 276 +#define _gloffset_GetTexEnviv 277 +#define _gloffset_GetTexGendv 278 +#define _gloffset_GetTexGenfv 279 +#define _gloffset_GetTexGeniv 280 +#define _gloffset_GetTexImage 281 +#define _gloffset_GetTexParameterfv 282 +#define _gloffset_GetTexParameteriv 283 +#define _gloffset_GetTexLevelParameterfv 284 +#define _gloffset_GetTexLevelParameteriv 285 +#define _gloffset_IsEnabled 286 +#define _gloffset_IsList 287 +#define _gloffset_DepthRange 288 +#define _gloffset_Frustum 289 +#define _gloffset_LoadIdentity 290 +#define _gloffset_LoadMatrixf 291 +#define _gloffset_LoadMatrixd 292 +#define _gloffset_MatrixMode 293 +#define _gloffset_MultMatrixf 294 +#define _gloffset_MultMatrixd 295 +#define _gloffset_Ortho 296 +#define _gloffset_PopMatrix 297 +#define _gloffset_PushMatrix 298 +#define _gloffset_Rotated 299 +#define _gloffset_Rotatef 300 +#define _gloffset_Scaled 301 +#define _gloffset_Scalef 302 +#define _gloffset_Translated 303 +#define _gloffset_Translatef 304 +#define _gloffset_Viewport 305 +#define _gloffset_ArrayElement 306 +#define _gloffset_BindTexture 307 +#define _gloffset_ColorPointer 308 +#define _gloffset_DisableClientState 309 +#define _gloffset_DrawArrays 310 +#define _gloffset_DrawElements 311 +#define _gloffset_EdgeFlagPointer 312 +#define _gloffset_EnableClientState 313 +#define _gloffset_IndexPointer 314 +#define _gloffset_Indexub 315 +#define _gloffset_Indexubv 316 +#define _gloffset_InterleavedArrays 317 +#define _gloffset_NormalPointer 318 +#define _gloffset_PolygonOffset 319 +#define _gloffset_TexCoordPointer 320 +#define _gloffset_VertexPointer 321 +#define _gloffset_AreTexturesResident 322 +#define _gloffset_CopyTexImage1D 323 +#define _gloffset_CopyTexImage2D 324 +#define _gloffset_CopyTexSubImage1D 325 +#define _gloffset_CopyTexSubImage2D 326 +#define _gloffset_DeleteTextures 327 +#define _gloffset_GenTextures 328 +#define _gloffset_GetPointerv 329 +#define _gloffset_IsTexture 330 +#define _gloffset_PrioritizeTextures 331 +#define _gloffset_TexSubImage1D 332 +#define _gloffset_TexSubImage2D 333 +#define _gloffset_PopClientAttrib 334 +#define _gloffset_PushClientAttrib 335 +#define _gloffset_BlendColor 336 +#define _gloffset_BlendEquation 337 +#define _gloffset_DrawRangeElements 338 +#define _gloffset_ColorTable 339 +#define _gloffset_ColorTableParameterfv 340 +#define _gloffset_ColorTableParameteriv 341 +#define _gloffset_CopyColorTable 342 +#define _gloffset_GetColorTable 343 +#define _gloffset_GetColorTableParameterfv 344 +#define _gloffset_GetColorTableParameteriv 345 +#define _gloffset_ColorSubTable 346 +#define _gloffset_CopyColorSubTable 347 +#define _gloffset_ConvolutionFilter1D 348 +#define _gloffset_ConvolutionFilter2D 349 +#define _gloffset_ConvolutionParameterf 350 +#define _gloffset_ConvolutionParameterfv 351 +#define _gloffset_ConvolutionParameteri 352 +#define _gloffset_ConvolutionParameteriv 353 +#define _gloffset_CopyConvolutionFilter1D 354 +#define _gloffset_CopyConvolutionFilter2D 355 +#define _gloffset_GetConvolutionFilter 356 +#define _gloffset_GetConvolutionParameterfv 357 +#define _gloffset_GetConvolutionParameteriv 358 +#define _gloffset_GetSeparableFilter 359 +#define _gloffset_SeparableFilter2D 360 +#define _gloffset_GetHistogram 361 +#define _gloffset_GetHistogramParameterfv 362 +#define _gloffset_GetHistogramParameteriv 363 +#define _gloffset_GetMinmax 364 +#define _gloffset_GetMinmaxParameterfv 365 +#define _gloffset_GetMinmaxParameteriv 366 +#define _gloffset_Histogram 367 +#define _gloffset_Minmax 368 +#define _gloffset_ResetHistogram 369 +#define _gloffset_ResetMinmax 370 +#define _gloffset_TexImage3D 371 +#define _gloffset_TexSubImage3D 372 +#define _gloffset_CopyTexSubImage3D 373 +#define _gloffset_ActiveTextureARB 374 +#define _gloffset_ClientActiveTextureARB 375 +#define _gloffset_MultiTexCoord1dARB 376 +#define _gloffset_MultiTexCoord1dvARB 377 +#define _gloffset_MultiTexCoord1fARB 378 +#define _gloffset_MultiTexCoord1fvARB 379 +#define _gloffset_MultiTexCoord1iARB 380 +#define _gloffset_MultiTexCoord1ivARB 381 +#define _gloffset_MultiTexCoord1sARB 382 +#define _gloffset_MultiTexCoord1svARB 383 +#define _gloffset_MultiTexCoord2dARB 384 +#define _gloffset_MultiTexCoord2dvARB 385 +#define _gloffset_MultiTexCoord2fARB 386 +#define _gloffset_MultiTexCoord2fvARB 387 +#define _gloffset_MultiTexCoord2iARB 388 +#define _gloffset_MultiTexCoord2ivARB 389 +#define _gloffset_MultiTexCoord2sARB 390 +#define _gloffset_MultiTexCoord2svARB 391 +#define _gloffset_MultiTexCoord3dARB 392 +#define _gloffset_MultiTexCoord3dvARB 393 +#define _gloffset_MultiTexCoord3fARB 394 +#define _gloffset_MultiTexCoord3fvARB 395 +#define _gloffset_MultiTexCoord3iARB 396 +#define _gloffset_MultiTexCoord3ivARB 397 +#define _gloffset_MultiTexCoord3sARB 398 +#define _gloffset_MultiTexCoord3svARB 399 +#define _gloffset_MultiTexCoord4dARB 400 +#define _gloffset_MultiTexCoord4dvARB 401 +#define _gloffset_MultiTexCoord4fARB 402 +#define _gloffset_MultiTexCoord4fvARB 403 +#define _gloffset_MultiTexCoord4iARB 404 +#define _gloffset_MultiTexCoord4ivARB 405 +#define _gloffset_MultiTexCoord4sARB 406 +#define _gloffset_MultiTexCoord4svARB 407 + +#if !FEATURE_remap_table + +#define _gloffset_AttachShader 408 +#define _gloffset_CreateProgram 409 +#define _gloffset_CreateShader 410 +#define _gloffset_DeleteProgram 411 +#define _gloffset_DeleteShader 412 +#define _gloffset_DetachShader 413 +#define _gloffset_GetAttachedShaders 414 +#define _gloffset_GetProgramInfoLog 415 +#define _gloffset_GetProgramiv 416 +#define _gloffset_GetShaderInfoLog 417 +#define _gloffset_GetShaderiv 418 +#define _gloffset_IsProgram 419 +#define _gloffset_IsShader 420 +#define _gloffset_StencilFuncSeparate 421 +#define _gloffset_StencilMaskSeparate 422 +#define _gloffset_StencilOpSeparate 423 +#define _gloffset_UniformMatrix2x3fv 424 +#define _gloffset_UniformMatrix2x4fv 425 +#define _gloffset_UniformMatrix3x2fv 426 +#define _gloffset_UniformMatrix3x4fv 427 +#define _gloffset_UniformMatrix4x2fv 428 +#define _gloffset_UniformMatrix4x3fv 429 +#define _gloffset_ClampColor 430 +#define _gloffset_ClearBufferfi 431 +#define _gloffset_ClearBufferfv 432 +#define _gloffset_ClearBufferiv 433 +#define _gloffset_ClearBufferuiv 434 +#define _gloffset_GetStringi 435 +#define _gloffset_TexBuffer 436 +#define _gloffset_FramebufferTexture 437 +#define _gloffset_GetBufferParameteri64v 438 +#define _gloffset_GetInteger64i_v 439 +#define _gloffset_VertexAttribDivisor 440 +#define _gloffset_LoadTransposeMatrixdARB 441 +#define _gloffset_LoadTransposeMatrixfARB 442 +#define _gloffset_MultTransposeMatrixdARB 443 +#define _gloffset_MultTransposeMatrixfARB 444 +#define _gloffset_SampleCoverageARB 445 +#define _gloffset_CompressedTexImage1DARB 446 +#define _gloffset_CompressedTexImage2DARB 447 +#define _gloffset_CompressedTexImage3DARB 448 +#define _gloffset_CompressedTexSubImage1DARB 449 +#define _gloffset_CompressedTexSubImage2DARB 450 +#define _gloffset_CompressedTexSubImage3DARB 451 +#define _gloffset_GetCompressedTexImageARB 452 +#define _gloffset_DisableVertexAttribArrayARB 453 +#define _gloffset_EnableVertexAttribArrayARB 454 +#define _gloffset_GetProgramEnvParameterdvARB 455 +#define _gloffset_GetProgramEnvParameterfvARB 456 +#define _gloffset_GetProgramLocalParameterdvARB 457 +#define _gloffset_GetProgramLocalParameterfvARB 458 +#define _gloffset_GetProgramStringARB 459 +#define _gloffset_GetProgramivARB 460 +#define _gloffset_GetVertexAttribdvARB 461 +#define _gloffset_GetVertexAttribfvARB 462 +#define _gloffset_GetVertexAttribivARB 463 +#define _gloffset_ProgramEnvParameter4dARB 464 +#define _gloffset_ProgramEnvParameter4dvARB 465 +#define _gloffset_ProgramEnvParameter4fARB 466 +#define _gloffset_ProgramEnvParameter4fvARB 467 +#define _gloffset_ProgramLocalParameter4dARB 468 +#define _gloffset_ProgramLocalParameter4dvARB 469 +#define _gloffset_ProgramLocalParameter4fARB 470 +#define _gloffset_ProgramLocalParameter4fvARB 471 +#define _gloffset_ProgramStringARB 472 +#define _gloffset_VertexAttrib1dARB 473 +#define _gloffset_VertexAttrib1dvARB 474 +#define _gloffset_VertexAttrib1fARB 475 +#define _gloffset_VertexAttrib1fvARB 476 +#define _gloffset_VertexAttrib1sARB 477 +#define _gloffset_VertexAttrib1svARB 478 +#define _gloffset_VertexAttrib2dARB 479 +#define _gloffset_VertexAttrib2dvARB 480 +#define _gloffset_VertexAttrib2fARB 481 +#define _gloffset_VertexAttrib2fvARB 482 +#define _gloffset_VertexAttrib2sARB 483 +#define _gloffset_VertexAttrib2svARB 484 +#define _gloffset_VertexAttrib3dARB 485 +#define _gloffset_VertexAttrib3dvARB 486 +#define _gloffset_VertexAttrib3fARB 487 +#define _gloffset_VertexAttrib3fvARB 488 +#define _gloffset_VertexAttrib3sARB 489 +#define _gloffset_VertexAttrib3svARB 490 +#define _gloffset_VertexAttrib4NbvARB 491 +#define _gloffset_VertexAttrib4NivARB 492 +#define _gloffset_VertexAttrib4NsvARB 493 +#define _gloffset_VertexAttrib4NubARB 494 +#define _gloffset_VertexAttrib4NubvARB 495 +#define _gloffset_VertexAttrib4NuivARB 496 +#define _gloffset_VertexAttrib4NusvARB 497 +#define _gloffset_VertexAttrib4bvARB 498 +#define _gloffset_VertexAttrib4dARB 499 +#define _gloffset_VertexAttrib4dvARB 500 +#define _gloffset_VertexAttrib4fARB 501 +#define _gloffset_VertexAttrib4fvARB 502 +#define _gloffset_VertexAttrib4ivARB 503 +#define _gloffset_VertexAttrib4sARB 504 +#define _gloffset_VertexAttrib4svARB 505 +#define _gloffset_VertexAttrib4ubvARB 506 +#define _gloffset_VertexAttrib4uivARB 507 +#define _gloffset_VertexAttrib4usvARB 508 +#define _gloffset_VertexAttribPointerARB 509 +#define _gloffset_BindBufferARB 510 +#define _gloffset_BufferDataARB 511 +#define _gloffset_BufferSubDataARB 512 +#define _gloffset_DeleteBuffersARB 513 +#define _gloffset_GenBuffersARB 514 +#define _gloffset_GetBufferParameterivARB 515 +#define _gloffset_GetBufferPointervARB 516 +#define _gloffset_GetBufferSubDataARB 517 +#define _gloffset_IsBufferARB 518 +#define _gloffset_MapBufferARB 519 +#define _gloffset_UnmapBufferARB 520 +#define _gloffset_BeginQueryARB 521 +#define _gloffset_DeleteQueriesARB 522 +#define _gloffset_EndQueryARB 523 +#define _gloffset_GenQueriesARB 524 +#define _gloffset_GetQueryObjectivARB 525 +#define _gloffset_GetQueryObjectuivARB 526 +#define _gloffset_GetQueryivARB 527 +#define _gloffset_IsQueryARB 528 +#define _gloffset_AttachObjectARB 529 +#define _gloffset_CompileShaderARB 530 +#define _gloffset_CreateProgramObjectARB 531 +#define _gloffset_CreateShaderObjectARB 532 +#define _gloffset_DeleteObjectARB 533 +#define _gloffset_DetachObjectARB 534 +#define _gloffset_GetActiveUniformARB 535 +#define _gloffset_GetAttachedObjectsARB 536 +#define _gloffset_GetHandleARB 537 +#define _gloffset_GetInfoLogARB 538 +#define _gloffset_GetObjectParameterfvARB 539 +#define _gloffset_GetObjectParameterivARB 540 +#define _gloffset_GetShaderSourceARB 541 +#define _gloffset_GetUniformLocationARB 542 +#define _gloffset_GetUniformfvARB 543 +#define _gloffset_GetUniformivARB 544 +#define _gloffset_LinkProgramARB 545 +#define _gloffset_ShaderSourceARB 546 +#define _gloffset_Uniform1fARB 547 +#define _gloffset_Uniform1fvARB 548 +#define _gloffset_Uniform1iARB 549 +#define _gloffset_Uniform1ivARB 550 +#define _gloffset_Uniform2fARB 551 +#define _gloffset_Uniform2fvARB 552 +#define _gloffset_Uniform2iARB 553 +#define _gloffset_Uniform2ivARB 554 +#define _gloffset_Uniform3fARB 555 +#define _gloffset_Uniform3fvARB 556 +#define _gloffset_Uniform3iARB 557 +#define _gloffset_Uniform3ivARB 558 +#define _gloffset_Uniform4fARB 559 +#define _gloffset_Uniform4fvARB 560 +#define _gloffset_Uniform4iARB 561 +#define _gloffset_Uniform4ivARB 562 +#define _gloffset_UniformMatrix2fvARB 563 +#define _gloffset_UniformMatrix3fvARB 564 +#define _gloffset_UniformMatrix4fvARB 565 +#define _gloffset_UseProgramObjectARB 566 +#define _gloffset_ValidateProgramARB 567 +#define _gloffset_BindAttribLocationARB 568 +#define _gloffset_GetActiveAttribARB 569 +#define _gloffset_GetAttribLocationARB 570 +#define _gloffset_DrawBuffersARB 571 +#define _gloffset_ClampColorARB 572 +#define _gloffset_DrawArraysInstancedARB 573 +#define _gloffset_DrawElementsInstancedARB 574 +#define _gloffset_RenderbufferStorageMultisample 575 +#define _gloffset_FramebufferTextureARB 576 +#define _gloffset_FramebufferTextureFaceARB 577 +#define _gloffset_ProgramParameteriARB 578 +#define _gloffset_VertexAttribDivisorARB 579 +#define _gloffset_FlushMappedBufferRange 580 +#define _gloffset_MapBufferRange 581 +#define _gloffset_TexBufferARB 582 +#define _gloffset_BindVertexArray 583 +#define _gloffset_GenVertexArrays 584 +#define _gloffset_CopyBufferSubData 585 +#define _gloffset_ClientWaitSync 586 +#define _gloffset_DeleteSync 587 +#define _gloffset_FenceSync 588 +#define _gloffset_GetInteger64v 589 +#define _gloffset_GetSynciv 590 +#define _gloffset_IsSync 591 +#define _gloffset_WaitSync 592 +#define _gloffset_DrawElementsBaseVertex 593 +#define _gloffset_DrawElementsInstancedBaseVertex 594 +#define _gloffset_DrawRangeElementsBaseVertex 595 +#define _gloffset_MultiDrawElementsBaseVertex 596 +#define _gloffset_BlendEquationSeparateiARB 597 +#define _gloffset_BlendEquationiARB 598 +#define _gloffset_BlendFuncSeparateiARB 599 +#define _gloffset_BlendFunciARB 600 +#define _gloffset_BindSampler 601 +#define _gloffset_DeleteSamplers 602 +#define _gloffset_GenSamplers 603 +#define _gloffset_GetSamplerParameterIiv 604 +#define _gloffset_GetSamplerParameterIuiv 605 +#define _gloffset_GetSamplerParameterfv 606 +#define _gloffset_GetSamplerParameteriv 607 +#define _gloffset_IsSampler 608 +#define _gloffset_SamplerParameterIiv 609 +#define _gloffset_SamplerParameterIuiv 610 +#define _gloffset_SamplerParameterf 611 +#define _gloffset_SamplerParameterfv 612 +#define _gloffset_SamplerParameteri 613 +#define _gloffset_SamplerParameteriv 614 +#define _gloffset_BindTransformFeedback 615 +#define _gloffset_DeleteTransformFeedbacks 616 +#define _gloffset_DrawTransformFeedback 617 +#define _gloffset_GenTransformFeedbacks 618 +#define _gloffset_IsTransformFeedback 619 +#define _gloffset_PauseTransformFeedback 620 +#define _gloffset_ResumeTransformFeedback 621 +#define _gloffset_ClearDepthf 622 +#define _gloffset_DepthRangef 623 +#define _gloffset_GetShaderPrecisionFormat 624 +#define _gloffset_ReleaseShaderCompiler 625 +#define _gloffset_ShaderBinary 626 +#define _gloffset_GetGraphicsResetStatusARB 627 +#define _gloffset_GetnColorTableARB 628 +#define _gloffset_GetnCompressedTexImageARB 629 +#define _gloffset_GetnConvolutionFilterARB 630 +#define _gloffset_GetnHistogramARB 631 +#define _gloffset_GetnMapdvARB 632 +#define _gloffset_GetnMapfvARB 633 +#define _gloffset_GetnMapivARB 634 +#define _gloffset_GetnMinmaxARB 635 +#define _gloffset_GetnPixelMapfvARB 636 +#define _gloffset_GetnPixelMapuivARB 637 +#define _gloffset_GetnPixelMapusvARB 638 +#define _gloffset_GetnPolygonStippleARB 639 +#define _gloffset_GetnSeparableFilterARB 640 +#define _gloffset_GetnTexImageARB 641 +#define _gloffset_GetnUniformdvARB 642 +#define _gloffset_GetnUniformfvARB 643 +#define _gloffset_GetnUniformivARB 644 +#define _gloffset_GetnUniformuivARB 645 +#define _gloffset_ReadnPixelsARB 646 +#define _gloffset_PolygonOffsetEXT 647 +#define _gloffset_GetPixelTexGenParameterfvSGIS 648 +#define _gloffset_GetPixelTexGenParameterivSGIS 649 +#define _gloffset_PixelTexGenParameterfSGIS 650 +#define _gloffset_PixelTexGenParameterfvSGIS 651 +#define _gloffset_PixelTexGenParameteriSGIS 652 +#define _gloffset_PixelTexGenParameterivSGIS 653 +#define _gloffset_SampleMaskSGIS 654 +#define _gloffset_SamplePatternSGIS 655 +#define _gloffset_ColorPointerEXT 656 +#define _gloffset_EdgeFlagPointerEXT 657 +#define _gloffset_IndexPointerEXT 658 +#define _gloffset_NormalPointerEXT 659 +#define _gloffset_TexCoordPointerEXT 660 +#define _gloffset_VertexPointerEXT 661 +#define _gloffset_PointParameterfEXT 662 +#define _gloffset_PointParameterfvEXT 663 +#define _gloffset_LockArraysEXT 664 +#define _gloffset_UnlockArraysEXT 665 +#define _gloffset_SecondaryColor3bEXT 666 +#define _gloffset_SecondaryColor3bvEXT 667 +#define _gloffset_SecondaryColor3dEXT 668 +#define _gloffset_SecondaryColor3dvEXT 669 +#define _gloffset_SecondaryColor3fEXT 670 +#define _gloffset_SecondaryColor3fvEXT 671 +#define _gloffset_SecondaryColor3iEXT 672 +#define _gloffset_SecondaryColor3ivEXT 673 +#define _gloffset_SecondaryColor3sEXT 674 +#define _gloffset_SecondaryColor3svEXT 675 +#define _gloffset_SecondaryColor3ubEXT 676 +#define _gloffset_SecondaryColor3ubvEXT 677 +#define _gloffset_SecondaryColor3uiEXT 678 +#define _gloffset_SecondaryColor3uivEXT 679 +#define _gloffset_SecondaryColor3usEXT 680 +#define _gloffset_SecondaryColor3usvEXT 681 +#define _gloffset_SecondaryColorPointerEXT 682 +#define _gloffset_MultiDrawArraysEXT 683 +#define _gloffset_MultiDrawElementsEXT 684 +#define _gloffset_FogCoordPointerEXT 685 +#define _gloffset_FogCoorddEXT 686 +#define _gloffset_FogCoorddvEXT 687 +#define _gloffset_FogCoordfEXT 688 +#define _gloffset_FogCoordfvEXT 689 +#define _gloffset_PixelTexGenSGIX 690 +#define _gloffset_BlendFuncSeparateEXT 691 +#define _gloffset_FlushVertexArrayRangeNV 692 +#define _gloffset_VertexArrayRangeNV 693 +#define _gloffset_CombinerInputNV 694 +#define _gloffset_CombinerOutputNV 695 +#define _gloffset_CombinerParameterfNV 696 +#define _gloffset_CombinerParameterfvNV 697 +#define _gloffset_CombinerParameteriNV 698 +#define _gloffset_CombinerParameterivNV 699 +#define _gloffset_FinalCombinerInputNV 700 +#define _gloffset_GetCombinerInputParameterfvNV 701 +#define _gloffset_GetCombinerInputParameterivNV 702 +#define _gloffset_GetCombinerOutputParameterfvNV 703 +#define _gloffset_GetCombinerOutputParameterivNV 704 +#define _gloffset_GetFinalCombinerInputParameterfvNV 705 +#define _gloffset_GetFinalCombinerInputParameterivNV 706 +#define _gloffset_ResizeBuffersMESA 707 +#define _gloffset_WindowPos2dMESA 708 +#define _gloffset_WindowPos2dvMESA 709 +#define _gloffset_WindowPos2fMESA 710 +#define _gloffset_WindowPos2fvMESA 711 +#define _gloffset_WindowPos2iMESA 712 +#define _gloffset_WindowPos2ivMESA 713 +#define _gloffset_WindowPos2sMESA 714 +#define _gloffset_WindowPos2svMESA 715 +#define _gloffset_WindowPos3dMESA 716 +#define _gloffset_WindowPos3dvMESA 717 +#define _gloffset_WindowPos3fMESA 718 +#define _gloffset_WindowPos3fvMESA 719 +#define _gloffset_WindowPos3iMESA 720 +#define _gloffset_WindowPos3ivMESA 721 +#define _gloffset_WindowPos3sMESA 722 +#define _gloffset_WindowPos3svMESA 723 +#define _gloffset_WindowPos4dMESA 724 +#define _gloffset_WindowPos4dvMESA 725 +#define _gloffset_WindowPos4fMESA 726 +#define _gloffset_WindowPos4fvMESA 727 +#define _gloffset_WindowPos4iMESA 728 +#define _gloffset_WindowPos4ivMESA 729 +#define _gloffset_WindowPos4sMESA 730 +#define _gloffset_WindowPos4svMESA 731 +#define _gloffset_MultiModeDrawArraysIBM 732 +#define _gloffset_MultiModeDrawElementsIBM 733 +#define _gloffset_DeleteFencesNV 734 +#define _gloffset_FinishFenceNV 735 +#define _gloffset_GenFencesNV 736 +#define _gloffset_GetFenceivNV 737 +#define _gloffset_IsFenceNV 738 +#define _gloffset_SetFenceNV 739 +#define _gloffset_TestFenceNV 740 +#define _gloffset_AreProgramsResidentNV 741 +#define _gloffset_BindProgramNV 742 +#define _gloffset_DeleteProgramsNV 743 +#define _gloffset_ExecuteProgramNV 744 +#define _gloffset_GenProgramsNV 745 +#define _gloffset_GetProgramParameterdvNV 746 +#define _gloffset_GetProgramParameterfvNV 747 +#define _gloffset_GetProgramStringNV 748 +#define _gloffset_GetProgramivNV 749 +#define _gloffset_GetTrackMatrixivNV 750 +#define _gloffset_GetVertexAttribPointervNV 751 +#define _gloffset_GetVertexAttribdvNV 752 +#define _gloffset_GetVertexAttribfvNV 753 +#define _gloffset_GetVertexAttribivNV 754 +#define _gloffset_IsProgramNV 755 +#define _gloffset_LoadProgramNV 756 +#define _gloffset_ProgramParameters4dvNV 757 +#define _gloffset_ProgramParameters4fvNV 758 +#define _gloffset_RequestResidentProgramsNV 759 +#define _gloffset_TrackMatrixNV 760 +#define _gloffset_VertexAttrib1dNV 761 +#define _gloffset_VertexAttrib1dvNV 762 +#define _gloffset_VertexAttrib1fNV 763 +#define _gloffset_VertexAttrib1fvNV 764 +#define _gloffset_VertexAttrib1sNV 765 +#define _gloffset_VertexAttrib1svNV 766 +#define _gloffset_VertexAttrib2dNV 767 +#define _gloffset_VertexAttrib2dvNV 768 +#define _gloffset_VertexAttrib2fNV 769 +#define _gloffset_VertexAttrib2fvNV 770 +#define _gloffset_VertexAttrib2sNV 771 +#define _gloffset_VertexAttrib2svNV 772 +#define _gloffset_VertexAttrib3dNV 773 +#define _gloffset_VertexAttrib3dvNV 774 +#define _gloffset_VertexAttrib3fNV 775 +#define _gloffset_VertexAttrib3fvNV 776 +#define _gloffset_VertexAttrib3sNV 777 +#define _gloffset_VertexAttrib3svNV 778 +#define _gloffset_VertexAttrib4dNV 779 +#define _gloffset_VertexAttrib4dvNV 780 +#define _gloffset_VertexAttrib4fNV 781 +#define _gloffset_VertexAttrib4fvNV 782 +#define _gloffset_VertexAttrib4sNV 783 +#define _gloffset_VertexAttrib4svNV 784 +#define _gloffset_VertexAttrib4ubNV 785 +#define _gloffset_VertexAttrib4ubvNV 786 +#define _gloffset_VertexAttribPointerNV 787 +#define _gloffset_VertexAttribs1dvNV 788 +#define _gloffset_VertexAttribs1fvNV 789 +#define _gloffset_VertexAttribs1svNV 790 +#define _gloffset_VertexAttribs2dvNV 791 +#define _gloffset_VertexAttribs2fvNV 792 +#define _gloffset_VertexAttribs2svNV 793 +#define _gloffset_VertexAttribs3dvNV 794 +#define _gloffset_VertexAttribs3fvNV 795 +#define _gloffset_VertexAttribs3svNV 796 +#define _gloffset_VertexAttribs4dvNV 797 +#define _gloffset_VertexAttribs4fvNV 798 +#define _gloffset_VertexAttribs4svNV 799 +#define _gloffset_VertexAttribs4ubvNV 800 +#define _gloffset_GetTexBumpParameterfvATI 801 +#define _gloffset_GetTexBumpParameterivATI 802 +#define _gloffset_TexBumpParameterfvATI 803 +#define _gloffset_TexBumpParameterivATI 804 +#define _gloffset_AlphaFragmentOp1ATI 805 +#define _gloffset_AlphaFragmentOp2ATI 806 +#define _gloffset_AlphaFragmentOp3ATI 807 +#define _gloffset_BeginFragmentShaderATI 808 +#define _gloffset_BindFragmentShaderATI 809 +#define _gloffset_ColorFragmentOp1ATI 810 +#define _gloffset_ColorFragmentOp2ATI 811 +#define _gloffset_ColorFragmentOp3ATI 812 +#define _gloffset_DeleteFragmentShaderATI 813 +#define _gloffset_EndFragmentShaderATI 814 +#define _gloffset_GenFragmentShadersATI 815 +#define _gloffset_PassTexCoordATI 816 +#define _gloffset_SampleMapATI 817 +#define _gloffset_SetFragmentShaderConstantATI 818 +#define _gloffset_PointParameteriNV 819 +#define _gloffset_PointParameterivNV 820 +#define _gloffset_ActiveStencilFaceEXT 821 +#define _gloffset_BindVertexArrayAPPLE 822 +#define _gloffset_DeleteVertexArraysAPPLE 823 +#define _gloffset_GenVertexArraysAPPLE 824 +#define _gloffset_IsVertexArrayAPPLE 825 +#define _gloffset_GetProgramNamedParameterdvNV 826 +#define _gloffset_GetProgramNamedParameterfvNV 827 +#define _gloffset_ProgramNamedParameter4dNV 828 +#define _gloffset_ProgramNamedParameter4dvNV 829 +#define _gloffset_ProgramNamedParameter4fNV 830 +#define _gloffset_ProgramNamedParameter4fvNV 831 +#define _gloffset_PrimitiveRestartIndexNV 832 +#define _gloffset_PrimitiveRestartNV 833 +#define _gloffset_DepthBoundsEXT 834 +#define _gloffset_BlendEquationSeparateEXT 835 +#define _gloffset_BindFramebufferEXT 836 +#define _gloffset_BindRenderbufferEXT 837 +#define _gloffset_CheckFramebufferStatusEXT 838 +#define _gloffset_DeleteFramebuffersEXT 839 +#define _gloffset_DeleteRenderbuffersEXT 840 +#define _gloffset_FramebufferRenderbufferEXT 841 +#define _gloffset_FramebufferTexture1DEXT 842 +#define _gloffset_FramebufferTexture2DEXT 843 +#define _gloffset_FramebufferTexture3DEXT 844 +#define _gloffset_GenFramebuffersEXT 845 +#define _gloffset_GenRenderbuffersEXT 846 +#define _gloffset_GenerateMipmapEXT 847 +#define _gloffset_GetFramebufferAttachmentParameterivEXT 848 +#define _gloffset_GetRenderbufferParameterivEXT 849 +#define _gloffset_IsFramebufferEXT 850 +#define _gloffset_IsRenderbufferEXT 851 +#define _gloffset_RenderbufferStorageEXT 852 +#define _gloffset_BlitFramebufferEXT 853 +#define _gloffset_BufferParameteriAPPLE 854 +#define _gloffset_FlushMappedBufferRangeAPPLE 855 +#define _gloffset_BindFragDataLocationEXT 856 +#define _gloffset_GetFragDataLocationEXT 857 +#define _gloffset_GetUniformuivEXT 858 +#define _gloffset_GetVertexAttribIivEXT 859 +#define _gloffset_GetVertexAttribIuivEXT 860 +#define _gloffset_Uniform1uiEXT 861 +#define _gloffset_Uniform1uivEXT 862 +#define _gloffset_Uniform2uiEXT 863 +#define _gloffset_Uniform2uivEXT 864 +#define _gloffset_Uniform3uiEXT 865 +#define _gloffset_Uniform3uivEXT 866 +#define _gloffset_Uniform4uiEXT 867 +#define _gloffset_Uniform4uivEXT 868 +#define _gloffset_VertexAttribI1iEXT 869 +#define _gloffset_VertexAttribI1ivEXT 870 +#define _gloffset_VertexAttribI1uiEXT 871 +#define _gloffset_VertexAttribI1uivEXT 872 +#define _gloffset_VertexAttribI2iEXT 873 +#define _gloffset_VertexAttribI2ivEXT 874 +#define _gloffset_VertexAttribI2uiEXT 875 +#define _gloffset_VertexAttribI2uivEXT 876 +#define _gloffset_VertexAttribI3iEXT 877 +#define _gloffset_VertexAttribI3ivEXT 878 +#define _gloffset_VertexAttribI3uiEXT 879 +#define _gloffset_VertexAttribI3uivEXT 880 +#define _gloffset_VertexAttribI4bvEXT 881 +#define _gloffset_VertexAttribI4iEXT 882 +#define _gloffset_VertexAttribI4ivEXT 883 +#define _gloffset_VertexAttribI4svEXT 884 +#define _gloffset_VertexAttribI4ubvEXT 885 +#define _gloffset_VertexAttribI4uiEXT 886 +#define _gloffset_VertexAttribI4uivEXT 887 +#define _gloffset_VertexAttribI4usvEXT 888 +#define _gloffset_VertexAttribIPointerEXT 889 +#define _gloffset_FramebufferTextureLayerEXT 890 +#define _gloffset_ColorMaskIndexedEXT 891 +#define _gloffset_DisableIndexedEXT 892 +#define _gloffset_EnableIndexedEXT 893 +#define _gloffset_GetBooleanIndexedvEXT 894 +#define _gloffset_GetIntegerIndexedvEXT 895 +#define _gloffset_IsEnabledIndexedEXT 896 +#define _gloffset_ClearColorIiEXT 897 +#define _gloffset_ClearColorIuiEXT 898 +#define _gloffset_GetTexParameterIivEXT 899 +#define _gloffset_GetTexParameterIuivEXT 900 +#define _gloffset_TexParameterIivEXT 901 +#define _gloffset_TexParameterIuivEXT 902 +#define _gloffset_BeginConditionalRenderNV 903 +#define _gloffset_EndConditionalRenderNV 904 +#define _gloffset_BeginTransformFeedbackEXT 905 +#define _gloffset_BindBufferBaseEXT 906 +#define _gloffset_BindBufferOffsetEXT 907 +#define _gloffset_BindBufferRangeEXT 908 +#define _gloffset_EndTransformFeedbackEXT 909 +#define _gloffset_GetTransformFeedbackVaryingEXT 910 +#define _gloffset_TransformFeedbackVaryingsEXT 911 +#define _gloffset_ProvokingVertexEXT 912 +#define _gloffset_GetTexParameterPointervAPPLE 913 +#define _gloffset_TextureRangeAPPLE 914 +#define _gloffset_GetObjectParameterivAPPLE 915 +#define _gloffset_ObjectPurgeableAPPLE 916 +#define _gloffset_ObjectUnpurgeableAPPLE 917 +#define _gloffset_ActiveProgramEXT 918 +#define _gloffset_CreateShaderProgramEXT 919 +#define _gloffset_UseShaderProgramEXT 920 +#define _gloffset_TextureBarrierNV 921 +#define _gloffset_StencilFuncSeparateATI 922 +#define _gloffset_ProgramEnvParameters4fvEXT 923 +#define _gloffset_ProgramLocalParameters4fvEXT 924 +#define _gloffset_GetQueryObjecti64vEXT 925 +#define _gloffset_GetQueryObjectui64vEXT 926 +#define _gloffset_EGLImageTargetRenderbufferStorageOES 927 +#define _gloffset_EGLImageTargetTexture2DOES 928 + +#else /* !FEATURE_remap_table */ + +#define driDispatchRemapTable_size 521 +extern int driDispatchRemapTable[ driDispatchRemapTable_size ]; + +#define AttachShader_remap_index 0 +#define CreateProgram_remap_index 1 +#define CreateShader_remap_index 2 +#define DeleteProgram_remap_index 3 +#define DeleteShader_remap_index 4 +#define DetachShader_remap_index 5 +#define GetAttachedShaders_remap_index 6 +#define GetProgramInfoLog_remap_index 7 +#define GetProgramiv_remap_index 8 +#define GetShaderInfoLog_remap_index 9 +#define GetShaderiv_remap_index 10 +#define IsProgram_remap_index 11 +#define IsShader_remap_index 12 +#define StencilFuncSeparate_remap_index 13 +#define StencilMaskSeparate_remap_index 14 +#define StencilOpSeparate_remap_index 15 +#define UniformMatrix2x3fv_remap_index 16 +#define UniformMatrix2x4fv_remap_index 17 +#define UniformMatrix3x2fv_remap_index 18 +#define UniformMatrix3x4fv_remap_index 19 +#define UniformMatrix4x2fv_remap_index 20 +#define UniformMatrix4x3fv_remap_index 21 +#define ClampColor_remap_index 22 +#define ClearBufferfi_remap_index 23 +#define ClearBufferfv_remap_index 24 +#define ClearBufferiv_remap_index 25 +#define ClearBufferuiv_remap_index 26 +#define GetStringi_remap_index 27 +#define TexBuffer_remap_index 28 +#define FramebufferTexture_remap_index 29 +#define GetBufferParameteri64v_remap_index 30 +#define GetInteger64i_v_remap_index 31 +#define VertexAttribDivisor_remap_index 32 +#define LoadTransposeMatrixdARB_remap_index 33 +#define LoadTransposeMatrixfARB_remap_index 34 +#define MultTransposeMatrixdARB_remap_index 35 +#define MultTransposeMatrixfARB_remap_index 36 +#define SampleCoverageARB_remap_index 37 +#define CompressedTexImage1DARB_remap_index 38 +#define CompressedTexImage2DARB_remap_index 39 +#define CompressedTexImage3DARB_remap_index 40 +#define CompressedTexSubImage1DARB_remap_index 41 +#define CompressedTexSubImage2DARB_remap_index 42 +#define CompressedTexSubImage3DARB_remap_index 43 +#define GetCompressedTexImageARB_remap_index 44 +#define DisableVertexAttribArrayARB_remap_index 45 +#define EnableVertexAttribArrayARB_remap_index 46 +#define GetProgramEnvParameterdvARB_remap_index 47 +#define GetProgramEnvParameterfvARB_remap_index 48 +#define GetProgramLocalParameterdvARB_remap_index 49 +#define GetProgramLocalParameterfvARB_remap_index 50 +#define GetProgramStringARB_remap_index 51 +#define GetProgramivARB_remap_index 52 +#define GetVertexAttribdvARB_remap_index 53 +#define GetVertexAttribfvARB_remap_index 54 +#define GetVertexAttribivARB_remap_index 55 +#define ProgramEnvParameter4dARB_remap_index 56 +#define ProgramEnvParameter4dvARB_remap_index 57 +#define ProgramEnvParameter4fARB_remap_index 58 +#define ProgramEnvParameter4fvARB_remap_index 59 +#define ProgramLocalParameter4dARB_remap_index 60 +#define ProgramLocalParameter4dvARB_remap_index 61 +#define ProgramLocalParameter4fARB_remap_index 62 +#define ProgramLocalParameter4fvARB_remap_index 63 +#define ProgramStringARB_remap_index 64 +#define VertexAttrib1dARB_remap_index 65 +#define VertexAttrib1dvARB_remap_index 66 +#define VertexAttrib1fARB_remap_index 67 +#define VertexAttrib1fvARB_remap_index 68 +#define VertexAttrib1sARB_remap_index 69 +#define VertexAttrib1svARB_remap_index 70 +#define VertexAttrib2dARB_remap_index 71 +#define VertexAttrib2dvARB_remap_index 72 +#define VertexAttrib2fARB_remap_index 73 +#define VertexAttrib2fvARB_remap_index 74 +#define VertexAttrib2sARB_remap_index 75 +#define VertexAttrib2svARB_remap_index 76 +#define VertexAttrib3dARB_remap_index 77 +#define VertexAttrib3dvARB_remap_index 78 +#define VertexAttrib3fARB_remap_index 79 +#define VertexAttrib3fvARB_remap_index 80 +#define VertexAttrib3sARB_remap_index 81 +#define VertexAttrib3svARB_remap_index 82 +#define VertexAttrib4NbvARB_remap_index 83 +#define VertexAttrib4NivARB_remap_index 84 +#define VertexAttrib4NsvARB_remap_index 85 +#define VertexAttrib4NubARB_remap_index 86 +#define VertexAttrib4NubvARB_remap_index 87 +#define VertexAttrib4NuivARB_remap_index 88 +#define VertexAttrib4NusvARB_remap_index 89 +#define VertexAttrib4bvARB_remap_index 90 +#define VertexAttrib4dARB_remap_index 91 +#define VertexAttrib4dvARB_remap_index 92 +#define VertexAttrib4fARB_remap_index 93 +#define VertexAttrib4fvARB_remap_index 94 +#define VertexAttrib4ivARB_remap_index 95 +#define VertexAttrib4sARB_remap_index 96 +#define VertexAttrib4svARB_remap_index 97 +#define VertexAttrib4ubvARB_remap_index 98 +#define VertexAttrib4uivARB_remap_index 99 +#define VertexAttrib4usvARB_remap_index 100 +#define VertexAttribPointerARB_remap_index 101 +#define BindBufferARB_remap_index 102 +#define BufferDataARB_remap_index 103 +#define BufferSubDataARB_remap_index 104 +#define DeleteBuffersARB_remap_index 105 +#define GenBuffersARB_remap_index 106 +#define GetBufferParameterivARB_remap_index 107 +#define GetBufferPointervARB_remap_index 108 +#define GetBufferSubDataARB_remap_index 109 +#define IsBufferARB_remap_index 110 +#define MapBufferARB_remap_index 111 +#define UnmapBufferARB_remap_index 112 +#define BeginQueryARB_remap_index 113 +#define DeleteQueriesARB_remap_index 114 +#define EndQueryARB_remap_index 115 +#define GenQueriesARB_remap_index 116 +#define GetQueryObjectivARB_remap_index 117 +#define GetQueryObjectuivARB_remap_index 118 +#define GetQueryivARB_remap_index 119 +#define IsQueryARB_remap_index 120 +#define AttachObjectARB_remap_index 121 +#define CompileShaderARB_remap_index 122 +#define CreateProgramObjectARB_remap_index 123 +#define CreateShaderObjectARB_remap_index 124 +#define DeleteObjectARB_remap_index 125 +#define DetachObjectARB_remap_index 126 +#define GetActiveUniformARB_remap_index 127 +#define GetAttachedObjectsARB_remap_index 128 +#define GetHandleARB_remap_index 129 +#define GetInfoLogARB_remap_index 130 +#define GetObjectParameterfvARB_remap_index 131 +#define GetObjectParameterivARB_remap_index 132 +#define GetShaderSourceARB_remap_index 133 +#define GetUniformLocationARB_remap_index 134 +#define GetUniformfvARB_remap_index 135 +#define GetUniformivARB_remap_index 136 +#define LinkProgramARB_remap_index 137 +#define ShaderSourceARB_remap_index 138 +#define Uniform1fARB_remap_index 139 +#define Uniform1fvARB_remap_index 140 +#define Uniform1iARB_remap_index 141 +#define Uniform1ivARB_remap_index 142 +#define Uniform2fARB_remap_index 143 +#define Uniform2fvARB_remap_index 144 +#define Uniform2iARB_remap_index 145 +#define Uniform2ivARB_remap_index 146 +#define Uniform3fARB_remap_index 147 +#define Uniform3fvARB_remap_index 148 +#define Uniform3iARB_remap_index 149 +#define Uniform3ivARB_remap_index 150 +#define Uniform4fARB_remap_index 151 +#define Uniform4fvARB_remap_index 152 +#define Uniform4iARB_remap_index 153 +#define Uniform4ivARB_remap_index 154 +#define UniformMatrix2fvARB_remap_index 155 +#define UniformMatrix3fvARB_remap_index 156 +#define UniformMatrix4fvARB_remap_index 157 +#define UseProgramObjectARB_remap_index 158 +#define ValidateProgramARB_remap_index 159 +#define BindAttribLocationARB_remap_index 160 +#define GetActiveAttribARB_remap_index 161 +#define GetAttribLocationARB_remap_index 162 +#define DrawBuffersARB_remap_index 163 +#define ClampColorARB_remap_index 164 +#define DrawArraysInstancedARB_remap_index 165 +#define DrawElementsInstancedARB_remap_index 166 +#define RenderbufferStorageMultisample_remap_index 167 +#define FramebufferTextureARB_remap_index 168 +#define FramebufferTextureFaceARB_remap_index 169 +#define ProgramParameteriARB_remap_index 170 +#define VertexAttribDivisorARB_remap_index 171 +#define FlushMappedBufferRange_remap_index 172 +#define MapBufferRange_remap_index 173 +#define TexBufferARB_remap_index 174 +#define BindVertexArray_remap_index 175 +#define GenVertexArrays_remap_index 176 +#define CopyBufferSubData_remap_index 177 +#define ClientWaitSync_remap_index 178 +#define DeleteSync_remap_index 179 +#define FenceSync_remap_index 180 +#define GetInteger64v_remap_index 181 +#define GetSynciv_remap_index 182 +#define IsSync_remap_index 183 +#define WaitSync_remap_index 184 +#define DrawElementsBaseVertex_remap_index 185 +#define DrawElementsInstancedBaseVertex_remap_index 186 +#define DrawRangeElementsBaseVertex_remap_index 187 +#define MultiDrawElementsBaseVertex_remap_index 188 +#define BlendEquationSeparateiARB_remap_index 189 +#define BlendEquationiARB_remap_index 190 +#define BlendFuncSeparateiARB_remap_index 191 +#define BlendFunciARB_remap_index 192 +#define BindSampler_remap_index 193 +#define DeleteSamplers_remap_index 194 +#define GenSamplers_remap_index 195 +#define GetSamplerParameterIiv_remap_index 196 +#define GetSamplerParameterIuiv_remap_index 197 +#define GetSamplerParameterfv_remap_index 198 +#define GetSamplerParameteriv_remap_index 199 +#define IsSampler_remap_index 200 +#define SamplerParameterIiv_remap_index 201 +#define SamplerParameterIuiv_remap_index 202 +#define SamplerParameterf_remap_index 203 +#define SamplerParameterfv_remap_index 204 +#define SamplerParameteri_remap_index 205 +#define SamplerParameteriv_remap_index 206 +#define BindTransformFeedback_remap_index 207 +#define DeleteTransformFeedbacks_remap_index 208 +#define DrawTransformFeedback_remap_index 209 +#define GenTransformFeedbacks_remap_index 210 +#define IsTransformFeedback_remap_index 211 +#define PauseTransformFeedback_remap_index 212 +#define ResumeTransformFeedback_remap_index 213 +#define ClearDepthf_remap_index 214 +#define DepthRangef_remap_index 215 +#define GetShaderPrecisionFormat_remap_index 216 +#define ReleaseShaderCompiler_remap_index 217 +#define ShaderBinary_remap_index 218 +#define GetGraphicsResetStatusARB_remap_index 219 +#define GetnColorTableARB_remap_index 220 +#define GetnCompressedTexImageARB_remap_index 221 +#define GetnConvolutionFilterARB_remap_index 222 +#define GetnHistogramARB_remap_index 223 +#define GetnMapdvARB_remap_index 224 +#define GetnMapfvARB_remap_index 225 +#define GetnMapivARB_remap_index 226 +#define GetnMinmaxARB_remap_index 227 +#define GetnPixelMapfvARB_remap_index 228 +#define GetnPixelMapuivARB_remap_index 229 +#define GetnPixelMapusvARB_remap_index 230 +#define GetnPolygonStippleARB_remap_index 231 +#define GetnSeparableFilterARB_remap_index 232 +#define GetnTexImageARB_remap_index 233 +#define GetnUniformdvARB_remap_index 234 +#define GetnUniformfvARB_remap_index 235 +#define GetnUniformivARB_remap_index 236 +#define GetnUniformuivARB_remap_index 237 +#define ReadnPixelsARB_remap_index 238 +#define PolygonOffsetEXT_remap_index 239 +#define GetPixelTexGenParameterfvSGIS_remap_index 240 +#define GetPixelTexGenParameterivSGIS_remap_index 241 +#define PixelTexGenParameterfSGIS_remap_index 242 +#define PixelTexGenParameterfvSGIS_remap_index 243 +#define PixelTexGenParameteriSGIS_remap_index 244 +#define PixelTexGenParameterivSGIS_remap_index 245 +#define SampleMaskSGIS_remap_index 246 +#define SamplePatternSGIS_remap_index 247 +#define ColorPointerEXT_remap_index 248 +#define EdgeFlagPointerEXT_remap_index 249 +#define IndexPointerEXT_remap_index 250 +#define NormalPointerEXT_remap_index 251 +#define TexCoordPointerEXT_remap_index 252 +#define VertexPointerEXT_remap_index 253 +#define PointParameterfEXT_remap_index 254 +#define PointParameterfvEXT_remap_index 255 +#define LockArraysEXT_remap_index 256 +#define UnlockArraysEXT_remap_index 257 +#define SecondaryColor3bEXT_remap_index 258 +#define SecondaryColor3bvEXT_remap_index 259 +#define SecondaryColor3dEXT_remap_index 260 +#define SecondaryColor3dvEXT_remap_index 261 +#define SecondaryColor3fEXT_remap_index 262 +#define SecondaryColor3fvEXT_remap_index 263 +#define SecondaryColor3iEXT_remap_index 264 +#define SecondaryColor3ivEXT_remap_index 265 +#define SecondaryColor3sEXT_remap_index 266 +#define SecondaryColor3svEXT_remap_index 267 +#define SecondaryColor3ubEXT_remap_index 268 +#define SecondaryColor3ubvEXT_remap_index 269 +#define SecondaryColor3uiEXT_remap_index 270 +#define SecondaryColor3uivEXT_remap_index 271 +#define SecondaryColor3usEXT_remap_index 272 +#define SecondaryColor3usvEXT_remap_index 273 +#define SecondaryColorPointerEXT_remap_index 274 +#define MultiDrawArraysEXT_remap_index 275 +#define MultiDrawElementsEXT_remap_index 276 +#define FogCoordPointerEXT_remap_index 277 +#define FogCoorddEXT_remap_index 278 +#define FogCoorddvEXT_remap_index 279 +#define FogCoordfEXT_remap_index 280 +#define FogCoordfvEXT_remap_index 281 +#define PixelTexGenSGIX_remap_index 282 +#define BlendFuncSeparateEXT_remap_index 283 +#define FlushVertexArrayRangeNV_remap_index 284 +#define VertexArrayRangeNV_remap_index 285 +#define CombinerInputNV_remap_index 286 +#define CombinerOutputNV_remap_index 287 +#define CombinerParameterfNV_remap_index 288 +#define CombinerParameterfvNV_remap_index 289 +#define CombinerParameteriNV_remap_index 290 +#define CombinerParameterivNV_remap_index 291 +#define FinalCombinerInputNV_remap_index 292 +#define GetCombinerInputParameterfvNV_remap_index 293 +#define GetCombinerInputParameterivNV_remap_index 294 +#define GetCombinerOutputParameterfvNV_remap_index 295 +#define GetCombinerOutputParameterivNV_remap_index 296 +#define GetFinalCombinerInputParameterfvNV_remap_index 297 +#define GetFinalCombinerInputParameterivNV_remap_index 298 +#define ResizeBuffersMESA_remap_index 299 +#define WindowPos2dMESA_remap_index 300 +#define WindowPos2dvMESA_remap_index 301 +#define WindowPos2fMESA_remap_index 302 +#define WindowPos2fvMESA_remap_index 303 +#define WindowPos2iMESA_remap_index 304 +#define WindowPos2ivMESA_remap_index 305 +#define WindowPos2sMESA_remap_index 306 +#define WindowPos2svMESA_remap_index 307 +#define WindowPos3dMESA_remap_index 308 +#define WindowPos3dvMESA_remap_index 309 +#define WindowPos3fMESA_remap_index 310 +#define WindowPos3fvMESA_remap_index 311 +#define WindowPos3iMESA_remap_index 312 +#define WindowPos3ivMESA_remap_index 313 +#define WindowPos3sMESA_remap_index 314 +#define WindowPos3svMESA_remap_index 315 +#define WindowPos4dMESA_remap_index 316 +#define WindowPos4dvMESA_remap_index 317 +#define WindowPos4fMESA_remap_index 318 +#define WindowPos4fvMESA_remap_index 319 +#define WindowPos4iMESA_remap_index 320 +#define WindowPos4ivMESA_remap_index 321 +#define WindowPos4sMESA_remap_index 322 +#define WindowPos4svMESA_remap_index 323 +#define MultiModeDrawArraysIBM_remap_index 324 +#define MultiModeDrawElementsIBM_remap_index 325 +#define DeleteFencesNV_remap_index 326 +#define FinishFenceNV_remap_index 327 +#define GenFencesNV_remap_index 328 +#define GetFenceivNV_remap_index 329 +#define IsFenceNV_remap_index 330 +#define SetFenceNV_remap_index 331 +#define TestFenceNV_remap_index 332 +#define AreProgramsResidentNV_remap_index 333 +#define BindProgramNV_remap_index 334 +#define DeleteProgramsNV_remap_index 335 +#define ExecuteProgramNV_remap_index 336 +#define GenProgramsNV_remap_index 337 +#define GetProgramParameterdvNV_remap_index 338 +#define GetProgramParameterfvNV_remap_index 339 +#define GetProgramStringNV_remap_index 340 +#define GetProgramivNV_remap_index 341 +#define GetTrackMatrixivNV_remap_index 342 +#define GetVertexAttribPointervNV_remap_index 343 +#define GetVertexAttribdvNV_remap_index 344 +#define GetVertexAttribfvNV_remap_index 345 +#define GetVertexAttribivNV_remap_index 346 +#define IsProgramNV_remap_index 347 +#define LoadProgramNV_remap_index 348 +#define ProgramParameters4dvNV_remap_index 349 +#define ProgramParameters4fvNV_remap_index 350 +#define RequestResidentProgramsNV_remap_index 351 +#define TrackMatrixNV_remap_index 352 +#define VertexAttrib1dNV_remap_index 353 +#define VertexAttrib1dvNV_remap_index 354 +#define VertexAttrib1fNV_remap_index 355 +#define VertexAttrib1fvNV_remap_index 356 +#define VertexAttrib1sNV_remap_index 357 +#define VertexAttrib1svNV_remap_index 358 +#define VertexAttrib2dNV_remap_index 359 +#define VertexAttrib2dvNV_remap_index 360 +#define VertexAttrib2fNV_remap_index 361 +#define VertexAttrib2fvNV_remap_index 362 +#define VertexAttrib2sNV_remap_index 363 +#define VertexAttrib2svNV_remap_index 364 +#define VertexAttrib3dNV_remap_index 365 +#define VertexAttrib3dvNV_remap_index 366 +#define VertexAttrib3fNV_remap_index 367 +#define VertexAttrib3fvNV_remap_index 368 +#define VertexAttrib3sNV_remap_index 369 +#define VertexAttrib3svNV_remap_index 370 +#define VertexAttrib4dNV_remap_index 371 +#define VertexAttrib4dvNV_remap_index 372 +#define VertexAttrib4fNV_remap_index 373 +#define VertexAttrib4fvNV_remap_index 374 +#define VertexAttrib4sNV_remap_index 375 +#define VertexAttrib4svNV_remap_index 376 +#define VertexAttrib4ubNV_remap_index 377 +#define VertexAttrib4ubvNV_remap_index 378 +#define VertexAttribPointerNV_remap_index 379 +#define VertexAttribs1dvNV_remap_index 380 +#define VertexAttribs1fvNV_remap_index 381 +#define VertexAttribs1svNV_remap_index 382 +#define VertexAttribs2dvNV_remap_index 383 +#define VertexAttribs2fvNV_remap_index 384 +#define VertexAttribs2svNV_remap_index 385 +#define VertexAttribs3dvNV_remap_index 386 +#define VertexAttribs3fvNV_remap_index 387 +#define VertexAttribs3svNV_remap_index 388 +#define VertexAttribs4dvNV_remap_index 389 +#define VertexAttribs4fvNV_remap_index 390 +#define VertexAttribs4svNV_remap_index 391 +#define VertexAttribs4ubvNV_remap_index 392 +#define GetTexBumpParameterfvATI_remap_index 393 +#define GetTexBumpParameterivATI_remap_index 394 +#define TexBumpParameterfvATI_remap_index 395 +#define TexBumpParameterivATI_remap_index 396 +#define AlphaFragmentOp1ATI_remap_index 397 +#define AlphaFragmentOp2ATI_remap_index 398 +#define AlphaFragmentOp3ATI_remap_index 399 +#define BeginFragmentShaderATI_remap_index 400 +#define BindFragmentShaderATI_remap_index 401 +#define ColorFragmentOp1ATI_remap_index 402 +#define ColorFragmentOp2ATI_remap_index 403 +#define ColorFragmentOp3ATI_remap_index 404 +#define DeleteFragmentShaderATI_remap_index 405 +#define EndFragmentShaderATI_remap_index 406 +#define GenFragmentShadersATI_remap_index 407 +#define PassTexCoordATI_remap_index 408 +#define SampleMapATI_remap_index 409 +#define SetFragmentShaderConstantATI_remap_index 410 +#define PointParameteriNV_remap_index 411 +#define PointParameterivNV_remap_index 412 +#define ActiveStencilFaceEXT_remap_index 413 +#define BindVertexArrayAPPLE_remap_index 414 +#define DeleteVertexArraysAPPLE_remap_index 415 +#define GenVertexArraysAPPLE_remap_index 416 +#define IsVertexArrayAPPLE_remap_index 417 +#define GetProgramNamedParameterdvNV_remap_index 418 +#define GetProgramNamedParameterfvNV_remap_index 419 +#define ProgramNamedParameter4dNV_remap_index 420 +#define ProgramNamedParameter4dvNV_remap_index 421 +#define ProgramNamedParameter4fNV_remap_index 422 +#define ProgramNamedParameter4fvNV_remap_index 423 +#define PrimitiveRestartIndexNV_remap_index 424 +#define PrimitiveRestartNV_remap_index 425 +#define DepthBoundsEXT_remap_index 426 +#define BlendEquationSeparateEXT_remap_index 427 +#define BindFramebufferEXT_remap_index 428 +#define BindRenderbufferEXT_remap_index 429 +#define CheckFramebufferStatusEXT_remap_index 430 +#define DeleteFramebuffersEXT_remap_index 431 +#define DeleteRenderbuffersEXT_remap_index 432 +#define FramebufferRenderbufferEXT_remap_index 433 +#define FramebufferTexture1DEXT_remap_index 434 +#define FramebufferTexture2DEXT_remap_index 435 +#define FramebufferTexture3DEXT_remap_index 436 +#define GenFramebuffersEXT_remap_index 437 +#define GenRenderbuffersEXT_remap_index 438 +#define GenerateMipmapEXT_remap_index 439 +#define GetFramebufferAttachmentParameterivEXT_remap_index 440 +#define GetRenderbufferParameterivEXT_remap_index 441 +#define IsFramebufferEXT_remap_index 442 +#define IsRenderbufferEXT_remap_index 443 +#define RenderbufferStorageEXT_remap_index 444 +#define BlitFramebufferEXT_remap_index 445 +#define BufferParameteriAPPLE_remap_index 446 +#define FlushMappedBufferRangeAPPLE_remap_index 447 +#define BindFragDataLocationEXT_remap_index 448 +#define GetFragDataLocationEXT_remap_index 449 +#define GetUniformuivEXT_remap_index 450 +#define GetVertexAttribIivEXT_remap_index 451 +#define GetVertexAttribIuivEXT_remap_index 452 +#define Uniform1uiEXT_remap_index 453 +#define Uniform1uivEXT_remap_index 454 +#define Uniform2uiEXT_remap_index 455 +#define Uniform2uivEXT_remap_index 456 +#define Uniform3uiEXT_remap_index 457 +#define Uniform3uivEXT_remap_index 458 +#define Uniform4uiEXT_remap_index 459 +#define Uniform4uivEXT_remap_index 460 +#define VertexAttribI1iEXT_remap_index 461 +#define VertexAttribI1ivEXT_remap_index 462 +#define VertexAttribI1uiEXT_remap_index 463 +#define VertexAttribI1uivEXT_remap_index 464 +#define VertexAttribI2iEXT_remap_index 465 +#define VertexAttribI2ivEXT_remap_index 466 +#define VertexAttribI2uiEXT_remap_index 467 +#define VertexAttribI2uivEXT_remap_index 468 +#define VertexAttribI3iEXT_remap_index 469 +#define VertexAttribI3ivEXT_remap_index 470 +#define VertexAttribI3uiEXT_remap_index 471 +#define VertexAttribI3uivEXT_remap_index 472 +#define VertexAttribI4bvEXT_remap_index 473 +#define VertexAttribI4iEXT_remap_index 474 +#define VertexAttribI4ivEXT_remap_index 475 +#define VertexAttribI4svEXT_remap_index 476 +#define VertexAttribI4ubvEXT_remap_index 477 +#define VertexAttribI4uiEXT_remap_index 478 +#define VertexAttribI4uivEXT_remap_index 479 +#define VertexAttribI4usvEXT_remap_index 480 +#define VertexAttribIPointerEXT_remap_index 481 +#define FramebufferTextureLayerEXT_remap_index 482 +#define ColorMaskIndexedEXT_remap_index 483 +#define DisableIndexedEXT_remap_index 484 +#define EnableIndexedEXT_remap_index 485 +#define GetBooleanIndexedvEXT_remap_index 486 +#define GetIntegerIndexedvEXT_remap_index 487 +#define IsEnabledIndexedEXT_remap_index 488 +#define ClearColorIiEXT_remap_index 489 +#define ClearColorIuiEXT_remap_index 490 +#define GetTexParameterIivEXT_remap_index 491 +#define GetTexParameterIuivEXT_remap_index 492 +#define TexParameterIivEXT_remap_index 493 +#define TexParameterIuivEXT_remap_index 494 +#define BeginConditionalRenderNV_remap_index 495 +#define EndConditionalRenderNV_remap_index 496 +#define BeginTransformFeedbackEXT_remap_index 497 +#define BindBufferBaseEXT_remap_index 498 +#define BindBufferOffsetEXT_remap_index 499 +#define BindBufferRangeEXT_remap_index 500 +#define EndTransformFeedbackEXT_remap_index 501 +#define GetTransformFeedbackVaryingEXT_remap_index 502 +#define TransformFeedbackVaryingsEXT_remap_index 503 +#define ProvokingVertexEXT_remap_index 504 +#define GetTexParameterPointervAPPLE_remap_index 505 +#define TextureRangeAPPLE_remap_index 506 +#define GetObjectParameterivAPPLE_remap_index 507 +#define ObjectPurgeableAPPLE_remap_index 508 +#define ObjectUnpurgeableAPPLE_remap_index 509 +#define ActiveProgramEXT_remap_index 510 +#define CreateShaderProgramEXT_remap_index 511 +#define UseShaderProgramEXT_remap_index 512 +#define TextureBarrierNV_remap_index 513 +#define StencilFuncSeparateATI_remap_index 514 +#define ProgramEnvParameters4fvEXT_remap_index 515 +#define ProgramLocalParameters4fvEXT_remap_index 516 +#define GetQueryObjecti64vEXT_remap_index 517 +#define GetQueryObjectui64vEXT_remap_index 518 +#define EGLImageTargetRenderbufferStorageOES_remap_index 519 +#define EGLImageTargetTexture2DOES_remap_index 520 + +#define _gloffset_AttachShader driDispatchRemapTable[AttachShader_remap_index] +#define _gloffset_CreateProgram driDispatchRemapTable[CreateProgram_remap_index] +#define _gloffset_CreateShader driDispatchRemapTable[CreateShader_remap_index] +#define _gloffset_DeleteProgram driDispatchRemapTable[DeleteProgram_remap_index] +#define _gloffset_DeleteShader driDispatchRemapTable[DeleteShader_remap_index] +#define _gloffset_DetachShader driDispatchRemapTable[DetachShader_remap_index] +#define _gloffset_GetAttachedShaders driDispatchRemapTable[GetAttachedShaders_remap_index] +#define _gloffset_GetProgramInfoLog driDispatchRemapTable[GetProgramInfoLog_remap_index] +#define _gloffset_GetProgramiv driDispatchRemapTable[GetProgramiv_remap_index] +#define _gloffset_GetShaderInfoLog driDispatchRemapTable[GetShaderInfoLog_remap_index] +#define _gloffset_GetShaderiv driDispatchRemapTable[GetShaderiv_remap_index] +#define _gloffset_IsProgram driDispatchRemapTable[IsProgram_remap_index] +#define _gloffset_IsShader driDispatchRemapTable[IsShader_remap_index] +#define _gloffset_StencilFuncSeparate driDispatchRemapTable[StencilFuncSeparate_remap_index] +#define _gloffset_StencilMaskSeparate driDispatchRemapTable[StencilMaskSeparate_remap_index] +#define _gloffset_StencilOpSeparate driDispatchRemapTable[StencilOpSeparate_remap_index] +#define _gloffset_UniformMatrix2x3fv driDispatchRemapTable[UniformMatrix2x3fv_remap_index] +#define _gloffset_UniformMatrix2x4fv driDispatchRemapTable[UniformMatrix2x4fv_remap_index] +#define _gloffset_UniformMatrix3x2fv driDispatchRemapTable[UniformMatrix3x2fv_remap_index] +#define _gloffset_UniformMatrix3x4fv driDispatchRemapTable[UniformMatrix3x4fv_remap_index] +#define _gloffset_UniformMatrix4x2fv driDispatchRemapTable[UniformMatrix4x2fv_remap_index] +#define _gloffset_UniformMatrix4x3fv driDispatchRemapTable[UniformMatrix4x3fv_remap_index] +#define _gloffset_ClampColor driDispatchRemapTable[ClampColor_remap_index] +#define _gloffset_ClearBufferfi driDispatchRemapTable[ClearBufferfi_remap_index] +#define _gloffset_ClearBufferfv driDispatchRemapTable[ClearBufferfv_remap_index] +#define _gloffset_ClearBufferiv driDispatchRemapTable[ClearBufferiv_remap_index] +#define _gloffset_ClearBufferuiv driDispatchRemapTable[ClearBufferuiv_remap_index] +#define _gloffset_GetStringi driDispatchRemapTable[GetStringi_remap_index] +#define _gloffset_TexBuffer driDispatchRemapTable[TexBuffer_remap_index] +#define _gloffset_FramebufferTexture driDispatchRemapTable[FramebufferTexture_remap_index] +#define _gloffset_GetBufferParameteri64v driDispatchRemapTable[GetBufferParameteri64v_remap_index] +#define _gloffset_GetInteger64i_v driDispatchRemapTable[GetInteger64i_v_remap_index] +#define _gloffset_VertexAttribDivisor driDispatchRemapTable[VertexAttribDivisor_remap_index] +#define _gloffset_LoadTransposeMatrixdARB driDispatchRemapTable[LoadTransposeMatrixdARB_remap_index] +#define _gloffset_LoadTransposeMatrixfARB driDispatchRemapTable[LoadTransposeMatrixfARB_remap_index] +#define _gloffset_MultTransposeMatrixdARB driDispatchRemapTable[MultTransposeMatrixdARB_remap_index] +#define _gloffset_MultTransposeMatrixfARB driDispatchRemapTable[MultTransposeMatrixfARB_remap_index] +#define _gloffset_SampleCoverageARB driDispatchRemapTable[SampleCoverageARB_remap_index] +#define _gloffset_CompressedTexImage1DARB driDispatchRemapTable[CompressedTexImage1DARB_remap_index] +#define _gloffset_CompressedTexImage2DARB driDispatchRemapTable[CompressedTexImage2DARB_remap_index] +#define _gloffset_CompressedTexImage3DARB driDispatchRemapTable[CompressedTexImage3DARB_remap_index] +#define _gloffset_CompressedTexSubImage1DARB driDispatchRemapTable[CompressedTexSubImage1DARB_remap_index] +#define _gloffset_CompressedTexSubImage2DARB driDispatchRemapTable[CompressedTexSubImage2DARB_remap_index] +#define _gloffset_CompressedTexSubImage3DARB driDispatchRemapTable[CompressedTexSubImage3DARB_remap_index] +#define _gloffset_GetCompressedTexImageARB driDispatchRemapTable[GetCompressedTexImageARB_remap_index] +#define _gloffset_DisableVertexAttribArrayARB driDispatchRemapTable[DisableVertexAttribArrayARB_remap_index] +#define _gloffset_EnableVertexAttribArrayARB driDispatchRemapTable[EnableVertexAttribArrayARB_remap_index] +#define _gloffset_GetProgramEnvParameterdvARB driDispatchRemapTable[GetProgramEnvParameterdvARB_remap_index] +#define _gloffset_GetProgramEnvParameterfvARB driDispatchRemapTable[GetProgramEnvParameterfvARB_remap_index] +#define _gloffset_GetProgramLocalParameterdvARB driDispatchRemapTable[GetProgramLocalParameterdvARB_remap_index] +#define _gloffset_GetProgramLocalParameterfvARB driDispatchRemapTable[GetProgramLocalParameterfvARB_remap_index] +#define _gloffset_GetProgramStringARB driDispatchRemapTable[GetProgramStringARB_remap_index] +#define _gloffset_GetProgramivARB driDispatchRemapTable[GetProgramivARB_remap_index] +#define _gloffset_GetVertexAttribdvARB driDispatchRemapTable[GetVertexAttribdvARB_remap_index] +#define _gloffset_GetVertexAttribfvARB driDispatchRemapTable[GetVertexAttribfvARB_remap_index] +#define _gloffset_GetVertexAttribivARB driDispatchRemapTable[GetVertexAttribivARB_remap_index] +#define _gloffset_ProgramEnvParameter4dARB driDispatchRemapTable[ProgramEnvParameter4dARB_remap_index] +#define _gloffset_ProgramEnvParameter4dvARB driDispatchRemapTable[ProgramEnvParameter4dvARB_remap_index] +#define _gloffset_ProgramEnvParameter4fARB driDispatchRemapTable[ProgramEnvParameter4fARB_remap_index] +#define _gloffset_ProgramEnvParameter4fvARB driDispatchRemapTable[ProgramEnvParameter4fvARB_remap_index] +#define _gloffset_ProgramLocalParameter4dARB driDispatchRemapTable[ProgramLocalParameter4dARB_remap_index] +#define _gloffset_ProgramLocalParameter4dvARB driDispatchRemapTable[ProgramLocalParameter4dvARB_remap_index] +#define _gloffset_ProgramLocalParameter4fARB driDispatchRemapTable[ProgramLocalParameter4fARB_remap_index] +#define _gloffset_ProgramLocalParameter4fvARB driDispatchRemapTable[ProgramLocalParameter4fvARB_remap_index] +#define _gloffset_ProgramStringARB driDispatchRemapTable[ProgramStringARB_remap_index] +#define _gloffset_VertexAttrib1dARB driDispatchRemapTable[VertexAttrib1dARB_remap_index] +#define _gloffset_VertexAttrib1dvARB driDispatchRemapTable[VertexAttrib1dvARB_remap_index] +#define _gloffset_VertexAttrib1fARB driDispatchRemapTable[VertexAttrib1fARB_remap_index] +#define _gloffset_VertexAttrib1fvARB driDispatchRemapTable[VertexAttrib1fvARB_remap_index] +#define _gloffset_VertexAttrib1sARB driDispatchRemapTable[VertexAttrib1sARB_remap_index] +#define _gloffset_VertexAttrib1svARB driDispatchRemapTable[VertexAttrib1svARB_remap_index] +#define _gloffset_VertexAttrib2dARB driDispatchRemapTable[VertexAttrib2dARB_remap_index] +#define _gloffset_VertexAttrib2dvARB driDispatchRemapTable[VertexAttrib2dvARB_remap_index] +#define _gloffset_VertexAttrib2fARB driDispatchRemapTable[VertexAttrib2fARB_remap_index] +#define _gloffset_VertexAttrib2fvARB driDispatchRemapTable[VertexAttrib2fvARB_remap_index] +#define _gloffset_VertexAttrib2sARB driDispatchRemapTable[VertexAttrib2sARB_remap_index] +#define _gloffset_VertexAttrib2svARB driDispatchRemapTable[VertexAttrib2svARB_remap_index] +#define _gloffset_VertexAttrib3dARB driDispatchRemapTable[VertexAttrib3dARB_remap_index] +#define _gloffset_VertexAttrib3dvARB driDispatchRemapTable[VertexAttrib3dvARB_remap_index] +#define _gloffset_VertexAttrib3fARB driDispatchRemapTable[VertexAttrib3fARB_remap_index] +#define _gloffset_VertexAttrib3fvARB driDispatchRemapTable[VertexAttrib3fvARB_remap_index] +#define _gloffset_VertexAttrib3sARB driDispatchRemapTable[VertexAttrib3sARB_remap_index] +#define _gloffset_VertexAttrib3svARB driDispatchRemapTable[VertexAttrib3svARB_remap_index] +#define _gloffset_VertexAttrib4NbvARB driDispatchRemapTable[VertexAttrib4NbvARB_remap_index] +#define _gloffset_VertexAttrib4NivARB driDispatchRemapTable[VertexAttrib4NivARB_remap_index] +#define _gloffset_VertexAttrib4NsvARB driDispatchRemapTable[VertexAttrib4NsvARB_remap_index] +#define _gloffset_VertexAttrib4NubARB driDispatchRemapTable[VertexAttrib4NubARB_remap_index] +#define _gloffset_VertexAttrib4NubvARB driDispatchRemapTable[VertexAttrib4NubvARB_remap_index] +#define _gloffset_VertexAttrib4NuivARB driDispatchRemapTable[VertexAttrib4NuivARB_remap_index] +#define _gloffset_VertexAttrib4NusvARB driDispatchRemapTable[VertexAttrib4NusvARB_remap_index] +#define _gloffset_VertexAttrib4bvARB driDispatchRemapTable[VertexAttrib4bvARB_remap_index] +#define _gloffset_VertexAttrib4dARB driDispatchRemapTable[VertexAttrib4dARB_remap_index] +#define _gloffset_VertexAttrib4dvARB driDispatchRemapTable[VertexAttrib4dvARB_remap_index] +#define _gloffset_VertexAttrib4fARB driDispatchRemapTable[VertexAttrib4fARB_remap_index] +#define _gloffset_VertexAttrib4fvARB driDispatchRemapTable[VertexAttrib4fvARB_remap_index] +#define _gloffset_VertexAttrib4ivARB driDispatchRemapTable[VertexAttrib4ivARB_remap_index] +#define _gloffset_VertexAttrib4sARB driDispatchRemapTable[VertexAttrib4sARB_remap_index] +#define _gloffset_VertexAttrib4svARB driDispatchRemapTable[VertexAttrib4svARB_remap_index] +#define _gloffset_VertexAttrib4ubvARB driDispatchRemapTable[VertexAttrib4ubvARB_remap_index] +#define _gloffset_VertexAttrib4uivARB driDispatchRemapTable[VertexAttrib4uivARB_remap_index] +#define _gloffset_VertexAttrib4usvARB driDispatchRemapTable[VertexAttrib4usvARB_remap_index] +#define _gloffset_VertexAttribPointerARB driDispatchRemapTable[VertexAttribPointerARB_remap_index] +#define _gloffset_BindBufferARB driDispatchRemapTable[BindBufferARB_remap_index] +#define _gloffset_BufferDataARB driDispatchRemapTable[BufferDataARB_remap_index] +#define _gloffset_BufferSubDataARB driDispatchRemapTable[BufferSubDataARB_remap_index] +#define _gloffset_DeleteBuffersARB driDispatchRemapTable[DeleteBuffersARB_remap_index] +#define _gloffset_GenBuffersARB driDispatchRemapTable[GenBuffersARB_remap_index] +#define _gloffset_GetBufferParameterivARB driDispatchRemapTable[GetBufferParameterivARB_remap_index] +#define _gloffset_GetBufferPointervARB driDispatchRemapTable[GetBufferPointervARB_remap_index] +#define _gloffset_GetBufferSubDataARB driDispatchRemapTable[GetBufferSubDataARB_remap_index] +#define _gloffset_IsBufferARB driDispatchRemapTable[IsBufferARB_remap_index] +#define _gloffset_MapBufferARB driDispatchRemapTable[MapBufferARB_remap_index] +#define _gloffset_UnmapBufferARB driDispatchRemapTable[UnmapBufferARB_remap_index] +#define _gloffset_BeginQueryARB driDispatchRemapTable[BeginQueryARB_remap_index] +#define _gloffset_DeleteQueriesARB driDispatchRemapTable[DeleteQueriesARB_remap_index] +#define _gloffset_EndQueryARB driDispatchRemapTable[EndQueryARB_remap_index] +#define _gloffset_GenQueriesARB driDispatchRemapTable[GenQueriesARB_remap_index] +#define _gloffset_GetQueryObjectivARB driDispatchRemapTable[GetQueryObjectivARB_remap_index] +#define _gloffset_GetQueryObjectuivARB driDispatchRemapTable[GetQueryObjectuivARB_remap_index] +#define _gloffset_GetQueryivARB driDispatchRemapTable[GetQueryivARB_remap_index] +#define _gloffset_IsQueryARB driDispatchRemapTable[IsQueryARB_remap_index] +#define _gloffset_AttachObjectARB driDispatchRemapTable[AttachObjectARB_remap_index] +#define _gloffset_CompileShaderARB driDispatchRemapTable[CompileShaderARB_remap_index] +#define _gloffset_CreateProgramObjectARB driDispatchRemapTable[CreateProgramObjectARB_remap_index] +#define _gloffset_CreateShaderObjectARB driDispatchRemapTable[CreateShaderObjectARB_remap_index] +#define _gloffset_DeleteObjectARB driDispatchRemapTable[DeleteObjectARB_remap_index] +#define _gloffset_DetachObjectARB driDispatchRemapTable[DetachObjectARB_remap_index] +#define _gloffset_GetActiveUniformARB driDispatchRemapTable[GetActiveUniformARB_remap_index] +#define _gloffset_GetAttachedObjectsARB driDispatchRemapTable[GetAttachedObjectsARB_remap_index] +#define _gloffset_GetHandleARB driDispatchRemapTable[GetHandleARB_remap_index] +#define _gloffset_GetInfoLogARB driDispatchRemapTable[GetInfoLogARB_remap_index] +#define _gloffset_GetObjectParameterfvARB driDispatchRemapTable[GetObjectParameterfvARB_remap_index] +#define _gloffset_GetObjectParameterivARB driDispatchRemapTable[GetObjectParameterivARB_remap_index] +#define _gloffset_GetShaderSourceARB driDispatchRemapTable[GetShaderSourceARB_remap_index] +#define _gloffset_GetUniformLocationARB driDispatchRemapTable[GetUniformLocationARB_remap_index] +#define _gloffset_GetUniformfvARB driDispatchRemapTable[GetUniformfvARB_remap_index] +#define _gloffset_GetUniformivARB driDispatchRemapTable[GetUniformivARB_remap_index] +#define _gloffset_LinkProgramARB driDispatchRemapTable[LinkProgramARB_remap_index] +#define _gloffset_ShaderSourceARB driDispatchRemapTable[ShaderSourceARB_remap_index] +#define _gloffset_Uniform1fARB driDispatchRemapTable[Uniform1fARB_remap_index] +#define _gloffset_Uniform1fvARB driDispatchRemapTable[Uniform1fvARB_remap_index] +#define _gloffset_Uniform1iARB driDispatchRemapTable[Uniform1iARB_remap_index] +#define _gloffset_Uniform1ivARB driDispatchRemapTable[Uniform1ivARB_remap_index] +#define _gloffset_Uniform2fARB driDispatchRemapTable[Uniform2fARB_remap_index] +#define _gloffset_Uniform2fvARB driDispatchRemapTable[Uniform2fvARB_remap_index] +#define _gloffset_Uniform2iARB driDispatchRemapTable[Uniform2iARB_remap_index] +#define _gloffset_Uniform2ivARB driDispatchRemapTable[Uniform2ivARB_remap_index] +#define _gloffset_Uniform3fARB driDispatchRemapTable[Uniform3fARB_remap_index] +#define _gloffset_Uniform3fvARB driDispatchRemapTable[Uniform3fvARB_remap_index] +#define _gloffset_Uniform3iARB driDispatchRemapTable[Uniform3iARB_remap_index] +#define _gloffset_Uniform3ivARB driDispatchRemapTable[Uniform3ivARB_remap_index] +#define _gloffset_Uniform4fARB driDispatchRemapTable[Uniform4fARB_remap_index] +#define _gloffset_Uniform4fvARB driDispatchRemapTable[Uniform4fvARB_remap_index] +#define _gloffset_Uniform4iARB driDispatchRemapTable[Uniform4iARB_remap_index] +#define _gloffset_Uniform4ivARB driDispatchRemapTable[Uniform4ivARB_remap_index] +#define _gloffset_UniformMatrix2fvARB driDispatchRemapTable[UniformMatrix2fvARB_remap_index] +#define _gloffset_UniformMatrix3fvARB driDispatchRemapTable[UniformMatrix3fvARB_remap_index] +#define _gloffset_UniformMatrix4fvARB driDispatchRemapTable[UniformMatrix4fvARB_remap_index] +#define _gloffset_UseProgramObjectARB driDispatchRemapTable[UseProgramObjectARB_remap_index] +#define _gloffset_ValidateProgramARB driDispatchRemapTable[ValidateProgramARB_remap_index] +#define _gloffset_BindAttribLocationARB driDispatchRemapTable[BindAttribLocationARB_remap_index] +#define _gloffset_GetActiveAttribARB driDispatchRemapTable[GetActiveAttribARB_remap_index] +#define _gloffset_GetAttribLocationARB driDispatchRemapTable[GetAttribLocationARB_remap_index] +#define _gloffset_DrawBuffersARB driDispatchRemapTable[DrawBuffersARB_remap_index] +#define _gloffset_ClampColorARB driDispatchRemapTable[ClampColorARB_remap_index] +#define _gloffset_DrawArraysInstancedARB driDispatchRemapTable[DrawArraysInstancedARB_remap_index] +#define _gloffset_DrawElementsInstancedARB driDispatchRemapTable[DrawElementsInstancedARB_remap_index] +#define _gloffset_RenderbufferStorageMultisample driDispatchRemapTable[RenderbufferStorageMultisample_remap_index] +#define _gloffset_FramebufferTextureARB driDispatchRemapTable[FramebufferTextureARB_remap_index] +#define _gloffset_FramebufferTextureFaceARB driDispatchRemapTable[FramebufferTextureFaceARB_remap_index] +#define _gloffset_ProgramParameteriARB driDispatchRemapTable[ProgramParameteriARB_remap_index] +#define _gloffset_VertexAttribDivisorARB driDispatchRemapTable[VertexAttribDivisorARB_remap_index] +#define _gloffset_FlushMappedBufferRange driDispatchRemapTable[FlushMappedBufferRange_remap_index] +#define _gloffset_MapBufferRange driDispatchRemapTable[MapBufferRange_remap_index] +#define _gloffset_TexBufferARB driDispatchRemapTable[TexBufferARB_remap_index] +#define _gloffset_BindVertexArray driDispatchRemapTable[BindVertexArray_remap_index] +#define _gloffset_GenVertexArrays driDispatchRemapTable[GenVertexArrays_remap_index] +#define _gloffset_CopyBufferSubData driDispatchRemapTable[CopyBufferSubData_remap_index] +#define _gloffset_ClientWaitSync driDispatchRemapTable[ClientWaitSync_remap_index] +#define _gloffset_DeleteSync driDispatchRemapTable[DeleteSync_remap_index] +#define _gloffset_FenceSync driDispatchRemapTable[FenceSync_remap_index] +#define _gloffset_GetInteger64v driDispatchRemapTable[GetInteger64v_remap_index] +#define _gloffset_GetSynciv driDispatchRemapTable[GetSynciv_remap_index] +#define _gloffset_IsSync driDispatchRemapTable[IsSync_remap_index] +#define _gloffset_WaitSync driDispatchRemapTable[WaitSync_remap_index] +#define _gloffset_DrawElementsBaseVertex driDispatchRemapTable[DrawElementsBaseVertex_remap_index] +#define _gloffset_DrawElementsInstancedBaseVertex driDispatchRemapTable[DrawElementsInstancedBaseVertex_remap_index] +#define _gloffset_DrawRangeElementsBaseVertex driDispatchRemapTable[DrawRangeElementsBaseVertex_remap_index] +#define _gloffset_MultiDrawElementsBaseVertex driDispatchRemapTable[MultiDrawElementsBaseVertex_remap_index] +#define _gloffset_BlendEquationSeparateiARB driDispatchRemapTable[BlendEquationSeparateiARB_remap_index] +#define _gloffset_BlendEquationiARB driDispatchRemapTable[BlendEquationiARB_remap_index] +#define _gloffset_BlendFuncSeparateiARB driDispatchRemapTable[BlendFuncSeparateiARB_remap_index] +#define _gloffset_BlendFunciARB driDispatchRemapTable[BlendFunciARB_remap_index] +#define _gloffset_BindSampler driDispatchRemapTable[BindSampler_remap_index] +#define _gloffset_DeleteSamplers driDispatchRemapTable[DeleteSamplers_remap_index] +#define _gloffset_GenSamplers driDispatchRemapTable[GenSamplers_remap_index] +#define _gloffset_GetSamplerParameterIiv driDispatchRemapTable[GetSamplerParameterIiv_remap_index] +#define _gloffset_GetSamplerParameterIuiv driDispatchRemapTable[GetSamplerParameterIuiv_remap_index] +#define _gloffset_GetSamplerParameterfv driDispatchRemapTable[GetSamplerParameterfv_remap_index] +#define _gloffset_GetSamplerParameteriv driDispatchRemapTable[GetSamplerParameteriv_remap_index] +#define _gloffset_IsSampler driDispatchRemapTable[IsSampler_remap_index] +#define _gloffset_SamplerParameterIiv driDispatchRemapTable[SamplerParameterIiv_remap_index] +#define _gloffset_SamplerParameterIuiv driDispatchRemapTable[SamplerParameterIuiv_remap_index] +#define _gloffset_SamplerParameterf driDispatchRemapTable[SamplerParameterf_remap_index] +#define _gloffset_SamplerParameterfv driDispatchRemapTable[SamplerParameterfv_remap_index] +#define _gloffset_SamplerParameteri driDispatchRemapTable[SamplerParameteri_remap_index] +#define _gloffset_SamplerParameteriv driDispatchRemapTable[SamplerParameteriv_remap_index] +#define _gloffset_BindTransformFeedback driDispatchRemapTable[BindTransformFeedback_remap_index] +#define _gloffset_DeleteTransformFeedbacks driDispatchRemapTable[DeleteTransformFeedbacks_remap_index] +#define _gloffset_DrawTransformFeedback driDispatchRemapTable[DrawTransformFeedback_remap_index] +#define _gloffset_GenTransformFeedbacks driDispatchRemapTable[GenTransformFeedbacks_remap_index] +#define _gloffset_IsTransformFeedback driDispatchRemapTable[IsTransformFeedback_remap_index] +#define _gloffset_PauseTransformFeedback driDispatchRemapTable[PauseTransformFeedback_remap_index] +#define _gloffset_ResumeTransformFeedback driDispatchRemapTable[ResumeTransformFeedback_remap_index] +#define _gloffset_ClearDepthf driDispatchRemapTable[ClearDepthf_remap_index] +#define _gloffset_DepthRangef driDispatchRemapTable[DepthRangef_remap_index] +#define _gloffset_GetShaderPrecisionFormat driDispatchRemapTable[GetShaderPrecisionFormat_remap_index] +#define _gloffset_ReleaseShaderCompiler driDispatchRemapTable[ReleaseShaderCompiler_remap_index] +#define _gloffset_ShaderBinary driDispatchRemapTable[ShaderBinary_remap_index] +#define _gloffset_GetGraphicsResetStatusARB driDispatchRemapTable[GetGraphicsResetStatusARB_remap_index] +#define _gloffset_GetnColorTableARB driDispatchRemapTable[GetnColorTableARB_remap_index] +#define _gloffset_GetnCompressedTexImageARB driDispatchRemapTable[GetnCompressedTexImageARB_remap_index] +#define _gloffset_GetnConvolutionFilterARB driDispatchRemapTable[GetnConvolutionFilterARB_remap_index] +#define _gloffset_GetnHistogramARB driDispatchRemapTable[GetnHistogramARB_remap_index] +#define _gloffset_GetnMapdvARB driDispatchRemapTable[GetnMapdvARB_remap_index] +#define _gloffset_GetnMapfvARB driDispatchRemapTable[GetnMapfvARB_remap_index] +#define _gloffset_GetnMapivARB driDispatchRemapTable[GetnMapivARB_remap_index] +#define _gloffset_GetnMinmaxARB driDispatchRemapTable[GetnMinmaxARB_remap_index] +#define _gloffset_GetnPixelMapfvARB driDispatchRemapTable[GetnPixelMapfvARB_remap_index] +#define _gloffset_GetnPixelMapuivARB driDispatchRemapTable[GetnPixelMapuivARB_remap_index] +#define _gloffset_GetnPixelMapusvARB driDispatchRemapTable[GetnPixelMapusvARB_remap_index] +#define _gloffset_GetnPolygonStippleARB driDispatchRemapTable[GetnPolygonStippleARB_remap_index] +#define _gloffset_GetnSeparableFilterARB driDispatchRemapTable[GetnSeparableFilterARB_remap_index] +#define _gloffset_GetnTexImageARB driDispatchRemapTable[GetnTexImageARB_remap_index] +#define _gloffset_GetnUniformdvARB driDispatchRemapTable[GetnUniformdvARB_remap_index] +#define _gloffset_GetnUniformfvARB driDispatchRemapTable[GetnUniformfvARB_remap_index] +#define _gloffset_GetnUniformivARB driDispatchRemapTable[GetnUniformivARB_remap_index] +#define _gloffset_GetnUniformuivARB driDispatchRemapTable[GetnUniformuivARB_remap_index] +#define _gloffset_ReadnPixelsARB driDispatchRemapTable[ReadnPixelsARB_remap_index] +#define _gloffset_PolygonOffsetEXT driDispatchRemapTable[PolygonOffsetEXT_remap_index] +#define _gloffset_GetPixelTexGenParameterfvSGIS driDispatchRemapTable[GetPixelTexGenParameterfvSGIS_remap_index] +#define _gloffset_GetPixelTexGenParameterivSGIS driDispatchRemapTable[GetPixelTexGenParameterivSGIS_remap_index] +#define _gloffset_PixelTexGenParameterfSGIS driDispatchRemapTable[PixelTexGenParameterfSGIS_remap_index] +#define _gloffset_PixelTexGenParameterfvSGIS driDispatchRemapTable[PixelTexGenParameterfvSGIS_remap_index] +#define _gloffset_PixelTexGenParameteriSGIS driDispatchRemapTable[PixelTexGenParameteriSGIS_remap_index] +#define _gloffset_PixelTexGenParameterivSGIS driDispatchRemapTable[PixelTexGenParameterivSGIS_remap_index] +#define _gloffset_SampleMaskSGIS driDispatchRemapTable[SampleMaskSGIS_remap_index] +#define _gloffset_SamplePatternSGIS driDispatchRemapTable[SamplePatternSGIS_remap_index] +#define _gloffset_ColorPointerEXT driDispatchRemapTable[ColorPointerEXT_remap_index] +#define _gloffset_EdgeFlagPointerEXT driDispatchRemapTable[EdgeFlagPointerEXT_remap_index] +#define _gloffset_IndexPointerEXT driDispatchRemapTable[IndexPointerEXT_remap_index] +#define _gloffset_NormalPointerEXT driDispatchRemapTable[NormalPointerEXT_remap_index] +#define _gloffset_TexCoordPointerEXT driDispatchRemapTable[TexCoordPointerEXT_remap_index] +#define _gloffset_VertexPointerEXT driDispatchRemapTable[VertexPointerEXT_remap_index] +#define _gloffset_PointParameterfEXT driDispatchRemapTable[PointParameterfEXT_remap_index] +#define _gloffset_PointParameterfvEXT driDispatchRemapTable[PointParameterfvEXT_remap_index] +#define _gloffset_LockArraysEXT driDispatchRemapTable[LockArraysEXT_remap_index] +#define _gloffset_UnlockArraysEXT driDispatchRemapTable[UnlockArraysEXT_remap_index] +#define _gloffset_SecondaryColor3bEXT driDispatchRemapTable[SecondaryColor3bEXT_remap_index] +#define _gloffset_SecondaryColor3bvEXT driDispatchRemapTable[SecondaryColor3bvEXT_remap_index] +#define _gloffset_SecondaryColor3dEXT driDispatchRemapTable[SecondaryColor3dEXT_remap_index] +#define _gloffset_SecondaryColor3dvEXT driDispatchRemapTable[SecondaryColor3dvEXT_remap_index] +#define _gloffset_SecondaryColor3fEXT driDispatchRemapTable[SecondaryColor3fEXT_remap_index] +#define _gloffset_SecondaryColor3fvEXT driDispatchRemapTable[SecondaryColor3fvEXT_remap_index] +#define _gloffset_SecondaryColor3iEXT driDispatchRemapTable[SecondaryColor3iEXT_remap_index] +#define _gloffset_SecondaryColor3ivEXT driDispatchRemapTable[SecondaryColor3ivEXT_remap_index] +#define _gloffset_SecondaryColor3sEXT driDispatchRemapTable[SecondaryColor3sEXT_remap_index] +#define _gloffset_SecondaryColor3svEXT driDispatchRemapTable[SecondaryColor3svEXT_remap_index] +#define _gloffset_SecondaryColor3ubEXT driDispatchRemapTable[SecondaryColor3ubEXT_remap_index] +#define _gloffset_SecondaryColor3ubvEXT driDispatchRemapTable[SecondaryColor3ubvEXT_remap_index] +#define _gloffset_SecondaryColor3uiEXT driDispatchRemapTable[SecondaryColor3uiEXT_remap_index] +#define _gloffset_SecondaryColor3uivEXT driDispatchRemapTable[SecondaryColor3uivEXT_remap_index] +#define _gloffset_SecondaryColor3usEXT driDispatchRemapTable[SecondaryColor3usEXT_remap_index] +#define _gloffset_SecondaryColor3usvEXT driDispatchRemapTable[SecondaryColor3usvEXT_remap_index] +#define _gloffset_SecondaryColorPointerEXT driDispatchRemapTable[SecondaryColorPointerEXT_remap_index] +#define _gloffset_MultiDrawArraysEXT driDispatchRemapTable[MultiDrawArraysEXT_remap_index] +#define _gloffset_MultiDrawElementsEXT driDispatchRemapTable[MultiDrawElementsEXT_remap_index] +#define _gloffset_FogCoordPointerEXT driDispatchRemapTable[FogCoordPointerEXT_remap_index] +#define _gloffset_FogCoorddEXT driDispatchRemapTable[FogCoorddEXT_remap_index] +#define _gloffset_FogCoorddvEXT driDispatchRemapTable[FogCoorddvEXT_remap_index] +#define _gloffset_FogCoordfEXT driDispatchRemapTable[FogCoordfEXT_remap_index] +#define _gloffset_FogCoordfvEXT driDispatchRemapTable[FogCoordfvEXT_remap_index] +#define _gloffset_PixelTexGenSGIX driDispatchRemapTable[PixelTexGenSGIX_remap_index] +#define _gloffset_BlendFuncSeparateEXT driDispatchRemapTable[BlendFuncSeparateEXT_remap_index] +#define _gloffset_FlushVertexArrayRangeNV driDispatchRemapTable[FlushVertexArrayRangeNV_remap_index] +#define _gloffset_VertexArrayRangeNV driDispatchRemapTable[VertexArrayRangeNV_remap_index] +#define _gloffset_CombinerInputNV driDispatchRemapTable[CombinerInputNV_remap_index] +#define _gloffset_CombinerOutputNV driDispatchRemapTable[CombinerOutputNV_remap_index] +#define _gloffset_CombinerParameterfNV driDispatchRemapTable[CombinerParameterfNV_remap_index] +#define _gloffset_CombinerParameterfvNV driDispatchRemapTable[CombinerParameterfvNV_remap_index] +#define _gloffset_CombinerParameteriNV driDispatchRemapTable[CombinerParameteriNV_remap_index] +#define _gloffset_CombinerParameterivNV driDispatchRemapTable[CombinerParameterivNV_remap_index] +#define _gloffset_FinalCombinerInputNV driDispatchRemapTable[FinalCombinerInputNV_remap_index] +#define _gloffset_GetCombinerInputParameterfvNV driDispatchRemapTable[GetCombinerInputParameterfvNV_remap_index] +#define _gloffset_GetCombinerInputParameterivNV driDispatchRemapTable[GetCombinerInputParameterivNV_remap_index] +#define _gloffset_GetCombinerOutputParameterfvNV driDispatchRemapTable[GetCombinerOutputParameterfvNV_remap_index] +#define _gloffset_GetCombinerOutputParameterivNV driDispatchRemapTable[GetCombinerOutputParameterivNV_remap_index] +#define _gloffset_GetFinalCombinerInputParameterfvNV driDispatchRemapTable[GetFinalCombinerInputParameterfvNV_remap_index] +#define _gloffset_GetFinalCombinerInputParameterivNV driDispatchRemapTable[GetFinalCombinerInputParameterivNV_remap_index] +#define _gloffset_ResizeBuffersMESA driDispatchRemapTable[ResizeBuffersMESA_remap_index] +#define _gloffset_WindowPos2dMESA driDispatchRemapTable[WindowPos2dMESA_remap_index] +#define _gloffset_WindowPos2dvMESA driDispatchRemapTable[WindowPos2dvMESA_remap_index] +#define _gloffset_WindowPos2fMESA driDispatchRemapTable[WindowPos2fMESA_remap_index] +#define _gloffset_WindowPos2fvMESA driDispatchRemapTable[WindowPos2fvMESA_remap_index] +#define _gloffset_WindowPos2iMESA driDispatchRemapTable[WindowPos2iMESA_remap_index] +#define _gloffset_WindowPos2ivMESA driDispatchRemapTable[WindowPos2ivMESA_remap_index] +#define _gloffset_WindowPos2sMESA driDispatchRemapTable[WindowPos2sMESA_remap_index] +#define _gloffset_WindowPos2svMESA driDispatchRemapTable[WindowPos2svMESA_remap_index] +#define _gloffset_WindowPos3dMESA driDispatchRemapTable[WindowPos3dMESA_remap_index] +#define _gloffset_WindowPos3dvMESA driDispatchRemapTable[WindowPos3dvMESA_remap_index] +#define _gloffset_WindowPos3fMESA driDispatchRemapTable[WindowPos3fMESA_remap_index] +#define _gloffset_WindowPos3fvMESA driDispatchRemapTable[WindowPos3fvMESA_remap_index] +#define _gloffset_WindowPos3iMESA driDispatchRemapTable[WindowPos3iMESA_remap_index] +#define _gloffset_WindowPos3ivMESA driDispatchRemapTable[WindowPos3ivMESA_remap_index] +#define _gloffset_WindowPos3sMESA driDispatchRemapTable[WindowPos3sMESA_remap_index] +#define _gloffset_WindowPos3svMESA driDispatchRemapTable[WindowPos3svMESA_remap_index] +#define _gloffset_WindowPos4dMESA driDispatchRemapTable[WindowPos4dMESA_remap_index] +#define _gloffset_WindowPos4dvMESA driDispatchRemapTable[WindowPos4dvMESA_remap_index] +#define _gloffset_WindowPos4fMESA driDispatchRemapTable[WindowPos4fMESA_remap_index] +#define _gloffset_WindowPos4fvMESA driDispatchRemapTable[WindowPos4fvMESA_remap_index] +#define _gloffset_WindowPos4iMESA driDispatchRemapTable[WindowPos4iMESA_remap_index] +#define _gloffset_WindowPos4ivMESA driDispatchRemapTable[WindowPos4ivMESA_remap_index] +#define _gloffset_WindowPos4sMESA driDispatchRemapTable[WindowPos4sMESA_remap_index] +#define _gloffset_WindowPos4svMESA driDispatchRemapTable[WindowPos4svMESA_remap_index] +#define _gloffset_MultiModeDrawArraysIBM driDispatchRemapTable[MultiModeDrawArraysIBM_remap_index] +#define _gloffset_MultiModeDrawElementsIBM driDispatchRemapTable[MultiModeDrawElementsIBM_remap_index] +#define _gloffset_DeleteFencesNV driDispatchRemapTable[DeleteFencesNV_remap_index] +#define _gloffset_FinishFenceNV driDispatchRemapTable[FinishFenceNV_remap_index] +#define _gloffset_GenFencesNV driDispatchRemapTable[GenFencesNV_remap_index] +#define _gloffset_GetFenceivNV driDispatchRemapTable[GetFenceivNV_remap_index] +#define _gloffset_IsFenceNV driDispatchRemapTable[IsFenceNV_remap_index] +#define _gloffset_SetFenceNV driDispatchRemapTable[SetFenceNV_remap_index] +#define _gloffset_TestFenceNV driDispatchRemapTable[TestFenceNV_remap_index] +#define _gloffset_AreProgramsResidentNV driDispatchRemapTable[AreProgramsResidentNV_remap_index] +#define _gloffset_BindProgramNV driDispatchRemapTable[BindProgramNV_remap_index] +#define _gloffset_DeleteProgramsNV driDispatchRemapTable[DeleteProgramsNV_remap_index] +#define _gloffset_ExecuteProgramNV driDispatchRemapTable[ExecuteProgramNV_remap_index] +#define _gloffset_GenProgramsNV driDispatchRemapTable[GenProgramsNV_remap_index] +#define _gloffset_GetProgramParameterdvNV driDispatchRemapTable[GetProgramParameterdvNV_remap_index] +#define _gloffset_GetProgramParameterfvNV driDispatchRemapTable[GetProgramParameterfvNV_remap_index] +#define _gloffset_GetProgramStringNV driDispatchRemapTable[GetProgramStringNV_remap_index] +#define _gloffset_GetProgramivNV driDispatchRemapTable[GetProgramivNV_remap_index] +#define _gloffset_GetTrackMatrixivNV driDispatchRemapTable[GetTrackMatrixivNV_remap_index] +#define _gloffset_GetVertexAttribPointervNV driDispatchRemapTable[GetVertexAttribPointervNV_remap_index] +#define _gloffset_GetVertexAttribdvNV driDispatchRemapTable[GetVertexAttribdvNV_remap_index] +#define _gloffset_GetVertexAttribfvNV driDispatchRemapTable[GetVertexAttribfvNV_remap_index] +#define _gloffset_GetVertexAttribivNV driDispatchRemapTable[GetVertexAttribivNV_remap_index] +#define _gloffset_IsProgramNV driDispatchRemapTable[IsProgramNV_remap_index] +#define _gloffset_LoadProgramNV driDispatchRemapTable[LoadProgramNV_remap_index] +#define _gloffset_ProgramParameters4dvNV driDispatchRemapTable[ProgramParameters4dvNV_remap_index] +#define _gloffset_ProgramParameters4fvNV driDispatchRemapTable[ProgramParameters4fvNV_remap_index] +#define _gloffset_RequestResidentProgramsNV driDispatchRemapTable[RequestResidentProgramsNV_remap_index] +#define _gloffset_TrackMatrixNV driDispatchRemapTable[TrackMatrixNV_remap_index] +#define _gloffset_VertexAttrib1dNV driDispatchRemapTable[VertexAttrib1dNV_remap_index] +#define _gloffset_VertexAttrib1dvNV driDispatchRemapTable[VertexAttrib1dvNV_remap_index] +#define _gloffset_VertexAttrib1fNV driDispatchRemapTable[VertexAttrib1fNV_remap_index] +#define _gloffset_VertexAttrib1fvNV driDispatchRemapTable[VertexAttrib1fvNV_remap_index] +#define _gloffset_VertexAttrib1sNV driDispatchRemapTable[VertexAttrib1sNV_remap_index] +#define _gloffset_VertexAttrib1svNV driDispatchRemapTable[VertexAttrib1svNV_remap_index] +#define _gloffset_VertexAttrib2dNV driDispatchRemapTable[VertexAttrib2dNV_remap_index] +#define _gloffset_VertexAttrib2dvNV driDispatchRemapTable[VertexAttrib2dvNV_remap_index] +#define _gloffset_VertexAttrib2fNV driDispatchRemapTable[VertexAttrib2fNV_remap_index] +#define _gloffset_VertexAttrib2fvNV driDispatchRemapTable[VertexAttrib2fvNV_remap_index] +#define _gloffset_VertexAttrib2sNV driDispatchRemapTable[VertexAttrib2sNV_remap_index] +#define _gloffset_VertexAttrib2svNV driDispatchRemapTable[VertexAttrib2svNV_remap_index] +#define _gloffset_VertexAttrib3dNV driDispatchRemapTable[VertexAttrib3dNV_remap_index] +#define _gloffset_VertexAttrib3dvNV driDispatchRemapTable[VertexAttrib3dvNV_remap_index] +#define _gloffset_VertexAttrib3fNV driDispatchRemapTable[VertexAttrib3fNV_remap_index] +#define _gloffset_VertexAttrib3fvNV driDispatchRemapTable[VertexAttrib3fvNV_remap_index] +#define _gloffset_VertexAttrib3sNV driDispatchRemapTable[VertexAttrib3sNV_remap_index] +#define _gloffset_VertexAttrib3svNV driDispatchRemapTable[VertexAttrib3svNV_remap_index] +#define _gloffset_VertexAttrib4dNV driDispatchRemapTable[VertexAttrib4dNV_remap_index] +#define _gloffset_VertexAttrib4dvNV driDispatchRemapTable[VertexAttrib4dvNV_remap_index] +#define _gloffset_VertexAttrib4fNV driDispatchRemapTable[VertexAttrib4fNV_remap_index] +#define _gloffset_VertexAttrib4fvNV driDispatchRemapTable[VertexAttrib4fvNV_remap_index] +#define _gloffset_VertexAttrib4sNV driDispatchRemapTable[VertexAttrib4sNV_remap_index] +#define _gloffset_VertexAttrib4svNV driDispatchRemapTable[VertexAttrib4svNV_remap_index] +#define _gloffset_VertexAttrib4ubNV driDispatchRemapTable[VertexAttrib4ubNV_remap_index] +#define _gloffset_VertexAttrib4ubvNV driDispatchRemapTable[VertexAttrib4ubvNV_remap_index] +#define _gloffset_VertexAttribPointerNV driDispatchRemapTable[VertexAttribPointerNV_remap_index] +#define _gloffset_VertexAttribs1dvNV driDispatchRemapTable[VertexAttribs1dvNV_remap_index] +#define _gloffset_VertexAttribs1fvNV driDispatchRemapTable[VertexAttribs1fvNV_remap_index] +#define _gloffset_VertexAttribs1svNV driDispatchRemapTable[VertexAttribs1svNV_remap_index] +#define _gloffset_VertexAttribs2dvNV driDispatchRemapTable[VertexAttribs2dvNV_remap_index] +#define _gloffset_VertexAttribs2fvNV driDispatchRemapTable[VertexAttribs2fvNV_remap_index] +#define _gloffset_VertexAttribs2svNV driDispatchRemapTable[VertexAttribs2svNV_remap_index] +#define _gloffset_VertexAttribs3dvNV driDispatchRemapTable[VertexAttribs3dvNV_remap_index] +#define _gloffset_VertexAttribs3fvNV driDispatchRemapTable[VertexAttribs3fvNV_remap_index] +#define _gloffset_VertexAttribs3svNV driDispatchRemapTable[VertexAttribs3svNV_remap_index] +#define _gloffset_VertexAttribs4dvNV driDispatchRemapTable[VertexAttribs4dvNV_remap_index] +#define _gloffset_VertexAttribs4fvNV driDispatchRemapTable[VertexAttribs4fvNV_remap_index] +#define _gloffset_VertexAttribs4svNV driDispatchRemapTable[VertexAttribs4svNV_remap_index] +#define _gloffset_VertexAttribs4ubvNV driDispatchRemapTable[VertexAttribs4ubvNV_remap_index] +#define _gloffset_GetTexBumpParameterfvATI driDispatchRemapTable[GetTexBumpParameterfvATI_remap_index] +#define _gloffset_GetTexBumpParameterivATI driDispatchRemapTable[GetTexBumpParameterivATI_remap_index] +#define _gloffset_TexBumpParameterfvATI driDispatchRemapTable[TexBumpParameterfvATI_remap_index] +#define _gloffset_TexBumpParameterivATI driDispatchRemapTable[TexBumpParameterivATI_remap_index] +#define _gloffset_AlphaFragmentOp1ATI driDispatchRemapTable[AlphaFragmentOp1ATI_remap_index] +#define _gloffset_AlphaFragmentOp2ATI driDispatchRemapTable[AlphaFragmentOp2ATI_remap_index] +#define _gloffset_AlphaFragmentOp3ATI driDispatchRemapTable[AlphaFragmentOp3ATI_remap_index] +#define _gloffset_BeginFragmentShaderATI driDispatchRemapTable[BeginFragmentShaderATI_remap_index] +#define _gloffset_BindFragmentShaderATI driDispatchRemapTable[BindFragmentShaderATI_remap_index] +#define _gloffset_ColorFragmentOp1ATI driDispatchRemapTable[ColorFragmentOp1ATI_remap_index] +#define _gloffset_ColorFragmentOp2ATI driDispatchRemapTable[ColorFragmentOp2ATI_remap_index] +#define _gloffset_ColorFragmentOp3ATI driDispatchRemapTable[ColorFragmentOp3ATI_remap_index] +#define _gloffset_DeleteFragmentShaderATI driDispatchRemapTable[DeleteFragmentShaderATI_remap_index] +#define _gloffset_EndFragmentShaderATI driDispatchRemapTable[EndFragmentShaderATI_remap_index] +#define _gloffset_GenFragmentShadersATI driDispatchRemapTable[GenFragmentShadersATI_remap_index] +#define _gloffset_PassTexCoordATI driDispatchRemapTable[PassTexCoordATI_remap_index] +#define _gloffset_SampleMapATI driDispatchRemapTable[SampleMapATI_remap_index] +#define _gloffset_SetFragmentShaderConstantATI driDispatchRemapTable[SetFragmentShaderConstantATI_remap_index] +#define _gloffset_PointParameteriNV driDispatchRemapTable[PointParameteriNV_remap_index] +#define _gloffset_PointParameterivNV driDispatchRemapTable[PointParameterivNV_remap_index] +#define _gloffset_ActiveStencilFaceEXT driDispatchRemapTable[ActiveStencilFaceEXT_remap_index] +#define _gloffset_BindVertexArrayAPPLE driDispatchRemapTable[BindVertexArrayAPPLE_remap_index] +#define _gloffset_DeleteVertexArraysAPPLE driDispatchRemapTable[DeleteVertexArraysAPPLE_remap_index] +#define _gloffset_GenVertexArraysAPPLE driDispatchRemapTable[GenVertexArraysAPPLE_remap_index] +#define _gloffset_IsVertexArrayAPPLE driDispatchRemapTable[IsVertexArrayAPPLE_remap_index] +#define _gloffset_GetProgramNamedParameterdvNV driDispatchRemapTable[GetProgramNamedParameterdvNV_remap_index] +#define _gloffset_GetProgramNamedParameterfvNV driDispatchRemapTable[GetProgramNamedParameterfvNV_remap_index] +#define _gloffset_ProgramNamedParameter4dNV driDispatchRemapTable[ProgramNamedParameter4dNV_remap_index] +#define _gloffset_ProgramNamedParameter4dvNV driDispatchRemapTable[ProgramNamedParameter4dvNV_remap_index] +#define _gloffset_ProgramNamedParameter4fNV driDispatchRemapTable[ProgramNamedParameter4fNV_remap_index] +#define _gloffset_ProgramNamedParameter4fvNV driDispatchRemapTable[ProgramNamedParameter4fvNV_remap_index] +#define _gloffset_PrimitiveRestartIndexNV driDispatchRemapTable[PrimitiveRestartIndexNV_remap_index] +#define _gloffset_PrimitiveRestartNV driDispatchRemapTable[PrimitiveRestartNV_remap_index] +#define _gloffset_DepthBoundsEXT driDispatchRemapTable[DepthBoundsEXT_remap_index] +#define _gloffset_BlendEquationSeparateEXT driDispatchRemapTable[BlendEquationSeparateEXT_remap_index] +#define _gloffset_BindFramebufferEXT driDispatchRemapTable[BindFramebufferEXT_remap_index] +#define _gloffset_BindRenderbufferEXT driDispatchRemapTable[BindRenderbufferEXT_remap_index] +#define _gloffset_CheckFramebufferStatusEXT driDispatchRemapTable[CheckFramebufferStatusEXT_remap_index] +#define _gloffset_DeleteFramebuffersEXT driDispatchRemapTable[DeleteFramebuffersEXT_remap_index] +#define _gloffset_DeleteRenderbuffersEXT driDispatchRemapTable[DeleteRenderbuffersEXT_remap_index] +#define _gloffset_FramebufferRenderbufferEXT driDispatchRemapTable[FramebufferRenderbufferEXT_remap_index] +#define _gloffset_FramebufferTexture1DEXT driDispatchRemapTable[FramebufferTexture1DEXT_remap_index] +#define _gloffset_FramebufferTexture2DEXT driDispatchRemapTable[FramebufferTexture2DEXT_remap_index] +#define _gloffset_FramebufferTexture3DEXT driDispatchRemapTable[FramebufferTexture3DEXT_remap_index] +#define _gloffset_GenFramebuffersEXT driDispatchRemapTable[GenFramebuffersEXT_remap_index] +#define _gloffset_GenRenderbuffersEXT driDispatchRemapTable[GenRenderbuffersEXT_remap_index] +#define _gloffset_GenerateMipmapEXT driDispatchRemapTable[GenerateMipmapEXT_remap_index] +#define _gloffset_GetFramebufferAttachmentParameterivEXT driDispatchRemapTable[GetFramebufferAttachmentParameterivEXT_remap_index] +#define _gloffset_GetRenderbufferParameterivEXT driDispatchRemapTable[GetRenderbufferParameterivEXT_remap_index] +#define _gloffset_IsFramebufferEXT driDispatchRemapTable[IsFramebufferEXT_remap_index] +#define _gloffset_IsRenderbufferEXT driDispatchRemapTable[IsRenderbufferEXT_remap_index] +#define _gloffset_RenderbufferStorageEXT driDispatchRemapTable[RenderbufferStorageEXT_remap_index] +#define _gloffset_BlitFramebufferEXT driDispatchRemapTable[BlitFramebufferEXT_remap_index] +#define _gloffset_BufferParameteriAPPLE driDispatchRemapTable[BufferParameteriAPPLE_remap_index] +#define _gloffset_FlushMappedBufferRangeAPPLE driDispatchRemapTable[FlushMappedBufferRangeAPPLE_remap_index] +#define _gloffset_BindFragDataLocationEXT driDispatchRemapTable[BindFragDataLocationEXT_remap_index] +#define _gloffset_GetFragDataLocationEXT driDispatchRemapTable[GetFragDataLocationEXT_remap_index] +#define _gloffset_GetUniformuivEXT driDispatchRemapTable[GetUniformuivEXT_remap_index] +#define _gloffset_GetVertexAttribIivEXT driDispatchRemapTable[GetVertexAttribIivEXT_remap_index] +#define _gloffset_GetVertexAttribIuivEXT driDispatchRemapTable[GetVertexAttribIuivEXT_remap_index] +#define _gloffset_Uniform1uiEXT driDispatchRemapTable[Uniform1uiEXT_remap_index] +#define _gloffset_Uniform1uivEXT driDispatchRemapTable[Uniform1uivEXT_remap_index] +#define _gloffset_Uniform2uiEXT driDispatchRemapTable[Uniform2uiEXT_remap_index] +#define _gloffset_Uniform2uivEXT driDispatchRemapTable[Uniform2uivEXT_remap_index] +#define _gloffset_Uniform3uiEXT driDispatchRemapTable[Uniform3uiEXT_remap_index] +#define _gloffset_Uniform3uivEXT driDispatchRemapTable[Uniform3uivEXT_remap_index] +#define _gloffset_Uniform4uiEXT driDispatchRemapTable[Uniform4uiEXT_remap_index] +#define _gloffset_Uniform4uivEXT driDispatchRemapTable[Uniform4uivEXT_remap_index] +#define _gloffset_VertexAttribI1iEXT driDispatchRemapTable[VertexAttribI1iEXT_remap_index] +#define _gloffset_VertexAttribI1ivEXT driDispatchRemapTable[VertexAttribI1ivEXT_remap_index] +#define _gloffset_VertexAttribI1uiEXT driDispatchRemapTable[VertexAttribI1uiEXT_remap_index] +#define _gloffset_VertexAttribI1uivEXT driDispatchRemapTable[VertexAttribI1uivEXT_remap_index] +#define _gloffset_VertexAttribI2iEXT driDispatchRemapTable[VertexAttribI2iEXT_remap_index] +#define _gloffset_VertexAttribI2ivEXT driDispatchRemapTable[VertexAttribI2ivEXT_remap_index] +#define _gloffset_VertexAttribI2uiEXT driDispatchRemapTable[VertexAttribI2uiEXT_remap_index] +#define _gloffset_VertexAttribI2uivEXT driDispatchRemapTable[VertexAttribI2uivEXT_remap_index] +#define _gloffset_VertexAttribI3iEXT driDispatchRemapTable[VertexAttribI3iEXT_remap_index] +#define _gloffset_VertexAttribI3ivEXT driDispatchRemapTable[VertexAttribI3ivEXT_remap_index] +#define _gloffset_VertexAttribI3uiEXT driDispatchRemapTable[VertexAttribI3uiEXT_remap_index] +#define _gloffset_VertexAttribI3uivEXT driDispatchRemapTable[VertexAttribI3uivEXT_remap_index] +#define _gloffset_VertexAttribI4bvEXT driDispatchRemapTable[VertexAttribI4bvEXT_remap_index] +#define _gloffset_VertexAttribI4iEXT driDispatchRemapTable[VertexAttribI4iEXT_remap_index] +#define _gloffset_VertexAttribI4ivEXT driDispatchRemapTable[VertexAttribI4ivEXT_remap_index] +#define _gloffset_VertexAttribI4svEXT driDispatchRemapTable[VertexAttribI4svEXT_remap_index] +#define _gloffset_VertexAttribI4ubvEXT driDispatchRemapTable[VertexAttribI4ubvEXT_remap_index] +#define _gloffset_VertexAttribI4uiEXT driDispatchRemapTable[VertexAttribI4uiEXT_remap_index] +#define _gloffset_VertexAttribI4uivEXT driDispatchRemapTable[VertexAttribI4uivEXT_remap_index] +#define _gloffset_VertexAttribI4usvEXT driDispatchRemapTable[VertexAttribI4usvEXT_remap_index] +#define _gloffset_VertexAttribIPointerEXT driDispatchRemapTable[VertexAttribIPointerEXT_remap_index] +#define _gloffset_FramebufferTextureLayerEXT driDispatchRemapTable[FramebufferTextureLayerEXT_remap_index] +#define _gloffset_ColorMaskIndexedEXT driDispatchRemapTable[ColorMaskIndexedEXT_remap_index] +#define _gloffset_DisableIndexedEXT driDispatchRemapTable[DisableIndexedEXT_remap_index] +#define _gloffset_EnableIndexedEXT driDispatchRemapTable[EnableIndexedEXT_remap_index] +#define _gloffset_GetBooleanIndexedvEXT driDispatchRemapTable[GetBooleanIndexedvEXT_remap_index] +#define _gloffset_GetIntegerIndexedvEXT driDispatchRemapTable[GetIntegerIndexedvEXT_remap_index] +#define _gloffset_IsEnabledIndexedEXT driDispatchRemapTable[IsEnabledIndexedEXT_remap_index] +#define _gloffset_ClearColorIiEXT driDispatchRemapTable[ClearColorIiEXT_remap_index] +#define _gloffset_ClearColorIuiEXT driDispatchRemapTable[ClearColorIuiEXT_remap_index] +#define _gloffset_GetTexParameterIivEXT driDispatchRemapTable[GetTexParameterIivEXT_remap_index] +#define _gloffset_GetTexParameterIuivEXT driDispatchRemapTable[GetTexParameterIuivEXT_remap_index] +#define _gloffset_TexParameterIivEXT driDispatchRemapTable[TexParameterIivEXT_remap_index] +#define _gloffset_TexParameterIuivEXT driDispatchRemapTable[TexParameterIuivEXT_remap_index] +#define _gloffset_BeginConditionalRenderNV driDispatchRemapTable[BeginConditionalRenderNV_remap_index] +#define _gloffset_EndConditionalRenderNV driDispatchRemapTable[EndConditionalRenderNV_remap_index] +#define _gloffset_BeginTransformFeedbackEXT driDispatchRemapTable[BeginTransformFeedbackEXT_remap_index] +#define _gloffset_BindBufferBaseEXT driDispatchRemapTable[BindBufferBaseEXT_remap_index] +#define _gloffset_BindBufferOffsetEXT driDispatchRemapTable[BindBufferOffsetEXT_remap_index] +#define _gloffset_BindBufferRangeEXT driDispatchRemapTable[BindBufferRangeEXT_remap_index] +#define _gloffset_EndTransformFeedbackEXT driDispatchRemapTable[EndTransformFeedbackEXT_remap_index] +#define _gloffset_GetTransformFeedbackVaryingEXT driDispatchRemapTable[GetTransformFeedbackVaryingEXT_remap_index] +#define _gloffset_TransformFeedbackVaryingsEXT driDispatchRemapTable[TransformFeedbackVaryingsEXT_remap_index] +#define _gloffset_ProvokingVertexEXT driDispatchRemapTable[ProvokingVertexEXT_remap_index] +#define _gloffset_GetTexParameterPointervAPPLE driDispatchRemapTable[GetTexParameterPointervAPPLE_remap_index] +#define _gloffset_TextureRangeAPPLE driDispatchRemapTable[TextureRangeAPPLE_remap_index] +#define _gloffset_GetObjectParameterivAPPLE driDispatchRemapTable[GetObjectParameterivAPPLE_remap_index] +#define _gloffset_ObjectPurgeableAPPLE driDispatchRemapTable[ObjectPurgeableAPPLE_remap_index] +#define _gloffset_ObjectUnpurgeableAPPLE driDispatchRemapTable[ObjectUnpurgeableAPPLE_remap_index] +#define _gloffset_ActiveProgramEXT driDispatchRemapTable[ActiveProgramEXT_remap_index] +#define _gloffset_CreateShaderProgramEXT driDispatchRemapTable[CreateShaderProgramEXT_remap_index] +#define _gloffset_UseShaderProgramEXT driDispatchRemapTable[UseShaderProgramEXT_remap_index] +#define _gloffset_TextureBarrierNV driDispatchRemapTable[TextureBarrierNV_remap_index] +#define _gloffset_StencilFuncSeparateATI driDispatchRemapTable[StencilFuncSeparateATI_remap_index] +#define _gloffset_ProgramEnvParameters4fvEXT driDispatchRemapTable[ProgramEnvParameters4fvEXT_remap_index] +#define _gloffset_ProgramLocalParameters4fvEXT driDispatchRemapTable[ProgramLocalParameters4fvEXT_remap_index] +#define _gloffset_GetQueryObjecti64vEXT driDispatchRemapTable[GetQueryObjecti64vEXT_remap_index] +#define _gloffset_GetQueryObjectui64vEXT driDispatchRemapTable[GetQueryObjectui64vEXT_remap_index] +#define _gloffset_EGLImageTargetRenderbufferStorageOES driDispatchRemapTable[EGLImageTargetRenderbufferStorageOES_remap_index] +#define _gloffset_EGLImageTargetTexture2DOES driDispatchRemapTable[EGLImageTargetTexture2DOES_remap_index] + +#endif /* !FEATURE_remap_table */ + +typedef void (GLAPIENTRYP _glptr_NewList)(GLuint, GLenum); +#define CALL_NewList(disp, parameters) \ + (* GET_NewList(disp)) parameters +static INLINE _glptr_NewList GET_NewList(struct _glapi_table *disp) { + return (_glptr_NewList) (GET_by_offset(disp, _gloffset_NewList)); +} + +static INLINE void SET_NewList(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum)) { + SET_by_offset(disp, _gloffset_NewList, fn); +} + +typedef void (GLAPIENTRYP _glptr_EndList)(void); +#define CALL_EndList(disp, parameters) \ + (* GET_EndList(disp)) parameters +static INLINE _glptr_EndList GET_EndList(struct _glapi_table *disp) { + return (_glptr_EndList) (GET_by_offset(disp, _gloffset_EndList)); +} + +static INLINE void SET_EndList(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_EndList, fn); +} + +typedef void (GLAPIENTRYP _glptr_CallList)(GLuint); +#define CALL_CallList(disp, parameters) \ + (* GET_CallList(disp)) parameters +static INLINE _glptr_CallList GET_CallList(struct _glapi_table *disp) { + return (_glptr_CallList) (GET_by_offset(disp, _gloffset_CallList)); +} + +static INLINE void SET_CallList(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_CallList, fn); +} + +typedef void (GLAPIENTRYP _glptr_CallLists)(GLsizei, GLenum, const GLvoid *); +#define CALL_CallLists(disp, parameters) \ + (* GET_CallLists(disp)) parameters +static INLINE _glptr_CallLists GET_CallLists(struct _glapi_table *disp) { + return (_glptr_CallLists) (GET_by_offset(disp, _gloffset_CallLists)); +} + +static INLINE void SET_CallLists(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_CallLists, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteLists)(GLuint, GLsizei); +#define CALL_DeleteLists(disp, parameters) \ + (* GET_DeleteLists(disp)) parameters +static INLINE _glptr_DeleteLists GET_DeleteLists(struct _glapi_table *disp) { + return (_glptr_DeleteLists) (GET_by_offset(disp, _gloffset_DeleteLists)); +} + +static INLINE void SET_DeleteLists(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei)) { + SET_by_offset(disp, _gloffset_DeleteLists, fn); +} + +typedef GLuint (GLAPIENTRYP _glptr_GenLists)(GLsizei); +#define CALL_GenLists(disp, parameters) \ + (* GET_GenLists(disp)) parameters +static INLINE _glptr_GenLists GET_GenLists(struct _glapi_table *disp) { + return (_glptr_GenLists) (GET_by_offset(disp, _gloffset_GenLists)); +} + +static INLINE void SET_GenLists(struct _glapi_table *disp, GLuint (GLAPIENTRYP fn)(GLsizei)) { + SET_by_offset(disp, _gloffset_GenLists, fn); +} + +typedef void (GLAPIENTRYP _glptr_ListBase)(GLuint); +#define CALL_ListBase(disp, parameters) \ + (* GET_ListBase(disp)) parameters +static INLINE _glptr_ListBase GET_ListBase(struct _glapi_table *disp) { + return (_glptr_ListBase) (GET_by_offset(disp, _gloffset_ListBase)); +} + +static INLINE void SET_ListBase(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_ListBase, fn); +} + +typedef void (GLAPIENTRYP _glptr_Begin)(GLenum); +#define CALL_Begin(disp, parameters) \ + (* GET_Begin(disp)) parameters +static INLINE _glptr_Begin GET_Begin(struct _glapi_table *disp) { + return (_glptr_Begin) (GET_by_offset(disp, _gloffset_Begin)); +} + +static INLINE void SET_Begin(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_Begin, fn); +} + +typedef void (GLAPIENTRYP _glptr_Bitmap)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *); +#define CALL_Bitmap(disp, parameters) \ + (* GET_Bitmap(disp)) parameters +static INLINE _glptr_Bitmap GET_Bitmap(struct _glapi_table *disp) { + return (_glptr_Bitmap) (GET_by_offset(disp, _gloffset_Bitmap)); +} + +static INLINE void SET_Bitmap(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *)) { + SET_by_offset(disp, _gloffset_Bitmap, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3b)(GLbyte, GLbyte, GLbyte); +#define CALL_Color3b(disp, parameters) \ + (* GET_Color3b(disp)) parameters +static INLINE _glptr_Color3b GET_Color3b(struct _glapi_table *disp) { + return (_glptr_Color3b) (GET_by_offset(disp, _gloffset_Color3b)); +} + +static INLINE void SET_Color3b(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbyte, GLbyte, GLbyte)) { + SET_by_offset(disp, _gloffset_Color3b, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3bv)(const GLbyte *); +#define CALL_Color3bv(disp, parameters) \ + (* GET_Color3bv(disp)) parameters +static INLINE _glptr_Color3bv GET_Color3bv(struct _glapi_table *disp) { + return (_glptr_Color3bv) (GET_by_offset(disp, _gloffset_Color3bv)); +} + +static INLINE void SET_Color3bv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLbyte *)) { + SET_by_offset(disp, _gloffset_Color3bv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3d)(GLdouble, GLdouble, GLdouble); +#define CALL_Color3d(disp, parameters) \ + (* GET_Color3d(disp)) parameters +static INLINE _glptr_Color3d GET_Color3d(struct _glapi_table *disp) { + return (_glptr_Color3d) (GET_by_offset(disp, _gloffset_Color3d)); +} + +static INLINE void SET_Color3d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_Color3d, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3dv)(const GLdouble *); +#define CALL_Color3dv(disp, parameters) \ + (* GET_Color3dv(disp)) parameters +static INLINE _glptr_Color3dv GET_Color3dv(struct _glapi_table *disp) { + return (_glptr_Color3dv) (GET_by_offset(disp, _gloffset_Color3dv)); +} + +static INLINE void SET_Color3dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_Color3dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3f)(GLfloat, GLfloat, GLfloat); +#define CALL_Color3f(disp, parameters) \ + (* GET_Color3f(disp)) parameters +static INLINE _glptr_Color3f GET_Color3f(struct _glapi_table *disp) { + return (_glptr_Color3f) (GET_by_offset(disp, _gloffset_Color3f)); +} + +static INLINE void SET_Color3f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_Color3f, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3fv)(const GLfloat *); +#define CALL_Color3fv(disp, parameters) \ + (* GET_Color3fv(disp)) parameters +static INLINE _glptr_Color3fv GET_Color3fv(struct _glapi_table *disp) { + return (_glptr_Color3fv) (GET_by_offset(disp, _gloffset_Color3fv)); +} + +static INLINE void SET_Color3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_Color3fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3i)(GLint, GLint, GLint); +#define CALL_Color3i(disp, parameters) \ + (* GET_Color3i(disp)) parameters +static INLINE _glptr_Color3i GET_Color3i(struct _glapi_table *disp) { + return (_glptr_Color3i) (GET_by_offset(disp, _gloffset_Color3i)); +} + +static INLINE void SET_Color3i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_Color3i, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3iv)(const GLint *); +#define CALL_Color3iv(disp, parameters) \ + (* GET_Color3iv(disp)) parameters +static INLINE _glptr_Color3iv GET_Color3iv(struct _glapi_table *disp) { + return (_glptr_Color3iv) (GET_by_offset(disp, _gloffset_Color3iv)); +} + +static INLINE void SET_Color3iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_Color3iv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3s)(GLshort, GLshort, GLshort); +#define CALL_Color3s(disp, parameters) \ + (* GET_Color3s(disp)) parameters +static INLINE _glptr_Color3s GET_Color3s(struct _glapi_table *disp) { + return (_glptr_Color3s) (GET_by_offset(disp, _gloffset_Color3s)); +} + +static INLINE void SET_Color3s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_Color3s, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3sv)(const GLshort *); +#define CALL_Color3sv(disp, parameters) \ + (* GET_Color3sv(disp)) parameters +static INLINE _glptr_Color3sv GET_Color3sv(struct _glapi_table *disp) { + return (_glptr_Color3sv) (GET_by_offset(disp, _gloffset_Color3sv)); +} + +static INLINE void SET_Color3sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_Color3sv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3ub)(GLubyte, GLubyte, GLubyte); +#define CALL_Color3ub(disp, parameters) \ + (* GET_Color3ub(disp)) parameters +static INLINE _glptr_Color3ub GET_Color3ub(struct _glapi_table *disp) { + return (_glptr_Color3ub) (GET_by_offset(disp, _gloffset_Color3ub)); +} + +static INLINE void SET_Color3ub(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLubyte, GLubyte, GLubyte)) { + SET_by_offset(disp, _gloffset_Color3ub, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3ubv)(const GLubyte *); +#define CALL_Color3ubv(disp, parameters) \ + (* GET_Color3ubv(disp)) parameters +static INLINE _glptr_Color3ubv GET_Color3ubv(struct _glapi_table *disp) { + return (_glptr_Color3ubv) (GET_by_offset(disp, _gloffset_Color3ubv)); +} + +static INLINE void SET_Color3ubv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLubyte *)) { + SET_by_offset(disp, _gloffset_Color3ubv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3ui)(GLuint, GLuint, GLuint); +#define CALL_Color3ui(disp, parameters) \ + (* GET_Color3ui(disp)) parameters +static INLINE _glptr_Color3ui GET_Color3ui(struct _glapi_table *disp) { + return (_glptr_Color3ui) (GET_by_offset(disp, _gloffset_Color3ui)); +} + +static INLINE void SET_Color3ui(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_Color3ui, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3uiv)(const GLuint *); +#define CALL_Color3uiv(disp, parameters) \ + (* GET_Color3uiv(disp)) parameters +static INLINE _glptr_Color3uiv GET_Color3uiv(struct _glapi_table *disp) { + return (_glptr_Color3uiv) (GET_by_offset(disp, _gloffset_Color3uiv)); +} + +static INLINE void SET_Color3uiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLuint *)) { + SET_by_offset(disp, _gloffset_Color3uiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3us)(GLushort, GLushort, GLushort); +#define CALL_Color3us(disp, parameters) \ + (* GET_Color3us(disp)) parameters +static INLINE _glptr_Color3us GET_Color3us(struct _glapi_table *disp) { + return (_glptr_Color3us) (GET_by_offset(disp, _gloffset_Color3us)); +} + +static INLINE void SET_Color3us(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLushort, GLushort, GLushort)) { + SET_by_offset(disp, _gloffset_Color3us, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color3usv)(const GLushort *); +#define CALL_Color3usv(disp, parameters) \ + (* GET_Color3usv(disp)) parameters +static INLINE _glptr_Color3usv GET_Color3usv(struct _glapi_table *disp) { + return (_glptr_Color3usv) (GET_by_offset(disp, _gloffset_Color3usv)); +} + +static INLINE void SET_Color3usv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLushort *)) { + SET_by_offset(disp, _gloffset_Color3usv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4b)(GLbyte, GLbyte, GLbyte, GLbyte); +#define CALL_Color4b(disp, parameters) \ + (* GET_Color4b(disp)) parameters +static INLINE _glptr_Color4b GET_Color4b(struct _glapi_table *disp) { + return (_glptr_Color4b) (GET_by_offset(disp, _gloffset_Color4b)); +} + +static INLINE void SET_Color4b(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbyte, GLbyte, GLbyte, GLbyte)) { + SET_by_offset(disp, _gloffset_Color4b, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4bv)(const GLbyte *); +#define CALL_Color4bv(disp, parameters) \ + (* GET_Color4bv(disp)) parameters +static INLINE _glptr_Color4bv GET_Color4bv(struct _glapi_table *disp) { + return (_glptr_Color4bv) (GET_by_offset(disp, _gloffset_Color4bv)); +} + +static INLINE void SET_Color4bv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLbyte *)) { + SET_by_offset(disp, _gloffset_Color4bv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4d)(GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_Color4d(disp, parameters) \ + (* GET_Color4d(disp)) parameters +static INLINE _glptr_Color4d GET_Color4d(struct _glapi_table *disp) { + return (_glptr_Color4d) (GET_by_offset(disp, _gloffset_Color4d)); +} + +static INLINE void SET_Color4d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_Color4d, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4dv)(const GLdouble *); +#define CALL_Color4dv(disp, parameters) \ + (* GET_Color4dv(disp)) parameters +static INLINE _glptr_Color4dv GET_Color4dv(struct _glapi_table *disp) { + return (_glptr_Color4dv) (GET_by_offset(disp, _gloffset_Color4dv)); +} + +static INLINE void SET_Color4dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_Color4dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4f)(GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_Color4f(disp, parameters) \ + (* GET_Color4f(disp)) parameters +static INLINE _glptr_Color4f GET_Color4f(struct _glapi_table *disp) { + return (_glptr_Color4f) (GET_by_offset(disp, _gloffset_Color4f)); +} + +static INLINE void SET_Color4f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_Color4f, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4fv)(const GLfloat *); +#define CALL_Color4fv(disp, parameters) \ + (* GET_Color4fv(disp)) parameters +static INLINE _glptr_Color4fv GET_Color4fv(struct _glapi_table *disp) { + return (_glptr_Color4fv) (GET_by_offset(disp, _gloffset_Color4fv)); +} + +static INLINE void SET_Color4fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_Color4fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4i)(GLint, GLint, GLint, GLint); +#define CALL_Color4i(disp, parameters) \ + (* GET_Color4i(disp)) parameters +static INLINE _glptr_Color4i GET_Color4i(struct _glapi_table *disp) { + return (_glptr_Color4i) (GET_by_offset(disp, _gloffset_Color4i)); +} + +static INLINE void SET_Color4i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_Color4i, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4iv)(const GLint *); +#define CALL_Color4iv(disp, parameters) \ + (* GET_Color4iv(disp)) parameters +static INLINE _glptr_Color4iv GET_Color4iv(struct _glapi_table *disp) { + return (_glptr_Color4iv) (GET_by_offset(disp, _gloffset_Color4iv)); +} + +static INLINE void SET_Color4iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_Color4iv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4s)(GLshort, GLshort, GLshort, GLshort); +#define CALL_Color4s(disp, parameters) \ + (* GET_Color4s(disp)) parameters +static INLINE _glptr_Color4s GET_Color4s(struct _glapi_table *disp) { + return (_glptr_Color4s) (GET_by_offset(disp, _gloffset_Color4s)); +} + +static INLINE void SET_Color4s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_Color4s, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4sv)(const GLshort *); +#define CALL_Color4sv(disp, parameters) \ + (* GET_Color4sv(disp)) parameters +static INLINE _glptr_Color4sv GET_Color4sv(struct _glapi_table *disp) { + return (_glptr_Color4sv) (GET_by_offset(disp, _gloffset_Color4sv)); +} + +static INLINE void SET_Color4sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_Color4sv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4ub)(GLubyte, GLubyte, GLubyte, GLubyte); +#define CALL_Color4ub(disp, parameters) \ + (* GET_Color4ub(disp)) parameters +static INLINE _glptr_Color4ub GET_Color4ub(struct _glapi_table *disp) { + return (_glptr_Color4ub) (GET_by_offset(disp, _gloffset_Color4ub)); +} + +static INLINE void SET_Color4ub(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLubyte, GLubyte, GLubyte, GLubyte)) { + SET_by_offset(disp, _gloffset_Color4ub, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4ubv)(const GLubyte *); +#define CALL_Color4ubv(disp, parameters) \ + (* GET_Color4ubv(disp)) parameters +static INLINE _glptr_Color4ubv GET_Color4ubv(struct _glapi_table *disp) { + return (_glptr_Color4ubv) (GET_by_offset(disp, _gloffset_Color4ubv)); +} + +static INLINE void SET_Color4ubv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLubyte *)) { + SET_by_offset(disp, _gloffset_Color4ubv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4ui)(GLuint, GLuint, GLuint, GLuint); +#define CALL_Color4ui(disp, parameters) \ + (* GET_Color4ui(disp)) parameters +static INLINE _glptr_Color4ui GET_Color4ui(struct _glapi_table *disp) { + return (_glptr_Color4ui) (GET_by_offset(disp, _gloffset_Color4ui)); +} + +static INLINE void SET_Color4ui(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_Color4ui, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4uiv)(const GLuint *); +#define CALL_Color4uiv(disp, parameters) \ + (* GET_Color4uiv(disp)) parameters +static INLINE _glptr_Color4uiv GET_Color4uiv(struct _glapi_table *disp) { + return (_glptr_Color4uiv) (GET_by_offset(disp, _gloffset_Color4uiv)); +} + +static INLINE void SET_Color4uiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLuint *)) { + SET_by_offset(disp, _gloffset_Color4uiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4us)(GLushort, GLushort, GLushort, GLushort); +#define CALL_Color4us(disp, parameters) \ + (* GET_Color4us(disp)) parameters +static INLINE _glptr_Color4us GET_Color4us(struct _glapi_table *disp) { + return (_glptr_Color4us) (GET_by_offset(disp, _gloffset_Color4us)); +} + +static INLINE void SET_Color4us(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLushort, GLushort, GLushort, GLushort)) { + SET_by_offset(disp, _gloffset_Color4us, fn); +} + +typedef void (GLAPIENTRYP _glptr_Color4usv)(const GLushort *); +#define CALL_Color4usv(disp, parameters) \ + (* GET_Color4usv(disp)) parameters +static INLINE _glptr_Color4usv GET_Color4usv(struct _glapi_table *disp) { + return (_glptr_Color4usv) (GET_by_offset(disp, _gloffset_Color4usv)); +} + +static INLINE void SET_Color4usv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLushort *)) { + SET_by_offset(disp, _gloffset_Color4usv, fn); +} + +typedef void (GLAPIENTRYP _glptr_EdgeFlag)(GLboolean); +#define CALL_EdgeFlag(disp, parameters) \ + (* GET_EdgeFlag(disp)) parameters +static INLINE _glptr_EdgeFlag GET_EdgeFlag(struct _glapi_table *disp) { + return (_glptr_EdgeFlag) (GET_by_offset(disp, _gloffset_EdgeFlag)); +} + +static INLINE void SET_EdgeFlag(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLboolean)) { + SET_by_offset(disp, _gloffset_EdgeFlag, fn); +} + +typedef void (GLAPIENTRYP _glptr_EdgeFlagv)(const GLboolean *); +#define CALL_EdgeFlagv(disp, parameters) \ + (* GET_EdgeFlagv(disp)) parameters +static INLINE _glptr_EdgeFlagv GET_EdgeFlagv(struct _glapi_table *disp) { + return (_glptr_EdgeFlagv) (GET_by_offset(disp, _gloffset_EdgeFlagv)); +} + +static INLINE void SET_EdgeFlagv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLboolean *)) { + SET_by_offset(disp, _gloffset_EdgeFlagv, fn); +} + +typedef void (GLAPIENTRYP _glptr_End)(void); +#define CALL_End(disp, parameters) \ + (* GET_End(disp)) parameters +static INLINE _glptr_End GET_End(struct _glapi_table *disp) { + return (_glptr_End) (GET_by_offset(disp, _gloffset_End)); +} + +static INLINE void SET_End(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_End, fn); +} + +typedef void (GLAPIENTRYP _glptr_Indexd)(GLdouble); +#define CALL_Indexd(disp, parameters) \ + (* GET_Indexd(disp)) parameters +static INLINE _glptr_Indexd GET_Indexd(struct _glapi_table *disp) { + return (_glptr_Indexd) (GET_by_offset(disp, _gloffset_Indexd)); +} + +static INLINE void SET_Indexd(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble)) { + SET_by_offset(disp, _gloffset_Indexd, fn); +} + +typedef void (GLAPIENTRYP _glptr_Indexdv)(const GLdouble *); +#define CALL_Indexdv(disp, parameters) \ + (* GET_Indexdv(disp)) parameters +static INLINE _glptr_Indexdv GET_Indexdv(struct _glapi_table *disp) { + return (_glptr_Indexdv) (GET_by_offset(disp, _gloffset_Indexdv)); +} + +static INLINE void SET_Indexdv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_Indexdv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Indexf)(GLfloat); +#define CALL_Indexf(disp, parameters) \ + (* GET_Indexf(disp)) parameters +static INLINE _glptr_Indexf GET_Indexf(struct _glapi_table *disp) { + return (_glptr_Indexf) (GET_by_offset(disp, _gloffset_Indexf)); +} + +static INLINE void SET_Indexf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { + SET_by_offset(disp, _gloffset_Indexf, fn); +} + +typedef void (GLAPIENTRYP _glptr_Indexfv)(const GLfloat *); +#define CALL_Indexfv(disp, parameters) \ + (* GET_Indexfv(disp)) parameters +static INLINE _glptr_Indexfv GET_Indexfv(struct _glapi_table *disp) { + return (_glptr_Indexfv) (GET_by_offset(disp, _gloffset_Indexfv)); +} + +static INLINE void SET_Indexfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_Indexfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Indexi)(GLint); +#define CALL_Indexi(disp, parameters) \ + (* GET_Indexi(disp)) parameters +static INLINE _glptr_Indexi GET_Indexi(struct _glapi_table *disp) { + return (_glptr_Indexi) (GET_by_offset(disp, _gloffset_Indexi)); +} + +static INLINE void SET_Indexi(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint)) { + SET_by_offset(disp, _gloffset_Indexi, fn); +} + +typedef void (GLAPIENTRYP _glptr_Indexiv)(const GLint *); +#define CALL_Indexiv(disp, parameters) \ + (* GET_Indexiv(disp)) parameters +static INLINE _glptr_Indexiv GET_Indexiv(struct _glapi_table *disp) { + return (_glptr_Indexiv) (GET_by_offset(disp, _gloffset_Indexiv)); +} + +static INLINE void SET_Indexiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_Indexiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Indexs)(GLshort); +#define CALL_Indexs(disp, parameters) \ + (* GET_Indexs(disp)) parameters +static INLINE _glptr_Indexs GET_Indexs(struct _glapi_table *disp) { + return (_glptr_Indexs) (GET_by_offset(disp, _gloffset_Indexs)); +} + +static INLINE void SET_Indexs(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort)) { + SET_by_offset(disp, _gloffset_Indexs, fn); +} + +typedef void (GLAPIENTRYP _glptr_Indexsv)(const GLshort *); +#define CALL_Indexsv(disp, parameters) \ + (* GET_Indexsv(disp)) parameters +static INLINE _glptr_Indexsv GET_Indexsv(struct _glapi_table *disp) { + return (_glptr_Indexsv) (GET_by_offset(disp, _gloffset_Indexsv)); +} + +static INLINE void SET_Indexsv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_Indexsv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Normal3b)(GLbyte, GLbyte, GLbyte); +#define CALL_Normal3b(disp, parameters) \ + (* GET_Normal3b(disp)) parameters +static INLINE _glptr_Normal3b GET_Normal3b(struct _glapi_table *disp) { + return (_glptr_Normal3b) (GET_by_offset(disp, _gloffset_Normal3b)); +} + +static INLINE void SET_Normal3b(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbyte, GLbyte, GLbyte)) { + SET_by_offset(disp, _gloffset_Normal3b, fn); +} + +typedef void (GLAPIENTRYP _glptr_Normal3bv)(const GLbyte *); +#define CALL_Normal3bv(disp, parameters) \ + (* GET_Normal3bv(disp)) parameters +static INLINE _glptr_Normal3bv GET_Normal3bv(struct _glapi_table *disp) { + return (_glptr_Normal3bv) (GET_by_offset(disp, _gloffset_Normal3bv)); +} + +static INLINE void SET_Normal3bv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLbyte *)) { + SET_by_offset(disp, _gloffset_Normal3bv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Normal3d)(GLdouble, GLdouble, GLdouble); +#define CALL_Normal3d(disp, parameters) \ + (* GET_Normal3d(disp)) parameters +static INLINE _glptr_Normal3d GET_Normal3d(struct _glapi_table *disp) { + return (_glptr_Normal3d) (GET_by_offset(disp, _gloffset_Normal3d)); +} + +static INLINE void SET_Normal3d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_Normal3d, fn); +} + +typedef void (GLAPIENTRYP _glptr_Normal3dv)(const GLdouble *); +#define CALL_Normal3dv(disp, parameters) \ + (* GET_Normal3dv(disp)) parameters +static INLINE _glptr_Normal3dv GET_Normal3dv(struct _glapi_table *disp) { + return (_glptr_Normal3dv) (GET_by_offset(disp, _gloffset_Normal3dv)); +} + +static INLINE void SET_Normal3dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_Normal3dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Normal3f)(GLfloat, GLfloat, GLfloat); +#define CALL_Normal3f(disp, parameters) \ + (* GET_Normal3f(disp)) parameters +static INLINE _glptr_Normal3f GET_Normal3f(struct _glapi_table *disp) { + return (_glptr_Normal3f) (GET_by_offset(disp, _gloffset_Normal3f)); +} + +static INLINE void SET_Normal3f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_Normal3f, fn); +} + +typedef void (GLAPIENTRYP _glptr_Normal3fv)(const GLfloat *); +#define CALL_Normal3fv(disp, parameters) \ + (* GET_Normal3fv(disp)) parameters +static INLINE _glptr_Normal3fv GET_Normal3fv(struct _glapi_table *disp) { + return (_glptr_Normal3fv) (GET_by_offset(disp, _gloffset_Normal3fv)); +} + +static INLINE void SET_Normal3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_Normal3fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Normal3i)(GLint, GLint, GLint); +#define CALL_Normal3i(disp, parameters) \ + (* GET_Normal3i(disp)) parameters +static INLINE _glptr_Normal3i GET_Normal3i(struct _glapi_table *disp) { + return (_glptr_Normal3i) (GET_by_offset(disp, _gloffset_Normal3i)); +} + +static INLINE void SET_Normal3i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_Normal3i, fn); +} + +typedef void (GLAPIENTRYP _glptr_Normal3iv)(const GLint *); +#define CALL_Normal3iv(disp, parameters) \ + (* GET_Normal3iv(disp)) parameters +static INLINE _glptr_Normal3iv GET_Normal3iv(struct _glapi_table *disp) { + return (_glptr_Normal3iv) (GET_by_offset(disp, _gloffset_Normal3iv)); +} + +static INLINE void SET_Normal3iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_Normal3iv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Normal3s)(GLshort, GLshort, GLshort); +#define CALL_Normal3s(disp, parameters) \ + (* GET_Normal3s(disp)) parameters +static INLINE _glptr_Normal3s GET_Normal3s(struct _glapi_table *disp) { + return (_glptr_Normal3s) (GET_by_offset(disp, _gloffset_Normal3s)); +} + +static INLINE void SET_Normal3s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_Normal3s, fn); +} + +typedef void (GLAPIENTRYP _glptr_Normal3sv)(const GLshort *); +#define CALL_Normal3sv(disp, parameters) \ + (* GET_Normal3sv(disp)) parameters +static INLINE _glptr_Normal3sv GET_Normal3sv(struct _glapi_table *disp) { + return (_glptr_Normal3sv) (GET_by_offset(disp, _gloffset_Normal3sv)); +} + +static INLINE void SET_Normal3sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_Normal3sv, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos2d)(GLdouble, GLdouble); +#define CALL_RasterPos2d(disp, parameters) \ + (* GET_RasterPos2d(disp)) parameters +static INLINE _glptr_RasterPos2d GET_RasterPos2d(struct _glapi_table *disp) { + return (_glptr_RasterPos2d) (GET_by_offset(disp, _gloffset_RasterPos2d)); +} + +static INLINE void SET_RasterPos2d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_RasterPos2d, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos2dv)(const GLdouble *); +#define CALL_RasterPos2dv(disp, parameters) \ + (* GET_RasterPos2dv(disp)) parameters +static INLINE _glptr_RasterPos2dv GET_RasterPos2dv(struct _glapi_table *disp) { + return (_glptr_RasterPos2dv) (GET_by_offset(disp, _gloffset_RasterPos2dv)); +} + +static INLINE void SET_RasterPos2dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_RasterPos2dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos2f)(GLfloat, GLfloat); +#define CALL_RasterPos2f(disp, parameters) \ + (* GET_RasterPos2f(disp)) parameters +static INLINE _glptr_RasterPos2f GET_RasterPos2f(struct _glapi_table *disp) { + return (_glptr_RasterPos2f) (GET_by_offset(disp, _gloffset_RasterPos2f)); +} + +static INLINE void SET_RasterPos2f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_RasterPos2f, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos2fv)(const GLfloat *); +#define CALL_RasterPos2fv(disp, parameters) \ + (* GET_RasterPos2fv(disp)) parameters +static INLINE _glptr_RasterPos2fv GET_RasterPos2fv(struct _glapi_table *disp) { + return (_glptr_RasterPos2fv) (GET_by_offset(disp, _gloffset_RasterPos2fv)); +} + +static INLINE void SET_RasterPos2fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_RasterPos2fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos2i)(GLint, GLint); +#define CALL_RasterPos2i(disp, parameters) \ + (* GET_RasterPos2i(disp)) parameters +static INLINE _glptr_RasterPos2i GET_RasterPos2i(struct _glapi_table *disp) { + return (_glptr_RasterPos2i) (GET_by_offset(disp, _gloffset_RasterPos2i)); +} + +static INLINE void SET_RasterPos2i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint)) { + SET_by_offset(disp, _gloffset_RasterPos2i, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos2iv)(const GLint *); +#define CALL_RasterPos2iv(disp, parameters) \ + (* GET_RasterPos2iv(disp)) parameters +static INLINE _glptr_RasterPos2iv GET_RasterPos2iv(struct _glapi_table *disp) { + return (_glptr_RasterPos2iv) (GET_by_offset(disp, _gloffset_RasterPos2iv)); +} + +static INLINE void SET_RasterPos2iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_RasterPos2iv, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos2s)(GLshort, GLshort); +#define CALL_RasterPos2s(disp, parameters) \ + (* GET_RasterPos2s(disp)) parameters +static INLINE _glptr_RasterPos2s GET_RasterPos2s(struct _glapi_table *disp) { + return (_glptr_RasterPos2s) (GET_by_offset(disp, _gloffset_RasterPos2s)); +} + +static INLINE void SET_RasterPos2s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_RasterPos2s, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos2sv)(const GLshort *); +#define CALL_RasterPos2sv(disp, parameters) \ + (* GET_RasterPos2sv(disp)) parameters +static INLINE _glptr_RasterPos2sv GET_RasterPos2sv(struct _glapi_table *disp) { + return (_glptr_RasterPos2sv) (GET_by_offset(disp, _gloffset_RasterPos2sv)); +} + +static INLINE void SET_RasterPos2sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_RasterPos2sv, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos3d)(GLdouble, GLdouble, GLdouble); +#define CALL_RasterPos3d(disp, parameters) \ + (* GET_RasterPos3d(disp)) parameters +static INLINE _glptr_RasterPos3d GET_RasterPos3d(struct _glapi_table *disp) { + return (_glptr_RasterPos3d) (GET_by_offset(disp, _gloffset_RasterPos3d)); +} + +static INLINE void SET_RasterPos3d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_RasterPos3d, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos3dv)(const GLdouble *); +#define CALL_RasterPos3dv(disp, parameters) \ + (* GET_RasterPos3dv(disp)) parameters +static INLINE _glptr_RasterPos3dv GET_RasterPos3dv(struct _glapi_table *disp) { + return (_glptr_RasterPos3dv) (GET_by_offset(disp, _gloffset_RasterPos3dv)); +} + +static INLINE void SET_RasterPos3dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_RasterPos3dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos3f)(GLfloat, GLfloat, GLfloat); +#define CALL_RasterPos3f(disp, parameters) \ + (* GET_RasterPos3f(disp)) parameters +static INLINE _glptr_RasterPos3f GET_RasterPos3f(struct _glapi_table *disp) { + return (_glptr_RasterPos3f) (GET_by_offset(disp, _gloffset_RasterPos3f)); +} + +static INLINE void SET_RasterPos3f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_RasterPos3f, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos3fv)(const GLfloat *); +#define CALL_RasterPos3fv(disp, parameters) \ + (* GET_RasterPos3fv(disp)) parameters +static INLINE _glptr_RasterPos3fv GET_RasterPos3fv(struct _glapi_table *disp) { + return (_glptr_RasterPos3fv) (GET_by_offset(disp, _gloffset_RasterPos3fv)); +} + +static INLINE void SET_RasterPos3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_RasterPos3fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos3i)(GLint, GLint, GLint); +#define CALL_RasterPos3i(disp, parameters) \ + (* GET_RasterPos3i(disp)) parameters +static INLINE _glptr_RasterPos3i GET_RasterPos3i(struct _glapi_table *disp) { + return (_glptr_RasterPos3i) (GET_by_offset(disp, _gloffset_RasterPos3i)); +} + +static INLINE void SET_RasterPos3i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_RasterPos3i, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos3iv)(const GLint *); +#define CALL_RasterPos3iv(disp, parameters) \ + (* GET_RasterPos3iv(disp)) parameters +static INLINE _glptr_RasterPos3iv GET_RasterPos3iv(struct _glapi_table *disp) { + return (_glptr_RasterPos3iv) (GET_by_offset(disp, _gloffset_RasterPos3iv)); +} + +static INLINE void SET_RasterPos3iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_RasterPos3iv, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos3s)(GLshort, GLshort, GLshort); +#define CALL_RasterPos3s(disp, parameters) \ + (* GET_RasterPos3s(disp)) parameters +static INLINE _glptr_RasterPos3s GET_RasterPos3s(struct _glapi_table *disp) { + return (_glptr_RasterPos3s) (GET_by_offset(disp, _gloffset_RasterPos3s)); +} + +static INLINE void SET_RasterPos3s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_RasterPos3s, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos3sv)(const GLshort *); +#define CALL_RasterPos3sv(disp, parameters) \ + (* GET_RasterPos3sv(disp)) parameters +static INLINE _glptr_RasterPos3sv GET_RasterPos3sv(struct _glapi_table *disp) { + return (_glptr_RasterPos3sv) (GET_by_offset(disp, _gloffset_RasterPos3sv)); +} + +static INLINE void SET_RasterPos3sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_RasterPos3sv, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos4d)(GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_RasterPos4d(disp, parameters) \ + (* GET_RasterPos4d(disp)) parameters +static INLINE _glptr_RasterPos4d GET_RasterPos4d(struct _glapi_table *disp) { + return (_glptr_RasterPos4d) (GET_by_offset(disp, _gloffset_RasterPos4d)); +} + +static INLINE void SET_RasterPos4d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_RasterPos4d, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos4dv)(const GLdouble *); +#define CALL_RasterPos4dv(disp, parameters) \ + (* GET_RasterPos4dv(disp)) parameters +static INLINE _glptr_RasterPos4dv GET_RasterPos4dv(struct _glapi_table *disp) { + return (_glptr_RasterPos4dv) (GET_by_offset(disp, _gloffset_RasterPos4dv)); +} + +static INLINE void SET_RasterPos4dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_RasterPos4dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos4f)(GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_RasterPos4f(disp, parameters) \ + (* GET_RasterPos4f(disp)) parameters +static INLINE _glptr_RasterPos4f GET_RasterPos4f(struct _glapi_table *disp) { + return (_glptr_RasterPos4f) (GET_by_offset(disp, _gloffset_RasterPos4f)); +} + +static INLINE void SET_RasterPos4f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_RasterPos4f, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos4fv)(const GLfloat *); +#define CALL_RasterPos4fv(disp, parameters) \ + (* GET_RasterPos4fv(disp)) parameters +static INLINE _glptr_RasterPos4fv GET_RasterPos4fv(struct _glapi_table *disp) { + return (_glptr_RasterPos4fv) (GET_by_offset(disp, _gloffset_RasterPos4fv)); +} + +static INLINE void SET_RasterPos4fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_RasterPos4fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos4i)(GLint, GLint, GLint, GLint); +#define CALL_RasterPos4i(disp, parameters) \ + (* GET_RasterPos4i(disp)) parameters +static INLINE _glptr_RasterPos4i GET_RasterPos4i(struct _glapi_table *disp) { + return (_glptr_RasterPos4i) (GET_by_offset(disp, _gloffset_RasterPos4i)); +} + +static INLINE void SET_RasterPos4i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_RasterPos4i, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos4iv)(const GLint *); +#define CALL_RasterPos4iv(disp, parameters) \ + (* GET_RasterPos4iv(disp)) parameters +static INLINE _glptr_RasterPos4iv GET_RasterPos4iv(struct _glapi_table *disp) { + return (_glptr_RasterPos4iv) (GET_by_offset(disp, _gloffset_RasterPos4iv)); +} + +static INLINE void SET_RasterPos4iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_RasterPos4iv, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos4s)(GLshort, GLshort, GLshort, GLshort); +#define CALL_RasterPos4s(disp, parameters) \ + (* GET_RasterPos4s(disp)) parameters +static INLINE _glptr_RasterPos4s GET_RasterPos4s(struct _glapi_table *disp) { + return (_glptr_RasterPos4s) (GET_by_offset(disp, _gloffset_RasterPos4s)); +} + +static INLINE void SET_RasterPos4s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_RasterPos4s, fn); +} + +typedef void (GLAPIENTRYP _glptr_RasterPos4sv)(const GLshort *); +#define CALL_RasterPos4sv(disp, parameters) \ + (* GET_RasterPos4sv(disp)) parameters +static INLINE _glptr_RasterPos4sv GET_RasterPos4sv(struct _glapi_table *disp) { + return (_glptr_RasterPos4sv) (GET_by_offset(disp, _gloffset_RasterPos4sv)); +} + +static INLINE void SET_RasterPos4sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_RasterPos4sv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Rectd)(GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_Rectd(disp, parameters) \ + (* GET_Rectd(disp)) parameters +static INLINE _glptr_Rectd GET_Rectd(struct _glapi_table *disp) { + return (_glptr_Rectd) (GET_by_offset(disp, _gloffset_Rectd)); +} + +static INLINE void SET_Rectd(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_Rectd, fn); +} + +typedef void (GLAPIENTRYP _glptr_Rectdv)(const GLdouble *, const GLdouble *); +#define CALL_Rectdv(disp, parameters) \ + (* GET_Rectdv(disp)) parameters +static INLINE _glptr_Rectdv GET_Rectdv(struct _glapi_table *disp) { + return (_glptr_Rectdv) (GET_by_offset(disp, _gloffset_Rectdv)); +} + +static INLINE void SET_Rectdv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *, const GLdouble *)) { + SET_by_offset(disp, _gloffset_Rectdv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Rectf)(GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_Rectf(disp, parameters) \ + (* GET_Rectf(disp)) parameters +static INLINE _glptr_Rectf GET_Rectf(struct _glapi_table *disp) { + return (_glptr_Rectf) (GET_by_offset(disp, _gloffset_Rectf)); +} + +static INLINE void SET_Rectf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_Rectf, fn); +} + +typedef void (GLAPIENTRYP _glptr_Rectfv)(const GLfloat *, const GLfloat *); +#define CALL_Rectfv(disp, parameters) \ + (* GET_Rectfv(disp)) parameters +static INLINE _glptr_Rectfv GET_Rectfv(struct _glapi_table *disp) { + return (_glptr_Rectfv) (GET_by_offset(disp, _gloffset_Rectfv)); +} + +static INLINE void SET_Rectfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *, const GLfloat *)) { + SET_by_offset(disp, _gloffset_Rectfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Recti)(GLint, GLint, GLint, GLint); +#define CALL_Recti(disp, parameters) \ + (* GET_Recti(disp)) parameters +static INLINE _glptr_Recti GET_Recti(struct _glapi_table *disp) { + return (_glptr_Recti) (GET_by_offset(disp, _gloffset_Recti)); +} + +static INLINE void SET_Recti(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_Recti, fn); +} + +typedef void (GLAPIENTRYP _glptr_Rectiv)(const GLint *, const GLint *); +#define CALL_Rectiv(disp, parameters) \ + (* GET_Rectiv(disp)) parameters +static INLINE _glptr_Rectiv GET_Rectiv(struct _glapi_table *disp) { + return (_glptr_Rectiv) (GET_by_offset(disp, _gloffset_Rectiv)); +} + +static INLINE void SET_Rectiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *, const GLint *)) { + SET_by_offset(disp, _gloffset_Rectiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Rects)(GLshort, GLshort, GLshort, GLshort); +#define CALL_Rects(disp, parameters) \ + (* GET_Rects(disp)) parameters +static INLINE _glptr_Rects GET_Rects(struct _glapi_table *disp) { + return (_glptr_Rects) (GET_by_offset(disp, _gloffset_Rects)); +} + +static INLINE void SET_Rects(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_Rects, fn); +} + +typedef void (GLAPIENTRYP _glptr_Rectsv)(const GLshort *, const GLshort *); +#define CALL_Rectsv(disp, parameters) \ + (* GET_Rectsv(disp)) parameters +static INLINE _glptr_Rectsv GET_Rectsv(struct _glapi_table *disp) { + return (_glptr_Rectsv) (GET_by_offset(disp, _gloffset_Rectsv)); +} + +static INLINE void SET_Rectsv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *, const GLshort *)) { + SET_by_offset(disp, _gloffset_Rectsv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord1d)(GLdouble); +#define CALL_TexCoord1d(disp, parameters) \ + (* GET_TexCoord1d(disp)) parameters +static INLINE _glptr_TexCoord1d GET_TexCoord1d(struct _glapi_table *disp) { + return (_glptr_TexCoord1d) (GET_by_offset(disp, _gloffset_TexCoord1d)); +} + +static INLINE void SET_TexCoord1d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble)) { + SET_by_offset(disp, _gloffset_TexCoord1d, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord1dv)(const GLdouble *); +#define CALL_TexCoord1dv(disp, parameters) \ + (* GET_TexCoord1dv(disp)) parameters +static INLINE _glptr_TexCoord1dv GET_TexCoord1dv(struct _glapi_table *disp) { + return (_glptr_TexCoord1dv) (GET_by_offset(disp, _gloffset_TexCoord1dv)); +} + +static INLINE void SET_TexCoord1dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_TexCoord1dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord1f)(GLfloat); +#define CALL_TexCoord1f(disp, parameters) \ + (* GET_TexCoord1f(disp)) parameters +static INLINE _glptr_TexCoord1f GET_TexCoord1f(struct _glapi_table *disp) { + return (_glptr_TexCoord1f) (GET_by_offset(disp, _gloffset_TexCoord1f)); +} + +static INLINE void SET_TexCoord1f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { + SET_by_offset(disp, _gloffset_TexCoord1f, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord1fv)(const GLfloat *); +#define CALL_TexCoord1fv(disp, parameters) \ + (* GET_TexCoord1fv(disp)) parameters +static INLINE _glptr_TexCoord1fv GET_TexCoord1fv(struct _glapi_table *disp) { + return (_glptr_TexCoord1fv) (GET_by_offset(disp, _gloffset_TexCoord1fv)); +} + +static INLINE void SET_TexCoord1fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_TexCoord1fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord1i)(GLint); +#define CALL_TexCoord1i(disp, parameters) \ + (* GET_TexCoord1i(disp)) parameters +static INLINE _glptr_TexCoord1i GET_TexCoord1i(struct _glapi_table *disp) { + return (_glptr_TexCoord1i) (GET_by_offset(disp, _gloffset_TexCoord1i)); +} + +static INLINE void SET_TexCoord1i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint)) { + SET_by_offset(disp, _gloffset_TexCoord1i, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord1iv)(const GLint *); +#define CALL_TexCoord1iv(disp, parameters) \ + (* GET_TexCoord1iv(disp)) parameters +static INLINE _glptr_TexCoord1iv GET_TexCoord1iv(struct _glapi_table *disp) { + return (_glptr_TexCoord1iv) (GET_by_offset(disp, _gloffset_TexCoord1iv)); +} + +static INLINE void SET_TexCoord1iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_TexCoord1iv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord1s)(GLshort); +#define CALL_TexCoord1s(disp, parameters) \ + (* GET_TexCoord1s(disp)) parameters +static INLINE _glptr_TexCoord1s GET_TexCoord1s(struct _glapi_table *disp) { + return (_glptr_TexCoord1s) (GET_by_offset(disp, _gloffset_TexCoord1s)); +} + +static INLINE void SET_TexCoord1s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort)) { + SET_by_offset(disp, _gloffset_TexCoord1s, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord1sv)(const GLshort *); +#define CALL_TexCoord1sv(disp, parameters) \ + (* GET_TexCoord1sv(disp)) parameters +static INLINE _glptr_TexCoord1sv GET_TexCoord1sv(struct _glapi_table *disp) { + return (_glptr_TexCoord1sv) (GET_by_offset(disp, _gloffset_TexCoord1sv)); +} + +static INLINE void SET_TexCoord1sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_TexCoord1sv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord2d)(GLdouble, GLdouble); +#define CALL_TexCoord2d(disp, parameters) \ + (* GET_TexCoord2d(disp)) parameters +static INLINE _glptr_TexCoord2d GET_TexCoord2d(struct _glapi_table *disp) { + return (_glptr_TexCoord2d) (GET_by_offset(disp, _gloffset_TexCoord2d)); +} + +static INLINE void SET_TexCoord2d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_TexCoord2d, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord2dv)(const GLdouble *); +#define CALL_TexCoord2dv(disp, parameters) \ + (* GET_TexCoord2dv(disp)) parameters +static INLINE _glptr_TexCoord2dv GET_TexCoord2dv(struct _glapi_table *disp) { + return (_glptr_TexCoord2dv) (GET_by_offset(disp, _gloffset_TexCoord2dv)); +} + +static INLINE void SET_TexCoord2dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_TexCoord2dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord2f)(GLfloat, GLfloat); +#define CALL_TexCoord2f(disp, parameters) \ + (* GET_TexCoord2f(disp)) parameters +static INLINE _glptr_TexCoord2f GET_TexCoord2f(struct _glapi_table *disp) { + return (_glptr_TexCoord2f) (GET_by_offset(disp, _gloffset_TexCoord2f)); +} + +static INLINE void SET_TexCoord2f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_TexCoord2f, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord2fv)(const GLfloat *); +#define CALL_TexCoord2fv(disp, parameters) \ + (* GET_TexCoord2fv(disp)) parameters +static INLINE _glptr_TexCoord2fv GET_TexCoord2fv(struct _glapi_table *disp) { + return (_glptr_TexCoord2fv) (GET_by_offset(disp, _gloffset_TexCoord2fv)); +} + +static INLINE void SET_TexCoord2fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_TexCoord2fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord2i)(GLint, GLint); +#define CALL_TexCoord2i(disp, parameters) \ + (* GET_TexCoord2i(disp)) parameters +static INLINE _glptr_TexCoord2i GET_TexCoord2i(struct _glapi_table *disp) { + return (_glptr_TexCoord2i) (GET_by_offset(disp, _gloffset_TexCoord2i)); +} + +static INLINE void SET_TexCoord2i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint)) { + SET_by_offset(disp, _gloffset_TexCoord2i, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord2iv)(const GLint *); +#define CALL_TexCoord2iv(disp, parameters) \ + (* GET_TexCoord2iv(disp)) parameters +static INLINE _glptr_TexCoord2iv GET_TexCoord2iv(struct _glapi_table *disp) { + return (_glptr_TexCoord2iv) (GET_by_offset(disp, _gloffset_TexCoord2iv)); +} + +static INLINE void SET_TexCoord2iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_TexCoord2iv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord2s)(GLshort, GLshort); +#define CALL_TexCoord2s(disp, parameters) \ + (* GET_TexCoord2s(disp)) parameters +static INLINE _glptr_TexCoord2s GET_TexCoord2s(struct _glapi_table *disp) { + return (_glptr_TexCoord2s) (GET_by_offset(disp, _gloffset_TexCoord2s)); +} + +static INLINE void SET_TexCoord2s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_TexCoord2s, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord2sv)(const GLshort *); +#define CALL_TexCoord2sv(disp, parameters) \ + (* GET_TexCoord2sv(disp)) parameters +static INLINE _glptr_TexCoord2sv GET_TexCoord2sv(struct _glapi_table *disp) { + return (_glptr_TexCoord2sv) (GET_by_offset(disp, _gloffset_TexCoord2sv)); +} + +static INLINE void SET_TexCoord2sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_TexCoord2sv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord3d)(GLdouble, GLdouble, GLdouble); +#define CALL_TexCoord3d(disp, parameters) \ + (* GET_TexCoord3d(disp)) parameters +static INLINE _glptr_TexCoord3d GET_TexCoord3d(struct _glapi_table *disp) { + return (_glptr_TexCoord3d) (GET_by_offset(disp, _gloffset_TexCoord3d)); +} + +static INLINE void SET_TexCoord3d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_TexCoord3d, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord3dv)(const GLdouble *); +#define CALL_TexCoord3dv(disp, parameters) \ + (* GET_TexCoord3dv(disp)) parameters +static INLINE _glptr_TexCoord3dv GET_TexCoord3dv(struct _glapi_table *disp) { + return (_glptr_TexCoord3dv) (GET_by_offset(disp, _gloffset_TexCoord3dv)); +} + +static INLINE void SET_TexCoord3dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_TexCoord3dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord3f)(GLfloat, GLfloat, GLfloat); +#define CALL_TexCoord3f(disp, parameters) \ + (* GET_TexCoord3f(disp)) parameters +static INLINE _glptr_TexCoord3f GET_TexCoord3f(struct _glapi_table *disp) { + return (_glptr_TexCoord3f) (GET_by_offset(disp, _gloffset_TexCoord3f)); +} + +static INLINE void SET_TexCoord3f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_TexCoord3f, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord3fv)(const GLfloat *); +#define CALL_TexCoord3fv(disp, parameters) \ + (* GET_TexCoord3fv(disp)) parameters +static INLINE _glptr_TexCoord3fv GET_TexCoord3fv(struct _glapi_table *disp) { + return (_glptr_TexCoord3fv) (GET_by_offset(disp, _gloffset_TexCoord3fv)); +} + +static INLINE void SET_TexCoord3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_TexCoord3fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord3i)(GLint, GLint, GLint); +#define CALL_TexCoord3i(disp, parameters) \ + (* GET_TexCoord3i(disp)) parameters +static INLINE _glptr_TexCoord3i GET_TexCoord3i(struct _glapi_table *disp) { + return (_glptr_TexCoord3i) (GET_by_offset(disp, _gloffset_TexCoord3i)); +} + +static INLINE void SET_TexCoord3i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_TexCoord3i, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord3iv)(const GLint *); +#define CALL_TexCoord3iv(disp, parameters) \ + (* GET_TexCoord3iv(disp)) parameters +static INLINE _glptr_TexCoord3iv GET_TexCoord3iv(struct _glapi_table *disp) { + return (_glptr_TexCoord3iv) (GET_by_offset(disp, _gloffset_TexCoord3iv)); +} + +static INLINE void SET_TexCoord3iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_TexCoord3iv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord3s)(GLshort, GLshort, GLshort); +#define CALL_TexCoord3s(disp, parameters) \ + (* GET_TexCoord3s(disp)) parameters +static INLINE _glptr_TexCoord3s GET_TexCoord3s(struct _glapi_table *disp) { + return (_glptr_TexCoord3s) (GET_by_offset(disp, _gloffset_TexCoord3s)); +} + +static INLINE void SET_TexCoord3s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_TexCoord3s, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord3sv)(const GLshort *); +#define CALL_TexCoord3sv(disp, parameters) \ + (* GET_TexCoord3sv(disp)) parameters +static INLINE _glptr_TexCoord3sv GET_TexCoord3sv(struct _glapi_table *disp) { + return (_glptr_TexCoord3sv) (GET_by_offset(disp, _gloffset_TexCoord3sv)); +} + +static INLINE void SET_TexCoord3sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_TexCoord3sv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord4d)(GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_TexCoord4d(disp, parameters) \ + (* GET_TexCoord4d(disp)) parameters +static INLINE _glptr_TexCoord4d GET_TexCoord4d(struct _glapi_table *disp) { + return (_glptr_TexCoord4d) (GET_by_offset(disp, _gloffset_TexCoord4d)); +} + +static INLINE void SET_TexCoord4d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_TexCoord4d, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord4dv)(const GLdouble *); +#define CALL_TexCoord4dv(disp, parameters) \ + (* GET_TexCoord4dv(disp)) parameters +static INLINE _glptr_TexCoord4dv GET_TexCoord4dv(struct _glapi_table *disp) { + return (_glptr_TexCoord4dv) (GET_by_offset(disp, _gloffset_TexCoord4dv)); +} + +static INLINE void SET_TexCoord4dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_TexCoord4dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord4f)(GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_TexCoord4f(disp, parameters) \ + (* GET_TexCoord4f(disp)) parameters +static INLINE _glptr_TexCoord4f GET_TexCoord4f(struct _glapi_table *disp) { + return (_glptr_TexCoord4f) (GET_by_offset(disp, _gloffset_TexCoord4f)); +} + +static INLINE void SET_TexCoord4f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_TexCoord4f, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord4fv)(const GLfloat *); +#define CALL_TexCoord4fv(disp, parameters) \ + (* GET_TexCoord4fv(disp)) parameters +static INLINE _glptr_TexCoord4fv GET_TexCoord4fv(struct _glapi_table *disp) { + return (_glptr_TexCoord4fv) (GET_by_offset(disp, _gloffset_TexCoord4fv)); +} + +static INLINE void SET_TexCoord4fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_TexCoord4fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord4i)(GLint, GLint, GLint, GLint); +#define CALL_TexCoord4i(disp, parameters) \ + (* GET_TexCoord4i(disp)) parameters +static INLINE _glptr_TexCoord4i GET_TexCoord4i(struct _glapi_table *disp) { + return (_glptr_TexCoord4i) (GET_by_offset(disp, _gloffset_TexCoord4i)); +} + +static INLINE void SET_TexCoord4i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_TexCoord4i, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord4iv)(const GLint *); +#define CALL_TexCoord4iv(disp, parameters) \ + (* GET_TexCoord4iv(disp)) parameters +static INLINE _glptr_TexCoord4iv GET_TexCoord4iv(struct _glapi_table *disp) { + return (_glptr_TexCoord4iv) (GET_by_offset(disp, _gloffset_TexCoord4iv)); +} + +static INLINE void SET_TexCoord4iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_TexCoord4iv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord4s)(GLshort, GLshort, GLshort, GLshort); +#define CALL_TexCoord4s(disp, parameters) \ + (* GET_TexCoord4s(disp)) parameters +static INLINE _glptr_TexCoord4s GET_TexCoord4s(struct _glapi_table *disp) { + return (_glptr_TexCoord4s) (GET_by_offset(disp, _gloffset_TexCoord4s)); +} + +static INLINE void SET_TexCoord4s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_TexCoord4s, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoord4sv)(const GLshort *); +#define CALL_TexCoord4sv(disp, parameters) \ + (* GET_TexCoord4sv(disp)) parameters +static INLINE _glptr_TexCoord4sv GET_TexCoord4sv(struct _glapi_table *disp) { + return (_glptr_TexCoord4sv) (GET_by_offset(disp, _gloffset_TexCoord4sv)); +} + +static INLINE void SET_TexCoord4sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_TexCoord4sv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex2d)(GLdouble, GLdouble); +#define CALL_Vertex2d(disp, parameters) \ + (* GET_Vertex2d(disp)) parameters +static INLINE _glptr_Vertex2d GET_Vertex2d(struct _glapi_table *disp) { + return (_glptr_Vertex2d) (GET_by_offset(disp, _gloffset_Vertex2d)); +} + +static INLINE void SET_Vertex2d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_Vertex2d, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex2dv)(const GLdouble *); +#define CALL_Vertex2dv(disp, parameters) \ + (* GET_Vertex2dv(disp)) parameters +static INLINE _glptr_Vertex2dv GET_Vertex2dv(struct _glapi_table *disp) { + return (_glptr_Vertex2dv) (GET_by_offset(disp, _gloffset_Vertex2dv)); +} + +static INLINE void SET_Vertex2dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_Vertex2dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex2f)(GLfloat, GLfloat); +#define CALL_Vertex2f(disp, parameters) \ + (* GET_Vertex2f(disp)) parameters +static INLINE _glptr_Vertex2f GET_Vertex2f(struct _glapi_table *disp) { + return (_glptr_Vertex2f) (GET_by_offset(disp, _gloffset_Vertex2f)); +} + +static INLINE void SET_Vertex2f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_Vertex2f, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex2fv)(const GLfloat *); +#define CALL_Vertex2fv(disp, parameters) \ + (* GET_Vertex2fv(disp)) parameters +static INLINE _glptr_Vertex2fv GET_Vertex2fv(struct _glapi_table *disp) { + return (_glptr_Vertex2fv) (GET_by_offset(disp, _gloffset_Vertex2fv)); +} + +static INLINE void SET_Vertex2fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_Vertex2fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex2i)(GLint, GLint); +#define CALL_Vertex2i(disp, parameters) \ + (* GET_Vertex2i(disp)) parameters +static INLINE _glptr_Vertex2i GET_Vertex2i(struct _glapi_table *disp) { + return (_glptr_Vertex2i) (GET_by_offset(disp, _gloffset_Vertex2i)); +} + +static INLINE void SET_Vertex2i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint)) { + SET_by_offset(disp, _gloffset_Vertex2i, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex2iv)(const GLint *); +#define CALL_Vertex2iv(disp, parameters) \ + (* GET_Vertex2iv(disp)) parameters +static INLINE _glptr_Vertex2iv GET_Vertex2iv(struct _glapi_table *disp) { + return (_glptr_Vertex2iv) (GET_by_offset(disp, _gloffset_Vertex2iv)); +} + +static INLINE void SET_Vertex2iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_Vertex2iv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex2s)(GLshort, GLshort); +#define CALL_Vertex2s(disp, parameters) \ + (* GET_Vertex2s(disp)) parameters +static INLINE _glptr_Vertex2s GET_Vertex2s(struct _glapi_table *disp) { + return (_glptr_Vertex2s) (GET_by_offset(disp, _gloffset_Vertex2s)); +} + +static INLINE void SET_Vertex2s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_Vertex2s, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex2sv)(const GLshort *); +#define CALL_Vertex2sv(disp, parameters) \ + (* GET_Vertex2sv(disp)) parameters +static INLINE _glptr_Vertex2sv GET_Vertex2sv(struct _glapi_table *disp) { + return (_glptr_Vertex2sv) (GET_by_offset(disp, _gloffset_Vertex2sv)); +} + +static INLINE void SET_Vertex2sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_Vertex2sv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex3d)(GLdouble, GLdouble, GLdouble); +#define CALL_Vertex3d(disp, parameters) \ + (* GET_Vertex3d(disp)) parameters +static INLINE _glptr_Vertex3d GET_Vertex3d(struct _glapi_table *disp) { + return (_glptr_Vertex3d) (GET_by_offset(disp, _gloffset_Vertex3d)); +} + +static INLINE void SET_Vertex3d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_Vertex3d, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex3dv)(const GLdouble *); +#define CALL_Vertex3dv(disp, parameters) \ + (* GET_Vertex3dv(disp)) parameters +static INLINE _glptr_Vertex3dv GET_Vertex3dv(struct _glapi_table *disp) { + return (_glptr_Vertex3dv) (GET_by_offset(disp, _gloffset_Vertex3dv)); +} + +static INLINE void SET_Vertex3dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_Vertex3dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex3f)(GLfloat, GLfloat, GLfloat); +#define CALL_Vertex3f(disp, parameters) \ + (* GET_Vertex3f(disp)) parameters +static INLINE _glptr_Vertex3f GET_Vertex3f(struct _glapi_table *disp) { + return (_glptr_Vertex3f) (GET_by_offset(disp, _gloffset_Vertex3f)); +} + +static INLINE void SET_Vertex3f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_Vertex3f, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex3fv)(const GLfloat *); +#define CALL_Vertex3fv(disp, parameters) \ + (* GET_Vertex3fv(disp)) parameters +static INLINE _glptr_Vertex3fv GET_Vertex3fv(struct _glapi_table *disp) { + return (_glptr_Vertex3fv) (GET_by_offset(disp, _gloffset_Vertex3fv)); +} + +static INLINE void SET_Vertex3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_Vertex3fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex3i)(GLint, GLint, GLint); +#define CALL_Vertex3i(disp, parameters) \ + (* GET_Vertex3i(disp)) parameters +static INLINE _glptr_Vertex3i GET_Vertex3i(struct _glapi_table *disp) { + return (_glptr_Vertex3i) (GET_by_offset(disp, _gloffset_Vertex3i)); +} + +static INLINE void SET_Vertex3i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_Vertex3i, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex3iv)(const GLint *); +#define CALL_Vertex3iv(disp, parameters) \ + (* GET_Vertex3iv(disp)) parameters +static INLINE _glptr_Vertex3iv GET_Vertex3iv(struct _glapi_table *disp) { + return (_glptr_Vertex3iv) (GET_by_offset(disp, _gloffset_Vertex3iv)); +} + +static INLINE void SET_Vertex3iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_Vertex3iv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex3s)(GLshort, GLshort, GLshort); +#define CALL_Vertex3s(disp, parameters) \ + (* GET_Vertex3s(disp)) parameters +static INLINE _glptr_Vertex3s GET_Vertex3s(struct _glapi_table *disp) { + return (_glptr_Vertex3s) (GET_by_offset(disp, _gloffset_Vertex3s)); +} + +static INLINE void SET_Vertex3s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_Vertex3s, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex3sv)(const GLshort *); +#define CALL_Vertex3sv(disp, parameters) \ + (* GET_Vertex3sv(disp)) parameters +static INLINE _glptr_Vertex3sv GET_Vertex3sv(struct _glapi_table *disp) { + return (_glptr_Vertex3sv) (GET_by_offset(disp, _gloffset_Vertex3sv)); +} + +static INLINE void SET_Vertex3sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_Vertex3sv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex4d)(GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_Vertex4d(disp, parameters) \ + (* GET_Vertex4d(disp)) parameters +static INLINE _glptr_Vertex4d GET_Vertex4d(struct _glapi_table *disp) { + return (_glptr_Vertex4d) (GET_by_offset(disp, _gloffset_Vertex4d)); +} + +static INLINE void SET_Vertex4d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_Vertex4d, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex4dv)(const GLdouble *); +#define CALL_Vertex4dv(disp, parameters) \ + (* GET_Vertex4dv(disp)) parameters +static INLINE _glptr_Vertex4dv GET_Vertex4dv(struct _glapi_table *disp) { + return (_glptr_Vertex4dv) (GET_by_offset(disp, _gloffset_Vertex4dv)); +} + +static INLINE void SET_Vertex4dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_Vertex4dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex4f)(GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_Vertex4f(disp, parameters) \ + (* GET_Vertex4f(disp)) parameters +static INLINE _glptr_Vertex4f GET_Vertex4f(struct _glapi_table *disp) { + return (_glptr_Vertex4f) (GET_by_offset(disp, _gloffset_Vertex4f)); +} + +static INLINE void SET_Vertex4f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_Vertex4f, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex4fv)(const GLfloat *); +#define CALL_Vertex4fv(disp, parameters) \ + (* GET_Vertex4fv(disp)) parameters +static INLINE _glptr_Vertex4fv GET_Vertex4fv(struct _glapi_table *disp) { + return (_glptr_Vertex4fv) (GET_by_offset(disp, _gloffset_Vertex4fv)); +} + +static INLINE void SET_Vertex4fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_Vertex4fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex4i)(GLint, GLint, GLint, GLint); +#define CALL_Vertex4i(disp, parameters) \ + (* GET_Vertex4i(disp)) parameters +static INLINE _glptr_Vertex4i GET_Vertex4i(struct _glapi_table *disp) { + return (_glptr_Vertex4i) (GET_by_offset(disp, _gloffset_Vertex4i)); +} + +static INLINE void SET_Vertex4i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_Vertex4i, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex4iv)(const GLint *); +#define CALL_Vertex4iv(disp, parameters) \ + (* GET_Vertex4iv(disp)) parameters +static INLINE _glptr_Vertex4iv GET_Vertex4iv(struct _glapi_table *disp) { + return (_glptr_Vertex4iv) (GET_by_offset(disp, _gloffset_Vertex4iv)); +} + +static INLINE void SET_Vertex4iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_Vertex4iv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex4s)(GLshort, GLshort, GLshort, GLshort); +#define CALL_Vertex4s(disp, parameters) \ + (* GET_Vertex4s(disp)) parameters +static INLINE _glptr_Vertex4s GET_Vertex4s(struct _glapi_table *disp) { + return (_glptr_Vertex4s) (GET_by_offset(disp, _gloffset_Vertex4s)); +} + +static INLINE void SET_Vertex4s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_Vertex4s, fn); +} + +typedef void (GLAPIENTRYP _glptr_Vertex4sv)(const GLshort *); +#define CALL_Vertex4sv(disp, parameters) \ + (* GET_Vertex4sv(disp)) parameters +static INLINE _glptr_Vertex4sv GET_Vertex4sv(struct _glapi_table *disp) { + return (_glptr_Vertex4sv) (GET_by_offset(disp, _gloffset_Vertex4sv)); +} + +static INLINE void SET_Vertex4sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_Vertex4sv, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClipPlane)(GLenum, const GLdouble *); +#define CALL_ClipPlane(disp, parameters) \ + (* GET_ClipPlane(disp)) parameters +static INLINE _glptr_ClipPlane GET_ClipPlane(struct _glapi_table *disp) { + return (_glptr_ClipPlane) (GET_by_offset(disp, _gloffset_ClipPlane)); +} + +static INLINE void SET_ClipPlane(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLdouble *)) { + SET_by_offset(disp, _gloffset_ClipPlane, fn); +} + +typedef void (GLAPIENTRYP _glptr_ColorMaterial)(GLenum, GLenum); +#define CALL_ColorMaterial(disp, parameters) \ + (* GET_ColorMaterial(disp)) parameters +static INLINE _glptr_ColorMaterial GET_ColorMaterial(struct _glapi_table *disp) { + return (_glptr_ColorMaterial) (GET_by_offset(disp, _gloffset_ColorMaterial)); +} + +static INLINE void SET_ColorMaterial(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_ColorMaterial, fn); +} + +typedef void (GLAPIENTRYP _glptr_CullFace)(GLenum); +#define CALL_CullFace(disp, parameters) \ + (* GET_CullFace(disp)) parameters +static INLINE _glptr_CullFace GET_CullFace(struct _glapi_table *disp) { + return (_glptr_CullFace) (GET_by_offset(disp, _gloffset_CullFace)); +} + +static INLINE void SET_CullFace(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_CullFace, fn); +} + +typedef void (GLAPIENTRYP _glptr_Fogf)(GLenum, GLfloat); +#define CALL_Fogf(disp, parameters) \ + (* GET_Fogf(disp)) parameters +static INLINE _glptr_Fogf GET_Fogf(struct _glapi_table *disp) { + return (_glptr_Fogf) (GET_by_offset(disp, _gloffset_Fogf)); +} + +static INLINE void SET_Fogf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_Fogf, fn); +} + +typedef void (GLAPIENTRYP _glptr_Fogfv)(GLenum, const GLfloat *); +#define CALL_Fogfv(disp, parameters) \ + (* GET_Fogfv(disp)) parameters +static INLINE _glptr_Fogfv GET_Fogfv(struct _glapi_table *disp) { + return (_glptr_Fogfv) (GET_by_offset(disp, _gloffset_Fogfv)); +} + +static INLINE void SET_Fogfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_Fogfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Fogi)(GLenum, GLint); +#define CALL_Fogi(disp, parameters) \ + (* GET_Fogi(disp)) parameters +static INLINE _glptr_Fogi GET_Fogi(struct _glapi_table *disp) { + return (_glptr_Fogi) (GET_by_offset(disp, _gloffset_Fogi)); +} + +static INLINE void SET_Fogi(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { + SET_by_offset(disp, _gloffset_Fogi, fn); +} + +typedef void (GLAPIENTRYP _glptr_Fogiv)(GLenum, const GLint *); +#define CALL_Fogiv(disp, parameters) \ + (* GET_Fogiv(disp)) parameters +static INLINE _glptr_Fogiv GET_Fogiv(struct _glapi_table *disp) { + return (_glptr_Fogiv) (GET_by_offset(disp, _gloffset_Fogiv)); +} + +static INLINE void SET_Fogiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_Fogiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_FrontFace)(GLenum); +#define CALL_FrontFace(disp, parameters) \ + (* GET_FrontFace(disp)) parameters +static INLINE _glptr_FrontFace GET_FrontFace(struct _glapi_table *disp) { + return (_glptr_FrontFace) (GET_by_offset(disp, _gloffset_FrontFace)); +} + +static INLINE void SET_FrontFace(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_FrontFace, fn); +} + +typedef void (GLAPIENTRYP _glptr_Hint)(GLenum, GLenum); +#define CALL_Hint(disp, parameters) \ + (* GET_Hint(disp)) parameters +static INLINE _glptr_Hint GET_Hint(struct _glapi_table *disp) { + return (_glptr_Hint) (GET_by_offset(disp, _gloffset_Hint)); +} + +static INLINE void SET_Hint(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_Hint, fn); +} + +typedef void (GLAPIENTRYP _glptr_Lightf)(GLenum, GLenum, GLfloat); +#define CALL_Lightf(disp, parameters) \ + (* GET_Lightf(disp)) parameters +static INLINE _glptr_Lightf GET_Lightf(struct _glapi_table *disp) { + return (_glptr_Lightf) (GET_by_offset(disp, _gloffset_Lightf)); +} + +static INLINE void SET_Lightf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_Lightf, fn); +} + +typedef void (GLAPIENTRYP _glptr_Lightfv)(GLenum, GLenum, const GLfloat *); +#define CALL_Lightfv(disp, parameters) \ + (* GET_Lightfv(disp)) parameters +static INLINE _glptr_Lightfv GET_Lightfv(struct _glapi_table *disp) { + return (_glptr_Lightfv) (GET_by_offset(disp, _gloffset_Lightfv)); +} + +static INLINE void SET_Lightfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_Lightfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Lighti)(GLenum, GLenum, GLint); +#define CALL_Lighti(disp, parameters) \ + (* GET_Lighti(disp)) parameters +static INLINE _glptr_Lighti GET_Lighti(struct _glapi_table *disp) { + return (_glptr_Lighti) (GET_by_offset(disp, _gloffset_Lighti)); +} + +static INLINE void SET_Lighti(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { + SET_by_offset(disp, _gloffset_Lighti, fn); +} + +typedef void (GLAPIENTRYP _glptr_Lightiv)(GLenum, GLenum, const GLint *); +#define CALL_Lightiv(disp, parameters) \ + (* GET_Lightiv(disp)) parameters +static INLINE _glptr_Lightiv GET_Lightiv(struct _glapi_table *disp) { + return (_glptr_Lightiv) (GET_by_offset(disp, _gloffset_Lightiv)); +} + +static INLINE void SET_Lightiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_Lightiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_LightModelf)(GLenum, GLfloat); +#define CALL_LightModelf(disp, parameters) \ + (* GET_LightModelf(disp)) parameters +static INLINE _glptr_LightModelf GET_LightModelf(struct _glapi_table *disp) { + return (_glptr_LightModelf) (GET_by_offset(disp, _gloffset_LightModelf)); +} + +static INLINE void SET_LightModelf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_LightModelf, fn); +} + +typedef void (GLAPIENTRYP _glptr_LightModelfv)(GLenum, const GLfloat *); +#define CALL_LightModelfv(disp, parameters) \ + (* GET_LightModelfv(disp)) parameters +static INLINE _glptr_LightModelfv GET_LightModelfv(struct _glapi_table *disp) { + return (_glptr_LightModelfv) (GET_by_offset(disp, _gloffset_LightModelfv)); +} + +static INLINE void SET_LightModelfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_LightModelfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_LightModeli)(GLenum, GLint); +#define CALL_LightModeli(disp, parameters) \ + (* GET_LightModeli(disp)) parameters +static INLINE _glptr_LightModeli GET_LightModeli(struct _glapi_table *disp) { + return (_glptr_LightModeli) (GET_by_offset(disp, _gloffset_LightModeli)); +} + +static INLINE void SET_LightModeli(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { + SET_by_offset(disp, _gloffset_LightModeli, fn); +} + +typedef void (GLAPIENTRYP _glptr_LightModeliv)(GLenum, const GLint *); +#define CALL_LightModeliv(disp, parameters) \ + (* GET_LightModeliv(disp)) parameters +static INLINE _glptr_LightModeliv GET_LightModeliv(struct _glapi_table *disp) { + return (_glptr_LightModeliv) (GET_by_offset(disp, _gloffset_LightModeliv)); +} + +static INLINE void SET_LightModeliv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_LightModeliv, fn); +} + +typedef void (GLAPIENTRYP _glptr_LineStipple)(GLint, GLushort); +#define CALL_LineStipple(disp, parameters) \ + (* GET_LineStipple(disp)) parameters +static INLINE _glptr_LineStipple GET_LineStipple(struct _glapi_table *disp) { + return (_glptr_LineStipple) (GET_by_offset(disp, _gloffset_LineStipple)); +} + +static INLINE void SET_LineStipple(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLushort)) { + SET_by_offset(disp, _gloffset_LineStipple, fn); +} + +typedef void (GLAPIENTRYP _glptr_LineWidth)(GLfloat); +#define CALL_LineWidth(disp, parameters) \ + (* GET_LineWidth(disp)) parameters +static INLINE _glptr_LineWidth GET_LineWidth(struct _glapi_table *disp) { + return (_glptr_LineWidth) (GET_by_offset(disp, _gloffset_LineWidth)); +} + +static INLINE void SET_LineWidth(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { + SET_by_offset(disp, _gloffset_LineWidth, fn); +} + +typedef void (GLAPIENTRYP _glptr_Materialf)(GLenum, GLenum, GLfloat); +#define CALL_Materialf(disp, parameters) \ + (* GET_Materialf(disp)) parameters +static INLINE _glptr_Materialf GET_Materialf(struct _glapi_table *disp) { + return (_glptr_Materialf) (GET_by_offset(disp, _gloffset_Materialf)); +} + +static INLINE void SET_Materialf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_Materialf, fn); +} + +typedef void (GLAPIENTRYP _glptr_Materialfv)(GLenum, GLenum, const GLfloat *); +#define CALL_Materialfv(disp, parameters) \ + (* GET_Materialfv(disp)) parameters +static INLINE _glptr_Materialfv GET_Materialfv(struct _glapi_table *disp) { + return (_glptr_Materialfv) (GET_by_offset(disp, _gloffset_Materialfv)); +} + +static INLINE void SET_Materialfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_Materialfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Materiali)(GLenum, GLenum, GLint); +#define CALL_Materiali(disp, parameters) \ + (* GET_Materiali(disp)) parameters +static INLINE _glptr_Materiali GET_Materiali(struct _glapi_table *disp) { + return (_glptr_Materiali) (GET_by_offset(disp, _gloffset_Materiali)); +} + +static INLINE void SET_Materiali(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { + SET_by_offset(disp, _gloffset_Materiali, fn); +} + +typedef void (GLAPIENTRYP _glptr_Materialiv)(GLenum, GLenum, const GLint *); +#define CALL_Materialiv(disp, parameters) \ + (* GET_Materialiv(disp)) parameters +static INLINE _glptr_Materialiv GET_Materialiv(struct _glapi_table *disp) { + return (_glptr_Materialiv) (GET_by_offset(disp, _gloffset_Materialiv)); +} + +static INLINE void SET_Materialiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_Materialiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_PointSize)(GLfloat); +#define CALL_PointSize(disp, parameters) \ + (* GET_PointSize(disp)) parameters +static INLINE _glptr_PointSize GET_PointSize(struct _glapi_table *disp) { + return (_glptr_PointSize) (GET_by_offset(disp, _gloffset_PointSize)); +} + +static INLINE void SET_PointSize(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { + SET_by_offset(disp, _gloffset_PointSize, fn); +} + +typedef void (GLAPIENTRYP _glptr_PolygonMode)(GLenum, GLenum); +#define CALL_PolygonMode(disp, parameters) \ + (* GET_PolygonMode(disp)) parameters +static INLINE _glptr_PolygonMode GET_PolygonMode(struct _glapi_table *disp) { + return (_glptr_PolygonMode) (GET_by_offset(disp, _gloffset_PolygonMode)); +} + +static INLINE void SET_PolygonMode(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_PolygonMode, fn); +} + +typedef void (GLAPIENTRYP _glptr_PolygonStipple)(const GLubyte *); +#define CALL_PolygonStipple(disp, parameters) \ + (* GET_PolygonStipple(disp)) parameters +static INLINE _glptr_PolygonStipple GET_PolygonStipple(struct _glapi_table *disp) { + return (_glptr_PolygonStipple) (GET_by_offset(disp, _gloffset_PolygonStipple)); +} + +static INLINE void SET_PolygonStipple(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLubyte *)) { + SET_by_offset(disp, _gloffset_PolygonStipple, fn); +} + +typedef void (GLAPIENTRYP _glptr_Scissor)(GLint, GLint, GLsizei, GLsizei); +#define CALL_Scissor(disp, parameters) \ + (* GET_Scissor(disp)) parameters +static INLINE _glptr_Scissor GET_Scissor(struct _glapi_table *disp) { + return (_glptr_Scissor) (GET_by_offset(disp, _gloffset_Scissor)); +} + +static INLINE void SET_Scissor(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLsizei, GLsizei)) { + SET_by_offset(disp, _gloffset_Scissor, fn); +} + +typedef void (GLAPIENTRYP _glptr_ShadeModel)(GLenum); +#define CALL_ShadeModel(disp, parameters) \ + (* GET_ShadeModel(disp)) parameters +static INLINE _glptr_ShadeModel GET_ShadeModel(struct _glapi_table *disp) { + return (_glptr_ShadeModel) (GET_by_offset(disp, _gloffset_ShadeModel)); +} + +static INLINE void SET_ShadeModel(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_ShadeModel, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexParameterf)(GLenum, GLenum, GLfloat); +#define CALL_TexParameterf(disp, parameters) \ + (* GET_TexParameterf(disp)) parameters +static INLINE _glptr_TexParameterf GET_TexParameterf(struct _glapi_table *disp) { + return (_glptr_TexParameterf) (GET_by_offset(disp, _gloffset_TexParameterf)); +} + +static INLINE void SET_TexParameterf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_TexParameterf, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexParameterfv)(GLenum, GLenum, const GLfloat *); +#define CALL_TexParameterfv(disp, parameters) \ + (* GET_TexParameterfv(disp)) parameters +static INLINE _glptr_TexParameterfv GET_TexParameterfv(struct _glapi_table *disp) { + return (_glptr_TexParameterfv) (GET_by_offset(disp, _gloffset_TexParameterfv)); +} + +static INLINE void SET_TexParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_TexParameterfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexParameteri)(GLenum, GLenum, GLint); +#define CALL_TexParameteri(disp, parameters) \ + (* GET_TexParameteri(disp)) parameters +static INLINE _glptr_TexParameteri GET_TexParameteri(struct _glapi_table *disp) { + return (_glptr_TexParameteri) (GET_by_offset(disp, _gloffset_TexParameteri)); +} + +static INLINE void SET_TexParameteri(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { + SET_by_offset(disp, _gloffset_TexParameteri, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexParameteriv)(GLenum, GLenum, const GLint *); +#define CALL_TexParameteriv(disp, parameters) \ + (* GET_TexParameteriv(disp)) parameters +static INLINE _glptr_TexParameteriv GET_TexParameteriv(struct _glapi_table *disp) { + return (_glptr_TexParameteriv) (GET_by_offset(disp, _gloffset_TexParameteriv)); +} + +static INLINE void SET_TexParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_TexParameteriv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexImage1D)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *); +#define CALL_TexImage1D(disp, parameters) \ + (* GET_TexImage1D(disp)) parameters +static INLINE _glptr_TexImage1D GET_TexImage1D(struct _glapi_table *disp) { + return (_glptr_TexImage1D) (GET_by_offset(disp, _gloffset_TexImage1D)); +} + +static INLINE void SET_TexImage1D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_TexImage1D, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexImage2D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); +#define CALL_TexImage2D(disp, parameters) \ + (* GET_TexImage2D(disp)) parameters +static INLINE _glptr_TexImage2D GET_TexImage2D(struct _glapi_table *disp) { + return (_glptr_TexImage2D) (GET_by_offset(disp, _gloffset_TexImage2D)); +} + +static INLINE void SET_TexImage2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_TexImage2D, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexEnvf)(GLenum, GLenum, GLfloat); +#define CALL_TexEnvf(disp, parameters) \ + (* GET_TexEnvf(disp)) parameters +static INLINE _glptr_TexEnvf GET_TexEnvf(struct _glapi_table *disp) { + return (_glptr_TexEnvf) (GET_by_offset(disp, _gloffset_TexEnvf)); +} + +static INLINE void SET_TexEnvf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_TexEnvf, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexEnvfv)(GLenum, GLenum, const GLfloat *); +#define CALL_TexEnvfv(disp, parameters) \ + (* GET_TexEnvfv(disp)) parameters +static INLINE _glptr_TexEnvfv GET_TexEnvfv(struct _glapi_table *disp) { + return (_glptr_TexEnvfv) (GET_by_offset(disp, _gloffset_TexEnvfv)); +} + +static INLINE void SET_TexEnvfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_TexEnvfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexEnvi)(GLenum, GLenum, GLint); +#define CALL_TexEnvi(disp, parameters) \ + (* GET_TexEnvi(disp)) parameters +static INLINE _glptr_TexEnvi GET_TexEnvi(struct _glapi_table *disp) { + return (_glptr_TexEnvi) (GET_by_offset(disp, _gloffset_TexEnvi)); +} + +static INLINE void SET_TexEnvi(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { + SET_by_offset(disp, _gloffset_TexEnvi, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexEnviv)(GLenum, GLenum, const GLint *); +#define CALL_TexEnviv(disp, parameters) \ + (* GET_TexEnviv(disp)) parameters +static INLINE _glptr_TexEnviv GET_TexEnviv(struct _glapi_table *disp) { + return (_glptr_TexEnviv) (GET_by_offset(disp, _gloffset_TexEnviv)); +} + +static INLINE void SET_TexEnviv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_TexEnviv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexGend)(GLenum, GLenum, GLdouble); +#define CALL_TexGend(disp, parameters) \ + (* GET_TexGend(disp)) parameters +static INLINE _glptr_TexGend GET_TexGend(struct _glapi_table *disp) { + return (_glptr_TexGend) (GET_by_offset(disp, _gloffset_TexGend)); +} + +static INLINE void SET_TexGend(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLdouble)) { + SET_by_offset(disp, _gloffset_TexGend, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexGendv)(GLenum, GLenum, const GLdouble *); +#define CALL_TexGendv(disp, parameters) \ + (* GET_TexGendv(disp)) parameters +static INLINE _glptr_TexGendv GET_TexGendv(struct _glapi_table *disp) { + return (_glptr_TexGendv) (GET_by_offset(disp, _gloffset_TexGendv)); +} + +static INLINE void SET_TexGendv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLdouble *)) { + SET_by_offset(disp, _gloffset_TexGendv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexGenf)(GLenum, GLenum, GLfloat); +#define CALL_TexGenf(disp, parameters) \ + (* GET_TexGenf(disp)) parameters +static INLINE _glptr_TexGenf GET_TexGenf(struct _glapi_table *disp) { + return (_glptr_TexGenf) (GET_by_offset(disp, _gloffset_TexGenf)); +} + +static INLINE void SET_TexGenf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_TexGenf, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexGenfv)(GLenum, GLenum, const GLfloat *); +#define CALL_TexGenfv(disp, parameters) \ + (* GET_TexGenfv(disp)) parameters +static INLINE _glptr_TexGenfv GET_TexGenfv(struct _glapi_table *disp) { + return (_glptr_TexGenfv) (GET_by_offset(disp, _gloffset_TexGenfv)); +} + +static INLINE void SET_TexGenfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_TexGenfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexGeni)(GLenum, GLenum, GLint); +#define CALL_TexGeni(disp, parameters) \ + (* GET_TexGeni(disp)) parameters +static INLINE _glptr_TexGeni GET_TexGeni(struct _glapi_table *disp) { + return (_glptr_TexGeni) (GET_by_offset(disp, _gloffset_TexGeni)); +} + +static INLINE void SET_TexGeni(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { + SET_by_offset(disp, _gloffset_TexGeni, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexGeniv)(GLenum, GLenum, const GLint *); +#define CALL_TexGeniv(disp, parameters) \ + (* GET_TexGeniv(disp)) parameters +static INLINE _glptr_TexGeniv GET_TexGeniv(struct _glapi_table *disp) { + return (_glptr_TexGeniv) (GET_by_offset(disp, _gloffset_TexGeniv)); +} + +static INLINE void SET_TexGeniv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_TexGeniv, fn); +} + +typedef void (GLAPIENTRYP _glptr_FeedbackBuffer)(GLsizei, GLenum, GLfloat *); +#define CALL_FeedbackBuffer(disp, parameters) \ + (* GET_FeedbackBuffer(disp)) parameters +static INLINE _glptr_FeedbackBuffer GET_FeedbackBuffer(struct _glapi_table *disp) { + return (_glptr_FeedbackBuffer) (GET_by_offset(disp, _gloffset_FeedbackBuffer)); +} + +static INLINE void SET_FeedbackBuffer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_FeedbackBuffer, fn); +} + +typedef void (GLAPIENTRYP _glptr_SelectBuffer)(GLsizei, GLuint *); +#define CALL_SelectBuffer(disp, parameters) \ + (* GET_SelectBuffer(disp)) parameters +static INLINE _glptr_SelectBuffer GET_SelectBuffer(struct _glapi_table *disp) { + return (_glptr_SelectBuffer) (GET_by_offset(disp, _gloffset_SelectBuffer)); +} + +static INLINE void SET_SelectBuffer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_SelectBuffer, fn); +} + +typedef GLint (GLAPIENTRYP _glptr_RenderMode)(GLenum); +#define CALL_RenderMode(disp, parameters) \ + (* GET_RenderMode(disp)) parameters +static INLINE _glptr_RenderMode GET_RenderMode(struct _glapi_table *disp) { + return (_glptr_RenderMode) (GET_by_offset(disp, _gloffset_RenderMode)); +} + +static INLINE void SET_RenderMode(struct _glapi_table *disp, GLint (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_RenderMode, fn); +} + +typedef void (GLAPIENTRYP _glptr_InitNames)(void); +#define CALL_InitNames(disp, parameters) \ + (* GET_InitNames(disp)) parameters +static INLINE _glptr_InitNames GET_InitNames(struct _glapi_table *disp) { + return (_glptr_InitNames) (GET_by_offset(disp, _gloffset_InitNames)); +} + +static INLINE void SET_InitNames(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_InitNames, fn); +} + +typedef void (GLAPIENTRYP _glptr_LoadName)(GLuint); +#define CALL_LoadName(disp, parameters) \ + (* GET_LoadName(disp)) parameters +static INLINE _glptr_LoadName GET_LoadName(struct _glapi_table *disp) { + return (_glptr_LoadName) (GET_by_offset(disp, _gloffset_LoadName)); +} + +static INLINE void SET_LoadName(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_LoadName, fn); +} + +typedef void (GLAPIENTRYP _glptr_PassThrough)(GLfloat); +#define CALL_PassThrough(disp, parameters) \ + (* GET_PassThrough(disp)) parameters +static INLINE _glptr_PassThrough GET_PassThrough(struct _glapi_table *disp) { + return (_glptr_PassThrough) (GET_by_offset(disp, _gloffset_PassThrough)); +} + +static INLINE void SET_PassThrough(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { + SET_by_offset(disp, _gloffset_PassThrough, fn); +} + +typedef void (GLAPIENTRYP _glptr_PopName)(void); +#define CALL_PopName(disp, parameters) \ + (* GET_PopName(disp)) parameters +static INLINE _glptr_PopName GET_PopName(struct _glapi_table *disp) { + return (_glptr_PopName) (GET_by_offset(disp, _gloffset_PopName)); +} + +static INLINE void SET_PopName(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_PopName, fn); +} + +typedef void (GLAPIENTRYP _glptr_PushName)(GLuint); +#define CALL_PushName(disp, parameters) \ + (* GET_PushName(disp)) parameters +static INLINE _glptr_PushName GET_PushName(struct _glapi_table *disp) { + return (_glptr_PushName) (GET_by_offset(disp, _gloffset_PushName)); +} + +static INLINE void SET_PushName(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_PushName, fn); +} + +typedef void (GLAPIENTRYP _glptr_DrawBuffer)(GLenum); +#define CALL_DrawBuffer(disp, parameters) \ + (* GET_DrawBuffer(disp)) parameters +static INLINE _glptr_DrawBuffer GET_DrawBuffer(struct _glapi_table *disp) { + return (_glptr_DrawBuffer) (GET_by_offset(disp, _gloffset_DrawBuffer)); +} + +static INLINE void SET_DrawBuffer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_DrawBuffer, fn); +} + +typedef void (GLAPIENTRYP _glptr_Clear)(GLbitfield); +#define CALL_Clear(disp, parameters) \ + (* GET_Clear(disp)) parameters +static INLINE _glptr_Clear GET_Clear(struct _glapi_table *disp) { + return (_glptr_Clear) (GET_by_offset(disp, _gloffset_Clear)); +} + +static INLINE void SET_Clear(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbitfield)) { + SET_by_offset(disp, _gloffset_Clear, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClearAccum)(GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_ClearAccum(disp, parameters) \ + (* GET_ClearAccum(disp)) parameters +static INLINE _glptr_ClearAccum GET_ClearAccum(struct _glapi_table *disp) { + return (_glptr_ClearAccum) (GET_by_offset(disp, _gloffset_ClearAccum)); +} + +static INLINE void SET_ClearAccum(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_ClearAccum, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClearIndex)(GLfloat); +#define CALL_ClearIndex(disp, parameters) \ + (* GET_ClearIndex(disp)) parameters +static INLINE _glptr_ClearIndex GET_ClearIndex(struct _glapi_table *disp) { + return (_glptr_ClearIndex) (GET_by_offset(disp, _gloffset_ClearIndex)); +} + +static INLINE void SET_ClearIndex(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { + SET_by_offset(disp, _gloffset_ClearIndex, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClearColor)(GLclampf, GLclampf, GLclampf, GLclampf); +#define CALL_ClearColor(disp, parameters) \ + (* GET_ClearColor(disp)) parameters +static INLINE _glptr_ClearColor GET_ClearColor(struct _glapi_table *disp) { + return (_glptr_ClearColor) (GET_by_offset(disp, _gloffset_ClearColor)); +} + +static INLINE void SET_ClearColor(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampf, GLclampf, GLclampf, GLclampf)) { + SET_by_offset(disp, _gloffset_ClearColor, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClearStencil)(GLint); +#define CALL_ClearStencil(disp, parameters) \ + (* GET_ClearStencil(disp)) parameters +static INLINE _glptr_ClearStencil GET_ClearStencil(struct _glapi_table *disp) { + return (_glptr_ClearStencil) (GET_by_offset(disp, _gloffset_ClearStencil)); +} + +static INLINE void SET_ClearStencil(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint)) { + SET_by_offset(disp, _gloffset_ClearStencil, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClearDepth)(GLclampd); +#define CALL_ClearDepth(disp, parameters) \ + (* GET_ClearDepth(disp)) parameters +static INLINE _glptr_ClearDepth GET_ClearDepth(struct _glapi_table *disp) { + return (_glptr_ClearDepth) (GET_by_offset(disp, _gloffset_ClearDepth)); +} + +static INLINE void SET_ClearDepth(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampd)) { + SET_by_offset(disp, _gloffset_ClearDepth, fn); +} + +typedef void (GLAPIENTRYP _glptr_StencilMask)(GLuint); +#define CALL_StencilMask(disp, parameters) \ + (* GET_StencilMask(disp)) parameters +static INLINE _glptr_StencilMask GET_StencilMask(struct _glapi_table *disp) { + return (_glptr_StencilMask) (GET_by_offset(disp, _gloffset_StencilMask)); +} + +static INLINE void SET_StencilMask(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_StencilMask, fn); +} + +typedef void (GLAPIENTRYP _glptr_ColorMask)(GLboolean, GLboolean, GLboolean, GLboolean); +#define CALL_ColorMask(disp, parameters) \ + (* GET_ColorMask(disp)) parameters +static INLINE _glptr_ColorMask GET_ColorMask(struct _glapi_table *disp) { + return (_glptr_ColorMask) (GET_by_offset(disp, _gloffset_ColorMask)); +} + +static INLINE void SET_ColorMask(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLboolean, GLboolean, GLboolean, GLboolean)) { + SET_by_offset(disp, _gloffset_ColorMask, fn); +} + +typedef void (GLAPIENTRYP _glptr_DepthMask)(GLboolean); +#define CALL_DepthMask(disp, parameters) \ + (* GET_DepthMask(disp)) parameters +static INLINE _glptr_DepthMask GET_DepthMask(struct _glapi_table *disp) { + return (_glptr_DepthMask) (GET_by_offset(disp, _gloffset_DepthMask)); +} + +static INLINE void SET_DepthMask(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLboolean)) { + SET_by_offset(disp, _gloffset_DepthMask, fn); +} + +typedef void (GLAPIENTRYP _glptr_IndexMask)(GLuint); +#define CALL_IndexMask(disp, parameters) \ + (* GET_IndexMask(disp)) parameters +static INLINE _glptr_IndexMask GET_IndexMask(struct _glapi_table *disp) { + return (_glptr_IndexMask) (GET_by_offset(disp, _gloffset_IndexMask)); +} + +static INLINE void SET_IndexMask(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IndexMask, fn); +} + +typedef void (GLAPIENTRYP _glptr_Accum)(GLenum, GLfloat); +#define CALL_Accum(disp, parameters) \ + (* GET_Accum(disp)) parameters +static INLINE _glptr_Accum GET_Accum(struct _glapi_table *disp) { + return (_glptr_Accum) (GET_by_offset(disp, _gloffset_Accum)); +} + +static INLINE void SET_Accum(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_Accum, fn); +} + +typedef void (GLAPIENTRYP _glptr_Disable)(GLenum); +#define CALL_Disable(disp, parameters) \ + (* GET_Disable(disp)) parameters +static INLINE _glptr_Disable GET_Disable(struct _glapi_table *disp) { + return (_glptr_Disable) (GET_by_offset(disp, _gloffset_Disable)); +} + +static INLINE void SET_Disable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_Disable, fn); +} + +typedef void (GLAPIENTRYP _glptr_Enable)(GLenum); +#define CALL_Enable(disp, parameters) \ + (* GET_Enable(disp)) parameters +static INLINE _glptr_Enable GET_Enable(struct _glapi_table *disp) { + return (_glptr_Enable) (GET_by_offset(disp, _gloffset_Enable)); +} + +static INLINE void SET_Enable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_Enable, fn); +} + +typedef void (GLAPIENTRYP _glptr_Finish)(void); +#define CALL_Finish(disp, parameters) \ + (* GET_Finish(disp)) parameters +static INLINE _glptr_Finish GET_Finish(struct _glapi_table *disp) { + return (_glptr_Finish) (GET_by_offset(disp, _gloffset_Finish)); +} + +static INLINE void SET_Finish(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_Finish, fn); +} + +typedef void (GLAPIENTRYP _glptr_Flush)(void); +#define CALL_Flush(disp, parameters) \ + (* GET_Flush(disp)) parameters +static INLINE _glptr_Flush GET_Flush(struct _glapi_table *disp) { + return (_glptr_Flush) (GET_by_offset(disp, _gloffset_Flush)); +} + +static INLINE void SET_Flush(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_Flush, fn); +} + +typedef void (GLAPIENTRYP _glptr_PopAttrib)(void); +#define CALL_PopAttrib(disp, parameters) \ + (* GET_PopAttrib(disp)) parameters +static INLINE _glptr_PopAttrib GET_PopAttrib(struct _glapi_table *disp) { + return (_glptr_PopAttrib) (GET_by_offset(disp, _gloffset_PopAttrib)); +} + +static INLINE void SET_PopAttrib(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_PopAttrib, fn); +} + +typedef void (GLAPIENTRYP _glptr_PushAttrib)(GLbitfield); +#define CALL_PushAttrib(disp, parameters) \ + (* GET_PushAttrib(disp)) parameters +static INLINE _glptr_PushAttrib GET_PushAttrib(struct _glapi_table *disp) { + return (_glptr_PushAttrib) (GET_by_offset(disp, _gloffset_PushAttrib)); +} + +static INLINE void SET_PushAttrib(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbitfield)) { + SET_by_offset(disp, _gloffset_PushAttrib, fn); +} + +typedef void (GLAPIENTRYP _glptr_Map1d)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *); +#define CALL_Map1d(disp, parameters) \ + (* GET_Map1d(disp)) parameters +static INLINE _glptr_Map1d GET_Map1d(struct _glapi_table *disp) { + return (_glptr_Map1d) (GET_by_offset(disp, _gloffset_Map1d)); +} + +static INLINE void SET_Map1d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *)) { + SET_by_offset(disp, _gloffset_Map1d, fn); +} + +typedef void (GLAPIENTRYP _glptr_Map1f)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *); +#define CALL_Map1f(disp, parameters) \ + (* GET_Map1f(disp)) parameters +static INLINE _glptr_Map1f GET_Map1f(struct _glapi_table *disp) { + return (_glptr_Map1f) (GET_by_offset(disp, _gloffset_Map1f)); +} + +static INLINE void SET_Map1f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_Map1f, fn); +} + +typedef void (GLAPIENTRYP _glptr_Map2d)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *); +#define CALL_Map2d(disp, parameters) \ + (* GET_Map2d(disp)) parameters +static INLINE _glptr_Map2d GET_Map2d(struct _glapi_table *disp) { + return (_glptr_Map2d) (GET_by_offset(disp, _gloffset_Map2d)); +} + +static INLINE void SET_Map2d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *)) { + SET_by_offset(disp, _gloffset_Map2d, fn); +} + +typedef void (GLAPIENTRYP _glptr_Map2f)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *); +#define CALL_Map2f(disp, parameters) \ + (* GET_Map2f(disp)) parameters +static INLINE _glptr_Map2f GET_Map2f(struct _glapi_table *disp) { + return (_glptr_Map2f) (GET_by_offset(disp, _gloffset_Map2f)); +} + +static INLINE void SET_Map2f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_Map2f, fn); +} + +typedef void (GLAPIENTRYP _glptr_MapGrid1d)(GLint, GLdouble, GLdouble); +#define CALL_MapGrid1d(disp, parameters) \ + (* GET_MapGrid1d(disp)) parameters +static INLINE _glptr_MapGrid1d GET_MapGrid1d(struct _glapi_table *disp) { + return (_glptr_MapGrid1d) (GET_by_offset(disp, _gloffset_MapGrid1d)); +} + +static INLINE void SET_MapGrid1d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_MapGrid1d, fn); +} + +typedef void (GLAPIENTRYP _glptr_MapGrid1f)(GLint, GLfloat, GLfloat); +#define CALL_MapGrid1f(disp, parameters) \ + (* GET_MapGrid1f(disp)) parameters +static INLINE _glptr_MapGrid1f GET_MapGrid1f(struct _glapi_table *disp) { + return (_glptr_MapGrid1f) (GET_by_offset(disp, _gloffset_MapGrid1f)); +} + +static INLINE void SET_MapGrid1f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_MapGrid1f, fn); +} + +typedef void (GLAPIENTRYP _glptr_MapGrid2d)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble); +#define CALL_MapGrid2d(disp, parameters) \ + (* GET_MapGrid2d(disp)) parameters +static INLINE _glptr_MapGrid2d GET_MapGrid2d(struct _glapi_table *disp) { + return (_glptr_MapGrid2d) (GET_by_offset(disp, _gloffset_MapGrid2d)); +} + +static INLINE void SET_MapGrid2d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_MapGrid2d, fn); +} + +typedef void (GLAPIENTRYP _glptr_MapGrid2f)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat); +#define CALL_MapGrid2f(disp, parameters) \ + (* GET_MapGrid2f(disp)) parameters +static INLINE _glptr_MapGrid2f GET_MapGrid2f(struct _glapi_table *disp) { + return (_glptr_MapGrid2f) (GET_by_offset(disp, _gloffset_MapGrid2f)); +} + +static INLINE void SET_MapGrid2f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_MapGrid2f, fn); +} + +typedef void (GLAPIENTRYP _glptr_EvalCoord1d)(GLdouble); +#define CALL_EvalCoord1d(disp, parameters) \ + (* GET_EvalCoord1d(disp)) parameters +static INLINE _glptr_EvalCoord1d GET_EvalCoord1d(struct _glapi_table *disp) { + return (_glptr_EvalCoord1d) (GET_by_offset(disp, _gloffset_EvalCoord1d)); +} + +static INLINE void SET_EvalCoord1d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble)) { + SET_by_offset(disp, _gloffset_EvalCoord1d, fn); +} + +typedef void (GLAPIENTRYP _glptr_EvalCoord1dv)(const GLdouble *); +#define CALL_EvalCoord1dv(disp, parameters) \ + (* GET_EvalCoord1dv(disp)) parameters +static INLINE _glptr_EvalCoord1dv GET_EvalCoord1dv(struct _glapi_table *disp) { + return (_glptr_EvalCoord1dv) (GET_by_offset(disp, _gloffset_EvalCoord1dv)); +} + +static INLINE void SET_EvalCoord1dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_EvalCoord1dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_EvalCoord1f)(GLfloat); +#define CALL_EvalCoord1f(disp, parameters) \ + (* GET_EvalCoord1f(disp)) parameters +static INLINE _glptr_EvalCoord1f GET_EvalCoord1f(struct _glapi_table *disp) { + return (_glptr_EvalCoord1f) (GET_by_offset(disp, _gloffset_EvalCoord1f)); +} + +static INLINE void SET_EvalCoord1f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { + SET_by_offset(disp, _gloffset_EvalCoord1f, fn); +} + +typedef void (GLAPIENTRYP _glptr_EvalCoord1fv)(const GLfloat *); +#define CALL_EvalCoord1fv(disp, parameters) \ + (* GET_EvalCoord1fv(disp)) parameters +static INLINE _glptr_EvalCoord1fv GET_EvalCoord1fv(struct _glapi_table *disp) { + return (_glptr_EvalCoord1fv) (GET_by_offset(disp, _gloffset_EvalCoord1fv)); +} + +static INLINE void SET_EvalCoord1fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_EvalCoord1fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_EvalCoord2d)(GLdouble, GLdouble); +#define CALL_EvalCoord2d(disp, parameters) \ + (* GET_EvalCoord2d(disp)) parameters +static INLINE _glptr_EvalCoord2d GET_EvalCoord2d(struct _glapi_table *disp) { + return (_glptr_EvalCoord2d) (GET_by_offset(disp, _gloffset_EvalCoord2d)); +} + +static INLINE void SET_EvalCoord2d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_EvalCoord2d, fn); +} + +typedef void (GLAPIENTRYP _glptr_EvalCoord2dv)(const GLdouble *); +#define CALL_EvalCoord2dv(disp, parameters) \ + (* GET_EvalCoord2dv(disp)) parameters +static INLINE _glptr_EvalCoord2dv GET_EvalCoord2dv(struct _glapi_table *disp) { + return (_glptr_EvalCoord2dv) (GET_by_offset(disp, _gloffset_EvalCoord2dv)); +} + +static INLINE void SET_EvalCoord2dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_EvalCoord2dv, fn); +} + +typedef void (GLAPIENTRYP _glptr_EvalCoord2f)(GLfloat, GLfloat); +#define CALL_EvalCoord2f(disp, parameters) \ + (* GET_EvalCoord2f(disp)) parameters +static INLINE _glptr_EvalCoord2f GET_EvalCoord2f(struct _glapi_table *disp) { + return (_glptr_EvalCoord2f) (GET_by_offset(disp, _gloffset_EvalCoord2f)); +} + +static INLINE void SET_EvalCoord2f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_EvalCoord2f, fn); +} + +typedef void (GLAPIENTRYP _glptr_EvalCoord2fv)(const GLfloat *); +#define CALL_EvalCoord2fv(disp, parameters) \ + (* GET_EvalCoord2fv(disp)) parameters +static INLINE _glptr_EvalCoord2fv GET_EvalCoord2fv(struct _glapi_table *disp) { + return (_glptr_EvalCoord2fv) (GET_by_offset(disp, _gloffset_EvalCoord2fv)); +} + +static INLINE void SET_EvalCoord2fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_EvalCoord2fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_EvalMesh1)(GLenum, GLint, GLint); +#define CALL_EvalMesh1(disp, parameters) \ + (* GET_EvalMesh1(disp)) parameters +static INLINE _glptr_EvalMesh1 GET_EvalMesh1(struct _glapi_table *disp) { + return (_glptr_EvalMesh1) (GET_by_offset(disp, _gloffset_EvalMesh1)); +} + +static INLINE void SET_EvalMesh1(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint)) { + SET_by_offset(disp, _gloffset_EvalMesh1, fn); +} + +typedef void (GLAPIENTRYP _glptr_EvalPoint1)(GLint); +#define CALL_EvalPoint1(disp, parameters) \ + (* GET_EvalPoint1(disp)) parameters +static INLINE _glptr_EvalPoint1 GET_EvalPoint1(struct _glapi_table *disp) { + return (_glptr_EvalPoint1) (GET_by_offset(disp, _gloffset_EvalPoint1)); +} + +static INLINE void SET_EvalPoint1(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint)) { + SET_by_offset(disp, _gloffset_EvalPoint1, fn); +} + +typedef void (GLAPIENTRYP _glptr_EvalMesh2)(GLenum, GLint, GLint, GLint, GLint); +#define CALL_EvalMesh2(disp, parameters) \ + (* GET_EvalMesh2(disp)) parameters +static INLINE _glptr_EvalMesh2 GET_EvalMesh2(struct _glapi_table *disp) { + return (_glptr_EvalMesh2) (GET_by_offset(disp, _gloffset_EvalMesh2)); +} + +static INLINE void SET_EvalMesh2(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_EvalMesh2, fn); +} + +typedef void (GLAPIENTRYP _glptr_EvalPoint2)(GLint, GLint); +#define CALL_EvalPoint2(disp, parameters) \ + (* GET_EvalPoint2(disp)) parameters +static INLINE _glptr_EvalPoint2 GET_EvalPoint2(struct _glapi_table *disp) { + return (_glptr_EvalPoint2) (GET_by_offset(disp, _gloffset_EvalPoint2)); +} + +static INLINE void SET_EvalPoint2(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint)) { + SET_by_offset(disp, _gloffset_EvalPoint2, fn); +} + +typedef void (GLAPIENTRYP _glptr_AlphaFunc)(GLenum, GLclampf); +#define CALL_AlphaFunc(disp, parameters) \ + (* GET_AlphaFunc(disp)) parameters +static INLINE _glptr_AlphaFunc GET_AlphaFunc(struct _glapi_table *disp) { + return (_glptr_AlphaFunc) (GET_by_offset(disp, _gloffset_AlphaFunc)); +} + +static INLINE void SET_AlphaFunc(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLclampf)) { + SET_by_offset(disp, _gloffset_AlphaFunc, fn); +} + +typedef void (GLAPIENTRYP _glptr_BlendFunc)(GLenum, GLenum); +#define CALL_BlendFunc(disp, parameters) \ + (* GET_BlendFunc(disp)) parameters +static INLINE _glptr_BlendFunc GET_BlendFunc(struct _glapi_table *disp) { + return (_glptr_BlendFunc) (GET_by_offset(disp, _gloffset_BlendFunc)); +} + +static INLINE void SET_BlendFunc(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_BlendFunc, fn); +} + +typedef void (GLAPIENTRYP _glptr_LogicOp)(GLenum); +#define CALL_LogicOp(disp, parameters) \ + (* GET_LogicOp(disp)) parameters +static INLINE _glptr_LogicOp GET_LogicOp(struct _glapi_table *disp) { + return (_glptr_LogicOp) (GET_by_offset(disp, _gloffset_LogicOp)); +} + +static INLINE void SET_LogicOp(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_LogicOp, fn); +} + +typedef void (GLAPIENTRYP _glptr_StencilFunc)(GLenum, GLint, GLuint); +#define CALL_StencilFunc(disp, parameters) \ + (* GET_StencilFunc(disp)) parameters +static INLINE _glptr_StencilFunc GET_StencilFunc(struct _glapi_table *disp) { + return (_glptr_StencilFunc) (GET_by_offset(disp, _gloffset_StencilFunc)); +} + +static INLINE void SET_StencilFunc(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLuint)) { + SET_by_offset(disp, _gloffset_StencilFunc, fn); +} + +typedef void (GLAPIENTRYP _glptr_StencilOp)(GLenum, GLenum, GLenum); +#define CALL_StencilOp(disp, parameters) \ + (* GET_StencilOp(disp)) parameters +static INLINE _glptr_StencilOp GET_StencilOp(struct _glapi_table *disp) { + return (_glptr_StencilOp) (GET_by_offset(disp, _gloffset_StencilOp)); +} + +static INLINE void SET_StencilOp(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_StencilOp, fn); +} + +typedef void (GLAPIENTRYP _glptr_DepthFunc)(GLenum); +#define CALL_DepthFunc(disp, parameters) \ + (* GET_DepthFunc(disp)) parameters +static INLINE _glptr_DepthFunc GET_DepthFunc(struct _glapi_table *disp) { + return (_glptr_DepthFunc) (GET_by_offset(disp, _gloffset_DepthFunc)); +} + +static INLINE void SET_DepthFunc(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_DepthFunc, fn); +} + +typedef void (GLAPIENTRYP _glptr_PixelZoom)(GLfloat, GLfloat); +#define CALL_PixelZoom(disp, parameters) \ + (* GET_PixelZoom(disp)) parameters +static INLINE _glptr_PixelZoom GET_PixelZoom(struct _glapi_table *disp) { + return (_glptr_PixelZoom) (GET_by_offset(disp, _gloffset_PixelZoom)); +} + +static INLINE void SET_PixelZoom(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_PixelZoom, fn); +} + +typedef void (GLAPIENTRYP _glptr_PixelTransferf)(GLenum, GLfloat); +#define CALL_PixelTransferf(disp, parameters) \ + (* GET_PixelTransferf(disp)) parameters +static INLINE _glptr_PixelTransferf GET_PixelTransferf(struct _glapi_table *disp) { + return (_glptr_PixelTransferf) (GET_by_offset(disp, _gloffset_PixelTransferf)); +} + +static INLINE void SET_PixelTransferf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_PixelTransferf, fn); +} + +typedef void (GLAPIENTRYP _glptr_PixelTransferi)(GLenum, GLint); +#define CALL_PixelTransferi(disp, parameters) \ + (* GET_PixelTransferi(disp)) parameters +static INLINE _glptr_PixelTransferi GET_PixelTransferi(struct _glapi_table *disp) { + return (_glptr_PixelTransferi) (GET_by_offset(disp, _gloffset_PixelTransferi)); +} + +static INLINE void SET_PixelTransferi(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { + SET_by_offset(disp, _gloffset_PixelTransferi, fn); +} + +typedef void (GLAPIENTRYP _glptr_PixelStoref)(GLenum, GLfloat); +#define CALL_PixelStoref(disp, parameters) \ + (* GET_PixelStoref(disp)) parameters +static INLINE _glptr_PixelStoref GET_PixelStoref(struct _glapi_table *disp) { + return (_glptr_PixelStoref) (GET_by_offset(disp, _gloffset_PixelStoref)); +} + +static INLINE void SET_PixelStoref(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_PixelStoref, fn); +} + +typedef void (GLAPIENTRYP _glptr_PixelStorei)(GLenum, GLint); +#define CALL_PixelStorei(disp, parameters) \ + (* GET_PixelStorei(disp)) parameters +static INLINE _glptr_PixelStorei GET_PixelStorei(struct _glapi_table *disp) { + return (_glptr_PixelStorei) (GET_by_offset(disp, _gloffset_PixelStorei)); +} + +static INLINE void SET_PixelStorei(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { + SET_by_offset(disp, _gloffset_PixelStorei, fn); +} + +typedef void (GLAPIENTRYP _glptr_PixelMapfv)(GLenum, GLsizei, const GLfloat *); +#define CALL_PixelMapfv(disp, parameters) \ + (* GET_PixelMapfv(disp)) parameters +static INLINE _glptr_PixelMapfv GET_PixelMapfv(struct _glapi_table *disp) { + return (_glptr_PixelMapfv) (GET_by_offset(disp, _gloffset_PixelMapfv)); +} + +static INLINE void SET_PixelMapfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLfloat *)) { + SET_by_offset(disp, _gloffset_PixelMapfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_PixelMapuiv)(GLenum, GLsizei, const GLuint *); +#define CALL_PixelMapuiv(disp, parameters) \ + (* GET_PixelMapuiv(disp)) parameters +static INLINE _glptr_PixelMapuiv GET_PixelMapuiv(struct _glapi_table *disp) { + return (_glptr_PixelMapuiv) (GET_by_offset(disp, _gloffset_PixelMapuiv)); +} + +static INLINE void SET_PixelMapuiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_PixelMapuiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_PixelMapusv)(GLenum, GLsizei, const GLushort *); +#define CALL_PixelMapusv(disp, parameters) \ + (* GET_PixelMapusv(disp)) parameters +static INLINE _glptr_PixelMapusv GET_PixelMapusv(struct _glapi_table *disp) { + return (_glptr_PixelMapusv) (GET_by_offset(disp, _gloffset_PixelMapusv)); +} + +static INLINE void SET_PixelMapusv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLushort *)) { + SET_by_offset(disp, _gloffset_PixelMapusv, fn); +} + +typedef void (GLAPIENTRYP _glptr_ReadBuffer)(GLenum); +#define CALL_ReadBuffer(disp, parameters) \ + (* GET_ReadBuffer(disp)) parameters +static INLINE _glptr_ReadBuffer GET_ReadBuffer(struct _glapi_table *disp) { + return (_glptr_ReadBuffer) (GET_by_offset(disp, _gloffset_ReadBuffer)); +} + +static INLINE void SET_ReadBuffer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_ReadBuffer, fn); +} + +typedef void (GLAPIENTRYP _glptr_CopyPixels)(GLint, GLint, GLsizei, GLsizei, GLenum); +#define CALL_CopyPixels(disp, parameters) \ + (* GET_CopyPixels(disp)) parameters +static INLINE _glptr_CopyPixels GET_CopyPixels(struct _glapi_table *disp) { + return (_glptr_CopyPixels) (GET_by_offset(disp, _gloffset_CopyPixels)); +} + +static INLINE void SET_CopyPixels(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLsizei, GLsizei, GLenum)) { + SET_by_offset(disp, _gloffset_CopyPixels, fn); +} + +typedef void (GLAPIENTRYP _glptr_ReadPixels)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *); +#define CALL_ReadPixels(disp, parameters) \ + (* GET_ReadPixels(disp)) parameters +static INLINE _glptr_ReadPixels GET_ReadPixels(struct _glapi_table *disp) { + return (_glptr_ReadPixels) (GET_by_offset(disp, _gloffset_ReadPixels)); +} + +static INLINE void SET_ReadPixels(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *)) { + SET_by_offset(disp, _gloffset_ReadPixels, fn); +} + +typedef void (GLAPIENTRYP _glptr_DrawPixels)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +#define CALL_DrawPixels(disp, parameters) \ + (* GET_DrawPixels(disp)) parameters +static INLINE _glptr_DrawPixels GET_DrawPixels(struct _glapi_table *disp) { + return (_glptr_DrawPixels) (GET_by_offset(disp, _gloffset_DrawPixels)); +} + +static INLINE void SET_DrawPixels(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_DrawPixels, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetBooleanv)(GLenum, GLboolean *); +#define CALL_GetBooleanv(disp, parameters) \ + (* GET_GetBooleanv(disp)) parameters +static INLINE _glptr_GetBooleanv GET_GetBooleanv(struct _glapi_table *disp) { + return (_glptr_GetBooleanv) (GET_by_offset(disp, _gloffset_GetBooleanv)); +} + +static INLINE void SET_GetBooleanv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLboolean *)) { + SET_by_offset(disp, _gloffset_GetBooleanv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetClipPlane)(GLenum, GLdouble *); +#define CALL_GetClipPlane(disp, parameters) \ + (* GET_GetClipPlane(disp)) parameters +static INLINE _glptr_GetClipPlane GET_GetClipPlane(struct _glapi_table *disp) { + return (_glptr_GetClipPlane) (GET_by_offset(disp, _gloffset_GetClipPlane)); +} + +static INLINE void SET_GetClipPlane(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble *)) { + SET_by_offset(disp, _gloffset_GetClipPlane, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetDoublev)(GLenum, GLdouble *); +#define CALL_GetDoublev(disp, parameters) \ + (* GET_GetDoublev(disp)) parameters +static INLINE _glptr_GetDoublev GET_GetDoublev(struct _glapi_table *disp) { + return (_glptr_GetDoublev) (GET_by_offset(disp, _gloffset_GetDoublev)); +} + +static INLINE void SET_GetDoublev(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble *)) { + SET_by_offset(disp, _gloffset_GetDoublev, fn); +} + +typedef GLenum (GLAPIENTRYP _glptr_GetError)(void); +#define CALL_GetError(disp, parameters) \ + (* GET_GetError(disp)) parameters +static INLINE _glptr_GetError GET_GetError(struct _glapi_table *disp) { + return (_glptr_GetError) (GET_by_offset(disp, _gloffset_GetError)); +} + +static INLINE void SET_GetError(struct _glapi_table *disp, GLenum (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_GetError, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetFloatv)(GLenum, GLfloat *); +#define CALL_GetFloatv(disp, parameters) \ + (* GET_GetFloatv(disp)) parameters +static INLINE _glptr_GetFloatv GET_GetFloatv(struct _glapi_table *disp) { + return (_glptr_GetFloatv) (GET_by_offset(disp, _gloffset_GetFloatv)); +} + +static INLINE void SET_GetFloatv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetFloatv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetIntegerv)(GLenum, GLint *); +#define CALL_GetIntegerv(disp, parameters) \ + (* GET_GetIntegerv(disp)) parameters +static INLINE _glptr_GetIntegerv GET_GetIntegerv(struct _glapi_table *disp) { + return (_glptr_GetIntegerv) (GET_by_offset(disp, _gloffset_GetIntegerv)); +} + +static INLINE void SET_GetIntegerv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetIntegerv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetLightfv)(GLenum, GLenum, GLfloat *); +#define CALL_GetLightfv(disp, parameters) \ + (* GET_GetLightfv(disp)) parameters +static INLINE _glptr_GetLightfv GET_GetLightfv(struct _glapi_table *disp) { + return (_glptr_GetLightfv) (GET_by_offset(disp, _gloffset_GetLightfv)); +} + +static INLINE void SET_GetLightfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetLightfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetLightiv)(GLenum, GLenum, GLint *); +#define CALL_GetLightiv(disp, parameters) \ + (* GET_GetLightiv(disp)) parameters +static INLINE _glptr_GetLightiv GET_GetLightiv(struct _glapi_table *disp) { + return (_glptr_GetLightiv) (GET_by_offset(disp, _gloffset_GetLightiv)); +} + +static INLINE void SET_GetLightiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetLightiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetMapdv)(GLenum, GLenum, GLdouble *); +#define CALL_GetMapdv(disp, parameters) \ + (* GET_GetMapdv(disp)) parameters +static INLINE _glptr_GetMapdv GET_GetMapdv(struct _glapi_table *disp) { + return (_glptr_GetMapdv) (GET_by_offset(disp, _gloffset_GetMapdv)); +} + +static INLINE void SET_GetMapdv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLdouble *)) { + SET_by_offset(disp, _gloffset_GetMapdv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetMapfv)(GLenum, GLenum, GLfloat *); +#define CALL_GetMapfv(disp, parameters) \ + (* GET_GetMapfv(disp)) parameters +static INLINE _glptr_GetMapfv GET_GetMapfv(struct _glapi_table *disp) { + return (_glptr_GetMapfv) (GET_by_offset(disp, _gloffset_GetMapfv)); +} + +static INLINE void SET_GetMapfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetMapfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetMapiv)(GLenum, GLenum, GLint *); +#define CALL_GetMapiv(disp, parameters) \ + (* GET_GetMapiv(disp)) parameters +static INLINE _glptr_GetMapiv GET_GetMapiv(struct _glapi_table *disp) { + return (_glptr_GetMapiv) (GET_by_offset(disp, _gloffset_GetMapiv)); +} + +static INLINE void SET_GetMapiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetMapiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetMaterialfv)(GLenum, GLenum, GLfloat *); +#define CALL_GetMaterialfv(disp, parameters) \ + (* GET_GetMaterialfv(disp)) parameters +static INLINE _glptr_GetMaterialfv GET_GetMaterialfv(struct _glapi_table *disp) { + return (_glptr_GetMaterialfv) (GET_by_offset(disp, _gloffset_GetMaterialfv)); +} + +static INLINE void SET_GetMaterialfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetMaterialfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetMaterialiv)(GLenum, GLenum, GLint *); +#define CALL_GetMaterialiv(disp, parameters) \ + (* GET_GetMaterialiv(disp)) parameters +static INLINE _glptr_GetMaterialiv GET_GetMaterialiv(struct _glapi_table *disp) { + return (_glptr_GetMaterialiv) (GET_by_offset(disp, _gloffset_GetMaterialiv)); +} + +static INLINE void SET_GetMaterialiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetMaterialiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetPixelMapfv)(GLenum, GLfloat *); +#define CALL_GetPixelMapfv(disp, parameters) \ + (* GET_GetPixelMapfv(disp)) parameters +static INLINE _glptr_GetPixelMapfv GET_GetPixelMapfv(struct _glapi_table *disp) { + return (_glptr_GetPixelMapfv) (GET_by_offset(disp, _gloffset_GetPixelMapfv)); +} + +static INLINE void SET_GetPixelMapfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetPixelMapfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetPixelMapuiv)(GLenum, GLuint *); +#define CALL_GetPixelMapuiv(disp, parameters) \ + (* GET_GetPixelMapuiv(disp)) parameters +static INLINE _glptr_GetPixelMapuiv GET_GetPixelMapuiv(struct _glapi_table *disp) { + return (_glptr_GetPixelMapuiv) (GET_by_offset(disp, _gloffset_GetPixelMapuiv)); +} + +static INLINE void SET_GetPixelMapuiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint *)) { + SET_by_offset(disp, _gloffset_GetPixelMapuiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetPixelMapusv)(GLenum, GLushort *); +#define CALL_GetPixelMapusv(disp, parameters) \ + (* GET_GetPixelMapusv(disp)) parameters +static INLINE _glptr_GetPixelMapusv GET_GetPixelMapusv(struct _glapi_table *disp) { + return (_glptr_GetPixelMapusv) (GET_by_offset(disp, _gloffset_GetPixelMapusv)); +} + +static INLINE void SET_GetPixelMapusv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLushort *)) { + SET_by_offset(disp, _gloffset_GetPixelMapusv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetPolygonStipple)(GLubyte *); +#define CALL_GetPolygonStipple(disp, parameters) \ + (* GET_GetPolygonStipple(disp)) parameters +static INLINE _glptr_GetPolygonStipple GET_GetPolygonStipple(struct _glapi_table *disp) { + return (_glptr_GetPolygonStipple) (GET_by_offset(disp, _gloffset_GetPolygonStipple)); +} + +static INLINE void SET_GetPolygonStipple(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLubyte *)) { + SET_by_offset(disp, _gloffset_GetPolygonStipple, fn); +} + +typedef const GLubyte * (GLAPIENTRYP _glptr_GetString)(GLenum); +#define CALL_GetString(disp, parameters) \ + (* GET_GetString(disp)) parameters +static INLINE _glptr_GetString GET_GetString(struct _glapi_table *disp) { + return (_glptr_GetString) (GET_by_offset(disp, _gloffset_GetString)); +} + +static INLINE void SET_GetString(struct _glapi_table *disp, const GLubyte * (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_GetString, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexEnvfv)(GLenum, GLenum, GLfloat *); +#define CALL_GetTexEnvfv(disp, parameters) \ + (* GET_GetTexEnvfv(disp)) parameters +static INLINE _glptr_GetTexEnvfv GET_GetTexEnvfv(struct _glapi_table *disp) { + return (_glptr_GetTexEnvfv) (GET_by_offset(disp, _gloffset_GetTexEnvfv)); +} + +static INLINE void SET_GetTexEnvfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetTexEnvfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexEnviv)(GLenum, GLenum, GLint *); +#define CALL_GetTexEnviv(disp, parameters) \ + (* GET_GetTexEnviv(disp)) parameters +static INLINE _glptr_GetTexEnviv GET_GetTexEnviv(struct _glapi_table *disp) { + return (_glptr_GetTexEnviv) (GET_by_offset(disp, _gloffset_GetTexEnviv)); +} + +static INLINE void SET_GetTexEnviv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetTexEnviv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexGendv)(GLenum, GLenum, GLdouble *); +#define CALL_GetTexGendv(disp, parameters) \ + (* GET_GetTexGendv(disp)) parameters +static INLINE _glptr_GetTexGendv GET_GetTexGendv(struct _glapi_table *disp) { + return (_glptr_GetTexGendv) (GET_by_offset(disp, _gloffset_GetTexGendv)); +} + +static INLINE void SET_GetTexGendv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLdouble *)) { + SET_by_offset(disp, _gloffset_GetTexGendv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexGenfv)(GLenum, GLenum, GLfloat *); +#define CALL_GetTexGenfv(disp, parameters) \ + (* GET_GetTexGenfv(disp)) parameters +static INLINE _glptr_GetTexGenfv GET_GetTexGenfv(struct _glapi_table *disp) { + return (_glptr_GetTexGenfv) (GET_by_offset(disp, _gloffset_GetTexGenfv)); +} + +static INLINE void SET_GetTexGenfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetTexGenfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexGeniv)(GLenum, GLenum, GLint *); +#define CALL_GetTexGeniv(disp, parameters) \ + (* GET_GetTexGeniv(disp)) parameters +static INLINE _glptr_GetTexGeniv GET_GetTexGeniv(struct _glapi_table *disp) { + return (_glptr_GetTexGeniv) (GET_by_offset(disp, _gloffset_GetTexGeniv)); +} + +static INLINE void SET_GetTexGeniv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetTexGeniv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexImage)(GLenum, GLint, GLenum, GLenum, GLvoid *); +#define CALL_GetTexImage(disp, parameters) \ + (* GET_GetTexImage(disp)) parameters +static INLINE _glptr_GetTexImage GET_GetTexImage(struct _glapi_table *disp) { + return (_glptr_GetTexImage) (GET_by_offset(disp, _gloffset_GetTexImage)); +} + +static INLINE void SET_GetTexImage(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLenum, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetTexImage, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexParameterfv)(GLenum, GLenum, GLfloat *); +#define CALL_GetTexParameterfv(disp, parameters) \ + (* GET_GetTexParameterfv(disp)) parameters +static INLINE _glptr_GetTexParameterfv GET_GetTexParameterfv(struct _glapi_table *disp) { + return (_glptr_GetTexParameterfv) (GET_by_offset(disp, _gloffset_GetTexParameterfv)); +} + +static INLINE void SET_GetTexParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetTexParameterfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexParameteriv)(GLenum, GLenum, GLint *); +#define CALL_GetTexParameteriv(disp, parameters) \ + (* GET_GetTexParameteriv(disp)) parameters +static INLINE _glptr_GetTexParameteriv GET_GetTexParameteriv(struct _glapi_table *disp) { + return (_glptr_GetTexParameteriv) (GET_by_offset(disp, _gloffset_GetTexParameteriv)); +} + +static INLINE void SET_GetTexParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetTexParameteriv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexLevelParameterfv)(GLenum, GLint, GLenum, GLfloat *); +#define CALL_GetTexLevelParameterfv(disp, parameters) \ + (* GET_GetTexLevelParameterfv(disp)) parameters +static INLINE _glptr_GetTexLevelParameterfv GET_GetTexLevelParameterfv(struct _glapi_table *disp) { + return (_glptr_GetTexLevelParameterfv) (GET_by_offset(disp, _gloffset_GetTexLevelParameterfv)); +} + +static INLINE void SET_GetTexLevelParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetTexLevelParameterfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexLevelParameteriv)(GLenum, GLint, GLenum, GLint *); +#define CALL_GetTexLevelParameteriv(disp, parameters) \ + (* GET_GetTexLevelParameteriv(disp)) parameters +static INLINE _glptr_GetTexLevelParameteriv GET_GetTexLevelParameteriv(struct _glapi_table *disp) { + return (_glptr_GetTexLevelParameteriv) (GET_by_offset(disp, _gloffset_GetTexLevelParameteriv)); +} + +static INLINE void SET_GetTexLevelParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetTexLevelParameteriv, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsEnabled)(GLenum); +#define CALL_IsEnabled(disp, parameters) \ + (* GET_IsEnabled(disp)) parameters +static INLINE _glptr_IsEnabled GET_IsEnabled(struct _glapi_table *disp) { + return (_glptr_IsEnabled) (GET_by_offset(disp, _gloffset_IsEnabled)); +} + +static INLINE void SET_IsEnabled(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_IsEnabled, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsList)(GLuint); +#define CALL_IsList(disp, parameters) \ + (* GET_IsList(disp)) parameters +static INLINE _glptr_IsList GET_IsList(struct _glapi_table *disp) { + return (_glptr_IsList) (GET_by_offset(disp, _gloffset_IsList)); +} + +static INLINE void SET_IsList(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IsList, fn); +} + +typedef void (GLAPIENTRYP _glptr_DepthRange)(GLclampd, GLclampd); +#define CALL_DepthRange(disp, parameters) \ + (* GET_DepthRange(disp)) parameters +static INLINE _glptr_DepthRange GET_DepthRange(struct _glapi_table *disp) { + return (_glptr_DepthRange) (GET_by_offset(disp, _gloffset_DepthRange)); +} + +static INLINE void SET_DepthRange(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampd, GLclampd)) { + SET_by_offset(disp, _gloffset_DepthRange, fn); +} + +typedef void (GLAPIENTRYP _glptr_Frustum)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_Frustum(disp, parameters) \ + (* GET_Frustum(disp)) parameters +static INLINE _glptr_Frustum GET_Frustum(struct _glapi_table *disp) { + return (_glptr_Frustum) (GET_by_offset(disp, _gloffset_Frustum)); +} + +static INLINE void SET_Frustum(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_Frustum, fn); +} + +typedef void (GLAPIENTRYP _glptr_LoadIdentity)(void); +#define CALL_LoadIdentity(disp, parameters) \ + (* GET_LoadIdentity(disp)) parameters +static INLINE _glptr_LoadIdentity GET_LoadIdentity(struct _glapi_table *disp) { + return (_glptr_LoadIdentity) (GET_by_offset(disp, _gloffset_LoadIdentity)); +} + +static INLINE void SET_LoadIdentity(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_LoadIdentity, fn); +} + +typedef void (GLAPIENTRYP _glptr_LoadMatrixf)(const GLfloat *); +#define CALL_LoadMatrixf(disp, parameters) \ + (* GET_LoadMatrixf(disp)) parameters +static INLINE _glptr_LoadMatrixf GET_LoadMatrixf(struct _glapi_table *disp) { + return (_glptr_LoadMatrixf) (GET_by_offset(disp, _gloffset_LoadMatrixf)); +} + +static INLINE void SET_LoadMatrixf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_LoadMatrixf, fn); +} + +typedef void (GLAPIENTRYP _glptr_LoadMatrixd)(const GLdouble *); +#define CALL_LoadMatrixd(disp, parameters) \ + (* GET_LoadMatrixd(disp)) parameters +static INLINE _glptr_LoadMatrixd GET_LoadMatrixd(struct _glapi_table *disp) { + return (_glptr_LoadMatrixd) (GET_by_offset(disp, _gloffset_LoadMatrixd)); +} + +static INLINE void SET_LoadMatrixd(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_LoadMatrixd, fn); +} + +typedef void (GLAPIENTRYP _glptr_MatrixMode)(GLenum); +#define CALL_MatrixMode(disp, parameters) \ + (* GET_MatrixMode(disp)) parameters +static INLINE _glptr_MatrixMode GET_MatrixMode(struct _glapi_table *disp) { + return (_glptr_MatrixMode) (GET_by_offset(disp, _gloffset_MatrixMode)); +} + +static INLINE void SET_MatrixMode(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_MatrixMode, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultMatrixf)(const GLfloat *); +#define CALL_MultMatrixf(disp, parameters) \ + (* GET_MultMatrixf(disp)) parameters +static INLINE _glptr_MultMatrixf GET_MultMatrixf(struct _glapi_table *disp) { + return (_glptr_MultMatrixf) (GET_by_offset(disp, _gloffset_MultMatrixf)); +} + +static INLINE void SET_MultMatrixf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_MultMatrixf, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultMatrixd)(const GLdouble *); +#define CALL_MultMatrixd(disp, parameters) \ + (* GET_MultMatrixd(disp)) parameters +static INLINE _glptr_MultMatrixd GET_MultMatrixd(struct _glapi_table *disp) { + return (_glptr_MultMatrixd) (GET_by_offset(disp, _gloffset_MultMatrixd)); +} + +static INLINE void SET_MultMatrixd(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_MultMatrixd, fn); +} + +typedef void (GLAPIENTRYP _glptr_Ortho)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_Ortho(disp, parameters) \ + (* GET_Ortho(disp)) parameters +static INLINE _glptr_Ortho GET_Ortho(struct _glapi_table *disp) { + return (_glptr_Ortho) (GET_by_offset(disp, _gloffset_Ortho)); +} + +static INLINE void SET_Ortho(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_Ortho, fn); +} + +typedef void (GLAPIENTRYP _glptr_PopMatrix)(void); +#define CALL_PopMatrix(disp, parameters) \ + (* GET_PopMatrix(disp)) parameters +static INLINE _glptr_PopMatrix GET_PopMatrix(struct _glapi_table *disp) { + return (_glptr_PopMatrix) (GET_by_offset(disp, _gloffset_PopMatrix)); +} + +static INLINE void SET_PopMatrix(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_PopMatrix, fn); +} + +typedef void (GLAPIENTRYP _glptr_PushMatrix)(void); +#define CALL_PushMatrix(disp, parameters) \ + (* GET_PushMatrix(disp)) parameters +static INLINE _glptr_PushMatrix GET_PushMatrix(struct _glapi_table *disp) { + return (_glptr_PushMatrix) (GET_by_offset(disp, _gloffset_PushMatrix)); +} + +static INLINE void SET_PushMatrix(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_PushMatrix, fn); +} + +typedef void (GLAPIENTRYP _glptr_Rotated)(GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_Rotated(disp, parameters) \ + (* GET_Rotated(disp)) parameters +static INLINE _glptr_Rotated GET_Rotated(struct _glapi_table *disp) { + return (_glptr_Rotated) (GET_by_offset(disp, _gloffset_Rotated)); +} + +static INLINE void SET_Rotated(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_Rotated, fn); +} + +typedef void (GLAPIENTRYP _glptr_Rotatef)(GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_Rotatef(disp, parameters) \ + (* GET_Rotatef(disp)) parameters +static INLINE _glptr_Rotatef GET_Rotatef(struct _glapi_table *disp) { + return (_glptr_Rotatef) (GET_by_offset(disp, _gloffset_Rotatef)); +} + +static INLINE void SET_Rotatef(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_Rotatef, fn); +} + +typedef void (GLAPIENTRYP _glptr_Scaled)(GLdouble, GLdouble, GLdouble); +#define CALL_Scaled(disp, parameters) \ + (* GET_Scaled(disp)) parameters +static INLINE _glptr_Scaled GET_Scaled(struct _glapi_table *disp) { + return (_glptr_Scaled) (GET_by_offset(disp, _gloffset_Scaled)); +} + +static INLINE void SET_Scaled(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_Scaled, fn); +} + +typedef void (GLAPIENTRYP _glptr_Scalef)(GLfloat, GLfloat, GLfloat); +#define CALL_Scalef(disp, parameters) \ + (* GET_Scalef(disp)) parameters +static INLINE _glptr_Scalef GET_Scalef(struct _glapi_table *disp) { + return (_glptr_Scalef) (GET_by_offset(disp, _gloffset_Scalef)); +} + +static INLINE void SET_Scalef(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_Scalef, fn); +} + +typedef void (GLAPIENTRYP _glptr_Translated)(GLdouble, GLdouble, GLdouble); +#define CALL_Translated(disp, parameters) \ + (* GET_Translated(disp)) parameters +static INLINE _glptr_Translated GET_Translated(struct _glapi_table *disp) { + return (_glptr_Translated) (GET_by_offset(disp, _gloffset_Translated)); +} + +static INLINE void SET_Translated(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_Translated, fn); +} + +typedef void (GLAPIENTRYP _glptr_Translatef)(GLfloat, GLfloat, GLfloat); +#define CALL_Translatef(disp, parameters) \ + (* GET_Translatef(disp)) parameters +static INLINE _glptr_Translatef GET_Translatef(struct _glapi_table *disp) { + return (_glptr_Translatef) (GET_by_offset(disp, _gloffset_Translatef)); +} + +static INLINE void SET_Translatef(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_Translatef, fn); +} + +typedef void (GLAPIENTRYP _glptr_Viewport)(GLint, GLint, GLsizei, GLsizei); +#define CALL_Viewport(disp, parameters) \ + (* GET_Viewport(disp)) parameters +static INLINE _glptr_Viewport GET_Viewport(struct _glapi_table *disp) { + return (_glptr_Viewport) (GET_by_offset(disp, _gloffset_Viewport)); +} + +static INLINE void SET_Viewport(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLsizei, GLsizei)) { + SET_by_offset(disp, _gloffset_Viewport, fn); +} + +typedef void (GLAPIENTRYP _glptr_ArrayElement)(GLint); +#define CALL_ArrayElement(disp, parameters) \ + (* GET_ArrayElement(disp)) parameters +static INLINE _glptr_ArrayElement GET_ArrayElement(struct _glapi_table *disp) { + return (_glptr_ArrayElement) (GET_by_offset(disp, _gloffset_ArrayElement)); +} + +static INLINE void SET_ArrayElement(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint)) { + SET_by_offset(disp, _gloffset_ArrayElement, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindTexture)(GLenum, GLuint); +#define CALL_BindTexture(disp, parameters) \ + (* GET_BindTexture(disp)) parameters +static INLINE _glptr_BindTexture GET_BindTexture(struct _glapi_table *disp) { + return (_glptr_BindTexture) (GET_by_offset(disp, _gloffset_BindTexture)); +} + +static INLINE void SET_BindTexture(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_BindTexture, fn); +} + +typedef void (GLAPIENTRYP _glptr_ColorPointer)(GLint, GLenum, GLsizei, const GLvoid *); +#define CALL_ColorPointer(disp, parameters) \ + (* GET_ColorPointer(disp)) parameters +static INLINE _glptr_ColorPointer GET_ColorPointer(struct _glapi_table *disp) { + return (_glptr_ColorPointer) (GET_by_offset(disp, _gloffset_ColorPointer)); +} + +static INLINE void SET_ColorPointer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_ColorPointer, fn); +} + +typedef void (GLAPIENTRYP _glptr_DisableClientState)(GLenum); +#define CALL_DisableClientState(disp, parameters) \ + (* GET_DisableClientState(disp)) parameters +static INLINE _glptr_DisableClientState GET_DisableClientState(struct _glapi_table *disp) { + return (_glptr_DisableClientState) (GET_by_offset(disp, _gloffset_DisableClientState)); +} + +static INLINE void SET_DisableClientState(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_DisableClientState, fn); +} + +typedef void (GLAPIENTRYP _glptr_DrawArrays)(GLenum, GLint, GLsizei); +#define CALL_DrawArrays(disp, parameters) \ + (* GET_DrawArrays(disp)) parameters +static INLINE _glptr_DrawArrays GET_DrawArrays(struct _glapi_table *disp) { + return (_glptr_DrawArrays) (GET_by_offset(disp, _gloffset_DrawArrays)); +} + +static INLINE void SET_DrawArrays(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLsizei)) { + SET_by_offset(disp, _gloffset_DrawArrays, fn); +} + +typedef void (GLAPIENTRYP _glptr_DrawElements)(GLenum, GLsizei, GLenum, const GLvoid *); +#define CALL_DrawElements(disp, parameters) \ + (* GET_DrawElements(disp)) parameters +static INLINE _glptr_DrawElements GET_DrawElements(struct _glapi_table *disp) { + return (_glptr_DrawElements) (GET_by_offset(disp, _gloffset_DrawElements)); +} + +static INLINE void SET_DrawElements(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_DrawElements, fn); +} + +typedef void (GLAPIENTRYP _glptr_EdgeFlagPointer)(GLsizei, const GLvoid *); +#define CALL_EdgeFlagPointer(disp, parameters) \ + (* GET_EdgeFlagPointer(disp)) parameters +static INLINE _glptr_EdgeFlagPointer GET_EdgeFlagPointer(struct _glapi_table *disp) { + return (_glptr_EdgeFlagPointer) (GET_by_offset(disp, _gloffset_EdgeFlagPointer)); +} + +static INLINE void SET_EdgeFlagPointer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_EdgeFlagPointer, fn); +} + +typedef void (GLAPIENTRYP _glptr_EnableClientState)(GLenum); +#define CALL_EnableClientState(disp, parameters) \ + (* GET_EnableClientState(disp)) parameters +static INLINE _glptr_EnableClientState GET_EnableClientState(struct _glapi_table *disp) { + return (_glptr_EnableClientState) (GET_by_offset(disp, _gloffset_EnableClientState)); +} + +static INLINE void SET_EnableClientState(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_EnableClientState, fn); +} + +typedef void (GLAPIENTRYP _glptr_IndexPointer)(GLenum, GLsizei, const GLvoid *); +#define CALL_IndexPointer(disp, parameters) \ + (* GET_IndexPointer(disp)) parameters +static INLINE _glptr_IndexPointer GET_IndexPointer(struct _glapi_table *disp) { + return (_glptr_IndexPointer) (GET_by_offset(disp, _gloffset_IndexPointer)); +} + +static INLINE void SET_IndexPointer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_IndexPointer, fn); +} + +typedef void (GLAPIENTRYP _glptr_Indexub)(GLubyte); +#define CALL_Indexub(disp, parameters) \ + (* GET_Indexub(disp)) parameters +static INLINE _glptr_Indexub GET_Indexub(struct _glapi_table *disp) { + return (_glptr_Indexub) (GET_by_offset(disp, _gloffset_Indexub)); +} + +static INLINE void SET_Indexub(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLubyte)) { + SET_by_offset(disp, _gloffset_Indexub, fn); +} + +typedef void (GLAPIENTRYP _glptr_Indexubv)(const GLubyte *); +#define CALL_Indexubv(disp, parameters) \ + (* GET_Indexubv(disp)) parameters +static INLINE _glptr_Indexubv GET_Indexubv(struct _glapi_table *disp) { + return (_glptr_Indexubv) (GET_by_offset(disp, _gloffset_Indexubv)); +} + +static INLINE void SET_Indexubv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLubyte *)) { + SET_by_offset(disp, _gloffset_Indexubv, fn); +} + +typedef void (GLAPIENTRYP _glptr_InterleavedArrays)(GLenum, GLsizei, const GLvoid *); +#define CALL_InterleavedArrays(disp, parameters) \ + (* GET_InterleavedArrays(disp)) parameters +static INLINE _glptr_InterleavedArrays GET_InterleavedArrays(struct _glapi_table *disp) { + return (_glptr_InterleavedArrays) (GET_by_offset(disp, _gloffset_InterleavedArrays)); +} + +static INLINE void SET_InterleavedArrays(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_InterleavedArrays, fn); +} + +typedef void (GLAPIENTRYP _glptr_NormalPointer)(GLenum, GLsizei, const GLvoid *); +#define CALL_NormalPointer(disp, parameters) \ + (* GET_NormalPointer(disp)) parameters +static INLINE _glptr_NormalPointer GET_NormalPointer(struct _glapi_table *disp) { + return (_glptr_NormalPointer) (GET_by_offset(disp, _gloffset_NormalPointer)); +} + +static INLINE void SET_NormalPointer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_NormalPointer, fn); +} + +typedef void (GLAPIENTRYP _glptr_PolygonOffset)(GLfloat, GLfloat); +#define CALL_PolygonOffset(disp, parameters) \ + (* GET_PolygonOffset(disp)) parameters +static INLINE _glptr_PolygonOffset GET_PolygonOffset(struct _glapi_table *disp) { + return (_glptr_PolygonOffset) (GET_by_offset(disp, _gloffset_PolygonOffset)); +} + +static INLINE void SET_PolygonOffset(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_PolygonOffset, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoordPointer)(GLint, GLenum, GLsizei, const GLvoid *); +#define CALL_TexCoordPointer(disp, parameters) \ + (* GET_TexCoordPointer(disp)) parameters +static INLINE _glptr_TexCoordPointer GET_TexCoordPointer(struct _glapi_table *disp) { + return (_glptr_TexCoordPointer) (GET_by_offset(disp, _gloffset_TexCoordPointer)); +} + +static INLINE void SET_TexCoordPointer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_TexCoordPointer, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexPointer)(GLint, GLenum, GLsizei, const GLvoid *); +#define CALL_VertexPointer(disp, parameters) \ + (* GET_VertexPointer(disp)) parameters +static INLINE _glptr_VertexPointer GET_VertexPointer(struct _glapi_table *disp) { + return (_glptr_VertexPointer) (GET_by_offset(disp, _gloffset_VertexPointer)); +} + +static INLINE void SET_VertexPointer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_VertexPointer, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_AreTexturesResident)(GLsizei, const GLuint *, GLboolean *); +#define CALL_AreTexturesResident(disp, parameters) \ + (* GET_AreTexturesResident(disp)) parameters +static INLINE _glptr_AreTexturesResident GET_AreTexturesResident(struct _glapi_table *disp) { + return (_glptr_AreTexturesResident) (GET_by_offset(disp, _gloffset_AreTexturesResident)); +} + +static INLINE void SET_AreTexturesResident(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLsizei, const GLuint *, GLboolean *)) { + SET_by_offset(disp, _gloffset_AreTexturesResident, fn); +} + +typedef void (GLAPIENTRYP _glptr_CopyTexImage1D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint); +#define CALL_CopyTexImage1D(disp, parameters) \ + (* GET_CopyTexImage1D(disp)) parameters +static INLINE _glptr_CopyTexImage1D GET_CopyTexImage1D(struct _glapi_table *disp) { + return (_glptr_CopyTexImage1D) (GET_by_offset(disp, _gloffset_CopyTexImage1D)); +} + +static INLINE void SET_CopyTexImage1D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint)) { + SET_by_offset(disp, _gloffset_CopyTexImage1D, fn); +} + +typedef void (GLAPIENTRYP _glptr_CopyTexImage2D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); +#define CALL_CopyTexImage2D(disp, parameters) \ + (* GET_CopyTexImage2D(disp)) parameters +static INLINE _glptr_CopyTexImage2D GET_CopyTexImage2D(struct _glapi_table *disp) { + return (_glptr_CopyTexImage2D) (GET_by_offset(disp, _gloffset_CopyTexImage2D)); +} + +static INLINE void SET_CopyTexImage2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint)) { + SET_by_offset(disp, _gloffset_CopyTexImage2D, fn); +} + +typedef void (GLAPIENTRYP _glptr_CopyTexSubImage1D)(GLenum, GLint, GLint, GLint, GLint, GLsizei); +#define CALL_CopyTexSubImage1D(disp, parameters) \ + (* GET_CopyTexSubImage1D(disp)) parameters +static INLINE _glptr_CopyTexSubImage1D GET_CopyTexSubImage1D(struct _glapi_table *disp) { + return (_glptr_CopyTexSubImage1D) (GET_by_offset(disp, _gloffset_CopyTexSubImage1D)); +} + +static INLINE void SET_CopyTexSubImage1D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint, GLsizei)) { + SET_by_offset(disp, _gloffset_CopyTexSubImage1D, fn); +} + +typedef void (GLAPIENTRYP _glptr_CopyTexSubImage2D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); +#define CALL_CopyTexSubImage2D(disp, parameters) \ + (* GET_CopyTexSubImage2D(disp)) parameters +static INLINE _glptr_CopyTexSubImage2D GET_CopyTexSubImage2D(struct _glapi_table *disp) { + return (_glptr_CopyTexSubImage2D) (GET_by_offset(disp, _gloffset_CopyTexSubImage2D)); +} + +static INLINE void SET_CopyTexSubImage2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei)) { + SET_by_offset(disp, _gloffset_CopyTexSubImage2D, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteTextures)(GLsizei, const GLuint *); +#define CALL_DeleteTextures(disp, parameters) \ + (* GET_DeleteTextures(disp)) parameters +static INLINE _glptr_DeleteTextures GET_DeleteTextures(struct _glapi_table *disp) { + return (_glptr_DeleteTextures) (GET_by_offset(disp, _gloffset_DeleteTextures)); +} + +static INLINE void SET_DeleteTextures(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_DeleteTextures, fn); +} + +typedef void (GLAPIENTRYP _glptr_GenTextures)(GLsizei, GLuint *); +#define CALL_GenTextures(disp, parameters) \ + (* GET_GenTextures(disp)) parameters +static INLINE _glptr_GenTextures GET_GenTextures(struct _glapi_table *disp) { + return (_glptr_GenTextures) (GET_by_offset(disp, _gloffset_GenTextures)); +} + +static INLINE void SET_GenTextures(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_GenTextures, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetPointerv)(GLenum, GLvoid **); +#define CALL_GetPointerv(disp, parameters) \ + (* GET_GetPointerv(disp)) parameters +static INLINE _glptr_GetPointerv GET_GetPointerv(struct _glapi_table *disp) { + return (_glptr_GetPointerv) (GET_by_offset(disp, _gloffset_GetPointerv)); +} + +static INLINE void SET_GetPointerv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLvoid **)) { + SET_by_offset(disp, _gloffset_GetPointerv, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsTexture)(GLuint); +#define CALL_IsTexture(disp, parameters) \ + (* GET_IsTexture(disp)) parameters +static INLINE _glptr_IsTexture GET_IsTexture(struct _glapi_table *disp) { + return (_glptr_IsTexture) (GET_by_offset(disp, _gloffset_IsTexture)); +} + +static INLINE void SET_IsTexture(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IsTexture, fn); +} + +typedef void (GLAPIENTRYP _glptr_PrioritizeTextures)(GLsizei, const GLuint *, const GLclampf *); +#define CALL_PrioritizeTextures(disp, parameters) \ + (* GET_PrioritizeTextures(disp)) parameters +static INLINE _glptr_PrioritizeTextures GET_PrioritizeTextures(struct _glapi_table *disp) { + return (_glptr_PrioritizeTextures) (GET_by_offset(disp, _gloffset_PrioritizeTextures)); +} + +static INLINE void SET_PrioritizeTextures(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *, const GLclampf *)) { + SET_by_offset(disp, _gloffset_PrioritizeTextures, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexSubImage1D)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *); +#define CALL_TexSubImage1D(disp, parameters) \ + (* GET_TexSubImage1D(disp)) parameters +static INLINE _glptr_TexSubImage1D GET_TexSubImage1D(struct _glapi_table *disp) { + return (_glptr_TexSubImage1D) (GET_by_offset(disp, _gloffset_TexSubImage1D)); +} + +static INLINE void SET_TexSubImage1D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_TexSubImage1D, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +#define CALL_TexSubImage2D(disp, parameters) \ + (* GET_TexSubImage2D(disp)) parameters +static INLINE _glptr_TexSubImage2D GET_TexSubImage2D(struct _glapi_table *disp) { + return (_glptr_TexSubImage2D) (GET_by_offset(disp, _gloffset_TexSubImage2D)); +} + +static INLINE void SET_TexSubImage2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_TexSubImage2D, fn); +} + +typedef void (GLAPIENTRYP _glptr_PopClientAttrib)(void); +#define CALL_PopClientAttrib(disp, parameters) \ + (* GET_PopClientAttrib(disp)) parameters +static INLINE _glptr_PopClientAttrib GET_PopClientAttrib(struct _glapi_table *disp) { + return (_glptr_PopClientAttrib) (GET_by_offset(disp, _gloffset_PopClientAttrib)); +} + +static INLINE void SET_PopClientAttrib(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_PopClientAttrib, fn); +} + +typedef void (GLAPIENTRYP _glptr_PushClientAttrib)(GLbitfield); +#define CALL_PushClientAttrib(disp, parameters) \ + (* GET_PushClientAttrib(disp)) parameters +static INLINE _glptr_PushClientAttrib GET_PushClientAttrib(struct _glapi_table *disp) { + return (_glptr_PushClientAttrib) (GET_by_offset(disp, _gloffset_PushClientAttrib)); +} + +static INLINE void SET_PushClientAttrib(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbitfield)) { + SET_by_offset(disp, _gloffset_PushClientAttrib, fn); +} + +typedef void (GLAPIENTRYP _glptr_BlendColor)(GLclampf, GLclampf, GLclampf, GLclampf); +#define CALL_BlendColor(disp, parameters) \ + (* GET_BlendColor(disp)) parameters +static INLINE _glptr_BlendColor GET_BlendColor(struct _glapi_table *disp) { + return (_glptr_BlendColor) (GET_by_offset(disp, _gloffset_BlendColor)); +} + +static INLINE void SET_BlendColor(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampf, GLclampf, GLclampf, GLclampf)) { + SET_by_offset(disp, _gloffset_BlendColor, fn); +} + +typedef void (GLAPIENTRYP _glptr_BlendEquation)(GLenum); +#define CALL_BlendEquation(disp, parameters) \ + (* GET_BlendEquation(disp)) parameters +static INLINE _glptr_BlendEquation GET_BlendEquation(struct _glapi_table *disp) { + return (_glptr_BlendEquation) (GET_by_offset(disp, _gloffset_BlendEquation)); +} + +static INLINE void SET_BlendEquation(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_BlendEquation, fn); +} + +typedef void (GLAPIENTRYP _glptr_DrawRangeElements)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *); +#define CALL_DrawRangeElements(disp, parameters) \ + (* GET_DrawRangeElements(disp)) parameters +static INLINE _glptr_DrawRangeElements GET_DrawRangeElements(struct _glapi_table *disp) { + return (_glptr_DrawRangeElements) (GET_by_offset(disp, _gloffset_DrawRangeElements)); +} + +static INLINE void SET_DrawRangeElements(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_DrawRangeElements, fn); +} + +typedef void (GLAPIENTRYP _glptr_ColorTable)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); +#define CALL_ColorTable(disp, parameters) \ + (* GET_ColorTable(disp)) parameters +static INLINE _glptr_ColorTable GET_ColorTable(struct _glapi_table *disp) { + return (_glptr_ColorTable) (GET_by_offset(disp, _gloffset_ColorTable)); +} + +static INLINE void SET_ColorTable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_ColorTable, fn); +} + +typedef void (GLAPIENTRYP _glptr_ColorTableParameterfv)(GLenum, GLenum, const GLfloat *); +#define CALL_ColorTableParameterfv(disp, parameters) \ + (* GET_ColorTableParameterfv(disp)) parameters +static INLINE _glptr_ColorTableParameterfv GET_ColorTableParameterfv(struct _glapi_table *disp) { + return (_glptr_ColorTableParameterfv) (GET_by_offset(disp, _gloffset_ColorTableParameterfv)); +} + +static INLINE void SET_ColorTableParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_ColorTableParameterfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_ColorTableParameteriv)(GLenum, GLenum, const GLint *); +#define CALL_ColorTableParameteriv(disp, parameters) \ + (* GET_ColorTableParameteriv(disp)) parameters +static INLINE _glptr_ColorTableParameteriv GET_ColorTableParameteriv(struct _glapi_table *disp) { + return (_glptr_ColorTableParameteriv) (GET_by_offset(disp, _gloffset_ColorTableParameteriv)); +} + +static INLINE void SET_ColorTableParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_ColorTableParameteriv, fn); +} + +typedef void (GLAPIENTRYP _glptr_CopyColorTable)(GLenum, GLenum, GLint, GLint, GLsizei); +#define CALL_CopyColorTable(disp, parameters) \ + (* GET_CopyColorTable(disp)) parameters +static INLINE _glptr_CopyColorTable GET_CopyColorTable(struct _glapi_table *disp) { + return (_glptr_CopyColorTable) (GET_by_offset(disp, _gloffset_CopyColorTable)); +} + +static INLINE void SET_CopyColorTable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint, GLint, GLsizei)) { + SET_by_offset(disp, _gloffset_CopyColorTable, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetColorTable)(GLenum, GLenum, GLenum, GLvoid *); +#define CALL_GetColorTable(disp, parameters) \ + (* GET_GetColorTable(disp)) parameters +static INLINE _glptr_GetColorTable GET_GetColorTable(struct _glapi_table *disp) { + return (_glptr_GetColorTable) (GET_by_offset(disp, _gloffset_GetColorTable)); +} + +static INLINE void SET_GetColorTable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetColorTable, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetColorTableParameterfv)(GLenum, GLenum, GLfloat *); +#define CALL_GetColorTableParameterfv(disp, parameters) \ + (* GET_GetColorTableParameterfv(disp)) parameters +static INLINE _glptr_GetColorTableParameterfv GET_GetColorTableParameterfv(struct _glapi_table *disp) { + return (_glptr_GetColorTableParameterfv) (GET_by_offset(disp, _gloffset_GetColorTableParameterfv)); +} + +static INLINE void SET_GetColorTableParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetColorTableParameterfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetColorTableParameteriv)(GLenum, GLenum, GLint *); +#define CALL_GetColorTableParameteriv(disp, parameters) \ + (* GET_GetColorTableParameteriv(disp)) parameters +static INLINE _glptr_GetColorTableParameteriv GET_GetColorTableParameteriv(struct _glapi_table *disp) { + return (_glptr_GetColorTableParameteriv) (GET_by_offset(disp, _gloffset_GetColorTableParameteriv)); +} + +static INLINE void SET_GetColorTableParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetColorTableParameteriv, fn); +} + +typedef void (GLAPIENTRYP _glptr_ColorSubTable)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +#define CALL_ColorSubTable(disp, parameters) \ + (* GET_ColorSubTable(disp)) parameters +static INLINE _glptr_ColorSubTable GET_ColorSubTable(struct _glapi_table *disp) { + return (_glptr_ColorSubTable) (GET_by_offset(disp, _gloffset_ColorSubTable)); +} + +static INLINE void SET_ColorSubTable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_ColorSubTable, fn); +} + +typedef void (GLAPIENTRYP _glptr_CopyColorSubTable)(GLenum, GLsizei, GLint, GLint, GLsizei); +#define CALL_CopyColorSubTable(disp, parameters) \ + (* GET_CopyColorSubTable(disp)) parameters +static INLINE _glptr_CopyColorSubTable GET_CopyColorSubTable(struct _glapi_table *disp) { + return (_glptr_CopyColorSubTable) (GET_by_offset(disp, _gloffset_CopyColorSubTable)); +} + +static INLINE void SET_CopyColorSubTable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLint, GLint, GLsizei)) { + SET_by_offset(disp, _gloffset_CopyColorSubTable, fn); +} + +typedef void (GLAPIENTRYP _glptr_ConvolutionFilter1D)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); +#define CALL_ConvolutionFilter1D(disp, parameters) \ + (* GET_ConvolutionFilter1D(disp)) parameters +static INLINE _glptr_ConvolutionFilter1D GET_ConvolutionFilter1D(struct _glapi_table *disp) { + return (_glptr_ConvolutionFilter1D) (GET_by_offset(disp, _gloffset_ConvolutionFilter1D)); +} + +static INLINE void SET_ConvolutionFilter1D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_ConvolutionFilter1D, fn); +} + +typedef void (GLAPIENTRYP _glptr_ConvolutionFilter2D)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +#define CALL_ConvolutionFilter2D(disp, parameters) \ + (* GET_ConvolutionFilter2D(disp)) parameters +static INLINE _glptr_ConvolutionFilter2D GET_ConvolutionFilter2D(struct _glapi_table *disp) { + return (_glptr_ConvolutionFilter2D) (GET_by_offset(disp, _gloffset_ConvolutionFilter2D)); +} + +static INLINE void SET_ConvolutionFilter2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_ConvolutionFilter2D, fn); +} + +typedef void (GLAPIENTRYP _glptr_ConvolutionParameterf)(GLenum, GLenum, GLfloat); +#define CALL_ConvolutionParameterf(disp, parameters) \ + (* GET_ConvolutionParameterf(disp)) parameters +static INLINE _glptr_ConvolutionParameterf GET_ConvolutionParameterf(struct _glapi_table *disp) { + return (_glptr_ConvolutionParameterf) (GET_by_offset(disp, _gloffset_ConvolutionParameterf)); +} + +static INLINE void SET_ConvolutionParameterf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_ConvolutionParameterf, fn); +} + +typedef void (GLAPIENTRYP _glptr_ConvolutionParameterfv)(GLenum, GLenum, const GLfloat *); +#define CALL_ConvolutionParameterfv(disp, parameters) \ + (* GET_ConvolutionParameterfv(disp)) parameters +static INLINE _glptr_ConvolutionParameterfv GET_ConvolutionParameterfv(struct _glapi_table *disp) { + return (_glptr_ConvolutionParameterfv) (GET_by_offset(disp, _gloffset_ConvolutionParameterfv)); +} + +static INLINE void SET_ConvolutionParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_ConvolutionParameterfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_ConvolutionParameteri)(GLenum, GLenum, GLint); +#define CALL_ConvolutionParameteri(disp, parameters) \ + (* GET_ConvolutionParameteri(disp)) parameters +static INLINE _glptr_ConvolutionParameteri GET_ConvolutionParameteri(struct _glapi_table *disp) { + return (_glptr_ConvolutionParameteri) (GET_by_offset(disp, _gloffset_ConvolutionParameteri)); +} + +static INLINE void SET_ConvolutionParameteri(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { + SET_by_offset(disp, _gloffset_ConvolutionParameteri, fn); +} + +typedef void (GLAPIENTRYP _glptr_ConvolutionParameteriv)(GLenum, GLenum, const GLint *); +#define CALL_ConvolutionParameteriv(disp, parameters) \ + (* GET_ConvolutionParameteriv(disp)) parameters +static INLINE _glptr_ConvolutionParameteriv GET_ConvolutionParameteriv(struct _glapi_table *disp) { + return (_glptr_ConvolutionParameteriv) (GET_by_offset(disp, _gloffset_ConvolutionParameteriv)); +} + +static INLINE void SET_ConvolutionParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_ConvolutionParameteriv, fn); +} + +typedef void (GLAPIENTRYP _glptr_CopyConvolutionFilter1D)(GLenum, GLenum, GLint, GLint, GLsizei); +#define CALL_CopyConvolutionFilter1D(disp, parameters) \ + (* GET_CopyConvolutionFilter1D(disp)) parameters +static INLINE _glptr_CopyConvolutionFilter1D GET_CopyConvolutionFilter1D(struct _glapi_table *disp) { + return (_glptr_CopyConvolutionFilter1D) (GET_by_offset(disp, _gloffset_CopyConvolutionFilter1D)); +} + +static INLINE void SET_CopyConvolutionFilter1D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint, GLint, GLsizei)) { + SET_by_offset(disp, _gloffset_CopyConvolutionFilter1D, fn); +} + +typedef void (GLAPIENTRYP _glptr_CopyConvolutionFilter2D)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei); +#define CALL_CopyConvolutionFilter2D(disp, parameters) \ + (* GET_CopyConvolutionFilter2D(disp)) parameters +static INLINE _glptr_CopyConvolutionFilter2D GET_CopyConvolutionFilter2D(struct _glapi_table *disp) { + return (_glptr_CopyConvolutionFilter2D) (GET_by_offset(disp, _gloffset_CopyConvolutionFilter2D)); +} + +static INLINE void SET_CopyConvolutionFilter2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei)) { + SET_by_offset(disp, _gloffset_CopyConvolutionFilter2D, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetConvolutionFilter)(GLenum, GLenum, GLenum, GLvoid *); +#define CALL_GetConvolutionFilter(disp, parameters) \ + (* GET_GetConvolutionFilter(disp)) parameters +static INLINE _glptr_GetConvolutionFilter GET_GetConvolutionFilter(struct _glapi_table *disp) { + return (_glptr_GetConvolutionFilter) (GET_by_offset(disp, _gloffset_GetConvolutionFilter)); +} + +static INLINE void SET_GetConvolutionFilter(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetConvolutionFilter, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetConvolutionParameterfv)(GLenum, GLenum, GLfloat *); +#define CALL_GetConvolutionParameterfv(disp, parameters) \ + (* GET_GetConvolutionParameterfv(disp)) parameters +static INLINE _glptr_GetConvolutionParameterfv GET_GetConvolutionParameterfv(struct _glapi_table *disp) { + return (_glptr_GetConvolutionParameterfv) (GET_by_offset(disp, _gloffset_GetConvolutionParameterfv)); +} + +static INLINE void SET_GetConvolutionParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetConvolutionParameterfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetConvolutionParameteriv)(GLenum, GLenum, GLint *); +#define CALL_GetConvolutionParameteriv(disp, parameters) \ + (* GET_GetConvolutionParameteriv(disp)) parameters +static INLINE _glptr_GetConvolutionParameteriv GET_GetConvolutionParameteriv(struct _glapi_table *disp) { + return (_glptr_GetConvolutionParameteriv) (GET_by_offset(disp, _gloffset_GetConvolutionParameteriv)); +} + +static INLINE void SET_GetConvolutionParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetConvolutionParameteriv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetSeparableFilter)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *); +#define CALL_GetSeparableFilter(disp, parameters) \ + (* GET_GetSeparableFilter(disp)) parameters +static INLINE _glptr_GetSeparableFilter GET_GetSeparableFilter(struct _glapi_table *disp) { + return (_glptr_GetSeparableFilter) (GET_by_offset(disp, _gloffset_GetSeparableFilter)); +} + +static INLINE void SET_GetSeparableFilter(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetSeparableFilter, fn); +} + +typedef void (GLAPIENTRYP _glptr_SeparableFilter2D)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *); +#define CALL_SeparableFilter2D(disp, parameters) \ + (* GET_SeparableFilter2D(disp)) parameters +static INLINE _glptr_SeparableFilter2D GET_SeparableFilter2D(struct _glapi_table *disp) { + return (_glptr_SeparableFilter2D) (GET_by_offset(disp, _gloffset_SeparableFilter2D)); +} + +static INLINE void SET_SeparableFilter2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *)) { + SET_by_offset(disp, _gloffset_SeparableFilter2D, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetHistogram)(GLenum, GLboolean, GLenum, GLenum, GLvoid *); +#define CALL_GetHistogram(disp, parameters) \ + (* GET_GetHistogram(disp)) parameters +static INLINE _glptr_GetHistogram GET_GetHistogram(struct _glapi_table *disp) { + return (_glptr_GetHistogram) (GET_by_offset(disp, _gloffset_GetHistogram)); +} + +static INLINE void SET_GetHistogram(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLboolean, GLenum, GLenum, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetHistogram, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetHistogramParameterfv)(GLenum, GLenum, GLfloat *); +#define CALL_GetHistogramParameterfv(disp, parameters) \ + (* GET_GetHistogramParameterfv(disp)) parameters +static INLINE _glptr_GetHistogramParameterfv GET_GetHistogramParameterfv(struct _glapi_table *disp) { + return (_glptr_GetHistogramParameterfv) (GET_by_offset(disp, _gloffset_GetHistogramParameterfv)); +} + +static INLINE void SET_GetHistogramParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetHistogramParameterfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetHistogramParameteriv)(GLenum, GLenum, GLint *); +#define CALL_GetHistogramParameteriv(disp, parameters) \ + (* GET_GetHistogramParameteriv(disp)) parameters +static INLINE _glptr_GetHistogramParameteriv GET_GetHistogramParameteriv(struct _glapi_table *disp) { + return (_glptr_GetHistogramParameteriv) (GET_by_offset(disp, _gloffset_GetHistogramParameteriv)); +} + +static INLINE void SET_GetHistogramParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetHistogramParameteriv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetMinmax)(GLenum, GLboolean, GLenum, GLenum, GLvoid *); +#define CALL_GetMinmax(disp, parameters) \ + (* GET_GetMinmax(disp)) parameters +static INLINE _glptr_GetMinmax GET_GetMinmax(struct _glapi_table *disp) { + return (_glptr_GetMinmax) (GET_by_offset(disp, _gloffset_GetMinmax)); +} + +static INLINE void SET_GetMinmax(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLboolean, GLenum, GLenum, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetMinmax, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetMinmaxParameterfv)(GLenum, GLenum, GLfloat *); +#define CALL_GetMinmaxParameterfv(disp, parameters) \ + (* GET_GetMinmaxParameterfv(disp)) parameters +static INLINE _glptr_GetMinmaxParameterfv GET_GetMinmaxParameterfv(struct _glapi_table *disp) { + return (_glptr_GetMinmaxParameterfv) (GET_by_offset(disp, _gloffset_GetMinmaxParameterfv)); +} + +static INLINE void SET_GetMinmaxParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetMinmaxParameterfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetMinmaxParameteriv)(GLenum, GLenum, GLint *); +#define CALL_GetMinmaxParameteriv(disp, parameters) \ + (* GET_GetMinmaxParameteriv(disp)) parameters +static INLINE _glptr_GetMinmaxParameteriv GET_GetMinmaxParameteriv(struct _glapi_table *disp) { + return (_glptr_GetMinmaxParameteriv) (GET_by_offset(disp, _gloffset_GetMinmaxParameteriv)); +} + +static INLINE void SET_GetMinmaxParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetMinmaxParameteriv, fn); +} + +typedef void (GLAPIENTRYP _glptr_Histogram)(GLenum, GLsizei, GLenum, GLboolean); +#define CALL_Histogram(disp, parameters) \ + (* GET_Histogram(disp)) parameters +static INLINE _glptr_Histogram GET_Histogram(struct _glapi_table *disp) { + return (_glptr_Histogram) (GET_by_offset(disp, _gloffset_Histogram)); +} + +static INLINE void SET_Histogram(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLenum, GLboolean)) { + SET_by_offset(disp, _gloffset_Histogram, fn); +} + +typedef void (GLAPIENTRYP _glptr_Minmax)(GLenum, GLenum, GLboolean); +#define CALL_Minmax(disp, parameters) \ + (* GET_Minmax(disp)) parameters +static INLINE _glptr_Minmax GET_Minmax(struct _glapi_table *disp) { + return (_glptr_Minmax) (GET_by_offset(disp, _gloffset_Minmax)); +} + +static INLINE void SET_Minmax(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLboolean)) { + SET_by_offset(disp, _gloffset_Minmax, fn); +} + +typedef void (GLAPIENTRYP _glptr_ResetHistogram)(GLenum); +#define CALL_ResetHistogram(disp, parameters) \ + (* GET_ResetHistogram(disp)) parameters +static INLINE _glptr_ResetHistogram GET_ResetHistogram(struct _glapi_table *disp) { + return (_glptr_ResetHistogram) (GET_by_offset(disp, _gloffset_ResetHistogram)); +} + +static INLINE void SET_ResetHistogram(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_ResetHistogram, fn); +} + +typedef void (GLAPIENTRYP _glptr_ResetMinmax)(GLenum); +#define CALL_ResetMinmax(disp, parameters) \ + (* GET_ResetMinmax(disp)) parameters +static INLINE _glptr_ResetMinmax GET_ResetMinmax(struct _glapi_table *disp) { + return (_glptr_ResetMinmax) (GET_by_offset(disp, _gloffset_ResetMinmax)); +} + +static INLINE void SET_ResetMinmax(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_ResetMinmax, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexImage3D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); +#define CALL_TexImage3D(disp, parameters) \ + (* GET_TexImage3D(disp)) parameters +static INLINE _glptr_TexImage3D GET_TexImage3D(struct _glapi_table *disp) { + return (_glptr_TexImage3D) (GET_by_offset(disp, _gloffset_TexImage3D)); +} + +static INLINE void SET_TexImage3D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_TexImage3D, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); +#define CALL_TexSubImage3D(disp, parameters) \ + (* GET_TexSubImage3D(disp)) parameters +static INLINE _glptr_TexSubImage3D GET_TexSubImage3D(struct _glapi_table *disp) { + return (_glptr_TexSubImage3D) (GET_by_offset(disp, _gloffset_TexSubImage3D)); +} + +static INLINE void SET_TexSubImage3D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *)) { + SET_by_offset(disp, _gloffset_TexSubImage3D, fn); +} + +typedef void (GLAPIENTRYP _glptr_CopyTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); +#define CALL_CopyTexSubImage3D(disp, parameters) \ + (* GET_CopyTexSubImage3D(disp)) parameters +static INLINE _glptr_CopyTexSubImage3D GET_CopyTexSubImage3D(struct _glapi_table *disp) { + return (_glptr_CopyTexSubImage3D) (GET_by_offset(disp, _gloffset_CopyTexSubImage3D)); +} + +static INLINE void SET_CopyTexSubImage3D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei)) { + SET_by_offset(disp, _gloffset_CopyTexSubImage3D, fn); +} + +typedef void (GLAPIENTRYP _glptr_ActiveTextureARB)(GLenum); +#define CALL_ActiveTextureARB(disp, parameters) \ + (* GET_ActiveTextureARB(disp)) parameters +static INLINE _glptr_ActiveTextureARB GET_ActiveTextureARB(struct _glapi_table *disp) { + return (_glptr_ActiveTextureARB) (GET_by_offset(disp, _gloffset_ActiveTextureARB)); +} + +static INLINE void SET_ActiveTextureARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_ActiveTextureARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClientActiveTextureARB)(GLenum); +#define CALL_ClientActiveTextureARB(disp, parameters) \ + (* GET_ClientActiveTextureARB(disp)) parameters +static INLINE _glptr_ClientActiveTextureARB GET_ClientActiveTextureARB(struct _glapi_table *disp) { + return (_glptr_ClientActiveTextureARB) (GET_by_offset(disp, _gloffset_ClientActiveTextureARB)); +} + +static INLINE void SET_ClientActiveTextureARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_ClientActiveTextureARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord1dARB)(GLenum, GLdouble); +#define CALL_MultiTexCoord1dARB(disp, parameters) \ + (* GET_MultiTexCoord1dARB(disp)) parameters +static INLINE _glptr_MultiTexCoord1dARB GET_MultiTexCoord1dARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord1dARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1dARB)); +} + +static INLINE void SET_MultiTexCoord1dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble)) { + SET_by_offset(disp, _gloffset_MultiTexCoord1dARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord1dvARB)(GLenum, const GLdouble *); +#define CALL_MultiTexCoord1dvARB(disp, parameters) \ + (* GET_MultiTexCoord1dvARB(disp)) parameters +static INLINE _glptr_MultiTexCoord1dvARB GET_MultiTexCoord1dvARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord1dvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1dvARB)); +} + +static INLINE void SET_MultiTexCoord1dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLdouble *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord1dvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord1fARB)(GLenum, GLfloat); +#define CALL_MultiTexCoord1fARB(disp, parameters) \ + (* GET_MultiTexCoord1fARB(disp)) parameters +static INLINE _glptr_MultiTexCoord1fARB GET_MultiTexCoord1fARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord1fARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1fARB)); +} + +static INLINE void SET_MultiTexCoord1fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_MultiTexCoord1fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord1fvARB)(GLenum, const GLfloat *); +#define CALL_MultiTexCoord1fvARB(disp, parameters) \ + (* GET_MultiTexCoord1fvARB(disp)) parameters +static INLINE _glptr_MultiTexCoord1fvARB GET_MultiTexCoord1fvARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord1fvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1fvARB)); +} + +static INLINE void SET_MultiTexCoord1fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord1fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord1iARB)(GLenum, GLint); +#define CALL_MultiTexCoord1iARB(disp, parameters) \ + (* GET_MultiTexCoord1iARB(disp)) parameters +static INLINE _glptr_MultiTexCoord1iARB GET_MultiTexCoord1iARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord1iARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1iARB)); +} + +static INLINE void SET_MultiTexCoord1iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { + SET_by_offset(disp, _gloffset_MultiTexCoord1iARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord1ivARB)(GLenum, const GLint *); +#define CALL_MultiTexCoord1ivARB(disp, parameters) \ + (* GET_MultiTexCoord1ivARB(disp)) parameters +static INLINE _glptr_MultiTexCoord1ivARB GET_MultiTexCoord1ivARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord1ivARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1ivARB)); +} + +static INLINE void SET_MultiTexCoord1ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord1ivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord1sARB)(GLenum, GLshort); +#define CALL_MultiTexCoord1sARB(disp, parameters) \ + (* GET_MultiTexCoord1sARB(disp)) parameters +static INLINE _glptr_MultiTexCoord1sARB GET_MultiTexCoord1sARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord1sARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1sARB)); +} + +static INLINE void SET_MultiTexCoord1sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLshort)) { + SET_by_offset(disp, _gloffset_MultiTexCoord1sARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord1svARB)(GLenum, const GLshort *); +#define CALL_MultiTexCoord1svARB(disp, parameters) \ + (* GET_MultiTexCoord1svARB(disp)) parameters +static INLINE _glptr_MultiTexCoord1svARB GET_MultiTexCoord1svARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord1svARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1svARB)); +} + +static INLINE void SET_MultiTexCoord1svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLshort *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord1svARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord2dARB)(GLenum, GLdouble, GLdouble); +#define CALL_MultiTexCoord2dARB(disp, parameters) \ + (* GET_MultiTexCoord2dARB(disp)) parameters +static INLINE _glptr_MultiTexCoord2dARB GET_MultiTexCoord2dARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord2dARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2dARB)); +} + +static INLINE void SET_MultiTexCoord2dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_MultiTexCoord2dARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord2dvARB)(GLenum, const GLdouble *); +#define CALL_MultiTexCoord2dvARB(disp, parameters) \ + (* GET_MultiTexCoord2dvARB(disp)) parameters +static INLINE _glptr_MultiTexCoord2dvARB GET_MultiTexCoord2dvARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord2dvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2dvARB)); +} + +static INLINE void SET_MultiTexCoord2dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLdouble *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord2dvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord2fARB)(GLenum, GLfloat, GLfloat); +#define CALL_MultiTexCoord2fARB(disp, parameters) \ + (* GET_MultiTexCoord2fARB(disp)) parameters +static INLINE _glptr_MultiTexCoord2fARB GET_MultiTexCoord2fARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord2fARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2fARB)); +} + +static INLINE void SET_MultiTexCoord2fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_MultiTexCoord2fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord2fvARB)(GLenum, const GLfloat *); +#define CALL_MultiTexCoord2fvARB(disp, parameters) \ + (* GET_MultiTexCoord2fvARB(disp)) parameters +static INLINE _glptr_MultiTexCoord2fvARB GET_MultiTexCoord2fvARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord2fvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2fvARB)); +} + +static INLINE void SET_MultiTexCoord2fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord2fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord2iARB)(GLenum, GLint, GLint); +#define CALL_MultiTexCoord2iARB(disp, parameters) \ + (* GET_MultiTexCoord2iARB(disp)) parameters +static INLINE _glptr_MultiTexCoord2iARB GET_MultiTexCoord2iARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord2iARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2iARB)); +} + +static INLINE void SET_MultiTexCoord2iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint)) { + SET_by_offset(disp, _gloffset_MultiTexCoord2iARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord2ivARB)(GLenum, const GLint *); +#define CALL_MultiTexCoord2ivARB(disp, parameters) \ + (* GET_MultiTexCoord2ivARB(disp)) parameters +static INLINE _glptr_MultiTexCoord2ivARB GET_MultiTexCoord2ivARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord2ivARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2ivARB)); +} + +static INLINE void SET_MultiTexCoord2ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord2ivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord2sARB)(GLenum, GLshort, GLshort); +#define CALL_MultiTexCoord2sARB(disp, parameters) \ + (* GET_MultiTexCoord2sARB(disp)) parameters +static INLINE _glptr_MultiTexCoord2sARB GET_MultiTexCoord2sARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord2sARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2sARB)); +} + +static INLINE void SET_MultiTexCoord2sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_MultiTexCoord2sARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord2svARB)(GLenum, const GLshort *); +#define CALL_MultiTexCoord2svARB(disp, parameters) \ + (* GET_MultiTexCoord2svARB(disp)) parameters +static INLINE _glptr_MultiTexCoord2svARB GET_MultiTexCoord2svARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord2svARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2svARB)); +} + +static INLINE void SET_MultiTexCoord2svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLshort *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord2svARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord3dARB)(GLenum, GLdouble, GLdouble, GLdouble); +#define CALL_MultiTexCoord3dARB(disp, parameters) \ + (* GET_MultiTexCoord3dARB(disp)) parameters +static INLINE _glptr_MultiTexCoord3dARB GET_MultiTexCoord3dARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord3dARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3dARB)); +} + +static INLINE void SET_MultiTexCoord3dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_MultiTexCoord3dARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord3dvARB)(GLenum, const GLdouble *); +#define CALL_MultiTexCoord3dvARB(disp, parameters) \ + (* GET_MultiTexCoord3dvARB(disp)) parameters +static INLINE _glptr_MultiTexCoord3dvARB GET_MultiTexCoord3dvARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord3dvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3dvARB)); +} + +static INLINE void SET_MultiTexCoord3dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLdouble *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord3dvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord3fARB)(GLenum, GLfloat, GLfloat, GLfloat); +#define CALL_MultiTexCoord3fARB(disp, parameters) \ + (* GET_MultiTexCoord3fARB(disp)) parameters +static INLINE _glptr_MultiTexCoord3fARB GET_MultiTexCoord3fARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord3fARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3fARB)); +} + +static INLINE void SET_MultiTexCoord3fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_MultiTexCoord3fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord3fvARB)(GLenum, const GLfloat *); +#define CALL_MultiTexCoord3fvARB(disp, parameters) \ + (* GET_MultiTexCoord3fvARB(disp)) parameters +static INLINE _glptr_MultiTexCoord3fvARB GET_MultiTexCoord3fvARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord3fvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3fvARB)); +} + +static INLINE void SET_MultiTexCoord3fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord3fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord3iARB)(GLenum, GLint, GLint, GLint); +#define CALL_MultiTexCoord3iARB(disp, parameters) \ + (* GET_MultiTexCoord3iARB(disp)) parameters +static INLINE _glptr_MultiTexCoord3iARB GET_MultiTexCoord3iARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord3iARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3iARB)); +} + +static INLINE void SET_MultiTexCoord3iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_MultiTexCoord3iARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord3ivARB)(GLenum, const GLint *); +#define CALL_MultiTexCoord3ivARB(disp, parameters) \ + (* GET_MultiTexCoord3ivARB(disp)) parameters +static INLINE _glptr_MultiTexCoord3ivARB GET_MultiTexCoord3ivARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord3ivARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3ivARB)); +} + +static INLINE void SET_MultiTexCoord3ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord3ivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord3sARB)(GLenum, GLshort, GLshort, GLshort); +#define CALL_MultiTexCoord3sARB(disp, parameters) \ + (* GET_MultiTexCoord3sARB(disp)) parameters +static INLINE _glptr_MultiTexCoord3sARB GET_MultiTexCoord3sARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord3sARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3sARB)); +} + +static INLINE void SET_MultiTexCoord3sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_MultiTexCoord3sARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord3svARB)(GLenum, const GLshort *); +#define CALL_MultiTexCoord3svARB(disp, parameters) \ + (* GET_MultiTexCoord3svARB(disp)) parameters +static INLINE _glptr_MultiTexCoord3svARB GET_MultiTexCoord3svARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord3svARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3svARB)); +} + +static INLINE void SET_MultiTexCoord3svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLshort *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord3svARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord4dARB)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_MultiTexCoord4dARB(disp, parameters) \ + (* GET_MultiTexCoord4dARB(disp)) parameters +static INLINE _glptr_MultiTexCoord4dARB GET_MultiTexCoord4dARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord4dARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4dARB)); +} + +static INLINE void SET_MultiTexCoord4dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_MultiTexCoord4dARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord4dvARB)(GLenum, const GLdouble *); +#define CALL_MultiTexCoord4dvARB(disp, parameters) \ + (* GET_MultiTexCoord4dvARB(disp)) parameters +static INLINE _glptr_MultiTexCoord4dvARB GET_MultiTexCoord4dvARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord4dvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4dvARB)); +} + +static INLINE void SET_MultiTexCoord4dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLdouble *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord4dvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord4fARB)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_MultiTexCoord4fARB(disp, parameters) \ + (* GET_MultiTexCoord4fARB(disp)) parameters +static INLINE _glptr_MultiTexCoord4fARB GET_MultiTexCoord4fARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord4fARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4fARB)); +} + +static INLINE void SET_MultiTexCoord4fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_MultiTexCoord4fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord4fvARB)(GLenum, const GLfloat *); +#define CALL_MultiTexCoord4fvARB(disp, parameters) \ + (* GET_MultiTexCoord4fvARB(disp)) parameters +static INLINE _glptr_MultiTexCoord4fvARB GET_MultiTexCoord4fvARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord4fvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4fvARB)); +} + +static INLINE void SET_MultiTexCoord4fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord4fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord4iARB)(GLenum, GLint, GLint, GLint, GLint); +#define CALL_MultiTexCoord4iARB(disp, parameters) \ + (* GET_MultiTexCoord4iARB(disp)) parameters +static INLINE _glptr_MultiTexCoord4iARB GET_MultiTexCoord4iARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord4iARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4iARB)); +} + +static INLINE void SET_MultiTexCoord4iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_MultiTexCoord4iARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord4ivARB)(GLenum, const GLint *); +#define CALL_MultiTexCoord4ivARB(disp, parameters) \ + (* GET_MultiTexCoord4ivARB(disp)) parameters +static INLINE _glptr_MultiTexCoord4ivARB GET_MultiTexCoord4ivARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord4ivARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4ivARB)); +} + +static INLINE void SET_MultiTexCoord4ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord4ivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord4sARB)(GLenum, GLshort, GLshort, GLshort, GLshort); +#define CALL_MultiTexCoord4sARB(disp, parameters) \ + (* GET_MultiTexCoord4sARB(disp)) parameters +static INLINE _glptr_MultiTexCoord4sARB GET_MultiTexCoord4sARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord4sARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4sARB)); +} + +static INLINE void SET_MultiTexCoord4sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLshort, GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_MultiTexCoord4sARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiTexCoord4svARB)(GLenum, const GLshort *); +#define CALL_MultiTexCoord4svARB(disp, parameters) \ + (* GET_MultiTexCoord4svARB(disp)) parameters +static INLINE _glptr_MultiTexCoord4svARB GET_MultiTexCoord4svARB(struct _glapi_table *disp) { + return (_glptr_MultiTexCoord4svARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4svARB)); +} + +static INLINE void SET_MultiTexCoord4svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLshort *)) { + SET_by_offset(disp, _gloffset_MultiTexCoord4svARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_AttachShader)(GLuint, GLuint); +#define CALL_AttachShader(disp, parameters) \ + (* GET_AttachShader(disp)) parameters +static INLINE _glptr_AttachShader GET_AttachShader(struct _glapi_table *disp) { + return (_glptr_AttachShader) (GET_by_offset(disp, _gloffset_AttachShader)); +} + +static INLINE void SET_AttachShader(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_AttachShader, fn); +} + +typedef GLuint (GLAPIENTRYP _glptr_CreateProgram)(void); +#define CALL_CreateProgram(disp, parameters) \ + (* GET_CreateProgram(disp)) parameters +static INLINE _glptr_CreateProgram GET_CreateProgram(struct _glapi_table *disp) { + return (_glptr_CreateProgram) (GET_by_offset(disp, _gloffset_CreateProgram)); +} + +static INLINE void SET_CreateProgram(struct _glapi_table *disp, GLuint (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_CreateProgram, fn); +} + +typedef GLuint (GLAPIENTRYP _glptr_CreateShader)(GLenum); +#define CALL_CreateShader(disp, parameters) \ + (* GET_CreateShader(disp)) parameters +static INLINE _glptr_CreateShader GET_CreateShader(struct _glapi_table *disp) { + return (_glptr_CreateShader) (GET_by_offset(disp, _gloffset_CreateShader)); +} + +static INLINE void SET_CreateShader(struct _glapi_table *disp, GLuint (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_CreateShader, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteProgram)(GLuint); +#define CALL_DeleteProgram(disp, parameters) \ + (* GET_DeleteProgram(disp)) parameters +static INLINE _glptr_DeleteProgram GET_DeleteProgram(struct _glapi_table *disp) { + return (_glptr_DeleteProgram) (GET_by_offset(disp, _gloffset_DeleteProgram)); +} + +static INLINE void SET_DeleteProgram(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_DeleteProgram, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteShader)(GLuint); +#define CALL_DeleteShader(disp, parameters) \ + (* GET_DeleteShader(disp)) parameters +static INLINE _glptr_DeleteShader GET_DeleteShader(struct _glapi_table *disp) { + return (_glptr_DeleteShader) (GET_by_offset(disp, _gloffset_DeleteShader)); +} + +static INLINE void SET_DeleteShader(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_DeleteShader, fn); +} + +typedef void (GLAPIENTRYP _glptr_DetachShader)(GLuint, GLuint); +#define CALL_DetachShader(disp, parameters) \ + (* GET_DetachShader(disp)) parameters +static INLINE _glptr_DetachShader GET_DetachShader(struct _glapi_table *disp) { + return (_glptr_DetachShader) (GET_by_offset(disp, _gloffset_DetachShader)); +} + +static INLINE void SET_DetachShader(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_DetachShader, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetAttachedShaders)(GLuint, GLsizei, GLsizei *, GLuint *); +#define CALL_GetAttachedShaders(disp, parameters) \ + (* GET_GetAttachedShaders(disp)) parameters +static INLINE _glptr_GetAttachedShaders GET_GetAttachedShaders(struct _glapi_table *disp) { + return (_glptr_GetAttachedShaders) (GET_by_offset(disp, _gloffset_GetAttachedShaders)); +} + +static INLINE void SET_GetAttachedShaders(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, GLsizei *, GLuint *)) { + SET_by_offset(disp, _gloffset_GetAttachedShaders, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *); +#define CALL_GetProgramInfoLog(disp, parameters) \ + (* GET_GetProgramInfoLog(disp)) parameters +static INLINE _glptr_GetProgramInfoLog GET_GetProgramInfoLog(struct _glapi_table *disp) { + return (_glptr_GetProgramInfoLog) (GET_by_offset(disp, _gloffset_GetProgramInfoLog)); +} + +static INLINE void SET_GetProgramInfoLog(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, GLsizei *, GLchar *)) { + SET_by_offset(disp, _gloffset_GetProgramInfoLog, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramiv)(GLuint, GLenum, GLint *); +#define CALL_GetProgramiv(disp, parameters) \ + (* GET_GetProgramiv(disp)) parameters +static INLINE _glptr_GetProgramiv GET_GetProgramiv(struct _glapi_table *disp) { + return (_glptr_GetProgramiv) (GET_by_offset(disp, _gloffset_GetProgramiv)); +} + +static INLINE void SET_GetProgramiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetProgramiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetShaderInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *); +#define CALL_GetShaderInfoLog(disp, parameters) \ + (* GET_GetShaderInfoLog(disp)) parameters +static INLINE _glptr_GetShaderInfoLog GET_GetShaderInfoLog(struct _glapi_table *disp) { + return (_glptr_GetShaderInfoLog) (GET_by_offset(disp, _gloffset_GetShaderInfoLog)); +} + +static INLINE void SET_GetShaderInfoLog(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, GLsizei *, GLchar *)) { + SET_by_offset(disp, _gloffset_GetShaderInfoLog, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetShaderiv)(GLuint, GLenum, GLint *); +#define CALL_GetShaderiv(disp, parameters) \ + (* GET_GetShaderiv(disp)) parameters +static INLINE _glptr_GetShaderiv GET_GetShaderiv(struct _glapi_table *disp) { + return (_glptr_GetShaderiv) (GET_by_offset(disp, _gloffset_GetShaderiv)); +} + +static INLINE void SET_GetShaderiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetShaderiv, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsProgram)(GLuint); +#define CALL_IsProgram(disp, parameters) \ + (* GET_IsProgram(disp)) parameters +static INLINE _glptr_IsProgram GET_IsProgram(struct _glapi_table *disp) { + return (_glptr_IsProgram) (GET_by_offset(disp, _gloffset_IsProgram)); +} + +static INLINE void SET_IsProgram(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IsProgram, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsShader)(GLuint); +#define CALL_IsShader(disp, parameters) \ + (* GET_IsShader(disp)) parameters +static INLINE _glptr_IsShader GET_IsShader(struct _glapi_table *disp) { + return (_glptr_IsShader) (GET_by_offset(disp, _gloffset_IsShader)); +} + +static INLINE void SET_IsShader(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IsShader, fn); +} + +typedef void (GLAPIENTRYP _glptr_StencilFuncSeparate)(GLenum, GLenum, GLint, GLuint); +#define CALL_StencilFuncSeparate(disp, parameters) \ + (* GET_StencilFuncSeparate(disp)) parameters +static INLINE _glptr_StencilFuncSeparate GET_StencilFuncSeparate(struct _glapi_table *disp) { + return (_glptr_StencilFuncSeparate) (GET_by_offset(disp, _gloffset_StencilFuncSeparate)); +} + +static INLINE void SET_StencilFuncSeparate(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint, GLuint)) { + SET_by_offset(disp, _gloffset_StencilFuncSeparate, fn); +} + +typedef void (GLAPIENTRYP _glptr_StencilMaskSeparate)(GLenum, GLuint); +#define CALL_StencilMaskSeparate(disp, parameters) \ + (* GET_StencilMaskSeparate(disp)) parameters +static INLINE _glptr_StencilMaskSeparate GET_StencilMaskSeparate(struct _glapi_table *disp) { + return (_glptr_StencilMaskSeparate) (GET_by_offset(disp, _gloffset_StencilMaskSeparate)); +} + +static INLINE void SET_StencilMaskSeparate(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_StencilMaskSeparate, fn); +} + +typedef void (GLAPIENTRYP _glptr_StencilOpSeparate)(GLenum, GLenum, GLenum, GLenum); +#define CALL_StencilOpSeparate(disp, parameters) \ + (* GET_StencilOpSeparate(disp)) parameters +static INLINE _glptr_StencilOpSeparate GET_StencilOpSeparate(struct _glapi_table *disp) { + return (_glptr_StencilOpSeparate) (GET_by_offset(disp, _gloffset_StencilOpSeparate)); +} + +static INLINE void SET_StencilOpSeparate(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_StencilOpSeparate, fn); +} + +typedef void (GLAPIENTRYP _glptr_UniformMatrix2x3fv)(GLint, GLsizei, GLboolean, const GLfloat *); +#define CALL_UniformMatrix2x3fv(disp, parameters) \ + (* GET_UniformMatrix2x3fv(disp)) parameters +static INLINE _glptr_UniformMatrix2x3fv GET_UniformMatrix2x3fv(struct _glapi_table *disp) { + return (_glptr_UniformMatrix2x3fv) (GET_by_offset(disp, _gloffset_UniformMatrix2x3fv)); +} + +static INLINE void SET_UniformMatrix2x3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { + SET_by_offset(disp, _gloffset_UniformMatrix2x3fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_UniformMatrix2x4fv)(GLint, GLsizei, GLboolean, const GLfloat *); +#define CALL_UniformMatrix2x4fv(disp, parameters) \ + (* GET_UniformMatrix2x4fv(disp)) parameters +static INLINE _glptr_UniformMatrix2x4fv GET_UniformMatrix2x4fv(struct _glapi_table *disp) { + return (_glptr_UniformMatrix2x4fv) (GET_by_offset(disp, _gloffset_UniformMatrix2x4fv)); +} + +static INLINE void SET_UniformMatrix2x4fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { + SET_by_offset(disp, _gloffset_UniformMatrix2x4fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_UniformMatrix3x2fv)(GLint, GLsizei, GLboolean, const GLfloat *); +#define CALL_UniformMatrix3x2fv(disp, parameters) \ + (* GET_UniformMatrix3x2fv(disp)) parameters +static INLINE _glptr_UniformMatrix3x2fv GET_UniformMatrix3x2fv(struct _glapi_table *disp) { + return (_glptr_UniformMatrix3x2fv) (GET_by_offset(disp, _gloffset_UniformMatrix3x2fv)); +} + +static INLINE void SET_UniformMatrix3x2fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { + SET_by_offset(disp, _gloffset_UniformMatrix3x2fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_UniformMatrix3x4fv)(GLint, GLsizei, GLboolean, const GLfloat *); +#define CALL_UniformMatrix3x4fv(disp, parameters) \ + (* GET_UniformMatrix3x4fv(disp)) parameters +static INLINE _glptr_UniformMatrix3x4fv GET_UniformMatrix3x4fv(struct _glapi_table *disp) { + return (_glptr_UniformMatrix3x4fv) (GET_by_offset(disp, _gloffset_UniformMatrix3x4fv)); +} + +static INLINE void SET_UniformMatrix3x4fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { + SET_by_offset(disp, _gloffset_UniformMatrix3x4fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_UniformMatrix4x2fv)(GLint, GLsizei, GLboolean, const GLfloat *); +#define CALL_UniformMatrix4x2fv(disp, parameters) \ + (* GET_UniformMatrix4x2fv(disp)) parameters +static INLINE _glptr_UniformMatrix4x2fv GET_UniformMatrix4x2fv(struct _glapi_table *disp) { + return (_glptr_UniformMatrix4x2fv) (GET_by_offset(disp, _gloffset_UniformMatrix4x2fv)); +} + +static INLINE void SET_UniformMatrix4x2fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { + SET_by_offset(disp, _gloffset_UniformMatrix4x2fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_UniformMatrix4x3fv)(GLint, GLsizei, GLboolean, const GLfloat *); +#define CALL_UniformMatrix4x3fv(disp, parameters) \ + (* GET_UniformMatrix4x3fv(disp)) parameters +static INLINE _glptr_UniformMatrix4x3fv GET_UniformMatrix4x3fv(struct _glapi_table *disp) { + return (_glptr_UniformMatrix4x3fv) (GET_by_offset(disp, _gloffset_UniformMatrix4x3fv)); +} + +static INLINE void SET_UniformMatrix4x3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { + SET_by_offset(disp, _gloffset_UniformMatrix4x3fv, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClampColor)(GLenum, GLenum); +#define CALL_ClampColor(disp, parameters) \ + (* GET_ClampColor(disp)) parameters +static INLINE _glptr_ClampColor GET_ClampColor(struct _glapi_table *disp) { + return (_glptr_ClampColor) (GET_by_offset(disp, _gloffset_ClampColor)); +} + +static INLINE void SET_ClampColor(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_ClampColor, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClearBufferfi)(GLenum, GLint, GLfloat, GLint); +#define CALL_ClearBufferfi(disp, parameters) \ + (* GET_ClearBufferfi(disp)) parameters +static INLINE _glptr_ClearBufferfi GET_ClearBufferfi(struct _glapi_table *disp) { + return (_glptr_ClearBufferfi) (GET_by_offset(disp, _gloffset_ClearBufferfi)); +} + +static INLINE void SET_ClearBufferfi(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLfloat, GLint)) { + SET_by_offset(disp, _gloffset_ClearBufferfi, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClearBufferfv)(GLenum, GLint, const GLfloat *); +#define CALL_ClearBufferfv(disp, parameters) \ + (* GET_ClearBufferfv(disp)) parameters +static INLINE _glptr_ClearBufferfv GET_ClearBufferfv(struct _glapi_table *disp) { + return (_glptr_ClearBufferfv) (GET_by_offset(disp, _gloffset_ClearBufferfv)); +} + +static INLINE void SET_ClearBufferfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_ClearBufferfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClearBufferiv)(GLenum, GLint, const GLint *); +#define CALL_ClearBufferiv(disp, parameters) \ + (* GET_ClearBufferiv(disp)) parameters +static INLINE _glptr_ClearBufferiv GET_ClearBufferiv(struct _glapi_table *disp) { + return (_glptr_ClearBufferiv) (GET_by_offset(disp, _gloffset_ClearBufferiv)); +} + +static INLINE void SET_ClearBufferiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, const GLint *)) { + SET_by_offset(disp, _gloffset_ClearBufferiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClearBufferuiv)(GLenum, GLint, const GLuint *); +#define CALL_ClearBufferuiv(disp, parameters) \ + (* GET_ClearBufferuiv(disp)) parameters +static INLINE _glptr_ClearBufferuiv GET_ClearBufferuiv(struct _glapi_table *disp) { + return (_glptr_ClearBufferuiv) (GET_by_offset(disp, _gloffset_ClearBufferuiv)); +} + +static INLINE void SET_ClearBufferuiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, const GLuint *)) { + SET_by_offset(disp, _gloffset_ClearBufferuiv, fn); +} + +typedef const GLubyte * (GLAPIENTRYP _glptr_GetStringi)(GLenum, GLuint); +#define CALL_GetStringi(disp, parameters) \ + (* GET_GetStringi(disp)) parameters +static INLINE _glptr_GetStringi GET_GetStringi(struct _glapi_table *disp) { + return (_glptr_GetStringi) (GET_by_offset(disp, _gloffset_GetStringi)); +} + +static INLINE void SET_GetStringi(struct _glapi_table *disp, const GLubyte * (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_GetStringi, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexBuffer)(GLenum, GLenum, GLuint); +#define CALL_TexBuffer(disp, parameters) \ + (* GET_TexBuffer(disp)) parameters +static INLINE _glptr_TexBuffer GET_TexBuffer(struct _glapi_table *disp) { + return (_glptr_TexBuffer) (GET_by_offset(disp, _gloffset_TexBuffer)); +} + +static INLINE void SET_TexBuffer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_TexBuffer, fn); +} + +typedef void (GLAPIENTRYP _glptr_FramebufferTexture)(GLenum, GLenum, GLuint, GLint); +#define CALL_FramebufferTexture(disp, parameters) \ + (* GET_FramebufferTexture(disp)) parameters +static INLINE _glptr_FramebufferTexture GET_FramebufferTexture(struct _glapi_table *disp) { + return (_glptr_FramebufferTexture) (GET_by_offset(disp, _gloffset_FramebufferTexture)); +} + +static INLINE void SET_FramebufferTexture(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint, GLint)) { + SET_by_offset(disp, _gloffset_FramebufferTexture, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetBufferParameteri64v)(GLenum, GLenum, GLint64 *); +#define CALL_GetBufferParameteri64v(disp, parameters) \ + (* GET_GetBufferParameteri64v(disp)) parameters +static INLINE _glptr_GetBufferParameteri64v GET_GetBufferParameteri64v(struct _glapi_table *disp) { + return (_glptr_GetBufferParameteri64v) (GET_by_offset(disp, _gloffset_GetBufferParameteri64v)); +} + +static INLINE void SET_GetBufferParameteri64v(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint64 *)) { + SET_by_offset(disp, _gloffset_GetBufferParameteri64v, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetInteger64i_v)(GLenum, GLuint, GLint64 *); +#define CALL_GetInteger64i_v(disp, parameters) \ + (* GET_GetInteger64i_v(disp)) parameters +static INLINE _glptr_GetInteger64i_v GET_GetInteger64i_v(struct _glapi_table *disp) { + return (_glptr_GetInteger64i_v) (GET_by_offset(disp, _gloffset_GetInteger64i_v)); +} + +static INLINE void SET_GetInteger64i_v(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLint64 *)) { + SET_by_offset(disp, _gloffset_GetInteger64i_v, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribDivisor)(GLuint, GLuint); +#define CALL_VertexAttribDivisor(disp, parameters) \ + (* GET_VertexAttribDivisor(disp)) parameters +static INLINE _glptr_VertexAttribDivisor GET_VertexAttribDivisor(struct _glapi_table *disp) { + return (_glptr_VertexAttribDivisor) (GET_by_offset(disp, _gloffset_VertexAttribDivisor)); +} + +static INLINE void SET_VertexAttribDivisor(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_VertexAttribDivisor, fn); +} + +typedef void (GLAPIENTRYP _glptr_LoadTransposeMatrixdARB)(const GLdouble *); +#define CALL_LoadTransposeMatrixdARB(disp, parameters) \ + (* GET_LoadTransposeMatrixdARB(disp)) parameters +static INLINE _glptr_LoadTransposeMatrixdARB GET_LoadTransposeMatrixdARB(struct _glapi_table *disp) { + return (_glptr_LoadTransposeMatrixdARB) (GET_by_offset(disp, _gloffset_LoadTransposeMatrixdARB)); +} + +static INLINE void SET_LoadTransposeMatrixdARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_LoadTransposeMatrixdARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_LoadTransposeMatrixfARB)(const GLfloat *); +#define CALL_LoadTransposeMatrixfARB(disp, parameters) \ + (* GET_LoadTransposeMatrixfARB(disp)) parameters +static INLINE _glptr_LoadTransposeMatrixfARB GET_LoadTransposeMatrixfARB(struct _glapi_table *disp) { + return (_glptr_LoadTransposeMatrixfARB) (GET_by_offset(disp, _gloffset_LoadTransposeMatrixfARB)); +} + +static INLINE void SET_LoadTransposeMatrixfARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_LoadTransposeMatrixfARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultTransposeMatrixdARB)(const GLdouble *); +#define CALL_MultTransposeMatrixdARB(disp, parameters) \ + (* GET_MultTransposeMatrixdARB(disp)) parameters +static INLINE _glptr_MultTransposeMatrixdARB GET_MultTransposeMatrixdARB(struct _glapi_table *disp) { + return (_glptr_MultTransposeMatrixdARB) (GET_by_offset(disp, _gloffset_MultTransposeMatrixdARB)); +} + +static INLINE void SET_MultTransposeMatrixdARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_MultTransposeMatrixdARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultTransposeMatrixfARB)(const GLfloat *); +#define CALL_MultTransposeMatrixfARB(disp, parameters) \ + (* GET_MultTransposeMatrixfARB(disp)) parameters +static INLINE _glptr_MultTransposeMatrixfARB GET_MultTransposeMatrixfARB(struct _glapi_table *disp) { + return (_glptr_MultTransposeMatrixfARB) (GET_by_offset(disp, _gloffset_MultTransposeMatrixfARB)); +} + +static INLINE void SET_MultTransposeMatrixfARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_MultTransposeMatrixfARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_SampleCoverageARB)(GLclampf, GLboolean); +#define CALL_SampleCoverageARB(disp, parameters) \ + (* GET_SampleCoverageARB(disp)) parameters +static INLINE _glptr_SampleCoverageARB GET_SampleCoverageARB(struct _glapi_table *disp) { + return (_glptr_SampleCoverageARB) (GET_by_offset(disp, _gloffset_SampleCoverageARB)); +} + +static INLINE void SET_SampleCoverageARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampf, GLboolean)) { + SET_by_offset(disp, _gloffset_SampleCoverageARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_CompressedTexImage1DARB)(GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *); +#define CALL_CompressedTexImage1DARB(disp, parameters) \ + (* GET_CompressedTexImage1DARB(disp)) parameters +static INLINE _glptr_CompressedTexImage1DARB GET_CompressedTexImage1DARB(struct _glapi_table *disp) { + return (_glptr_CompressedTexImage1DARB) (GET_by_offset(disp, _gloffset_CompressedTexImage1DARB)); +} + +static INLINE void SET_CompressedTexImage1DARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_CompressedTexImage1DARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_CompressedTexImage2DARB)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); +#define CALL_CompressedTexImage2DARB(disp, parameters) \ + (* GET_CompressedTexImage2DARB(disp)) parameters +static INLINE _glptr_CompressedTexImage2DARB GET_CompressedTexImage2DARB(struct _glapi_table *disp) { + return (_glptr_CompressedTexImage2DARB) (GET_by_offset(disp, _gloffset_CompressedTexImage2DARB)); +} + +static INLINE void SET_CompressedTexImage2DARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_CompressedTexImage2DARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_CompressedTexImage3DARB)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); +#define CALL_CompressedTexImage3DARB(disp, parameters) \ + (* GET_CompressedTexImage3DARB(disp)) parameters +static INLINE _glptr_CompressedTexImage3DARB GET_CompressedTexImage3DARB(struct _glapi_table *disp) { + return (_glptr_CompressedTexImage3DARB) (GET_by_offset(disp, _gloffset_CompressedTexImage3DARB)); +} + +static INLINE void SET_CompressedTexImage3DARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_CompressedTexImage3DARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_CompressedTexSubImage1DARB)(GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *); +#define CALL_CompressedTexSubImage1DARB(disp, parameters) \ + (* GET_CompressedTexSubImage1DARB(disp)) parameters +static INLINE _glptr_CompressedTexSubImage1DARB GET_CompressedTexSubImage1DARB(struct _glapi_table *disp) { + return (_glptr_CompressedTexSubImage1DARB) (GET_by_offset(disp, _gloffset_CompressedTexSubImage1DARB)); +} + +static INLINE void SET_CompressedTexSubImage1DARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_CompressedTexSubImage1DARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_CompressedTexSubImage2DARB)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); +#define CALL_CompressedTexSubImage2DARB(disp, parameters) \ + (* GET_CompressedTexSubImage2DARB(disp)) parameters +static INLINE _glptr_CompressedTexSubImage2DARB GET_CompressedTexSubImage2DARB(struct _glapi_table *disp) { + return (_glptr_CompressedTexSubImage2DARB) (GET_by_offset(disp, _gloffset_CompressedTexSubImage2DARB)); +} + +static INLINE void SET_CompressedTexSubImage2DARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_CompressedTexSubImage2DARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_CompressedTexSubImage3DARB)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); +#define CALL_CompressedTexSubImage3DARB(disp, parameters) \ + (* GET_CompressedTexSubImage3DARB(disp)) parameters +static INLINE _glptr_CompressedTexSubImage3DARB GET_CompressedTexSubImage3DARB(struct _glapi_table *disp) { + return (_glptr_CompressedTexSubImage3DARB) (GET_by_offset(disp, _gloffset_CompressedTexSubImage3DARB)); +} + +static INLINE void SET_CompressedTexSubImage3DARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_CompressedTexSubImage3DARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetCompressedTexImageARB)(GLenum, GLint, GLvoid *); +#define CALL_GetCompressedTexImageARB(disp, parameters) \ + (* GET_GetCompressedTexImageARB(disp)) parameters +static INLINE _glptr_GetCompressedTexImageARB GET_GetCompressedTexImageARB(struct _glapi_table *disp) { + return (_glptr_GetCompressedTexImageARB) (GET_by_offset(disp, _gloffset_GetCompressedTexImageARB)); +} + +static INLINE void SET_GetCompressedTexImageARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetCompressedTexImageARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_DisableVertexAttribArrayARB)(GLuint); +#define CALL_DisableVertexAttribArrayARB(disp, parameters) \ + (* GET_DisableVertexAttribArrayARB(disp)) parameters +static INLINE _glptr_DisableVertexAttribArrayARB GET_DisableVertexAttribArrayARB(struct _glapi_table *disp) { + return (_glptr_DisableVertexAttribArrayARB) (GET_by_offset(disp, _gloffset_DisableVertexAttribArrayARB)); +} + +static INLINE void SET_DisableVertexAttribArrayARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_DisableVertexAttribArrayARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_EnableVertexAttribArrayARB)(GLuint); +#define CALL_EnableVertexAttribArrayARB(disp, parameters) \ + (* GET_EnableVertexAttribArrayARB(disp)) parameters +static INLINE _glptr_EnableVertexAttribArrayARB GET_EnableVertexAttribArrayARB(struct _glapi_table *disp) { + return (_glptr_EnableVertexAttribArrayARB) (GET_by_offset(disp, _gloffset_EnableVertexAttribArrayARB)); +} + +static INLINE void SET_EnableVertexAttribArrayARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_EnableVertexAttribArrayARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramEnvParameterdvARB)(GLenum, GLuint, GLdouble *); +#define CALL_GetProgramEnvParameterdvARB(disp, parameters) \ + (* GET_GetProgramEnvParameterdvARB(disp)) parameters +static INLINE _glptr_GetProgramEnvParameterdvARB GET_GetProgramEnvParameterdvARB(struct _glapi_table *disp) { + return (_glptr_GetProgramEnvParameterdvARB) (GET_by_offset(disp, _gloffset_GetProgramEnvParameterdvARB)); +} + +static INLINE void SET_GetProgramEnvParameterdvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLdouble *)) { + SET_by_offset(disp, _gloffset_GetProgramEnvParameterdvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramEnvParameterfvARB)(GLenum, GLuint, GLfloat *); +#define CALL_GetProgramEnvParameterfvARB(disp, parameters) \ + (* GET_GetProgramEnvParameterfvARB(disp)) parameters +static INLINE _glptr_GetProgramEnvParameterfvARB GET_GetProgramEnvParameterfvARB(struct _glapi_table *disp) { + return (_glptr_GetProgramEnvParameterfvARB) (GET_by_offset(disp, _gloffset_GetProgramEnvParameterfvARB)); +} + +static INLINE void SET_GetProgramEnvParameterfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetProgramEnvParameterfvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramLocalParameterdvARB)(GLenum, GLuint, GLdouble *); +#define CALL_GetProgramLocalParameterdvARB(disp, parameters) \ + (* GET_GetProgramLocalParameterdvARB(disp)) parameters +static INLINE _glptr_GetProgramLocalParameterdvARB GET_GetProgramLocalParameterdvARB(struct _glapi_table *disp) { + return (_glptr_GetProgramLocalParameterdvARB) (GET_by_offset(disp, _gloffset_GetProgramLocalParameterdvARB)); +} + +static INLINE void SET_GetProgramLocalParameterdvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLdouble *)) { + SET_by_offset(disp, _gloffset_GetProgramLocalParameterdvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramLocalParameterfvARB)(GLenum, GLuint, GLfloat *); +#define CALL_GetProgramLocalParameterfvARB(disp, parameters) \ + (* GET_GetProgramLocalParameterfvARB(disp)) parameters +static INLINE _glptr_GetProgramLocalParameterfvARB GET_GetProgramLocalParameterfvARB(struct _glapi_table *disp) { + return (_glptr_GetProgramLocalParameterfvARB) (GET_by_offset(disp, _gloffset_GetProgramLocalParameterfvARB)); +} + +static INLINE void SET_GetProgramLocalParameterfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetProgramLocalParameterfvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramStringARB)(GLenum, GLenum, GLvoid *); +#define CALL_GetProgramStringARB(disp, parameters) \ + (* GET_GetProgramStringARB(disp)) parameters +static INLINE _glptr_GetProgramStringARB GET_GetProgramStringARB(struct _glapi_table *disp) { + return (_glptr_GetProgramStringARB) (GET_by_offset(disp, _gloffset_GetProgramStringARB)); +} + +static INLINE void SET_GetProgramStringARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetProgramStringARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramivARB)(GLenum, GLenum, GLint *); +#define CALL_GetProgramivARB(disp, parameters) \ + (* GET_GetProgramivARB(disp)) parameters +static INLINE _glptr_GetProgramivARB GET_GetProgramivARB(struct _glapi_table *disp) { + return (_glptr_GetProgramivARB) (GET_by_offset(disp, _gloffset_GetProgramivARB)); +} + +static INLINE void SET_GetProgramivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetProgramivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetVertexAttribdvARB)(GLuint, GLenum, GLdouble *); +#define CALL_GetVertexAttribdvARB(disp, parameters) \ + (* GET_GetVertexAttribdvARB(disp)) parameters +static INLINE _glptr_GetVertexAttribdvARB GET_GetVertexAttribdvARB(struct _glapi_table *disp) { + return (_glptr_GetVertexAttribdvARB) (GET_by_offset(disp, _gloffset_GetVertexAttribdvARB)); +} + +static INLINE void SET_GetVertexAttribdvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLdouble *)) { + SET_by_offset(disp, _gloffset_GetVertexAttribdvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetVertexAttribfvARB)(GLuint, GLenum, GLfloat *); +#define CALL_GetVertexAttribfvARB(disp, parameters) \ + (* GET_GetVertexAttribfvARB(disp)) parameters +static INLINE _glptr_GetVertexAttribfvARB GET_GetVertexAttribfvARB(struct _glapi_table *disp) { + return (_glptr_GetVertexAttribfvARB) (GET_by_offset(disp, _gloffset_GetVertexAttribfvARB)); +} + +static INLINE void SET_GetVertexAttribfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetVertexAttribfvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetVertexAttribivARB)(GLuint, GLenum, GLint *); +#define CALL_GetVertexAttribivARB(disp, parameters) \ + (* GET_GetVertexAttribivARB(disp)) parameters +static INLINE _glptr_GetVertexAttribivARB GET_GetVertexAttribivARB(struct _glapi_table *disp) { + return (_glptr_GetVertexAttribivARB) (GET_by_offset(disp, _gloffset_GetVertexAttribivARB)); +} + +static INLINE void SET_GetVertexAttribivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetVertexAttribivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramEnvParameter4dARB)(GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_ProgramEnvParameter4dARB(disp, parameters) \ + (* GET_ProgramEnvParameter4dARB(disp)) parameters +static INLINE _glptr_ProgramEnvParameter4dARB GET_ProgramEnvParameter4dARB(struct _glapi_table *disp) { + return (_glptr_ProgramEnvParameter4dARB) (GET_by_offset(disp, _gloffset_ProgramEnvParameter4dARB)); +} + +static INLINE void SET_ProgramEnvParameter4dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_ProgramEnvParameter4dARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramEnvParameter4dvARB)(GLenum, GLuint, const GLdouble *); +#define CALL_ProgramEnvParameter4dvARB(disp, parameters) \ + (* GET_ProgramEnvParameter4dvARB(disp)) parameters +static INLINE _glptr_ProgramEnvParameter4dvARB GET_ProgramEnvParameter4dvARB(struct _glapi_table *disp) { + return (_glptr_ProgramEnvParameter4dvARB) (GET_by_offset(disp, _gloffset_ProgramEnvParameter4dvARB)); +} + +static INLINE void SET_ProgramEnvParameter4dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, const GLdouble *)) { + SET_by_offset(disp, _gloffset_ProgramEnvParameter4dvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramEnvParameter4fARB)(GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_ProgramEnvParameter4fARB(disp, parameters) \ + (* GET_ProgramEnvParameter4fARB(disp)) parameters +static INLINE _glptr_ProgramEnvParameter4fARB GET_ProgramEnvParameter4fARB(struct _glapi_table *disp) { + return (_glptr_ProgramEnvParameter4fARB) (GET_by_offset(disp, _gloffset_ProgramEnvParameter4fARB)); +} + +static INLINE void SET_ProgramEnvParameter4fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_ProgramEnvParameter4fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramEnvParameter4fvARB)(GLenum, GLuint, const GLfloat *); +#define CALL_ProgramEnvParameter4fvARB(disp, parameters) \ + (* GET_ProgramEnvParameter4fvARB(disp)) parameters +static INLINE _glptr_ProgramEnvParameter4fvARB GET_ProgramEnvParameter4fvARB(struct _glapi_table *disp) { + return (_glptr_ProgramEnvParameter4fvARB) (GET_by_offset(disp, _gloffset_ProgramEnvParameter4fvARB)); +} + +static INLINE void SET_ProgramEnvParameter4fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_ProgramEnvParameter4fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramLocalParameter4dARB)(GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_ProgramLocalParameter4dARB(disp, parameters) \ + (* GET_ProgramLocalParameter4dARB(disp)) parameters +static INLINE _glptr_ProgramLocalParameter4dARB GET_ProgramLocalParameter4dARB(struct _glapi_table *disp) { + return (_glptr_ProgramLocalParameter4dARB) (GET_by_offset(disp, _gloffset_ProgramLocalParameter4dARB)); +} + +static INLINE void SET_ProgramLocalParameter4dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_ProgramLocalParameter4dARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramLocalParameter4dvARB)(GLenum, GLuint, const GLdouble *); +#define CALL_ProgramLocalParameter4dvARB(disp, parameters) \ + (* GET_ProgramLocalParameter4dvARB(disp)) parameters +static INLINE _glptr_ProgramLocalParameter4dvARB GET_ProgramLocalParameter4dvARB(struct _glapi_table *disp) { + return (_glptr_ProgramLocalParameter4dvARB) (GET_by_offset(disp, _gloffset_ProgramLocalParameter4dvARB)); +} + +static INLINE void SET_ProgramLocalParameter4dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, const GLdouble *)) { + SET_by_offset(disp, _gloffset_ProgramLocalParameter4dvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramLocalParameter4fARB)(GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_ProgramLocalParameter4fARB(disp, parameters) \ + (* GET_ProgramLocalParameter4fARB(disp)) parameters +static INLINE _glptr_ProgramLocalParameter4fARB GET_ProgramLocalParameter4fARB(struct _glapi_table *disp) { + return (_glptr_ProgramLocalParameter4fARB) (GET_by_offset(disp, _gloffset_ProgramLocalParameter4fARB)); +} + +static INLINE void SET_ProgramLocalParameter4fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_ProgramLocalParameter4fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramLocalParameter4fvARB)(GLenum, GLuint, const GLfloat *); +#define CALL_ProgramLocalParameter4fvARB(disp, parameters) \ + (* GET_ProgramLocalParameter4fvARB(disp)) parameters +static INLINE _glptr_ProgramLocalParameter4fvARB GET_ProgramLocalParameter4fvARB(struct _glapi_table *disp) { + return (_glptr_ProgramLocalParameter4fvARB) (GET_by_offset(disp, _gloffset_ProgramLocalParameter4fvARB)); +} + +static INLINE void SET_ProgramLocalParameter4fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_ProgramLocalParameter4fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramStringARB)(GLenum, GLenum, GLsizei, const GLvoid *); +#define CALL_ProgramStringARB(disp, parameters) \ + (* GET_ProgramStringARB(disp)) parameters +static INLINE _glptr_ProgramStringARB GET_ProgramStringARB(struct _glapi_table *disp) { + return (_glptr_ProgramStringARB) (GET_by_offset(disp, _gloffset_ProgramStringARB)); +} + +static INLINE void SET_ProgramStringARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_ProgramStringARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib1dARB)(GLuint, GLdouble); +#define CALL_VertexAttrib1dARB(disp, parameters) \ + (* GET_VertexAttrib1dARB(disp)) parameters +static INLINE _glptr_VertexAttrib1dARB GET_VertexAttrib1dARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib1dARB) (GET_by_offset(disp, _gloffset_VertexAttrib1dARB)); +} + +static INLINE void SET_VertexAttrib1dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble)) { + SET_by_offset(disp, _gloffset_VertexAttrib1dARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib1dvARB)(GLuint, const GLdouble *); +#define CALL_VertexAttrib1dvARB(disp, parameters) \ + (* GET_VertexAttrib1dvARB(disp)) parameters +static INLINE _glptr_VertexAttrib1dvARB GET_VertexAttrib1dvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib1dvARB) (GET_by_offset(disp, _gloffset_VertexAttrib1dvARB)); +} + +static INLINE void SET_VertexAttrib1dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { + SET_by_offset(disp, _gloffset_VertexAttrib1dvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib1fARB)(GLuint, GLfloat); +#define CALL_VertexAttrib1fARB(disp, parameters) \ + (* GET_VertexAttrib1fARB(disp)) parameters +static INLINE _glptr_VertexAttrib1fARB GET_VertexAttrib1fARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib1fARB) (GET_by_offset(disp, _gloffset_VertexAttrib1fARB)); +} + +static INLINE void SET_VertexAttrib1fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat)) { + SET_by_offset(disp, _gloffset_VertexAttrib1fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib1fvARB)(GLuint, const GLfloat *); +#define CALL_VertexAttrib1fvARB(disp, parameters) \ + (* GET_VertexAttrib1fvARB(disp)) parameters +static INLINE _glptr_VertexAttrib1fvARB GET_VertexAttrib1fvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib1fvARB) (GET_by_offset(disp, _gloffset_VertexAttrib1fvARB)); +} + +static INLINE void SET_VertexAttrib1fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_VertexAttrib1fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib1sARB)(GLuint, GLshort); +#define CALL_VertexAttrib1sARB(disp, parameters) \ + (* GET_VertexAttrib1sARB(disp)) parameters +static INLINE _glptr_VertexAttrib1sARB GET_VertexAttrib1sARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib1sARB) (GET_by_offset(disp, _gloffset_VertexAttrib1sARB)); +} + +static INLINE void SET_VertexAttrib1sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort)) { + SET_by_offset(disp, _gloffset_VertexAttrib1sARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib1svARB)(GLuint, const GLshort *); +#define CALL_VertexAttrib1svARB(disp, parameters) \ + (* GET_VertexAttrib1svARB(disp)) parameters +static INLINE _glptr_VertexAttrib1svARB GET_VertexAttrib1svARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib1svARB) (GET_by_offset(disp, _gloffset_VertexAttrib1svARB)); +} + +static INLINE void SET_VertexAttrib1svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttrib1svARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib2dARB)(GLuint, GLdouble, GLdouble); +#define CALL_VertexAttrib2dARB(disp, parameters) \ + (* GET_VertexAttrib2dARB(disp)) parameters +static INLINE _glptr_VertexAttrib2dARB GET_VertexAttrib2dARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib2dARB) (GET_by_offset(disp, _gloffset_VertexAttrib2dARB)); +} + +static INLINE void SET_VertexAttrib2dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_VertexAttrib2dARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib2dvARB)(GLuint, const GLdouble *); +#define CALL_VertexAttrib2dvARB(disp, parameters) \ + (* GET_VertexAttrib2dvARB(disp)) parameters +static INLINE _glptr_VertexAttrib2dvARB GET_VertexAttrib2dvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib2dvARB) (GET_by_offset(disp, _gloffset_VertexAttrib2dvARB)); +} + +static INLINE void SET_VertexAttrib2dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { + SET_by_offset(disp, _gloffset_VertexAttrib2dvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib2fARB)(GLuint, GLfloat, GLfloat); +#define CALL_VertexAttrib2fARB(disp, parameters) \ + (* GET_VertexAttrib2fARB(disp)) parameters +static INLINE _glptr_VertexAttrib2fARB GET_VertexAttrib2fARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib2fARB) (GET_by_offset(disp, _gloffset_VertexAttrib2fARB)); +} + +static INLINE void SET_VertexAttrib2fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_VertexAttrib2fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib2fvARB)(GLuint, const GLfloat *); +#define CALL_VertexAttrib2fvARB(disp, parameters) \ + (* GET_VertexAttrib2fvARB(disp)) parameters +static INLINE _glptr_VertexAttrib2fvARB GET_VertexAttrib2fvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib2fvARB) (GET_by_offset(disp, _gloffset_VertexAttrib2fvARB)); +} + +static INLINE void SET_VertexAttrib2fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_VertexAttrib2fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib2sARB)(GLuint, GLshort, GLshort); +#define CALL_VertexAttrib2sARB(disp, parameters) \ + (* GET_VertexAttrib2sARB(disp)) parameters +static INLINE _glptr_VertexAttrib2sARB GET_VertexAttrib2sARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib2sARB) (GET_by_offset(disp, _gloffset_VertexAttrib2sARB)); +} + +static INLINE void SET_VertexAttrib2sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_VertexAttrib2sARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib2svARB)(GLuint, const GLshort *); +#define CALL_VertexAttrib2svARB(disp, parameters) \ + (* GET_VertexAttrib2svARB(disp)) parameters +static INLINE _glptr_VertexAttrib2svARB GET_VertexAttrib2svARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib2svARB) (GET_by_offset(disp, _gloffset_VertexAttrib2svARB)); +} + +static INLINE void SET_VertexAttrib2svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttrib2svARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib3dARB)(GLuint, GLdouble, GLdouble, GLdouble); +#define CALL_VertexAttrib3dARB(disp, parameters) \ + (* GET_VertexAttrib3dARB(disp)) parameters +static INLINE _glptr_VertexAttrib3dARB GET_VertexAttrib3dARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib3dARB) (GET_by_offset(disp, _gloffset_VertexAttrib3dARB)); +} + +static INLINE void SET_VertexAttrib3dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_VertexAttrib3dARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib3dvARB)(GLuint, const GLdouble *); +#define CALL_VertexAttrib3dvARB(disp, parameters) \ + (* GET_VertexAttrib3dvARB(disp)) parameters +static INLINE _glptr_VertexAttrib3dvARB GET_VertexAttrib3dvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib3dvARB) (GET_by_offset(disp, _gloffset_VertexAttrib3dvARB)); +} + +static INLINE void SET_VertexAttrib3dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { + SET_by_offset(disp, _gloffset_VertexAttrib3dvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib3fARB)(GLuint, GLfloat, GLfloat, GLfloat); +#define CALL_VertexAttrib3fARB(disp, parameters) \ + (* GET_VertexAttrib3fARB(disp)) parameters +static INLINE _glptr_VertexAttrib3fARB GET_VertexAttrib3fARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib3fARB) (GET_by_offset(disp, _gloffset_VertexAttrib3fARB)); +} + +static INLINE void SET_VertexAttrib3fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_VertexAttrib3fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib3fvARB)(GLuint, const GLfloat *); +#define CALL_VertexAttrib3fvARB(disp, parameters) \ + (* GET_VertexAttrib3fvARB(disp)) parameters +static INLINE _glptr_VertexAttrib3fvARB GET_VertexAttrib3fvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib3fvARB) (GET_by_offset(disp, _gloffset_VertexAttrib3fvARB)); +} + +static INLINE void SET_VertexAttrib3fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_VertexAttrib3fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib3sARB)(GLuint, GLshort, GLshort, GLshort); +#define CALL_VertexAttrib3sARB(disp, parameters) \ + (* GET_VertexAttrib3sARB(disp)) parameters +static INLINE _glptr_VertexAttrib3sARB GET_VertexAttrib3sARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib3sARB) (GET_by_offset(disp, _gloffset_VertexAttrib3sARB)); +} + +static INLINE void SET_VertexAttrib3sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_VertexAttrib3sARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib3svARB)(GLuint, const GLshort *); +#define CALL_VertexAttrib3svARB(disp, parameters) \ + (* GET_VertexAttrib3svARB(disp)) parameters +static INLINE _glptr_VertexAttrib3svARB GET_VertexAttrib3svARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib3svARB) (GET_by_offset(disp, _gloffset_VertexAttrib3svARB)); +} + +static INLINE void SET_VertexAttrib3svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttrib3svARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4NbvARB)(GLuint, const GLbyte *); +#define CALL_VertexAttrib4NbvARB(disp, parameters) \ + (* GET_VertexAttrib4NbvARB(disp)) parameters +static INLINE _glptr_VertexAttrib4NbvARB GET_VertexAttrib4NbvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4NbvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NbvARB)); +} + +static INLINE void SET_VertexAttrib4NbvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLbyte *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4NbvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4NivARB)(GLuint, const GLint *); +#define CALL_VertexAttrib4NivARB(disp, parameters) \ + (* GET_VertexAttrib4NivARB(disp)) parameters +static INLINE _glptr_VertexAttrib4NivARB GET_VertexAttrib4NivARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4NivARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NivARB)); +} + +static INLINE void SET_VertexAttrib4NivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLint *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4NivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4NsvARB)(GLuint, const GLshort *); +#define CALL_VertexAttrib4NsvARB(disp, parameters) \ + (* GET_VertexAttrib4NsvARB(disp)) parameters +static INLINE _glptr_VertexAttrib4NsvARB GET_VertexAttrib4NsvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4NsvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NsvARB)); +} + +static INLINE void SET_VertexAttrib4NsvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4NsvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4NubARB)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte); +#define CALL_VertexAttrib4NubARB(disp, parameters) \ + (* GET_VertexAttrib4NubARB(disp)) parameters +static INLINE _glptr_VertexAttrib4NubARB GET_VertexAttrib4NubARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4NubARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NubARB)); +} + +static INLINE void SET_VertexAttrib4NubARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte)) { + SET_by_offset(disp, _gloffset_VertexAttrib4NubARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4NubvARB)(GLuint, const GLubyte *); +#define CALL_VertexAttrib4NubvARB(disp, parameters) \ + (* GET_VertexAttrib4NubvARB(disp)) parameters +static INLINE _glptr_VertexAttrib4NubvARB GET_VertexAttrib4NubvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4NubvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NubvARB)); +} + +static INLINE void SET_VertexAttrib4NubvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLubyte *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4NubvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4NuivARB)(GLuint, const GLuint *); +#define CALL_VertexAttrib4NuivARB(disp, parameters) \ + (* GET_VertexAttrib4NuivARB(disp)) parameters +static INLINE _glptr_VertexAttrib4NuivARB GET_VertexAttrib4NuivARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4NuivARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NuivARB)); +} + +static INLINE void SET_VertexAttrib4NuivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLuint *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4NuivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4NusvARB)(GLuint, const GLushort *); +#define CALL_VertexAttrib4NusvARB(disp, parameters) \ + (* GET_VertexAttrib4NusvARB(disp)) parameters +static INLINE _glptr_VertexAttrib4NusvARB GET_VertexAttrib4NusvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4NusvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NusvARB)); +} + +static INLINE void SET_VertexAttrib4NusvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLushort *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4NusvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4bvARB)(GLuint, const GLbyte *); +#define CALL_VertexAttrib4bvARB(disp, parameters) \ + (* GET_VertexAttrib4bvARB(disp)) parameters +static INLINE _glptr_VertexAttrib4bvARB GET_VertexAttrib4bvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4bvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4bvARB)); +} + +static INLINE void SET_VertexAttrib4bvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLbyte *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4bvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4dARB)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_VertexAttrib4dARB(disp, parameters) \ + (* GET_VertexAttrib4dARB(disp)) parameters +static INLINE _glptr_VertexAttrib4dARB GET_VertexAttrib4dARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4dARB) (GET_by_offset(disp, _gloffset_VertexAttrib4dARB)); +} + +static INLINE void SET_VertexAttrib4dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_VertexAttrib4dARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4dvARB)(GLuint, const GLdouble *); +#define CALL_VertexAttrib4dvARB(disp, parameters) \ + (* GET_VertexAttrib4dvARB(disp)) parameters +static INLINE _glptr_VertexAttrib4dvARB GET_VertexAttrib4dvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4dvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4dvARB)); +} + +static INLINE void SET_VertexAttrib4dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4dvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4fARB)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_VertexAttrib4fARB(disp, parameters) \ + (* GET_VertexAttrib4fARB(disp)) parameters +static INLINE _glptr_VertexAttrib4fARB GET_VertexAttrib4fARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4fARB) (GET_by_offset(disp, _gloffset_VertexAttrib4fARB)); +} + +static INLINE void SET_VertexAttrib4fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_VertexAttrib4fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4fvARB)(GLuint, const GLfloat *); +#define CALL_VertexAttrib4fvARB(disp, parameters) \ + (* GET_VertexAttrib4fvARB(disp)) parameters +static INLINE _glptr_VertexAttrib4fvARB GET_VertexAttrib4fvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4fvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4fvARB)); +} + +static INLINE void SET_VertexAttrib4fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4ivARB)(GLuint, const GLint *); +#define CALL_VertexAttrib4ivARB(disp, parameters) \ + (* GET_VertexAttrib4ivARB(disp)) parameters +static INLINE _glptr_VertexAttrib4ivARB GET_VertexAttrib4ivARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4ivARB) (GET_by_offset(disp, _gloffset_VertexAttrib4ivARB)); +} + +static INLINE void SET_VertexAttrib4ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLint *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4ivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4sARB)(GLuint, GLshort, GLshort, GLshort, GLshort); +#define CALL_VertexAttrib4sARB(disp, parameters) \ + (* GET_VertexAttrib4sARB(disp)) parameters +static INLINE _glptr_VertexAttrib4sARB GET_VertexAttrib4sARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4sARB) (GET_by_offset(disp, _gloffset_VertexAttrib4sARB)); +} + +static INLINE void SET_VertexAttrib4sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort, GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_VertexAttrib4sARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4svARB)(GLuint, const GLshort *); +#define CALL_VertexAttrib4svARB(disp, parameters) \ + (* GET_VertexAttrib4svARB(disp)) parameters +static INLINE _glptr_VertexAttrib4svARB GET_VertexAttrib4svARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4svARB) (GET_by_offset(disp, _gloffset_VertexAttrib4svARB)); +} + +static INLINE void SET_VertexAttrib4svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4svARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4ubvARB)(GLuint, const GLubyte *); +#define CALL_VertexAttrib4ubvARB(disp, parameters) \ + (* GET_VertexAttrib4ubvARB(disp)) parameters +static INLINE _glptr_VertexAttrib4ubvARB GET_VertexAttrib4ubvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4ubvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4ubvARB)); +} + +static INLINE void SET_VertexAttrib4ubvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLubyte *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4ubvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4uivARB)(GLuint, const GLuint *); +#define CALL_VertexAttrib4uivARB(disp, parameters) \ + (* GET_VertexAttrib4uivARB(disp)) parameters +static INLINE _glptr_VertexAttrib4uivARB GET_VertexAttrib4uivARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4uivARB) (GET_by_offset(disp, _gloffset_VertexAttrib4uivARB)); +} + +static INLINE void SET_VertexAttrib4uivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLuint *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4uivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4usvARB)(GLuint, const GLushort *); +#define CALL_VertexAttrib4usvARB(disp, parameters) \ + (* GET_VertexAttrib4usvARB(disp)) parameters +static INLINE _glptr_VertexAttrib4usvARB GET_VertexAttrib4usvARB(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4usvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4usvARB)); +} + +static INLINE void SET_VertexAttrib4usvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLushort *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4usvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribPointerARB)(GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *); +#define CALL_VertexAttribPointerARB(disp, parameters) \ + (* GET_VertexAttribPointerARB(disp)) parameters +static INLINE _glptr_VertexAttribPointerARB GET_VertexAttribPointerARB(struct _glapi_table *disp) { + return (_glptr_VertexAttribPointerARB) (GET_by_offset(disp, _gloffset_VertexAttribPointerARB)); +} + +static INLINE void SET_VertexAttribPointerARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_VertexAttribPointerARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindBufferARB)(GLenum, GLuint); +#define CALL_BindBufferARB(disp, parameters) \ + (* GET_BindBufferARB(disp)) parameters +static INLINE _glptr_BindBufferARB GET_BindBufferARB(struct _glapi_table *disp) { + return (_glptr_BindBufferARB) (GET_by_offset(disp, _gloffset_BindBufferARB)); +} + +static INLINE void SET_BindBufferARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_BindBufferARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_BufferDataARB)(GLenum, GLsizeiptrARB, const GLvoid *, GLenum); +#define CALL_BufferDataARB(disp, parameters) \ + (* GET_BufferDataARB(disp)) parameters +static INLINE _glptr_BufferDataARB GET_BufferDataARB(struct _glapi_table *disp) { + return (_glptr_BufferDataARB) (GET_by_offset(disp, _gloffset_BufferDataARB)); +} + +static INLINE void SET_BufferDataARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizeiptrARB, const GLvoid *, GLenum)) { + SET_by_offset(disp, _gloffset_BufferDataARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_BufferSubDataARB)(GLenum, GLintptrARB, GLsizeiptrARB, const GLvoid *); +#define CALL_BufferSubDataARB(disp, parameters) \ + (* GET_BufferSubDataARB(disp)) parameters +static INLINE _glptr_BufferSubDataARB GET_BufferSubDataARB(struct _glapi_table *disp) { + return (_glptr_BufferSubDataARB) (GET_by_offset(disp, _gloffset_BufferSubDataARB)); +} + +static INLINE void SET_BufferSubDataARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLintptrARB, GLsizeiptrARB, const GLvoid *)) { + SET_by_offset(disp, _gloffset_BufferSubDataARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteBuffersARB)(GLsizei, const GLuint *); +#define CALL_DeleteBuffersARB(disp, parameters) \ + (* GET_DeleteBuffersARB(disp)) parameters +static INLINE _glptr_DeleteBuffersARB GET_DeleteBuffersARB(struct _glapi_table *disp) { + return (_glptr_DeleteBuffersARB) (GET_by_offset(disp, _gloffset_DeleteBuffersARB)); +} + +static INLINE void SET_DeleteBuffersARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_DeleteBuffersARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GenBuffersARB)(GLsizei, GLuint *); +#define CALL_GenBuffersARB(disp, parameters) \ + (* GET_GenBuffersARB(disp)) parameters +static INLINE _glptr_GenBuffersARB GET_GenBuffersARB(struct _glapi_table *disp) { + return (_glptr_GenBuffersARB) (GET_by_offset(disp, _gloffset_GenBuffersARB)); +} + +static INLINE void SET_GenBuffersARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_GenBuffersARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetBufferParameterivARB)(GLenum, GLenum, GLint *); +#define CALL_GetBufferParameterivARB(disp, parameters) \ + (* GET_GetBufferParameterivARB(disp)) parameters +static INLINE _glptr_GetBufferParameterivARB GET_GetBufferParameterivARB(struct _glapi_table *disp) { + return (_glptr_GetBufferParameterivARB) (GET_by_offset(disp, _gloffset_GetBufferParameterivARB)); +} + +static INLINE void SET_GetBufferParameterivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetBufferParameterivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetBufferPointervARB)(GLenum, GLenum, GLvoid **); +#define CALL_GetBufferPointervARB(disp, parameters) \ + (* GET_GetBufferPointervARB(disp)) parameters +static INLINE _glptr_GetBufferPointervARB GET_GetBufferPointervARB(struct _glapi_table *disp) { + return (_glptr_GetBufferPointervARB) (GET_by_offset(disp, _gloffset_GetBufferPointervARB)); +} + +static INLINE void SET_GetBufferPointervARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLvoid **)) { + SET_by_offset(disp, _gloffset_GetBufferPointervARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetBufferSubDataARB)(GLenum, GLintptrARB, GLsizeiptrARB, GLvoid *); +#define CALL_GetBufferSubDataARB(disp, parameters) \ + (* GET_GetBufferSubDataARB(disp)) parameters +static INLINE _glptr_GetBufferSubDataARB GET_GetBufferSubDataARB(struct _glapi_table *disp) { + return (_glptr_GetBufferSubDataARB) (GET_by_offset(disp, _gloffset_GetBufferSubDataARB)); +} + +static INLINE void SET_GetBufferSubDataARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLintptrARB, GLsizeiptrARB, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetBufferSubDataARB, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsBufferARB)(GLuint); +#define CALL_IsBufferARB(disp, parameters) \ + (* GET_IsBufferARB(disp)) parameters +static INLINE _glptr_IsBufferARB GET_IsBufferARB(struct _glapi_table *disp) { + return (_glptr_IsBufferARB) (GET_by_offset(disp, _gloffset_IsBufferARB)); +} + +static INLINE void SET_IsBufferARB(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IsBufferARB, fn); +} + +typedef GLvoid * (GLAPIENTRYP _glptr_MapBufferARB)(GLenum, GLenum); +#define CALL_MapBufferARB(disp, parameters) \ + (* GET_MapBufferARB(disp)) parameters +static INLINE _glptr_MapBufferARB GET_MapBufferARB(struct _glapi_table *disp) { + return (_glptr_MapBufferARB) (GET_by_offset(disp, _gloffset_MapBufferARB)); +} + +static INLINE void SET_MapBufferARB(struct _glapi_table *disp, GLvoid * (GLAPIENTRYP fn)(GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_MapBufferARB, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_UnmapBufferARB)(GLenum); +#define CALL_UnmapBufferARB(disp, parameters) \ + (* GET_UnmapBufferARB(disp)) parameters +static INLINE _glptr_UnmapBufferARB GET_UnmapBufferARB(struct _glapi_table *disp) { + return (_glptr_UnmapBufferARB) (GET_by_offset(disp, _gloffset_UnmapBufferARB)); +} + +static INLINE void SET_UnmapBufferARB(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_UnmapBufferARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_BeginQueryARB)(GLenum, GLuint); +#define CALL_BeginQueryARB(disp, parameters) \ + (* GET_BeginQueryARB(disp)) parameters +static INLINE _glptr_BeginQueryARB GET_BeginQueryARB(struct _glapi_table *disp) { + return (_glptr_BeginQueryARB) (GET_by_offset(disp, _gloffset_BeginQueryARB)); +} + +static INLINE void SET_BeginQueryARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_BeginQueryARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteQueriesARB)(GLsizei, const GLuint *); +#define CALL_DeleteQueriesARB(disp, parameters) \ + (* GET_DeleteQueriesARB(disp)) parameters +static INLINE _glptr_DeleteQueriesARB GET_DeleteQueriesARB(struct _glapi_table *disp) { + return (_glptr_DeleteQueriesARB) (GET_by_offset(disp, _gloffset_DeleteQueriesARB)); +} + +static INLINE void SET_DeleteQueriesARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_DeleteQueriesARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_EndQueryARB)(GLenum); +#define CALL_EndQueryARB(disp, parameters) \ + (* GET_EndQueryARB(disp)) parameters +static INLINE _glptr_EndQueryARB GET_EndQueryARB(struct _glapi_table *disp) { + return (_glptr_EndQueryARB) (GET_by_offset(disp, _gloffset_EndQueryARB)); +} + +static INLINE void SET_EndQueryARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_EndQueryARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GenQueriesARB)(GLsizei, GLuint *); +#define CALL_GenQueriesARB(disp, parameters) \ + (* GET_GenQueriesARB(disp)) parameters +static INLINE _glptr_GenQueriesARB GET_GenQueriesARB(struct _glapi_table *disp) { + return (_glptr_GenQueriesARB) (GET_by_offset(disp, _gloffset_GenQueriesARB)); +} + +static INLINE void SET_GenQueriesARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_GenQueriesARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetQueryObjectivARB)(GLuint, GLenum, GLint *); +#define CALL_GetQueryObjectivARB(disp, parameters) \ + (* GET_GetQueryObjectivARB(disp)) parameters +static INLINE _glptr_GetQueryObjectivARB GET_GetQueryObjectivARB(struct _glapi_table *disp) { + return (_glptr_GetQueryObjectivARB) (GET_by_offset(disp, _gloffset_GetQueryObjectivARB)); +} + +static INLINE void SET_GetQueryObjectivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetQueryObjectivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetQueryObjectuivARB)(GLuint, GLenum, GLuint *); +#define CALL_GetQueryObjectuivARB(disp, parameters) \ + (* GET_GetQueryObjectuivARB(disp)) parameters +static INLINE _glptr_GetQueryObjectuivARB GET_GetQueryObjectuivARB(struct _glapi_table *disp) { + return (_glptr_GetQueryObjectuivARB) (GET_by_offset(disp, _gloffset_GetQueryObjectuivARB)); +} + +static INLINE void SET_GetQueryObjectuivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLuint *)) { + SET_by_offset(disp, _gloffset_GetQueryObjectuivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetQueryivARB)(GLenum, GLenum, GLint *); +#define CALL_GetQueryivARB(disp, parameters) \ + (* GET_GetQueryivARB(disp)) parameters +static INLINE _glptr_GetQueryivARB GET_GetQueryivARB(struct _glapi_table *disp) { + return (_glptr_GetQueryivARB) (GET_by_offset(disp, _gloffset_GetQueryivARB)); +} + +static INLINE void SET_GetQueryivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetQueryivARB, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsQueryARB)(GLuint); +#define CALL_IsQueryARB(disp, parameters) \ + (* GET_IsQueryARB(disp)) parameters +static INLINE _glptr_IsQueryARB GET_IsQueryARB(struct _glapi_table *disp) { + return (_glptr_IsQueryARB) (GET_by_offset(disp, _gloffset_IsQueryARB)); +} + +static INLINE void SET_IsQueryARB(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IsQueryARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_AttachObjectARB)(GLhandleARB, GLhandleARB); +#define CALL_AttachObjectARB(disp, parameters) \ + (* GET_AttachObjectARB(disp)) parameters +static INLINE _glptr_AttachObjectARB GET_AttachObjectARB(struct _glapi_table *disp) { + return (_glptr_AttachObjectARB) (GET_by_offset(disp, _gloffset_AttachObjectARB)); +} + +static INLINE void SET_AttachObjectARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLhandleARB)) { + SET_by_offset(disp, _gloffset_AttachObjectARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_CompileShaderARB)(GLhandleARB); +#define CALL_CompileShaderARB(disp, parameters) \ + (* GET_CompileShaderARB(disp)) parameters +static INLINE _glptr_CompileShaderARB GET_CompileShaderARB(struct _glapi_table *disp) { + return (_glptr_CompileShaderARB) (GET_by_offset(disp, _gloffset_CompileShaderARB)); +} + +static INLINE void SET_CompileShaderARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB)) { + SET_by_offset(disp, _gloffset_CompileShaderARB, fn); +} + +typedef GLhandleARB (GLAPIENTRYP _glptr_CreateProgramObjectARB)(void); +#define CALL_CreateProgramObjectARB(disp, parameters) \ + (* GET_CreateProgramObjectARB(disp)) parameters +static INLINE _glptr_CreateProgramObjectARB GET_CreateProgramObjectARB(struct _glapi_table *disp) { + return (_glptr_CreateProgramObjectARB) (GET_by_offset(disp, _gloffset_CreateProgramObjectARB)); +} + +static INLINE void SET_CreateProgramObjectARB(struct _glapi_table *disp, GLhandleARB (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_CreateProgramObjectARB, fn); +} + +typedef GLhandleARB (GLAPIENTRYP _glptr_CreateShaderObjectARB)(GLenum); +#define CALL_CreateShaderObjectARB(disp, parameters) \ + (* GET_CreateShaderObjectARB(disp)) parameters +static INLINE _glptr_CreateShaderObjectARB GET_CreateShaderObjectARB(struct _glapi_table *disp) { + return (_glptr_CreateShaderObjectARB) (GET_by_offset(disp, _gloffset_CreateShaderObjectARB)); +} + +static INLINE void SET_CreateShaderObjectARB(struct _glapi_table *disp, GLhandleARB (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_CreateShaderObjectARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteObjectARB)(GLhandleARB); +#define CALL_DeleteObjectARB(disp, parameters) \ + (* GET_DeleteObjectARB(disp)) parameters +static INLINE _glptr_DeleteObjectARB GET_DeleteObjectARB(struct _glapi_table *disp) { + return (_glptr_DeleteObjectARB) (GET_by_offset(disp, _gloffset_DeleteObjectARB)); +} + +static INLINE void SET_DeleteObjectARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB)) { + SET_by_offset(disp, _gloffset_DeleteObjectARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_DetachObjectARB)(GLhandleARB, GLhandleARB); +#define CALL_DetachObjectARB(disp, parameters) \ + (* GET_DetachObjectARB(disp)) parameters +static INLINE _glptr_DetachObjectARB GET_DetachObjectARB(struct _glapi_table *disp) { + return (_glptr_DetachObjectARB) (GET_by_offset(disp, _gloffset_DetachObjectARB)); +} + +static INLINE void SET_DetachObjectARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLhandleARB)) { + SET_by_offset(disp, _gloffset_DetachObjectARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetActiveUniformARB)(GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *); +#define CALL_GetActiveUniformARB(disp, parameters) \ + (* GET_GetActiveUniformARB(disp)) parameters +static INLINE _glptr_GetActiveUniformARB GET_GetActiveUniformARB(struct _glapi_table *disp) { + return (_glptr_GetActiveUniformARB) (GET_by_offset(disp, _gloffset_GetActiveUniformARB)); +} + +static INLINE void SET_GetActiveUniformARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *)) { + SET_by_offset(disp, _gloffset_GetActiveUniformARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetAttachedObjectsARB)(GLhandleARB, GLsizei, GLsizei *, GLhandleARB *); +#define CALL_GetAttachedObjectsARB(disp, parameters) \ + (* GET_GetAttachedObjectsARB(disp)) parameters +static INLINE _glptr_GetAttachedObjectsARB GET_GetAttachedObjectsARB(struct _glapi_table *disp) { + return (_glptr_GetAttachedObjectsARB) (GET_by_offset(disp, _gloffset_GetAttachedObjectsARB)); +} + +static INLINE void SET_GetAttachedObjectsARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLsizei, GLsizei *, GLhandleARB *)) { + SET_by_offset(disp, _gloffset_GetAttachedObjectsARB, fn); +} + +typedef GLhandleARB (GLAPIENTRYP _glptr_GetHandleARB)(GLenum); +#define CALL_GetHandleARB(disp, parameters) \ + (* GET_GetHandleARB(disp)) parameters +static INLINE _glptr_GetHandleARB GET_GetHandleARB(struct _glapi_table *disp) { + return (_glptr_GetHandleARB) (GET_by_offset(disp, _gloffset_GetHandleARB)); +} + +static INLINE void SET_GetHandleARB(struct _glapi_table *disp, GLhandleARB (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_GetHandleARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetInfoLogARB)(GLhandleARB, GLsizei, GLsizei *, GLcharARB *); +#define CALL_GetInfoLogARB(disp, parameters) \ + (* GET_GetInfoLogARB(disp)) parameters +static INLINE _glptr_GetInfoLogARB GET_GetInfoLogARB(struct _glapi_table *disp) { + return (_glptr_GetInfoLogARB) (GET_by_offset(disp, _gloffset_GetInfoLogARB)); +} + +static INLINE void SET_GetInfoLogARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLsizei, GLsizei *, GLcharARB *)) { + SET_by_offset(disp, _gloffset_GetInfoLogARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetObjectParameterfvARB)(GLhandleARB, GLenum, GLfloat *); +#define CALL_GetObjectParameterfvARB(disp, parameters) \ + (* GET_GetObjectParameterfvARB(disp)) parameters +static INLINE _glptr_GetObjectParameterfvARB GET_GetObjectParameterfvARB(struct _glapi_table *disp) { + return (_glptr_GetObjectParameterfvARB) (GET_by_offset(disp, _gloffset_GetObjectParameterfvARB)); +} + +static INLINE void SET_GetObjectParameterfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetObjectParameterfvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetObjectParameterivARB)(GLhandleARB, GLenum, GLint *); +#define CALL_GetObjectParameterivARB(disp, parameters) \ + (* GET_GetObjectParameterivARB(disp)) parameters +static INLINE _glptr_GetObjectParameterivARB GET_GetObjectParameterivARB(struct _glapi_table *disp) { + return (_glptr_GetObjectParameterivARB) (GET_by_offset(disp, _gloffset_GetObjectParameterivARB)); +} + +static INLINE void SET_GetObjectParameterivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetObjectParameterivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetShaderSourceARB)(GLhandleARB, GLsizei, GLsizei *, GLcharARB *); +#define CALL_GetShaderSourceARB(disp, parameters) \ + (* GET_GetShaderSourceARB(disp)) parameters +static INLINE _glptr_GetShaderSourceARB GET_GetShaderSourceARB(struct _glapi_table *disp) { + return (_glptr_GetShaderSourceARB) (GET_by_offset(disp, _gloffset_GetShaderSourceARB)); +} + +static INLINE void SET_GetShaderSourceARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLsizei, GLsizei *, GLcharARB *)) { + SET_by_offset(disp, _gloffset_GetShaderSourceARB, fn); +} + +typedef GLint (GLAPIENTRYP _glptr_GetUniformLocationARB)(GLhandleARB, const GLcharARB *); +#define CALL_GetUniformLocationARB(disp, parameters) \ + (* GET_GetUniformLocationARB(disp)) parameters +static INLINE _glptr_GetUniformLocationARB GET_GetUniformLocationARB(struct _glapi_table *disp) { + return (_glptr_GetUniformLocationARB) (GET_by_offset(disp, _gloffset_GetUniformLocationARB)); +} + +static INLINE void SET_GetUniformLocationARB(struct _glapi_table *disp, GLint (GLAPIENTRYP fn)(GLhandleARB, const GLcharARB *)) { + SET_by_offset(disp, _gloffset_GetUniformLocationARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetUniformfvARB)(GLhandleARB, GLint, GLfloat *); +#define CALL_GetUniformfvARB(disp, parameters) \ + (* GET_GetUniformfvARB(disp)) parameters +static INLINE _glptr_GetUniformfvARB GET_GetUniformfvARB(struct _glapi_table *disp) { + return (_glptr_GetUniformfvARB) (GET_by_offset(disp, _gloffset_GetUniformfvARB)); +} + +static INLINE void SET_GetUniformfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLint, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetUniformfvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetUniformivARB)(GLhandleARB, GLint, GLint *); +#define CALL_GetUniformivARB(disp, parameters) \ + (* GET_GetUniformivARB(disp)) parameters +static INLINE _glptr_GetUniformivARB GET_GetUniformivARB(struct _glapi_table *disp) { + return (_glptr_GetUniformivARB) (GET_by_offset(disp, _gloffset_GetUniformivARB)); +} + +static INLINE void SET_GetUniformivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLint, GLint *)) { + SET_by_offset(disp, _gloffset_GetUniformivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_LinkProgramARB)(GLhandleARB); +#define CALL_LinkProgramARB(disp, parameters) \ + (* GET_LinkProgramARB(disp)) parameters +static INLINE _glptr_LinkProgramARB GET_LinkProgramARB(struct _glapi_table *disp) { + return (_glptr_LinkProgramARB) (GET_by_offset(disp, _gloffset_LinkProgramARB)); +} + +static INLINE void SET_LinkProgramARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB)) { + SET_by_offset(disp, _gloffset_LinkProgramARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ShaderSourceARB)(GLhandleARB, GLsizei, const GLcharARB **, const GLint *); +#define CALL_ShaderSourceARB(disp, parameters) \ + (* GET_ShaderSourceARB(disp)) parameters +static INLINE _glptr_ShaderSourceARB GET_ShaderSourceARB(struct _glapi_table *disp) { + return (_glptr_ShaderSourceARB) (GET_by_offset(disp, _gloffset_ShaderSourceARB)); +} + +static INLINE void SET_ShaderSourceARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLsizei, const GLcharARB **, const GLint *)) { + SET_by_offset(disp, _gloffset_ShaderSourceARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform1fARB)(GLint, GLfloat); +#define CALL_Uniform1fARB(disp, parameters) \ + (* GET_Uniform1fARB(disp)) parameters +static INLINE _glptr_Uniform1fARB GET_Uniform1fARB(struct _glapi_table *disp) { + return (_glptr_Uniform1fARB) (GET_by_offset(disp, _gloffset_Uniform1fARB)); +} + +static INLINE void SET_Uniform1fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLfloat)) { + SET_by_offset(disp, _gloffset_Uniform1fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform1fvARB)(GLint, GLsizei, const GLfloat *); +#define CALL_Uniform1fvARB(disp, parameters) \ + (* GET_Uniform1fvARB(disp)) parameters +static INLINE _glptr_Uniform1fvARB GET_Uniform1fvARB(struct _glapi_table *disp) { + return (_glptr_Uniform1fvARB) (GET_by_offset(disp, _gloffset_Uniform1fvARB)); +} + +static INLINE void SET_Uniform1fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLfloat *)) { + SET_by_offset(disp, _gloffset_Uniform1fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform1iARB)(GLint, GLint); +#define CALL_Uniform1iARB(disp, parameters) \ + (* GET_Uniform1iARB(disp)) parameters +static INLINE _glptr_Uniform1iARB GET_Uniform1iARB(struct _glapi_table *disp) { + return (_glptr_Uniform1iARB) (GET_by_offset(disp, _gloffset_Uniform1iARB)); +} + +static INLINE void SET_Uniform1iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint)) { + SET_by_offset(disp, _gloffset_Uniform1iARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform1ivARB)(GLint, GLsizei, const GLint *); +#define CALL_Uniform1ivARB(disp, parameters) \ + (* GET_Uniform1ivARB(disp)) parameters +static INLINE _glptr_Uniform1ivARB GET_Uniform1ivARB(struct _glapi_table *disp) { + return (_glptr_Uniform1ivARB) (GET_by_offset(disp, _gloffset_Uniform1ivARB)); +} + +static INLINE void SET_Uniform1ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLint *)) { + SET_by_offset(disp, _gloffset_Uniform1ivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform2fARB)(GLint, GLfloat, GLfloat); +#define CALL_Uniform2fARB(disp, parameters) \ + (* GET_Uniform2fARB(disp)) parameters +static INLINE _glptr_Uniform2fARB GET_Uniform2fARB(struct _glapi_table *disp) { + return (_glptr_Uniform2fARB) (GET_by_offset(disp, _gloffset_Uniform2fARB)); +} + +static INLINE void SET_Uniform2fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_Uniform2fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform2fvARB)(GLint, GLsizei, const GLfloat *); +#define CALL_Uniform2fvARB(disp, parameters) \ + (* GET_Uniform2fvARB(disp)) parameters +static INLINE _glptr_Uniform2fvARB GET_Uniform2fvARB(struct _glapi_table *disp) { + return (_glptr_Uniform2fvARB) (GET_by_offset(disp, _gloffset_Uniform2fvARB)); +} + +static INLINE void SET_Uniform2fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLfloat *)) { + SET_by_offset(disp, _gloffset_Uniform2fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform2iARB)(GLint, GLint, GLint); +#define CALL_Uniform2iARB(disp, parameters) \ + (* GET_Uniform2iARB(disp)) parameters +static INLINE _glptr_Uniform2iARB GET_Uniform2iARB(struct _glapi_table *disp) { + return (_glptr_Uniform2iARB) (GET_by_offset(disp, _gloffset_Uniform2iARB)); +} + +static INLINE void SET_Uniform2iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_Uniform2iARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform2ivARB)(GLint, GLsizei, const GLint *); +#define CALL_Uniform2ivARB(disp, parameters) \ + (* GET_Uniform2ivARB(disp)) parameters +static INLINE _glptr_Uniform2ivARB GET_Uniform2ivARB(struct _glapi_table *disp) { + return (_glptr_Uniform2ivARB) (GET_by_offset(disp, _gloffset_Uniform2ivARB)); +} + +static INLINE void SET_Uniform2ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLint *)) { + SET_by_offset(disp, _gloffset_Uniform2ivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform3fARB)(GLint, GLfloat, GLfloat, GLfloat); +#define CALL_Uniform3fARB(disp, parameters) \ + (* GET_Uniform3fARB(disp)) parameters +static INLINE _glptr_Uniform3fARB GET_Uniform3fARB(struct _glapi_table *disp) { + return (_glptr_Uniform3fARB) (GET_by_offset(disp, _gloffset_Uniform3fARB)); +} + +static INLINE void SET_Uniform3fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_Uniform3fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform3fvARB)(GLint, GLsizei, const GLfloat *); +#define CALL_Uniform3fvARB(disp, parameters) \ + (* GET_Uniform3fvARB(disp)) parameters +static INLINE _glptr_Uniform3fvARB GET_Uniform3fvARB(struct _glapi_table *disp) { + return (_glptr_Uniform3fvARB) (GET_by_offset(disp, _gloffset_Uniform3fvARB)); +} + +static INLINE void SET_Uniform3fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLfloat *)) { + SET_by_offset(disp, _gloffset_Uniform3fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform3iARB)(GLint, GLint, GLint, GLint); +#define CALL_Uniform3iARB(disp, parameters) \ + (* GET_Uniform3iARB(disp)) parameters +static INLINE _glptr_Uniform3iARB GET_Uniform3iARB(struct _glapi_table *disp) { + return (_glptr_Uniform3iARB) (GET_by_offset(disp, _gloffset_Uniform3iARB)); +} + +static INLINE void SET_Uniform3iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_Uniform3iARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform3ivARB)(GLint, GLsizei, const GLint *); +#define CALL_Uniform3ivARB(disp, parameters) \ + (* GET_Uniform3ivARB(disp)) parameters +static INLINE _glptr_Uniform3ivARB GET_Uniform3ivARB(struct _glapi_table *disp) { + return (_glptr_Uniform3ivARB) (GET_by_offset(disp, _gloffset_Uniform3ivARB)); +} + +static INLINE void SET_Uniform3ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLint *)) { + SET_by_offset(disp, _gloffset_Uniform3ivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform4fARB)(GLint, GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_Uniform4fARB(disp, parameters) \ + (* GET_Uniform4fARB(disp)) parameters +static INLINE _glptr_Uniform4fARB GET_Uniform4fARB(struct _glapi_table *disp) { + return (_glptr_Uniform4fARB) (GET_by_offset(disp, _gloffset_Uniform4fARB)); +} + +static INLINE void SET_Uniform4fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_Uniform4fARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform4fvARB)(GLint, GLsizei, const GLfloat *); +#define CALL_Uniform4fvARB(disp, parameters) \ + (* GET_Uniform4fvARB(disp)) parameters +static INLINE _glptr_Uniform4fvARB GET_Uniform4fvARB(struct _glapi_table *disp) { + return (_glptr_Uniform4fvARB) (GET_by_offset(disp, _gloffset_Uniform4fvARB)); +} + +static INLINE void SET_Uniform4fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLfloat *)) { + SET_by_offset(disp, _gloffset_Uniform4fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform4iARB)(GLint, GLint, GLint, GLint, GLint); +#define CALL_Uniform4iARB(disp, parameters) \ + (* GET_Uniform4iARB(disp)) parameters +static INLINE _glptr_Uniform4iARB GET_Uniform4iARB(struct _glapi_table *disp) { + return (_glptr_Uniform4iARB) (GET_by_offset(disp, _gloffset_Uniform4iARB)); +} + +static INLINE void SET_Uniform4iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_Uniform4iARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform4ivARB)(GLint, GLsizei, const GLint *); +#define CALL_Uniform4ivARB(disp, parameters) \ + (* GET_Uniform4ivARB(disp)) parameters +static INLINE _glptr_Uniform4ivARB GET_Uniform4ivARB(struct _glapi_table *disp) { + return (_glptr_Uniform4ivARB) (GET_by_offset(disp, _gloffset_Uniform4ivARB)); +} + +static INLINE void SET_Uniform4ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLint *)) { + SET_by_offset(disp, _gloffset_Uniform4ivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_UniformMatrix2fvARB)(GLint, GLsizei, GLboolean, const GLfloat *); +#define CALL_UniformMatrix2fvARB(disp, parameters) \ + (* GET_UniformMatrix2fvARB(disp)) parameters +static INLINE _glptr_UniformMatrix2fvARB GET_UniformMatrix2fvARB(struct _glapi_table *disp) { + return (_glptr_UniformMatrix2fvARB) (GET_by_offset(disp, _gloffset_UniformMatrix2fvARB)); +} + +static INLINE void SET_UniformMatrix2fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { + SET_by_offset(disp, _gloffset_UniformMatrix2fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_UniformMatrix3fvARB)(GLint, GLsizei, GLboolean, const GLfloat *); +#define CALL_UniformMatrix3fvARB(disp, parameters) \ + (* GET_UniformMatrix3fvARB(disp)) parameters +static INLINE _glptr_UniformMatrix3fvARB GET_UniformMatrix3fvARB(struct _glapi_table *disp) { + return (_glptr_UniformMatrix3fvARB) (GET_by_offset(disp, _gloffset_UniformMatrix3fvARB)); +} + +static INLINE void SET_UniformMatrix3fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { + SET_by_offset(disp, _gloffset_UniformMatrix3fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_UniformMatrix4fvARB)(GLint, GLsizei, GLboolean, const GLfloat *); +#define CALL_UniformMatrix4fvARB(disp, parameters) \ + (* GET_UniformMatrix4fvARB(disp)) parameters +static INLINE _glptr_UniformMatrix4fvARB GET_UniformMatrix4fvARB(struct _glapi_table *disp) { + return (_glptr_UniformMatrix4fvARB) (GET_by_offset(disp, _gloffset_UniformMatrix4fvARB)); +} + +static INLINE void SET_UniformMatrix4fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { + SET_by_offset(disp, _gloffset_UniformMatrix4fvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_UseProgramObjectARB)(GLhandleARB); +#define CALL_UseProgramObjectARB(disp, parameters) \ + (* GET_UseProgramObjectARB(disp)) parameters +static INLINE _glptr_UseProgramObjectARB GET_UseProgramObjectARB(struct _glapi_table *disp) { + return (_glptr_UseProgramObjectARB) (GET_by_offset(disp, _gloffset_UseProgramObjectARB)); +} + +static INLINE void SET_UseProgramObjectARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB)) { + SET_by_offset(disp, _gloffset_UseProgramObjectARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ValidateProgramARB)(GLhandleARB); +#define CALL_ValidateProgramARB(disp, parameters) \ + (* GET_ValidateProgramARB(disp)) parameters +static INLINE _glptr_ValidateProgramARB GET_ValidateProgramARB(struct _glapi_table *disp) { + return (_glptr_ValidateProgramARB) (GET_by_offset(disp, _gloffset_ValidateProgramARB)); +} + +static INLINE void SET_ValidateProgramARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB)) { + SET_by_offset(disp, _gloffset_ValidateProgramARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindAttribLocationARB)(GLhandleARB, GLuint, const GLcharARB *); +#define CALL_BindAttribLocationARB(disp, parameters) \ + (* GET_BindAttribLocationARB(disp)) parameters +static INLINE _glptr_BindAttribLocationARB GET_BindAttribLocationARB(struct _glapi_table *disp) { + return (_glptr_BindAttribLocationARB) (GET_by_offset(disp, _gloffset_BindAttribLocationARB)); +} + +static INLINE void SET_BindAttribLocationARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLuint, const GLcharARB *)) { + SET_by_offset(disp, _gloffset_BindAttribLocationARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetActiveAttribARB)(GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *); +#define CALL_GetActiveAttribARB(disp, parameters) \ + (* GET_GetActiveAttribARB(disp)) parameters +static INLINE _glptr_GetActiveAttribARB GET_GetActiveAttribARB(struct _glapi_table *disp) { + return (_glptr_GetActiveAttribARB) (GET_by_offset(disp, _gloffset_GetActiveAttribARB)); +} + +static INLINE void SET_GetActiveAttribARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *)) { + SET_by_offset(disp, _gloffset_GetActiveAttribARB, fn); +} + +typedef GLint (GLAPIENTRYP _glptr_GetAttribLocationARB)(GLhandleARB, const GLcharARB *); +#define CALL_GetAttribLocationARB(disp, parameters) \ + (* GET_GetAttribLocationARB(disp)) parameters +static INLINE _glptr_GetAttribLocationARB GET_GetAttribLocationARB(struct _glapi_table *disp) { + return (_glptr_GetAttribLocationARB) (GET_by_offset(disp, _gloffset_GetAttribLocationARB)); +} + +static INLINE void SET_GetAttribLocationARB(struct _glapi_table *disp, GLint (GLAPIENTRYP fn)(GLhandleARB, const GLcharARB *)) { + SET_by_offset(disp, _gloffset_GetAttribLocationARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_DrawBuffersARB)(GLsizei, const GLenum *); +#define CALL_DrawBuffersARB(disp, parameters) \ + (* GET_DrawBuffersARB(disp)) parameters +static INLINE _glptr_DrawBuffersARB GET_DrawBuffersARB(struct _glapi_table *disp) { + return (_glptr_DrawBuffersARB) (GET_by_offset(disp, _gloffset_DrawBuffersARB)); +} + +static INLINE void SET_DrawBuffersARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLenum *)) { + SET_by_offset(disp, _gloffset_DrawBuffersARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClampColorARB)(GLenum, GLenum); +#define CALL_ClampColorARB(disp, parameters) \ + (* GET_ClampColorARB(disp)) parameters +static INLINE _glptr_ClampColorARB GET_ClampColorARB(struct _glapi_table *disp) { + return (_glptr_ClampColorARB) (GET_by_offset(disp, _gloffset_ClampColorARB)); +} + +static INLINE void SET_ClampColorARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_ClampColorARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_DrawArraysInstancedARB)(GLenum, GLint, GLsizei, GLsizei); +#define CALL_DrawArraysInstancedARB(disp, parameters) \ + (* GET_DrawArraysInstancedARB(disp)) parameters +static INLINE _glptr_DrawArraysInstancedARB GET_DrawArraysInstancedARB(struct _glapi_table *disp) { + return (_glptr_DrawArraysInstancedARB) (GET_by_offset(disp, _gloffset_DrawArraysInstancedARB)); +} + +static INLINE void SET_DrawArraysInstancedARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLsizei, GLsizei)) { + SET_by_offset(disp, _gloffset_DrawArraysInstancedARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_DrawElementsInstancedARB)(GLenum, GLsizei, GLenum, const GLvoid *, GLsizei); +#define CALL_DrawElementsInstancedARB(disp, parameters) \ + (* GET_DrawElementsInstancedARB(disp)) parameters +static INLINE _glptr_DrawElementsInstancedARB GET_DrawElementsInstancedARB(struct _glapi_table *disp) { + return (_glptr_DrawElementsInstancedARB) (GET_by_offset(disp, _gloffset_DrawElementsInstancedARB)); +} + +static INLINE void SET_DrawElementsInstancedARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLenum, const GLvoid *, GLsizei)) { + SET_by_offset(disp, _gloffset_DrawElementsInstancedARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_RenderbufferStorageMultisample)(GLenum, GLsizei, GLenum, GLsizei, GLsizei); +#define CALL_RenderbufferStorageMultisample(disp, parameters) \ + (* GET_RenderbufferStorageMultisample(disp)) parameters +static INLINE _glptr_RenderbufferStorageMultisample GET_RenderbufferStorageMultisample(struct _glapi_table *disp) { + return (_glptr_RenderbufferStorageMultisample) (GET_by_offset(disp, _gloffset_RenderbufferStorageMultisample)); +} + +static INLINE void SET_RenderbufferStorageMultisample(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLenum, GLsizei, GLsizei)) { + SET_by_offset(disp, _gloffset_RenderbufferStorageMultisample, fn); +} + +typedef void (GLAPIENTRYP _glptr_FramebufferTextureARB)(GLenum, GLenum, GLuint, GLint); +#define CALL_FramebufferTextureARB(disp, parameters) \ + (* GET_FramebufferTextureARB(disp)) parameters +static INLINE _glptr_FramebufferTextureARB GET_FramebufferTextureARB(struct _glapi_table *disp) { + return (_glptr_FramebufferTextureARB) (GET_by_offset(disp, _gloffset_FramebufferTextureARB)); +} + +static INLINE void SET_FramebufferTextureARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint, GLint)) { + SET_by_offset(disp, _gloffset_FramebufferTextureARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_FramebufferTextureFaceARB)(GLenum, GLenum, GLuint, GLint, GLenum); +#define CALL_FramebufferTextureFaceARB(disp, parameters) \ + (* GET_FramebufferTextureFaceARB(disp)) parameters +static INLINE _glptr_FramebufferTextureFaceARB GET_FramebufferTextureFaceARB(struct _glapi_table *disp) { + return (_glptr_FramebufferTextureFaceARB) (GET_by_offset(disp, _gloffset_FramebufferTextureFaceARB)); +} + +static INLINE void SET_FramebufferTextureFaceARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint, GLint, GLenum)) { + SET_by_offset(disp, _gloffset_FramebufferTextureFaceARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramParameteriARB)(GLuint, GLenum, GLint); +#define CALL_ProgramParameteriARB(disp, parameters) \ + (* GET_ProgramParameteriARB(disp)) parameters +static INLINE _glptr_ProgramParameteriARB GET_ProgramParameteriARB(struct _glapi_table *disp) { + return (_glptr_ProgramParameteriARB) (GET_by_offset(disp, _gloffset_ProgramParameteriARB)); +} + +static INLINE void SET_ProgramParameteriARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint)) { + SET_by_offset(disp, _gloffset_ProgramParameteriARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribDivisorARB)(GLuint, GLuint); +#define CALL_VertexAttribDivisorARB(disp, parameters) \ + (* GET_VertexAttribDivisorARB(disp)) parameters +static INLINE _glptr_VertexAttribDivisorARB GET_VertexAttribDivisorARB(struct _glapi_table *disp) { + return (_glptr_VertexAttribDivisorARB) (GET_by_offset(disp, _gloffset_VertexAttribDivisorARB)); +} + +static INLINE void SET_VertexAttribDivisorARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_VertexAttribDivisorARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_FlushMappedBufferRange)(GLenum, GLintptr, GLsizeiptr); +#define CALL_FlushMappedBufferRange(disp, parameters) \ + (* GET_FlushMappedBufferRange(disp)) parameters +static INLINE _glptr_FlushMappedBufferRange GET_FlushMappedBufferRange(struct _glapi_table *disp) { + return (_glptr_FlushMappedBufferRange) (GET_by_offset(disp, _gloffset_FlushMappedBufferRange)); +} + +static INLINE void SET_FlushMappedBufferRange(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLintptr, GLsizeiptr)) { + SET_by_offset(disp, _gloffset_FlushMappedBufferRange, fn); +} + +typedef GLvoid * (GLAPIENTRYP _glptr_MapBufferRange)(GLenum, GLintptr, GLsizeiptr, GLbitfield); +#define CALL_MapBufferRange(disp, parameters) \ + (* GET_MapBufferRange(disp)) parameters +static INLINE _glptr_MapBufferRange GET_MapBufferRange(struct _glapi_table *disp) { + return (_glptr_MapBufferRange) (GET_by_offset(disp, _gloffset_MapBufferRange)); +} + +static INLINE void SET_MapBufferRange(struct _glapi_table *disp, GLvoid * (GLAPIENTRYP fn)(GLenum, GLintptr, GLsizeiptr, GLbitfield)) { + SET_by_offset(disp, _gloffset_MapBufferRange, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexBufferARB)(GLenum, GLenum, GLuint); +#define CALL_TexBufferARB(disp, parameters) \ + (* GET_TexBufferARB(disp)) parameters +static INLINE _glptr_TexBufferARB GET_TexBufferARB(struct _glapi_table *disp) { + return (_glptr_TexBufferARB) (GET_by_offset(disp, _gloffset_TexBufferARB)); +} + +static INLINE void SET_TexBufferARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_TexBufferARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindVertexArray)(GLuint); +#define CALL_BindVertexArray(disp, parameters) \ + (* GET_BindVertexArray(disp)) parameters +static INLINE _glptr_BindVertexArray GET_BindVertexArray(struct _glapi_table *disp) { + return (_glptr_BindVertexArray) (GET_by_offset(disp, _gloffset_BindVertexArray)); +} + +static INLINE void SET_BindVertexArray(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_BindVertexArray, fn); +} + +typedef void (GLAPIENTRYP _glptr_GenVertexArrays)(GLsizei, GLuint *); +#define CALL_GenVertexArrays(disp, parameters) \ + (* GET_GenVertexArrays(disp)) parameters +static INLINE _glptr_GenVertexArrays GET_GenVertexArrays(struct _glapi_table *disp) { + return (_glptr_GenVertexArrays) (GET_by_offset(disp, _gloffset_GenVertexArrays)); +} + +static INLINE void SET_GenVertexArrays(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_GenVertexArrays, fn); +} + +typedef void (GLAPIENTRYP _glptr_CopyBufferSubData)(GLenum, GLenum, GLintptr, GLintptr, GLsizeiptr); +#define CALL_CopyBufferSubData(disp, parameters) \ + (* GET_CopyBufferSubData(disp)) parameters +static INLINE _glptr_CopyBufferSubData GET_CopyBufferSubData(struct _glapi_table *disp) { + return (_glptr_CopyBufferSubData) (GET_by_offset(disp, _gloffset_CopyBufferSubData)); +} + +static INLINE void SET_CopyBufferSubData(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLintptr, GLintptr, GLsizeiptr)) { + SET_by_offset(disp, _gloffset_CopyBufferSubData, fn); +} + +typedef GLenum (GLAPIENTRYP _glptr_ClientWaitSync)(GLsync, GLbitfield, GLuint64); +#define CALL_ClientWaitSync(disp, parameters) \ + (* GET_ClientWaitSync(disp)) parameters +static INLINE _glptr_ClientWaitSync GET_ClientWaitSync(struct _glapi_table *disp) { + return (_glptr_ClientWaitSync) (GET_by_offset(disp, _gloffset_ClientWaitSync)); +} + +static INLINE void SET_ClientWaitSync(struct _glapi_table *disp, GLenum (GLAPIENTRYP fn)(GLsync, GLbitfield, GLuint64)) { + SET_by_offset(disp, _gloffset_ClientWaitSync, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteSync)(GLsync); +#define CALL_DeleteSync(disp, parameters) \ + (* GET_DeleteSync(disp)) parameters +static INLINE _glptr_DeleteSync GET_DeleteSync(struct _glapi_table *disp) { + return (_glptr_DeleteSync) (GET_by_offset(disp, _gloffset_DeleteSync)); +} + +static INLINE void SET_DeleteSync(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsync)) { + SET_by_offset(disp, _gloffset_DeleteSync, fn); +} + +typedef GLsync (GLAPIENTRYP _glptr_FenceSync)(GLenum, GLbitfield); +#define CALL_FenceSync(disp, parameters) \ + (* GET_FenceSync(disp)) parameters +static INLINE _glptr_FenceSync GET_FenceSync(struct _glapi_table *disp) { + return (_glptr_FenceSync) (GET_by_offset(disp, _gloffset_FenceSync)); +} + +static INLINE void SET_FenceSync(struct _glapi_table *disp, GLsync (GLAPIENTRYP fn)(GLenum, GLbitfield)) { + SET_by_offset(disp, _gloffset_FenceSync, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetInteger64v)(GLenum, GLint64 *); +#define CALL_GetInteger64v(disp, parameters) \ + (* GET_GetInteger64v(disp)) parameters +static INLINE _glptr_GetInteger64v GET_GetInteger64v(struct _glapi_table *disp) { + return (_glptr_GetInteger64v) (GET_by_offset(disp, _gloffset_GetInteger64v)); +} + +static INLINE void SET_GetInteger64v(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint64 *)) { + SET_by_offset(disp, _gloffset_GetInteger64v, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetSynciv)(GLsync, GLenum, GLsizei, GLsizei *, GLint *); +#define CALL_GetSynciv(disp, parameters) \ + (* GET_GetSynciv(disp)) parameters +static INLINE _glptr_GetSynciv GET_GetSynciv(struct _glapi_table *disp) { + return (_glptr_GetSynciv) (GET_by_offset(disp, _gloffset_GetSynciv)); +} + +static INLINE void SET_GetSynciv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsync, GLenum, GLsizei, GLsizei *, GLint *)) { + SET_by_offset(disp, _gloffset_GetSynciv, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsSync)(GLsync); +#define CALL_IsSync(disp, parameters) \ + (* GET_IsSync(disp)) parameters +static INLINE _glptr_IsSync GET_IsSync(struct _glapi_table *disp) { + return (_glptr_IsSync) (GET_by_offset(disp, _gloffset_IsSync)); +} + +static INLINE void SET_IsSync(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLsync)) { + SET_by_offset(disp, _gloffset_IsSync, fn); +} + +typedef void (GLAPIENTRYP _glptr_WaitSync)(GLsync, GLbitfield, GLuint64); +#define CALL_WaitSync(disp, parameters) \ + (* GET_WaitSync(disp)) parameters +static INLINE _glptr_WaitSync GET_WaitSync(struct _glapi_table *disp) { + return (_glptr_WaitSync) (GET_by_offset(disp, _gloffset_WaitSync)); +} + +static INLINE void SET_WaitSync(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsync, GLbitfield, GLuint64)) { + SET_by_offset(disp, _gloffset_WaitSync, fn); +} + +typedef void (GLAPIENTRYP _glptr_DrawElementsBaseVertex)(GLenum, GLsizei, GLenum, const GLvoid *, GLint); +#define CALL_DrawElementsBaseVertex(disp, parameters) \ + (* GET_DrawElementsBaseVertex(disp)) parameters +static INLINE _glptr_DrawElementsBaseVertex GET_DrawElementsBaseVertex(struct _glapi_table *disp) { + return (_glptr_DrawElementsBaseVertex) (GET_by_offset(disp, _gloffset_DrawElementsBaseVertex)); +} + +static INLINE void SET_DrawElementsBaseVertex(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLenum, const GLvoid *, GLint)) { + SET_by_offset(disp, _gloffset_DrawElementsBaseVertex, fn); +} + +typedef void (GLAPIENTRYP _glptr_DrawElementsInstancedBaseVertex)(GLenum, GLsizei, GLenum, const GLvoid *, GLsizei, GLint); +#define CALL_DrawElementsInstancedBaseVertex(disp, parameters) \ + (* GET_DrawElementsInstancedBaseVertex(disp)) parameters +static INLINE _glptr_DrawElementsInstancedBaseVertex GET_DrawElementsInstancedBaseVertex(struct _glapi_table *disp) { + return (_glptr_DrawElementsInstancedBaseVertex) (GET_by_offset(disp, _gloffset_DrawElementsInstancedBaseVertex)); +} + +static INLINE void SET_DrawElementsInstancedBaseVertex(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLenum, const GLvoid *, GLsizei, GLint)) { + SET_by_offset(disp, _gloffset_DrawElementsInstancedBaseVertex, fn); +} + +typedef void (GLAPIENTRYP _glptr_DrawRangeElementsBaseVertex)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *, GLint); +#define CALL_DrawRangeElementsBaseVertex(disp, parameters) \ + (* GET_DrawRangeElementsBaseVertex(disp)) parameters +static INLINE _glptr_DrawRangeElementsBaseVertex GET_DrawRangeElementsBaseVertex(struct _glapi_table *disp) { + return (_glptr_DrawRangeElementsBaseVertex) (GET_by_offset(disp, _gloffset_DrawRangeElementsBaseVertex)); +} + +static INLINE void SET_DrawRangeElementsBaseVertex(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *, GLint)) { + SET_by_offset(disp, _gloffset_DrawRangeElementsBaseVertex, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiDrawElementsBaseVertex)(GLenum, const GLsizei *, GLenum, const GLvoid **, GLsizei, const GLint *); +#define CALL_MultiDrawElementsBaseVertex(disp, parameters) \ + (* GET_MultiDrawElementsBaseVertex(disp)) parameters +static INLINE _glptr_MultiDrawElementsBaseVertex GET_MultiDrawElementsBaseVertex(struct _glapi_table *disp) { + return (_glptr_MultiDrawElementsBaseVertex) (GET_by_offset(disp, _gloffset_MultiDrawElementsBaseVertex)); +} + +static INLINE void SET_MultiDrawElementsBaseVertex(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLsizei *, GLenum, const GLvoid **, GLsizei, const GLint *)) { + SET_by_offset(disp, _gloffset_MultiDrawElementsBaseVertex, fn); +} + +typedef void (GLAPIENTRYP _glptr_BlendEquationSeparateiARB)(GLuint, GLenum, GLenum); +#define CALL_BlendEquationSeparateiARB(disp, parameters) \ + (* GET_BlendEquationSeparateiARB(disp)) parameters +static INLINE _glptr_BlendEquationSeparateiARB GET_BlendEquationSeparateiARB(struct _glapi_table *disp) { + return (_glptr_BlendEquationSeparateiARB) (GET_by_offset(disp, _gloffset_BlendEquationSeparateiARB)); +} + +static INLINE void SET_BlendEquationSeparateiARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_BlendEquationSeparateiARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_BlendEquationiARB)(GLuint, GLenum); +#define CALL_BlendEquationiARB(disp, parameters) \ + (* GET_BlendEquationiARB(disp)) parameters +static INLINE _glptr_BlendEquationiARB GET_BlendEquationiARB(struct _glapi_table *disp) { + return (_glptr_BlendEquationiARB) (GET_by_offset(disp, _gloffset_BlendEquationiARB)); +} + +static INLINE void SET_BlendEquationiARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum)) { + SET_by_offset(disp, _gloffset_BlendEquationiARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_BlendFuncSeparateiARB)(GLuint, GLenum, GLenum, GLenum, GLenum); +#define CALL_BlendFuncSeparateiARB(disp, parameters) \ + (* GET_BlendFuncSeparateiARB(disp)) parameters +static INLINE _glptr_BlendFuncSeparateiARB GET_BlendFuncSeparateiARB(struct _glapi_table *disp) { + return (_glptr_BlendFuncSeparateiARB) (GET_by_offset(disp, _gloffset_BlendFuncSeparateiARB)); +} + +static INLINE void SET_BlendFuncSeparateiARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLenum, GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_BlendFuncSeparateiARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_BlendFunciARB)(GLuint, GLenum, GLenum); +#define CALL_BlendFunciARB(disp, parameters) \ + (* GET_BlendFunciARB(disp)) parameters +static INLINE _glptr_BlendFunciARB GET_BlendFunciARB(struct _glapi_table *disp) { + return (_glptr_BlendFunciARB) (GET_by_offset(disp, _gloffset_BlendFunciARB)); +} + +static INLINE void SET_BlendFunciARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_BlendFunciARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindSampler)(GLuint, GLuint); +#define CALL_BindSampler(disp, parameters) \ + (* GET_BindSampler(disp)) parameters +static INLINE _glptr_BindSampler GET_BindSampler(struct _glapi_table *disp) { + return (_glptr_BindSampler) (GET_by_offset(disp, _gloffset_BindSampler)); +} + +static INLINE void SET_BindSampler(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_BindSampler, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteSamplers)(GLsizei, const GLuint *); +#define CALL_DeleteSamplers(disp, parameters) \ + (* GET_DeleteSamplers(disp)) parameters +static INLINE _glptr_DeleteSamplers GET_DeleteSamplers(struct _glapi_table *disp) { + return (_glptr_DeleteSamplers) (GET_by_offset(disp, _gloffset_DeleteSamplers)); +} + +static INLINE void SET_DeleteSamplers(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_DeleteSamplers, fn); +} + +typedef void (GLAPIENTRYP _glptr_GenSamplers)(GLsizei, GLuint *); +#define CALL_GenSamplers(disp, parameters) \ + (* GET_GenSamplers(disp)) parameters +static INLINE _glptr_GenSamplers GET_GenSamplers(struct _glapi_table *disp) { + return (_glptr_GenSamplers) (GET_by_offset(disp, _gloffset_GenSamplers)); +} + +static INLINE void SET_GenSamplers(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_GenSamplers, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetSamplerParameterIiv)(GLuint, GLenum, GLint *); +#define CALL_GetSamplerParameterIiv(disp, parameters) \ + (* GET_GetSamplerParameterIiv(disp)) parameters +static INLINE _glptr_GetSamplerParameterIiv GET_GetSamplerParameterIiv(struct _glapi_table *disp) { + return (_glptr_GetSamplerParameterIiv) (GET_by_offset(disp, _gloffset_GetSamplerParameterIiv)); +} + +static INLINE void SET_GetSamplerParameterIiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetSamplerParameterIiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetSamplerParameterIuiv)(GLuint, GLenum, GLuint *); +#define CALL_GetSamplerParameterIuiv(disp, parameters) \ + (* GET_GetSamplerParameterIuiv(disp)) parameters +static INLINE _glptr_GetSamplerParameterIuiv GET_GetSamplerParameterIuiv(struct _glapi_table *disp) { + return (_glptr_GetSamplerParameterIuiv) (GET_by_offset(disp, _gloffset_GetSamplerParameterIuiv)); +} + +static INLINE void SET_GetSamplerParameterIuiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLuint *)) { + SET_by_offset(disp, _gloffset_GetSamplerParameterIuiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetSamplerParameterfv)(GLuint, GLenum, GLfloat *); +#define CALL_GetSamplerParameterfv(disp, parameters) \ + (* GET_GetSamplerParameterfv(disp)) parameters +static INLINE _glptr_GetSamplerParameterfv GET_GetSamplerParameterfv(struct _glapi_table *disp) { + return (_glptr_GetSamplerParameterfv) (GET_by_offset(disp, _gloffset_GetSamplerParameterfv)); +} + +static INLINE void SET_GetSamplerParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetSamplerParameterfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetSamplerParameteriv)(GLuint, GLenum, GLint *); +#define CALL_GetSamplerParameteriv(disp, parameters) \ + (* GET_GetSamplerParameteriv(disp)) parameters +static INLINE _glptr_GetSamplerParameteriv GET_GetSamplerParameteriv(struct _glapi_table *disp) { + return (_glptr_GetSamplerParameteriv) (GET_by_offset(disp, _gloffset_GetSamplerParameteriv)); +} + +static INLINE void SET_GetSamplerParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetSamplerParameteriv, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsSampler)(GLuint); +#define CALL_IsSampler(disp, parameters) \ + (* GET_IsSampler(disp)) parameters +static INLINE _glptr_IsSampler GET_IsSampler(struct _glapi_table *disp) { + return (_glptr_IsSampler) (GET_by_offset(disp, _gloffset_IsSampler)); +} + +static INLINE void SET_IsSampler(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IsSampler, fn); +} + +typedef void (GLAPIENTRYP _glptr_SamplerParameterIiv)(GLuint, GLenum, const GLint *); +#define CALL_SamplerParameterIiv(disp, parameters) \ + (* GET_SamplerParameterIiv(disp)) parameters +static INLINE _glptr_SamplerParameterIiv GET_SamplerParameterIiv(struct _glapi_table *disp) { + return (_glptr_SamplerParameterIiv) (GET_by_offset(disp, _gloffset_SamplerParameterIiv)); +} + +static INLINE void SET_SamplerParameterIiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_SamplerParameterIiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_SamplerParameterIuiv)(GLuint, GLenum, const GLuint *); +#define CALL_SamplerParameterIuiv(disp, parameters) \ + (* GET_SamplerParameterIuiv(disp)) parameters +static INLINE _glptr_SamplerParameterIuiv GET_SamplerParameterIuiv(struct _glapi_table *disp) { + return (_glptr_SamplerParameterIuiv) (GET_by_offset(disp, _gloffset_SamplerParameterIuiv)); +} + +static INLINE void SET_SamplerParameterIuiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, const GLuint *)) { + SET_by_offset(disp, _gloffset_SamplerParameterIuiv, fn); +} + +typedef void (GLAPIENTRYP _glptr_SamplerParameterf)(GLuint, GLenum, GLfloat); +#define CALL_SamplerParameterf(disp, parameters) \ + (* GET_SamplerParameterf(disp)) parameters +static INLINE _glptr_SamplerParameterf GET_SamplerParameterf(struct _glapi_table *disp) { + return (_glptr_SamplerParameterf) (GET_by_offset(disp, _gloffset_SamplerParameterf)); +} + +static INLINE void SET_SamplerParameterf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_SamplerParameterf, fn); +} + +typedef void (GLAPIENTRYP _glptr_SamplerParameterfv)(GLuint, GLenum, const GLfloat *); +#define CALL_SamplerParameterfv(disp, parameters) \ + (* GET_SamplerParameterfv(disp)) parameters +static INLINE _glptr_SamplerParameterfv GET_SamplerParameterfv(struct _glapi_table *disp) { + return (_glptr_SamplerParameterfv) (GET_by_offset(disp, _gloffset_SamplerParameterfv)); +} + +static INLINE void SET_SamplerParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_SamplerParameterfv, fn); +} + +typedef void (GLAPIENTRYP _glptr_SamplerParameteri)(GLuint, GLenum, GLint); +#define CALL_SamplerParameteri(disp, parameters) \ + (* GET_SamplerParameteri(disp)) parameters +static INLINE _glptr_SamplerParameteri GET_SamplerParameteri(struct _glapi_table *disp) { + return (_glptr_SamplerParameteri) (GET_by_offset(disp, _gloffset_SamplerParameteri)); +} + +static INLINE void SET_SamplerParameteri(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint)) { + SET_by_offset(disp, _gloffset_SamplerParameteri, fn); +} + +typedef void (GLAPIENTRYP _glptr_SamplerParameteriv)(GLuint, GLenum, const GLint *); +#define CALL_SamplerParameteriv(disp, parameters) \ + (* GET_SamplerParameteriv(disp)) parameters +static INLINE _glptr_SamplerParameteriv GET_SamplerParameteriv(struct _glapi_table *disp) { + return (_glptr_SamplerParameteriv) (GET_by_offset(disp, _gloffset_SamplerParameteriv)); +} + +static INLINE void SET_SamplerParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_SamplerParameteriv, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindTransformFeedback)(GLenum, GLuint); +#define CALL_BindTransformFeedback(disp, parameters) \ + (* GET_BindTransformFeedback(disp)) parameters +static INLINE _glptr_BindTransformFeedback GET_BindTransformFeedback(struct _glapi_table *disp) { + return (_glptr_BindTransformFeedback) (GET_by_offset(disp, _gloffset_BindTransformFeedback)); +} + +static INLINE void SET_BindTransformFeedback(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_BindTransformFeedback, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteTransformFeedbacks)(GLsizei, const GLuint *); +#define CALL_DeleteTransformFeedbacks(disp, parameters) \ + (* GET_DeleteTransformFeedbacks(disp)) parameters +static INLINE _glptr_DeleteTransformFeedbacks GET_DeleteTransformFeedbacks(struct _glapi_table *disp) { + return (_glptr_DeleteTransformFeedbacks) (GET_by_offset(disp, _gloffset_DeleteTransformFeedbacks)); +} + +static INLINE void SET_DeleteTransformFeedbacks(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_DeleteTransformFeedbacks, fn); +} + +typedef void (GLAPIENTRYP _glptr_DrawTransformFeedback)(GLenum, GLuint); +#define CALL_DrawTransformFeedback(disp, parameters) \ + (* GET_DrawTransformFeedback(disp)) parameters +static INLINE _glptr_DrawTransformFeedback GET_DrawTransformFeedback(struct _glapi_table *disp) { + return (_glptr_DrawTransformFeedback) (GET_by_offset(disp, _gloffset_DrawTransformFeedback)); +} + +static INLINE void SET_DrawTransformFeedback(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_DrawTransformFeedback, fn); +} + +typedef void (GLAPIENTRYP _glptr_GenTransformFeedbacks)(GLsizei, GLuint *); +#define CALL_GenTransformFeedbacks(disp, parameters) \ + (* GET_GenTransformFeedbacks(disp)) parameters +static INLINE _glptr_GenTransformFeedbacks GET_GenTransformFeedbacks(struct _glapi_table *disp) { + return (_glptr_GenTransformFeedbacks) (GET_by_offset(disp, _gloffset_GenTransformFeedbacks)); +} + +static INLINE void SET_GenTransformFeedbacks(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_GenTransformFeedbacks, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsTransformFeedback)(GLuint); +#define CALL_IsTransformFeedback(disp, parameters) \ + (* GET_IsTransformFeedback(disp)) parameters +static INLINE _glptr_IsTransformFeedback GET_IsTransformFeedback(struct _glapi_table *disp) { + return (_glptr_IsTransformFeedback) (GET_by_offset(disp, _gloffset_IsTransformFeedback)); +} + +static INLINE void SET_IsTransformFeedback(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IsTransformFeedback, fn); +} + +typedef void (GLAPIENTRYP _glptr_PauseTransformFeedback)(void); +#define CALL_PauseTransformFeedback(disp, parameters) \ + (* GET_PauseTransformFeedback(disp)) parameters +static INLINE _glptr_PauseTransformFeedback GET_PauseTransformFeedback(struct _glapi_table *disp) { + return (_glptr_PauseTransformFeedback) (GET_by_offset(disp, _gloffset_PauseTransformFeedback)); +} + +static INLINE void SET_PauseTransformFeedback(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_PauseTransformFeedback, fn); +} + +typedef void (GLAPIENTRYP _glptr_ResumeTransformFeedback)(void); +#define CALL_ResumeTransformFeedback(disp, parameters) \ + (* GET_ResumeTransformFeedback(disp)) parameters +static INLINE _glptr_ResumeTransformFeedback GET_ResumeTransformFeedback(struct _glapi_table *disp) { + return (_glptr_ResumeTransformFeedback) (GET_by_offset(disp, _gloffset_ResumeTransformFeedback)); +} + +static INLINE void SET_ResumeTransformFeedback(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_ResumeTransformFeedback, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClearDepthf)(GLclampf); +#define CALL_ClearDepthf(disp, parameters) \ + (* GET_ClearDepthf(disp)) parameters +static INLINE _glptr_ClearDepthf GET_ClearDepthf(struct _glapi_table *disp) { + return (_glptr_ClearDepthf) (GET_by_offset(disp, _gloffset_ClearDepthf)); +} + +static INLINE void SET_ClearDepthf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampf)) { + SET_by_offset(disp, _gloffset_ClearDepthf, fn); +} + +typedef void (GLAPIENTRYP _glptr_DepthRangef)(GLclampf, GLclampf); +#define CALL_DepthRangef(disp, parameters) \ + (* GET_DepthRangef(disp)) parameters +static INLINE _glptr_DepthRangef GET_DepthRangef(struct _glapi_table *disp) { + return (_glptr_DepthRangef) (GET_by_offset(disp, _gloffset_DepthRangef)); +} + +static INLINE void SET_DepthRangef(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampf, GLclampf)) { + SET_by_offset(disp, _gloffset_DepthRangef, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetShaderPrecisionFormat)(GLenum, GLenum, GLint *, GLint *); +#define CALL_GetShaderPrecisionFormat(disp, parameters) \ + (* GET_GetShaderPrecisionFormat(disp)) parameters +static INLINE _glptr_GetShaderPrecisionFormat GET_GetShaderPrecisionFormat(struct _glapi_table *disp) { + return (_glptr_GetShaderPrecisionFormat) (GET_by_offset(disp, _gloffset_GetShaderPrecisionFormat)); +} + +static INLINE void SET_GetShaderPrecisionFormat(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *, GLint *)) { + SET_by_offset(disp, _gloffset_GetShaderPrecisionFormat, fn); +} + +typedef void (GLAPIENTRYP _glptr_ReleaseShaderCompiler)(void); +#define CALL_ReleaseShaderCompiler(disp, parameters) \ + (* GET_ReleaseShaderCompiler(disp)) parameters +static INLINE _glptr_ReleaseShaderCompiler GET_ReleaseShaderCompiler(struct _glapi_table *disp) { + return (_glptr_ReleaseShaderCompiler) (GET_by_offset(disp, _gloffset_ReleaseShaderCompiler)); +} + +static INLINE void SET_ReleaseShaderCompiler(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_ReleaseShaderCompiler, fn); +} + +typedef void (GLAPIENTRYP _glptr_ShaderBinary)(GLsizei, const GLuint *, GLenum, const GLvoid *, GLsizei); +#define CALL_ShaderBinary(disp, parameters) \ + (* GET_ShaderBinary(disp)) parameters +static INLINE _glptr_ShaderBinary GET_ShaderBinary(struct _glapi_table *disp) { + return (_glptr_ShaderBinary) (GET_by_offset(disp, _gloffset_ShaderBinary)); +} + +static INLINE void SET_ShaderBinary(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *, GLenum, const GLvoid *, GLsizei)) { + SET_by_offset(disp, _gloffset_ShaderBinary, fn); +} + +typedef GLenum (GLAPIENTRYP _glptr_GetGraphicsResetStatusARB)(void); +#define CALL_GetGraphicsResetStatusARB(disp, parameters) \ + (* GET_GetGraphicsResetStatusARB(disp)) parameters +static INLINE _glptr_GetGraphicsResetStatusARB GET_GetGraphicsResetStatusARB(struct _glapi_table *disp) { + return (_glptr_GetGraphicsResetStatusARB) (GET_by_offset(disp, _gloffset_GetGraphicsResetStatusARB)); +} + +static INLINE void SET_GetGraphicsResetStatusARB(struct _glapi_table *disp, GLenum (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_GetGraphicsResetStatusARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnColorTableARB)(GLenum, GLenum, GLenum, GLsizei, GLvoid *); +#define CALL_GetnColorTableARB(disp, parameters) \ + (* GET_GetnColorTableARB(disp)) parameters +static INLINE _glptr_GetnColorTableARB GET_GetnColorTableARB(struct _glapi_table *disp) { + return (_glptr_GetnColorTableARB) (GET_by_offset(disp, _gloffset_GetnColorTableARB)); +} + +static INLINE void SET_GetnColorTableARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLsizei, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetnColorTableARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnCompressedTexImageARB)(GLenum, GLint, GLsizei, GLvoid *); +#define CALL_GetnCompressedTexImageARB(disp, parameters) \ + (* GET_GetnCompressedTexImageARB(disp)) parameters +static INLINE _glptr_GetnCompressedTexImageARB GET_GetnCompressedTexImageARB(struct _glapi_table *disp) { + return (_glptr_GetnCompressedTexImageARB) (GET_by_offset(disp, _gloffset_GetnCompressedTexImageARB)); +} + +static INLINE void SET_GetnCompressedTexImageARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLsizei, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetnCompressedTexImageARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnConvolutionFilterARB)(GLenum, GLenum, GLenum, GLsizei, GLvoid *); +#define CALL_GetnConvolutionFilterARB(disp, parameters) \ + (* GET_GetnConvolutionFilterARB(disp)) parameters +static INLINE _glptr_GetnConvolutionFilterARB GET_GetnConvolutionFilterARB(struct _glapi_table *disp) { + return (_glptr_GetnConvolutionFilterARB) (GET_by_offset(disp, _gloffset_GetnConvolutionFilterARB)); +} + +static INLINE void SET_GetnConvolutionFilterARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLsizei, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetnConvolutionFilterARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnHistogramARB)(GLenum, GLboolean, GLenum, GLenum, GLsizei, GLvoid *); +#define CALL_GetnHistogramARB(disp, parameters) \ + (* GET_GetnHistogramARB(disp)) parameters +static INLINE _glptr_GetnHistogramARB GET_GetnHistogramARB(struct _glapi_table *disp) { + return (_glptr_GetnHistogramARB) (GET_by_offset(disp, _gloffset_GetnHistogramARB)); +} + +static INLINE void SET_GetnHistogramARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLboolean, GLenum, GLenum, GLsizei, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetnHistogramARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnMapdvARB)(GLenum, GLenum, GLsizei, GLdouble *); +#define CALL_GetnMapdvARB(disp, parameters) \ + (* GET_GetnMapdvARB(disp)) parameters +static INLINE _glptr_GetnMapdvARB GET_GetnMapdvARB(struct _glapi_table *disp) { + return (_glptr_GetnMapdvARB) (GET_by_offset(disp, _gloffset_GetnMapdvARB)); +} + +static INLINE void SET_GetnMapdvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLdouble *)) { + SET_by_offset(disp, _gloffset_GetnMapdvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnMapfvARB)(GLenum, GLenum, GLsizei, GLfloat *); +#define CALL_GetnMapfvARB(disp, parameters) \ + (* GET_GetnMapfvARB(disp)) parameters +static INLINE _glptr_GetnMapfvARB GET_GetnMapfvARB(struct _glapi_table *disp) { + return (_glptr_GetnMapfvARB) (GET_by_offset(disp, _gloffset_GetnMapfvARB)); +} + +static INLINE void SET_GetnMapfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetnMapfvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnMapivARB)(GLenum, GLenum, GLsizei, GLint *); +#define CALL_GetnMapivARB(disp, parameters) \ + (* GET_GetnMapivARB(disp)) parameters +static INLINE _glptr_GetnMapivARB GET_GetnMapivARB(struct _glapi_table *disp) { + return (_glptr_GetnMapivARB) (GET_by_offset(disp, _gloffset_GetnMapivARB)); +} + +static INLINE void SET_GetnMapivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLint *)) { + SET_by_offset(disp, _gloffset_GetnMapivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnMinmaxARB)(GLenum, GLboolean, GLenum, GLenum, GLsizei, GLvoid *); +#define CALL_GetnMinmaxARB(disp, parameters) \ + (* GET_GetnMinmaxARB(disp)) parameters +static INLINE _glptr_GetnMinmaxARB GET_GetnMinmaxARB(struct _glapi_table *disp) { + return (_glptr_GetnMinmaxARB) (GET_by_offset(disp, _gloffset_GetnMinmaxARB)); +} + +static INLINE void SET_GetnMinmaxARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLboolean, GLenum, GLenum, GLsizei, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetnMinmaxARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnPixelMapfvARB)(GLenum, GLsizei, GLfloat *); +#define CALL_GetnPixelMapfvARB(disp, parameters) \ + (* GET_GetnPixelMapfvARB(disp)) parameters +static INLINE _glptr_GetnPixelMapfvARB GET_GetnPixelMapfvARB(struct _glapi_table *disp) { + return (_glptr_GetnPixelMapfvARB) (GET_by_offset(disp, _gloffset_GetnPixelMapfvARB)); +} + +static INLINE void SET_GetnPixelMapfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetnPixelMapfvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnPixelMapuivARB)(GLenum, GLsizei, GLuint *); +#define CALL_GetnPixelMapuivARB(disp, parameters) \ + (* GET_GetnPixelMapuivARB(disp)) parameters +static INLINE _glptr_GetnPixelMapuivARB GET_GetnPixelMapuivARB(struct _glapi_table *disp) { + return (_glptr_GetnPixelMapuivARB) (GET_by_offset(disp, _gloffset_GetnPixelMapuivARB)); +} + +static INLINE void SET_GetnPixelMapuivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_GetnPixelMapuivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnPixelMapusvARB)(GLenum, GLsizei, GLushort *); +#define CALL_GetnPixelMapusvARB(disp, parameters) \ + (* GET_GetnPixelMapusvARB(disp)) parameters +static INLINE _glptr_GetnPixelMapusvARB GET_GetnPixelMapusvARB(struct _glapi_table *disp) { + return (_glptr_GetnPixelMapusvARB) (GET_by_offset(disp, _gloffset_GetnPixelMapusvARB)); +} + +static INLINE void SET_GetnPixelMapusvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLushort *)) { + SET_by_offset(disp, _gloffset_GetnPixelMapusvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnPolygonStippleARB)(GLsizei, GLubyte *); +#define CALL_GetnPolygonStippleARB(disp, parameters) \ + (* GET_GetnPolygonStippleARB(disp)) parameters +static INLINE _glptr_GetnPolygonStippleARB GET_GetnPolygonStippleARB(struct _glapi_table *disp) { + return (_glptr_GetnPolygonStippleARB) (GET_by_offset(disp, _gloffset_GetnPolygonStippleARB)); +} + +static INLINE void SET_GetnPolygonStippleARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLubyte *)) { + SET_by_offset(disp, _gloffset_GetnPolygonStippleARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnSeparableFilterARB)(GLenum, GLenum, GLenum, GLsizei, GLvoid *, GLsizei, GLvoid *, GLvoid *); +#define CALL_GetnSeparableFilterARB(disp, parameters) \ + (* GET_GetnSeparableFilterARB(disp)) parameters +static INLINE _glptr_GetnSeparableFilterARB GET_GetnSeparableFilterARB(struct _glapi_table *disp) { + return (_glptr_GetnSeparableFilterARB) (GET_by_offset(disp, _gloffset_GetnSeparableFilterARB)); +} + +static INLINE void SET_GetnSeparableFilterARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLsizei, GLvoid *, GLsizei, GLvoid *, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetnSeparableFilterARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnTexImageARB)(GLenum, GLint, GLenum, GLenum, GLsizei, GLvoid *); +#define CALL_GetnTexImageARB(disp, parameters) \ + (* GET_GetnTexImageARB(disp)) parameters +static INLINE _glptr_GetnTexImageARB GET_GetnTexImageARB(struct _glapi_table *disp) { + return (_glptr_GetnTexImageARB) (GET_by_offset(disp, _gloffset_GetnTexImageARB)); +} + +static INLINE void SET_GetnTexImageARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLenum, GLsizei, GLvoid *)) { + SET_by_offset(disp, _gloffset_GetnTexImageARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnUniformdvARB)(GLhandleARB, GLint, GLsizei, GLdouble *); +#define CALL_GetnUniformdvARB(disp, parameters) \ + (* GET_GetnUniformdvARB(disp)) parameters +static INLINE _glptr_GetnUniformdvARB GET_GetnUniformdvARB(struct _glapi_table *disp) { + return (_glptr_GetnUniformdvARB) (GET_by_offset(disp, _gloffset_GetnUniformdvARB)); +} + +static INLINE void SET_GetnUniformdvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLint, GLsizei, GLdouble *)) { + SET_by_offset(disp, _gloffset_GetnUniformdvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnUniformfvARB)(GLhandleARB, GLint, GLsizei, GLfloat *); +#define CALL_GetnUniformfvARB(disp, parameters) \ + (* GET_GetnUniformfvARB(disp)) parameters +static INLINE _glptr_GetnUniformfvARB GET_GetnUniformfvARB(struct _glapi_table *disp) { + return (_glptr_GetnUniformfvARB) (GET_by_offset(disp, _gloffset_GetnUniformfvARB)); +} + +static INLINE void SET_GetnUniformfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLint, GLsizei, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetnUniformfvARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnUniformivARB)(GLhandleARB, GLint, GLsizei, GLint *); +#define CALL_GetnUniformivARB(disp, parameters) \ + (* GET_GetnUniformivARB(disp)) parameters +static INLINE _glptr_GetnUniformivARB GET_GetnUniformivARB(struct _glapi_table *disp) { + return (_glptr_GetnUniformivARB) (GET_by_offset(disp, _gloffset_GetnUniformivARB)); +} + +static INLINE void SET_GetnUniformivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLint, GLsizei, GLint *)) { + SET_by_offset(disp, _gloffset_GetnUniformivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetnUniformuivARB)(GLhandleARB, GLint, GLsizei, GLuint *); +#define CALL_GetnUniformuivARB(disp, parameters) \ + (* GET_GetnUniformuivARB(disp)) parameters +static INLINE _glptr_GetnUniformuivARB GET_GetnUniformuivARB(struct _glapi_table *disp) { + return (_glptr_GetnUniformuivARB) (GET_by_offset(disp, _gloffset_GetnUniformuivARB)); +} + +static INLINE void SET_GetnUniformuivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLint, GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_GetnUniformuivARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_ReadnPixelsARB)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLsizei, GLvoid *); +#define CALL_ReadnPixelsARB(disp, parameters) \ + (* GET_ReadnPixelsARB(disp)) parameters +static INLINE _glptr_ReadnPixelsARB GET_ReadnPixelsARB(struct _glapi_table *disp) { + return (_glptr_ReadnPixelsARB) (GET_by_offset(disp, _gloffset_ReadnPixelsARB)); +} + +static INLINE void SET_ReadnPixelsARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLsizei, GLvoid *)) { + SET_by_offset(disp, _gloffset_ReadnPixelsARB, fn); +} + +typedef void (GLAPIENTRYP _glptr_PolygonOffsetEXT)(GLfloat, GLfloat); +#define CALL_PolygonOffsetEXT(disp, parameters) \ + (* GET_PolygonOffsetEXT(disp)) parameters +static INLINE _glptr_PolygonOffsetEXT GET_PolygonOffsetEXT(struct _glapi_table *disp) { + return (_glptr_PolygonOffsetEXT) (GET_by_offset(disp, _gloffset_PolygonOffsetEXT)); +} + +static INLINE void SET_PolygonOffsetEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_PolygonOffsetEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetPixelTexGenParameterfvSGIS)(GLenum, GLfloat *); +#define CALL_GetPixelTexGenParameterfvSGIS(disp, parameters) \ + (* GET_GetPixelTexGenParameterfvSGIS(disp)) parameters +static INLINE _glptr_GetPixelTexGenParameterfvSGIS GET_GetPixelTexGenParameterfvSGIS(struct _glapi_table *disp) { + return (_glptr_GetPixelTexGenParameterfvSGIS) (GET_by_offset(disp, _gloffset_GetPixelTexGenParameterfvSGIS)); +} + +static INLINE void SET_GetPixelTexGenParameterfvSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetPixelTexGenParameterfvSGIS, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetPixelTexGenParameterivSGIS)(GLenum, GLint *); +#define CALL_GetPixelTexGenParameterivSGIS(disp, parameters) \ + (* GET_GetPixelTexGenParameterivSGIS(disp)) parameters +static INLINE _glptr_GetPixelTexGenParameterivSGIS GET_GetPixelTexGenParameterivSGIS(struct _glapi_table *disp) { + return (_glptr_GetPixelTexGenParameterivSGIS) (GET_by_offset(disp, _gloffset_GetPixelTexGenParameterivSGIS)); +} + +static INLINE void SET_GetPixelTexGenParameterivSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetPixelTexGenParameterivSGIS, fn); +} + +typedef void (GLAPIENTRYP _glptr_PixelTexGenParameterfSGIS)(GLenum, GLfloat); +#define CALL_PixelTexGenParameterfSGIS(disp, parameters) \ + (* GET_PixelTexGenParameterfSGIS(disp)) parameters +static INLINE _glptr_PixelTexGenParameterfSGIS GET_PixelTexGenParameterfSGIS(struct _glapi_table *disp) { + return (_glptr_PixelTexGenParameterfSGIS) (GET_by_offset(disp, _gloffset_PixelTexGenParameterfSGIS)); +} + +static INLINE void SET_PixelTexGenParameterfSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_PixelTexGenParameterfSGIS, fn); +} + +typedef void (GLAPIENTRYP _glptr_PixelTexGenParameterfvSGIS)(GLenum, const GLfloat *); +#define CALL_PixelTexGenParameterfvSGIS(disp, parameters) \ + (* GET_PixelTexGenParameterfvSGIS(disp)) parameters +static INLINE _glptr_PixelTexGenParameterfvSGIS GET_PixelTexGenParameterfvSGIS(struct _glapi_table *disp) { + return (_glptr_PixelTexGenParameterfvSGIS) (GET_by_offset(disp, _gloffset_PixelTexGenParameterfvSGIS)); +} + +static INLINE void SET_PixelTexGenParameterfvSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_PixelTexGenParameterfvSGIS, fn); +} + +typedef void (GLAPIENTRYP _glptr_PixelTexGenParameteriSGIS)(GLenum, GLint); +#define CALL_PixelTexGenParameteriSGIS(disp, parameters) \ + (* GET_PixelTexGenParameteriSGIS(disp)) parameters +static INLINE _glptr_PixelTexGenParameteriSGIS GET_PixelTexGenParameteriSGIS(struct _glapi_table *disp) { + return (_glptr_PixelTexGenParameteriSGIS) (GET_by_offset(disp, _gloffset_PixelTexGenParameteriSGIS)); +} + +static INLINE void SET_PixelTexGenParameteriSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { + SET_by_offset(disp, _gloffset_PixelTexGenParameteriSGIS, fn); +} + +typedef void (GLAPIENTRYP _glptr_PixelTexGenParameterivSGIS)(GLenum, const GLint *); +#define CALL_PixelTexGenParameterivSGIS(disp, parameters) \ + (* GET_PixelTexGenParameterivSGIS(disp)) parameters +static INLINE _glptr_PixelTexGenParameterivSGIS GET_PixelTexGenParameterivSGIS(struct _glapi_table *disp) { + return (_glptr_PixelTexGenParameterivSGIS) (GET_by_offset(disp, _gloffset_PixelTexGenParameterivSGIS)); +} + +static INLINE void SET_PixelTexGenParameterivSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_PixelTexGenParameterivSGIS, fn); +} + +typedef void (GLAPIENTRYP _glptr_SampleMaskSGIS)(GLclampf, GLboolean); +#define CALL_SampleMaskSGIS(disp, parameters) \ + (* GET_SampleMaskSGIS(disp)) parameters +static INLINE _glptr_SampleMaskSGIS GET_SampleMaskSGIS(struct _glapi_table *disp) { + return (_glptr_SampleMaskSGIS) (GET_by_offset(disp, _gloffset_SampleMaskSGIS)); +} + +static INLINE void SET_SampleMaskSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampf, GLboolean)) { + SET_by_offset(disp, _gloffset_SampleMaskSGIS, fn); +} + +typedef void (GLAPIENTRYP _glptr_SamplePatternSGIS)(GLenum); +#define CALL_SamplePatternSGIS(disp, parameters) \ + (* GET_SamplePatternSGIS(disp)) parameters +static INLINE _glptr_SamplePatternSGIS GET_SamplePatternSGIS(struct _glapi_table *disp) { + return (_glptr_SamplePatternSGIS) (GET_by_offset(disp, _gloffset_SamplePatternSGIS)); +} + +static INLINE void SET_SamplePatternSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_SamplePatternSGIS, fn); +} + +typedef void (GLAPIENTRYP _glptr_ColorPointerEXT)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *); +#define CALL_ColorPointerEXT(disp, parameters) \ + (* GET_ColorPointerEXT(disp)) parameters +static INLINE _glptr_ColorPointerEXT GET_ColorPointerEXT(struct _glapi_table *disp) { + return (_glptr_ColorPointerEXT) (GET_by_offset(disp, _gloffset_ColorPointerEXT)); +} + +static INLINE void SET_ColorPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_ColorPointerEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_EdgeFlagPointerEXT)(GLsizei, GLsizei, const GLboolean *); +#define CALL_EdgeFlagPointerEXT(disp, parameters) \ + (* GET_EdgeFlagPointerEXT(disp)) parameters +static INLINE _glptr_EdgeFlagPointerEXT GET_EdgeFlagPointerEXT(struct _glapi_table *disp) { + return (_glptr_EdgeFlagPointerEXT) (GET_by_offset(disp, _gloffset_EdgeFlagPointerEXT)); +} + +static INLINE void SET_EdgeFlagPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLsizei, const GLboolean *)) { + SET_by_offset(disp, _gloffset_EdgeFlagPointerEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_IndexPointerEXT)(GLenum, GLsizei, GLsizei, const GLvoid *); +#define CALL_IndexPointerEXT(disp, parameters) \ + (* GET_IndexPointerEXT(disp)) parameters +static INLINE _glptr_IndexPointerEXT GET_IndexPointerEXT(struct _glapi_table *disp) { + return (_glptr_IndexPointerEXT) (GET_by_offset(disp, _gloffset_IndexPointerEXT)); +} + +static INLINE void SET_IndexPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_IndexPointerEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_NormalPointerEXT)(GLenum, GLsizei, GLsizei, const GLvoid *); +#define CALL_NormalPointerEXT(disp, parameters) \ + (* GET_NormalPointerEXT(disp)) parameters +static INLINE _glptr_NormalPointerEXT GET_NormalPointerEXT(struct _glapi_table *disp) { + return (_glptr_NormalPointerEXT) (GET_by_offset(disp, _gloffset_NormalPointerEXT)); +} + +static INLINE void SET_NormalPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_NormalPointerEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexCoordPointerEXT)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *); +#define CALL_TexCoordPointerEXT(disp, parameters) \ + (* GET_TexCoordPointerEXT(disp)) parameters +static INLINE _glptr_TexCoordPointerEXT GET_TexCoordPointerEXT(struct _glapi_table *disp) { + return (_glptr_TexCoordPointerEXT) (GET_by_offset(disp, _gloffset_TexCoordPointerEXT)); +} + +static INLINE void SET_TexCoordPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_TexCoordPointerEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexPointerEXT)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *); +#define CALL_VertexPointerEXT(disp, parameters) \ + (* GET_VertexPointerEXT(disp)) parameters +static INLINE _glptr_VertexPointerEXT GET_VertexPointerEXT(struct _glapi_table *disp) { + return (_glptr_VertexPointerEXT) (GET_by_offset(disp, _gloffset_VertexPointerEXT)); +} + +static INLINE void SET_VertexPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_VertexPointerEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_PointParameterfEXT)(GLenum, GLfloat); +#define CALL_PointParameterfEXT(disp, parameters) \ + (* GET_PointParameterfEXT(disp)) parameters +static INLINE _glptr_PointParameterfEXT GET_PointParameterfEXT(struct _glapi_table *disp) { + return (_glptr_PointParameterfEXT) (GET_by_offset(disp, _gloffset_PointParameterfEXT)); +} + +static INLINE void SET_PointParameterfEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_PointParameterfEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_PointParameterfvEXT)(GLenum, const GLfloat *); +#define CALL_PointParameterfvEXT(disp, parameters) \ + (* GET_PointParameterfvEXT(disp)) parameters +static INLINE _glptr_PointParameterfvEXT GET_PointParameterfvEXT(struct _glapi_table *disp) { + return (_glptr_PointParameterfvEXT) (GET_by_offset(disp, _gloffset_PointParameterfvEXT)); +} + +static INLINE void SET_PointParameterfvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_PointParameterfvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_LockArraysEXT)(GLint, GLsizei); +#define CALL_LockArraysEXT(disp, parameters) \ + (* GET_LockArraysEXT(disp)) parameters +static INLINE _glptr_LockArraysEXT GET_LockArraysEXT(struct _glapi_table *disp) { + return (_glptr_LockArraysEXT) (GET_by_offset(disp, _gloffset_LockArraysEXT)); +} + +static INLINE void SET_LockArraysEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei)) { + SET_by_offset(disp, _gloffset_LockArraysEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_UnlockArraysEXT)(void); +#define CALL_UnlockArraysEXT(disp, parameters) \ + (* GET_UnlockArraysEXT(disp)) parameters +static INLINE _glptr_UnlockArraysEXT GET_UnlockArraysEXT(struct _glapi_table *disp) { + return (_glptr_UnlockArraysEXT) (GET_by_offset(disp, _gloffset_UnlockArraysEXT)); +} + +static INLINE void SET_UnlockArraysEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_UnlockArraysEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3bEXT)(GLbyte, GLbyte, GLbyte); +#define CALL_SecondaryColor3bEXT(disp, parameters) \ + (* GET_SecondaryColor3bEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3bEXT GET_SecondaryColor3bEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3bEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3bEXT)); +} + +static INLINE void SET_SecondaryColor3bEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbyte, GLbyte, GLbyte)) { + SET_by_offset(disp, _gloffset_SecondaryColor3bEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3bvEXT)(const GLbyte *); +#define CALL_SecondaryColor3bvEXT(disp, parameters) \ + (* GET_SecondaryColor3bvEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3bvEXT GET_SecondaryColor3bvEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3bvEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3bvEXT)); +} + +static INLINE void SET_SecondaryColor3bvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLbyte *)) { + SET_by_offset(disp, _gloffset_SecondaryColor3bvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3dEXT)(GLdouble, GLdouble, GLdouble); +#define CALL_SecondaryColor3dEXT(disp, parameters) \ + (* GET_SecondaryColor3dEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3dEXT GET_SecondaryColor3dEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3dEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3dEXT)); +} + +static INLINE void SET_SecondaryColor3dEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_SecondaryColor3dEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3dvEXT)(const GLdouble *); +#define CALL_SecondaryColor3dvEXT(disp, parameters) \ + (* GET_SecondaryColor3dvEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3dvEXT GET_SecondaryColor3dvEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3dvEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3dvEXT)); +} + +static INLINE void SET_SecondaryColor3dvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_SecondaryColor3dvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3fEXT)(GLfloat, GLfloat, GLfloat); +#define CALL_SecondaryColor3fEXT(disp, parameters) \ + (* GET_SecondaryColor3fEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3fEXT GET_SecondaryColor3fEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3fEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3fEXT)); +} + +static INLINE void SET_SecondaryColor3fEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_SecondaryColor3fEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3fvEXT)(const GLfloat *); +#define CALL_SecondaryColor3fvEXT(disp, parameters) \ + (* GET_SecondaryColor3fvEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3fvEXT GET_SecondaryColor3fvEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3fvEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3fvEXT)); +} + +static INLINE void SET_SecondaryColor3fvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_SecondaryColor3fvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3iEXT)(GLint, GLint, GLint); +#define CALL_SecondaryColor3iEXT(disp, parameters) \ + (* GET_SecondaryColor3iEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3iEXT GET_SecondaryColor3iEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3iEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3iEXT)); +} + +static INLINE void SET_SecondaryColor3iEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_SecondaryColor3iEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3ivEXT)(const GLint *); +#define CALL_SecondaryColor3ivEXT(disp, parameters) \ + (* GET_SecondaryColor3ivEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3ivEXT GET_SecondaryColor3ivEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3ivEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3ivEXT)); +} + +static INLINE void SET_SecondaryColor3ivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_SecondaryColor3ivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3sEXT)(GLshort, GLshort, GLshort); +#define CALL_SecondaryColor3sEXT(disp, parameters) \ + (* GET_SecondaryColor3sEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3sEXT GET_SecondaryColor3sEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3sEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3sEXT)); +} + +static INLINE void SET_SecondaryColor3sEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_SecondaryColor3sEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3svEXT)(const GLshort *); +#define CALL_SecondaryColor3svEXT(disp, parameters) \ + (* GET_SecondaryColor3svEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3svEXT GET_SecondaryColor3svEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3svEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3svEXT)); +} + +static INLINE void SET_SecondaryColor3svEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_SecondaryColor3svEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3ubEXT)(GLubyte, GLubyte, GLubyte); +#define CALL_SecondaryColor3ubEXT(disp, parameters) \ + (* GET_SecondaryColor3ubEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3ubEXT GET_SecondaryColor3ubEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3ubEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3ubEXT)); +} + +static INLINE void SET_SecondaryColor3ubEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLubyte, GLubyte, GLubyte)) { + SET_by_offset(disp, _gloffset_SecondaryColor3ubEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3ubvEXT)(const GLubyte *); +#define CALL_SecondaryColor3ubvEXT(disp, parameters) \ + (* GET_SecondaryColor3ubvEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3ubvEXT GET_SecondaryColor3ubvEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3ubvEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3ubvEXT)); +} + +static INLINE void SET_SecondaryColor3ubvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLubyte *)) { + SET_by_offset(disp, _gloffset_SecondaryColor3ubvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3uiEXT)(GLuint, GLuint, GLuint); +#define CALL_SecondaryColor3uiEXT(disp, parameters) \ + (* GET_SecondaryColor3uiEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3uiEXT GET_SecondaryColor3uiEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3uiEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3uiEXT)); +} + +static INLINE void SET_SecondaryColor3uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_SecondaryColor3uiEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3uivEXT)(const GLuint *); +#define CALL_SecondaryColor3uivEXT(disp, parameters) \ + (* GET_SecondaryColor3uivEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3uivEXT GET_SecondaryColor3uivEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3uivEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3uivEXT)); +} + +static INLINE void SET_SecondaryColor3uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLuint *)) { + SET_by_offset(disp, _gloffset_SecondaryColor3uivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3usEXT)(GLushort, GLushort, GLushort); +#define CALL_SecondaryColor3usEXT(disp, parameters) \ + (* GET_SecondaryColor3usEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3usEXT GET_SecondaryColor3usEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3usEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3usEXT)); +} + +static INLINE void SET_SecondaryColor3usEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLushort, GLushort, GLushort)) { + SET_by_offset(disp, _gloffset_SecondaryColor3usEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColor3usvEXT)(const GLushort *); +#define CALL_SecondaryColor3usvEXT(disp, parameters) \ + (* GET_SecondaryColor3usvEXT(disp)) parameters +static INLINE _glptr_SecondaryColor3usvEXT GET_SecondaryColor3usvEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColor3usvEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3usvEXT)); +} + +static INLINE void SET_SecondaryColor3usvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLushort *)) { + SET_by_offset(disp, _gloffset_SecondaryColor3usvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_SecondaryColorPointerEXT)(GLint, GLenum, GLsizei, const GLvoid *); +#define CALL_SecondaryColorPointerEXT(disp, parameters) \ + (* GET_SecondaryColorPointerEXT(disp)) parameters +static INLINE _glptr_SecondaryColorPointerEXT GET_SecondaryColorPointerEXT(struct _glapi_table *disp) { + return (_glptr_SecondaryColorPointerEXT) (GET_by_offset(disp, _gloffset_SecondaryColorPointerEXT)); +} + +static INLINE void SET_SecondaryColorPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_SecondaryColorPointerEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiDrawArraysEXT)(GLenum, const GLint *, const GLsizei *, GLsizei); +#define CALL_MultiDrawArraysEXT(disp, parameters) \ + (* GET_MultiDrawArraysEXT(disp)) parameters +static INLINE _glptr_MultiDrawArraysEXT GET_MultiDrawArraysEXT(struct _glapi_table *disp) { + return (_glptr_MultiDrawArraysEXT) (GET_by_offset(disp, _gloffset_MultiDrawArraysEXT)); +} + +static INLINE void SET_MultiDrawArraysEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *, const GLsizei *, GLsizei)) { + SET_by_offset(disp, _gloffset_MultiDrawArraysEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiDrawElementsEXT)(GLenum, const GLsizei *, GLenum, const GLvoid **, GLsizei); +#define CALL_MultiDrawElementsEXT(disp, parameters) \ + (* GET_MultiDrawElementsEXT(disp)) parameters +static INLINE _glptr_MultiDrawElementsEXT GET_MultiDrawElementsEXT(struct _glapi_table *disp) { + return (_glptr_MultiDrawElementsEXT) (GET_by_offset(disp, _gloffset_MultiDrawElementsEXT)); +} + +static INLINE void SET_MultiDrawElementsEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLsizei *, GLenum, const GLvoid **, GLsizei)) { + SET_by_offset(disp, _gloffset_MultiDrawElementsEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_FogCoordPointerEXT)(GLenum, GLsizei, const GLvoid *); +#define CALL_FogCoordPointerEXT(disp, parameters) \ + (* GET_FogCoordPointerEXT(disp)) parameters +static INLINE _glptr_FogCoordPointerEXT GET_FogCoordPointerEXT(struct _glapi_table *disp) { + return (_glptr_FogCoordPointerEXT) (GET_by_offset(disp, _gloffset_FogCoordPointerEXT)); +} + +static INLINE void SET_FogCoordPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_FogCoordPointerEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_FogCoorddEXT)(GLdouble); +#define CALL_FogCoorddEXT(disp, parameters) \ + (* GET_FogCoorddEXT(disp)) parameters +static INLINE _glptr_FogCoorddEXT GET_FogCoorddEXT(struct _glapi_table *disp) { + return (_glptr_FogCoorddEXT) (GET_by_offset(disp, _gloffset_FogCoorddEXT)); +} + +static INLINE void SET_FogCoorddEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble)) { + SET_by_offset(disp, _gloffset_FogCoorddEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_FogCoorddvEXT)(const GLdouble *); +#define CALL_FogCoorddvEXT(disp, parameters) \ + (* GET_FogCoorddvEXT(disp)) parameters +static INLINE _glptr_FogCoorddvEXT GET_FogCoorddvEXT(struct _glapi_table *disp) { + return (_glptr_FogCoorddvEXT) (GET_by_offset(disp, _gloffset_FogCoorddvEXT)); +} + +static INLINE void SET_FogCoorddvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_FogCoorddvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_FogCoordfEXT)(GLfloat); +#define CALL_FogCoordfEXT(disp, parameters) \ + (* GET_FogCoordfEXT(disp)) parameters +static INLINE _glptr_FogCoordfEXT GET_FogCoordfEXT(struct _glapi_table *disp) { + return (_glptr_FogCoordfEXT) (GET_by_offset(disp, _gloffset_FogCoordfEXT)); +} + +static INLINE void SET_FogCoordfEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { + SET_by_offset(disp, _gloffset_FogCoordfEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_FogCoordfvEXT)(const GLfloat *); +#define CALL_FogCoordfvEXT(disp, parameters) \ + (* GET_FogCoordfvEXT(disp)) parameters +static INLINE _glptr_FogCoordfvEXT GET_FogCoordfvEXT(struct _glapi_table *disp) { + return (_glptr_FogCoordfvEXT) (GET_by_offset(disp, _gloffset_FogCoordfvEXT)); +} + +static INLINE void SET_FogCoordfvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_FogCoordfvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_PixelTexGenSGIX)(GLenum); +#define CALL_PixelTexGenSGIX(disp, parameters) \ + (* GET_PixelTexGenSGIX(disp)) parameters +static INLINE _glptr_PixelTexGenSGIX GET_PixelTexGenSGIX(struct _glapi_table *disp) { + return (_glptr_PixelTexGenSGIX) (GET_by_offset(disp, _gloffset_PixelTexGenSGIX)); +} + +static INLINE void SET_PixelTexGenSGIX(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_PixelTexGenSGIX, fn); +} + +typedef void (GLAPIENTRYP _glptr_BlendFuncSeparateEXT)(GLenum, GLenum, GLenum, GLenum); +#define CALL_BlendFuncSeparateEXT(disp, parameters) \ + (* GET_BlendFuncSeparateEXT(disp)) parameters +static INLINE _glptr_BlendFuncSeparateEXT GET_BlendFuncSeparateEXT(struct _glapi_table *disp) { + return (_glptr_BlendFuncSeparateEXT) (GET_by_offset(disp, _gloffset_BlendFuncSeparateEXT)); +} + +static INLINE void SET_BlendFuncSeparateEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_BlendFuncSeparateEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_FlushVertexArrayRangeNV)(void); +#define CALL_FlushVertexArrayRangeNV(disp, parameters) \ + (* GET_FlushVertexArrayRangeNV(disp)) parameters +static INLINE _glptr_FlushVertexArrayRangeNV GET_FlushVertexArrayRangeNV(struct _glapi_table *disp) { + return (_glptr_FlushVertexArrayRangeNV) (GET_by_offset(disp, _gloffset_FlushVertexArrayRangeNV)); +} + +static INLINE void SET_FlushVertexArrayRangeNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_FlushVertexArrayRangeNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexArrayRangeNV)(GLsizei, const GLvoid *); +#define CALL_VertexArrayRangeNV(disp, parameters) \ + (* GET_VertexArrayRangeNV(disp)) parameters +static INLINE _glptr_VertexArrayRangeNV GET_VertexArrayRangeNV(struct _glapi_table *disp) { + return (_glptr_VertexArrayRangeNV) (GET_by_offset(disp, _gloffset_VertexArrayRangeNV)); +} + +static INLINE void SET_VertexArrayRangeNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_VertexArrayRangeNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_CombinerInputNV)(GLenum, GLenum, GLenum, GLenum, GLenum, GLenum); +#define CALL_CombinerInputNV(disp, parameters) \ + (* GET_CombinerInputNV(disp)) parameters +static INLINE _glptr_CombinerInputNV GET_CombinerInputNV(struct _glapi_table *disp) { + return (_glptr_CombinerInputNV) (GET_by_offset(disp, _gloffset_CombinerInputNV)); +} + +static INLINE void SET_CombinerInputNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum, GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_CombinerInputNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_CombinerOutputNV)(GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLboolean, GLboolean, GLboolean); +#define CALL_CombinerOutputNV(disp, parameters) \ + (* GET_CombinerOutputNV(disp)) parameters +static INLINE _glptr_CombinerOutputNV GET_CombinerOutputNV(struct _glapi_table *disp) { + return (_glptr_CombinerOutputNV) (GET_by_offset(disp, _gloffset_CombinerOutputNV)); +} + +static INLINE void SET_CombinerOutputNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLboolean, GLboolean, GLboolean)) { + SET_by_offset(disp, _gloffset_CombinerOutputNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_CombinerParameterfNV)(GLenum, GLfloat); +#define CALL_CombinerParameterfNV(disp, parameters) \ + (* GET_CombinerParameterfNV(disp)) parameters +static INLINE _glptr_CombinerParameterfNV GET_CombinerParameterfNV(struct _glapi_table *disp) { + return (_glptr_CombinerParameterfNV) (GET_by_offset(disp, _gloffset_CombinerParameterfNV)); +} + +static INLINE void SET_CombinerParameterfNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { + SET_by_offset(disp, _gloffset_CombinerParameterfNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_CombinerParameterfvNV)(GLenum, const GLfloat *); +#define CALL_CombinerParameterfvNV(disp, parameters) \ + (* GET_CombinerParameterfvNV(disp)) parameters +static INLINE _glptr_CombinerParameterfvNV GET_CombinerParameterfvNV(struct _glapi_table *disp) { + return (_glptr_CombinerParameterfvNV) (GET_by_offset(disp, _gloffset_CombinerParameterfvNV)); +} + +static INLINE void SET_CombinerParameterfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_CombinerParameterfvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_CombinerParameteriNV)(GLenum, GLint); +#define CALL_CombinerParameteriNV(disp, parameters) \ + (* GET_CombinerParameteriNV(disp)) parameters +static INLINE _glptr_CombinerParameteriNV GET_CombinerParameteriNV(struct _glapi_table *disp) { + return (_glptr_CombinerParameteriNV) (GET_by_offset(disp, _gloffset_CombinerParameteriNV)); +} + +static INLINE void SET_CombinerParameteriNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { + SET_by_offset(disp, _gloffset_CombinerParameteriNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_CombinerParameterivNV)(GLenum, const GLint *); +#define CALL_CombinerParameterivNV(disp, parameters) \ + (* GET_CombinerParameterivNV(disp)) parameters +static INLINE _glptr_CombinerParameterivNV GET_CombinerParameterivNV(struct _glapi_table *disp) { + return (_glptr_CombinerParameterivNV) (GET_by_offset(disp, _gloffset_CombinerParameterivNV)); +} + +static INLINE void SET_CombinerParameterivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_CombinerParameterivNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_FinalCombinerInputNV)(GLenum, GLenum, GLenum, GLenum); +#define CALL_FinalCombinerInputNV(disp, parameters) \ + (* GET_FinalCombinerInputNV(disp)) parameters +static INLINE _glptr_FinalCombinerInputNV GET_FinalCombinerInputNV(struct _glapi_table *disp) { + return (_glptr_FinalCombinerInputNV) (GET_by_offset(disp, _gloffset_FinalCombinerInputNV)); +} + +static INLINE void SET_FinalCombinerInputNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_FinalCombinerInputNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetCombinerInputParameterfvNV)(GLenum, GLenum, GLenum, GLenum, GLfloat *); +#define CALL_GetCombinerInputParameterfvNV(disp, parameters) \ + (* GET_GetCombinerInputParameterfvNV(disp)) parameters +static INLINE _glptr_GetCombinerInputParameterfvNV GET_GetCombinerInputParameterfvNV(struct _glapi_table *disp) { + return (_glptr_GetCombinerInputParameterfvNV) (GET_by_offset(disp, _gloffset_GetCombinerInputParameterfvNV)); +} + +static INLINE void SET_GetCombinerInputParameterfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetCombinerInputParameterfvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetCombinerInputParameterivNV)(GLenum, GLenum, GLenum, GLenum, GLint *); +#define CALL_GetCombinerInputParameterivNV(disp, parameters) \ + (* GET_GetCombinerInputParameterivNV(disp)) parameters +static INLINE _glptr_GetCombinerInputParameterivNV GET_GetCombinerInputParameterivNV(struct _glapi_table *disp) { + return (_glptr_GetCombinerInputParameterivNV) (GET_by_offset(disp, _gloffset_GetCombinerInputParameterivNV)); +} + +static INLINE void SET_GetCombinerInputParameterivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetCombinerInputParameterivNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetCombinerOutputParameterfvNV)(GLenum, GLenum, GLenum, GLfloat *); +#define CALL_GetCombinerOutputParameterfvNV(disp, parameters) \ + (* GET_GetCombinerOutputParameterfvNV(disp)) parameters +static INLINE _glptr_GetCombinerOutputParameterfvNV GET_GetCombinerOutputParameterfvNV(struct _glapi_table *disp) { + return (_glptr_GetCombinerOutputParameterfvNV) (GET_by_offset(disp, _gloffset_GetCombinerOutputParameterfvNV)); +} + +static INLINE void SET_GetCombinerOutputParameterfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetCombinerOutputParameterfvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetCombinerOutputParameterivNV)(GLenum, GLenum, GLenum, GLint *); +#define CALL_GetCombinerOutputParameterivNV(disp, parameters) \ + (* GET_GetCombinerOutputParameterivNV(disp)) parameters +static INLINE _glptr_GetCombinerOutputParameterivNV GET_GetCombinerOutputParameterivNV(struct _glapi_table *disp) { + return (_glptr_GetCombinerOutputParameterivNV) (GET_by_offset(disp, _gloffset_GetCombinerOutputParameterivNV)); +} + +static INLINE void SET_GetCombinerOutputParameterivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetCombinerOutputParameterivNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetFinalCombinerInputParameterfvNV)(GLenum, GLenum, GLfloat *); +#define CALL_GetFinalCombinerInputParameterfvNV(disp, parameters) \ + (* GET_GetFinalCombinerInputParameterfvNV(disp)) parameters +static INLINE _glptr_GetFinalCombinerInputParameterfvNV GET_GetFinalCombinerInputParameterfvNV(struct _glapi_table *disp) { + return (_glptr_GetFinalCombinerInputParameterfvNV) (GET_by_offset(disp, _gloffset_GetFinalCombinerInputParameterfvNV)); +} + +static INLINE void SET_GetFinalCombinerInputParameterfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetFinalCombinerInputParameterfvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetFinalCombinerInputParameterivNV)(GLenum, GLenum, GLint *); +#define CALL_GetFinalCombinerInputParameterivNV(disp, parameters) \ + (* GET_GetFinalCombinerInputParameterivNV(disp)) parameters +static INLINE _glptr_GetFinalCombinerInputParameterivNV GET_GetFinalCombinerInputParameterivNV(struct _glapi_table *disp) { + return (_glptr_GetFinalCombinerInputParameterivNV) (GET_by_offset(disp, _gloffset_GetFinalCombinerInputParameterivNV)); +} + +static INLINE void SET_GetFinalCombinerInputParameterivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetFinalCombinerInputParameterivNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_ResizeBuffersMESA)(void); +#define CALL_ResizeBuffersMESA(disp, parameters) \ + (* GET_ResizeBuffersMESA(disp)) parameters +static INLINE _glptr_ResizeBuffersMESA GET_ResizeBuffersMESA(struct _glapi_table *disp) { + return (_glptr_ResizeBuffersMESA) (GET_by_offset(disp, _gloffset_ResizeBuffersMESA)); +} + +static INLINE void SET_ResizeBuffersMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_ResizeBuffersMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos2dMESA)(GLdouble, GLdouble); +#define CALL_WindowPos2dMESA(disp, parameters) \ + (* GET_WindowPos2dMESA(disp)) parameters +static INLINE _glptr_WindowPos2dMESA GET_WindowPos2dMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos2dMESA) (GET_by_offset(disp, _gloffset_WindowPos2dMESA)); +} + +static INLINE void SET_WindowPos2dMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_WindowPos2dMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos2dvMESA)(const GLdouble *); +#define CALL_WindowPos2dvMESA(disp, parameters) \ + (* GET_WindowPos2dvMESA(disp)) parameters +static INLINE _glptr_WindowPos2dvMESA GET_WindowPos2dvMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos2dvMESA) (GET_by_offset(disp, _gloffset_WindowPos2dvMESA)); +} + +static INLINE void SET_WindowPos2dvMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_WindowPos2dvMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos2fMESA)(GLfloat, GLfloat); +#define CALL_WindowPos2fMESA(disp, parameters) \ + (* GET_WindowPos2fMESA(disp)) parameters +static INLINE _glptr_WindowPos2fMESA GET_WindowPos2fMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos2fMESA) (GET_by_offset(disp, _gloffset_WindowPos2fMESA)); +} + +static INLINE void SET_WindowPos2fMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_WindowPos2fMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos2fvMESA)(const GLfloat *); +#define CALL_WindowPos2fvMESA(disp, parameters) \ + (* GET_WindowPos2fvMESA(disp)) parameters +static INLINE _glptr_WindowPos2fvMESA GET_WindowPos2fvMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos2fvMESA) (GET_by_offset(disp, _gloffset_WindowPos2fvMESA)); +} + +static INLINE void SET_WindowPos2fvMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_WindowPos2fvMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos2iMESA)(GLint, GLint); +#define CALL_WindowPos2iMESA(disp, parameters) \ + (* GET_WindowPos2iMESA(disp)) parameters +static INLINE _glptr_WindowPos2iMESA GET_WindowPos2iMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos2iMESA) (GET_by_offset(disp, _gloffset_WindowPos2iMESA)); +} + +static INLINE void SET_WindowPos2iMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint)) { + SET_by_offset(disp, _gloffset_WindowPos2iMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos2ivMESA)(const GLint *); +#define CALL_WindowPos2ivMESA(disp, parameters) \ + (* GET_WindowPos2ivMESA(disp)) parameters +static INLINE _glptr_WindowPos2ivMESA GET_WindowPos2ivMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos2ivMESA) (GET_by_offset(disp, _gloffset_WindowPos2ivMESA)); +} + +static INLINE void SET_WindowPos2ivMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_WindowPos2ivMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos2sMESA)(GLshort, GLshort); +#define CALL_WindowPos2sMESA(disp, parameters) \ + (* GET_WindowPos2sMESA(disp)) parameters +static INLINE _glptr_WindowPos2sMESA GET_WindowPos2sMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos2sMESA) (GET_by_offset(disp, _gloffset_WindowPos2sMESA)); +} + +static INLINE void SET_WindowPos2sMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_WindowPos2sMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos2svMESA)(const GLshort *); +#define CALL_WindowPos2svMESA(disp, parameters) \ + (* GET_WindowPos2svMESA(disp)) parameters +static INLINE _glptr_WindowPos2svMESA GET_WindowPos2svMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos2svMESA) (GET_by_offset(disp, _gloffset_WindowPos2svMESA)); +} + +static INLINE void SET_WindowPos2svMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_WindowPos2svMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos3dMESA)(GLdouble, GLdouble, GLdouble); +#define CALL_WindowPos3dMESA(disp, parameters) \ + (* GET_WindowPos3dMESA(disp)) parameters +static INLINE _glptr_WindowPos3dMESA GET_WindowPos3dMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos3dMESA) (GET_by_offset(disp, _gloffset_WindowPos3dMESA)); +} + +static INLINE void SET_WindowPos3dMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_WindowPos3dMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos3dvMESA)(const GLdouble *); +#define CALL_WindowPos3dvMESA(disp, parameters) \ + (* GET_WindowPos3dvMESA(disp)) parameters +static INLINE _glptr_WindowPos3dvMESA GET_WindowPos3dvMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos3dvMESA) (GET_by_offset(disp, _gloffset_WindowPos3dvMESA)); +} + +static INLINE void SET_WindowPos3dvMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_WindowPos3dvMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos3fMESA)(GLfloat, GLfloat, GLfloat); +#define CALL_WindowPos3fMESA(disp, parameters) \ + (* GET_WindowPos3fMESA(disp)) parameters +static INLINE _glptr_WindowPos3fMESA GET_WindowPos3fMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos3fMESA) (GET_by_offset(disp, _gloffset_WindowPos3fMESA)); +} + +static INLINE void SET_WindowPos3fMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_WindowPos3fMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos3fvMESA)(const GLfloat *); +#define CALL_WindowPos3fvMESA(disp, parameters) \ + (* GET_WindowPos3fvMESA(disp)) parameters +static INLINE _glptr_WindowPos3fvMESA GET_WindowPos3fvMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos3fvMESA) (GET_by_offset(disp, _gloffset_WindowPos3fvMESA)); +} + +static INLINE void SET_WindowPos3fvMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_WindowPos3fvMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos3iMESA)(GLint, GLint, GLint); +#define CALL_WindowPos3iMESA(disp, parameters) \ + (* GET_WindowPos3iMESA(disp)) parameters +static INLINE _glptr_WindowPos3iMESA GET_WindowPos3iMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos3iMESA) (GET_by_offset(disp, _gloffset_WindowPos3iMESA)); +} + +static INLINE void SET_WindowPos3iMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_WindowPos3iMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos3ivMESA)(const GLint *); +#define CALL_WindowPos3ivMESA(disp, parameters) \ + (* GET_WindowPos3ivMESA(disp)) parameters +static INLINE _glptr_WindowPos3ivMESA GET_WindowPos3ivMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos3ivMESA) (GET_by_offset(disp, _gloffset_WindowPos3ivMESA)); +} + +static INLINE void SET_WindowPos3ivMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_WindowPos3ivMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos3sMESA)(GLshort, GLshort, GLshort); +#define CALL_WindowPos3sMESA(disp, parameters) \ + (* GET_WindowPos3sMESA(disp)) parameters +static INLINE _glptr_WindowPos3sMESA GET_WindowPos3sMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos3sMESA) (GET_by_offset(disp, _gloffset_WindowPos3sMESA)); +} + +static INLINE void SET_WindowPos3sMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_WindowPos3sMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos3svMESA)(const GLshort *); +#define CALL_WindowPos3svMESA(disp, parameters) \ + (* GET_WindowPos3svMESA(disp)) parameters +static INLINE _glptr_WindowPos3svMESA GET_WindowPos3svMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos3svMESA) (GET_by_offset(disp, _gloffset_WindowPos3svMESA)); +} + +static INLINE void SET_WindowPos3svMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_WindowPos3svMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos4dMESA)(GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_WindowPos4dMESA(disp, parameters) \ + (* GET_WindowPos4dMESA(disp)) parameters +static INLINE _glptr_WindowPos4dMESA GET_WindowPos4dMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos4dMESA) (GET_by_offset(disp, _gloffset_WindowPos4dMESA)); +} + +static INLINE void SET_WindowPos4dMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_WindowPos4dMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos4dvMESA)(const GLdouble *); +#define CALL_WindowPos4dvMESA(disp, parameters) \ + (* GET_WindowPos4dvMESA(disp)) parameters +static INLINE _glptr_WindowPos4dvMESA GET_WindowPos4dvMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos4dvMESA) (GET_by_offset(disp, _gloffset_WindowPos4dvMESA)); +} + +static INLINE void SET_WindowPos4dvMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { + SET_by_offset(disp, _gloffset_WindowPos4dvMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos4fMESA)(GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_WindowPos4fMESA(disp, parameters) \ + (* GET_WindowPos4fMESA(disp)) parameters +static INLINE _glptr_WindowPos4fMESA GET_WindowPos4fMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos4fMESA) (GET_by_offset(disp, _gloffset_WindowPos4fMESA)); +} + +static INLINE void SET_WindowPos4fMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_WindowPos4fMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos4fvMESA)(const GLfloat *); +#define CALL_WindowPos4fvMESA(disp, parameters) \ + (* GET_WindowPos4fvMESA(disp)) parameters +static INLINE _glptr_WindowPos4fvMESA GET_WindowPos4fvMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos4fvMESA) (GET_by_offset(disp, _gloffset_WindowPos4fvMESA)); +} + +static INLINE void SET_WindowPos4fvMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { + SET_by_offset(disp, _gloffset_WindowPos4fvMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos4iMESA)(GLint, GLint, GLint, GLint); +#define CALL_WindowPos4iMESA(disp, parameters) \ + (* GET_WindowPos4iMESA(disp)) parameters +static INLINE _glptr_WindowPos4iMESA GET_WindowPos4iMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos4iMESA) (GET_by_offset(disp, _gloffset_WindowPos4iMESA)); +} + +static INLINE void SET_WindowPos4iMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_WindowPos4iMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos4ivMESA)(const GLint *); +#define CALL_WindowPos4ivMESA(disp, parameters) \ + (* GET_WindowPos4ivMESA(disp)) parameters +static INLINE _glptr_WindowPos4ivMESA GET_WindowPos4ivMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos4ivMESA) (GET_by_offset(disp, _gloffset_WindowPos4ivMESA)); +} + +static INLINE void SET_WindowPos4ivMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { + SET_by_offset(disp, _gloffset_WindowPos4ivMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos4sMESA)(GLshort, GLshort, GLshort, GLshort); +#define CALL_WindowPos4sMESA(disp, parameters) \ + (* GET_WindowPos4sMESA(disp)) parameters +static INLINE _glptr_WindowPos4sMESA GET_WindowPos4sMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos4sMESA) (GET_by_offset(disp, _gloffset_WindowPos4sMESA)); +} + +static INLINE void SET_WindowPos4sMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_WindowPos4sMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_WindowPos4svMESA)(const GLshort *); +#define CALL_WindowPos4svMESA(disp, parameters) \ + (* GET_WindowPos4svMESA(disp)) parameters +static INLINE _glptr_WindowPos4svMESA GET_WindowPos4svMESA(struct _glapi_table *disp) { + return (_glptr_WindowPos4svMESA) (GET_by_offset(disp, _gloffset_WindowPos4svMESA)); +} + +static INLINE void SET_WindowPos4svMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { + SET_by_offset(disp, _gloffset_WindowPos4svMESA, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiModeDrawArraysIBM)(const GLenum *, const GLint *, const GLsizei *, GLsizei, GLint); +#define CALL_MultiModeDrawArraysIBM(disp, parameters) \ + (* GET_MultiModeDrawArraysIBM(disp)) parameters +static INLINE _glptr_MultiModeDrawArraysIBM GET_MultiModeDrawArraysIBM(struct _glapi_table *disp) { + return (_glptr_MultiModeDrawArraysIBM) (GET_by_offset(disp, _gloffset_MultiModeDrawArraysIBM)); +} + +static INLINE void SET_MultiModeDrawArraysIBM(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLenum *, const GLint *, const GLsizei *, GLsizei, GLint)) { + SET_by_offset(disp, _gloffset_MultiModeDrawArraysIBM, fn); +} + +typedef void (GLAPIENTRYP _glptr_MultiModeDrawElementsIBM)(const GLenum *, const GLsizei *, GLenum, const GLvoid * const *, GLsizei, GLint); +#define CALL_MultiModeDrawElementsIBM(disp, parameters) \ + (* GET_MultiModeDrawElementsIBM(disp)) parameters +static INLINE _glptr_MultiModeDrawElementsIBM GET_MultiModeDrawElementsIBM(struct _glapi_table *disp) { + return (_glptr_MultiModeDrawElementsIBM) (GET_by_offset(disp, _gloffset_MultiModeDrawElementsIBM)); +} + +static INLINE void SET_MultiModeDrawElementsIBM(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLenum *, const GLsizei *, GLenum, const GLvoid * const *, GLsizei, GLint)) { + SET_by_offset(disp, _gloffset_MultiModeDrawElementsIBM, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteFencesNV)(GLsizei, const GLuint *); +#define CALL_DeleteFencesNV(disp, parameters) \ + (* GET_DeleteFencesNV(disp)) parameters +static INLINE _glptr_DeleteFencesNV GET_DeleteFencesNV(struct _glapi_table *disp) { + return (_glptr_DeleteFencesNV) (GET_by_offset(disp, _gloffset_DeleteFencesNV)); +} + +static INLINE void SET_DeleteFencesNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_DeleteFencesNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_FinishFenceNV)(GLuint); +#define CALL_FinishFenceNV(disp, parameters) \ + (* GET_FinishFenceNV(disp)) parameters +static INLINE _glptr_FinishFenceNV GET_FinishFenceNV(struct _glapi_table *disp) { + return (_glptr_FinishFenceNV) (GET_by_offset(disp, _gloffset_FinishFenceNV)); +} + +static INLINE void SET_FinishFenceNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_FinishFenceNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GenFencesNV)(GLsizei, GLuint *); +#define CALL_GenFencesNV(disp, parameters) \ + (* GET_GenFencesNV(disp)) parameters +static INLINE _glptr_GenFencesNV GET_GenFencesNV(struct _glapi_table *disp) { + return (_glptr_GenFencesNV) (GET_by_offset(disp, _gloffset_GenFencesNV)); +} + +static INLINE void SET_GenFencesNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_GenFencesNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetFenceivNV)(GLuint, GLenum, GLint *); +#define CALL_GetFenceivNV(disp, parameters) \ + (* GET_GetFenceivNV(disp)) parameters +static INLINE _glptr_GetFenceivNV GET_GetFenceivNV(struct _glapi_table *disp) { + return (_glptr_GetFenceivNV) (GET_by_offset(disp, _gloffset_GetFenceivNV)); +} + +static INLINE void SET_GetFenceivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetFenceivNV, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsFenceNV)(GLuint); +#define CALL_IsFenceNV(disp, parameters) \ + (* GET_IsFenceNV(disp)) parameters +static INLINE _glptr_IsFenceNV GET_IsFenceNV(struct _glapi_table *disp) { + return (_glptr_IsFenceNV) (GET_by_offset(disp, _gloffset_IsFenceNV)); +} + +static INLINE void SET_IsFenceNV(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IsFenceNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_SetFenceNV)(GLuint, GLenum); +#define CALL_SetFenceNV(disp, parameters) \ + (* GET_SetFenceNV(disp)) parameters +static INLINE _glptr_SetFenceNV GET_SetFenceNV(struct _glapi_table *disp) { + return (_glptr_SetFenceNV) (GET_by_offset(disp, _gloffset_SetFenceNV)); +} + +static INLINE void SET_SetFenceNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum)) { + SET_by_offset(disp, _gloffset_SetFenceNV, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_TestFenceNV)(GLuint); +#define CALL_TestFenceNV(disp, parameters) \ + (* GET_TestFenceNV(disp)) parameters +static INLINE _glptr_TestFenceNV GET_TestFenceNV(struct _glapi_table *disp) { + return (_glptr_TestFenceNV) (GET_by_offset(disp, _gloffset_TestFenceNV)); +} + +static INLINE void SET_TestFenceNV(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_TestFenceNV, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_AreProgramsResidentNV)(GLsizei, const GLuint *, GLboolean *); +#define CALL_AreProgramsResidentNV(disp, parameters) \ + (* GET_AreProgramsResidentNV(disp)) parameters +static INLINE _glptr_AreProgramsResidentNV GET_AreProgramsResidentNV(struct _glapi_table *disp) { + return (_glptr_AreProgramsResidentNV) (GET_by_offset(disp, _gloffset_AreProgramsResidentNV)); +} + +static INLINE void SET_AreProgramsResidentNV(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLsizei, const GLuint *, GLboolean *)) { + SET_by_offset(disp, _gloffset_AreProgramsResidentNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindProgramNV)(GLenum, GLuint); +#define CALL_BindProgramNV(disp, parameters) \ + (* GET_BindProgramNV(disp)) parameters +static INLINE _glptr_BindProgramNV GET_BindProgramNV(struct _glapi_table *disp) { + return (_glptr_BindProgramNV) (GET_by_offset(disp, _gloffset_BindProgramNV)); +} + +static INLINE void SET_BindProgramNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_BindProgramNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteProgramsNV)(GLsizei, const GLuint *); +#define CALL_DeleteProgramsNV(disp, parameters) \ + (* GET_DeleteProgramsNV(disp)) parameters +static INLINE _glptr_DeleteProgramsNV GET_DeleteProgramsNV(struct _glapi_table *disp) { + return (_glptr_DeleteProgramsNV) (GET_by_offset(disp, _gloffset_DeleteProgramsNV)); +} + +static INLINE void SET_DeleteProgramsNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_DeleteProgramsNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_ExecuteProgramNV)(GLenum, GLuint, const GLfloat *); +#define CALL_ExecuteProgramNV(disp, parameters) \ + (* GET_ExecuteProgramNV(disp)) parameters +static INLINE _glptr_ExecuteProgramNV GET_ExecuteProgramNV(struct _glapi_table *disp) { + return (_glptr_ExecuteProgramNV) (GET_by_offset(disp, _gloffset_ExecuteProgramNV)); +} + +static INLINE void SET_ExecuteProgramNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_ExecuteProgramNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GenProgramsNV)(GLsizei, GLuint *); +#define CALL_GenProgramsNV(disp, parameters) \ + (* GET_GenProgramsNV(disp)) parameters +static INLINE _glptr_GenProgramsNV GET_GenProgramsNV(struct _glapi_table *disp) { + return (_glptr_GenProgramsNV) (GET_by_offset(disp, _gloffset_GenProgramsNV)); +} + +static INLINE void SET_GenProgramsNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_GenProgramsNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramParameterdvNV)(GLenum, GLuint, GLenum, GLdouble *); +#define CALL_GetProgramParameterdvNV(disp, parameters) \ + (* GET_GetProgramParameterdvNV(disp)) parameters +static INLINE _glptr_GetProgramParameterdvNV GET_GetProgramParameterdvNV(struct _glapi_table *disp) { + return (_glptr_GetProgramParameterdvNV) (GET_by_offset(disp, _gloffset_GetProgramParameterdvNV)); +} + +static INLINE void SET_GetProgramParameterdvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLenum, GLdouble *)) { + SET_by_offset(disp, _gloffset_GetProgramParameterdvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramParameterfvNV)(GLenum, GLuint, GLenum, GLfloat *); +#define CALL_GetProgramParameterfvNV(disp, parameters) \ + (* GET_GetProgramParameterfvNV(disp)) parameters +static INLINE _glptr_GetProgramParameterfvNV GET_GetProgramParameterfvNV(struct _glapi_table *disp) { + return (_glptr_GetProgramParameterfvNV) (GET_by_offset(disp, _gloffset_GetProgramParameterfvNV)); +} + +static INLINE void SET_GetProgramParameterfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetProgramParameterfvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramStringNV)(GLuint, GLenum, GLubyte *); +#define CALL_GetProgramStringNV(disp, parameters) \ + (* GET_GetProgramStringNV(disp)) parameters +static INLINE _glptr_GetProgramStringNV GET_GetProgramStringNV(struct _glapi_table *disp) { + return (_glptr_GetProgramStringNV) (GET_by_offset(disp, _gloffset_GetProgramStringNV)); +} + +static INLINE void SET_GetProgramStringNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLubyte *)) { + SET_by_offset(disp, _gloffset_GetProgramStringNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramivNV)(GLuint, GLenum, GLint *); +#define CALL_GetProgramivNV(disp, parameters) \ + (* GET_GetProgramivNV(disp)) parameters +static INLINE _glptr_GetProgramivNV GET_GetProgramivNV(struct _glapi_table *disp) { + return (_glptr_GetProgramivNV) (GET_by_offset(disp, _gloffset_GetProgramivNV)); +} + +static INLINE void SET_GetProgramivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetProgramivNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTrackMatrixivNV)(GLenum, GLuint, GLenum, GLint *); +#define CALL_GetTrackMatrixivNV(disp, parameters) \ + (* GET_GetTrackMatrixivNV(disp)) parameters +static INLINE _glptr_GetTrackMatrixivNV GET_GetTrackMatrixivNV(struct _glapi_table *disp) { + return (_glptr_GetTrackMatrixivNV) (GET_by_offset(disp, _gloffset_GetTrackMatrixivNV)); +} + +static INLINE void SET_GetTrackMatrixivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetTrackMatrixivNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetVertexAttribPointervNV)(GLuint, GLenum, GLvoid **); +#define CALL_GetVertexAttribPointervNV(disp, parameters) \ + (* GET_GetVertexAttribPointervNV(disp)) parameters +static INLINE _glptr_GetVertexAttribPointervNV GET_GetVertexAttribPointervNV(struct _glapi_table *disp) { + return (_glptr_GetVertexAttribPointervNV) (GET_by_offset(disp, _gloffset_GetVertexAttribPointervNV)); +} + +static INLINE void SET_GetVertexAttribPointervNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLvoid **)) { + SET_by_offset(disp, _gloffset_GetVertexAttribPointervNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetVertexAttribdvNV)(GLuint, GLenum, GLdouble *); +#define CALL_GetVertexAttribdvNV(disp, parameters) \ + (* GET_GetVertexAttribdvNV(disp)) parameters +static INLINE _glptr_GetVertexAttribdvNV GET_GetVertexAttribdvNV(struct _glapi_table *disp) { + return (_glptr_GetVertexAttribdvNV) (GET_by_offset(disp, _gloffset_GetVertexAttribdvNV)); +} + +static INLINE void SET_GetVertexAttribdvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLdouble *)) { + SET_by_offset(disp, _gloffset_GetVertexAttribdvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetVertexAttribfvNV)(GLuint, GLenum, GLfloat *); +#define CALL_GetVertexAttribfvNV(disp, parameters) \ + (* GET_GetVertexAttribfvNV(disp)) parameters +static INLINE _glptr_GetVertexAttribfvNV GET_GetVertexAttribfvNV(struct _glapi_table *disp) { + return (_glptr_GetVertexAttribfvNV) (GET_by_offset(disp, _gloffset_GetVertexAttribfvNV)); +} + +static INLINE void SET_GetVertexAttribfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetVertexAttribfvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetVertexAttribivNV)(GLuint, GLenum, GLint *); +#define CALL_GetVertexAttribivNV(disp, parameters) \ + (* GET_GetVertexAttribivNV(disp)) parameters +static INLINE _glptr_GetVertexAttribivNV GET_GetVertexAttribivNV(struct _glapi_table *disp) { + return (_glptr_GetVertexAttribivNV) (GET_by_offset(disp, _gloffset_GetVertexAttribivNV)); +} + +static INLINE void SET_GetVertexAttribivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetVertexAttribivNV, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsProgramNV)(GLuint); +#define CALL_IsProgramNV(disp, parameters) \ + (* GET_IsProgramNV(disp)) parameters +static INLINE _glptr_IsProgramNV GET_IsProgramNV(struct _glapi_table *disp) { + return (_glptr_IsProgramNV) (GET_by_offset(disp, _gloffset_IsProgramNV)); +} + +static INLINE void SET_IsProgramNV(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IsProgramNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_LoadProgramNV)(GLenum, GLuint, GLsizei, const GLubyte *); +#define CALL_LoadProgramNV(disp, parameters) \ + (* GET_LoadProgramNV(disp)) parameters +static INLINE _glptr_LoadProgramNV GET_LoadProgramNV(struct _glapi_table *disp) { + return (_glptr_LoadProgramNV) (GET_by_offset(disp, _gloffset_LoadProgramNV)); +} + +static INLINE void SET_LoadProgramNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLsizei, const GLubyte *)) { + SET_by_offset(disp, _gloffset_LoadProgramNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramParameters4dvNV)(GLenum, GLuint, GLsizei, const GLdouble *); +#define CALL_ProgramParameters4dvNV(disp, parameters) \ + (* GET_ProgramParameters4dvNV(disp)) parameters +static INLINE _glptr_ProgramParameters4dvNV GET_ProgramParameters4dvNV(struct _glapi_table *disp) { + return (_glptr_ProgramParameters4dvNV) (GET_by_offset(disp, _gloffset_ProgramParameters4dvNV)); +} + +static INLINE void SET_ProgramParameters4dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLsizei, const GLdouble *)) { + SET_by_offset(disp, _gloffset_ProgramParameters4dvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramParameters4fvNV)(GLenum, GLuint, GLsizei, const GLfloat *); +#define CALL_ProgramParameters4fvNV(disp, parameters) \ + (* GET_ProgramParameters4fvNV(disp)) parameters +static INLINE _glptr_ProgramParameters4fvNV GET_ProgramParameters4fvNV(struct _glapi_table *disp) { + return (_glptr_ProgramParameters4fvNV) (GET_by_offset(disp, _gloffset_ProgramParameters4fvNV)); +} + +static INLINE void SET_ProgramParameters4fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLsizei, const GLfloat *)) { + SET_by_offset(disp, _gloffset_ProgramParameters4fvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_RequestResidentProgramsNV)(GLsizei, const GLuint *); +#define CALL_RequestResidentProgramsNV(disp, parameters) \ + (* GET_RequestResidentProgramsNV(disp)) parameters +static INLINE _glptr_RequestResidentProgramsNV GET_RequestResidentProgramsNV(struct _glapi_table *disp) { + return (_glptr_RequestResidentProgramsNV) (GET_by_offset(disp, _gloffset_RequestResidentProgramsNV)); +} + +static INLINE void SET_RequestResidentProgramsNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_RequestResidentProgramsNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_TrackMatrixNV)(GLenum, GLuint, GLenum, GLenum); +#define CALL_TrackMatrixNV(disp, parameters) \ + (* GET_TrackMatrixNV(disp)) parameters +static INLINE _glptr_TrackMatrixNV GET_TrackMatrixNV(struct _glapi_table *disp) { + return (_glptr_TrackMatrixNV) (GET_by_offset(disp, _gloffset_TrackMatrixNV)); +} + +static INLINE void SET_TrackMatrixNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_TrackMatrixNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib1dNV)(GLuint, GLdouble); +#define CALL_VertexAttrib1dNV(disp, parameters) \ + (* GET_VertexAttrib1dNV(disp)) parameters +static INLINE _glptr_VertexAttrib1dNV GET_VertexAttrib1dNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib1dNV) (GET_by_offset(disp, _gloffset_VertexAttrib1dNV)); +} + +static INLINE void SET_VertexAttrib1dNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble)) { + SET_by_offset(disp, _gloffset_VertexAttrib1dNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib1dvNV)(GLuint, const GLdouble *); +#define CALL_VertexAttrib1dvNV(disp, parameters) \ + (* GET_VertexAttrib1dvNV(disp)) parameters +static INLINE _glptr_VertexAttrib1dvNV GET_VertexAttrib1dvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib1dvNV) (GET_by_offset(disp, _gloffset_VertexAttrib1dvNV)); +} + +static INLINE void SET_VertexAttrib1dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { + SET_by_offset(disp, _gloffset_VertexAttrib1dvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib1fNV)(GLuint, GLfloat); +#define CALL_VertexAttrib1fNV(disp, parameters) \ + (* GET_VertexAttrib1fNV(disp)) parameters +static INLINE _glptr_VertexAttrib1fNV GET_VertexAttrib1fNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib1fNV) (GET_by_offset(disp, _gloffset_VertexAttrib1fNV)); +} + +static INLINE void SET_VertexAttrib1fNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat)) { + SET_by_offset(disp, _gloffset_VertexAttrib1fNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib1fvNV)(GLuint, const GLfloat *); +#define CALL_VertexAttrib1fvNV(disp, parameters) \ + (* GET_VertexAttrib1fvNV(disp)) parameters +static INLINE _glptr_VertexAttrib1fvNV GET_VertexAttrib1fvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib1fvNV) (GET_by_offset(disp, _gloffset_VertexAttrib1fvNV)); +} + +static INLINE void SET_VertexAttrib1fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_VertexAttrib1fvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib1sNV)(GLuint, GLshort); +#define CALL_VertexAttrib1sNV(disp, parameters) \ + (* GET_VertexAttrib1sNV(disp)) parameters +static INLINE _glptr_VertexAttrib1sNV GET_VertexAttrib1sNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib1sNV) (GET_by_offset(disp, _gloffset_VertexAttrib1sNV)); +} + +static INLINE void SET_VertexAttrib1sNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort)) { + SET_by_offset(disp, _gloffset_VertexAttrib1sNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib1svNV)(GLuint, const GLshort *); +#define CALL_VertexAttrib1svNV(disp, parameters) \ + (* GET_VertexAttrib1svNV(disp)) parameters +static INLINE _glptr_VertexAttrib1svNV GET_VertexAttrib1svNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib1svNV) (GET_by_offset(disp, _gloffset_VertexAttrib1svNV)); +} + +static INLINE void SET_VertexAttrib1svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttrib1svNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib2dNV)(GLuint, GLdouble, GLdouble); +#define CALL_VertexAttrib2dNV(disp, parameters) \ + (* GET_VertexAttrib2dNV(disp)) parameters +static INLINE _glptr_VertexAttrib2dNV GET_VertexAttrib2dNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib2dNV) (GET_by_offset(disp, _gloffset_VertexAttrib2dNV)); +} + +static INLINE void SET_VertexAttrib2dNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_VertexAttrib2dNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib2dvNV)(GLuint, const GLdouble *); +#define CALL_VertexAttrib2dvNV(disp, parameters) \ + (* GET_VertexAttrib2dvNV(disp)) parameters +static INLINE _glptr_VertexAttrib2dvNV GET_VertexAttrib2dvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib2dvNV) (GET_by_offset(disp, _gloffset_VertexAttrib2dvNV)); +} + +static INLINE void SET_VertexAttrib2dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { + SET_by_offset(disp, _gloffset_VertexAttrib2dvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib2fNV)(GLuint, GLfloat, GLfloat); +#define CALL_VertexAttrib2fNV(disp, parameters) \ + (* GET_VertexAttrib2fNV(disp)) parameters +static INLINE _glptr_VertexAttrib2fNV GET_VertexAttrib2fNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib2fNV) (GET_by_offset(disp, _gloffset_VertexAttrib2fNV)); +} + +static INLINE void SET_VertexAttrib2fNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_VertexAttrib2fNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib2fvNV)(GLuint, const GLfloat *); +#define CALL_VertexAttrib2fvNV(disp, parameters) \ + (* GET_VertexAttrib2fvNV(disp)) parameters +static INLINE _glptr_VertexAttrib2fvNV GET_VertexAttrib2fvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib2fvNV) (GET_by_offset(disp, _gloffset_VertexAttrib2fvNV)); +} + +static INLINE void SET_VertexAttrib2fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_VertexAttrib2fvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib2sNV)(GLuint, GLshort, GLshort); +#define CALL_VertexAttrib2sNV(disp, parameters) \ + (* GET_VertexAttrib2sNV(disp)) parameters +static INLINE _glptr_VertexAttrib2sNV GET_VertexAttrib2sNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib2sNV) (GET_by_offset(disp, _gloffset_VertexAttrib2sNV)); +} + +static INLINE void SET_VertexAttrib2sNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_VertexAttrib2sNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib2svNV)(GLuint, const GLshort *); +#define CALL_VertexAttrib2svNV(disp, parameters) \ + (* GET_VertexAttrib2svNV(disp)) parameters +static INLINE _glptr_VertexAttrib2svNV GET_VertexAttrib2svNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib2svNV) (GET_by_offset(disp, _gloffset_VertexAttrib2svNV)); +} + +static INLINE void SET_VertexAttrib2svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttrib2svNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib3dNV)(GLuint, GLdouble, GLdouble, GLdouble); +#define CALL_VertexAttrib3dNV(disp, parameters) \ + (* GET_VertexAttrib3dNV(disp)) parameters +static INLINE _glptr_VertexAttrib3dNV GET_VertexAttrib3dNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib3dNV) (GET_by_offset(disp, _gloffset_VertexAttrib3dNV)); +} + +static INLINE void SET_VertexAttrib3dNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_VertexAttrib3dNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib3dvNV)(GLuint, const GLdouble *); +#define CALL_VertexAttrib3dvNV(disp, parameters) \ + (* GET_VertexAttrib3dvNV(disp)) parameters +static INLINE _glptr_VertexAttrib3dvNV GET_VertexAttrib3dvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib3dvNV) (GET_by_offset(disp, _gloffset_VertexAttrib3dvNV)); +} + +static INLINE void SET_VertexAttrib3dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { + SET_by_offset(disp, _gloffset_VertexAttrib3dvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib3fNV)(GLuint, GLfloat, GLfloat, GLfloat); +#define CALL_VertexAttrib3fNV(disp, parameters) \ + (* GET_VertexAttrib3fNV(disp)) parameters +static INLINE _glptr_VertexAttrib3fNV GET_VertexAttrib3fNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib3fNV) (GET_by_offset(disp, _gloffset_VertexAttrib3fNV)); +} + +static INLINE void SET_VertexAttrib3fNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_VertexAttrib3fNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib3fvNV)(GLuint, const GLfloat *); +#define CALL_VertexAttrib3fvNV(disp, parameters) \ + (* GET_VertexAttrib3fvNV(disp)) parameters +static INLINE _glptr_VertexAttrib3fvNV GET_VertexAttrib3fvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib3fvNV) (GET_by_offset(disp, _gloffset_VertexAttrib3fvNV)); +} + +static INLINE void SET_VertexAttrib3fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_VertexAttrib3fvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib3sNV)(GLuint, GLshort, GLshort, GLshort); +#define CALL_VertexAttrib3sNV(disp, parameters) \ + (* GET_VertexAttrib3sNV(disp)) parameters +static INLINE _glptr_VertexAttrib3sNV GET_VertexAttrib3sNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib3sNV) (GET_by_offset(disp, _gloffset_VertexAttrib3sNV)); +} + +static INLINE void SET_VertexAttrib3sNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_VertexAttrib3sNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib3svNV)(GLuint, const GLshort *); +#define CALL_VertexAttrib3svNV(disp, parameters) \ + (* GET_VertexAttrib3svNV(disp)) parameters +static INLINE _glptr_VertexAttrib3svNV GET_VertexAttrib3svNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib3svNV) (GET_by_offset(disp, _gloffset_VertexAttrib3svNV)); +} + +static INLINE void SET_VertexAttrib3svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttrib3svNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4dNV)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_VertexAttrib4dNV(disp, parameters) \ + (* GET_VertexAttrib4dNV(disp)) parameters +static INLINE _glptr_VertexAttrib4dNV GET_VertexAttrib4dNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4dNV) (GET_by_offset(disp, _gloffset_VertexAttrib4dNV)); +} + +static INLINE void SET_VertexAttrib4dNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_VertexAttrib4dNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4dvNV)(GLuint, const GLdouble *); +#define CALL_VertexAttrib4dvNV(disp, parameters) \ + (* GET_VertexAttrib4dvNV(disp)) parameters +static INLINE _glptr_VertexAttrib4dvNV GET_VertexAttrib4dvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4dvNV) (GET_by_offset(disp, _gloffset_VertexAttrib4dvNV)); +} + +static INLINE void SET_VertexAttrib4dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4dvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4fNV)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_VertexAttrib4fNV(disp, parameters) \ + (* GET_VertexAttrib4fNV(disp)) parameters +static INLINE _glptr_VertexAttrib4fNV GET_VertexAttrib4fNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4fNV) (GET_by_offset(disp, _gloffset_VertexAttrib4fNV)); +} + +static INLINE void SET_VertexAttrib4fNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_VertexAttrib4fNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4fvNV)(GLuint, const GLfloat *); +#define CALL_VertexAttrib4fvNV(disp, parameters) \ + (* GET_VertexAttrib4fvNV(disp)) parameters +static INLINE _glptr_VertexAttrib4fvNV GET_VertexAttrib4fvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4fvNV) (GET_by_offset(disp, _gloffset_VertexAttrib4fvNV)); +} + +static INLINE void SET_VertexAttrib4fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4fvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4sNV)(GLuint, GLshort, GLshort, GLshort, GLshort); +#define CALL_VertexAttrib4sNV(disp, parameters) \ + (* GET_VertexAttrib4sNV(disp)) parameters +static INLINE _glptr_VertexAttrib4sNV GET_VertexAttrib4sNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4sNV) (GET_by_offset(disp, _gloffset_VertexAttrib4sNV)); +} + +static INLINE void SET_VertexAttrib4sNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort, GLshort, GLshort, GLshort)) { + SET_by_offset(disp, _gloffset_VertexAttrib4sNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4svNV)(GLuint, const GLshort *); +#define CALL_VertexAttrib4svNV(disp, parameters) \ + (* GET_VertexAttrib4svNV(disp)) parameters +static INLINE _glptr_VertexAttrib4svNV GET_VertexAttrib4svNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4svNV) (GET_by_offset(disp, _gloffset_VertexAttrib4svNV)); +} + +static INLINE void SET_VertexAttrib4svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4svNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4ubNV)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte); +#define CALL_VertexAttrib4ubNV(disp, parameters) \ + (* GET_VertexAttrib4ubNV(disp)) parameters +static INLINE _glptr_VertexAttrib4ubNV GET_VertexAttrib4ubNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4ubNV) (GET_by_offset(disp, _gloffset_VertexAttrib4ubNV)); +} + +static INLINE void SET_VertexAttrib4ubNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte)) { + SET_by_offset(disp, _gloffset_VertexAttrib4ubNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttrib4ubvNV)(GLuint, const GLubyte *); +#define CALL_VertexAttrib4ubvNV(disp, parameters) \ + (* GET_VertexAttrib4ubvNV(disp)) parameters +static INLINE _glptr_VertexAttrib4ubvNV GET_VertexAttrib4ubvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttrib4ubvNV) (GET_by_offset(disp, _gloffset_VertexAttrib4ubvNV)); +} + +static INLINE void SET_VertexAttrib4ubvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLubyte *)) { + SET_by_offset(disp, _gloffset_VertexAttrib4ubvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribPointerNV)(GLuint, GLint, GLenum, GLsizei, const GLvoid *); +#define CALL_VertexAttribPointerNV(disp, parameters) \ + (* GET_VertexAttribPointerNV(disp)) parameters +static INLINE _glptr_VertexAttribPointerNV GET_VertexAttribPointerNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribPointerNV) (GET_by_offset(disp, _gloffset_VertexAttribPointerNV)); +} + +static INLINE void SET_VertexAttribPointerNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_VertexAttribPointerNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribs1dvNV)(GLuint, GLsizei, const GLdouble *); +#define CALL_VertexAttribs1dvNV(disp, parameters) \ + (* GET_VertexAttribs1dvNV(disp)) parameters +static INLINE _glptr_VertexAttribs1dvNV GET_VertexAttribs1dvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribs1dvNV) (GET_by_offset(disp, _gloffset_VertexAttribs1dvNV)); +} + +static INLINE void SET_VertexAttribs1dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLdouble *)) { + SET_by_offset(disp, _gloffset_VertexAttribs1dvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribs1fvNV)(GLuint, GLsizei, const GLfloat *); +#define CALL_VertexAttribs1fvNV(disp, parameters) \ + (* GET_VertexAttribs1fvNV(disp)) parameters +static INLINE _glptr_VertexAttribs1fvNV GET_VertexAttribs1fvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribs1fvNV) (GET_by_offset(disp, _gloffset_VertexAttribs1fvNV)); +} + +static INLINE void SET_VertexAttribs1fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLfloat *)) { + SET_by_offset(disp, _gloffset_VertexAttribs1fvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribs1svNV)(GLuint, GLsizei, const GLshort *); +#define CALL_VertexAttribs1svNV(disp, parameters) \ + (* GET_VertexAttribs1svNV(disp)) parameters +static INLINE _glptr_VertexAttribs1svNV GET_VertexAttribs1svNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribs1svNV) (GET_by_offset(disp, _gloffset_VertexAttribs1svNV)); +} + +static INLINE void SET_VertexAttribs1svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttribs1svNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribs2dvNV)(GLuint, GLsizei, const GLdouble *); +#define CALL_VertexAttribs2dvNV(disp, parameters) \ + (* GET_VertexAttribs2dvNV(disp)) parameters +static INLINE _glptr_VertexAttribs2dvNV GET_VertexAttribs2dvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribs2dvNV) (GET_by_offset(disp, _gloffset_VertexAttribs2dvNV)); +} + +static INLINE void SET_VertexAttribs2dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLdouble *)) { + SET_by_offset(disp, _gloffset_VertexAttribs2dvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribs2fvNV)(GLuint, GLsizei, const GLfloat *); +#define CALL_VertexAttribs2fvNV(disp, parameters) \ + (* GET_VertexAttribs2fvNV(disp)) parameters +static INLINE _glptr_VertexAttribs2fvNV GET_VertexAttribs2fvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribs2fvNV) (GET_by_offset(disp, _gloffset_VertexAttribs2fvNV)); +} + +static INLINE void SET_VertexAttribs2fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLfloat *)) { + SET_by_offset(disp, _gloffset_VertexAttribs2fvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribs2svNV)(GLuint, GLsizei, const GLshort *); +#define CALL_VertexAttribs2svNV(disp, parameters) \ + (* GET_VertexAttribs2svNV(disp)) parameters +static INLINE _glptr_VertexAttribs2svNV GET_VertexAttribs2svNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribs2svNV) (GET_by_offset(disp, _gloffset_VertexAttribs2svNV)); +} + +static INLINE void SET_VertexAttribs2svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttribs2svNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribs3dvNV)(GLuint, GLsizei, const GLdouble *); +#define CALL_VertexAttribs3dvNV(disp, parameters) \ + (* GET_VertexAttribs3dvNV(disp)) parameters +static INLINE _glptr_VertexAttribs3dvNV GET_VertexAttribs3dvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribs3dvNV) (GET_by_offset(disp, _gloffset_VertexAttribs3dvNV)); +} + +static INLINE void SET_VertexAttribs3dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLdouble *)) { + SET_by_offset(disp, _gloffset_VertexAttribs3dvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribs3fvNV)(GLuint, GLsizei, const GLfloat *); +#define CALL_VertexAttribs3fvNV(disp, parameters) \ + (* GET_VertexAttribs3fvNV(disp)) parameters +static INLINE _glptr_VertexAttribs3fvNV GET_VertexAttribs3fvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribs3fvNV) (GET_by_offset(disp, _gloffset_VertexAttribs3fvNV)); +} + +static INLINE void SET_VertexAttribs3fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLfloat *)) { + SET_by_offset(disp, _gloffset_VertexAttribs3fvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribs3svNV)(GLuint, GLsizei, const GLshort *); +#define CALL_VertexAttribs3svNV(disp, parameters) \ + (* GET_VertexAttribs3svNV(disp)) parameters +static INLINE _glptr_VertexAttribs3svNV GET_VertexAttribs3svNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribs3svNV) (GET_by_offset(disp, _gloffset_VertexAttribs3svNV)); +} + +static INLINE void SET_VertexAttribs3svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttribs3svNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribs4dvNV)(GLuint, GLsizei, const GLdouble *); +#define CALL_VertexAttribs4dvNV(disp, parameters) \ + (* GET_VertexAttribs4dvNV(disp)) parameters +static INLINE _glptr_VertexAttribs4dvNV GET_VertexAttribs4dvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribs4dvNV) (GET_by_offset(disp, _gloffset_VertexAttribs4dvNV)); +} + +static INLINE void SET_VertexAttribs4dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLdouble *)) { + SET_by_offset(disp, _gloffset_VertexAttribs4dvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribs4fvNV)(GLuint, GLsizei, const GLfloat *); +#define CALL_VertexAttribs4fvNV(disp, parameters) \ + (* GET_VertexAttribs4fvNV(disp)) parameters +static INLINE _glptr_VertexAttribs4fvNV GET_VertexAttribs4fvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribs4fvNV) (GET_by_offset(disp, _gloffset_VertexAttribs4fvNV)); +} + +static INLINE void SET_VertexAttribs4fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLfloat *)) { + SET_by_offset(disp, _gloffset_VertexAttribs4fvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribs4svNV)(GLuint, GLsizei, const GLshort *); +#define CALL_VertexAttribs4svNV(disp, parameters) \ + (* GET_VertexAttribs4svNV(disp)) parameters +static INLINE _glptr_VertexAttribs4svNV GET_VertexAttribs4svNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribs4svNV) (GET_by_offset(disp, _gloffset_VertexAttribs4svNV)); +} + +static INLINE void SET_VertexAttribs4svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttribs4svNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribs4ubvNV)(GLuint, GLsizei, const GLubyte *); +#define CALL_VertexAttribs4ubvNV(disp, parameters) \ + (* GET_VertexAttribs4ubvNV(disp)) parameters +static INLINE _glptr_VertexAttribs4ubvNV GET_VertexAttribs4ubvNV(struct _glapi_table *disp) { + return (_glptr_VertexAttribs4ubvNV) (GET_by_offset(disp, _gloffset_VertexAttribs4ubvNV)); +} + +static INLINE void SET_VertexAttribs4ubvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *)) { + SET_by_offset(disp, _gloffset_VertexAttribs4ubvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexBumpParameterfvATI)(GLenum, GLfloat *); +#define CALL_GetTexBumpParameterfvATI(disp, parameters) \ + (* GET_GetTexBumpParameterfvATI(disp)) parameters +static INLINE _glptr_GetTexBumpParameterfvATI GET_GetTexBumpParameterfvATI(struct _glapi_table *disp) { + return (_glptr_GetTexBumpParameterfvATI) (GET_by_offset(disp, _gloffset_GetTexBumpParameterfvATI)); +} + +static INLINE void SET_GetTexBumpParameterfvATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetTexBumpParameterfvATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexBumpParameterivATI)(GLenum, GLint *); +#define CALL_GetTexBumpParameterivATI(disp, parameters) \ + (* GET_GetTexBumpParameterivATI(disp)) parameters +static INLINE _glptr_GetTexBumpParameterivATI GET_GetTexBumpParameterivATI(struct _glapi_table *disp) { + return (_glptr_GetTexBumpParameterivATI) (GET_by_offset(disp, _gloffset_GetTexBumpParameterivATI)); +} + +static INLINE void SET_GetTexBumpParameterivATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetTexBumpParameterivATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexBumpParameterfvATI)(GLenum, const GLfloat *); +#define CALL_TexBumpParameterfvATI(disp, parameters) \ + (* GET_TexBumpParameterfvATI(disp)) parameters +static INLINE _glptr_TexBumpParameterfvATI GET_TexBumpParameterfvATI(struct _glapi_table *disp) { + return (_glptr_TexBumpParameterfvATI) (GET_by_offset(disp, _gloffset_TexBumpParameterfvATI)); +} + +static INLINE void SET_TexBumpParameterfvATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { + SET_by_offset(disp, _gloffset_TexBumpParameterfvATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexBumpParameterivATI)(GLenum, const GLint *); +#define CALL_TexBumpParameterivATI(disp, parameters) \ + (* GET_TexBumpParameterivATI(disp)) parameters +static INLINE _glptr_TexBumpParameterivATI GET_TexBumpParameterivATI(struct _glapi_table *disp) { + return (_glptr_TexBumpParameterivATI) (GET_by_offset(disp, _gloffset_TexBumpParameterivATI)); +} + +static INLINE void SET_TexBumpParameterivATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_TexBumpParameterivATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_AlphaFragmentOp1ATI)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint); +#define CALL_AlphaFragmentOp1ATI(disp, parameters) \ + (* GET_AlphaFragmentOp1ATI(disp)) parameters +static INLINE _glptr_AlphaFragmentOp1ATI GET_AlphaFragmentOp1ATI(struct _glapi_table *disp) { + return (_glptr_AlphaFragmentOp1ATI) (GET_by_offset(disp, _gloffset_AlphaFragmentOp1ATI)); +} + +static INLINE void SET_AlphaFragmentOp1ATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_AlphaFragmentOp1ATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_AlphaFragmentOp2ATI)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +#define CALL_AlphaFragmentOp2ATI(disp, parameters) \ + (* GET_AlphaFragmentOp2ATI(disp)) parameters +static INLINE _glptr_AlphaFragmentOp2ATI GET_AlphaFragmentOp2ATI(struct _glapi_table *disp) { + return (_glptr_AlphaFragmentOp2ATI) (GET_by_offset(disp, _gloffset_AlphaFragmentOp2ATI)); +} + +static INLINE void SET_AlphaFragmentOp2ATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_AlphaFragmentOp2ATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_AlphaFragmentOp3ATI)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +#define CALL_AlphaFragmentOp3ATI(disp, parameters) \ + (* GET_AlphaFragmentOp3ATI(disp)) parameters +static INLINE _glptr_AlphaFragmentOp3ATI GET_AlphaFragmentOp3ATI(struct _glapi_table *disp) { + return (_glptr_AlphaFragmentOp3ATI) (GET_by_offset(disp, _gloffset_AlphaFragmentOp3ATI)); +} + +static INLINE void SET_AlphaFragmentOp3ATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_AlphaFragmentOp3ATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_BeginFragmentShaderATI)(void); +#define CALL_BeginFragmentShaderATI(disp, parameters) \ + (* GET_BeginFragmentShaderATI(disp)) parameters +static INLINE _glptr_BeginFragmentShaderATI GET_BeginFragmentShaderATI(struct _glapi_table *disp) { + return (_glptr_BeginFragmentShaderATI) (GET_by_offset(disp, _gloffset_BeginFragmentShaderATI)); +} + +static INLINE void SET_BeginFragmentShaderATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_BeginFragmentShaderATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindFragmentShaderATI)(GLuint); +#define CALL_BindFragmentShaderATI(disp, parameters) \ + (* GET_BindFragmentShaderATI(disp)) parameters +static INLINE _glptr_BindFragmentShaderATI GET_BindFragmentShaderATI(struct _glapi_table *disp) { + return (_glptr_BindFragmentShaderATI) (GET_by_offset(disp, _gloffset_BindFragmentShaderATI)); +} + +static INLINE void SET_BindFragmentShaderATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_BindFragmentShaderATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_ColorFragmentOp1ATI)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +#define CALL_ColorFragmentOp1ATI(disp, parameters) \ + (* GET_ColorFragmentOp1ATI(disp)) parameters +static INLINE _glptr_ColorFragmentOp1ATI GET_ColorFragmentOp1ATI(struct _glapi_table *disp) { + return (_glptr_ColorFragmentOp1ATI) (GET_by_offset(disp, _gloffset_ColorFragmentOp1ATI)); +} + +static INLINE void SET_ColorFragmentOp1ATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_ColorFragmentOp1ATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_ColorFragmentOp2ATI)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +#define CALL_ColorFragmentOp2ATI(disp, parameters) \ + (* GET_ColorFragmentOp2ATI(disp)) parameters +static INLINE _glptr_ColorFragmentOp2ATI GET_ColorFragmentOp2ATI(struct _glapi_table *disp) { + return (_glptr_ColorFragmentOp2ATI) (GET_by_offset(disp, _gloffset_ColorFragmentOp2ATI)); +} + +static INLINE void SET_ColorFragmentOp2ATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_ColorFragmentOp2ATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_ColorFragmentOp3ATI)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); +#define CALL_ColorFragmentOp3ATI(disp, parameters) \ + (* GET_ColorFragmentOp3ATI(disp)) parameters +static INLINE _glptr_ColorFragmentOp3ATI GET_ColorFragmentOp3ATI(struct _glapi_table *disp) { + return (_glptr_ColorFragmentOp3ATI) (GET_by_offset(disp, _gloffset_ColorFragmentOp3ATI)); +} + +static INLINE void SET_ColorFragmentOp3ATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_ColorFragmentOp3ATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteFragmentShaderATI)(GLuint); +#define CALL_DeleteFragmentShaderATI(disp, parameters) \ + (* GET_DeleteFragmentShaderATI(disp)) parameters +static INLINE _glptr_DeleteFragmentShaderATI GET_DeleteFragmentShaderATI(struct _glapi_table *disp) { + return (_glptr_DeleteFragmentShaderATI) (GET_by_offset(disp, _gloffset_DeleteFragmentShaderATI)); +} + +static INLINE void SET_DeleteFragmentShaderATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_DeleteFragmentShaderATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_EndFragmentShaderATI)(void); +#define CALL_EndFragmentShaderATI(disp, parameters) \ + (* GET_EndFragmentShaderATI(disp)) parameters +static INLINE _glptr_EndFragmentShaderATI GET_EndFragmentShaderATI(struct _glapi_table *disp) { + return (_glptr_EndFragmentShaderATI) (GET_by_offset(disp, _gloffset_EndFragmentShaderATI)); +} + +static INLINE void SET_EndFragmentShaderATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_EndFragmentShaderATI, fn); +} + +typedef GLuint (GLAPIENTRYP _glptr_GenFragmentShadersATI)(GLuint); +#define CALL_GenFragmentShadersATI(disp, parameters) \ + (* GET_GenFragmentShadersATI(disp)) parameters +static INLINE _glptr_GenFragmentShadersATI GET_GenFragmentShadersATI(struct _glapi_table *disp) { + return (_glptr_GenFragmentShadersATI) (GET_by_offset(disp, _gloffset_GenFragmentShadersATI)); +} + +static INLINE void SET_GenFragmentShadersATI(struct _glapi_table *disp, GLuint (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_GenFragmentShadersATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_PassTexCoordATI)(GLuint, GLuint, GLenum); +#define CALL_PassTexCoordATI(disp, parameters) \ + (* GET_PassTexCoordATI(disp)) parameters +static INLINE _glptr_PassTexCoordATI GET_PassTexCoordATI(struct _glapi_table *disp) { + return (_glptr_PassTexCoordATI) (GET_by_offset(disp, _gloffset_PassTexCoordATI)); +} + +static INLINE void SET_PassTexCoordATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLenum)) { + SET_by_offset(disp, _gloffset_PassTexCoordATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_SampleMapATI)(GLuint, GLuint, GLenum); +#define CALL_SampleMapATI(disp, parameters) \ + (* GET_SampleMapATI(disp)) parameters +static INLINE _glptr_SampleMapATI GET_SampleMapATI(struct _glapi_table *disp) { + return (_glptr_SampleMapATI) (GET_by_offset(disp, _gloffset_SampleMapATI)); +} + +static INLINE void SET_SampleMapATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLenum)) { + SET_by_offset(disp, _gloffset_SampleMapATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_SetFragmentShaderConstantATI)(GLuint, const GLfloat *); +#define CALL_SetFragmentShaderConstantATI(disp, parameters) \ + (* GET_SetFragmentShaderConstantATI(disp)) parameters +static INLINE _glptr_SetFragmentShaderConstantATI GET_SetFragmentShaderConstantATI(struct _glapi_table *disp) { + return (_glptr_SetFragmentShaderConstantATI) (GET_by_offset(disp, _gloffset_SetFragmentShaderConstantATI)); +} + +static INLINE void SET_SetFragmentShaderConstantATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { + SET_by_offset(disp, _gloffset_SetFragmentShaderConstantATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_PointParameteriNV)(GLenum, GLint); +#define CALL_PointParameteriNV(disp, parameters) \ + (* GET_PointParameteriNV(disp)) parameters +static INLINE _glptr_PointParameteriNV GET_PointParameteriNV(struct _glapi_table *disp) { + return (_glptr_PointParameteriNV) (GET_by_offset(disp, _gloffset_PointParameteriNV)); +} + +static INLINE void SET_PointParameteriNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { + SET_by_offset(disp, _gloffset_PointParameteriNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_PointParameterivNV)(GLenum, const GLint *); +#define CALL_PointParameterivNV(disp, parameters) \ + (* GET_PointParameterivNV(disp)) parameters +static INLINE _glptr_PointParameterivNV GET_PointParameterivNV(struct _glapi_table *disp) { + return (_glptr_PointParameterivNV) (GET_by_offset(disp, _gloffset_PointParameterivNV)); +} + +static INLINE void SET_PointParameterivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_PointParameterivNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_ActiveStencilFaceEXT)(GLenum); +#define CALL_ActiveStencilFaceEXT(disp, parameters) \ + (* GET_ActiveStencilFaceEXT(disp)) parameters +static INLINE _glptr_ActiveStencilFaceEXT GET_ActiveStencilFaceEXT(struct _glapi_table *disp) { + return (_glptr_ActiveStencilFaceEXT) (GET_by_offset(disp, _gloffset_ActiveStencilFaceEXT)); +} + +static INLINE void SET_ActiveStencilFaceEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_ActiveStencilFaceEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindVertexArrayAPPLE)(GLuint); +#define CALL_BindVertexArrayAPPLE(disp, parameters) \ + (* GET_BindVertexArrayAPPLE(disp)) parameters +static INLINE _glptr_BindVertexArrayAPPLE GET_BindVertexArrayAPPLE(struct _glapi_table *disp) { + return (_glptr_BindVertexArrayAPPLE) (GET_by_offset(disp, _gloffset_BindVertexArrayAPPLE)); +} + +static INLINE void SET_BindVertexArrayAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_BindVertexArrayAPPLE, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteVertexArraysAPPLE)(GLsizei, const GLuint *); +#define CALL_DeleteVertexArraysAPPLE(disp, parameters) \ + (* GET_DeleteVertexArraysAPPLE(disp)) parameters +static INLINE _glptr_DeleteVertexArraysAPPLE GET_DeleteVertexArraysAPPLE(struct _glapi_table *disp) { + return (_glptr_DeleteVertexArraysAPPLE) (GET_by_offset(disp, _gloffset_DeleteVertexArraysAPPLE)); +} + +static INLINE void SET_DeleteVertexArraysAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_DeleteVertexArraysAPPLE, fn); +} + +typedef void (GLAPIENTRYP _glptr_GenVertexArraysAPPLE)(GLsizei, GLuint *); +#define CALL_GenVertexArraysAPPLE(disp, parameters) \ + (* GET_GenVertexArraysAPPLE(disp)) parameters +static INLINE _glptr_GenVertexArraysAPPLE GET_GenVertexArraysAPPLE(struct _glapi_table *disp) { + return (_glptr_GenVertexArraysAPPLE) (GET_by_offset(disp, _gloffset_GenVertexArraysAPPLE)); +} + +static INLINE void SET_GenVertexArraysAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_GenVertexArraysAPPLE, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsVertexArrayAPPLE)(GLuint); +#define CALL_IsVertexArrayAPPLE(disp, parameters) \ + (* GET_IsVertexArrayAPPLE(disp)) parameters +static INLINE _glptr_IsVertexArrayAPPLE GET_IsVertexArrayAPPLE(struct _glapi_table *disp) { + return (_glptr_IsVertexArrayAPPLE) (GET_by_offset(disp, _gloffset_IsVertexArrayAPPLE)); +} + +static INLINE void SET_IsVertexArrayAPPLE(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IsVertexArrayAPPLE, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramNamedParameterdvNV)(GLuint, GLsizei, const GLubyte *, GLdouble *); +#define CALL_GetProgramNamedParameterdvNV(disp, parameters) \ + (* GET_GetProgramNamedParameterdvNV(disp)) parameters +static INLINE _glptr_GetProgramNamedParameterdvNV GET_GetProgramNamedParameterdvNV(struct _glapi_table *disp) { + return (_glptr_GetProgramNamedParameterdvNV) (GET_by_offset(disp, _gloffset_GetProgramNamedParameterdvNV)); +} + +static INLINE void SET_GetProgramNamedParameterdvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *, GLdouble *)) { + SET_by_offset(disp, _gloffset_GetProgramNamedParameterdvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetProgramNamedParameterfvNV)(GLuint, GLsizei, const GLubyte *, GLfloat *); +#define CALL_GetProgramNamedParameterfvNV(disp, parameters) \ + (* GET_GetProgramNamedParameterfvNV(disp)) parameters +static INLINE _glptr_GetProgramNamedParameterfvNV GET_GetProgramNamedParameterfvNV(struct _glapi_table *disp) { + return (_glptr_GetProgramNamedParameterfvNV) (GET_by_offset(disp, _gloffset_GetProgramNamedParameterfvNV)); +} + +static INLINE void SET_GetProgramNamedParameterfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *, GLfloat *)) { + SET_by_offset(disp, _gloffset_GetProgramNamedParameterfvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramNamedParameter4dNV)(GLuint, GLsizei, const GLubyte *, GLdouble, GLdouble, GLdouble, GLdouble); +#define CALL_ProgramNamedParameter4dNV(disp, parameters) \ + (* GET_ProgramNamedParameter4dNV(disp)) parameters +static INLINE _glptr_ProgramNamedParameter4dNV GET_ProgramNamedParameter4dNV(struct _glapi_table *disp) { + return (_glptr_ProgramNamedParameter4dNV) (GET_by_offset(disp, _gloffset_ProgramNamedParameter4dNV)); +} + +static INLINE void SET_ProgramNamedParameter4dNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *, GLdouble, GLdouble, GLdouble, GLdouble)) { + SET_by_offset(disp, _gloffset_ProgramNamedParameter4dNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramNamedParameter4dvNV)(GLuint, GLsizei, const GLubyte *, const GLdouble *); +#define CALL_ProgramNamedParameter4dvNV(disp, parameters) \ + (* GET_ProgramNamedParameter4dvNV(disp)) parameters +static INLINE _glptr_ProgramNamedParameter4dvNV GET_ProgramNamedParameter4dvNV(struct _glapi_table *disp) { + return (_glptr_ProgramNamedParameter4dvNV) (GET_by_offset(disp, _gloffset_ProgramNamedParameter4dvNV)); +} + +static INLINE void SET_ProgramNamedParameter4dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *, const GLdouble *)) { + SET_by_offset(disp, _gloffset_ProgramNamedParameter4dvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramNamedParameter4fNV)(GLuint, GLsizei, const GLubyte *, GLfloat, GLfloat, GLfloat, GLfloat); +#define CALL_ProgramNamedParameter4fNV(disp, parameters) \ + (* GET_ProgramNamedParameter4fNV(disp)) parameters +static INLINE _glptr_ProgramNamedParameter4fNV GET_ProgramNamedParameter4fNV(struct _glapi_table *disp) { + return (_glptr_ProgramNamedParameter4fNV) (GET_by_offset(disp, _gloffset_ProgramNamedParameter4fNV)); +} + +static INLINE void SET_ProgramNamedParameter4fNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *, GLfloat, GLfloat, GLfloat, GLfloat)) { + SET_by_offset(disp, _gloffset_ProgramNamedParameter4fNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramNamedParameter4fvNV)(GLuint, GLsizei, const GLubyte *, const GLfloat *); +#define CALL_ProgramNamedParameter4fvNV(disp, parameters) \ + (* GET_ProgramNamedParameter4fvNV(disp)) parameters +static INLINE _glptr_ProgramNamedParameter4fvNV GET_ProgramNamedParameter4fvNV(struct _glapi_table *disp) { + return (_glptr_ProgramNamedParameter4fvNV) (GET_by_offset(disp, _gloffset_ProgramNamedParameter4fvNV)); +} + +static INLINE void SET_ProgramNamedParameter4fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *, const GLfloat *)) { + SET_by_offset(disp, _gloffset_ProgramNamedParameter4fvNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_PrimitiveRestartIndexNV)(GLuint); +#define CALL_PrimitiveRestartIndexNV(disp, parameters) \ + (* GET_PrimitiveRestartIndexNV(disp)) parameters +static INLINE _glptr_PrimitiveRestartIndexNV GET_PrimitiveRestartIndexNV(struct _glapi_table *disp) { + return (_glptr_PrimitiveRestartIndexNV) (GET_by_offset(disp, _gloffset_PrimitiveRestartIndexNV)); +} + +static INLINE void SET_PrimitiveRestartIndexNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_PrimitiveRestartIndexNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_PrimitiveRestartNV)(void); +#define CALL_PrimitiveRestartNV(disp, parameters) \ + (* GET_PrimitiveRestartNV(disp)) parameters +static INLINE _glptr_PrimitiveRestartNV GET_PrimitiveRestartNV(struct _glapi_table *disp) { + return (_glptr_PrimitiveRestartNV) (GET_by_offset(disp, _gloffset_PrimitiveRestartNV)); +} + +static INLINE void SET_PrimitiveRestartNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_PrimitiveRestartNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_DepthBoundsEXT)(GLclampd, GLclampd); +#define CALL_DepthBoundsEXT(disp, parameters) \ + (* GET_DepthBoundsEXT(disp)) parameters +static INLINE _glptr_DepthBoundsEXT GET_DepthBoundsEXT(struct _glapi_table *disp) { + return (_glptr_DepthBoundsEXT) (GET_by_offset(disp, _gloffset_DepthBoundsEXT)); +} + +static INLINE void SET_DepthBoundsEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampd, GLclampd)) { + SET_by_offset(disp, _gloffset_DepthBoundsEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_BlendEquationSeparateEXT)(GLenum, GLenum); +#define CALL_BlendEquationSeparateEXT(disp, parameters) \ + (* GET_BlendEquationSeparateEXT(disp)) parameters +static INLINE _glptr_BlendEquationSeparateEXT GET_BlendEquationSeparateEXT(struct _glapi_table *disp) { + return (_glptr_BlendEquationSeparateEXT) (GET_by_offset(disp, _gloffset_BlendEquationSeparateEXT)); +} + +static INLINE void SET_BlendEquationSeparateEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { + SET_by_offset(disp, _gloffset_BlendEquationSeparateEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindFramebufferEXT)(GLenum, GLuint); +#define CALL_BindFramebufferEXT(disp, parameters) \ + (* GET_BindFramebufferEXT(disp)) parameters +static INLINE _glptr_BindFramebufferEXT GET_BindFramebufferEXT(struct _glapi_table *disp) { + return (_glptr_BindFramebufferEXT) (GET_by_offset(disp, _gloffset_BindFramebufferEXT)); +} + +static INLINE void SET_BindFramebufferEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_BindFramebufferEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindRenderbufferEXT)(GLenum, GLuint); +#define CALL_BindRenderbufferEXT(disp, parameters) \ + (* GET_BindRenderbufferEXT(disp)) parameters +static INLINE _glptr_BindRenderbufferEXT GET_BindRenderbufferEXT(struct _glapi_table *disp) { + return (_glptr_BindRenderbufferEXT) (GET_by_offset(disp, _gloffset_BindRenderbufferEXT)); +} + +static INLINE void SET_BindRenderbufferEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_BindRenderbufferEXT, fn); +} + +typedef GLenum (GLAPIENTRYP _glptr_CheckFramebufferStatusEXT)(GLenum); +#define CALL_CheckFramebufferStatusEXT(disp, parameters) \ + (* GET_CheckFramebufferStatusEXT(disp)) parameters +static INLINE _glptr_CheckFramebufferStatusEXT GET_CheckFramebufferStatusEXT(struct _glapi_table *disp) { + return (_glptr_CheckFramebufferStatusEXT) (GET_by_offset(disp, _gloffset_CheckFramebufferStatusEXT)); +} + +static INLINE void SET_CheckFramebufferStatusEXT(struct _glapi_table *disp, GLenum (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_CheckFramebufferStatusEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteFramebuffersEXT)(GLsizei, const GLuint *); +#define CALL_DeleteFramebuffersEXT(disp, parameters) \ + (* GET_DeleteFramebuffersEXT(disp)) parameters +static INLINE _glptr_DeleteFramebuffersEXT GET_DeleteFramebuffersEXT(struct _glapi_table *disp) { + return (_glptr_DeleteFramebuffersEXT) (GET_by_offset(disp, _gloffset_DeleteFramebuffersEXT)); +} + +static INLINE void SET_DeleteFramebuffersEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_DeleteFramebuffersEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_DeleteRenderbuffersEXT)(GLsizei, const GLuint *); +#define CALL_DeleteRenderbuffersEXT(disp, parameters) \ + (* GET_DeleteRenderbuffersEXT(disp)) parameters +static INLINE _glptr_DeleteRenderbuffersEXT GET_DeleteRenderbuffersEXT(struct _glapi_table *disp) { + return (_glptr_DeleteRenderbuffersEXT) (GET_by_offset(disp, _gloffset_DeleteRenderbuffersEXT)); +} + +static INLINE void SET_DeleteRenderbuffersEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_DeleteRenderbuffersEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_FramebufferRenderbufferEXT)(GLenum, GLenum, GLenum, GLuint); +#define CALL_FramebufferRenderbufferEXT(disp, parameters) \ + (* GET_FramebufferRenderbufferEXT(disp)) parameters +static INLINE _glptr_FramebufferRenderbufferEXT GET_FramebufferRenderbufferEXT(struct _glapi_table *disp) { + return (_glptr_FramebufferRenderbufferEXT) (GET_by_offset(disp, _gloffset_FramebufferRenderbufferEXT)); +} + +static INLINE void SET_FramebufferRenderbufferEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_FramebufferRenderbufferEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_FramebufferTexture1DEXT)(GLenum, GLenum, GLenum, GLuint, GLint); +#define CALL_FramebufferTexture1DEXT(disp, parameters) \ + (* GET_FramebufferTexture1DEXT(disp)) parameters +static INLINE _glptr_FramebufferTexture1DEXT GET_FramebufferTexture1DEXT(struct _glapi_table *disp) { + return (_glptr_FramebufferTexture1DEXT) (GET_by_offset(disp, _gloffset_FramebufferTexture1DEXT)); +} + +static INLINE void SET_FramebufferTexture1DEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLuint, GLint)) { + SET_by_offset(disp, _gloffset_FramebufferTexture1DEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_FramebufferTexture2DEXT)(GLenum, GLenum, GLenum, GLuint, GLint); +#define CALL_FramebufferTexture2DEXT(disp, parameters) \ + (* GET_FramebufferTexture2DEXT(disp)) parameters +static INLINE _glptr_FramebufferTexture2DEXT GET_FramebufferTexture2DEXT(struct _glapi_table *disp) { + return (_glptr_FramebufferTexture2DEXT) (GET_by_offset(disp, _gloffset_FramebufferTexture2DEXT)); +} + +static INLINE void SET_FramebufferTexture2DEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLuint, GLint)) { + SET_by_offset(disp, _gloffset_FramebufferTexture2DEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_FramebufferTexture3DEXT)(GLenum, GLenum, GLenum, GLuint, GLint, GLint); +#define CALL_FramebufferTexture3DEXT(disp, parameters) \ + (* GET_FramebufferTexture3DEXT(disp)) parameters +static INLINE _glptr_FramebufferTexture3DEXT GET_FramebufferTexture3DEXT(struct _glapi_table *disp) { + return (_glptr_FramebufferTexture3DEXT) (GET_by_offset(disp, _gloffset_FramebufferTexture3DEXT)); +} + +static INLINE void SET_FramebufferTexture3DEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLuint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_FramebufferTexture3DEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GenFramebuffersEXT)(GLsizei, GLuint *); +#define CALL_GenFramebuffersEXT(disp, parameters) \ + (* GET_GenFramebuffersEXT(disp)) parameters +static INLINE _glptr_GenFramebuffersEXT GET_GenFramebuffersEXT(struct _glapi_table *disp) { + return (_glptr_GenFramebuffersEXT) (GET_by_offset(disp, _gloffset_GenFramebuffersEXT)); +} + +static INLINE void SET_GenFramebuffersEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_GenFramebuffersEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GenRenderbuffersEXT)(GLsizei, GLuint *); +#define CALL_GenRenderbuffersEXT(disp, parameters) \ + (* GET_GenRenderbuffersEXT(disp)) parameters +static INLINE _glptr_GenRenderbuffersEXT GET_GenRenderbuffersEXT(struct _glapi_table *disp) { + return (_glptr_GenRenderbuffersEXT) (GET_by_offset(disp, _gloffset_GenRenderbuffersEXT)); +} + +static INLINE void SET_GenRenderbuffersEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { + SET_by_offset(disp, _gloffset_GenRenderbuffersEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GenerateMipmapEXT)(GLenum); +#define CALL_GenerateMipmapEXT(disp, parameters) \ + (* GET_GenerateMipmapEXT(disp)) parameters +static INLINE _glptr_GenerateMipmapEXT GET_GenerateMipmapEXT(struct _glapi_table *disp) { + return (_glptr_GenerateMipmapEXT) (GET_by_offset(disp, _gloffset_GenerateMipmapEXT)); +} + +static INLINE void SET_GenerateMipmapEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_GenerateMipmapEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetFramebufferAttachmentParameterivEXT)(GLenum, GLenum, GLenum, GLint *); +#define CALL_GetFramebufferAttachmentParameterivEXT(disp, parameters) \ + (* GET_GetFramebufferAttachmentParameterivEXT(disp)) parameters +static INLINE _glptr_GetFramebufferAttachmentParameterivEXT GET_GetFramebufferAttachmentParameterivEXT(struct _glapi_table *disp) { + return (_glptr_GetFramebufferAttachmentParameterivEXT) (GET_by_offset(disp, _gloffset_GetFramebufferAttachmentParameterivEXT)); +} + +static INLINE void SET_GetFramebufferAttachmentParameterivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetFramebufferAttachmentParameterivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetRenderbufferParameterivEXT)(GLenum, GLenum, GLint *); +#define CALL_GetRenderbufferParameterivEXT(disp, parameters) \ + (* GET_GetRenderbufferParameterivEXT(disp)) parameters +static INLINE _glptr_GetRenderbufferParameterivEXT GET_GetRenderbufferParameterivEXT(struct _glapi_table *disp) { + return (_glptr_GetRenderbufferParameterivEXT) (GET_by_offset(disp, _gloffset_GetRenderbufferParameterivEXT)); +} + +static INLINE void SET_GetRenderbufferParameterivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetRenderbufferParameterivEXT, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsFramebufferEXT)(GLuint); +#define CALL_IsFramebufferEXT(disp, parameters) \ + (* GET_IsFramebufferEXT(disp)) parameters +static INLINE _glptr_IsFramebufferEXT GET_IsFramebufferEXT(struct _glapi_table *disp) { + return (_glptr_IsFramebufferEXT) (GET_by_offset(disp, _gloffset_IsFramebufferEXT)); +} + +static INLINE void SET_IsFramebufferEXT(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IsFramebufferEXT, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsRenderbufferEXT)(GLuint); +#define CALL_IsRenderbufferEXT(disp, parameters) \ + (* GET_IsRenderbufferEXT(disp)) parameters +static INLINE _glptr_IsRenderbufferEXT GET_IsRenderbufferEXT(struct _glapi_table *disp) { + return (_glptr_IsRenderbufferEXT) (GET_by_offset(disp, _gloffset_IsRenderbufferEXT)); +} + +static INLINE void SET_IsRenderbufferEXT(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_IsRenderbufferEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_RenderbufferStorageEXT)(GLenum, GLenum, GLsizei, GLsizei); +#define CALL_RenderbufferStorageEXT(disp, parameters) \ + (* GET_RenderbufferStorageEXT(disp)) parameters +static INLINE _glptr_RenderbufferStorageEXT GET_RenderbufferStorageEXT(struct _glapi_table *disp) { + return (_glptr_RenderbufferStorageEXT) (GET_by_offset(disp, _gloffset_RenderbufferStorageEXT)); +} + +static INLINE void SET_RenderbufferStorageEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLsizei)) { + SET_by_offset(disp, _gloffset_RenderbufferStorageEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_BlitFramebufferEXT)(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum); +#define CALL_BlitFramebufferEXT(disp, parameters) \ + (* GET_BlitFramebufferEXT(disp)) parameters +static INLINE _glptr_BlitFramebufferEXT GET_BlitFramebufferEXT(struct _glapi_table *disp) { + return (_glptr_BlitFramebufferEXT) (GET_by_offset(disp, _gloffset_BlitFramebufferEXT)); +} + +static INLINE void SET_BlitFramebufferEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum)) { + SET_by_offset(disp, _gloffset_BlitFramebufferEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_BufferParameteriAPPLE)(GLenum, GLenum, GLint); +#define CALL_BufferParameteriAPPLE(disp, parameters) \ + (* GET_BufferParameteriAPPLE(disp)) parameters +static INLINE _glptr_BufferParameteriAPPLE GET_BufferParameteriAPPLE(struct _glapi_table *disp) { + return (_glptr_BufferParameteriAPPLE) (GET_by_offset(disp, _gloffset_BufferParameteriAPPLE)); +} + +static INLINE void SET_BufferParameteriAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { + SET_by_offset(disp, _gloffset_BufferParameteriAPPLE, fn); +} + +typedef void (GLAPIENTRYP _glptr_FlushMappedBufferRangeAPPLE)(GLenum, GLintptr, GLsizeiptr); +#define CALL_FlushMappedBufferRangeAPPLE(disp, parameters) \ + (* GET_FlushMappedBufferRangeAPPLE(disp)) parameters +static INLINE _glptr_FlushMappedBufferRangeAPPLE GET_FlushMappedBufferRangeAPPLE(struct _glapi_table *disp) { + return (_glptr_FlushMappedBufferRangeAPPLE) (GET_by_offset(disp, _gloffset_FlushMappedBufferRangeAPPLE)); +} + +static INLINE void SET_FlushMappedBufferRangeAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLintptr, GLsizeiptr)) { + SET_by_offset(disp, _gloffset_FlushMappedBufferRangeAPPLE, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindFragDataLocationEXT)(GLuint, GLuint, const GLchar *); +#define CALL_BindFragDataLocationEXT(disp, parameters) \ + (* GET_BindFragDataLocationEXT(disp)) parameters +static INLINE _glptr_BindFragDataLocationEXT GET_BindFragDataLocationEXT(struct _glapi_table *disp) { + return (_glptr_BindFragDataLocationEXT) (GET_by_offset(disp, _gloffset_BindFragDataLocationEXT)); +} + +static INLINE void SET_BindFragDataLocationEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, const GLchar *)) { + SET_by_offset(disp, _gloffset_BindFragDataLocationEXT, fn); +} + +typedef GLint (GLAPIENTRYP _glptr_GetFragDataLocationEXT)(GLuint, const GLchar *); +#define CALL_GetFragDataLocationEXT(disp, parameters) \ + (* GET_GetFragDataLocationEXT(disp)) parameters +static INLINE _glptr_GetFragDataLocationEXT GET_GetFragDataLocationEXT(struct _glapi_table *disp) { + return (_glptr_GetFragDataLocationEXT) (GET_by_offset(disp, _gloffset_GetFragDataLocationEXT)); +} + +static INLINE void SET_GetFragDataLocationEXT(struct _glapi_table *disp, GLint (GLAPIENTRYP fn)(GLuint, const GLchar *)) { + SET_by_offset(disp, _gloffset_GetFragDataLocationEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetUniformuivEXT)(GLuint, GLint, GLuint *); +#define CALL_GetUniformuivEXT(disp, parameters) \ + (* GET_GetUniformuivEXT(disp)) parameters +static INLINE _glptr_GetUniformuivEXT GET_GetUniformuivEXT(struct _glapi_table *disp) { + return (_glptr_GetUniformuivEXT) (GET_by_offset(disp, _gloffset_GetUniformuivEXT)); +} + +static INLINE void SET_GetUniformuivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLuint *)) { + SET_by_offset(disp, _gloffset_GetUniformuivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetVertexAttribIivEXT)(GLuint, GLenum, GLint *); +#define CALL_GetVertexAttribIivEXT(disp, parameters) \ + (* GET_GetVertexAttribIivEXT(disp)) parameters +static INLINE _glptr_GetVertexAttribIivEXT GET_GetVertexAttribIivEXT(struct _glapi_table *disp) { + return (_glptr_GetVertexAttribIivEXT) (GET_by_offset(disp, _gloffset_GetVertexAttribIivEXT)); +} + +static INLINE void SET_GetVertexAttribIivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetVertexAttribIivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetVertexAttribIuivEXT)(GLuint, GLenum, GLuint *); +#define CALL_GetVertexAttribIuivEXT(disp, parameters) \ + (* GET_GetVertexAttribIuivEXT(disp)) parameters +static INLINE _glptr_GetVertexAttribIuivEXT GET_GetVertexAttribIuivEXT(struct _glapi_table *disp) { + return (_glptr_GetVertexAttribIuivEXT) (GET_by_offset(disp, _gloffset_GetVertexAttribIuivEXT)); +} + +static INLINE void SET_GetVertexAttribIuivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLuint *)) { + SET_by_offset(disp, _gloffset_GetVertexAttribIuivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform1uiEXT)(GLint, GLuint); +#define CALL_Uniform1uiEXT(disp, parameters) \ + (* GET_Uniform1uiEXT(disp)) parameters +static INLINE _glptr_Uniform1uiEXT GET_Uniform1uiEXT(struct _glapi_table *disp) { + return (_glptr_Uniform1uiEXT) (GET_by_offset(disp, _gloffset_Uniform1uiEXT)); +} + +static INLINE void SET_Uniform1uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLuint)) { + SET_by_offset(disp, _gloffset_Uniform1uiEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform1uivEXT)(GLint, GLsizei, const GLuint *); +#define CALL_Uniform1uivEXT(disp, parameters) \ + (* GET_Uniform1uivEXT(disp)) parameters +static INLINE _glptr_Uniform1uivEXT GET_Uniform1uivEXT(struct _glapi_table *disp) { + return (_glptr_Uniform1uivEXT) (GET_by_offset(disp, _gloffset_Uniform1uivEXT)); +} + +static INLINE void SET_Uniform1uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_Uniform1uivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform2uiEXT)(GLint, GLuint, GLuint); +#define CALL_Uniform2uiEXT(disp, parameters) \ + (* GET_Uniform2uiEXT(disp)) parameters +static INLINE _glptr_Uniform2uiEXT GET_Uniform2uiEXT(struct _glapi_table *disp) { + return (_glptr_Uniform2uiEXT) (GET_by_offset(disp, _gloffset_Uniform2uiEXT)); +} + +static INLINE void SET_Uniform2uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_Uniform2uiEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform2uivEXT)(GLint, GLsizei, const GLuint *); +#define CALL_Uniform2uivEXT(disp, parameters) \ + (* GET_Uniform2uivEXT(disp)) parameters +static INLINE _glptr_Uniform2uivEXT GET_Uniform2uivEXT(struct _glapi_table *disp) { + return (_glptr_Uniform2uivEXT) (GET_by_offset(disp, _gloffset_Uniform2uivEXT)); +} + +static INLINE void SET_Uniform2uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_Uniform2uivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform3uiEXT)(GLint, GLuint, GLuint, GLuint); +#define CALL_Uniform3uiEXT(disp, parameters) \ + (* GET_Uniform3uiEXT(disp)) parameters +static INLINE _glptr_Uniform3uiEXT GET_Uniform3uiEXT(struct _glapi_table *disp) { + return (_glptr_Uniform3uiEXT) (GET_by_offset(disp, _gloffset_Uniform3uiEXT)); +} + +static INLINE void SET_Uniform3uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_Uniform3uiEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform3uivEXT)(GLint, GLsizei, const GLuint *); +#define CALL_Uniform3uivEXT(disp, parameters) \ + (* GET_Uniform3uivEXT(disp)) parameters +static INLINE _glptr_Uniform3uivEXT GET_Uniform3uivEXT(struct _glapi_table *disp) { + return (_glptr_Uniform3uivEXT) (GET_by_offset(disp, _gloffset_Uniform3uivEXT)); +} + +static INLINE void SET_Uniform3uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_Uniform3uivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform4uiEXT)(GLint, GLuint, GLuint, GLuint, GLuint); +#define CALL_Uniform4uiEXT(disp, parameters) \ + (* GET_Uniform4uiEXT(disp)) parameters +static INLINE _glptr_Uniform4uiEXT GET_Uniform4uiEXT(struct _glapi_table *disp) { + return (_glptr_Uniform4uiEXT) (GET_by_offset(disp, _gloffset_Uniform4uiEXT)); +} + +static INLINE void SET_Uniform4uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLuint, GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_Uniform4uiEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_Uniform4uivEXT)(GLint, GLsizei, const GLuint *); +#define CALL_Uniform4uivEXT(disp, parameters) \ + (* GET_Uniform4uivEXT(disp)) parameters +static INLINE _glptr_Uniform4uivEXT GET_Uniform4uivEXT(struct _glapi_table *disp) { + return (_glptr_Uniform4uivEXT) (GET_by_offset(disp, _gloffset_Uniform4uivEXT)); +} + +static INLINE void SET_Uniform4uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLuint *)) { + SET_by_offset(disp, _gloffset_Uniform4uivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI1iEXT)(GLuint, GLint); +#define CALL_VertexAttribI1iEXT(disp, parameters) \ + (* GET_VertexAttribI1iEXT(disp)) parameters +static INLINE _glptr_VertexAttribI1iEXT GET_VertexAttribI1iEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI1iEXT) (GET_by_offset(disp, _gloffset_VertexAttribI1iEXT)); +} + +static INLINE void SET_VertexAttribI1iEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint)) { + SET_by_offset(disp, _gloffset_VertexAttribI1iEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI1ivEXT)(GLuint, const GLint *); +#define CALL_VertexAttribI1ivEXT(disp, parameters) \ + (* GET_VertexAttribI1ivEXT(disp)) parameters +static INLINE _glptr_VertexAttribI1ivEXT GET_VertexAttribI1ivEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI1ivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI1ivEXT)); +} + +static INLINE void SET_VertexAttribI1ivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLint *)) { + SET_by_offset(disp, _gloffset_VertexAttribI1ivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI1uiEXT)(GLuint, GLuint); +#define CALL_VertexAttribI1uiEXT(disp, parameters) \ + (* GET_VertexAttribI1uiEXT(disp)) parameters +static INLINE _glptr_VertexAttribI1uiEXT GET_VertexAttribI1uiEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI1uiEXT) (GET_by_offset(disp, _gloffset_VertexAttribI1uiEXT)); +} + +static INLINE void SET_VertexAttribI1uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_VertexAttribI1uiEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI1uivEXT)(GLuint, const GLuint *); +#define CALL_VertexAttribI1uivEXT(disp, parameters) \ + (* GET_VertexAttribI1uivEXT(disp)) parameters +static INLINE _glptr_VertexAttribI1uivEXT GET_VertexAttribI1uivEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI1uivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI1uivEXT)); +} + +static INLINE void SET_VertexAttribI1uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLuint *)) { + SET_by_offset(disp, _gloffset_VertexAttribI1uivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI2iEXT)(GLuint, GLint, GLint); +#define CALL_VertexAttribI2iEXT(disp, parameters) \ + (* GET_VertexAttribI2iEXT(disp)) parameters +static INLINE _glptr_VertexAttribI2iEXT GET_VertexAttribI2iEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI2iEXT) (GET_by_offset(disp, _gloffset_VertexAttribI2iEXT)); +} + +static INLINE void SET_VertexAttribI2iEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_VertexAttribI2iEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI2ivEXT)(GLuint, const GLint *); +#define CALL_VertexAttribI2ivEXT(disp, parameters) \ + (* GET_VertexAttribI2ivEXT(disp)) parameters +static INLINE _glptr_VertexAttribI2ivEXT GET_VertexAttribI2ivEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI2ivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI2ivEXT)); +} + +static INLINE void SET_VertexAttribI2ivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLint *)) { + SET_by_offset(disp, _gloffset_VertexAttribI2ivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI2uiEXT)(GLuint, GLuint, GLuint); +#define CALL_VertexAttribI2uiEXT(disp, parameters) \ + (* GET_VertexAttribI2uiEXT(disp)) parameters +static INLINE _glptr_VertexAttribI2uiEXT GET_VertexAttribI2uiEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI2uiEXT) (GET_by_offset(disp, _gloffset_VertexAttribI2uiEXT)); +} + +static INLINE void SET_VertexAttribI2uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_VertexAttribI2uiEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI2uivEXT)(GLuint, const GLuint *); +#define CALL_VertexAttribI2uivEXT(disp, parameters) \ + (* GET_VertexAttribI2uivEXT(disp)) parameters +static INLINE _glptr_VertexAttribI2uivEXT GET_VertexAttribI2uivEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI2uivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI2uivEXT)); +} + +static INLINE void SET_VertexAttribI2uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLuint *)) { + SET_by_offset(disp, _gloffset_VertexAttribI2uivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI3iEXT)(GLuint, GLint, GLint, GLint); +#define CALL_VertexAttribI3iEXT(disp, parameters) \ + (* GET_VertexAttribI3iEXT(disp)) parameters +static INLINE _glptr_VertexAttribI3iEXT GET_VertexAttribI3iEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI3iEXT) (GET_by_offset(disp, _gloffset_VertexAttribI3iEXT)); +} + +static INLINE void SET_VertexAttribI3iEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_VertexAttribI3iEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI3ivEXT)(GLuint, const GLint *); +#define CALL_VertexAttribI3ivEXT(disp, parameters) \ + (* GET_VertexAttribI3ivEXT(disp)) parameters +static INLINE _glptr_VertexAttribI3ivEXT GET_VertexAttribI3ivEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI3ivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI3ivEXT)); +} + +static INLINE void SET_VertexAttribI3ivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLint *)) { + SET_by_offset(disp, _gloffset_VertexAttribI3ivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI3uiEXT)(GLuint, GLuint, GLuint, GLuint); +#define CALL_VertexAttribI3uiEXT(disp, parameters) \ + (* GET_VertexAttribI3uiEXT(disp)) parameters +static INLINE _glptr_VertexAttribI3uiEXT GET_VertexAttribI3uiEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI3uiEXT) (GET_by_offset(disp, _gloffset_VertexAttribI3uiEXT)); +} + +static INLINE void SET_VertexAttribI3uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_VertexAttribI3uiEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI3uivEXT)(GLuint, const GLuint *); +#define CALL_VertexAttribI3uivEXT(disp, parameters) \ + (* GET_VertexAttribI3uivEXT(disp)) parameters +static INLINE _glptr_VertexAttribI3uivEXT GET_VertexAttribI3uivEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI3uivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI3uivEXT)); +} + +static INLINE void SET_VertexAttribI3uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLuint *)) { + SET_by_offset(disp, _gloffset_VertexAttribI3uivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI4bvEXT)(GLuint, const GLbyte *); +#define CALL_VertexAttribI4bvEXT(disp, parameters) \ + (* GET_VertexAttribI4bvEXT(disp)) parameters +static INLINE _glptr_VertexAttribI4bvEXT GET_VertexAttribI4bvEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI4bvEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4bvEXT)); +} + +static INLINE void SET_VertexAttribI4bvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLbyte *)) { + SET_by_offset(disp, _gloffset_VertexAttribI4bvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI4iEXT)(GLuint, GLint, GLint, GLint, GLint); +#define CALL_VertexAttribI4iEXT(disp, parameters) \ + (* GET_VertexAttribI4iEXT(disp)) parameters +static INLINE _glptr_VertexAttribI4iEXT GET_VertexAttribI4iEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI4iEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4iEXT)); +} + +static INLINE void SET_VertexAttribI4iEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_VertexAttribI4iEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI4ivEXT)(GLuint, const GLint *); +#define CALL_VertexAttribI4ivEXT(disp, parameters) \ + (* GET_VertexAttribI4ivEXT(disp)) parameters +static INLINE _glptr_VertexAttribI4ivEXT GET_VertexAttribI4ivEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI4ivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4ivEXT)); +} + +static INLINE void SET_VertexAttribI4ivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLint *)) { + SET_by_offset(disp, _gloffset_VertexAttribI4ivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI4svEXT)(GLuint, const GLshort *); +#define CALL_VertexAttribI4svEXT(disp, parameters) \ + (* GET_VertexAttribI4svEXT(disp)) parameters +static INLINE _glptr_VertexAttribI4svEXT GET_VertexAttribI4svEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI4svEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4svEXT)); +} + +static INLINE void SET_VertexAttribI4svEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { + SET_by_offset(disp, _gloffset_VertexAttribI4svEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI4ubvEXT)(GLuint, const GLubyte *); +#define CALL_VertexAttribI4ubvEXT(disp, parameters) \ + (* GET_VertexAttribI4ubvEXT(disp)) parameters +static INLINE _glptr_VertexAttribI4ubvEXT GET_VertexAttribI4ubvEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI4ubvEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4ubvEXT)); +} + +static INLINE void SET_VertexAttribI4ubvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLubyte *)) { + SET_by_offset(disp, _gloffset_VertexAttribI4ubvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI4uiEXT)(GLuint, GLuint, GLuint, GLuint, GLuint); +#define CALL_VertexAttribI4uiEXT(disp, parameters) \ + (* GET_VertexAttribI4uiEXT(disp)) parameters +static INLINE _glptr_VertexAttribI4uiEXT GET_VertexAttribI4uiEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI4uiEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4uiEXT)); +} + +static INLINE void SET_VertexAttribI4uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_VertexAttribI4uiEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI4uivEXT)(GLuint, const GLuint *); +#define CALL_VertexAttribI4uivEXT(disp, parameters) \ + (* GET_VertexAttribI4uivEXT(disp)) parameters +static INLINE _glptr_VertexAttribI4uivEXT GET_VertexAttribI4uivEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI4uivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4uivEXT)); +} + +static INLINE void SET_VertexAttribI4uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLuint *)) { + SET_by_offset(disp, _gloffset_VertexAttribI4uivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribI4usvEXT)(GLuint, const GLushort *); +#define CALL_VertexAttribI4usvEXT(disp, parameters) \ + (* GET_VertexAttribI4usvEXT(disp)) parameters +static INLINE _glptr_VertexAttribI4usvEXT GET_VertexAttribI4usvEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribI4usvEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4usvEXT)); +} + +static INLINE void SET_VertexAttribI4usvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLushort *)) { + SET_by_offset(disp, _gloffset_VertexAttribI4usvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_VertexAttribIPointerEXT)(GLuint, GLint, GLenum, GLsizei, const GLvoid *); +#define CALL_VertexAttribIPointerEXT(disp, parameters) \ + (* GET_VertexAttribIPointerEXT(disp)) parameters +static INLINE _glptr_VertexAttribIPointerEXT GET_VertexAttribIPointerEXT(struct _glapi_table *disp) { + return (_glptr_VertexAttribIPointerEXT) (GET_by_offset(disp, _gloffset_VertexAttribIPointerEXT)); +} + +static INLINE void SET_VertexAttribIPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLenum, GLsizei, const GLvoid *)) { + SET_by_offset(disp, _gloffset_VertexAttribIPointerEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_FramebufferTextureLayerEXT)(GLenum, GLenum, GLuint, GLint, GLint); +#define CALL_FramebufferTextureLayerEXT(disp, parameters) \ + (* GET_FramebufferTextureLayerEXT(disp)) parameters +static INLINE _glptr_FramebufferTextureLayerEXT GET_FramebufferTextureLayerEXT(struct _glapi_table *disp) { + return (_glptr_FramebufferTextureLayerEXT) (GET_by_offset(disp, _gloffset_FramebufferTextureLayerEXT)); +} + +static INLINE void SET_FramebufferTextureLayerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_FramebufferTextureLayerEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_ColorMaskIndexedEXT)(GLuint, GLboolean, GLboolean, GLboolean, GLboolean); +#define CALL_ColorMaskIndexedEXT(disp, parameters) \ + (* GET_ColorMaskIndexedEXT(disp)) parameters +static INLINE _glptr_ColorMaskIndexedEXT GET_ColorMaskIndexedEXT(struct _glapi_table *disp) { + return (_glptr_ColorMaskIndexedEXT) (GET_by_offset(disp, _gloffset_ColorMaskIndexedEXT)); +} + +static INLINE void SET_ColorMaskIndexedEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLboolean, GLboolean, GLboolean, GLboolean)) { + SET_by_offset(disp, _gloffset_ColorMaskIndexedEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_DisableIndexedEXT)(GLenum, GLuint); +#define CALL_DisableIndexedEXT(disp, parameters) \ + (* GET_DisableIndexedEXT(disp)) parameters +static INLINE _glptr_DisableIndexedEXT GET_DisableIndexedEXT(struct _glapi_table *disp) { + return (_glptr_DisableIndexedEXT) (GET_by_offset(disp, _gloffset_DisableIndexedEXT)); +} + +static INLINE void SET_DisableIndexedEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_DisableIndexedEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_EnableIndexedEXT)(GLenum, GLuint); +#define CALL_EnableIndexedEXT(disp, parameters) \ + (* GET_EnableIndexedEXT(disp)) parameters +static INLINE _glptr_EnableIndexedEXT GET_EnableIndexedEXT(struct _glapi_table *disp) { + return (_glptr_EnableIndexedEXT) (GET_by_offset(disp, _gloffset_EnableIndexedEXT)); +} + +static INLINE void SET_EnableIndexedEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_EnableIndexedEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetBooleanIndexedvEXT)(GLenum, GLuint, GLboolean *); +#define CALL_GetBooleanIndexedvEXT(disp, parameters) \ + (* GET_GetBooleanIndexedvEXT(disp)) parameters +static INLINE _glptr_GetBooleanIndexedvEXT GET_GetBooleanIndexedvEXT(struct _glapi_table *disp) { + return (_glptr_GetBooleanIndexedvEXT) (GET_by_offset(disp, _gloffset_GetBooleanIndexedvEXT)); +} + +static INLINE void SET_GetBooleanIndexedvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLboolean *)) { + SET_by_offset(disp, _gloffset_GetBooleanIndexedvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetIntegerIndexedvEXT)(GLenum, GLuint, GLint *); +#define CALL_GetIntegerIndexedvEXT(disp, parameters) \ + (* GET_GetIntegerIndexedvEXT(disp)) parameters +static INLINE _glptr_GetIntegerIndexedvEXT GET_GetIntegerIndexedvEXT(struct _glapi_table *disp) { + return (_glptr_GetIntegerIndexedvEXT) (GET_by_offset(disp, _gloffset_GetIntegerIndexedvEXT)); +} + +static INLINE void SET_GetIntegerIndexedvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLint *)) { + SET_by_offset(disp, _gloffset_GetIntegerIndexedvEXT, fn); +} + +typedef GLboolean (GLAPIENTRYP _glptr_IsEnabledIndexedEXT)(GLenum, GLuint); +#define CALL_IsEnabledIndexedEXT(disp, parameters) \ + (* GET_IsEnabledIndexedEXT(disp)) parameters +static INLINE _glptr_IsEnabledIndexedEXT GET_IsEnabledIndexedEXT(struct _glapi_table *disp) { + return (_glptr_IsEnabledIndexedEXT) (GET_by_offset(disp, _gloffset_IsEnabledIndexedEXT)); +} + +static INLINE void SET_IsEnabledIndexedEXT(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_IsEnabledIndexedEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClearColorIiEXT)(GLint, GLint, GLint, GLint); +#define CALL_ClearColorIiEXT(disp, parameters) \ + (* GET_ClearColorIiEXT(disp)) parameters +static INLINE _glptr_ClearColorIiEXT GET_ClearColorIiEXT(struct _glapi_table *disp) { + return (_glptr_ClearColorIiEXT) (GET_by_offset(disp, _gloffset_ClearColorIiEXT)); +} + +static INLINE void SET_ClearColorIiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { + SET_by_offset(disp, _gloffset_ClearColorIiEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_ClearColorIuiEXT)(GLuint, GLuint, GLuint, GLuint); +#define CALL_ClearColorIuiEXT(disp, parameters) \ + (* GET_ClearColorIuiEXT(disp)) parameters +static INLINE _glptr_ClearColorIuiEXT GET_ClearColorIuiEXT(struct _glapi_table *disp) { + return (_glptr_ClearColorIuiEXT) (GET_by_offset(disp, _gloffset_ClearColorIuiEXT)); +} + +static INLINE void SET_ClearColorIuiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_ClearColorIuiEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexParameterIivEXT)(GLenum, GLenum, GLint *); +#define CALL_GetTexParameterIivEXT(disp, parameters) \ + (* GET_GetTexParameterIivEXT(disp)) parameters +static INLINE _glptr_GetTexParameterIivEXT GET_GetTexParameterIivEXT(struct _glapi_table *disp) { + return (_glptr_GetTexParameterIivEXT) (GET_by_offset(disp, _gloffset_GetTexParameterIivEXT)); +} + +static INLINE void SET_GetTexParameterIivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetTexParameterIivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexParameterIuivEXT)(GLenum, GLenum, GLuint *); +#define CALL_GetTexParameterIuivEXT(disp, parameters) \ + (* GET_GetTexParameterIuivEXT(disp)) parameters +static INLINE _glptr_GetTexParameterIuivEXT GET_GetTexParameterIuivEXT(struct _glapi_table *disp) { + return (_glptr_GetTexParameterIuivEXT) (GET_by_offset(disp, _gloffset_GetTexParameterIuivEXT)); +} + +static INLINE void SET_GetTexParameterIuivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint *)) { + SET_by_offset(disp, _gloffset_GetTexParameterIuivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexParameterIivEXT)(GLenum, GLenum, const GLint *); +#define CALL_TexParameterIivEXT(disp, parameters) \ + (* GET_TexParameterIivEXT(disp)) parameters +static INLINE _glptr_TexParameterIivEXT GET_TexParameterIivEXT(struct _glapi_table *disp) { + return (_glptr_TexParameterIivEXT) (GET_by_offset(disp, _gloffset_TexParameterIivEXT)); +} + +static INLINE void SET_TexParameterIivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { + SET_by_offset(disp, _gloffset_TexParameterIivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_TexParameterIuivEXT)(GLenum, GLenum, const GLuint *); +#define CALL_TexParameterIuivEXT(disp, parameters) \ + (* GET_TexParameterIuivEXT(disp)) parameters +static INLINE _glptr_TexParameterIuivEXT GET_TexParameterIuivEXT(struct _glapi_table *disp) { + return (_glptr_TexParameterIuivEXT) (GET_by_offset(disp, _gloffset_TexParameterIuivEXT)); +} + +static INLINE void SET_TexParameterIuivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLuint *)) { + SET_by_offset(disp, _gloffset_TexParameterIuivEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_BeginConditionalRenderNV)(GLuint, GLenum); +#define CALL_BeginConditionalRenderNV(disp, parameters) \ + (* GET_BeginConditionalRenderNV(disp)) parameters +static INLINE _glptr_BeginConditionalRenderNV GET_BeginConditionalRenderNV(struct _glapi_table *disp) { + return (_glptr_BeginConditionalRenderNV) (GET_by_offset(disp, _gloffset_BeginConditionalRenderNV)); +} + +static INLINE void SET_BeginConditionalRenderNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum)) { + SET_by_offset(disp, _gloffset_BeginConditionalRenderNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_EndConditionalRenderNV)(void); +#define CALL_EndConditionalRenderNV(disp, parameters) \ + (* GET_EndConditionalRenderNV(disp)) parameters +static INLINE _glptr_EndConditionalRenderNV GET_EndConditionalRenderNV(struct _glapi_table *disp) { + return (_glptr_EndConditionalRenderNV) (GET_by_offset(disp, _gloffset_EndConditionalRenderNV)); +} + +static INLINE void SET_EndConditionalRenderNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_EndConditionalRenderNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_BeginTransformFeedbackEXT)(GLenum); +#define CALL_BeginTransformFeedbackEXT(disp, parameters) \ + (* GET_BeginTransformFeedbackEXT(disp)) parameters +static INLINE _glptr_BeginTransformFeedbackEXT GET_BeginTransformFeedbackEXT(struct _glapi_table *disp) { + return (_glptr_BeginTransformFeedbackEXT) (GET_by_offset(disp, _gloffset_BeginTransformFeedbackEXT)); +} + +static INLINE void SET_BeginTransformFeedbackEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_BeginTransformFeedbackEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindBufferBaseEXT)(GLenum, GLuint, GLuint); +#define CALL_BindBufferBaseEXT(disp, parameters) \ + (* GET_BindBufferBaseEXT(disp)) parameters +static INLINE _glptr_BindBufferBaseEXT GET_BindBufferBaseEXT(struct _glapi_table *disp) { + return (_glptr_BindBufferBaseEXT) (GET_by_offset(disp, _gloffset_BindBufferBaseEXT)); +} + +static INLINE void SET_BindBufferBaseEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint)) { + SET_by_offset(disp, _gloffset_BindBufferBaseEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindBufferOffsetEXT)(GLenum, GLuint, GLuint, GLintptr); +#define CALL_BindBufferOffsetEXT(disp, parameters) \ + (* GET_BindBufferOffsetEXT(disp)) parameters +static INLINE _glptr_BindBufferOffsetEXT GET_BindBufferOffsetEXT(struct _glapi_table *disp) { + return (_glptr_BindBufferOffsetEXT) (GET_by_offset(disp, _gloffset_BindBufferOffsetEXT)); +} + +static INLINE void SET_BindBufferOffsetEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLintptr)) { + SET_by_offset(disp, _gloffset_BindBufferOffsetEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_BindBufferRangeEXT)(GLenum, GLuint, GLuint, GLintptr, GLsizeiptr); +#define CALL_BindBufferRangeEXT(disp, parameters) \ + (* GET_BindBufferRangeEXT(disp)) parameters +static INLINE _glptr_BindBufferRangeEXT GET_BindBufferRangeEXT(struct _glapi_table *disp) { + return (_glptr_BindBufferRangeEXT) (GET_by_offset(disp, _gloffset_BindBufferRangeEXT)); +} + +static INLINE void SET_BindBufferRangeEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLintptr, GLsizeiptr)) { + SET_by_offset(disp, _gloffset_BindBufferRangeEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_EndTransformFeedbackEXT)(void); +#define CALL_EndTransformFeedbackEXT(disp, parameters) \ + (* GET_EndTransformFeedbackEXT(disp)) parameters +static INLINE _glptr_EndTransformFeedbackEXT GET_EndTransformFeedbackEXT(struct _glapi_table *disp) { + return (_glptr_EndTransformFeedbackEXT) (GET_by_offset(disp, _gloffset_EndTransformFeedbackEXT)); +} + +static INLINE void SET_EndTransformFeedbackEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_EndTransformFeedbackEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTransformFeedbackVaryingEXT)(GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *); +#define CALL_GetTransformFeedbackVaryingEXT(disp, parameters) \ + (* GET_GetTransformFeedbackVaryingEXT(disp)) parameters +static INLINE _glptr_GetTransformFeedbackVaryingEXT GET_GetTransformFeedbackVaryingEXT(struct _glapi_table *disp) { + return (_glptr_GetTransformFeedbackVaryingEXT) (GET_by_offset(disp, _gloffset_GetTransformFeedbackVaryingEXT)); +} + +static INLINE void SET_GetTransformFeedbackVaryingEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *)) { + SET_by_offset(disp, _gloffset_GetTransformFeedbackVaryingEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_TransformFeedbackVaryingsEXT)(GLuint, GLsizei, const char **, GLenum); +#define CALL_TransformFeedbackVaryingsEXT(disp, parameters) \ + (* GET_TransformFeedbackVaryingsEXT(disp)) parameters +static INLINE _glptr_TransformFeedbackVaryingsEXT GET_TransformFeedbackVaryingsEXT(struct _glapi_table *disp) { + return (_glptr_TransformFeedbackVaryingsEXT) (GET_by_offset(disp, _gloffset_TransformFeedbackVaryingsEXT)); +} + +static INLINE void SET_TransformFeedbackVaryingsEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const char **, GLenum)) { + SET_by_offset(disp, _gloffset_TransformFeedbackVaryingsEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProvokingVertexEXT)(GLenum); +#define CALL_ProvokingVertexEXT(disp, parameters) \ + (* GET_ProvokingVertexEXT(disp)) parameters +static INLINE _glptr_ProvokingVertexEXT GET_ProvokingVertexEXT(struct _glapi_table *disp) { + return (_glptr_ProvokingVertexEXT) (GET_by_offset(disp, _gloffset_ProvokingVertexEXT)); +} + +static INLINE void SET_ProvokingVertexEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { + SET_by_offset(disp, _gloffset_ProvokingVertexEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetTexParameterPointervAPPLE)(GLenum, GLenum, GLvoid **); +#define CALL_GetTexParameterPointervAPPLE(disp, parameters) \ + (* GET_GetTexParameterPointervAPPLE(disp)) parameters +static INLINE _glptr_GetTexParameterPointervAPPLE GET_GetTexParameterPointervAPPLE(struct _glapi_table *disp) { + return (_glptr_GetTexParameterPointervAPPLE) (GET_by_offset(disp, _gloffset_GetTexParameterPointervAPPLE)); +} + +static INLINE void SET_GetTexParameterPointervAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLvoid **)) { + SET_by_offset(disp, _gloffset_GetTexParameterPointervAPPLE, fn); +} + +typedef void (GLAPIENTRYP _glptr_TextureRangeAPPLE)(GLenum, GLsizei, GLvoid *); +#define CALL_TextureRangeAPPLE(disp, parameters) \ + (* GET_TextureRangeAPPLE(disp)) parameters +static INLINE _glptr_TextureRangeAPPLE GET_TextureRangeAPPLE(struct _glapi_table *disp) { + return (_glptr_TextureRangeAPPLE) (GET_by_offset(disp, _gloffset_TextureRangeAPPLE)); +} + +static INLINE void SET_TextureRangeAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLvoid *)) { + SET_by_offset(disp, _gloffset_TextureRangeAPPLE, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetObjectParameterivAPPLE)(GLenum, GLuint, GLenum, GLint *); +#define CALL_GetObjectParameterivAPPLE(disp, parameters) \ + (* GET_GetObjectParameterivAPPLE(disp)) parameters +static INLINE _glptr_GetObjectParameterivAPPLE GET_GetObjectParameterivAPPLE(struct _glapi_table *disp) { + return (_glptr_GetObjectParameterivAPPLE) (GET_by_offset(disp, _gloffset_GetObjectParameterivAPPLE)); +} + +static INLINE void SET_GetObjectParameterivAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLenum, GLint *)) { + SET_by_offset(disp, _gloffset_GetObjectParameterivAPPLE, fn); +} + +typedef GLenum (GLAPIENTRYP _glptr_ObjectPurgeableAPPLE)(GLenum, GLuint, GLenum); +#define CALL_ObjectPurgeableAPPLE(disp, parameters) \ + (* GET_ObjectPurgeableAPPLE(disp)) parameters +static INLINE _glptr_ObjectPurgeableAPPLE GET_ObjectPurgeableAPPLE(struct _glapi_table *disp) { + return (_glptr_ObjectPurgeableAPPLE) (GET_by_offset(disp, _gloffset_ObjectPurgeableAPPLE)); +} + +static INLINE void SET_ObjectPurgeableAPPLE(struct _glapi_table *disp, GLenum (GLAPIENTRYP fn)(GLenum, GLuint, GLenum)) { + SET_by_offset(disp, _gloffset_ObjectPurgeableAPPLE, fn); +} + +typedef GLenum (GLAPIENTRYP _glptr_ObjectUnpurgeableAPPLE)(GLenum, GLuint, GLenum); +#define CALL_ObjectUnpurgeableAPPLE(disp, parameters) \ + (* GET_ObjectUnpurgeableAPPLE(disp)) parameters +static INLINE _glptr_ObjectUnpurgeableAPPLE GET_ObjectUnpurgeableAPPLE(struct _glapi_table *disp) { + return (_glptr_ObjectUnpurgeableAPPLE) (GET_by_offset(disp, _gloffset_ObjectUnpurgeableAPPLE)); +} + +static INLINE void SET_ObjectUnpurgeableAPPLE(struct _glapi_table *disp, GLenum (GLAPIENTRYP fn)(GLenum, GLuint, GLenum)) { + SET_by_offset(disp, _gloffset_ObjectUnpurgeableAPPLE, fn); +} + +typedef void (GLAPIENTRYP _glptr_ActiveProgramEXT)(GLuint); +#define CALL_ActiveProgramEXT(disp, parameters) \ + (* GET_ActiveProgramEXT(disp)) parameters +static INLINE _glptr_ActiveProgramEXT GET_ActiveProgramEXT(struct _glapi_table *disp) { + return (_glptr_ActiveProgramEXT) (GET_by_offset(disp, _gloffset_ActiveProgramEXT)); +} + +static INLINE void SET_ActiveProgramEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { + SET_by_offset(disp, _gloffset_ActiveProgramEXT, fn); +} + +typedef GLuint (GLAPIENTRYP _glptr_CreateShaderProgramEXT)(GLenum, const GLchar *); +#define CALL_CreateShaderProgramEXT(disp, parameters) \ + (* GET_CreateShaderProgramEXT(disp)) parameters +static INLINE _glptr_CreateShaderProgramEXT GET_CreateShaderProgramEXT(struct _glapi_table *disp) { + return (_glptr_CreateShaderProgramEXT) (GET_by_offset(disp, _gloffset_CreateShaderProgramEXT)); +} + +static INLINE void SET_CreateShaderProgramEXT(struct _glapi_table *disp, GLuint (GLAPIENTRYP fn)(GLenum, const GLchar *)) { + SET_by_offset(disp, _gloffset_CreateShaderProgramEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_UseShaderProgramEXT)(GLenum, GLuint); +#define CALL_UseShaderProgramEXT(disp, parameters) \ + (* GET_UseShaderProgramEXT(disp)) parameters +static INLINE _glptr_UseShaderProgramEXT GET_UseShaderProgramEXT(struct _glapi_table *disp) { + return (_glptr_UseShaderProgramEXT) (GET_by_offset(disp, _gloffset_UseShaderProgramEXT)); +} + +static INLINE void SET_UseShaderProgramEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { + SET_by_offset(disp, _gloffset_UseShaderProgramEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_TextureBarrierNV)(void); +#define CALL_TextureBarrierNV(disp, parameters) \ + (* GET_TextureBarrierNV(disp)) parameters +static INLINE _glptr_TextureBarrierNV GET_TextureBarrierNV(struct _glapi_table *disp) { + return (_glptr_TextureBarrierNV) (GET_by_offset(disp, _gloffset_TextureBarrierNV)); +} + +static INLINE void SET_TextureBarrierNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { + SET_by_offset(disp, _gloffset_TextureBarrierNV, fn); +} + +typedef void (GLAPIENTRYP _glptr_StencilFuncSeparateATI)(GLenum, GLenum, GLint, GLuint); +#define CALL_StencilFuncSeparateATI(disp, parameters) \ + (* GET_StencilFuncSeparateATI(disp)) parameters +static INLINE _glptr_StencilFuncSeparateATI GET_StencilFuncSeparateATI(struct _glapi_table *disp) { + return (_glptr_StencilFuncSeparateATI) (GET_by_offset(disp, _gloffset_StencilFuncSeparateATI)); +} + +static INLINE void SET_StencilFuncSeparateATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint, GLuint)) { + SET_by_offset(disp, _gloffset_StencilFuncSeparateATI, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramEnvParameters4fvEXT)(GLenum, GLuint, GLsizei, const GLfloat *); +#define CALL_ProgramEnvParameters4fvEXT(disp, parameters) \ + (* GET_ProgramEnvParameters4fvEXT(disp)) parameters +static INLINE _glptr_ProgramEnvParameters4fvEXT GET_ProgramEnvParameters4fvEXT(struct _glapi_table *disp) { + return (_glptr_ProgramEnvParameters4fvEXT) (GET_by_offset(disp, _gloffset_ProgramEnvParameters4fvEXT)); +} + +static INLINE void SET_ProgramEnvParameters4fvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLsizei, const GLfloat *)) { + SET_by_offset(disp, _gloffset_ProgramEnvParameters4fvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_ProgramLocalParameters4fvEXT)(GLenum, GLuint, GLsizei, const GLfloat *); +#define CALL_ProgramLocalParameters4fvEXT(disp, parameters) \ + (* GET_ProgramLocalParameters4fvEXT(disp)) parameters +static INLINE _glptr_ProgramLocalParameters4fvEXT GET_ProgramLocalParameters4fvEXT(struct _glapi_table *disp) { + return (_glptr_ProgramLocalParameters4fvEXT) (GET_by_offset(disp, _gloffset_ProgramLocalParameters4fvEXT)); +} + +static INLINE void SET_ProgramLocalParameters4fvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLsizei, const GLfloat *)) { + SET_by_offset(disp, _gloffset_ProgramLocalParameters4fvEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetQueryObjecti64vEXT)(GLuint, GLenum, GLint64EXT *); +#define CALL_GetQueryObjecti64vEXT(disp, parameters) \ + (* GET_GetQueryObjecti64vEXT(disp)) parameters +static INLINE _glptr_GetQueryObjecti64vEXT GET_GetQueryObjecti64vEXT(struct _glapi_table *disp) { + return (_glptr_GetQueryObjecti64vEXT) (GET_by_offset(disp, _gloffset_GetQueryObjecti64vEXT)); +} + +static INLINE void SET_GetQueryObjecti64vEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint64EXT *)) { + SET_by_offset(disp, _gloffset_GetQueryObjecti64vEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_GetQueryObjectui64vEXT)(GLuint, GLenum, GLuint64EXT *); +#define CALL_GetQueryObjectui64vEXT(disp, parameters) \ + (* GET_GetQueryObjectui64vEXT(disp)) parameters +static INLINE _glptr_GetQueryObjectui64vEXT GET_GetQueryObjectui64vEXT(struct _glapi_table *disp) { + return (_glptr_GetQueryObjectui64vEXT) (GET_by_offset(disp, _gloffset_GetQueryObjectui64vEXT)); +} + +static INLINE void SET_GetQueryObjectui64vEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLuint64EXT *)) { + SET_by_offset(disp, _gloffset_GetQueryObjectui64vEXT, fn); +} + +typedef void (GLAPIENTRYP _glptr_EGLImageTargetRenderbufferStorageOES)(GLenum, GLvoid *); +#define CALL_EGLImageTargetRenderbufferStorageOES(disp, parameters) \ + (* GET_EGLImageTargetRenderbufferStorageOES(disp)) parameters +static INLINE _glptr_EGLImageTargetRenderbufferStorageOES GET_EGLImageTargetRenderbufferStorageOES(struct _glapi_table *disp) { + return (_glptr_EGLImageTargetRenderbufferStorageOES) (GET_by_offset(disp, _gloffset_EGLImageTargetRenderbufferStorageOES)); +} + +static INLINE void SET_EGLImageTargetRenderbufferStorageOES(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLvoid *)) { + SET_by_offset(disp, _gloffset_EGLImageTargetRenderbufferStorageOES, fn); +} + +typedef void (GLAPIENTRYP _glptr_EGLImageTargetTexture2DOES)(GLenum, GLvoid *); +#define CALL_EGLImageTargetTexture2DOES(disp, parameters) \ + (* GET_EGLImageTargetTexture2DOES(disp)) parameters +static INLINE _glptr_EGLImageTargetTexture2DOES GET_EGLImageTargetTexture2DOES(struct _glapi_table *disp) { + return (_glptr_EGLImageTargetTexture2DOES) (GET_by_offset(disp, _gloffset_EGLImageTargetTexture2DOES)); +} + +static INLINE void SET_EGLImageTargetTexture2DOES(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLvoid *)) { + SET_by_offset(disp, _gloffset_EGLImageTargetTexture2DOES, fn); +} + + +#endif /* !defined( _DISPATCH_H_ ) */ diff --git a/src/mesa/main/es_generator.py b/src/mesa/main/es_generator.py index 5b49416782d..c0b0a445806 100644 --- a/src/mesa/main/es_generator.py +++ b/src/mesa/main/es_generator.py @@ -681,9 +681,7 @@ print """ #if FEATURE_remap_table /* define esLocalRemapTable */ -/* cannot include main/dispatch.h here */ -#define _GLAPI_USE_REMAP_TABLE -#include "%sapi/main/glapidispatch.h" +#include "%sapi/main/dispatch.h" #define need_MESA_remap_table #include "%sapi/main/remap_helper.h" @@ -719,8 +717,7 @@ init_remap_table(void) #else /* FEATURE_remap_table */ -/* cannot include main/dispatch.h here */ -#include "%sapi/main/glapidispatch.h" +#include "%sapi/main/dispatch.h" static INLINE void init_remap_table(void) diff --git a/src/mesa/main/glapidispatch.h b/src/mesa/main/glapidispatch.h deleted file mode 100644 index 44342102fec..00000000000 --- a/src/mesa/main/glapidispatch.h +++ /dev/null @@ -1,12268 +0,0 @@ -/* DO NOT EDIT - This file generated automatically by gl_table.py (from Mesa) script */ - -/* - * (C) Copyright IBM Corporation 2005 - * All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sub license, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL - * IBM, - * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF - * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -#if !defined( _GLAPI_DISPATCH_H_ ) -# define _GLAPI_DISPATCH_H_ - - -/* this file should not be included directly in mesa */ - -/** - * \file glapidispatch.h - * Macros for handling GL dispatch tables. - * - * For each known GL function, there are 3 macros in this file. The first - * macro is named CALL_FuncName and is used to call that GL function using - * the specified dispatch table. The other 2 macros, called GET_FuncName - * can SET_FuncName, are used to get and set the dispatch pointer for the - * named function in the specified dispatch table. - */ - -#define CALL_by_offset(disp, cast, offset, parameters) \ - (*(cast (GET_by_offset(disp, offset)))) parameters -#define GET_by_offset(disp, offset) \ - (offset >= 0) ? (((_glapi_proc *)(disp))[offset]) : NULL -#define SET_by_offset(disp, offset, fn) \ - do { \ - if ( (offset) < 0 ) { \ - /* fprintf( stderr, "[%s:%u] SET_by_offset(%p, %d, %s)!\n", */ \ - /* __func__, __LINE__, disp, offset, # fn); */ \ - /* abort(); */ \ - } \ - else { \ - ( (_glapi_proc *) (disp) )[offset] = (_glapi_proc) fn; \ - } \ - } while(0) - -/* total number of offsets below */ -#define _gloffset_COUNT 929 - -#define _gloffset_NewList 0 -#define _gloffset_EndList 1 -#define _gloffset_CallList 2 -#define _gloffset_CallLists 3 -#define _gloffset_DeleteLists 4 -#define _gloffset_GenLists 5 -#define _gloffset_ListBase 6 -#define _gloffset_Begin 7 -#define _gloffset_Bitmap 8 -#define _gloffset_Color3b 9 -#define _gloffset_Color3bv 10 -#define _gloffset_Color3d 11 -#define _gloffset_Color3dv 12 -#define _gloffset_Color3f 13 -#define _gloffset_Color3fv 14 -#define _gloffset_Color3i 15 -#define _gloffset_Color3iv 16 -#define _gloffset_Color3s 17 -#define _gloffset_Color3sv 18 -#define _gloffset_Color3ub 19 -#define _gloffset_Color3ubv 20 -#define _gloffset_Color3ui 21 -#define _gloffset_Color3uiv 22 -#define _gloffset_Color3us 23 -#define _gloffset_Color3usv 24 -#define _gloffset_Color4b 25 -#define _gloffset_Color4bv 26 -#define _gloffset_Color4d 27 -#define _gloffset_Color4dv 28 -#define _gloffset_Color4f 29 -#define _gloffset_Color4fv 30 -#define _gloffset_Color4i 31 -#define _gloffset_Color4iv 32 -#define _gloffset_Color4s 33 -#define _gloffset_Color4sv 34 -#define _gloffset_Color4ub 35 -#define _gloffset_Color4ubv 36 -#define _gloffset_Color4ui 37 -#define _gloffset_Color4uiv 38 -#define _gloffset_Color4us 39 -#define _gloffset_Color4usv 40 -#define _gloffset_EdgeFlag 41 -#define _gloffset_EdgeFlagv 42 -#define _gloffset_End 43 -#define _gloffset_Indexd 44 -#define _gloffset_Indexdv 45 -#define _gloffset_Indexf 46 -#define _gloffset_Indexfv 47 -#define _gloffset_Indexi 48 -#define _gloffset_Indexiv 49 -#define _gloffset_Indexs 50 -#define _gloffset_Indexsv 51 -#define _gloffset_Normal3b 52 -#define _gloffset_Normal3bv 53 -#define _gloffset_Normal3d 54 -#define _gloffset_Normal3dv 55 -#define _gloffset_Normal3f 56 -#define _gloffset_Normal3fv 57 -#define _gloffset_Normal3i 58 -#define _gloffset_Normal3iv 59 -#define _gloffset_Normal3s 60 -#define _gloffset_Normal3sv 61 -#define _gloffset_RasterPos2d 62 -#define _gloffset_RasterPos2dv 63 -#define _gloffset_RasterPos2f 64 -#define _gloffset_RasterPos2fv 65 -#define _gloffset_RasterPos2i 66 -#define _gloffset_RasterPos2iv 67 -#define _gloffset_RasterPos2s 68 -#define _gloffset_RasterPos2sv 69 -#define _gloffset_RasterPos3d 70 -#define _gloffset_RasterPos3dv 71 -#define _gloffset_RasterPos3f 72 -#define _gloffset_RasterPos3fv 73 -#define _gloffset_RasterPos3i 74 -#define _gloffset_RasterPos3iv 75 -#define _gloffset_RasterPos3s 76 -#define _gloffset_RasterPos3sv 77 -#define _gloffset_RasterPos4d 78 -#define _gloffset_RasterPos4dv 79 -#define _gloffset_RasterPos4f 80 -#define _gloffset_RasterPos4fv 81 -#define _gloffset_RasterPos4i 82 -#define _gloffset_RasterPos4iv 83 -#define _gloffset_RasterPos4s 84 -#define _gloffset_RasterPos4sv 85 -#define _gloffset_Rectd 86 -#define _gloffset_Rectdv 87 -#define _gloffset_Rectf 88 -#define _gloffset_Rectfv 89 -#define _gloffset_Recti 90 -#define _gloffset_Rectiv 91 -#define _gloffset_Rects 92 -#define _gloffset_Rectsv 93 -#define _gloffset_TexCoord1d 94 -#define _gloffset_TexCoord1dv 95 -#define _gloffset_TexCoord1f 96 -#define _gloffset_TexCoord1fv 97 -#define _gloffset_TexCoord1i 98 -#define _gloffset_TexCoord1iv 99 -#define _gloffset_TexCoord1s 100 -#define _gloffset_TexCoord1sv 101 -#define _gloffset_TexCoord2d 102 -#define _gloffset_TexCoord2dv 103 -#define _gloffset_TexCoord2f 104 -#define _gloffset_TexCoord2fv 105 -#define _gloffset_TexCoord2i 106 -#define _gloffset_TexCoord2iv 107 -#define _gloffset_TexCoord2s 108 -#define _gloffset_TexCoord2sv 109 -#define _gloffset_TexCoord3d 110 -#define _gloffset_TexCoord3dv 111 -#define _gloffset_TexCoord3f 112 -#define _gloffset_TexCoord3fv 113 -#define _gloffset_TexCoord3i 114 -#define _gloffset_TexCoord3iv 115 -#define _gloffset_TexCoord3s 116 -#define _gloffset_TexCoord3sv 117 -#define _gloffset_TexCoord4d 118 -#define _gloffset_TexCoord4dv 119 -#define _gloffset_TexCoord4f 120 -#define _gloffset_TexCoord4fv 121 -#define _gloffset_TexCoord4i 122 -#define _gloffset_TexCoord4iv 123 -#define _gloffset_TexCoord4s 124 -#define _gloffset_TexCoord4sv 125 -#define _gloffset_Vertex2d 126 -#define _gloffset_Vertex2dv 127 -#define _gloffset_Vertex2f 128 -#define _gloffset_Vertex2fv 129 -#define _gloffset_Vertex2i 130 -#define _gloffset_Vertex2iv 131 -#define _gloffset_Vertex2s 132 -#define _gloffset_Vertex2sv 133 -#define _gloffset_Vertex3d 134 -#define _gloffset_Vertex3dv 135 -#define _gloffset_Vertex3f 136 -#define _gloffset_Vertex3fv 137 -#define _gloffset_Vertex3i 138 -#define _gloffset_Vertex3iv 139 -#define _gloffset_Vertex3s 140 -#define _gloffset_Vertex3sv 141 -#define _gloffset_Vertex4d 142 -#define _gloffset_Vertex4dv 143 -#define _gloffset_Vertex4f 144 -#define _gloffset_Vertex4fv 145 -#define _gloffset_Vertex4i 146 -#define _gloffset_Vertex4iv 147 -#define _gloffset_Vertex4s 148 -#define _gloffset_Vertex4sv 149 -#define _gloffset_ClipPlane 150 -#define _gloffset_ColorMaterial 151 -#define _gloffset_CullFace 152 -#define _gloffset_Fogf 153 -#define _gloffset_Fogfv 154 -#define _gloffset_Fogi 155 -#define _gloffset_Fogiv 156 -#define _gloffset_FrontFace 157 -#define _gloffset_Hint 158 -#define _gloffset_Lightf 159 -#define _gloffset_Lightfv 160 -#define _gloffset_Lighti 161 -#define _gloffset_Lightiv 162 -#define _gloffset_LightModelf 163 -#define _gloffset_LightModelfv 164 -#define _gloffset_LightModeli 165 -#define _gloffset_LightModeliv 166 -#define _gloffset_LineStipple 167 -#define _gloffset_LineWidth 168 -#define _gloffset_Materialf 169 -#define _gloffset_Materialfv 170 -#define _gloffset_Materiali 171 -#define _gloffset_Materialiv 172 -#define _gloffset_PointSize 173 -#define _gloffset_PolygonMode 174 -#define _gloffset_PolygonStipple 175 -#define _gloffset_Scissor 176 -#define _gloffset_ShadeModel 177 -#define _gloffset_TexParameterf 178 -#define _gloffset_TexParameterfv 179 -#define _gloffset_TexParameteri 180 -#define _gloffset_TexParameteriv 181 -#define _gloffset_TexImage1D 182 -#define _gloffset_TexImage2D 183 -#define _gloffset_TexEnvf 184 -#define _gloffset_TexEnvfv 185 -#define _gloffset_TexEnvi 186 -#define _gloffset_TexEnviv 187 -#define _gloffset_TexGend 188 -#define _gloffset_TexGendv 189 -#define _gloffset_TexGenf 190 -#define _gloffset_TexGenfv 191 -#define _gloffset_TexGeni 192 -#define _gloffset_TexGeniv 193 -#define _gloffset_FeedbackBuffer 194 -#define _gloffset_SelectBuffer 195 -#define _gloffset_RenderMode 196 -#define _gloffset_InitNames 197 -#define _gloffset_LoadName 198 -#define _gloffset_PassThrough 199 -#define _gloffset_PopName 200 -#define _gloffset_PushName 201 -#define _gloffset_DrawBuffer 202 -#define _gloffset_Clear 203 -#define _gloffset_ClearAccum 204 -#define _gloffset_ClearIndex 205 -#define _gloffset_ClearColor 206 -#define _gloffset_ClearStencil 207 -#define _gloffset_ClearDepth 208 -#define _gloffset_StencilMask 209 -#define _gloffset_ColorMask 210 -#define _gloffset_DepthMask 211 -#define _gloffset_IndexMask 212 -#define _gloffset_Accum 213 -#define _gloffset_Disable 214 -#define _gloffset_Enable 215 -#define _gloffset_Finish 216 -#define _gloffset_Flush 217 -#define _gloffset_PopAttrib 218 -#define _gloffset_PushAttrib 219 -#define _gloffset_Map1d 220 -#define _gloffset_Map1f 221 -#define _gloffset_Map2d 222 -#define _gloffset_Map2f 223 -#define _gloffset_MapGrid1d 224 -#define _gloffset_MapGrid1f 225 -#define _gloffset_MapGrid2d 226 -#define _gloffset_MapGrid2f 227 -#define _gloffset_EvalCoord1d 228 -#define _gloffset_EvalCoord1dv 229 -#define _gloffset_EvalCoord1f 230 -#define _gloffset_EvalCoord1fv 231 -#define _gloffset_EvalCoord2d 232 -#define _gloffset_EvalCoord2dv 233 -#define _gloffset_EvalCoord2f 234 -#define _gloffset_EvalCoord2fv 235 -#define _gloffset_EvalMesh1 236 -#define _gloffset_EvalPoint1 237 -#define _gloffset_EvalMesh2 238 -#define _gloffset_EvalPoint2 239 -#define _gloffset_AlphaFunc 240 -#define _gloffset_BlendFunc 241 -#define _gloffset_LogicOp 242 -#define _gloffset_StencilFunc 243 -#define _gloffset_StencilOp 244 -#define _gloffset_DepthFunc 245 -#define _gloffset_PixelZoom 246 -#define _gloffset_PixelTransferf 247 -#define _gloffset_PixelTransferi 248 -#define _gloffset_PixelStoref 249 -#define _gloffset_PixelStorei 250 -#define _gloffset_PixelMapfv 251 -#define _gloffset_PixelMapuiv 252 -#define _gloffset_PixelMapusv 253 -#define _gloffset_ReadBuffer 254 -#define _gloffset_CopyPixels 255 -#define _gloffset_ReadPixels 256 -#define _gloffset_DrawPixels 257 -#define _gloffset_GetBooleanv 258 -#define _gloffset_GetClipPlane 259 -#define _gloffset_GetDoublev 260 -#define _gloffset_GetError 261 -#define _gloffset_GetFloatv 262 -#define _gloffset_GetIntegerv 263 -#define _gloffset_GetLightfv 264 -#define _gloffset_GetLightiv 265 -#define _gloffset_GetMapdv 266 -#define _gloffset_GetMapfv 267 -#define _gloffset_GetMapiv 268 -#define _gloffset_GetMaterialfv 269 -#define _gloffset_GetMaterialiv 270 -#define _gloffset_GetPixelMapfv 271 -#define _gloffset_GetPixelMapuiv 272 -#define _gloffset_GetPixelMapusv 273 -#define _gloffset_GetPolygonStipple 274 -#define _gloffset_GetString 275 -#define _gloffset_GetTexEnvfv 276 -#define _gloffset_GetTexEnviv 277 -#define _gloffset_GetTexGendv 278 -#define _gloffset_GetTexGenfv 279 -#define _gloffset_GetTexGeniv 280 -#define _gloffset_GetTexImage 281 -#define _gloffset_GetTexParameterfv 282 -#define _gloffset_GetTexParameteriv 283 -#define _gloffset_GetTexLevelParameterfv 284 -#define _gloffset_GetTexLevelParameteriv 285 -#define _gloffset_IsEnabled 286 -#define _gloffset_IsList 287 -#define _gloffset_DepthRange 288 -#define _gloffset_Frustum 289 -#define _gloffset_LoadIdentity 290 -#define _gloffset_LoadMatrixf 291 -#define _gloffset_LoadMatrixd 292 -#define _gloffset_MatrixMode 293 -#define _gloffset_MultMatrixf 294 -#define _gloffset_MultMatrixd 295 -#define _gloffset_Ortho 296 -#define _gloffset_PopMatrix 297 -#define _gloffset_PushMatrix 298 -#define _gloffset_Rotated 299 -#define _gloffset_Rotatef 300 -#define _gloffset_Scaled 301 -#define _gloffset_Scalef 302 -#define _gloffset_Translated 303 -#define _gloffset_Translatef 304 -#define _gloffset_Viewport 305 -#define _gloffset_ArrayElement 306 -#define _gloffset_BindTexture 307 -#define _gloffset_ColorPointer 308 -#define _gloffset_DisableClientState 309 -#define _gloffset_DrawArrays 310 -#define _gloffset_DrawElements 311 -#define _gloffset_EdgeFlagPointer 312 -#define _gloffset_EnableClientState 313 -#define _gloffset_IndexPointer 314 -#define _gloffset_Indexub 315 -#define _gloffset_Indexubv 316 -#define _gloffset_InterleavedArrays 317 -#define _gloffset_NormalPointer 318 -#define _gloffset_PolygonOffset 319 -#define _gloffset_TexCoordPointer 320 -#define _gloffset_VertexPointer 321 -#define _gloffset_AreTexturesResident 322 -#define _gloffset_CopyTexImage1D 323 -#define _gloffset_CopyTexImage2D 324 -#define _gloffset_CopyTexSubImage1D 325 -#define _gloffset_CopyTexSubImage2D 326 -#define _gloffset_DeleteTextures 327 -#define _gloffset_GenTextures 328 -#define _gloffset_GetPointerv 329 -#define _gloffset_IsTexture 330 -#define _gloffset_PrioritizeTextures 331 -#define _gloffset_TexSubImage1D 332 -#define _gloffset_TexSubImage2D 333 -#define _gloffset_PopClientAttrib 334 -#define _gloffset_PushClientAttrib 335 -#define _gloffset_BlendColor 336 -#define _gloffset_BlendEquation 337 -#define _gloffset_DrawRangeElements 338 -#define _gloffset_ColorTable 339 -#define _gloffset_ColorTableParameterfv 340 -#define _gloffset_ColorTableParameteriv 341 -#define _gloffset_CopyColorTable 342 -#define _gloffset_GetColorTable 343 -#define _gloffset_GetColorTableParameterfv 344 -#define _gloffset_GetColorTableParameteriv 345 -#define _gloffset_ColorSubTable 346 -#define _gloffset_CopyColorSubTable 347 -#define _gloffset_ConvolutionFilter1D 348 -#define _gloffset_ConvolutionFilter2D 349 -#define _gloffset_ConvolutionParameterf 350 -#define _gloffset_ConvolutionParameterfv 351 -#define _gloffset_ConvolutionParameteri 352 -#define _gloffset_ConvolutionParameteriv 353 -#define _gloffset_CopyConvolutionFilter1D 354 -#define _gloffset_CopyConvolutionFilter2D 355 -#define _gloffset_GetConvolutionFilter 356 -#define _gloffset_GetConvolutionParameterfv 357 -#define _gloffset_GetConvolutionParameteriv 358 -#define _gloffset_GetSeparableFilter 359 -#define _gloffset_SeparableFilter2D 360 -#define _gloffset_GetHistogram 361 -#define _gloffset_GetHistogramParameterfv 362 -#define _gloffset_GetHistogramParameteriv 363 -#define _gloffset_GetMinmax 364 -#define _gloffset_GetMinmaxParameterfv 365 -#define _gloffset_GetMinmaxParameteriv 366 -#define _gloffset_Histogram 367 -#define _gloffset_Minmax 368 -#define _gloffset_ResetHistogram 369 -#define _gloffset_ResetMinmax 370 -#define _gloffset_TexImage3D 371 -#define _gloffset_TexSubImage3D 372 -#define _gloffset_CopyTexSubImage3D 373 -#define _gloffset_ActiveTextureARB 374 -#define _gloffset_ClientActiveTextureARB 375 -#define _gloffset_MultiTexCoord1dARB 376 -#define _gloffset_MultiTexCoord1dvARB 377 -#define _gloffset_MultiTexCoord1fARB 378 -#define _gloffset_MultiTexCoord1fvARB 379 -#define _gloffset_MultiTexCoord1iARB 380 -#define _gloffset_MultiTexCoord1ivARB 381 -#define _gloffset_MultiTexCoord1sARB 382 -#define _gloffset_MultiTexCoord1svARB 383 -#define _gloffset_MultiTexCoord2dARB 384 -#define _gloffset_MultiTexCoord2dvARB 385 -#define _gloffset_MultiTexCoord2fARB 386 -#define _gloffset_MultiTexCoord2fvARB 387 -#define _gloffset_MultiTexCoord2iARB 388 -#define _gloffset_MultiTexCoord2ivARB 389 -#define _gloffset_MultiTexCoord2sARB 390 -#define _gloffset_MultiTexCoord2svARB 391 -#define _gloffset_MultiTexCoord3dARB 392 -#define _gloffset_MultiTexCoord3dvARB 393 -#define _gloffset_MultiTexCoord3fARB 394 -#define _gloffset_MultiTexCoord3fvARB 395 -#define _gloffset_MultiTexCoord3iARB 396 -#define _gloffset_MultiTexCoord3ivARB 397 -#define _gloffset_MultiTexCoord3sARB 398 -#define _gloffset_MultiTexCoord3svARB 399 -#define _gloffset_MultiTexCoord4dARB 400 -#define _gloffset_MultiTexCoord4dvARB 401 -#define _gloffset_MultiTexCoord4fARB 402 -#define _gloffset_MultiTexCoord4fvARB 403 -#define _gloffset_MultiTexCoord4iARB 404 -#define _gloffset_MultiTexCoord4ivARB 405 -#define _gloffset_MultiTexCoord4sARB 406 -#define _gloffset_MultiTexCoord4svARB 407 - -#if !defined(_GLAPI_USE_REMAP_TABLE) - -#define _gloffset_AttachShader 408 -#define _gloffset_CreateProgram 409 -#define _gloffset_CreateShader 410 -#define _gloffset_DeleteProgram 411 -#define _gloffset_DeleteShader 412 -#define _gloffset_DetachShader 413 -#define _gloffset_GetAttachedShaders 414 -#define _gloffset_GetProgramInfoLog 415 -#define _gloffset_GetProgramiv 416 -#define _gloffset_GetShaderInfoLog 417 -#define _gloffset_GetShaderiv 418 -#define _gloffset_IsProgram 419 -#define _gloffset_IsShader 420 -#define _gloffset_StencilFuncSeparate 421 -#define _gloffset_StencilMaskSeparate 422 -#define _gloffset_StencilOpSeparate 423 -#define _gloffset_UniformMatrix2x3fv 424 -#define _gloffset_UniformMatrix2x4fv 425 -#define _gloffset_UniformMatrix3x2fv 426 -#define _gloffset_UniformMatrix3x4fv 427 -#define _gloffset_UniformMatrix4x2fv 428 -#define _gloffset_UniformMatrix4x3fv 429 -#define _gloffset_ClampColor 430 -#define _gloffset_ClearBufferfi 431 -#define _gloffset_ClearBufferfv 432 -#define _gloffset_ClearBufferiv 433 -#define _gloffset_ClearBufferuiv 434 -#define _gloffset_GetStringi 435 -#define _gloffset_TexBuffer 436 -#define _gloffset_FramebufferTexture 437 -#define _gloffset_GetBufferParameteri64v 438 -#define _gloffset_GetInteger64i_v 439 -#define _gloffset_VertexAttribDivisor 440 -#define _gloffset_LoadTransposeMatrixdARB 441 -#define _gloffset_LoadTransposeMatrixfARB 442 -#define _gloffset_MultTransposeMatrixdARB 443 -#define _gloffset_MultTransposeMatrixfARB 444 -#define _gloffset_SampleCoverageARB 445 -#define _gloffset_CompressedTexImage1DARB 446 -#define _gloffset_CompressedTexImage2DARB 447 -#define _gloffset_CompressedTexImage3DARB 448 -#define _gloffset_CompressedTexSubImage1DARB 449 -#define _gloffset_CompressedTexSubImage2DARB 450 -#define _gloffset_CompressedTexSubImage3DARB 451 -#define _gloffset_GetCompressedTexImageARB 452 -#define _gloffset_DisableVertexAttribArrayARB 453 -#define _gloffset_EnableVertexAttribArrayARB 454 -#define _gloffset_GetProgramEnvParameterdvARB 455 -#define _gloffset_GetProgramEnvParameterfvARB 456 -#define _gloffset_GetProgramLocalParameterdvARB 457 -#define _gloffset_GetProgramLocalParameterfvARB 458 -#define _gloffset_GetProgramStringARB 459 -#define _gloffset_GetProgramivARB 460 -#define _gloffset_GetVertexAttribdvARB 461 -#define _gloffset_GetVertexAttribfvARB 462 -#define _gloffset_GetVertexAttribivARB 463 -#define _gloffset_ProgramEnvParameter4dARB 464 -#define _gloffset_ProgramEnvParameter4dvARB 465 -#define _gloffset_ProgramEnvParameter4fARB 466 -#define _gloffset_ProgramEnvParameter4fvARB 467 -#define _gloffset_ProgramLocalParameter4dARB 468 -#define _gloffset_ProgramLocalParameter4dvARB 469 -#define _gloffset_ProgramLocalParameter4fARB 470 -#define _gloffset_ProgramLocalParameter4fvARB 471 -#define _gloffset_ProgramStringARB 472 -#define _gloffset_VertexAttrib1dARB 473 -#define _gloffset_VertexAttrib1dvARB 474 -#define _gloffset_VertexAttrib1fARB 475 -#define _gloffset_VertexAttrib1fvARB 476 -#define _gloffset_VertexAttrib1sARB 477 -#define _gloffset_VertexAttrib1svARB 478 -#define _gloffset_VertexAttrib2dARB 479 -#define _gloffset_VertexAttrib2dvARB 480 -#define _gloffset_VertexAttrib2fARB 481 -#define _gloffset_VertexAttrib2fvARB 482 -#define _gloffset_VertexAttrib2sARB 483 -#define _gloffset_VertexAttrib2svARB 484 -#define _gloffset_VertexAttrib3dARB 485 -#define _gloffset_VertexAttrib3dvARB 486 -#define _gloffset_VertexAttrib3fARB 487 -#define _gloffset_VertexAttrib3fvARB 488 -#define _gloffset_VertexAttrib3sARB 489 -#define _gloffset_VertexAttrib3svARB 490 -#define _gloffset_VertexAttrib4NbvARB 491 -#define _gloffset_VertexAttrib4NivARB 492 -#define _gloffset_VertexAttrib4NsvARB 493 -#define _gloffset_VertexAttrib4NubARB 494 -#define _gloffset_VertexAttrib4NubvARB 495 -#define _gloffset_VertexAttrib4NuivARB 496 -#define _gloffset_VertexAttrib4NusvARB 497 -#define _gloffset_VertexAttrib4bvARB 498 -#define _gloffset_VertexAttrib4dARB 499 -#define _gloffset_VertexAttrib4dvARB 500 -#define _gloffset_VertexAttrib4fARB 501 -#define _gloffset_VertexAttrib4fvARB 502 -#define _gloffset_VertexAttrib4ivARB 503 -#define _gloffset_VertexAttrib4sARB 504 -#define _gloffset_VertexAttrib4svARB 505 -#define _gloffset_VertexAttrib4ubvARB 506 -#define _gloffset_VertexAttrib4uivARB 507 -#define _gloffset_VertexAttrib4usvARB 508 -#define _gloffset_VertexAttribPointerARB 509 -#define _gloffset_BindBufferARB 510 -#define _gloffset_BufferDataARB 511 -#define _gloffset_BufferSubDataARB 512 -#define _gloffset_DeleteBuffersARB 513 -#define _gloffset_GenBuffersARB 514 -#define _gloffset_GetBufferParameterivARB 515 -#define _gloffset_GetBufferPointervARB 516 -#define _gloffset_GetBufferSubDataARB 517 -#define _gloffset_IsBufferARB 518 -#define _gloffset_MapBufferARB 519 -#define _gloffset_UnmapBufferARB 520 -#define _gloffset_BeginQueryARB 521 -#define _gloffset_DeleteQueriesARB 522 -#define _gloffset_EndQueryARB 523 -#define _gloffset_GenQueriesARB 524 -#define _gloffset_GetQueryObjectivARB 525 -#define _gloffset_GetQueryObjectuivARB 526 -#define _gloffset_GetQueryivARB 527 -#define _gloffset_IsQueryARB 528 -#define _gloffset_AttachObjectARB 529 -#define _gloffset_CompileShaderARB 530 -#define _gloffset_CreateProgramObjectARB 531 -#define _gloffset_CreateShaderObjectARB 532 -#define _gloffset_DeleteObjectARB 533 -#define _gloffset_DetachObjectARB 534 -#define _gloffset_GetActiveUniformARB 535 -#define _gloffset_GetAttachedObjectsARB 536 -#define _gloffset_GetHandleARB 537 -#define _gloffset_GetInfoLogARB 538 -#define _gloffset_GetObjectParameterfvARB 539 -#define _gloffset_GetObjectParameterivARB 540 -#define _gloffset_GetShaderSourceARB 541 -#define _gloffset_GetUniformLocationARB 542 -#define _gloffset_GetUniformfvARB 543 -#define _gloffset_GetUniformivARB 544 -#define _gloffset_LinkProgramARB 545 -#define _gloffset_ShaderSourceARB 546 -#define _gloffset_Uniform1fARB 547 -#define _gloffset_Uniform1fvARB 548 -#define _gloffset_Uniform1iARB 549 -#define _gloffset_Uniform1ivARB 550 -#define _gloffset_Uniform2fARB 551 -#define _gloffset_Uniform2fvARB 552 -#define _gloffset_Uniform2iARB 553 -#define _gloffset_Uniform2ivARB 554 -#define _gloffset_Uniform3fARB 555 -#define _gloffset_Uniform3fvARB 556 -#define _gloffset_Uniform3iARB 557 -#define _gloffset_Uniform3ivARB 558 -#define _gloffset_Uniform4fARB 559 -#define _gloffset_Uniform4fvARB 560 -#define _gloffset_Uniform4iARB 561 -#define _gloffset_Uniform4ivARB 562 -#define _gloffset_UniformMatrix2fvARB 563 -#define _gloffset_UniformMatrix3fvARB 564 -#define _gloffset_UniformMatrix4fvARB 565 -#define _gloffset_UseProgramObjectARB 566 -#define _gloffset_ValidateProgramARB 567 -#define _gloffset_BindAttribLocationARB 568 -#define _gloffset_GetActiveAttribARB 569 -#define _gloffset_GetAttribLocationARB 570 -#define _gloffset_DrawBuffersARB 571 -#define _gloffset_ClampColorARB 572 -#define _gloffset_DrawArraysInstancedARB 573 -#define _gloffset_DrawElementsInstancedARB 574 -#define _gloffset_RenderbufferStorageMultisample 575 -#define _gloffset_FramebufferTextureARB 576 -#define _gloffset_FramebufferTextureFaceARB 577 -#define _gloffset_ProgramParameteriARB 578 -#define _gloffset_VertexAttribDivisorARB 579 -#define _gloffset_FlushMappedBufferRange 580 -#define _gloffset_MapBufferRange 581 -#define _gloffset_TexBufferARB 582 -#define _gloffset_BindVertexArray 583 -#define _gloffset_GenVertexArrays 584 -#define _gloffset_CopyBufferSubData 585 -#define _gloffset_ClientWaitSync 586 -#define _gloffset_DeleteSync 587 -#define _gloffset_FenceSync 588 -#define _gloffset_GetInteger64v 589 -#define _gloffset_GetSynciv 590 -#define _gloffset_IsSync 591 -#define _gloffset_WaitSync 592 -#define _gloffset_DrawElementsBaseVertex 593 -#define _gloffset_DrawElementsInstancedBaseVertex 594 -#define _gloffset_DrawRangeElementsBaseVertex 595 -#define _gloffset_MultiDrawElementsBaseVertex 596 -#define _gloffset_BlendEquationSeparateiARB 597 -#define _gloffset_BlendEquationiARB 598 -#define _gloffset_BlendFuncSeparateiARB 599 -#define _gloffset_BlendFunciARB 600 -#define _gloffset_BindSampler 601 -#define _gloffset_DeleteSamplers 602 -#define _gloffset_GenSamplers 603 -#define _gloffset_GetSamplerParameterIiv 604 -#define _gloffset_GetSamplerParameterIuiv 605 -#define _gloffset_GetSamplerParameterfv 606 -#define _gloffset_GetSamplerParameteriv 607 -#define _gloffset_IsSampler 608 -#define _gloffset_SamplerParameterIiv 609 -#define _gloffset_SamplerParameterIuiv 610 -#define _gloffset_SamplerParameterf 611 -#define _gloffset_SamplerParameterfv 612 -#define _gloffset_SamplerParameteri 613 -#define _gloffset_SamplerParameteriv 614 -#define _gloffset_BindTransformFeedback 615 -#define _gloffset_DeleteTransformFeedbacks 616 -#define _gloffset_DrawTransformFeedback 617 -#define _gloffset_GenTransformFeedbacks 618 -#define _gloffset_IsTransformFeedback 619 -#define _gloffset_PauseTransformFeedback 620 -#define _gloffset_ResumeTransformFeedback 621 -#define _gloffset_ClearDepthf 622 -#define _gloffset_DepthRangef 623 -#define _gloffset_GetShaderPrecisionFormat 624 -#define _gloffset_ReleaseShaderCompiler 625 -#define _gloffset_ShaderBinary 626 -#define _gloffset_GetGraphicsResetStatusARB 627 -#define _gloffset_GetnColorTableARB 628 -#define _gloffset_GetnCompressedTexImageARB 629 -#define _gloffset_GetnConvolutionFilterARB 630 -#define _gloffset_GetnHistogramARB 631 -#define _gloffset_GetnMapdvARB 632 -#define _gloffset_GetnMapfvARB 633 -#define _gloffset_GetnMapivARB 634 -#define _gloffset_GetnMinmaxARB 635 -#define _gloffset_GetnPixelMapfvARB 636 -#define _gloffset_GetnPixelMapuivARB 637 -#define _gloffset_GetnPixelMapusvARB 638 -#define _gloffset_GetnPolygonStippleARB 639 -#define _gloffset_GetnSeparableFilterARB 640 -#define _gloffset_GetnTexImageARB 641 -#define _gloffset_GetnUniformdvARB 642 -#define _gloffset_GetnUniformfvARB 643 -#define _gloffset_GetnUniformivARB 644 -#define _gloffset_GetnUniformuivARB 645 -#define _gloffset_ReadnPixelsARB 646 -#define _gloffset_PolygonOffsetEXT 647 -#define _gloffset_GetPixelTexGenParameterfvSGIS 648 -#define _gloffset_GetPixelTexGenParameterivSGIS 649 -#define _gloffset_PixelTexGenParameterfSGIS 650 -#define _gloffset_PixelTexGenParameterfvSGIS 651 -#define _gloffset_PixelTexGenParameteriSGIS 652 -#define _gloffset_PixelTexGenParameterivSGIS 653 -#define _gloffset_SampleMaskSGIS 654 -#define _gloffset_SamplePatternSGIS 655 -#define _gloffset_ColorPointerEXT 656 -#define _gloffset_EdgeFlagPointerEXT 657 -#define _gloffset_IndexPointerEXT 658 -#define _gloffset_NormalPointerEXT 659 -#define _gloffset_TexCoordPointerEXT 660 -#define _gloffset_VertexPointerEXT 661 -#define _gloffset_PointParameterfEXT 662 -#define _gloffset_PointParameterfvEXT 663 -#define _gloffset_LockArraysEXT 664 -#define _gloffset_UnlockArraysEXT 665 -#define _gloffset_SecondaryColor3bEXT 666 -#define _gloffset_SecondaryColor3bvEXT 667 -#define _gloffset_SecondaryColor3dEXT 668 -#define _gloffset_SecondaryColor3dvEXT 669 -#define _gloffset_SecondaryColor3fEXT 670 -#define _gloffset_SecondaryColor3fvEXT 671 -#define _gloffset_SecondaryColor3iEXT 672 -#define _gloffset_SecondaryColor3ivEXT 673 -#define _gloffset_SecondaryColor3sEXT 674 -#define _gloffset_SecondaryColor3svEXT 675 -#define _gloffset_SecondaryColor3ubEXT 676 -#define _gloffset_SecondaryColor3ubvEXT 677 -#define _gloffset_SecondaryColor3uiEXT 678 -#define _gloffset_SecondaryColor3uivEXT 679 -#define _gloffset_SecondaryColor3usEXT 680 -#define _gloffset_SecondaryColor3usvEXT 681 -#define _gloffset_SecondaryColorPointerEXT 682 -#define _gloffset_MultiDrawArraysEXT 683 -#define _gloffset_MultiDrawElementsEXT 684 -#define _gloffset_FogCoordPointerEXT 685 -#define _gloffset_FogCoorddEXT 686 -#define _gloffset_FogCoorddvEXT 687 -#define _gloffset_FogCoordfEXT 688 -#define _gloffset_FogCoordfvEXT 689 -#define _gloffset_PixelTexGenSGIX 690 -#define _gloffset_BlendFuncSeparateEXT 691 -#define _gloffset_FlushVertexArrayRangeNV 692 -#define _gloffset_VertexArrayRangeNV 693 -#define _gloffset_CombinerInputNV 694 -#define _gloffset_CombinerOutputNV 695 -#define _gloffset_CombinerParameterfNV 696 -#define _gloffset_CombinerParameterfvNV 697 -#define _gloffset_CombinerParameteriNV 698 -#define _gloffset_CombinerParameterivNV 699 -#define _gloffset_FinalCombinerInputNV 700 -#define _gloffset_GetCombinerInputParameterfvNV 701 -#define _gloffset_GetCombinerInputParameterivNV 702 -#define _gloffset_GetCombinerOutputParameterfvNV 703 -#define _gloffset_GetCombinerOutputParameterivNV 704 -#define _gloffset_GetFinalCombinerInputParameterfvNV 705 -#define _gloffset_GetFinalCombinerInputParameterivNV 706 -#define _gloffset_ResizeBuffersMESA 707 -#define _gloffset_WindowPos2dMESA 708 -#define _gloffset_WindowPos2dvMESA 709 -#define _gloffset_WindowPos2fMESA 710 -#define _gloffset_WindowPos2fvMESA 711 -#define _gloffset_WindowPos2iMESA 712 -#define _gloffset_WindowPos2ivMESA 713 -#define _gloffset_WindowPos2sMESA 714 -#define _gloffset_WindowPos2svMESA 715 -#define _gloffset_WindowPos3dMESA 716 -#define _gloffset_WindowPos3dvMESA 717 -#define _gloffset_WindowPos3fMESA 718 -#define _gloffset_WindowPos3fvMESA 719 -#define _gloffset_WindowPos3iMESA 720 -#define _gloffset_WindowPos3ivMESA 721 -#define _gloffset_WindowPos3sMESA 722 -#define _gloffset_WindowPos3svMESA 723 -#define _gloffset_WindowPos4dMESA 724 -#define _gloffset_WindowPos4dvMESA 725 -#define _gloffset_WindowPos4fMESA 726 -#define _gloffset_WindowPos4fvMESA 727 -#define _gloffset_WindowPos4iMESA 728 -#define _gloffset_WindowPos4ivMESA 729 -#define _gloffset_WindowPos4sMESA 730 -#define _gloffset_WindowPos4svMESA 731 -#define _gloffset_MultiModeDrawArraysIBM 732 -#define _gloffset_MultiModeDrawElementsIBM 733 -#define _gloffset_DeleteFencesNV 734 -#define _gloffset_FinishFenceNV 735 -#define _gloffset_GenFencesNV 736 -#define _gloffset_GetFenceivNV 737 -#define _gloffset_IsFenceNV 738 -#define _gloffset_SetFenceNV 739 -#define _gloffset_TestFenceNV 740 -#define _gloffset_AreProgramsResidentNV 741 -#define _gloffset_BindProgramNV 742 -#define _gloffset_DeleteProgramsNV 743 -#define _gloffset_ExecuteProgramNV 744 -#define _gloffset_GenProgramsNV 745 -#define _gloffset_GetProgramParameterdvNV 746 -#define _gloffset_GetProgramParameterfvNV 747 -#define _gloffset_GetProgramStringNV 748 -#define _gloffset_GetProgramivNV 749 -#define _gloffset_GetTrackMatrixivNV 750 -#define _gloffset_GetVertexAttribPointervNV 751 -#define _gloffset_GetVertexAttribdvNV 752 -#define _gloffset_GetVertexAttribfvNV 753 -#define _gloffset_GetVertexAttribivNV 754 -#define _gloffset_IsProgramNV 755 -#define _gloffset_LoadProgramNV 756 -#define _gloffset_ProgramParameters4dvNV 757 -#define _gloffset_ProgramParameters4fvNV 758 -#define _gloffset_RequestResidentProgramsNV 759 -#define _gloffset_TrackMatrixNV 760 -#define _gloffset_VertexAttrib1dNV 761 -#define _gloffset_VertexAttrib1dvNV 762 -#define _gloffset_VertexAttrib1fNV 763 -#define _gloffset_VertexAttrib1fvNV 764 -#define _gloffset_VertexAttrib1sNV 765 -#define _gloffset_VertexAttrib1svNV 766 -#define _gloffset_VertexAttrib2dNV 767 -#define _gloffset_VertexAttrib2dvNV 768 -#define _gloffset_VertexAttrib2fNV 769 -#define _gloffset_VertexAttrib2fvNV 770 -#define _gloffset_VertexAttrib2sNV 771 -#define _gloffset_VertexAttrib2svNV 772 -#define _gloffset_VertexAttrib3dNV 773 -#define _gloffset_VertexAttrib3dvNV 774 -#define _gloffset_VertexAttrib3fNV 775 -#define _gloffset_VertexAttrib3fvNV 776 -#define _gloffset_VertexAttrib3sNV 777 -#define _gloffset_VertexAttrib3svNV 778 -#define _gloffset_VertexAttrib4dNV 779 -#define _gloffset_VertexAttrib4dvNV 780 -#define _gloffset_VertexAttrib4fNV 781 -#define _gloffset_VertexAttrib4fvNV 782 -#define _gloffset_VertexAttrib4sNV 783 -#define _gloffset_VertexAttrib4svNV 784 -#define _gloffset_VertexAttrib4ubNV 785 -#define _gloffset_VertexAttrib4ubvNV 786 -#define _gloffset_VertexAttribPointerNV 787 -#define _gloffset_VertexAttribs1dvNV 788 -#define _gloffset_VertexAttribs1fvNV 789 -#define _gloffset_VertexAttribs1svNV 790 -#define _gloffset_VertexAttribs2dvNV 791 -#define _gloffset_VertexAttribs2fvNV 792 -#define _gloffset_VertexAttribs2svNV 793 -#define _gloffset_VertexAttribs3dvNV 794 -#define _gloffset_VertexAttribs3fvNV 795 -#define _gloffset_VertexAttribs3svNV 796 -#define _gloffset_VertexAttribs4dvNV 797 -#define _gloffset_VertexAttribs4fvNV 798 -#define _gloffset_VertexAttribs4svNV 799 -#define _gloffset_VertexAttribs4ubvNV 800 -#define _gloffset_GetTexBumpParameterfvATI 801 -#define _gloffset_GetTexBumpParameterivATI 802 -#define _gloffset_TexBumpParameterfvATI 803 -#define _gloffset_TexBumpParameterivATI 804 -#define _gloffset_AlphaFragmentOp1ATI 805 -#define _gloffset_AlphaFragmentOp2ATI 806 -#define _gloffset_AlphaFragmentOp3ATI 807 -#define _gloffset_BeginFragmentShaderATI 808 -#define _gloffset_BindFragmentShaderATI 809 -#define _gloffset_ColorFragmentOp1ATI 810 -#define _gloffset_ColorFragmentOp2ATI 811 -#define _gloffset_ColorFragmentOp3ATI 812 -#define _gloffset_DeleteFragmentShaderATI 813 -#define _gloffset_EndFragmentShaderATI 814 -#define _gloffset_GenFragmentShadersATI 815 -#define _gloffset_PassTexCoordATI 816 -#define _gloffset_SampleMapATI 817 -#define _gloffset_SetFragmentShaderConstantATI 818 -#define _gloffset_PointParameteriNV 819 -#define _gloffset_PointParameterivNV 820 -#define _gloffset_ActiveStencilFaceEXT 821 -#define _gloffset_BindVertexArrayAPPLE 822 -#define _gloffset_DeleteVertexArraysAPPLE 823 -#define _gloffset_GenVertexArraysAPPLE 824 -#define _gloffset_IsVertexArrayAPPLE 825 -#define _gloffset_GetProgramNamedParameterdvNV 826 -#define _gloffset_GetProgramNamedParameterfvNV 827 -#define _gloffset_ProgramNamedParameter4dNV 828 -#define _gloffset_ProgramNamedParameter4dvNV 829 -#define _gloffset_ProgramNamedParameter4fNV 830 -#define _gloffset_ProgramNamedParameter4fvNV 831 -#define _gloffset_PrimitiveRestartIndexNV 832 -#define _gloffset_PrimitiveRestartNV 833 -#define _gloffset_DepthBoundsEXT 834 -#define _gloffset_BlendEquationSeparateEXT 835 -#define _gloffset_BindFramebufferEXT 836 -#define _gloffset_BindRenderbufferEXT 837 -#define _gloffset_CheckFramebufferStatusEXT 838 -#define _gloffset_DeleteFramebuffersEXT 839 -#define _gloffset_DeleteRenderbuffersEXT 840 -#define _gloffset_FramebufferRenderbufferEXT 841 -#define _gloffset_FramebufferTexture1DEXT 842 -#define _gloffset_FramebufferTexture2DEXT 843 -#define _gloffset_FramebufferTexture3DEXT 844 -#define _gloffset_GenFramebuffersEXT 845 -#define _gloffset_GenRenderbuffersEXT 846 -#define _gloffset_GenerateMipmapEXT 847 -#define _gloffset_GetFramebufferAttachmentParameterivEXT 848 -#define _gloffset_GetRenderbufferParameterivEXT 849 -#define _gloffset_IsFramebufferEXT 850 -#define _gloffset_IsRenderbufferEXT 851 -#define _gloffset_RenderbufferStorageEXT 852 -#define _gloffset_BlitFramebufferEXT 853 -#define _gloffset_BufferParameteriAPPLE 854 -#define _gloffset_FlushMappedBufferRangeAPPLE 855 -#define _gloffset_BindFragDataLocationEXT 856 -#define _gloffset_GetFragDataLocationEXT 857 -#define _gloffset_GetUniformuivEXT 858 -#define _gloffset_GetVertexAttribIivEXT 859 -#define _gloffset_GetVertexAttribIuivEXT 860 -#define _gloffset_Uniform1uiEXT 861 -#define _gloffset_Uniform1uivEXT 862 -#define _gloffset_Uniform2uiEXT 863 -#define _gloffset_Uniform2uivEXT 864 -#define _gloffset_Uniform3uiEXT 865 -#define _gloffset_Uniform3uivEXT 866 -#define _gloffset_Uniform4uiEXT 867 -#define _gloffset_Uniform4uivEXT 868 -#define _gloffset_VertexAttribI1iEXT 869 -#define _gloffset_VertexAttribI1ivEXT 870 -#define _gloffset_VertexAttribI1uiEXT 871 -#define _gloffset_VertexAttribI1uivEXT 872 -#define _gloffset_VertexAttribI2iEXT 873 -#define _gloffset_VertexAttribI2ivEXT 874 -#define _gloffset_VertexAttribI2uiEXT 875 -#define _gloffset_VertexAttribI2uivEXT 876 -#define _gloffset_VertexAttribI3iEXT 877 -#define _gloffset_VertexAttribI3ivEXT 878 -#define _gloffset_VertexAttribI3uiEXT 879 -#define _gloffset_VertexAttribI3uivEXT 880 -#define _gloffset_VertexAttribI4bvEXT 881 -#define _gloffset_VertexAttribI4iEXT 882 -#define _gloffset_VertexAttribI4ivEXT 883 -#define _gloffset_VertexAttribI4svEXT 884 -#define _gloffset_VertexAttribI4ubvEXT 885 -#define _gloffset_VertexAttribI4uiEXT 886 -#define _gloffset_VertexAttribI4uivEXT 887 -#define _gloffset_VertexAttribI4usvEXT 888 -#define _gloffset_VertexAttribIPointerEXT 889 -#define _gloffset_FramebufferTextureLayerEXT 890 -#define _gloffset_ColorMaskIndexedEXT 891 -#define _gloffset_DisableIndexedEXT 892 -#define _gloffset_EnableIndexedEXT 893 -#define _gloffset_GetBooleanIndexedvEXT 894 -#define _gloffset_GetIntegerIndexedvEXT 895 -#define _gloffset_IsEnabledIndexedEXT 896 -#define _gloffset_ClearColorIiEXT 897 -#define _gloffset_ClearColorIuiEXT 898 -#define _gloffset_GetTexParameterIivEXT 899 -#define _gloffset_GetTexParameterIuivEXT 900 -#define _gloffset_TexParameterIivEXT 901 -#define _gloffset_TexParameterIuivEXT 902 -#define _gloffset_BeginConditionalRenderNV 903 -#define _gloffset_EndConditionalRenderNV 904 -#define _gloffset_BeginTransformFeedbackEXT 905 -#define _gloffset_BindBufferBaseEXT 906 -#define _gloffset_BindBufferOffsetEXT 907 -#define _gloffset_BindBufferRangeEXT 908 -#define _gloffset_EndTransformFeedbackEXT 909 -#define _gloffset_GetTransformFeedbackVaryingEXT 910 -#define _gloffset_TransformFeedbackVaryingsEXT 911 -#define _gloffset_ProvokingVertexEXT 912 -#define _gloffset_GetTexParameterPointervAPPLE 913 -#define _gloffset_TextureRangeAPPLE 914 -#define _gloffset_GetObjectParameterivAPPLE 915 -#define _gloffset_ObjectPurgeableAPPLE 916 -#define _gloffset_ObjectUnpurgeableAPPLE 917 -#define _gloffset_ActiveProgramEXT 918 -#define _gloffset_CreateShaderProgramEXT 919 -#define _gloffset_UseShaderProgramEXT 920 -#define _gloffset_TextureBarrierNV 921 -#define _gloffset_StencilFuncSeparateATI 922 -#define _gloffset_ProgramEnvParameters4fvEXT 923 -#define _gloffset_ProgramLocalParameters4fvEXT 924 -#define _gloffset_GetQueryObjecti64vEXT 925 -#define _gloffset_GetQueryObjectui64vEXT 926 -#define _gloffset_EGLImageTargetRenderbufferStorageOES 927 -#define _gloffset_EGLImageTargetTexture2DOES 928 - -#else /* !_GLAPI_USE_REMAP_TABLE */ - -#define driDispatchRemapTable_size 521 -extern int driDispatchRemapTable[ driDispatchRemapTable_size ]; - -#define AttachShader_remap_index 0 -#define CreateProgram_remap_index 1 -#define CreateShader_remap_index 2 -#define DeleteProgram_remap_index 3 -#define DeleteShader_remap_index 4 -#define DetachShader_remap_index 5 -#define GetAttachedShaders_remap_index 6 -#define GetProgramInfoLog_remap_index 7 -#define GetProgramiv_remap_index 8 -#define GetShaderInfoLog_remap_index 9 -#define GetShaderiv_remap_index 10 -#define IsProgram_remap_index 11 -#define IsShader_remap_index 12 -#define StencilFuncSeparate_remap_index 13 -#define StencilMaskSeparate_remap_index 14 -#define StencilOpSeparate_remap_index 15 -#define UniformMatrix2x3fv_remap_index 16 -#define UniformMatrix2x4fv_remap_index 17 -#define UniformMatrix3x2fv_remap_index 18 -#define UniformMatrix3x4fv_remap_index 19 -#define UniformMatrix4x2fv_remap_index 20 -#define UniformMatrix4x3fv_remap_index 21 -#define ClampColor_remap_index 22 -#define ClearBufferfi_remap_index 23 -#define ClearBufferfv_remap_index 24 -#define ClearBufferiv_remap_index 25 -#define ClearBufferuiv_remap_index 26 -#define GetStringi_remap_index 27 -#define TexBuffer_remap_index 28 -#define FramebufferTexture_remap_index 29 -#define GetBufferParameteri64v_remap_index 30 -#define GetInteger64i_v_remap_index 31 -#define VertexAttribDivisor_remap_index 32 -#define LoadTransposeMatrixdARB_remap_index 33 -#define LoadTransposeMatrixfARB_remap_index 34 -#define MultTransposeMatrixdARB_remap_index 35 -#define MultTransposeMatrixfARB_remap_index 36 -#define SampleCoverageARB_remap_index 37 -#define CompressedTexImage1DARB_remap_index 38 -#define CompressedTexImage2DARB_remap_index 39 -#define CompressedTexImage3DARB_remap_index 40 -#define CompressedTexSubImage1DARB_remap_index 41 -#define CompressedTexSubImage2DARB_remap_index 42 -#define CompressedTexSubImage3DARB_remap_index 43 -#define GetCompressedTexImageARB_remap_index 44 -#define DisableVertexAttribArrayARB_remap_index 45 -#define EnableVertexAttribArrayARB_remap_index 46 -#define GetProgramEnvParameterdvARB_remap_index 47 -#define GetProgramEnvParameterfvARB_remap_index 48 -#define GetProgramLocalParameterdvARB_remap_index 49 -#define GetProgramLocalParameterfvARB_remap_index 50 -#define GetProgramStringARB_remap_index 51 -#define GetProgramivARB_remap_index 52 -#define GetVertexAttribdvARB_remap_index 53 -#define GetVertexAttribfvARB_remap_index 54 -#define GetVertexAttribivARB_remap_index 55 -#define ProgramEnvParameter4dARB_remap_index 56 -#define ProgramEnvParameter4dvARB_remap_index 57 -#define ProgramEnvParameter4fARB_remap_index 58 -#define ProgramEnvParameter4fvARB_remap_index 59 -#define ProgramLocalParameter4dARB_remap_index 60 -#define ProgramLocalParameter4dvARB_remap_index 61 -#define ProgramLocalParameter4fARB_remap_index 62 -#define ProgramLocalParameter4fvARB_remap_index 63 -#define ProgramStringARB_remap_index 64 -#define VertexAttrib1dARB_remap_index 65 -#define VertexAttrib1dvARB_remap_index 66 -#define VertexAttrib1fARB_remap_index 67 -#define VertexAttrib1fvARB_remap_index 68 -#define VertexAttrib1sARB_remap_index 69 -#define VertexAttrib1svARB_remap_index 70 -#define VertexAttrib2dARB_remap_index 71 -#define VertexAttrib2dvARB_remap_index 72 -#define VertexAttrib2fARB_remap_index 73 -#define VertexAttrib2fvARB_remap_index 74 -#define VertexAttrib2sARB_remap_index 75 -#define VertexAttrib2svARB_remap_index 76 -#define VertexAttrib3dARB_remap_index 77 -#define VertexAttrib3dvARB_remap_index 78 -#define VertexAttrib3fARB_remap_index 79 -#define VertexAttrib3fvARB_remap_index 80 -#define VertexAttrib3sARB_remap_index 81 -#define VertexAttrib3svARB_remap_index 82 -#define VertexAttrib4NbvARB_remap_index 83 -#define VertexAttrib4NivARB_remap_index 84 -#define VertexAttrib4NsvARB_remap_index 85 -#define VertexAttrib4NubARB_remap_index 86 -#define VertexAttrib4NubvARB_remap_index 87 -#define VertexAttrib4NuivARB_remap_index 88 -#define VertexAttrib4NusvARB_remap_index 89 -#define VertexAttrib4bvARB_remap_index 90 -#define VertexAttrib4dARB_remap_index 91 -#define VertexAttrib4dvARB_remap_index 92 -#define VertexAttrib4fARB_remap_index 93 -#define VertexAttrib4fvARB_remap_index 94 -#define VertexAttrib4ivARB_remap_index 95 -#define VertexAttrib4sARB_remap_index 96 -#define VertexAttrib4svARB_remap_index 97 -#define VertexAttrib4ubvARB_remap_index 98 -#define VertexAttrib4uivARB_remap_index 99 -#define VertexAttrib4usvARB_remap_index 100 -#define VertexAttribPointerARB_remap_index 101 -#define BindBufferARB_remap_index 102 -#define BufferDataARB_remap_index 103 -#define BufferSubDataARB_remap_index 104 -#define DeleteBuffersARB_remap_index 105 -#define GenBuffersARB_remap_index 106 -#define GetBufferParameterivARB_remap_index 107 -#define GetBufferPointervARB_remap_index 108 -#define GetBufferSubDataARB_remap_index 109 -#define IsBufferARB_remap_index 110 -#define MapBufferARB_remap_index 111 -#define UnmapBufferARB_remap_index 112 -#define BeginQueryARB_remap_index 113 -#define DeleteQueriesARB_remap_index 114 -#define EndQueryARB_remap_index 115 -#define GenQueriesARB_remap_index 116 -#define GetQueryObjectivARB_remap_index 117 -#define GetQueryObjectuivARB_remap_index 118 -#define GetQueryivARB_remap_index 119 -#define IsQueryARB_remap_index 120 -#define AttachObjectARB_remap_index 121 -#define CompileShaderARB_remap_index 122 -#define CreateProgramObjectARB_remap_index 123 -#define CreateShaderObjectARB_remap_index 124 -#define DeleteObjectARB_remap_index 125 -#define DetachObjectARB_remap_index 126 -#define GetActiveUniformARB_remap_index 127 -#define GetAttachedObjectsARB_remap_index 128 -#define GetHandleARB_remap_index 129 -#define GetInfoLogARB_remap_index 130 -#define GetObjectParameterfvARB_remap_index 131 -#define GetObjectParameterivARB_remap_index 132 -#define GetShaderSourceARB_remap_index 133 -#define GetUniformLocationARB_remap_index 134 -#define GetUniformfvARB_remap_index 135 -#define GetUniformivARB_remap_index 136 -#define LinkProgramARB_remap_index 137 -#define ShaderSourceARB_remap_index 138 -#define Uniform1fARB_remap_index 139 -#define Uniform1fvARB_remap_index 140 -#define Uniform1iARB_remap_index 141 -#define Uniform1ivARB_remap_index 142 -#define Uniform2fARB_remap_index 143 -#define Uniform2fvARB_remap_index 144 -#define Uniform2iARB_remap_index 145 -#define Uniform2ivARB_remap_index 146 -#define Uniform3fARB_remap_index 147 -#define Uniform3fvARB_remap_index 148 -#define Uniform3iARB_remap_index 149 -#define Uniform3ivARB_remap_index 150 -#define Uniform4fARB_remap_index 151 -#define Uniform4fvARB_remap_index 152 -#define Uniform4iARB_remap_index 153 -#define Uniform4ivARB_remap_index 154 -#define UniformMatrix2fvARB_remap_index 155 -#define UniformMatrix3fvARB_remap_index 156 -#define UniformMatrix4fvARB_remap_index 157 -#define UseProgramObjectARB_remap_index 158 -#define ValidateProgramARB_remap_index 159 -#define BindAttribLocationARB_remap_index 160 -#define GetActiveAttribARB_remap_index 161 -#define GetAttribLocationARB_remap_index 162 -#define DrawBuffersARB_remap_index 163 -#define ClampColorARB_remap_index 164 -#define DrawArraysInstancedARB_remap_index 165 -#define DrawElementsInstancedARB_remap_index 166 -#define RenderbufferStorageMultisample_remap_index 167 -#define FramebufferTextureARB_remap_index 168 -#define FramebufferTextureFaceARB_remap_index 169 -#define ProgramParameteriARB_remap_index 170 -#define VertexAttribDivisorARB_remap_index 171 -#define FlushMappedBufferRange_remap_index 172 -#define MapBufferRange_remap_index 173 -#define TexBufferARB_remap_index 174 -#define BindVertexArray_remap_index 175 -#define GenVertexArrays_remap_index 176 -#define CopyBufferSubData_remap_index 177 -#define ClientWaitSync_remap_index 178 -#define DeleteSync_remap_index 179 -#define FenceSync_remap_index 180 -#define GetInteger64v_remap_index 181 -#define GetSynciv_remap_index 182 -#define IsSync_remap_index 183 -#define WaitSync_remap_index 184 -#define DrawElementsBaseVertex_remap_index 185 -#define DrawElementsInstancedBaseVertex_remap_index 186 -#define DrawRangeElementsBaseVertex_remap_index 187 -#define MultiDrawElementsBaseVertex_remap_index 188 -#define BlendEquationSeparateiARB_remap_index 189 -#define BlendEquationiARB_remap_index 190 -#define BlendFuncSeparateiARB_remap_index 191 -#define BlendFunciARB_remap_index 192 -#define BindSampler_remap_index 193 -#define DeleteSamplers_remap_index 194 -#define GenSamplers_remap_index 195 -#define GetSamplerParameterIiv_remap_index 196 -#define GetSamplerParameterIuiv_remap_index 197 -#define GetSamplerParameterfv_remap_index 198 -#define GetSamplerParameteriv_remap_index 199 -#define IsSampler_remap_index 200 -#define SamplerParameterIiv_remap_index 201 -#define SamplerParameterIuiv_remap_index 202 -#define SamplerParameterf_remap_index 203 -#define SamplerParameterfv_remap_index 204 -#define SamplerParameteri_remap_index 205 -#define SamplerParameteriv_remap_index 206 -#define BindTransformFeedback_remap_index 207 -#define DeleteTransformFeedbacks_remap_index 208 -#define DrawTransformFeedback_remap_index 209 -#define GenTransformFeedbacks_remap_index 210 -#define IsTransformFeedback_remap_index 211 -#define PauseTransformFeedback_remap_index 212 -#define ResumeTransformFeedback_remap_index 213 -#define ClearDepthf_remap_index 214 -#define DepthRangef_remap_index 215 -#define GetShaderPrecisionFormat_remap_index 216 -#define ReleaseShaderCompiler_remap_index 217 -#define ShaderBinary_remap_index 218 -#define GetGraphicsResetStatusARB_remap_index 219 -#define GetnColorTableARB_remap_index 220 -#define GetnCompressedTexImageARB_remap_index 221 -#define GetnConvolutionFilterARB_remap_index 222 -#define GetnHistogramARB_remap_index 223 -#define GetnMapdvARB_remap_index 224 -#define GetnMapfvARB_remap_index 225 -#define GetnMapivARB_remap_index 226 -#define GetnMinmaxARB_remap_index 227 -#define GetnPixelMapfvARB_remap_index 228 -#define GetnPixelMapuivARB_remap_index 229 -#define GetnPixelMapusvARB_remap_index 230 -#define GetnPolygonStippleARB_remap_index 231 -#define GetnSeparableFilterARB_remap_index 232 -#define GetnTexImageARB_remap_index 233 -#define GetnUniformdvARB_remap_index 234 -#define GetnUniformfvARB_remap_index 235 -#define GetnUniformivARB_remap_index 236 -#define GetnUniformuivARB_remap_index 237 -#define ReadnPixelsARB_remap_index 238 -#define PolygonOffsetEXT_remap_index 239 -#define GetPixelTexGenParameterfvSGIS_remap_index 240 -#define GetPixelTexGenParameterivSGIS_remap_index 241 -#define PixelTexGenParameterfSGIS_remap_index 242 -#define PixelTexGenParameterfvSGIS_remap_index 243 -#define PixelTexGenParameteriSGIS_remap_index 244 -#define PixelTexGenParameterivSGIS_remap_index 245 -#define SampleMaskSGIS_remap_index 246 -#define SamplePatternSGIS_remap_index 247 -#define ColorPointerEXT_remap_index 248 -#define EdgeFlagPointerEXT_remap_index 249 -#define IndexPointerEXT_remap_index 250 -#define NormalPointerEXT_remap_index 251 -#define TexCoordPointerEXT_remap_index 252 -#define VertexPointerEXT_remap_index 253 -#define PointParameterfEXT_remap_index 254 -#define PointParameterfvEXT_remap_index 255 -#define LockArraysEXT_remap_index 256 -#define UnlockArraysEXT_remap_index 257 -#define SecondaryColor3bEXT_remap_index 258 -#define SecondaryColor3bvEXT_remap_index 259 -#define SecondaryColor3dEXT_remap_index 260 -#define SecondaryColor3dvEXT_remap_index 261 -#define SecondaryColor3fEXT_remap_index 262 -#define SecondaryColor3fvEXT_remap_index 263 -#define SecondaryColor3iEXT_remap_index 264 -#define SecondaryColor3ivEXT_remap_index 265 -#define SecondaryColor3sEXT_remap_index 266 -#define SecondaryColor3svEXT_remap_index 267 -#define SecondaryColor3ubEXT_remap_index 268 -#define SecondaryColor3ubvEXT_remap_index 269 -#define SecondaryColor3uiEXT_remap_index 270 -#define SecondaryColor3uivEXT_remap_index 271 -#define SecondaryColor3usEXT_remap_index 272 -#define SecondaryColor3usvEXT_remap_index 273 -#define SecondaryColorPointerEXT_remap_index 274 -#define MultiDrawArraysEXT_remap_index 275 -#define MultiDrawElementsEXT_remap_index 276 -#define FogCoordPointerEXT_remap_index 277 -#define FogCoorddEXT_remap_index 278 -#define FogCoorddvEXT_remap_index 279 -#define FogCoordfEXT_remap_index 280 -#define FogCoordfvEXT_remap_index 281 -#define PixelTexGenSGIX_remap_index 282 -#define BlendFuncSeparateEXT_remap_index 283 -#define FlushVertexArrayRangeNV_remap_index 284 -#define VertexArrayRangeNV_remap_index 285 -#define CombinerInputNV_remap_index 286 -#define CombinerOutputNV_remap_index 287 -#define CombinerParameterfNV_remap_index 288 -#define CombinerParameterfvNV_remap_index 289 -#define CombinerParameteriNV_remap_index 290 -#define CombinerParameterivNV_remap_index 291 -#define FinalCombinerInputNV_remap_index 292 -#define GetCombinerInputParameterfvNV_remap_index 293 -#define GetCombinerInputParameterivNV_remap_index 294 -#define GetCombinerOutputParameterfvNV_remap_index 295 -#define GetCombinerOutputParameterivNV_remap_index 296 -#define GetFinalCombinerInputParameterfvNV_remap_index 297 -#define GetFinalCombinerInputParameterivNV_remap_index 298 -#define ResizeBuffersMESA_remap_index 299 -#define WindowPos2dMESA_remap_index 300 -#define WindowPos2dvMESA_remap_index 301 -#define WindowPos2fMESA_remap_index 302 -#define WindowPos2fvMESA_remap_index 303 -#define WindowPos2iMESA_remap_index 304 -#define WindowPos2ivMESA_remap_index 305 -#define WindowPos2sMESA_remap_index 306 -#define WindowPos2svMESA_remap_index 307 -#define WindowPos3dMESA_remap_index 308 -#define WindowPos3dvMESA_remap_index 309 -#define WindowPos3fMESA_remap_index 310 -#define WindowPos3fvMESA_remap_index 311 -#define WindowPos3iMESA_remap_index 312 -#define WindowPos3ivMESA_remap_index 313 -#define WindowPos3sMESA_remap_index 314 -#define WindowPos3svMESA_remap_index 315 -#define WindowPos4dMESA_remap_index 316 -#define WindowPos4dvMESA_remap_index 317 -#define WindowPos4fMESA_remap_index 318 -#define WindowPos4fvMESA_remap_index 319 -#define WindowPos4iMESA_remap_index 320 -#define WindowPos4ivMESA_remap_index 321 -#define WindowPos4sMESA_remap_index 322 -#define WindowPos4svMESA_remap_index 323 -#define MultiModeDrawArraysIBM_remap_index 324 -#define MultiModeDrawElementsIBM_remap_index 325 -#define DeleteFencesNV_remap_index 326 -#define FinishFenceNV_remap_index 327 -#define GenFencesNV_remap_index 328 -#define GetFenceivNV_remap_index 329 -#define IsFenceNV_remap_index 330 -#define SetFenceNV_remap_index 331 -#define TestFenceNV_remap_index 332 -#define AreProgramsResidentNV_remap_index 333 -#define BindProgramNV_remap_index 334 -#define DeleteProgramsNV_remap_index 335 -#define ExecuteProgramNV_remap_index 336 -#define GenProgramsNV_remap_index 337 -#define GetProgramParameterdvNV_remap_index 338 -#define GetProgramParameterfvNV_remap_index 339 -#define GetProgramStringNV_remap_index 340 -#define GetProgramivNV_remap_index 341 -#define GetTrackMatrixivNV_remap_index 342 -#define GetVertexAttribPointervNV_remap_index 343 -#define GetVertexAttribdvNV_remap_index 344 -#define GetVertexAttribfvNV_remap_index 345 -#define GetVertexAttribivNV_remap_index 346 -#define IsProgramNV_remap_index 347 -#define LoadProgramNV_remap_index 348 -#define ProgramParameters4dvNV_remap_index 349 -#define ProgramParameters4fvNV_remap_index 350 -#define RequestResidentProgramsNV_remap_index 351 -#define TrackMatrixNV_remap_index 352 -#define VertexAttrib1dNV_remap_index 353 -#define VertexAttrib1dvNV_remap_index 354 -#define VertexAttrib1fNV_remap_index 355 -#define VertexAttrib1fvNV_remap_index 356 -#define VertexAttrib1sNV_remap_index 357 -#define VertexAttrib1svNV_remap_index 358 -#define VertexAttrib2dNV_remap_index 359 -#define VertexAttrib2dvNV_remap_index 360 -#define VertexAttrib2fNV_remap_index 361 -#define VertexAttrib2fvNV_remap_index 362 -#define VertexAttrib2sNV_remap_index 363 -#define VertexAttrib2svNV_remap_index 364 -#define VertexAttrib3dNV_remap_index 365 -#define VertexAttrib3dvNV_remap_index 366 -#define VertexAttrib3fNV_remap_index 367 -#define VertexAttrib3fvNV_remap_index 368 -#define VertexAttrib3sNV_remap_index 369 -#define VertexAttrib3svNV_remap_index 370 -#define VertexAttrib4dNV_remap_index 371 -#define VertexAttrib4dvNV_remap_index 372 -#define VertexAttrib4fNV_remap_index 373 -#define VertexAttrib4fvNV_remap_index 374 -#define VertexAttrib4sNV_remap_index 375 -#define VertexAttrib4svNV_remap_index 376 -#define VertexAttrib4ubNV_remap_index 377 -#define VertexAttrib4ubvNV_remap_index 378 -#define VertexAttribPointerNV_remap_index 379 -#define VertexAttribs1dvNV_remap_index 380 -#define VertexAttribs1fvNV_remap_index 381 -#define VertexAttribs1svNV_remap_index 382 -#define VertexAttribs2dvNV_remap_index 383 -#define VertexAttribs2fvNV_remap_index 384 -#define VertexAttribs2svNV_remap_index 385 -#define VertexAttribs3dvNV_remap_index 386 -#define VertexAttribs3fvNV_remap_index 387 -#define VertexAttribs3svNV_remap_index 388 -#define VertexAttribs4dvNV_remap_index 389 -#define VertexAttribs4fvNV_remap_index 390 -#define VertexAttribs4svNV_remap_index 391 -#define VertexAttribs4ubvNV_remap_index 392 -#define GetTexBumpParameterfvATI_remap_index 393 -#define GetTexBumpParameterivATI_remap_index 394 -#define TexBumpParameterfvATI_remap_index 395 -#define TexBumpParameterivATI_remap_index 396 -#define AlphaFragmentOp1ATI_remap_index 397 -#define AlphaFragmentOp2ATI_remap_index 398 -#define AlphaFragmentOp3ATI_remap_index 399 -#define BeginFragmentShaderATI_remap_index 400 -#define BindFragmentShaderATI_remap_index 401 -#define ColorFragmentOp1ATI_remap_index 402 -#define ColorFragmentOp2ATI_remap_index 403 -#define ColorFragmentOp3ATI_remap_index 404 -#define DeleteFragmentShaderATI_remap_index 405 -#define EndFragmentShaderATI_remap_index 406 -#define GenFragmentShadersATI_remap_index 407 -#define PassTexCoordATI_remap_index 408 -#define SampleMapATI_remap_index 409 -#define SetFragmentShaderConstantATI_remap_index 410 -#define PointParameteriNV_remap_index 411 -#define PointParameterivNV_remap_index 412 -#define ActiveStencilFaceEXT_remap_index 413 -#define BindVertexArrayAPPLE_remap_index 414 -#define DeleteVertexArraysAPPLE_remap_index 415 -#define GenVertexArraysAPPLE_remap_index 416 -#define IsVertexArrayAPPLE_remap_index 417 -#define GetProgramNamedParameterdvNV_remap_index 418 -#define GetProgramNamedParameterfvNV_remap_index 419 -#define ProgramNamedParameter4dNV_remap_index 420 -#define ProgramNamedParameter4dvNV_remap_index 421 -#define ProgramNamedParameter4fNV_remap_index 422 -#define ProgramNamedParameter4fvNV_remap_index 423 -#define PrimitiveRestartIndexNV_remap_index 424 -#define PrimitiveRestartNV_remap_index 425 -#define DepthBoundsEXT_remap_index 426 -#define BlendEquationSeparateEXT_remap_index 427 -#define BindFramebufferEXT_remap_index 428 -#define BindRenderbufferEXT_remap_index 429 -#define CheckFramebufferStatusEXT_remap_index 430 -#define DeleteFramebuffersEXT_remap_index 431 -#define DeleteRenderbuffersEXT_remap_index 432 -#define FramebufferRenderbufferEXT_remap_index 433 -#define FramebufferTexture1DEXT_remap_index 434 -#define FramebufferTexture2DEXT_remap_index 435 -#define FramebufferTexture3DEXT_remap_index 436 -#define GenFramebuffersEXT_remap_index 437 -#define GenRenderbuffersEXT_remap_index 438 -#define GenerateMipmapEXT_remap_index 439 -#define GetFramebufferAttachmentParameterivEXT_remap_index 440 -#define GetRenderbufferParameterivEXT_remap_index 441 -#define IsFramebufferEXT_remap_index 442 -#define IsRenderbufferEXT_remap_index 443 -#define RenderbufferStorageEXT_remap_index 444 -#define BlitFramebufferEXT_remap_index 445 -#define BufferParameteriAPPLE_remap_index 446 -#define FlushMappedBufferRangeAPPLE_remap_index 447 -#define BindFragDataLocationEXT_remap_index 448 -#define GetFragDataLocationEXT_remap_index 449 -#define GetUniformuivEXT_remap_index 450 -#define GetVertexAttribIivEXT_remap_index 451 -#define GetVertexAttribIuivEXT_remap_index 452 -#define Uniform1uiEXT_remap_index 453 -#define Uniform1uivEXT_remap_index 454 -#define Uniform2uiEXT_remap_index 455 -#define Uniform2uivEXT_remap_index 456 -#define Uniform3uiEXT_remap_index 457 -#define Uniform3uivEXT_remap_index 458 -#define Uniform4uiEXT_remap_index 459 -#define Uniform4uivEXT_remap_index 460 -#define VertexAttribI1iEXT_remap_index 461 -#define VertexAttribI1ivEXT_remap_index 462 -#define VertexAttribI1uiEXT_remap_index 463 -#define VertexAttribI1uivEXT_remap_index 464 -#define VertexAttribI2iEXT_remap_index 465 -#define VertexAttribI2ivEXT_remap_index 466 -#define VertexAttribI2uiEXT_remap_index 467 -#define VertexAttribI2uivEXT_remap_index 468 -#define VertexAttribI3iEXT_remap_index 469 -#define VertexAttribI3ivEXT_remap_index 470 -#define VertexAttribI3uiEXT_remap_index 471 -#define VertexAttribI3uivEXT_remap_index 472 -#define VertexAttribI4bvEXT_remap_index 473 -#define VertexAttribI4iEXT_remap_index 474 -#define VertexAttribI4ivEXT_remap_index 475 -#define VertexAttribI4svEXT_remap_index 476 -#define VertexAttribI4ubvEXT_remap_index 477 -#define VertexAttribI4uiEXT_remap_index 478 -#define VertexAttribI4uivEXT_remap_index 479 -#define VertexAttribI4usvEXT_remap_index 480 -#define VertexAttribIPointerEXT_remap_index 481 -#define FramebufferTextureLayerEXT_remap_index 482 -#define ColorMaskIndexedEXT_remap_index 483 -#define DisableIndexedEXT_remap_index 484 -#define EnableIndexedEXT_remap_index 485 -#define GetBooleanIndexedvEXT_remap_index 486 -#define GetIntegerIndexedvEXT_remap_index 487 -#define IsEnabledIndexedEXT_remap_index 488 -#define ClearColorIiEXT_remap_index 489 -#define ClearColorIuiEXT_remap_index 490 -#define GetTexParameterIivEXT_remap_index 491 -#define GetTexParameterIuivEXT_remap_index 492 -#define TexParameterIivEXT_remap_index 493 -#define TexParameterIuivEXT_remap_index 494 -#define BeginConditionalRenderNV_remap_index 495 -#define EndConditionalRenderNV_remap_index 496 -#define BeginTransformFeedbackEXT_remap_index 497 -#define BindBufferBaseEXT_remap_index 498 -#define BindBufferOffsetEXT_remap_index 499 -#define BindBufferRangeEXT_remap_index 500 -#define EndTransformFeedbackEXT_remap_index 501 -#define GetTransformFeedbackVaryingEXT_remap_index 502 -#define TransformFeedbackVaryingsEXT_remap_index 503 -#define ProvokingVertexEXT_remap_index 504 -#define GetTexParameterPointervAPPLE_remap_index 505 -#define TextureRangeAPPLE_remap_index 506 -#define GetObjectParameterivAPPLE_remap_index 507 -#define ObjectPurgeableAPPLE_remap_index 508 -#define ObjectUnpurgeableAPPLE_remap_index 509 -#define ActiveProgramEXT_remap_index 510 -#define CreateShaderProgramEXT_remap_index 511 -#define UseShaderProgramEXT_remap_index 512 -#define TextureBarrierNV_remap_index 513 -#define StencilFuncSeparateATI_remap_index 514 -#define ProgramEnvParameters4fvEXT_remap_index 515 -#define ProgramLocalParameters4fvEXT_remap_index 516 -#define GetQueryObjecti64vEXT_remap_index 517 -#define GetQueryObjectui64vEXT_remap_index 518 -#define EGLImageTargetRenderbufferStorageOES_remap_index 519 -#define EGLImageTargetTexture2DOES_remap_index 520 - -#define _gloffset_AttachShader driDispatchRemapTable[AttachShader_remap_index] -#define _gloffset_CreateProgram driDispatchRemapTable[CreateProgram_remap_index] -#define _gloffset_CreateShader driDispatchRemapTable[CreateShader_remap_index] -#define _gloffset_DeleteProgram driDispatchRemapTable[DeleteProgram_remap_index] -#define _gloffset_DeleteShader driDispatchRemapTable[DeleteShader_remap_index] -#define _gloffset_DetachShader driDispatchRemapTable[DetachShader_remap_index] -#define _gloffset_GetAttachedShaders driDispatchRemapTable[GetAttachedShaders_remap_index] -#define _gloffset_GetProgramInfoLog driDispatchRemapTable[GetProgramInfoLog_remap_index] -#define _gloffset_GetProgramiv driDispatchRemapTable[GetProgramiv_remap_index] -#define _gloffset_GetShaderInfoLog driDispatchRemapTable[GetShaderInfoLog_remap_index] -#define _gloffset_GetShaderiv driDispatchRemapTable[GetShaderiv_remap_index] -#define _gloffset_IsProgram driDispatchRemapTable[IsProgram_remap_index] -#define _gloffset_IsShader driDispatchRemapTable[IsShader_remap_index] -#define _gloffset_StencilFuncSeparate driDispatchRemapTable[StencilFuncSeparate_remap_index] -#define _gloffset_StencilMaskSeparate driDispatchRemapTable[StencilMaskSeparate_remap_index] -#define _gloffset_StencilOpSeparate driDispatchRemapTable[StencilOpSeparate_remap_index] -#define _gloffset_UniformMatrix2x3fv driDispatchRemapTable[UniformMatrix2x3fv_remap_index] -#define _gloffset_UniformMatrix2x4fv driDispatchRemapTable[UniformMatrix2x4fv_remap_index] -#define _gloffset_UniformMatrix3x2fv driDispatchRemapTable[UniformMatrix3x2fv_remap_index] -#define _gloffset_UniformMatrix3x4fv driDispatchRemapTable[UniformMatrix3x4fv_remap_index] -#define _gloffset_UniformMatrix4x2fv driDispatchRemapTable[UniformMatrix4x2fv_remap_index] -#define _gloffset_UniformMatrix4x3fv driDispatchRemapTable[UniformMatrix4x3fv_remap_index] -#define _gloffset_ClampColor driDispatchRemapTable[ClampColor_remap_index] -#define _gloffset_ClearBufferfi driDispatchRemapTable[ClearBufferfi_remap_index] -#define _gloffset_ClearBufferfv driDispatchRemapTable[ClearBufferfv_remap_index] -#define _gloffset_ClearBufferiv driDispatchRemapTable[ClearBufferiv_remap_index] -#define _gloffset_ClearBufferuiv driDispatchRemapTable[ClearBufferuiv_remap_index] -#define _gloffset_GetStringi driDispatchRemapTable[GetStringi_remap_index] -#define _gloffset_TexBuffer driDispatchRemapTable[TexBuffer_remap_index] -#define _gloffset_FramebufferTexture driDispatchRemapTable[FramebufferTexture_remap_index] -#define _gloffset_GetBufferParameteri64v driDispatchRemapTable[GetBufferParameteri64v_remap_index] -#define _gloffset_GetInteger64i_v driDispatchRemapTable[GetInteger64i_v_remap_index] -#define _gloffset_VertexAttribDivisor driDispatchRemapTable[VertexAttribDivisor_remap_index] -#define _gloffset_LoadTransposeMatrixdARB driDispatchRemapTable[LoadTransposeMatrixdARB_remap_index] -#define _gloffset_LoadTransposeMatrixfARB driDispatchRemapTable[LoadTransposeMatrixfARB_remap_index] -#define _gloffset_MultTransposeMatrixdARB driDispatchRemapTable[MultTransposeMatrixdARB_remap_index] -#define _gloffset_MultTransposeMatrixfARB driDispatchRemapTable[MultTransposeMatrixfARB_remap_index] -#define _gloffset_SampleCoverageARB driDispatchRemapTable[SampleCoverageARB_remap_index] -#define _gloffset_CompressedTexImage1DARB driDispatchRemapTable[CompressedTexImage1DARB_remap_index] -#define _gloffset_CompressedTexImage2DARB driDispatchRemapTable[CompressedTexImage2DARB_remap_index] -#define _gloffset_CompressedTexImage3DARB driDispatchRemapTable[CompressedTexImage3DARB_remap_index] -#define _gloffset_CompressedTexSubImage1DARB driDispatchRemapTable[CompressedTexSubImage1DARB_remap_index] -#define _gloffset_CompressedTexSubImage2DARB driDispatchRemapTable[CompressedTexSubImage2DARB_remap_index] -#define _gloffset_CompressedTexSubImage3DARB driDispatchRemapTable[CompressedTexSubImage3DARB_remap_index] -#define _gloffset_GetCompressedTexImageARB driDispatchRemapTable[GetCompressedTexImageARB_remap_index] -#define _gloffset_DisableVertexAttribArrayARB driDispatchRemapTable[DisableVertexAttribArrayARB_remap_index] -#define _gloffset_EnableVertexAttribArrayARB driDispatchRemapTable[EnableVertexAttribArrayARB_remap_index] -#define _gloffset_GetProgramEnvParameterdvARB driDispatchRemapTable[GetProgramEnvParameterdvARB_remap_index] -#define _gloffset_GetProgramEnvParameterfvARB driDispatchRemapTable[GetProgramEnvParameterfvARB_remap_index] -#define _gloffset_GetProgramLocalParameterdvARB driDispatchRemapTable[GetProgramLocalParameterdvARB_remap_index] -#define _gloffset_GetProgramLocalParameterfvARB driDispatchRemapTable[GetProgramLocalParameterfvARB_remap_index] -#define _gloffset_GetProgramStringARB driDispatchRemapTable[GetProgramStringARB_remap_index] -#define _gloffset_GetProgramivARB driDispatchRemapTable[GetProgramivARB_remap_index] -#define _gloffset_GetVertexAttribdvARB driDispatchRemapTable[GetVertexAttribdvARB_remap_index] -#define _gloffset_GetVertexAttribfvARB driDispatchRemapTable[GetVertexAttribfvARB_remap_index] -#define _gloffset_GetVertexAttribivARB driDispatchRemapTable[GetVertexAttribivARB_remap_index] -#define _gloffset_ProgramEnvParameter4dARB driDispatchRemapTable[ProgramEnvParameter4dARB_remap_index] -#define _gloffset_ProgramEnvParameter4dvARB driDispatchRemapTable[ProgramEnvParameter4dvARB_remap_index] -#define _gloffset_ProgramEnvParameter4fARB driDispatchRemapTable[ProgramEnvParameter4fARB_remap_index] -#define _gloffset_ProgramEnvParameter4fvARB driDispatchRemapTable[ProgramEnvParameter4fvARB_remap_index] -#define _gloffset_ProgramLocalParameter4dARB driDispatchRemapTable[ProgramLocalParameter4dARB_remap_index] -#define _gloffset_ProgramLocalParameter4dvARB driDispatchRemapTable[ProgramLocalParameter4dvARB_remap_index] -#define _gloffset_ProgramLocalParameter4fARB driDispatchRemapTable[ProgramLocalParameter4fARB_remap_index] -#define _gloffset_ProgramLocalParameter4fvARB driDispatchRemapTable[ProgramLocalParameter4fvARB_remap_index] -#define _gloffset_ProgramStringARB driDispatchRemapTable[ProgramStringARB_remap_index] -#define _gloffset_VertexAttrib1dARB driDispatchRemapTable[VertexAttrib1dARB_remap_index] -#define _gloffset_VertexAttrib1dvARB driDispatchRemapTable[VertexAttrib1dvARB_remap_index] -#define _gloffset_VertexAttrib1fARB driDispatchRemapTable[VertexAttrib1fARB_remap_index] -#define _gloffset_VertexAttrib1fvARB driDispatchRemapTable[VertexAttrib1fvARB_remap_index] -#define _gloffset_VertexAttrib1sARB driDispatchRemapTable[VertexAttrib1sARB_remap_index] -#define _gloffset_VertexAttrib1svARB driDispatchRemapTable[VertexAttrib1svARB_remap_index] -#define _gloffset_VertexAttrib2dARB driDispatchRemapTable[VertexAttrib2dARB_remap_index] -#define _gloffset_VertexAttrib2dvARB driDispatchRemapTable[VertexAttrib2dvARB_remap_index] -#define _gloffset_VertexAttrib2fARB driDispatchRemapTable[VertexAttrib2fARB_remap_index] -#define _gloffset_VertexAttrib2fvARB driDispatchRemapTable[VertexAttrib2fvARB_remap_index] -#define _gloffset_VertexAttrib2sARB driDispatchRemapTable[VertexAttrib2sARB_remap_index] -#define _gloffset_VertexAttrib2svARB driDispatchRemapTable[VertexAttrib2svARB_remap_index] -#define _gloffset_VertexAttrib3dARB driDispatchRemapTable[VertexAttrib3dARB_remap_index] -#define _gloffset_VertexAttrib3dvARB driDispatchRemapTable[VertexAttrib3dvARB_remap_index] -#define _gloffset_VertexAttrib3fARB driDispatchRemapTable[VertexAttrib3fARB_remap_index] -#define _gloffset_VertexAttrib3fvARB driDispatchRemapTable[VertexAttrib3fvARB_remap_index] -#define _gloffset_VertexAttrib3sARB driDispatchRemapTable[VertexAttrib3sARB_remap_index] -#define _gloffset_VertexAttrib3svARB driDispatchRemapTable[VertexAttrib3svARB_remap_index] -#define _gloffset_VertexAttrib4NbvARB driDispatchRemapTable[VertexAttrib4NbvARB_remap_index] -#define _gloffset_VertexAttrib4NivARB driDispatchRemapTable[VertexAttrib4NivARB_remap_index] -#define _gloffset_VertexAttrib4NsvARB driDispatchRemapTable[VertexAttrib4NsvARB_remap_index] -#define _gloffset_VertexAttrib4NubARB driDispatchRemapTable[VertexAttrib4NubARB_remap_index] -#define _gloffset_VertexAttrib4NubvARB driDispatchRemapTable[VertexAttrib4NubvARB_remap_index] -#define _gloffset_VertexAttrib4NuivARB driDispatchRemapTable[VertexAttrib4NuivARB_remap_index] -#define _gloffset_VertexAttrib4NusvARB driDispatchRemapTable[VertexAttrib4NusvARB_remap_index] -#define _gloffset_VertexAttrib4bvARB driDispatchRemapTable[VertexAttrib4bvARB_remap_index] -#define _gloffset_VertexAttrib4dARB driDispatchRemapTable[VertexAttrib4dARB_remap_index] -#define _gloffset_VertexAttrib4dvARB driDispatchRemapTable[VertexAttrib4dvARB_remap_index] -#define _gloffset_VertexAttrib4fARB driDispatchRemapTable[VertexAttrib4fARB_remap_index] -#define _gloffset_VertexAttrib4fvARB driDispatchRemapTable[VertexAttrib4fvARB_remap_index] -#define _gloffset_VertexAttrib4ivARB driDispatchRemapTable[VertexAttrib4ivARB_remap_index] -#define _gloffset_VertexAttrib4sARB driDispatchRemapTable[VertexAttrib4sARB_remap_index] -#define _gloffset_VertexAttrib4svARB driDispatchRemapTable[VertexAttrib4svARB_remap_index] -#define _gloffset_VertexAttrib4ubvARB driDispatchRemapTable[VertexAttrib4ubvARB_remap_index] -#define _gloffset_VertexAttrib4uivARB driDispatchRemapTable[VertexAttrib4uivARB_remap_index] -#define _gloffset_VertexAttrib4usvARB driDispatchRemapTable[VertexAttrib4usvARB_remap_index] -#define _gloffset_VertexAttribPointerARB driDispatchRemapTable[VertexAttribPointerARB_remap_index] -#define _gloffset_BindBufferARB driDispatchRemapTable[BindBufferARB_remap_index] -#define _gloffset_BufferDataARB driDispatchRemapTable[BufferDataARB_remap_index] -#define _gloffset_BufferSubDataARB driDispatchRemapTable[BufferSubDataARB_remap_index] -#define _gloffset_DeleteBuffersARB driDispatchRemapTable[DeleteBuffersARB_remap_index] -#define _gloffset_GenBuffersARB driDispatchRemapTable[GenBuffersARB_remap_index] -#define _gloffset_GetBufferParameterivARB driDispatchRemapTable[GetBufferParameterivARB_remap_index] -#define _gloffset_GetBufferPointervARB driDispatchRemapTable[GetBufferPointervARB_remap_index] -#define _gloffset_GetBufferSubDataARB driDispatchRemapTable[GetBufferSubDataARB_remap_index] -#define _gloffset_IsBufferARB driDispatchRemapTable[IsBufferARB_remap_index] -#define _gloffset_MapBufferARB driDispatchRemapTable[MapBufferARB_remap_index] -#define _gloffset_UnmapBufferARB driDispatchRemapTable[UnmapBufferARB_remap_index] -#define _gloffset_BeginQueryARB driDispatchRemapTable[BeginQueryARB_remap_index] -#define _gloffset_DeleteQueriesARB driDispatchRemapTable[DeleteQueriesARB_remap_index] -#define _gloffset_EndQueryARB driDispatchRemapTable[EndQueryARB_remap_index] -#define _gloffset_GenQueriesARB driDispatchRemapTable[GenQueriesARB_remap_index] -#define _gloffset_GetQueryObjectivARB driDispatchRemapTable[GetQueryObjectivARB_remap_index] -#define _gloffset_GetQueryObjectuivARB driDispatchRemapTable[GetQueryObjectuivARB_remap_index] -#define _gloffset_GetQueryivARB driDispatchRemapTable[GetQueryivARB_remap_index] -#define _gloffset_IsQueryARB driDispatchRemapTable[IsQueryARB_remap_index] -#define _gloffset_AttachObjectARB driDispatchRemapTable[AttachObjectARB_remap_index] -#define _gloffset_CompileShaderARB driDispatchRemapTable[CompileShaderARB_remap_index] -#define _gloffset_CreateProgramObjectARB driDispatchRemapTable[CreateProgramObjectARB_remap_index] -#define _gloffset_CreateShaderObjectARB driDispatchRemapTable[CreateShaderObjectARB_remap_index] -#define _gloffset_DeleteObjectARB driDispatchRemapTable[DeleteObjectARB_remap_index] -#define _gloffset_DetachObjectARB driDispatchRemapTable[DetachObjectARB_remap_index] -#define _gloffset_GetActiveUniformARB driDispatchRemapTable[GetActiveUniformARB_remap_index] -#define _gloffset_GetAttachedObjectsARB driDispatchRemapTable[GetAttachedObjectsARB_remap_index] -#define _gloffset_GetHandleARB driDispatchRemapTable[GetHandleARB_remap_index] -#define _gloffset_GetInfoLogARB driDispatchRemapTable[GetInfoLogARB_remap_index] -#define _gloffset_GetObjectParameterfvARB driDispatchRemapTable[GetObjectParameterfvARB_remap_index] -#define _gloffset_GetObjectParameterivARB driDispatchRemapTable[GetObjectParameterivARB_remap_index] -#define _gloffset_GetShaderSourceARB driDispatchRemapTable[GetShaderSourceARB_remap_index] -#define _gloffset_GetUniformLocationARB driDispatchRemapTable[GetUniformLocationARB_remap_index] -#define _gloffset_GetUniformfvARB driDispatchRemapTable[GetUniformfvARB_remap_index] -#define _gloffset_GetUniformivARB driDispatchRemapTable[GetUniformivARB_remap_index] -#define _gloffset_LinkProgramARB driDispatchRemapTable[LinkProgramARB_remap_index] -#define _gloffset_ShaderSourceARB driDispatchRemapTable[ShaderSourceARB_remap_index] -#define _gloffset_Uniform1fARB driDispatchRemapTable[Uniform1fARB_remap_index] -#define _gloffset_Uniform1fvARB driDispatchRemapTable[Uniform1fvARB_remap_index] -#define _gloffset_Uniform1iARB driDispatchRemapTable[Uniform1iARB_remap_index] -#define _gloffset_Uniform1ivARB driDispatchRemapTable[Uniform1ivARB_remap_index] -#define _gloffset_Uniform2fARB driDispatchRemapTable[Uniform2fARB_remap_index] -#define _gloffset_Uniform2fvARB driDispatchRemapTable[Uniform2fvARB_remap_index] -#define _gloffset_Uniform2iARB driDispatchRemapTable[Uniform2iARB_remap_index] -#define _gloffset_Uniform2ivARB driDispatchRemapTable[Uniform2ivARB_remap_index] -#define _gloffset_Uniform3fARB driDispatchRemapTable[Uniform3fARB_remap_index] -#define _gloffset_Uniform3fvARB driDispatchRemapTable[Uniform3fvARB_remap_index] -#define _gloffset_Uniform3iARB driDispatchRemapTable[Uniform3iARB_remap_index] -#define _gloffset_Uniform3ivARB driDispatchRemapTable[Uniform3ivARB_remap_index] -#define _gloffset_Uniform4fARB driDispatchRemapTable[Uniform4fARB_remap_index] -#define _gloffset_Uniform4fvARB driDispatchRemapTable[Uniform4fvARB_remap_index] -#define _gloffset_Uniform4iARB driDispatchRemapTable[Uniform4iARB_remap_index] -#define _gloffset_Uniform4ivARB driDispatchRemapTable[Uniform4ivARB_remap_index] -#define _gloffset_UniformMatrix2fvARB driDispatchRemapTable[UniformMatrix2fvARB_remap_index] -#define _gloffset_UniformMatrix3fvARB driDispatchRemapTable[UniformMatrix3fvARB_remap_index] -#define _gloffset_UniformMatrix4fvARB driDispatchRemapTable[UniformMatrix4fvARB_remap_index] -#define _gloffset_UseProgramObjectARB driDispatchRemapTable[UseProgramObjectARB_remap_index] -#define _gloffset_ValidateProgramARB driDispatchRemapTable[ValidateProgramARB_remap_index] -#define _gloffset_BindAttribLocationARB driDispatchRemapTable[BindAttribLocationARB_remap_index] -#define _gloffset_GetActiveAttribARB driDispatchRemapTable[GetActiveAttribARB_remap_index] -#define _gloffset_GetAttribLocationARB driDispatchRemapTable[GetAttribLocationARB_remap_index] -#define _gloffset_DrawBuffersARB driDispatchRemapTable[DrawBuffersARB_remap_index] -#define _gloffset_ClampColorARB driDispatchRemapTable[ClampColorARB_remap_index] -#define _gloffset_DrawArraysInstancedARB driDispatchRemapTable[DrawArraysInstancedARB_remap_index] -#define _gloffset_DrawElementsInstancedARB driDispatchRemapTable[DrawElementsInstancedARB_remap_index] -#define _gloffset_RenderbufferStorageMultisample driDispatchRemapTable[RenderbufferStorageMultisample_remap_index] -#define _gloffset_FramebufferTextureARB driDispatchRemapTable[FramebufferTextureARB_remap_index] -#define _gloffset_FramebufferTextureFaceARB driDispatchRemapTable[FramebufferTextureFaceARB_remap_index] -#define _gloffset_ProgramParameteriARB driDispatchRemapTable[ProgramParameteriARB_remap_index] -#define _gloffset_VertexAttribDivisorARB driDispatchRemapTable[VertexAttribDivisorARB_remap_index] -#define _gloffset_FlushMappedBufferRange driDispatchRemapTable[FlushMappedBufferRange_remap_index] -#define _gloffset_MapBufferRange driDispatchRemapTable[MapBufferRange_remap_index] -#define _gloffset_TexBufferARB driDispatchRemapTable[TexBufferARB_remap_index] -#define _gloffset_BindVertexArray driDispatchRemapTable[BindVertexArray_remap_index] -#define _gloffset_GenVertexArrays driDispatchRemapTable[GenVertexArrays_remap_index] -#define _gloffset_CopyBufferSubData driDispatchRemapTable[CopyBufferSubData_remap_index] -#define _gloffset_ClientWaitSync driDispatchRemapTable[ClientWaitSync_remap_index] -#define _gloffset_DeleteSync driDispatchRemapTable[DeleteSync_remap_index] -#define _gloffset_FenceSync driDispatchRemapTable[FenceSync_remap_index] -#define _gloffset_GetInteger64v driDispatchRemapTable[GetInteger64v_remap_index] -#define _gloffset_GetSynciv driDispatchRemapTable[GetSynciv_remap_index] -#define _gloffset_IsSync driDispatchRemapTable[IsSync_remap_index] -#define _gloffset_WaitSync driDispatchRemapTable[WaitSync_remap_index] -#define _gloffset_DrawElementsBaseVertex driDispatchRemapTable[DrawElementsBaseVertex_remap_index] -#define _gloffset_DrawElementsInstancedBaseVertex driDispatchRemapTable[DrawElementsInstancedBaseVertex_remap_index] -#define _gloffset_DrawRangeElementsBaseVertex driDispatchRemapTable[DrawRangeElementsBaseVertex_remap_index] -#define _gloffset_MultiDrawElementsBaseVertex driDispatchRemapTable[MultiDrawElementsBaseVertex_remap_index] -#define _gloffset_BlendEquationSeparateiARB driDispatchRemapTable[BlendEquationSeparateiARB_remap_index] -#define _gloffset_BlendEquationiARB driDispatchRemapTable[BlendEquationiARB_remap_index] -#define _gloffset_BlendFuncSeparateiARB driDispatchRemapTable[BlendFuncSeparateiARB_remap_index] -#define _gloffset_BlendFunciARB driDispatchRemapTable[BlendFunciARB_remap_index] -#define _gloffset_BindSampler driDispatchRemapTable[BindSampler_remap_index] -#define _gloffset_DeleteSamplers driDispatchRemapTable[DeleteSamplers_remap_index] -#define _gloffset_GenSamplers driDispatchRemapTable[GenSamplers_remap_index] -#define _gloffset_GetSamplerParameterIiv driDispatchRemapTable[GetSamplerParameterIiv_remap_index] -#define _gloffset_GetSamplerParameterIuiv driDispatchRemapTable[GetSamplerParameterIuiv_remap_index] -#define _gloffset_GetSamplerParameterfv driDispatchRemapTable[GetSamplerParameterfv_remap_index] -#define _gloffset_GetSamplerParameteriv driDispatchRemapTable[GetSamplerParameteriv_remap_index] -#define _gloffset_IsSampler driDispatchRemapTable[IsSampler_remap_index] -#define _gloffset_SamplerParameterIiv driDispatchRemapTable[SamplerParameterIiv_remap_index] -#define _gloffset_SamplerParameterIuiv driDispatchRemapTable[SamplerParameterIuiv_remap_index] -#define _gloffset_SamplerParameterf driDispatchRemapTable[SamplerParameterf_remap_index] -#define _gloffset_SamplerParameterfv driDispatchRemapTable[SamplerParameterfv_remap_index] -#define _gloffset_SamplerParameteri driDispatchRemapTable[SamplerParameteri_remap_index] -#define _gloffset_SamplerParameteriv driDispatchRemapTable[SamplerParameteriv_remap_index] -#define _gloffset_BindTransformFeedback driDispatchRemapTable[BindTransformFeedback_remap_index] -#define _gloffset_DeleteTransformFeedbacks driDispatchRemapTable[DeleteTransformFeedbacks_remap_index] -#define _gloffset_DrawTransformFeedback driDispatchRemapTable[DrawTransformFeedback_remap_index] -#define _gloffset_GenTransformFeedbacks driDispatchRemapTable[GenTransformFeedbacks_remap_index] -#define _gloffset_IsTransformFeedback driDispatchRemapTable[IsTransformFeedback_remap_index] -#define _gloffset_PauseTransformFeedback driDispatchRemapTable[PauseTransformFeedback_remap_index] -#define _gloffset_ResumeTransformFeedback driDispatchRemapTable[ResumeTransformFeedback_remap_index] -#define _gloffset_ClearDepthf driDispatchRemapTable[ClearDepthf_remap_index] -#define _gloffset_DepthRangef driDispatchRemapTable[DepthRangef_remap_index] -#define _gloffset_GetShaderPrecisionFormat driDispatchRemapTable[GetShaderPrecisionFormat_remap_index] -#define _gloffset_ReleaseShaderCompiler driDispatchRemapTable[ReleaseShaderCompiler_remap_index] -#define _gloffset_ShaderBinary driDispatchRemapTable[ShaderBinary_remap_index] -#define _gloffset_GetGraphicsResetStatusARB driDispatchRemapTable[GetGraphicsResetStatusARB_remap_index] -#define _gloffset_GetnColorTableARB driDispatchRemapTable[GetnColorTableARB_remap_index] -#define _gloffset_GetnCompressedTexImageARB driDispatchRemapTable[GetnCompressedTexImageARB_remap_index] -#define _gloffset_GetnConvolutionFilterARB driDispatchRemapTable[GetnConvolutionFilterARB_remap_index] -#define _gloffset_GetnHistogramARB driDispatchRemapTable[GetnHistogramARB_remap_index] -#define _gloffset_GetnMapdvARB driDispatchRemapTable[GetnMapdvARB_remap_index] -#define _gloffset_GetnMapfvARB driDispatchRemapTable[GetnMapfvARB_remap_index] -#define _gloffset_GetnMapivARB driDispatchRemapTable[GetnMapivARB_remap_index] -#define _gloffset_GetnMinmaxARB driDispatchRemapTable[GetnMinmaxARB_remap_index] -#define _gloffset_GetnPixelMapfvARB driDispatchRemapTable[GetnPixelMapfvARB_remap_index] -#define _gloffset_GetnPixelMapuivARB driDispatchRemapTable[GetnPixelMapuivARB_remap_index] -#define _gloffset_GetnPixelMapusvARB driDispatchRemapTable[GetnPixelMapusvARB_remap_index] -#define _gloffset_GetnPolygonStippleARB driDispatchRemapTable[GetnPolygonStippleARB_remap_index] -#define _gloffset_GetnSeparableFilterARB driDispatchRemapTable[GetnSeparableFilterARB_remap_index] -#define _gloffset_GetnTexImageARB driDispatchRemapTable[GetnTexImageARB_remap_index] -#define _gloffset_GetnUniformdvARB driDispatchRemapTable[GetnUniformdvARB_remap_index] -#define _gloffset_GetnUniformfvARB driDispatchRemapTable[GetnUniformfvARB_remap_index] -#define _gloffset_GetnUniformivARB driDispatchRemapTable[GetnUniformivARB_remap_index] -#define _gloffset_GetnUniformuivARB driDispatchRemapTable[GetnUniformuivARB_remap_index] -#define _gloffset_ReadnPixelsARB driDispatchRemapTable[ReadnPixelsARB_remap_index] -#define _gloffset_PolygonOffsetEXT driDispatchRemapTable[PolygonOffsetEXT_remap_index] -#define _gloffset_GetPixelTexGenParameterfvSGIS driDispatchRemapTable[GetPixelTexGenParameterfvSGIS_remap_index] -#define _gloffset_GetPixelTexGenParameterivSGIS driDispatchRemapTable[GetPixelTexGenParameterivSGIS_remap_index] -#define _gloffset_PixelTexGenParameterfSGIS driDispatchRemapTable[PixelTexGenParameterfSGIS_remap_index] -#define _gloffset_PixelTexGenParameterfvSGIS driDispatchRemapTable[PixelTexGenParameterfvSGIS_remap_index] -#define _gloffset_PixelTexGenParameteriSGIS driDispatchRemapTable[PixelTexGenParameteriSGIS_remap_index] -#define _gloffset_PixelTexGenParameterivSGIS driDispatchRemapTable[PixelTexGenParameterivSGIS_remap_index] -#define _gloffset_SampleMaskSGIS driDispatchRemapTable[SampleMaskSGIS_remap_index] -#define _gloffset_SamplePatternSGIS driDispatchRemapTable[SamplePatternSGIS_remap_index] -#define _gloffset_ColorPointerEXT driDispatchRemapTable[ColorPointerEXT_remap_index] -#define _gloffset_EdgeFlagPointerEXT driDispatchRemapTable[EdgeFlagPointerEXT_remap_index] -#define _gloffset_IndexPointerEXT driDispatchRemapTable[IndexPointerEXT_remap_index] -#define _gloffset_NormalPointerEXT driDispatchRemapTable[NormalPointerEXT_remap_index] -#define _gloffset_TexCoordPointerEXT driDispatchRemapTable[TexCoordPointerEXT_remap_index] -#define _gloffset_VertexPointerEXT driDispatchRemapTable[VertexPointerEXT_remap_index] -#define _gloffset_PointParameterfEXT driDispatchRemapTable[PointParameterfEXT_remap_index] -#define _gloffset_PointParameterfvEXT driDispatchRemapTable[PointParameterfvEXT_remap_index] -#define _gloffset_LockArraysEXT driDispatchRemapTable[LockArraysEXT_remap_index] -#define _gloffset_UnlockArraysEXT driDispatchRemapTable[UnlockArraysEXT_remap_index] -#define _gloffset_SecondaryColor3bEXT driDispatchRemapTable[SecondaryColor3bEXT_remap_index] -#define _gloffset_SecondaryColor3bvEXT driDispatchRemapTable[SecondaryColor3bvEXT_remap_index] -#define _gloffset_SecondaryColor3dEXT driDispatchRemapTable[SecondaryColor3dEXT_remap_index] -#define _gloffset_SecondaryColor3dvEXT driDispatchRemapTable[SecondaryColor3dvEXT_remap_index] -#define _gloffset_SecondaryColor3fEXT driDispatchRemapTable[SecondaryColor3fEXT_remap_index] -#define _gloffset_SecondaryColor3fvEXT driDispatchRemapTable[SecondaryColor3fvEXT_remap_index] -#define _gloffset_SecondaryColor3iEXT driDispatchRemapTable[SecondaryColor3iEXT_remap_index] -#define _gloffset_SecondaryColor3ivEXT driDispatchRemapTable[SecondaryColor3ivEXT_remap_index] -#define _gloffset_SecondaryColor3sEXT driDispatchRemapTable[SecondaryColor3sEXT_remap_index] -#define _gloffset_SecondaryColor3svEXT driDispatchRemapTable[SecondaryColor3svEXT_remap_index] -#define _gloffset_SecondaryColor3ubEXT driDispatchRemapTable[SecondaryColor3ubEXT_remap_index] -#define _gloffset_SecondaryColor3ubvEXT driDispatchRemapTable[SecondaryColor3ubvEXT_remap_index] -#define _gloffset_SecondaryColor3uiEXT driDispatchRemapTable[SecondaryColor3uiEXT_remap_index] -#define _gloffset_SecondaryColor3uivEXT driDispatchRemapTable[SecondaryColor3uivEXT_remap_index] -#define _gloffset_SecondaryColor3usEXT driDispatchRemapTable[SecondaryColor3usEXT_remap_index] -#define _gloffset_SecondaryColor3usvEXT driDispatchRemapTable[SecondaryColor3usvEXT_remap_index] -#define _gloffset_SecondaryColorPointerEXT driDispatchRemapTable[SecondaryColorPointerEXT_remap_index] -#define _gloffset_MultiDrawArraysEXT driDispatchRemapTable[MultiDrawArraysEXT_remap_index] -#define _gloffset_MultiDrawElementsEXT driDispatchRemapTable[MultiDrawElementsEXT_remap_index] -#define _gloffset_FogCoordPointerEXT driDispatchRemapTable[FogCoordPointerEXT_remap_index] -#define _gloffset_FogCoorddEXT driDispatchRemapTable[FogCoorddEXT_remap_index] -#define _gloffset_FogCoorddvEXT driDispatchRemapTable[FogCoorddvEXT_remap_index] -#define _gloffset_FogCoordfEXT driDispatchRemapTable[FogCoordfEXT_remap_index] -#define _gloffset_FogCoordfvEXT driDispatchRemapTable[FogCoordfvEXT_remap_index] -#define _gloffset_PixelTexGenSGIX driDispatchRemapTable[PixelTexGenSGIX_remap_index] -#define _gloffset_BlendFuncSeparateEXT driDispatchRemapTable[BlendFuncSeparateEXT_remap_index] -#define _gloffset_FlushVertexArrayRangeNV driDispatchRemapTable[FlushVertexArrayRangeNV_remap_index] -#define _gloffset_VertexArrayRangeNV driDispatchRemapTable[VertexArrayRangeNV_remap_index] -#define _gloffset_CombinerInputNV driDispatchRemapTable[CombinerInputNV_remap_index] -#define _gloffset_CombinerOutputNV driDispatchRemapTable[CombinerOutputNV_remap_index] -#define _gloffset_CombinerParameterfNV driDispatchRemapTable[CombinerParameterfNV_remap_index] -#define _gloffset_CombinerParameterfvNV driDispatchRemapTable[CombinerParameterfvNV_remap_index] -#define _gloffset_CombinerParameteriNV driDispatchRemapTable[CombinerParameteriNV_remap_index] -#define _gloffset_CombinerParameterivNV driDispatchRemapTable[CombinerParameterivNV_remap_index] -#define _gloffset_FinalCombinerInputNV driDispatchRemapTable[FinalCombinerInputNV_remap_index] -#define _gloffset_GetCombinerInputParameterfvNV driDispatchRemapTable[GetCombinerInputParameterfvNV_remap_index] -#define _gloffset_GetCombinerInputParameterivNV driDispatchRemapTable[GetCombinerInputParameterivNV_remap_index] -#define _gloffset_GetCombinerOutputParameterfvNV driDispatchRemapTable[GetCombinerOutputParameterfvNV_remap_index] -#define _gloffset_GetCombinerOutputParameterivNV driDispatchRemapTable[GetCombinerOutputParameterivNV_remap_index] -#define _gloffset_GetFinalCombinerInputParameterfvNV driDispatchRemapTable[GetFinalCombinerInputParameterfvNV_remap_index] -#define _gloffset_GetFinalCombinerInputParameterivNV driDispatchRemapTable[GetFinalCombinerInputParameterivNV_remap_index] -#define _gloffset_ResizeBuffersMESA driDispatchRemapTable[ResizeBuffersMESA_remap_index] -#define _gloffset_WindowPos2dMESA driDispatchRemapTable[WindowPos2dMESA_remap_index] -#define _gloffset_WindowPos2dvMESA driDispatchRemapTable[WindowPos2dvMESA_remap_index] -#define _gloffset_WindowPos2fMESA driDispatchRemapTable[WindowPos2fMESA_remap_index] -#define _gloffset_WindowPos2fvMESA driDispatchRemapTable[WindowPos2fvMESA_remap_index] -#define _gloffset_WindowPos2iMESA driDispatchRemapTable[WindowPos2iMESA_remap_index] -#define _gloffset_WindowPos2ivMESA driDispatchRemapTable[WindowPos2ivMESA_remap_index] -#define _gloffset_WindowPos2sMESA driDispatchRemapTable[WindowPos2sMESA_remap_index] -#define _gloffset_WindowPos2svMESA driDispatchRemapTable[WindowPos2svMESA_remap_index] -#define _gloffset_WindowPos3dMESA driDispatchRemapTable[WindowPos3dMESA_remap_index] -#define _gloffset_WindowPos3dvMESA driDispatchRemapTable[WindowPos3dvMESA_remap_index] -#define _gloffset_WindowPos3fMESA driDispatchRemapTable[WindowPos3fMESA_remap_index] -#define _gloffset_WindowPos3fvMESA driDispatchRemapTable[WindowPos3fvMESA_remap_index] -#define _gloffset_WindowPos3iMESA driDispatchRemapTable[WindowPos3iMESA_remap_index] -#define _gloffset_WindowPos3ivMESA driDispatchRemapTable[WindowPos3ivMESA_remap_index] -#define _gloffset_WindowPos3sMESA driDispatchRemapTable[WindowPos3sMESA_remap_index] -#define _gloffset_WindowPos3svMESA driDispatchRemapTable[WindowPos3svMESA_remap_index] -#define _gloffset_WindowPos4dMESA driDispatchRemapTable[WindowPos4dMESA_remap_index] -#define _gloffset_WindowPos4dvMESA driDispatchRemapTable[WindowPos4dvMESA_remap_index] -#define _gloffset_WindowPos4fMESA driDispatchRemapTable[WindowPos4fMESA_remap_index] -#define _gloffset_WindowPos4fvMESA driDispatchRemapTable[WindowPos4fvMESA_remap_index] -#define _gloffset_WindowPos4iMESA driDispatchRemapTable[WindowPos4iMESA_remap_index] -#define _gloffset_WindowPos4ivMESA driDispatchRemapTable[WindowPos4ivMESA_remap_index] -#define _gloffset_WindowPos4sMESA driDispatchRemapTable[WindowPos4sMESA_remap_index] -#define _gloffset_WindowPos4svMESA driDispatchRemapTable[WindowPos4svMESA_remap_index] -#define _gloffset_MultiModeDrawArraysIBM driDispatchRemapTable[MultiModeDrawArraysIBM_remap_index] -#define _gloffset_MultiModeDrawElementsIBM driDispatchRemapTable[MultiModeDrawElementsIBM_remap_index] -#define _gloffset_DeleteFencesNV driDispatchRemapTable[DeleteFencesNV_remap_index] -#define _gloffset_FinishFenceNV driDispatchRemapTable[FinishFenceNV_remap_index] -#define _gloffset_GenFencesNV driDispatchRemapTable[GenFencesNV_remap_index] -#define _gloffset_GetFenceivNV driDispatchRemapTable[GetFenceivNV_remap_index] -#define _gloffset_IsFenceNV driDispatchRemapTable[IsFenceNV_remap_index] -#define _gloffset_SetFenceNV driDispatchRemapTable[SetFenceNV_remap_index] -#define _gloffset_TestFenceNV driDispatchRemapTable[TestFenceNV_remap_index] -#define _gloffset_AreProgramsResidentNV driDispatchRemapTable[AreProgramsResidentNV_remap_index] -#define _gloffset_BindProgramNV driDispatchRemapTable[BindProgramNV_remap_index] -#define _gloffset_DeleteProgramsNV driDispatchRemapTable[DeleteProgramsNV_remap_index] -#define _gloffset_ExecuteProgramNV driDispatchRemapTable[ExecuteProgramNV_remap_index] -#define _gloffset_GenProgramsNV driDispatchRemapTable[GenProgramsNV_remap_index] -#define _gloffset_GetProgramParameterdvNV driDispatchRemapTable[GetProgramParameterdvNV_remap_index] -#define _gloffset_GetProgramParameterfvNV driDispatchRemapTable[GetProgramParameterfvNV_remap_index] -#define _gloffset_GetProgramStringNV driDispatchRemapTable[GetProgramStringNV_remap_index] -#define _gloffset_GetProgramivNV driDispatchRemapTable[GetProgramivNV_remap_index] -#define _gloffset_GetTrackMatrixivNV driDispatchRemapTable[GetTrackMatrixivNV_remap_index] -#define _gloffset_GetVertexAttribPointervNV driDispatchRemapTable[GetVertexAttribPointervNV_remap_index] -#define _gloffset_GetVertexAttribdvNV driDispatchRemapTable[GetVertexAttribdvNV_remap_index] -#define _gloffset_GetVertexAttribfvNV driDispatchRemapTable[GetVertexAttribfvNV_remap_index] -#define _gloffset_GetVertexAttribivNV driDispatchRemapTable[GetVertexAttribivNV_remap_index] -#define _gloffset_IsProgramNV driDispatchRemapTable[IsProgramNV_remap_index] -#define _gloffset_LoadProgramNV driDispatchRemapTable[LoadProgramNV_remap_index] -#define _gloffset_ProgramParameters4dvNV driDispatchRemapTable[ProgramParameters4dvNV_remap_index] -#define _gloffset_ProgramParameters4fvNV driDispatchRemapTable[ProgramParameters4fvNV_remap_index] -#define _gloffset_RequestResidentProgramsNV driDispatchRemapTable[RequestResidentProgramsNV_remap_index] -#define _gloffset_TrackMatrixNV driDispatchRemapTable[TrackMatrixNV_remap_index] -#define _gloffset_VertexAttrib1dNV driDispatchRemapTable[VertexAttrib1dNV_remap_index] -#define _gloffset_VertexAttrib1dvNV driDispatchRemapTable[VertexAttrib1dvNV_remap_index] -#define _gloffset_VertexAttrib1fNV driDispatchRemapTable[VertexAttrib1fNV_remap_index] -#define _gloffset_VertexAttrib1fvNV driDispatchRemapTable[VertexAttrib1fvNV_remap_index] -#define _gloffset_VertexAttrib1sNV driDispatchRemapTable[VertexAttrib1sNV_remap_index] -#define _gloffset_VertexAttrib1svNV driDispatchRemapTable[VertexAttrib1svNV_remap_index] -#define _gloffset_VertexAttrib2dNV driDispatchRemapTable[VertexAttrib2dNV_remap_index] -#define _gloffset_VertexAttrib2dvNV driDispatchRemapTable[VertexAttrib2dvNV_remap_index] -#define _gloffset_VertexAttrib2fNV driDispatchRemapTable[VertexAttrib2fNV_remap_index] -#define _gloffset_VertexAttrib2fvNV driDispatchRemapTable[VertexAttrib2fvNV_remap_index] -#define _gloffset_VertexAttrib2sNV driDispatchRemapTable[VertexAttrib2sNV_remap_index] -#define _gloffset_VertexAttrib2svNV driDispatchRemapTable[VertexAttrib2svNV_remap_index] -#define _gloffset_VertexAttrib3dNV driDispatchRemapTable[VertexAttrib3dNV_remap_index] -#define _gloffset_VertexAttrib3dvNV driDispatchRemapTable[VertexAttrib3dvNV_remap_index] -#define _gloffset_VertexAttrib3fNV driDispatchRemapTable[VertexAttrib3fNV_remap_index] -#define _gloffset_VertexAttrib3fvNV driDispatchRemapTable[VertexAttrib3fvNV_remap_index] -#define _gloffset_VertexAttrib3sNV driDispatchRemapTable[VertexAttrib3sNV_remap_index] -#define _gloffset_VertexAttrib3svNV driDispatchRemapTable[VertexAttrib3svNV_remap_index] -#define _gloffset_VertexAttrib4dNV driDispatchRemapTable[VertexAttrib4dNV_remap_index] -#define _gloffset_VertexAttrib4dvNV driDispatchRemapTable[VertexAttrib4dvNV_remap_index] -#define _gloffset_VertexAttrib4fNV driDispatchRemapTable[VertexAttrib4fNV_remap_index] -#define _gloffset_VertexAttrib4fvNV driDispatchRemapTable[VertexAttrib4fvNV_remap_index] -#define _gloffset_VertexAttrib4sNV driDispatchRemapTable[VertexAttrib4sNV_remap_index] -#define _gloffset_VertexAttrib4svNV driDispatchRemapTable[VertexAttrib4svNV_remap_index] -#define _gloffset_VertexAttrib4ubNV driDispatchRemapTable[VertexAttrib4ubNV_remap_index] -#define _gloffset_VertexAttrib4ubvNV driDispatchRemapTable[VertexAttrib4ubvNV_remap_index] -#define _gloffset_VertexAttribPointerNV driDispatchRemapTable[VertexAttribPointerNV_remap_index] -#define _gloffset_VertexAttribs1dvNV driDispatchRemapTable[VertexAttribs1dvNV_remap_index] -#define _gloffset_VertexAttribs1fvNV driDispatchRemapTable[VertexAttribs1fvNV_remap_index] -#define _gloffset_VertexAttribs1svNV driDispatchRemapTable[VertexAttribs1svNV_remap_index] -#define _gloffset_VertexAttribs2dvNV driDispatchRemapTable[VertexAttribs2dvNV_remap_index] -#define _gloffset_VertexAttribs2fvNV driDispatchRemapTable[VertexAttribs2fvNV_remap_index] -#define _gloffset_VertexAttribs2svNV driDispatchRemapTable[VertexAttribs2svNV_remap_index] -#define _gloffset_VertexAttribs3dvNV driDispatchRemapTable[VertexAttribs3dvNV_remap_index] -#define _gloffset_VertexAttribs3fvNV driDispatchRemapTable[VertexAttribs3fvNV_remap_index] -#define _gloffset_VertexAttribs3svNV driDispatchRemapTable[VertexAttribs3svNV_remap_index] -#define _gloffset_VertexAttribs4dvNV driDispatchRemapTable[VertexAttribs4dvNV_remap_index] -#define _gloffset_VertexAttribs4fvNV driDispatchRemapTable[VertexAttribs4fvNV_remap_index] -#define _gloffset_VertexAttribs4svNV driDispatchRemapTable[VertexAttribs4svNV_remap_index] -#define _gloffset_VertexAttribs4ubvNV driDispatchRemapTable[VertexAttribs4ubvNV_remap_index] -#define _gloffset_GetTexBumpParameterfvATI driDispatchRemapTable[GetTexBumpParameterfvATI_remap_index] -#define _gloffset_GetTexBumpParameterivATI driDispatchRemapTable[GetTexBumpParameterivATI_remap_index] -#define _gloffset_TexBumpParameterfvATI driDispatchRemapTable[TexBumpParameterfvATI_remap_index] -#define _gloffset_TexBumpParameterivATI driDispatchRemapTable[TexBumpParameterivATI_remap_index] -#define _gloffset_AlphaFragmentOp1ATI driDispatchRemapTable[AlphaFragmentOp1ATI_remap_index] -#define _gloffset_AlphaFragmentOp2ATI driDispatchRemapTable[AlphaFragmentOp2ATI_remap_index] -#define _gloffset_AlphaFragmentOp3ATI driDispatchRemapTable[AlphaFragmentOp3ATI_remap_index] -#define _gloffset_BeginFragmentShaderATI driDispatchRemapTable[BeginFragmentShaderATI_remap_index] -#define _gloffset_BindFragmentShaderATI driDispatchRemapTable[BindFragmentShaderATI_remap_index] -#define _gloffset_ColorFragmentOp1ATI driDispatchRemapTable[ColorFragmentOp1ATI_remap_index] -#define _gloffset_ColorFragmentOp2ATI driDispatchRemapTable[ColorFragmentOp2ATI_remap_index] -#define _gloffset_ColorFragmentOp3ATI driDispatchRemapTable[ColorFragmentOp3ATI_remap_index] -#define _gloffset_DeleteFragmentShaderATI driDispatchRemapTable[DeleteFragmentShaderATI_remap_index] -#define _gloffset_EndFragmentShaderATI driDispatchRemapTable[EndFragmentShaderATI_remap_index] -#define _gloffset_GenFragmentShadersATI driDispatchRemapTable[GenFragmentShadersATI_remap_index] -#define _gloffset_PassTexCoordATI driDispatchRemapTable[PassTexCoordATI_remap_index] -#define _gloffset_SampleMapATI driDispatchRemapTable[SampleMapATI_remap_index] -#define _gloffset_SetFragmentShaderConstantATI driDispatchRemapTable[SetFragmentShaderConstantATI_remap_index] -#define _gloffset_PointParameteriNV driDispatchRemapTable[PointParameteriNV_remap_index] -#define _gloffset_PointParameterivNV driDispatchRemapTable[PointParameterivNV_remap_index] -#define _gloffset_ActiveStencilFaceEXT driDispatchRemapTable[ActiveStencilFaceEXT_remap_index] -#define _gloffset_BindVertexArrayAPPLE driDispatchRemapTable[BindVertexArrayAPPLE_remap_index] -#define _gloffset_DeleteVertexArraysAPPLE driDispatchRemapTable[DeleteVertexArraysAPPLE_remap_index] -#define _gloffset_GenVertexArraysAPPLE driDispatchRemapTable[GenVertexArraysAPPLE_remap_index] -#define _gloffset_IsVertexArrayAPPLE driDispatchRemapTable[IsVertexArrayAPPLE_remap_index] -#define _gloffset_GetProgramNamedParameterdvNV driDispatchRemapTable[GetProgramNamedParameterdvNV_remap_index] -#define _gloffset_GetProgramNamedParameterfvNV driDispatchRemapTable[GetProgramNamedParameterfvNV_remap_index] -#define _gloffset_ProgramNamedParameter4dNV driDispatchRemapTable[ProgramNamedParameter4dNV_remap_index] -#define _gloffset_ProgramNamedParameter4dvNV driDispatchRemapTable[ProgramNamedParameter4dvNV_remap_index] -#define _gloffset_ProgramNamedParameter4fNV driDispatchRemapTable[ProgramNamedParameter4fNV_remap_index] -#define _gloffset_ProgramNamedParameter4fvNV driDispatchRemapTable[ProgramNamedParameter4fvNV_remap_index] -#define _gloffset_PrimitiveRestartIndexNV driDispatchRemapTable[PrimitiveRestartIndexNV_remap_index] -#define _gloffset_PrimitiveRestartNV driDispatchRemapTable[PrimitiveRestartNV_remap_index] -#define _gloffset_DepthBoundsEXT driDispatchRemapTable[DepthBoundsEXT_remap_index] -#define _gloffset_BlendEquationSeparateEXT driDispatchRemapTable[BlendEquationSeparateEXT_remap_index] -#define _gloffset_BindFramebufferEXT driDispatchRemapTable[BindFramebufferEXT_remap_index] -#define _gloffset_BindRenderbufferEXT driDispatchRemapTable[BindRenderbufferEXT_remap_index] -#define _gloffset_CheckFramebufferStatusEXT driDispatchRemapTable[CheckFramebufferStatusEXT_remap_index] -#define _gloffset_DeleteFramebuffersEXT driDispatchRemapTable[DeleteFramebuffersEXT_remap_index] -#define _gloffset_DeleteRenderbuffersEXT driDispatchRemapTable[DeleteRenderbuffersEXT_remap_index] -#define _gloffset_FramebufferRenderbufferEXT driDispatchRemapTable[FramebufferRenderbufferEXT_remap_index] -#define _gloffset_FramebufferTexture1DEXT driDispatchRemapTable[FramebufferTexture1DEXT_remap_index] -#define _gloffset_FramebufferTexture2DEXT driDispatchRemapTable[FramebufferTexture2DEXT_remap_index] -#define _gloffset_FramebufferTexture3DEXT driDispatchRemapTable[FramebufferTexture3DEXT_remap_index] -#define _gloffset_GenFramebuffersEXT driDispatchRemapTable[GenFramebuffersEXT_remap_index] -#define _gloffset_GenRenderbuffersEXT driDispatchRemapTable[GenRenderbuffersEXT_remap_index] -#define _gloffset_GenerateMipmapEXT driDispatchRemapTable[GenerateMipmapEXT_remap_index] -#define _gloffset_GetFramebufferAttachmentParameterivEXT driDispatchRemapTable[GetFramebufferAttachmentParameterivEXT_remap_index] -#define _gloffset_GetRenderbufferParameterivEXT driDispatchRemapTable[GetRenderbufferParameterivEXT_remap_index] -#define _gloffset_IsFramebufferEXT driDispatchRemapTable[IsFramebufferEXT_remap_index] -#define _gloffset_IsRenderbufferEXT driDispatchRemapTable[IsRenderbufferEXT_remap_index] -#define _gloffset_RenderbufferStorageEXT driDispatchRemapTable[RenderbufferStorageEXT_remap_index] -#define _gloffset_BlitFramebufferEXT driDispatchRemapTable[BlitFramebufferEXT_remap_index] -#define _gloffset_BufferParameteriAPPLE driDispatchRemapTable[BufferParameteriAPPLE_remap_index] -#define _gloffset_FlushMappedBufferRangeAPPLE driDispatchRemapTable[FlushMappedBufferRangeAPPLE_remap_index] -#define _gloffset_BindFragDataLocationEXT driDispatchRemapTable[BindFragDataLocationEXT_remap_index] -#define _gloffset_GetFragDataLocationEXT driDispatchRemapTable[GetFragDataLocationEXT_remap_index] -#define _gloffset_GetUniformuivEXT driDispatchRemapTable[GetUniformuivEXT_remap_index] -#define _gloffset_GetVertexAttribIivEXT driDispatchRemapTable[GetVertexAttribIivEXT_remap_index] -#define _gloffset_GetVertexAttribIuivEXT driDispatchRemapTable[GetVertexAttribIuivEXT_remap_index] -#define _gloffset_Uniform1uiEXT driDispatchRemapTable[Uniform1uiEXT_remap_index] -#define _gloffset_Uniform1uivEXT driDispatchRemapTable[Uniform1uivEXT_remap_index] -#define _gloffset_Uniform2uiEXT driDispatchRemapTable[Uniform2uiEXT_remap_index] -#define _gloffset_Uniform2uivEXT driDispatchRemapTable[Uniform2uivEXT_remap_index] -#define _gloffset_Uniform3uiEXT driDispatchRemapTable[Uniform3uiEXT_remap_index] -#define _gloffset_Uniform3uivEXT driDispatchRemapTable[Uniform3uivEXT_remap_index] -#define _gloffset_Uniform4uiEXT driDispatchRemapTable[Uniform4uiEXT_remap_index] -#define _gloffset_Uniform4uivEXT driDispatchRemapTable[Uniform4uivEXT_remap_index] -#define _gloffset_VertexAttribI1iEXT driDispatchRemapTable[VertexAttribI1iEXT_remap_index] -#define _gloffset_VertexAttribI1ivEXT driDispatchRemapTable[VertexAttribI1ivEXT_remap_index] -#define _gloffset_VertexAttribI1uiEXT driDispatchRemapTable[VertexAttribI1uiEXT_remap_index] -#define _gloffset_VertexAttribI1uivEXT driDispatchRemapTable[VertexAttribI1uivEXT_remap_index] -#define _gloffset_VertexAttribI2iEXT driDispatchRemapTable[VertexAttribI2iEXT_remap_index] -#define _gloffset_VertexAttribI2ivEXT driDispatchRemapTable[VertexAttribI2ivEXT_remap_index] -#define _gloffset_VertexAttribI2uiEXT driDispatchRemapTable[VertexAttribI2uiEXT_remap_index] -#define _gloffset_VertexAttribI2uivEXT driDispatchRemapTable[VertexAttribI2uivEXT_remap_index] -#define _gloffset_VertexAttribI3iEXT driDispatchRemapTable[VertexAttribI3iEXT_remap_index] -#define _gloffset_VertexAttribI3ivEXT driDispatchRemapTable[VertexAttribI3ivEXT_remap_index] -#define _gloffset_VertexAttribI3uiEXT driDispatchRemapTable[VertexAttribI3uiEXT_remap_index] -#define _gloffset_VertexAttribI3uivEXT driDispatchRemapTable[VertexAttribI3uivEXT_remap_index] -#define _gloffset_VertexAttribI4bvEXT driDispatchRemapTable[VertexAttribI4bvEXT_remap_index] -#define _gloffset_VertexAttribI4iEXT driDispatchRemapTable[VertexAttribI4iEXT_remap_index] -#define _gloffset_VertexAttribI4ivEXT driDispatchRemapTable[VertexAttribI4ivEXT_remap_index] -#define _gloffset_VertexAttribI4svEXT driDispatchRemapTable[VertexAttribI4svEXT_remap_index] -#define _gloffset_VertexAttribI4ubvEXT driDispatchRemapTable[VertexAttribI4ubvEXT_remap_index] -#define _gloffset_VertexAttribI4uiEXT driDispatchRemapTable[VertexAttribI4uiEXT_remap_index] -#define _gloffset_VertexAttribI4uivEXT driDispatchRemapTable[VertexAttribI4uivEXT_remap_index] -#define _gloffset_VertexAttribI4usvEXT driDispatchRemapTable[VertexAttribI4usvEXT_remap_index] -#define _gloffset_VertexAttribIPointerEXT driDispatchRemapTable[VertexAttribIPointerEXT_remap_index] -#define _gloffset_FramebufferTextureLayerEXT driDispatchRemapTable[FramebufferTextureLayerEXT_remap_index] -#define _gloffset_ColorMaskIndexedEXT driDispatchRemapTable[ColorMaskIndexedEXT_remap_index] -#define _gloffset_DisableIndexedEXT driDispatchRemapTable[DisableIndexedEXT_remap_index] -#define _gloffset_EnableIndexedEXT driDispatchRemapTable[EnableIndexedEXT_remap_index] -#define _gloffset_GetBooleanIndexedvEXT driDispatchRemapTable[GetBooleanIndexedvEXT_remap_index] -#define _gloffset_GetIntegerIndexedvEXT driDispatchRemapTable[GetIntegerIndexedvEXT_remap_index] -#define _gloffset_IsEnabledIndexedEXT driDispatchRemapTable[IsEnabledIndexedEXT_remap_index] -#define _gloffset_ClearColorIiEXT driDispatchRemapTable[ClearColorIiEXT_remap_index] -#define _gloffset_ClearColorIuiEXT driDispatchRemapTable[ClearColorIuiEXT_remap_index] -#define _gloffset_GetTexParameterIivEXT driDispatchRemapTable[GetTexParameterIivEXT_remap_index] -#define _gloffset_GetTexParameterIuivEXT driDispatchRemapTable[GetTexParameterIuivEXT_remap_index] -#define _gloffset_TexParameterIivEXT driDispatchRemapTable[TexParameterIivEXT_remap_index] -#define _gloffset_TexParameterIuivEXT driDispatchRemapTable[TexParameterIuivEXT_remap_index] -#define _gloffset_BeginConditionalRenderNV driDispatchRemapTable[BeginConditionalRenderNV_remap_index] -#define _gloffset_EndConditionalRenderNV driDispatchRemapTable[EndConditionalRenderNV_remap_index] -#define _gloffset_BeginTransformFeedbackEXT driDispatchRemapTable[BeginTransformFeedbackEXT_remap_index] -#define _gloffset_BindBufferBaseEXT driDispatchRemapTable[BindBufferBaseEXT_remap_index] -#define _gloffset_BindBufferOffsetEXT driDispatchRemapTable[BindBufferOffsetEXT_remap_index] -#define _gloffset_BindBufferRangeEXT driDispatchRemapTable[BindBufferRangeEXT_remap_index] -#define _gloffset_EndTransformFeedbackEXT driDispatchRemapTable[EndTransformFeedbackEXT_remap_index] -#define _gloffset_GetTransformFeedbackVaryingEXT driDispatchRemapTable[GetTransformFeedbackVaryingEXT_remap_index] -#define _gloffset_TransformFeedbackVaryingsEXT driDispatchRemapTable[TransformFeedbackVaryingsEXT_remap_index] -#define _gloffset_ProvokingVertexEXT driDispatchRemapTable[ProvokingVertexEXT_remap_index] -#define _gloffset_GetTexParameterPointervAPPLE driDispatchRemapTable[GetTexParameterPointervAPPLE_remap_index] -#define _gloffset_TextureRangeAPPLE driDispatchRemapTable[TextureRangeAPPLE_remap_index] -#define _gloffset_GetObjectParameterivAPPLE driDispatchRemapTable[GetObjectParameterivAPPLE_remap_index] -#define _gloffset_ObjectPurgeableAPPLE driDispatchRemapTable[ObjectPurgeableAPPLE_remap_index] -#define _gloffset_ObjectUnpurgeableAPPLE driDispatchRemapTable[ObjectUnpurgeableAPPLE_remap_index] -#define _gloffset_ActiveProgramEXT driDispatchRemapTable[ActiveProgramEXT_remap_index] -#define _gloffset_CreateShaderProgramEXT driDispatchRemapTable[CreateShaderProgramEXT_remap_index] -#define _gloffset_UseShaderProgramEXT driDispatchRemapTable[UseShaderProgramEXT_remap_index] -#define _gloffset_TextureBarrierNV driDispatchRemapTable[TextureBarrierNV_remap_index] -#define _gloffset_StencilFuncSeparateATI driDispatchRemapTable[StencilFuncSeparateATI_remap_index] -#define _gloffset_ProgramEnvParameters4fvEXT driDispatchRemapTable[ProgramEnvParameters4fvEXT_remap_index] -#define _gloffset_ProgramLocalParameters4fvEXT driDispatchRemapTable[ProgramLocalParameters4fvEXT_remap_index] -#define _gloffset_GetQueryObjecti64vEXT driDispatchRemapTable[GetQueryObjecti64vEXT_remap_index] -#define _gloffset_GetQueryObjectui64vEXT driDispatchRemapTable[GetQueryObjectui64vEXT_remap_index] -#define _gloffset_EGLImageTargetRenderbufferStorageOES driDispatchRemapTable[EGLImageTargetRenderbufferStorageOES_remap_index] -#define _gloffset_EGLImageTargetTexture2DOES driDispatchRemapTable[EGLImageTargetTexture2DOES_remap_index] - -#endif /* _GLAPI_USE_REMAP_TABLE */ - -typedef void (GLAPIENTRYP _glptr_NewList)(GLuint, GLenum); -#define CALL_NewList(disp, parameters) \ - (* GET_NewList(disp)) parameters -static INLINE _glptr_NewList GET_NewList(struct _glapi_table *disp) { - return (_glptr_NewList) (GET_by_offset(disp, _gloffset_NewList)); -} - -static INLINE void SET_NewList(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum)) { - SET_by_offset(disp, _gloffset_NewList, fn); -} - -typedef void (GLAPIENTRYP _glptr_EndList)(void); -#define CALL_EndList(disp, parameters) \ - (* GET_EndList(disp)) parameters -static INLINE _glptr_EndList GET_EndList(struct _glapi_table *disp) { - return (_glptr_EndList) (GET_by_offset(disp, _gloffset_EndList)); -} - -static INLINE void SET_EndList(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_EndList, fn); -} - -typedef void (GLAPIENTRYP _glptr_CallList)(GLuint); -#define CALL_CallList(disp, parameters) \ - (* GET_CallList(disp)) parameters -static INLINE _glptr_CallList GET_CallList(struct _glapi_table *disp) { - return (_glptr_CallList) (GET_by_offset(disp, _gloffset_CallList)); -} - -static INLINE void SET_CallList(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_CallList, fn); -} - -typedef void (GLAPIENTRYP _glptr_CallLists)(GLsizei, GLenum, const GLvoid *); -#define CALL_CallLists(disp, parameters) \ - (* GET_CallLists(disp)) parameters -static INLINE _glptr_CallLists GET_CallLists(struct _glapi_table *disp) { - return (_glptr_CallLists) (GET_by_offset(disp, _gloffset_CallLists)); -} - -static INLINE void SET_CallLists(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_CallLists, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteLists)(GLuint, GLsizei); -#define CALL_DeleteLists(disp, parameters) \ - (* GET_DeleteLists(disp)) parameters -static INLINE _glptr_DeleteLists GET_DeleteLists(struct _glapi_table *disp) { - return (_glptr_DeleteLists) (GET_by_offset(disp, _gloffset_DeleteLists)); -} - -static INLINE void SET_DeleteLists(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei)) { - SET_by_offset(disp, _gloffset_DeleteLists, fn); -} - -typedef GLuint (GLAPIENTRYP _glptr_GenLists)(GLsizei); -#define CALL_GenLists(disp, parameters) \ - (* GET_GenLists(disp)) parameters -static INLINE _glptr_GenLists GET_GenLists(struct _glapi_table *disp) { - return (_glptr_GenLists) (GET_by_offset(disp, _gloffset_GenLists)); -} - -static INLINE void SET_GenLists(struct _glapi_table *disp, GLuint (GLAPIENTRYP fn)(GLsizei)) { - SET_by_offset(disp, _gloffset_GenLists, fn); -} - -typedef void (GLAPIENTRYP _glptr_ListBase)(GLuint); -#define CALL_ListBase(disp, parameters) \ - (* GET_ListBase(disp)) parameters -static INLINE _glptr_ListBase GET_ListBase(struct _glapi_table *disp) { - return (_glptr_ListBase) (GET_by_offset(disp, _gloffset_ListBase)); -} - -static INLINE void SET_ListBase(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_ListBase, fn); -} - -typedef void (GLAPIENTRYP _glptr_Begin)(GLenum); -#define CALL_Begin(disp, parameters) \ - (* GET_Begin(disp)) parameters -static INLINE _glptr_Begin GET_Begin(struct _glapi_table *disp) { - return (_glptr_Begin) (GET_by_offset(disp, _gloffset_Begin)); -} - -static INLINE void SET_Begin(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_Begin, fn); -} - -typedef void (GLAPIENTRYP _glptr_Bitmap)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *); -#define CALL_Bitmap(disp, parameters) \ - (* GET_Bitmap(disp)) parameters -static INLINE _glptr_Bitmap GET_Bitmap(struct _glapi_table *disp) { - return (_glptr_Bitmap) (GET_by_offset(disp, _gloffset_Bitmap)); -} - -static INLINE void SET_Bitmap(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLsizei, GLfloat, GLfloat, GLfloat, GLfloat, const GLubyte *)) { - SET_by_offset(disp, _gloffset_Bitmap, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3b)(GLbyte, GLbyte, GLbyte); -#define CALL_Color3b(disp, parameters) \ - (* GET_Color3b(disp)) parameters -static INLINE _glptr_Color3b GET_Color3b(struct _glapi_table *disp) { - return (_glptr_Color3b) (GET_by_offset(disp, _gloffset_Color3b)); -} - -static INLINE void SET_Color3b(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbyte, GLbyte, GLbyte)) { - SET_by_offset(disp, _gloffset_Color3b, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3bv)(const GLbyte *); -#define CALL_Color3bv(disp, parameters) \ - (* GET_Color3bv(disp)) parameters -static INLINE _glptr_Color3bv GET_Color3bv(struct _glapi_table *disp) { - return (_glptr_Color3bv) (GET_by_offset(disp, _gloffset_Color3bv)); -} - -static INLINE void SET_Color3bv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLbyte *)) { - SET_by_offset(disp, _gloffset_Color3bv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3d)(GLdouble, GLdouble, GLdouble); -#define CALL_Color3d(disp, parameters) \ - (* GET_Color3d(disp)) parameters -static INLINE _glptr_Color3d GET_Color3d(struct _glapi_table *disp) { - return (_glptr_Color3d) (GET_by_offset(disp, _gloffset_Color3d)); -} - -static INLINE void SET_Color3d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_Color3d, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3dv)(const GLdouble *); -#define CALL_Color3dv(disp, parameters) \ - (* GET_Color3dv(disp)) parameters -static INLINE _glptr_Color3dv GET_Color3dv(struct _glapi_table *disp) { - return (_glptr_Color3dv) (GET_by_offset(disp, _gloffset_Color3dv)); -} - -static INLINE void SET_Color3dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_Color3dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3f)(GLfloat, GLfloat, GLfloat); -#define CALL_Color3f(disp, parameters) \ - (* GET_Color3f(disp)) parameters -static INLINE _glptr_Color3f GET_Color3f(struct _glapi_table *disp) { - return (_glptr_Color3f) (GET_by_offset(disp, _gloffset_Color3f)); -} - -static INLINE void SET_Color3f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_Color3f, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3fv)(const GLfloat *); -#define CALL_Color3fv(disp, parameters) \ - (* GET_Color3fv(disp)) parameters -static INLINE _glptr_Color3fv GET_Color3fv(struct _glapi_table *disp) { - return (_glptr_Color3fv) (GET_by_offset(disp, _gloffset_Color3fv)); -} - -static INLINE void SET_Color3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_Color3fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3i)(GLint, GLint, GLint); -#define CALL_Color3i(disp, parameters) \ - (* GET_Color3i(disp)) parameters -static INLINE _glptr_Color3i GET_Color3i(struct _glapi_table *disp) { - return (_glptr_Color3i) (GET_by_offset(disp, _gloffset_Color3i)); -} - -static INLINE void SET_Color3i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_Color3i, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3iv)(const GLint *); -#define CALL_Color3iv(disp, parameters) \ - (* GET_Color3iv(disp)) parameters -static INLINE _glptr_Color3iv GET_Color3iv(struct _glapi_table *disp) { - return (_glptr_Color3iv) (GET_by_offset(disp, _gloffset_Color3iv)); -} - -static INLINE void SET_Color3iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_Color3iv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3s)(GLshort, GLshort, GLshort); -#define CALL_Color3s(disp, parameters) \ - (* GET_Color3s(disp)) parameters -static INLINE _glptr_Color3s GET_Color3s(struct _glapi_table *disp) { - return (_glptr_Color3s) (GET_by_offset(disp, _gloffset_Color3s)); -} - -static INLINE void SET_Color3s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_Color3s, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3sv)(const GLshort *); -#define CALL_Color3sv(disp, parameters) \ - (* GET_Color3sv(disp)) parameters -static INLINE _glptr_Color3sv GET_Color3sv(struct _glapi_table *disp) { - return (_glptr_Color3sv) (GET_by_offset(disp, _gloffset_Color3sv)); -} - -static INLINE void SET_Color3sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_Color3sv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3ub)(GLubyte, GLubyte, GLubyte); -#define CALL_Color3ub(disp, parameters) \ - (* GET_Color3ub(disp)) parameters -static INLINE _glptr_Color3ub GET_Color3ub(struct _glapi_table *disp) { - return (_glptr_Color3ub) (GET_by_offset(disp, _gloffset_Color3ub)); -} - -static INLINE void SET_Color3ub(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLubyte, GLubyte, GLubyte)) { - SET_by_offset(disp, _gloffset_Color3ub, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3ubv)(const GLubyte *); -#define CALL_Color3ubv(disp, parameters) \ - (* GET_Color3ubv(disp)) parameters -static INLINE _glptr_Color3ubv GET_Color3ubv(struct _glapi_table *disp) { - return (_glptr_Color3ubv) (GET_by_offset(disp, _gloffset_Color3ubv)); -} - -static INLINE void SET_Color3ubv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLubyte *)) { - SET_by_offset(disp, _gloffset_Color3ubv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3ui)(GLuint, GLuint, GLuint); -#define CALL_Color3ui(disp, parameters) \ - (* GET_Color3ui(disp)) parameters -static INLINE _glptr_Color3ui GET_Color3ui(struct _glapi_table *disp) { - return (_glptr_Color3ui) (GET_by_offset(disp, _gloffset_Color3ui)); -} - -static INLINE void SET_Color3ui(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_Color3ui, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3uiv)(const GLuint *); -#define CALL_Color3uiv(disp, parameters) \ - (* GET_Color3uiv(disp)) parameters -static INLINE _glptr_Color3uiv GET_Color3uiv(struct _glapi_table *disp) { - return (_glptr_Color3uiv) (GET_by_offset(disp, _gloffset_Color3uiv)); -} - -static INLINE void SET_Color3uiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLuint *)) { - SET_by_offset(disp, _gloffset_Color3uiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3us)(GLushort, GLushort, GLushort); -#define CALL_Color3us(disp, parameters) \ - (* GET_Color3us(disp)) parameters -static INLINE _glptr_Color3us GET_Color3us(struct _glapi_table *disp) { - return (_glptr_Color3us) (GET_by_offset(disp, _gloffset_Color3us)); -} - -static INLINE void SET_Color3us(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLushort, GLushort, GLushort)) { - SET_by_offset(disp, _gloffset_Color3us, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color3usv)(const GLushort *); -#define CALL_Color3usv(disp, parameters) \ - (* GET_Color3usv(disp)) parameters -static INLINE _glptr_Color3usv GET_Color3usv(struct _glapi_table *disp) { - return (_glptr_Color3usv) (GET_by_offset(disp, _gloffset_Color3usv)); -} - -static INLINE void SET_Color3usv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLushort *)) { - SET_by_offset(disp, _gloffset_Color3usv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4b)(GLbyte, GLbyte, GLbyte, GLbyte); -#define CALL_Color4b(disp, parameters) \ - (* GET_Color4b(disp)) parameters -static INLINE _glptr_Color4b GET_Color4b(struct _glapi_table *disp) { - return (_glptr_Color4b) (GET_by_offset(disp, _gloffset_Color4b)); -} - -static INLINE void SET_Color4b(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbyte, GLbyte, GLbyte, GLbyte)) { - SET_by_offset(disp, _gloffset_Color4b, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4bv)(const GLbyte *); -#define CALL_Color4bv(disp, parameters) \ - (* GET_Color4bv(disp)) parameters -static INLINE _glptr_Color4bv GET_Color4bv(struct _glapi_table *disp) { - return (_glptr_Color4bv) (GET_by_offset(disp, _gloffset_Color4bv)); -} - -static INLINE void SET_Color4bv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLbyte *)) { - SET_by_offset(disp, _gloffset_Color4bv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4d)(GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_Color4d(disp, parameters) \ - (* GET_Color4d(disp)) parameters -static INLINE _glptr_Color4d GET_Color4d(struct _glapi_table *disp) { - return (_glptr_Color4d) (GET_by_offset(disp, _gloffset_Color4d)); -} - -static INLINE void SET_Color4d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_Color4d, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4dv)(const GLdouble *); -#define CALL_Color4dv(disp, parameters) \ - (* GET_Color4dv(disp)) parameters -static INLINE _glptr_Color4dv GET_Color4dv(struct _glapi_table *disp) { - return (_glptr_Color4dv) (GET_by_offset(disp, _gloffset_Color4dv)); -} - -static INLINE void SET_Color4dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_Color4dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4f)(GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_Color4f(disp, parameters) \ - (* GET_Color4f(disp)) parameters -static INLINE _glptr_Color4f GET_Color4f(struct _glapi_table *disp) { - return (_glptr_Color4f) (GET_by_offset(disp, _gloffset_Color4f)); -} - -static INLINE void SET_Color4f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_Color4f, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4fv)(const GLfloat *); -#define CALL_Color4fv(disp, parameters) \ - (* GET_Color4fv(disp)) parameters -static INLINE _glptr_Color4fv GET_Color4fv(struct _glapi_table *disp) { - return (_glptr_Color4fv) (GET_by_offset(disp, _gloffset_Color4fv)); -} - -static INLINE void SET_Color4fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_Color4fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4i)(GLint, GLint, GLint, GLint); -#define CALL_Color4i(disp, parameters) \ - (* GET_Color4i(disp)) parameters -static INLINE _glptr_Color4i GET_Color4i(struct _glapi_table *disp) { - return (_glptr_Color4i) (GET_by_offset(disp, _gloffset_Color4i)); -} - -static INLINE void SET_Color4i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_Color4i, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4iv)(const GLint *); -#define CALL_Color4iv(disp, parameters) \ - (* GET_Color4iv(disp)) parameters -static INLINE _glptr_Color4iv GET_Color4iv(struct _glapi_table *disp) { - return (_glptr_Color4iv) (GET_by_offset(disp, _gloffset_Color4iv)); -} - -static INLINE void SET_Color4iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_Color4iv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4s)(GLshort, GLshort, GLshort, GLshort); -#define CALL_Color4s(disp, parameters) \ - (* GET_Color4s(disp)) parameters -static INLINE _glptr_Color4s GET_Color4s(struct _glapi_table *disp) { - return (_glptr_Color4s) (GET_by_offset(disp, _gloffset_Color4s)); -} - -static INLINE void SET_Color4s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_Color4s, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4sv)(const GLshort *); -#define CALL_Color4sv(disp, parameters) \ - (* GET_Color4sv(disp)) parameters -static INLINE _glptr_Color4sv GET_Color4sv(struct _glapi_table *disp) { - return (_glptr_Color4sv) (GET_by_offset(disp, _gloffset_Color4sv)); -} - -static INLINE void SET_Color4sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_Color4sv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4ub)(GLubyte, GLubyte, GLubyte, GLubyte); -#define CALL_Color4ub(disp, parameters) \ - (* GET_Color4ub(disp)) parameters -static INLINE _glptr_Color4ub GET_Color4ub(struct _glapi_table *disp) { - return (_glptr_Color4ub) (GET_by_offset(disp, _gloffset_Color4ub)); -} - -static INLINE void SET_Color4ub(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLubyte, GLubyte, GLubyte, GLubyte)) { - SET_by_offset(disp, _gloffset_Color4ub, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4ubv)(const GLubyte *); -#define CALL_Color4ubv(disp, parameters) \ - (* GET_Color4ubv(disp)) parameters -static INLINE _glptr_Color4ubv GET_Color4ubv(struct _glapi_table *disp) { - return (_glptr_Color4ubv) (GET_by_offset(disp, _gloffset_Color4ubv)); -} - -static INLINE void SET_Color4ubv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLubyte *)) { - SET_by_offset(disp, _gloffset_Color4ubv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4ui)(GLuint, GLuint, GLuint, GLuint); -#define CALL_Color4ui(disp, parameters) \ - (* GET_Color4ui(disp)) parameters -static INLINE _glptr_Color4ui GET_Color4ui(struct _glapi_table *disp) { - return (_glptr_Color4ui) (GET_by_offset(disp, _gloffset_Color4ui)); -} - -static INLINE void SET_Color4ui(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_Color4ui, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4uiv)(const GLuint *); -#define CALL_Color4uiv(disp, parameters) \ - (* GET_Color4uiv(disp)) parameters -static INLINE _glptr_Color4uiv GET_Color4uiv(struct _glapi_table *disp) { - return (_glptr_Color4uiv) (GET_by_offset(disp, _gloffset_Color4uiv)); -} - -static INLINE void SET_Color4uiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLuint *)) { - SET_by_offset(disp, _gloffset_Color4uiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4us)(GLushort, GLushort, GLushort, GLushort); -#define CALL_Color4us(disp, parameters) \ - (* GET_Color4us(disp)) parameters -static INLINE _glptr_Color4us GET_Color4us(struct _glapi_table *disp) { - return (_glptr_Color4us) (GET_by_offset(disp, _gloffset_Color4us)); -} - -static INLINE void SET_Color4us(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLushort, GLushort, GLushort, GLushort)) { - SET_by_offset(disp, _gloffset_Color4us, fn); -} - -typedef void (GLAPIENTRYP _glptr_Color4usv)(const GLushort *); -#define CALL_Color4usv(disp, parameters) \ - (* GET_Color4usv(disp)) parameters -static INLINE _glptr_Color4usv GET_Color4usv(struct _glapi_table *disp) { - return (_glptr_Color4usv) (GET_by_offset(disp, _gloffset_Color4usv)); -} - -static INLINE void SET_Color4usv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLushort *)) { - SET_by_offset(disp, _gloffset_Color4usv, fn); -} - -typedef void (GLAPIENTRYP _glptr_EdgeFlag)(GLboolean); -#define CALL_EdgeFlag(disp, parameters) \ - (* GET_EdgeFlag(disp)) parameters -static INLINE _glptr_EdgeFlag GET_EdgeFlag(struct _glapi_table *disp) { - return (_glptr_EdgeFlag) (GET_by_offset(disp, _gloffset_EdgeFlag)); -} - -static INLINE void SET_EdgeFlag(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLboolean)) { - SET_by_offset(disp, _gloffset_EdgeFlag, fn); -} - -typedef void (GLAPIENTRYP _glptr_EdgeFlagv)(const GLboolean *); -#define CALL_EdgeFlagv(disp, parameters) \ - (* GET_EdgeFlagv(disp)) parameters -static INLINE _glptr_EdgeFlagv GET_EdgeFlagv(struct _glapi_table *disp) { - return (_glptr_EdgeFlagv) (GET_by_offset(disp, _gloffset_EdgeFlagv)); -} - -static INLINE void SET_EdgeFlagv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLboolean *)) { - SET_by_offset(disp, _gloffset_EdgeFlagv, fn); -} - -typedef void (GLAPIENTRYP _glptr_End)(void); -#define CALL_End(disp, parameters) \ - (* GET_End(disp)) parameters -static INLINE _glptr_End GET_End(struct _glapi_table *disp) { - return (_glptr_End) (GET_by_offset(disp, _gloffset_End)); -} - -static INLINE void SET_End(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_End, fn); -} - -typedef void (GLAPIENTRYP _glptr_Indexd)(GLdouble); -#define CALL_Indexd(disp, parameters) \ - (* GET_Indexd(disp)) parameters -static INLINE _glptr_Indexd GET_Indexd(struct _glapi_table *disp) { - return (_glptr_Indexd) (GET_by_offset(disp, _gloffset_Indexd)); -} - -static INLINE void SET_Indexd(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble)) { - SET_by_offset(disp, _gloffset_Indexd, fn); -} - -typedef void (GLAPIENTRYP _glptr_Indexdv)(const GLdouble *); -#define CALL_Indexdv(disp, parameters) \ - (* GET_Indexdv(disp)) parameters -static INLINE _glptr_Indexdv GET_Indexdv(struct _glapi_table *disp) { - return (_glptr_Indexdv) (GET_by_offset(disp, _gloffset_Indexdv)); -} - -static INLINE void SET_Indexdv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_Indexdv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Indexf)(GLfloat); -#define CALL_Indexf(disp, parameters) \ - (* GET_Indexf(disp)) parameters -static INLINE _glptr_Indexf GET_Indexf(struct _glapi_table *disp) { - return (_glptr_Indexf) (GET_by_offset(disp, _gloffset_Indexf)); -} - -static INLINE void SET_Indexf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { - SET_by_offset(disp, _gloffset_Indexf, fn); -} - -typedef void (GLAPIENTRYP _glptr_Indexfv)(const GLfloat *); -#define CALL_Indexfv(disp, parameters) \ - (* GET_Indexfv(disp)) parameters -static INLINE _glptr_Indexfv GET_Indexfv(struct _glapi_table *disp) { - return (_glptr_Indexfv) (GET_by_offset(disp, _gloffset_Indexfv)); -} - -static INLINE void SET_Indexfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_Indexfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Indexi)(GLint); -#define CALL_Indexi(disp, parameters) \ - (* GET_Indexi(disp)) parameters -static INLINE _glptr_Indexi GET_Indexi(struct _glapi_table *disp) { - return (_glptr_Indexi) (GET_by_offset(disp, _gloffset_Indexi)); -} - -static INLINE void SET_Indexi(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint)) { - SET_by_offset(disp, _gloffset_Indexi, fn); -} - -typedef void (GLAPIENTRYP _glptr_Indexiv)(const GLint *); -#define CALL_Indexiv(disp, parameters) \ - (* GET_Indexiv(disp)) parameters -static INLINE _glptr_Indexiv GET_Indexiv(struct _glapi_table *disp) { - return (_glptr_Indexiv) (GET_by_offset(disp, _gloffset_Indexiv)); -} - -static INLINE void SET_Indexiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_Indexiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Indexs)(GLshort); -#define CALL_Indexs(disp, parameters) \ - (* GET_Indexs(disp)) parameters -static INLINE _glptr_Indexs GET_Indexs(struct _glapi_table *disp) { - return (_glptr_Indexs) (GET_by_offset(disp, _gloffset_Indexs)); -} - -static INLINE void SET_Indexs(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort)) { - SET_by_offset(disp, _gloffset_Indexs, fn); -} - -typedef void (GLAPIENTRYP _glptr_Indexsv)(const GLshort *); -#define CALL_Indexsv(disp, parameters) \ - (* GET_Indexsv(disp)) parameters -static INLINE _glptr_Indexsv GET_Indexsv(struct _glapi_table *disp) { - return (_glptr_Indexsv) (GET_by_offset(disp, _gloffset_Indexsv)); -} - -static INLINE void SET_Indexsv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_Indexsv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Normal3b)(GLbyte, GLbyte, GLbyte); -#define CALL_Normal3b(disp, parameters) \ - (* GET_Normal3b(disp)) parameters -static INLINE _glptr_Normal3b GET_Normal3b(struct _glapi_table *disp) { - return (_glptr_Normal3b) (GET_by_offset(disp, _gloffset_Normal3b)); -} - -static INLINE void SET_Normal3b(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbyte, GLbyte, GLbyte)) { - SET_by_offset(disp, _gloffset_Normal3b, fn); -} - -typedef void (GLAPIENTRYP _glptr_Normal3bv)(const GLbyte *); -#define CALL_Normal3bv(disp, parameters) \ - (* GET_Normal3bv(disp)) parameters -static INLINE _glptr_Normal3bv GET_Normal3bv(struct _glapi_table *disp) { - return (_glptr_Normal3bv) (GET_by_offset(disp, _gloffset_Normal3bv)); -} - -static INLINE void SET_Normal3bv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLbyte *)) { - SET_by_offset(disp, _gloffset_Normal3bv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Normal3d)(GLdouble, GLdouble, GLdouble); -#define CALL_Normal3d(disp, parameters) \ - (* GET_Normal3d(disp)) parameters -static INLINE _glptr_Normal3d GET_Normal3d(struct _glapi_table *disp) { - return (_glptr_Normal3d) (GET_by_offset(disp, _gloffset_Normal3d)); -} - -static INLINE void SET_Normal3d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_Normal3d, fn); -} - -typedef void (GLAPIENTRYP _glptr_Normal3dv)(const GLdouble *); -#define CALL_Normal3dv(disp, parameters) \ - (* GET_Normal3dv(disp)) parameters -static INLINE _glptr_Normal3dv GET_Normal3dv(struct _glapi_table *disp) { - return (_glptr_Normal3dv) (GET_by_offset(disp, _gloffset_Normal3dv)); -} - -static INLINE void SET_Normal3dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_Normal3dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Normal3f)(GLfloat, GLfloat, GLfloat); -#define CALL_Normal3f(disp, parameters) \ - (* GET_Normal3f(disp)) parameters -static INLINE _glptr_Normal3f GET_Normal3f(struct _glapi_table *disp) { - return (_glptr_Normal3f) (GET_by_offset(disp, _gloffset_Normal3f)); -} - -static INLINE void SET_Normal3f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_Normal3f, fn); -} - -typedef void (GLAPIENTRYP _glptr_Normal3fv)(const GLfloat *); -#define CALL_Normal3fv(disp, parameters) \ - (* GET_Normal3fv(disp)) parameters -static INLINE _glptr_Normal3fv GET_Normal3fv(struct _glapi_table *disp) { - return (_glptr_Normal3fv) (GET_by_offset(disp, _gloffset_Normal3fv)); -} - -static INLINE void SET_Normal3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_Normal3fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Normal3i)(GLint, GLint, GLint); -#define CALL_Normal3i(disp, parameters) \ - (* GET_Normal3i(disp)) parameters -static INLINE _glptr_Normal3i GET_Normal3i(struct _glapi_table *disp) { - return (_glptr_Normal3i) (GET_by_offset(disp, _gloffset_Normal3i)); -} - -static INLINE void SET_Normal3i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_Normal3i, fn); -} - -typedef void (GLAPIENTRYP _glptr_Normal3iv)(const GLint *); -#define CALL_Normal3iv(disp, parameters) \ - (* GET_Normal3iv(disp)) parameters -static INLINE _glptr_Normal3iv GET_Normal3iv(struct _glapi_table *disp) { - return (_glptr_Normal3iv) (GET_by_offset(disp, _gloffset_Normal3iv)); -} - -static INLINE void SET_Normal3iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_Normal3iv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Normal3s)(GLshort, GLshort, GLshort); -#define CALL_Normal3s(disp, parameters) \ - (* GET_Normal3s(disp)) parameters -static INLINE _glptr_Normal3s GET_Normal3s(struct _glapi_table *disp) { - return (_glptr_Normal3s) (GET_by_offset(disp, _gloffset_Normal3s)); -} - -static INLINE void SET_Normal3s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_Normal3s, fn); -} - -typedef void (GLAPIENTRYP _glptr_Normal3sv)(const GLshort *); -#define CALL_Normal3sv(disp, parameters) \ - (* GET_Normal3sv(disp)) parameters -static INLINE _glptr_Normal3sv GET_Normal3sv(struct _glapi_table *disp) { - return (_glptr_Normal3sv) (GET_by_offset(disp, _gloffset_Normal3sv)); -} - -static INLINE void SET_Normal3sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_Normal3sv, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos2d)(GLdouble, GLdouble); -#define CALL_RasterPos2d(disp, parameters) \ - (* GET_RasterPos2d(disp)) parameters -static INLINE _glptr_RasterPos2d GET_RasterPos2d(struct _glapi_table *disp) { - return (_glptr_RasterPos2d) (GET_by_offset(disp, _gloffset_RasterPos2d)); -} - -static INLINE void SET_RasterPos2d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_RasterPos2d, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos2dv)(const GLdouble *); -#define CALL_RasterPos2dv(disp, parameters) \ - (* GET_RasterPos2dv(disp)) parameters -static INLINE _glptr_RasterPos2dv GET_RasterPos2dv(struct _glapi_table *disp) { - return (_glptr_RasterPos2dv) (GET_by_offset(disp, _gloffset_RasterPos2dv)); -} - -static INLINE void SET_RasterPos2dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_RasterPos2dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos2f)(GLfloat, GLfloat); -#define CALL_RasterPos2f(disp, parameters) \ - (* GET_RasterPos2f(disp)) parameters -static INLINE _glptr_RasterPos2f GET_RasterPos2f(struct _glapi_table *disp) { - return (_glptr_RasterPos2f) (GET_by_offset(disp, _gloffset_RasterPos2f)); -} - -static INLINE void SET_RasterPos2f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_RasterPos2f, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos2fv)(const GLfloat *); -#define CALL_RasterPos2fv(disp, parameters) \ - (* GET_RasterPos2fv(disp)) parameters -static INLINE _glptr_RasterPos2fv GET_RasterPos2fv(struct _glapi_table *disp) { - return (_glptr_RasterPos2fv) (GET_by_offset(disp, _gloffset_RasterPos2fv)); -} - -static INLINE void SET_RasterPos2fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_RasterPos2fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos2i)(GLint, GLint); -#define CALL_RasterPos2i(disp, parameters) \ - (* GET_RasterPos2i(disp)) parameters -static INLINE _glptr_RasterPos2i GET_RasterPos2i(struct _glapi_table *disp) { - return (_glptr_RasterPos2i) (GET_by_offset(disp, _gloffset_RasterPos2i)); -} - -static INLINE void SET_RasterPos2i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint)) { - SET_by_offset(disp, _gloffset_RasterPos2i, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos2iv)(const GLint *); -#define CALL_RasterPos2iv(disp, parameters) \ - (* GET_RasterPos2iv(disp)) parameters -static INLINE _glptr_RasterPos2iv GET_RasterPos2iv(struct _glapi_table *disp) { - return (_glptr_RasterPos2iv) (GET_by_offset(disp, _gloffset_RasterPos2iv)); -} - -static INLINE void SET_RasterPos2iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_RasterPos2iv, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos2s)(GLshort, GLshort); -#define CALL_RasterPos2s(disp, parameters) \ - (* GET_RasterPos2s(disp)) parameters -static INLINE _glptr_RasterPos2s GET_RasterPos2s(struct _glapi_table *disp) { - return (_glptr_RasterPos2s) (GET_by_offset(disp, _gloffset_RasterPos2s)); -} - -static INLINE void SET_RasterPos2s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_RasterPos2s, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos2sv)(const GLshort *); -#define CALL_RasterPos2sv(disp, parameters) \ - (* GET_RasterPos2sv(disp)) parameters -static INLINE _glptr_RasterPos2sv GET_RasterPos2sv(struct _glapi_table *disp) { - return (_glptr_RasterPos2sv) (GET_by_offset(disp, _gloffset_RasterPos2sv)); -} - -static INLINE void SET_RasterPos2sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_RasterPos2sv, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos3d)(GLdouble, GLdouble, GLdouble); -#define CALL_RasterPos3d(disp, parameters) \ - (* GET_RasterPos3d(disp)) parameters -static INLINE _glptr_RasterPos3d GET_RasterPos3d(struct _glapi_table *disp) { - return (_glptr_RasterPos3d) (GET_by_offset(disp, _gloffset_RasterPos3d)); -} - -static INLINE void SET_RasterPos3d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_RasterPos3d, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos3dv)(const GLdouble *); -#define CALL_RasterPos3dv(disp, parameters) \ - (* GET_RasterPos3dv(disp)) parameters -static INLINE _glptr_RasterPos3dv GET_RasterPos3dv(struct _glapi_table *disp) { - return (_glptr_RasterPos3dv) (GET_by_offset(disp, _gloffset_RasterPos3dv)); -} - -static INLINE void SET_RasterPos3dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_RasterPos3dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos3f)(GLfloat, GLfloat, GLfloat); -#define CALL_RasterPos3f(disp, parameters) \ - (* GET_RasterPos3f(disp)) parameters -static INLINE _glptr_RasterPos3f GET_RasterPos3f(struct _glapi_table *disp) { - return (_glptr_RasterPos3f) (GET_by_offset(disp, _gloffset_RasterPos3f)); -} - -static INLINE void SET_RasterPos3f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_RasterPos3f, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos3fv)(const GLfloat *); -#define CALL_RasterPos3fv(disp, parameters) \ - (* GET_RasterPos3fv(disp)) parameters -static INLINE _glptr_RasterPos3fv GET_RasterPos3fv(struct _glapi_table *disp) { - return (_glptr_RasterPos3fv) (GET_by_offset(disp, _gloffset_RasterPos3fv)); -} - -static INLINE void SET_RasterPos3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_RasterPos3fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos3i)(GLint, GLint, GLint); -#define CALL_RasterPos3i(disp, parameters) \ - (* GET_RasterPos3i(disp)) parameters -static INLINE _glptr_RasterPos3i GET_RasterPos3i(struct _glapi_table *disp) { - return (_glptr_RasterPos3i) (GET_by_offset(disp, _gloffset_RasterPos3i)); -} - -static INLINE void SET_RasterPos3i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_RasterPos3i, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos3iv)(const GLint *); -#define CALL_RasterPos3iv(disp, parameters) \ - (* GET_RasterPos3iv(disp)) parameters -static INLINE _glptr_RasterPos3iv GET_RasterPos3iv(struct _glapi_table *disp) { - return (_glptr_RasterPos3iv) (GET_by_offset(disp, _gloffset_RasterPos3iv)); -} - -static INLINE void SET_RasterPos3iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_RasterPos3iv, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos3s)(GLshort, GLshort, GLshort); -#define CALL_RasterPos3s(disp, parameters) \ - (* GET_RasterPos3s(disp)) parameters -static INLINE _glptr_RasterPos3s GET_RasterPos3s(struct _glapi_table *disp) { - return (_glptr_RasterPos3s) (GET_by_offset(disp, _gloffset_RasterPos3s)); -} - -static INLINE void SET_RasterPos3s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_RasterPos3s, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos3sv)(const GLshort *); -#define CALL_RasterPos3sv(disp, parameters) \ - (* GET_RasterPos3sv(disp)) parameters -static INLINE _glptr_RasterPos3sv GET_RasterPos3sv(struct _glapi_table *disp) { - return (_glptr_RasterPos3sv) (GET_by_offset(disp, _gloffset_RasterPos3sv)); -} - -static INLINE void SET_RasterPos3sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_RasterPos3sv, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos4d)(GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_RasterPos4d(disp, parameters) \ - (* GET_RasterPos4d(disp)) parameters -static INLINE _glptr_RasterPos4d GET_RasterPos4d(struct _glapi_table *disp) { - return (_glptr_RasterPos4d) (GET_by_offset(disp, _gloffset_RasterPos4d)); -} - -static INLINE void SET_RasterPos4d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_RasterPos4d, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos4dv)(const GLdouble *); -#define CALL_RasterPos4dv(disp, parameters) \ - (* GET_RasterPos4dv(disp)) parameters -static INLINE _glptr_RasterPos4dv GET_RasterPos4dv(struct _glapi_table *disp) { - return (_glptr_RasterPos4dv) (GET_by_offset(disp, _gloffset_RasterPos4dv)); -} - -static INLINE void SET_RasterPos4dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_RasterPos4dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos4f)(GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_RasterPos4f(disp, parameters) \ - (* GET_RasterPos4f(disp)) parameters -static INLINE _glptr_RasterPos4f GET_RasterPos4f(struct _glapi_table *disp) { - return (_glptr_RasterPos4f) (GET_by_offset(disp, _gloffset_RasterPos4f)); -} - -static INLINE void SET_RasterPos4f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_RasterPos4f, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos4fv)(const GLfloat *); -#define CALL_RasterPos4fv(disp, parameters) \ - (* GET_RasterPos4fv(disp)) parameters -static INLINE _glptr_RasterPos4fv GET_RasterPos4fv(struct _glapi_table *disp) { - return (_glptr_RasterPos4fv) (GET_by_offset(disp, _gloffset_RasterPos4fv)); -} - -static INLINE void SET_RasterPos4fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_RasterPos4fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos4i)(GLint, GLint, GLint, GLint); -#define CALL_RasterPos4i(disp, parameters) \ - (* GET_RasterPos4i(disp)) parameters -static INLINE _glptr_RasterPos4i GET_RasterPos4i(struct _glapi_table *disp) { - return (_glptr_RasterPos4i) (GET_by_offset(disp, _gloffset_RasterPos4i)); -} - -static INLINE void SET_RasterPos4i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_RasterPos4i, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos4iv)(const GLint *); -#define CALL_RasterPos4iv(disp, parameters) \ - (* GET_RasterPos4iv(disp)) parameters -static INLINE _glptr_RasterPos4iv GET_RasterPos4iv(struct _glapi_table *disp) { - return (_glptr_RasterPos4iv) (GET_by_offset(disp, _gloffset_RasterPos4iv)); -} - -static INLINE void SET_RasterPos4iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_RasterPos4iv, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos4s)(GLshort, GLshort, GLshort, GLshort); -#define CALL_RasterPos4s(disp, parameters) \ - (* GET_RasterPos4s(disp)) parameters -static INLINE _glptr_RasterPos4s GET_RasterPos4s(struct _glapi_table *disp) { - return (_glptr_RasterPos4s) (GET_by_offset(disp, _gloffset_RasterPos4s)); -} - -static INLINE void SET_RasterPos4s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_RasterPos4s, fn); -} - -typedef void (GLAPIENTRYP _glptr_RasterPos4sv)(const GLshort *); -#define CALL_RasterPos4sv(disp, parameters) \ - (* GET_RasterPos4sv(disp)) parameters -static INLINE _glptr_RasterPos4sv GET_RasterPos4sv(struct _glapi_table *disp) { - return (_glptr_RasterPos4sv) (GET_by_offset(disp, _gloffset_RasterPos4sv)); -} - -static INLINE void SET_RasterPos4sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_RasterPos4sv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Rectd)(GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_Rectd(disp, parameters) \ - (* GET_Rectd(disp)) parameters -static INLINE _glptr_Rectd GET_Rectd(struct _glapi_table *disp) { - return (_glptr_Rectd) (GET_by_offset(disp, _gloffset_Rectd)); -} - -static INLINE void SET_Rectd(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_Rectd, fn); -} - -typedef void (GLAPIENTRYP _glptr_Rectdv)(const GLdouble *, const GLdouble *); -#define CALL_Rectdv(disp, parameters) \ - (* GET_Rectdv(disp)) parameters -static INLINE _glptr_Rectdv GET_Rectdv(struct _glapi_table *disp) { - return (_glptr_Rectdv) (GET_by_offset(disp, _gloffset_Rectdv)); -} - -static INLINE void SET_Rectdv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *, const GLdouble *)) { - SET_by_offset(disp, _gloffset_Rectdv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Rectf)(GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_Rectf(disp, parameters) \ - (* GET_Rectf(disp)) parameters -static INLINE _glptr_Rectf GET_Rectf(struct _glapi_table *disp) { - return (_glptr_Rectf) (GET_by_offset(disp, _gloffset_Rectf)); -} - -static INLINE void SET_Rectf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_Rectf, fn); -} - -typedef void (GLAPIENTRYP _glptr_Rectfv)(const GLfloat *, const GLfloat *); -#define CALL_Rectfv(disp, parameters) \ - (* GET_Rectfv(disp)) parameters -static INLINE _glptr_Rectfv GET_Rectfv(struct _glapi_table *disp) { - return (_glptr_Rectfv) (GET_by_offset(disp, _gloffset_Rectfv)); -} - -static INLINE void SET_Rectfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *, const GLfloat *)) { - SET_by_offset(disp, _gloffset_Rectfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Recti)(GLint, GLint, GLint, GLint); -#define CALL_Recti(disp, parameters) \ - (* GET_Recti(disp)) parameters -static INLINE _glptr_Recti GET_Recti(struct _glapi_table *disp) { - return (_glptr_Recti) (GET_by_offset(disp, _gloffset_Recti)); -} - -static INLINE void SET_Recti(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_Recti, fn); -} - -typedef void (GLAPIENTRYP _glptr_Rectiv)(const GLint *, const GLint *); -#define CALL_Rectiv(disp, parameters) \ - (* GET_Rectiv(disp)) parameters -static INLINE _glptr_Rectiv GET_Rectiv(struct _glapi_table *disp) { - return (_glptr_Rectiv) (GET_by_offset(disp, _gloffset_Rectiv)); -} - -static INLINE void SET_Rectiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *, const GLint *)) { - SET_by_offset(disp, _gloffset_Rectiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Rects)(GLshort, GLshort, GLshort, GLshort); -#define CALL_Rects(disp, parameters) \ - (* GET_Rects(disp)) parameters -static INLINE _glptr_Rects GET_Rects(struct _glapi_table *disp) { - return (_glptr_Rects) (GET_by_offset(disp, _gloffset_Rects)); -} - -static INLINE void SET_Rects(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_Rects, fn); -} - -typedef void (GLAPIENTRYP _glptr_Rectsv)(const GLshort *, const GLshort *); -#define CALL_Rectsv(disp, parameters) \ - (* GET_Rectsv(disp)) parameters -static INLINE _glptr_Rectsv GET_Rectsv(struct _glapi_table *disp) { - return (_glptr_Rectsv) (GET_by_offset(disp, _gloffset_Rectsv)); -} - -static INLINE void SET_Rectsv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *, const GLshort *)) { - SET_by_offset(disp, _gloffset_Rectsv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord1d)(GLdouble); -#define CALL_TexCoord1d(disp, parameters) \ - (* GET_TexCoord1d(disp)) parameters -static INLINE _glptr_TexCoord1d GET_TexCoord1d(struct _glapi_table *disp) { - return (_glptr_TexCoord1d) (GET_by_offset(disp, _gloffset_TexCoord1d)); -} - -static INLINE void SET_TexCoord1d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble)) { - SET_by_offset(disp, _gloffset_TexCoord1d, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord1dv)(const GLdouble *); -#define CALL_TexCoord1dv(disp, parameters) \ - (* GET_TexCoord1dv(disp)) parameters -static INLINE _glptr_TexCoord1dv GET_TexCoord1dv(struct _glapi_table *disp) { - return (_glptr_TexCoord1dv) (GET_by_offset(disp, _gloffset_TexCoord1dv)); -} - -static INLINE void SET_TexCoord1dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_TexCoord1dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord1f)(GLfloat); -#define CALL_TexCoord1f(disp, parameters) \ - (* GET_TexCoord1f(disp)) parameters -static INLINE _glptr_TexCoord1f GET_TexCoord1f(struct _glapi_table *disp) { - return (_glptr_TexCoord1f) (GET_by_offset(disp, _gloffset_TexCoord1f)); -} - -static INLINE void SET_TexCoord1f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { - SET_by_offset(disp, _gloffset_TexCoord1f, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord1fv)(const GLfloat *); -#define CALL_TexCoord1fv(disp, parameters) \ - (* GET_TexCoord1fv(disp)) parameters -static INLINE _glptr_TexCoord1fv GET_TexCoord1fv(struct _glapi_table *disp) { - return (_glptr_TexCoord1fv) (GET_by_offset(disp, _gloffset_TexCoord1fv)); -} - -static INLINE void SET_TexCoord1fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_TexCoord1fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord1i)(GLint); -#define CALL_TexCoord1i(disp, parameters) \ - (* GET_TexCoord1i(disp)) parameters -static INLINE _glptr_TexCoord1i GET_TexCoord1i(struct _glapi_table *disp) { - return (_glptr_TexCoord1i) (GET_by_offset(disp, _gloffset_TexCoord1i)); -} - -static INLINE void SET_TexCoord1i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint)) { - SET_by_offset(disp, _gloffset_TexCoord1i, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord1iv)(const GLint *); -#define CALL_TexCoord1iv(disp, parameters) \ - (* GET_TexCoord1iv(disp)) parameters -static INLINE _glptr_TexCoord1iv GET_TexCoord1iv(struct _glapi_table *disp) { - return (_glptr_TexCoord1iv) (GET_by_offset(disp, _gloffset_TexCoord1iv)); -} - -static INLINE void SET_TexCoord1iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_TexCoord1iv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord1s)(GLshort); -#define CALL_TexCoord1s(disp, parameters) \ - (* GET_TexCoord1s(disp)) parameters -static INLINE _glptr_TexCoord1s GET_TexCoord1s(struct _glapi_table *disp) { - return (_glptr_TexCoord1s) (GET_by_offset(disp, _gloffset_TexCoord1s)); -} - -static INLINE void SET_TexCoord1s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort)) { - SET_by_offset(disp, _gloffset_TexCoord1s, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord1sv)(const GLshort *); -#define CALL_TexCoord1sv(disp, parameters) \ - (* GET_TexCoord1sv(disp)) parameters -static INLINE _glptr_TexCoord1sv GET_TexCoord1sv(struct _glapi_table *disp) { - return (_glptr_TexCoord1sv) (GET_by_offset(disp, _gloffset_TexCoord1sv)); -} - -static INLINE void SET_TexCoord1sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_TexCoord1sv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord2d)(GLdouble, GLdouble); -#define CALL_TexCoord2d(disp, parameters) \ - (* GET_TexCoord2d(disp)) parameters -static INLINE _glptr_TexCoord2d GET_TexCoord2d(struct _glapi_table *disp) { - return (_glptr_TexCoord2d) (GET_by_offset(disp, _gloffset_TexCoord2d)); -} - -static INLINE void SET_TexCoord2d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_TexCoord2d, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord2dv)(const GLdouble *); -#define CALL_TexCoord2dv(disp, parameters) \ - (* GET_TexCoord2dv(disp)) parameters -static INLINE _glptr_TexCoord2dv GET_TexCoord2dv(struct _glapi_table *disp) { - return (_glptr_TexCoord2dv) (GET_by_offset(disp, _gloffset_TexCoord2dv)); -} - -static INLINE void SET_TexCoord2dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_TexCoord2dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord2f)(GLfloat, GLfloat); -#define CALL_TexCoord2f(disp, parameters) \ - (* GET_TexCoord2f(disp)) parameters -static INLINE _glptr_TexCoord2f GET_TexCoord2f(struct _glapi_table *disp) { - return (_glptr_TexCoord2f) (GET_by_offset(disp, _gloffset_TexCoord2f)); -} - -static INLINE void SET_TexCoord2f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_TexCoord2f, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord2fv)(const GLfloat *); -#define CALL_TexCoord2fv(disp, parameters) \ - (* GET_TexCoord2fv(disp)) parameters -static INLINE _glptr_TexCoord2fv GET_TexCoord2fv(struct _glapi_table *disp) { - return (_glptr_TexCoord2fv) (GET_by_offset(disp, _gloffset_TexCoord2fv)); -} - -static INLINE void SET_TexCoord2fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_TexCoord2fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord2i)(GLint, GLint); -#define CALL_TexCoord2i(disp, parameters) \ - (* GET_TexCoord2i(disp)) parameters -static INLINE _glptr_TexCoord2i GET_TexCoord2i(struct _glapi_table *disp) { - return (_glptr_TexCoord2i) (GET_by_offset(disp, _gloffset_TexCoord2i)); -} - -static INLINE void SET_TexCoord2i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint)) { - SET_by_offset(disp, _gloffset_TexCoord2i, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord2iv)(const GLint *); -#define CALL_TexCoord2iv(disp, parameters) \ - (* GET_TexCoord2iv(disp)) parameters -static INLINE _glptr_TexCoord2iv GET_TexCoord2iv(struct _glapi_table *disp) { - return (_glptr_TexCoord2iv) (GET_by_offset(disp, _gloffset_TexCoord2iv)); -} - -static INLINE void SET_TexCoord2iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_TexCoord2iv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord2s)(GLshort, GLshort); -#define CALL_TexCoord2s(disp, parameters) \ - (* GET_TexCoord2s(disp)) parameters -static INLINE _glptr_TexCoord2s GET_TexCoord2s(struct _glapi_table *disp) { - return (_glptr_TexCoord2s) (GET_by_offset(disp, _gloffset_TexCoord2s)); -} - -static INLINE void SET_TexCoord2s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_TexCoord2s, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord2sv)(const GLshort *); -#define CALL_TexCoord2sv(disp, parameters) \ - (* GET_TexCoord2sv(disp)) parameters -static INLINE _glptr_TexCoord2sv GET_TexCoord2sv(struct _glapi_table *disp) { - return (_glptr_TexCoord2sv) (GET_by_offset(disp, _gloffset_TexCoord2sv)); -} - -static INLINE void SET_TexCoord2sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_TexCoord2sv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord3d)(GLdouble, GLdouble, GLdouble); -#define CALL_TexCoord3d(disp, parameters) \ - (* GET_TexCoord3d(disp)) parameters -static INLINE _glptr_TexCoord3d GET_TexCoord3d(struct _glapi_table *disp) { - return (_glptr_TexCoord3d) (GET_by_offset(disp, _gloffset_TexCoord3d)); -} - -static INLINE void SET_TexCoord3d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_TexCoord3d, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord3dv)(const GLdouble *); -#define CALL_TexCoord3dv(disp, parameters) \ - (* GET_TexCoord3dv(disp)) parameters -static INLINE _glptr_TexCoord3dv GET_TexCoord3dv(struct _glapi_table *disp) { - return (_glptr_TexCoord3dv) (GET_by_offset(disp, _gloffset_TexCoord3dv)); -} - -static INLINE void SET_TexCoord3dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_TexCoord3dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord3f)(GLfloat, GLfloat, GLfloat); -#define CALL_TexCoord3f(disp, parameters) \ - (* GET_TexCoord3f(disp)) parameters -static INLINE _glptr_TexCoord3f GET_TexCoord3f(struct _glapi_table *disp) { - return (_glptr_TexCoord3f) (GET_by_offset(disp, _gloffset_TexCoord3f)); -} - -static INLINE void SET_TexCoord3f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_TexCoord3f, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord3fv)(const GLfloat *); -#define CALL_TexCoord3fv(disp, parameters) \ - (* GET_TexCoord3fv(disp)) parameters -static INLINE _glptr_TexCoord3fv GET_TexCoord3fv(struct _glapi_table *disp) { - return (_glptr_TexCoord3fv) (GET_by_offset(disp, _gloffset_TexCoord3fv)); -} - -static INLINE void SET_TexCoord3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_TexCoord3fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord3i)(GLint, GLint, GLint); -#define CALL_TexCoord3i(disp, parameters) \ - (* GET_TexCoord3i(disp)) parameters -static INLINE _glptr_TexCoord3i GET_TexCoord3i(struct _glapi_table *disp) { - return (_glptr_TexCoord3i) (GET_by_offset(disp, _gloffset_TexCoord3i)); -} - -static INLINE void SET_TexCoord3i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_TexCoord3i, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord3iv)(const GLint *); -#define CALL_TexCoord3iv(disp, parameters) \ - (* GET_TexCoord3iv(disp)) parameters -static INLINE _glptr_TexCoord3iv GET_TexCoord3iv(struct _glapi_table *disp) { - return (_glptr_TexCoord3iv) (GET_by_offset(disp, _gloffset_TexCoord3iv)); -} - -static INLINE void SET_TexCoord3iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_TexCoord3iv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord3s)(GLshort, GLshort, GLshort); -#define CALL_TexCoord3s(disp, parameters) \ - (* GET_TexCoord3s(disp)) parameters -static INLINE _glptr_TexCoord3s GET_TexCoord3s(struct _glapi_table *disp) { - return (_glptr_TexCoord3s) (GET_by_offset(disp, _gloffset_TexCoord3s)); -} - -static INLINE void SET_TexCoord3s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_TexCoord3s, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord3sv)(const GLshort *); -#define CALL_TexCoord3sv(disp, parameters) \ - (* GET_TexCoord3sv(disp)) parameters -static INLINE _glptr_TexCoord3sv GET_TexCoord3sv(struct _glapi_table *disp) { - return (_glptr_TexCoord3sv) (GET_by_offset(disp, _gloffset_TexCoord3sv)); -} - -static INLINE void SET_TexCoord3sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_TexCoord3sv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord4d)(GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_TexCoord4d(disp, parameters) \ - (* GET_TexCoord4d(disp)) parameters -static INLINE _glptr_TexCoord4d GET_TexCoord4d(struct _glapi_table *disp) { - return (_glptr_TexCoord4d) (GET_by_offset(disp, _gloffset_TexCoord4d)); -} - -static INLINE void SET_TexCoord4d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_TexCoord4d, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord4dv)(const GLdouble *); -#define CALL_TexCoord4dv(disp, parameters) \ - (* GET_TexCoord4dv(disp)) parameters -static INLINE _glptr_TexCoord4dv GET_TexCoord4dv(struct _glapi_table *disp) { - return (_glptr_TexCoord4dv) (GET_by_offset(disp, _gloffset_TexCoord4dv)); -} - -static INLINE void SET_TexCoord4dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_TexCoord4dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord4f)(GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_TexCoord4f(disp, parameters) \ - (* GET_TexCoord4f(disp)) parameters -static INLINE _glptr_TexCoord4f GET_TexCoord4f(struct _glapi_table *disp) { - return (_glptr_TexCoord4f) (GET_by_offset(disp, _gloffset_TexCoord4f)); -} - -static INLINE void SET_TexCoord4f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_TexCoord4f, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord4fv)(const GLfloat *); -#define CALL_TexCoord4fv(disp, parameters) \ - (* GET_TexCoord4fv(disp)) parameters -static INLINE _glptr_TexCoord4fv GET_TexCoord4fv(struct _glapi_table *disp) { - return (_glptr_TexCoord4fv) (GET_by_offset(disp, _gloffset_TexCoord4fv)); -} - -static INLINE void SET_TexCoord4fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_TexCoord4fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord4i)(GLint, GLint, GLint, GLint); -#define CALL_TexCoord4i(disp, parameters) \ - (* GET_TexCoord4i(disp)) parameters -static INLINE _glptr_TexCoord4i GET_TexCoord4i(struct _glapi_table *disp) { - return (_glptr_TexCoord4i) (GET_by_offset(disp, _gloffset_TexCoord4i)); -} - -static INLINE void SET_TexCoord4i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_TexCoord4i, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord4iv)(const GLint *); -#define CALL_TexCoord4iv(disp, parameters) \ - (* GET_TexCoord4iv(disp)) parameters -static INLINE _glptr_TexCoord4iv GET_TexCoord4iv(struct _glapi_table *disp) { - return (_glptr_TexCoord4iv) (GET_by_offset(disp, _gloffset_TexCoord4iv)); -} - -static INLINE void SET_TexCoord4iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_TexCoord4iv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord4s)(GLshort, GLshort, GLshort, GLshort); -#define CALL_TexCoord4s(disp, parameters) \ - (* GET_TexCoord4s(disp)) parameters -static INLINE _glptr_TexCoord4s GET_TexCoord4s(struct _glapi_table *disp) { - return (_glptr_TexCoord4s) (GET_by_offset(disp, _gloffset_TexCoord4s)); -} - -static INLINE void SET_TexCoord4s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_TexCoord4s, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoord4sv)(const GLshort *); -#define CALL_TexCoord4sv(disp, parameters) \ - (* GET_TexCoord4sv(disp)) parameters -static INLINE _glptr_TexCoord4sv GET_TexCoord4sv(struct _glapi_table *disp) { - return (_glptr_TexCoord4sv) (GET_by_offset(disp, _gloffset_TexCoord4sv)); -} - -static INLINE void SET_TexCoord4sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_TexCoord4sv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex2d)(GLdouble, GLdouble); -#define CALL_Vertex2d(disp, parameters) \ - (* GET_Vertex2d(disp)) parameters -static INLINE _glptr_Vertex2d GET_Vertex2d(struct _glapi_table *disp) { - return (_glptr_Vertex2d) (GET_by_offset(disp, _gloffset_Vertex2d)); -} - -static INLINE void SET_Vertex2d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_Vertex2d, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex2dv)(const GLdouble *); -#define CALL_Vertex2dv(disp, parameters) \ - (* GET_Vertex2dv(disp)) parameters -static INLINE _glptr_Vertex2dv GET_Vertex2dv(struct _glapi_table *disp) { - return (_glptr_Vertex2dv) (GET_by_offset(disp, _gloffset_Vertex2dv)); -} - -static INLINE void SET_Vertex2dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_Vertex2dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex2f)(GLfloat, GLfloat); -#define CALL_Vertex2f(disp, parameters) \ - (* GET_Vertex2f(disp)) parameters -static INLINE _glptr_Vertex2f GET_Vertex2f(struct _glapi_table *disp) { - return (_glptr_Vertex2f) (GET_by_offset(disp, _gloffset_Vertex2f)); -} - -static INLINE void SET_Vertex2f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_Vertex2f, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex2fv)(const GLfloat *); -#define CALL_Vertex2fv(disp, parameters) \ - (* GET_Vertex2fv(disp)) parameters -static INLINE _glptr_Vertex2fv GET_Vertex2fv(struct _glapi_table *disp) { - return (_glptr_Vertex2fv) (GET_by_offset(disp, _gloffset_Vertex2fv)); -} - -static INLINE void SET_Vertex2fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_Vertex2fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex2i)(GLint, GLint); -#define CALL_Vertex2i(disp, parameters) \ - (* GET_Vertex2i(disp)) parameters -static INLINE _glptr_Vertex2i GET_Vertex2i(struct _glapi_table *disp) { - return (_glptr_Vertex2i) (GET_by_offset(disp, _gloffset_Vertex2i)); -} - -static INLINE void SET_Vertex2i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint)) { - SET_by_offset(disp, _gloffset_Vertex2i, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex2iv)(const GLint *); -#define CALL_Vertex2iv(disp, parameters) \ - (* GET_Vertex2iv(disp)) parameters -static INLINE _glptr_Vertex2iv GET_Vertex2iv(struct _glapi_table *disp) { - return (_glptr_Vertex2iv) (GET_by_offset(disp, _gloffset_Vertex2iv)); -} - -static INLINE void SET_Vertex2iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_Vertex2iv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex2s)(GLshort, GLshort); -#define CALL_Vertex2s(disp, parameters) \ - (* GET_Vertex2s(disp)) parameters -static INLINE _glptr_Vertex2s GET_Vertex2s(struct _glapi_table *disp) { - return (_glptr_Vertex2s) (GET_by_offset(disp, _gloffset_Vertex2s)); -} - -static INLINE void SET_Vertex2s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_Vertex2s, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex2sv)(const GLshort *); -#define CALL_Vertex2sv(disp, parameters) \ - (* GET_Vertex2sv(disp)) parameters -static INLINE _glptr_Vertex2sv GET_Vertex2sv(struct _glapi_table *disp) { - return (_glptr_Vertex2sv) (GET_by_offset(disp, _gloffset_Vertex2sv)); -} - -static INLINE void SET_Vertex2sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_Vertex2sv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex3d)(GLdouble, GLdouble, GLdouble); -#define CALL_Vertex3d(disp, parameters) \ - (* GET_Vertex3d(disp)) parameters -static INLINE _glptr_Vertex3d GET_Vertex3d(struct _glapi_table *disp) { - return (_glptr_Vertex3d) (GET_by_offset(disp, _gloffset_Vertex3d)); -} - -static INLINE void SET_Vertex3d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_Vertex3d, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex3dv)(const GLdouble *); -#define CALL_Vertex3dv(disp, parameters) \ - (* GET_Vertex3dv(disp)) parameters -static INLINE _glptr_Vertex3dv GET_Vertex3dv(struct _glapi_table *disp) { - return (_glptr_Vertex3dv) (GET_by_offset(disp, _gloffset_Vertex3dv)); -} - -static INLINE void SET_Vertex3dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_Vertex3dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex3f)(GLfloat, GLfloat, GLfloat); -#define CALL_Vertex3f(disp, parameters) \ - (* GET_Vertex3f(disp)) parameters -static INLINE _glptr_Vertex3f GET_Vertex3f(struct _glapi_table *disp) { - return (_glptr_Vertex3f) (GET_by_offset(disp, _gloffset_Vertex3f)); -} - -static INLINE void SET_Vertex3f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_Vertex3f, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex3fv)(const GLfloat *); -#define CALL_Vertex3fv(disp, parameters) \ - (* GET_Vertex3fv(disp)) parameters -static INLINE _glptr_Vertex3fv GET_Vertex3fv(struct _glapi_table *disp) { - return (_glptr_Vertex3fv) (GET_by_offset(disp, _gloffset_Vertex3fv)); -} - -static INLINE void SET_Vertex3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_Vertex3fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex3i)(GLint, GLint, GLint); -#define CALL_Vertex3i(disp, parameters) \ - (* GET_Vertex3i(disp)) parameters -static INLINE _glptr_Vertex3i GET_Vertex3i(struct _glapi_table *disp) { - return (_glptr_Vertex3i) (GET_by_offset(disp, _gloffset_Vertex3i)); -} - -static INLINE void SET_Vertex3i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_Vertex3i, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex3iv)(const GLint *); -#define CALL_Vertex3iv(disp, parameters) \ - (* GET_Vertex3iv(disp)) parameters -static INLINE _glptr_Vertex3iv GET_Vertex3iv(struct _glapi_table *disp) { - return (_glptr_Vertex3iv) (GET_by_offset(disp, _gloffset_Vertex3iv)); -} - -static INLINE void SET_Vertex3iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_Vertex3iv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex3s)(GLshort, GLshort, GLshort); -#define CALL_Vertex3s(disp, parameters) \ - (* GET_Vertex3s(disp)) parameters -static INLINE _glptr_Vertex3s GET_Vertex3s(struct _glapi_table *disp) { - return (_glptr_Vertex3s) (GET_by_offset(disp, _gloffset_Vertex3s)); -} - -static INLINE void SET_Vertex3s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_Vertex3s, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex3sv)(const GLshort *); -#define CALL_Vertex3sv(disp, parameters) \ - (* GET_Vertex3sv(disp)) parameters -static INLINE _glptr_Vertex3sv GET_Vertex3sv(struct _glapi_table *disp) { - return (_glptr_Vertex3sv) (GET_by_offset(disp, _gloffset_Vertex3sv)); -} - -static INLINE void SET_Vertex3sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_Vertex3sv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex4d)(GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_Vertex4d(disp, parameters) \ - (* GET_Vertex4d(disp)) parameters -static INLINE _glptr_Vertex4d GET_Vertex4d(struct _glapi_table *disp) { - return (_glptr_Vertex4d) (GET_by_offset(disp, _gloffset_Vertex4d)); -} - -static INLINE void SET_Vertex4d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_Vertex4d, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex4dv)(const GLdouble *); -#define CALL_Vertex4dv(disp, parameters) \ - (* GET_Vertex4dv(disp)) parameters -static INLINE _glptr_Vertex4dv GET_Vertex4dv(struct _glapi_table *disp) { - return (_glptr_Vertex4dv) (GET_by_offset(disp, _gloffset_Vertex4dv)); -} - -static INLINE void SET_Vertex4dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_Vertex4dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex4f)(GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_Vertex4f(disp, parameters) \ - (* GET_Vertex4f(disp)) parameters -static INLINE _glptr_Vertex4f GET_Vertex4f(struct _glapi_table *disp) { - return (_glptr_Vertex4f) (GET_by_offset(disp, _gloffset_Vertex4f)); -} - -static INLINE void SET_Vertex4f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_Vertex4f, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex4fv)(const GLfloat *); -#define CALL_Vertex4fv(disp, parameters) \ - (* GET_Vertex4fv(disp)) parameters -static INLINE _glptr_Vertex4fv GET_Vertex4fv(struct _glapi_table *disp) { - return (_glptr_Vertex4fv) (GET_by_offset(disp, _gloffset_Vertex4fv)); -} - -static INLINE void SET_Vertex4fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_Vertex4fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex4i)(GLint, GLint, GLint, GLint); -#define CALL_Vertex4i(disp, parameters) \ - (* GET_Vertex4i(disp)) parameters -static INLINE _glptr_Vertex4i GET_Vertex4i(struct _glapi_table *disp) { - return (_glptr_Vertex4i) (GET_by_offset(disp, _gloffset_Vertex4i)); -} - -static INLINE void SET_Vertex4i(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_Vertex4i, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex4iv)(const GLint *); -#define CALL_Vertex4iv(disp, parameters) \ - (* GET_Vertex4iv(disp)) parameters -static INLINE _glptr_Vertex4iv GET_Vertex4iv(struct _glapi_table *disp) { - return (_glptr_Vertex4iv) (GET_by_offset(disp, _gloffset_Vertex4iv)); -} - -static INLINE void SET_Vertex4iv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_Vertex4iv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex4s)(GLshort, GLshort, GLshort, GLshort); -#define CALL_Vertex4s(disp, parameters) \ - (* GET_Vertex4s(disp)) parameters -static INLINE _glptr_Vertex4s GET_Vertex4s(struct _glapi_table *disp) { - return (_glptr_Vertex4s) (GET_by_offset(disp, _gloffset_Vertex4s)); -} - -static INLINE void SET_Vertex4s(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_Vertex4s, fn); -} - -typedef void (GLAPIENTRYP _glptr_Vertex4sv)(const GLshort *); -#define CALL_Vertex4sv(disp, parameters) \ - (* GET_Vertex4sv(disp)) parameters -static INLINE _glptr_Vertex4sv GET_Vertex4sv(struct _glapi_table *disp) { - return (_glptr_Vertex4sv) (GET_by_offset(disp, _gloffset_Vertex4sv)); -} - -static INLINE void SET_Vertex4sv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_Vertex4sv, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClipPlane)(GLenum, const GLdouble *); -#define CALL_ClipPlane(disp, parameters) \ - (* GET_ClipPlane(disp)) parameters -static INLINE _glptr_ClipPlane GET_ClipPlane(struct _glapi_table *disp) { - return (_glptr_ClipPlane) (GET_by_offset(disp, _gloffset_ClipPlane)); -} - -static INLINE void SET_ClipPlane(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLdouble *)) { - SET_by_offset(disp, _gloffset_ClipPlane, fn); -} - -typedef void (GLAPIENTRYP _glptr_ColorMaterial)(GLenum, GLenum); -#define CALL_ColorMaterial(disp, parameters) \ - (* GET_ColorMaterial(disp)) parameters -static INLINE _glptr_ColorMaterial GET_ColorMaterial(struct _glapi_table *disp) { - return (_glptr_ColorMaterial) (GET_by_offset(disp, _gloffset_ColorMaterial)); -} - -static INLINE void SET_ColorMaterial(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_ColorMaterial, fn); -} - -typedef void (GLAPIENTRYP _glptr_CullFace)(GLenum); -#define CALL_CullFace(disp, parameters) \ - (* GET_CullFace(disp)) parameters -static INLINE _glptr_CullFace GET_CullFace(struct _glapi_table *disp) { - return (_glptr_CullFace) (GET_by_offset(disp, _gloffset_CullFace)); -} - -static INLINE void SET_CullFace(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_CullFace, fn); -} - -typedef void (GLAPIENTRYP _glptr_Fogf)(GLenum, GLfloat); -#define CALL_Fogf(disp, parameters) \ - (* GET_Fogf(disp)) parameters -static INLINE _glptr_Fogf GET_Fogf(struct _glapi_table *disp) { - return (_glptr_Fogf) (GET_by_offset(disp, _gloffset_Fogf)); -} - -static INLINE void SET_Fogf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_Fogf, fn); -} - -typedef void (GLAPIENTRYP _glptr_Fogfv)(GLenum, const GLfloat *); -#define CALL_Fogfv(disp, parameters) \ - (* GET_Fogfv(disp)) parameters -static INLINE _glptr_Fogfv GET_Fogfv(struct _glapi_table *disp) { - return (_glptr_Fogfv) (GET_by_offset(disp, _gloffset_Fogfv)); -} - -static INLINE void SET_Fogfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_Fogfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Fogi)(GLenum, GLint); -#define CALL_Fogi(disp, parameters) \ - (* GET_Fogi(disp)) parameters -static INLINE _glptr_Fogi GET_Fogi(struct _glapi_table *disp) { - return (_glptr_Fogi) (GET_by_offset(disp, _gloffset_Fogi)); -} - -static INLINE void SET_Fogi(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { - SET_by_offset(disp, _gloffset_Fogi, fn); -} - -typedef void (GLAPIENTRYP _glptr_Fogiv)(GLenum, const GLint *); -#define CALL_Fogiv(disp, parameters) \ - (* GET_Fogiv(disp)) parameters -static INLINE _glptr_Fogiv GET_Fogiv(struct _glapi_table *disp) { - return (_glptr_Fogiv) (GET_by_offset(disp, _gloffset_Fogiv)); -} - -static INLINE void SET_Fogiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_Fogiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_FrontFace)(GLenum); -#define CALL_FrontFace(disp, parameters) \ - (* GET_FrontFace(disp)) parameters -static INLINE _glptr_FrontFace GET_FrontFace(struct _glapi_table *disp) { - return (_glptr_FrontFace) (GET_by_offset(disp, _gloffset_FrontFace)); -} - -static INLINE void SET_FrontFace(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_FrontFace, fn); -} - -typedef void (GLAPIENTRYP _glptr_Hint)(GLenum, GLenum); -#define CALL_Hint(disp, parameters) \ - (* GET_Hint(disp)) parameters -static INLINE _glptr_Hint GET_Hint(struct _glapi_table *disp) { - return (_glptr_Hint) (GET_by_offset(disp, _gloffset_Hint)); -} - -static INLINE void SET_Hint(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_Hint, fn); -} - -typedef void (GLAPIENTRYP _glptr_Lightf)(GLenum, GLenum, GLfloat); -#define CALL_Lightf(disp, parameters) \ - (* GET_Lightf(disp)) parameters -static INLINE _glptr_Lightf GET_Lightf(struct _glapi_table *disp) { - return (_glptr_Lightf) (GET_by_offset(disp, _gloffset_Lightf)); -} - -static INLINE void SET_Lightf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_Lightf, fn); -} - -typedef void (GLAPIENTRYP _glptr_Lightfv)(GLenum, GLenum, const GLfloat *); -#define CALL_Lightfv(disp, parameters) \ - (* GET_Lightfv(disp)) parameters -static INLINE _glptr_Lightfv GET_Lightfv(struct _glapi_table *disp) { - return (_glptr_Lightfv) (GET_by_offset(disp, _gloffset_Lightfv)); -} - -static INLINE void SET_Lightfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_Lightfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Lighti)(GLenum, GLenum, GLint); -#define CALL_Lighti(disp, parameters) \ - (* GET_Lighti(disp)) parameters -static INLINE _glptr_Lighti GET_Lighti(struct _glapi_table *disp) { - return (_glptr_Lighti) (GET_by_offset(disp, _gloffset_Lighti)); -} - -static INLINE void SET_Lighti(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { - SET_by_offset(disp, _gloffset_Lighti, fn); -} - -typedef void (GLAPIENTRYP _glptr_Lightiv)(GLenum, GLenum, const GLint *); -#define CALL_Lightiv(disp, parameters) \ - (* GET_Lightiv(disp)) parameters -static INLINE _glptr_Lightiv GET_Lightiv(struct _glapi_table *disp) { - return (_glptr_Lightiv) (GET_by_offset(disp, _gloffset_Lightiv)); -} - -static INLINE void SET_Lightiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_Lightiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_LightModelf)(GLenum, GLfloat); -#define CALL_LightModelf(disp, parameters) \ - (* GET_LightModelf(disp)) parameters -static INLINE _glptr_LightModelf GET_LightModelf(struct _glapi_table *disp) { - return (_glptr_LightModelf) (GET_by_offset(disp, _gloffset_LightModelf)); -} - -static INLINE void SET_LightModelf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_LightModelf, fn); -} - -typedef void (GLAPIENTRYP _glptr_LightModelfv)(GLenum, const GLfloat *); -#define CALL_LightModelfv(disp, parameters) \ - (* GET_LightModelfv(disp)) parameters -static INLINE _glptr_LightModelfv GET_LightModelfv(struct _glapi_table *disp) { - return (_glptr_LightModelfv) (GET_by_offset(disp, _gloffset_LightModelfv)); -} - -static INLINE void SET_LightModelfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_LightModelfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_LightModeli)(GLenum, GLint); -#define CALL_LightModeli(disp, parameters) \ - (* GET_LightModeli(disp)) parameters -static INLINE _glptr_LightModeli GET_LightModeli(struct _glapi_table *disp) { - return (_glptr_LightModeli) (GET_by_offset(disp, _gloffset_LightModeli)); -} - -static INLINE void SET_LightModeli(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { - SET_by_offset(disp, _gloffset_LightModeli, fn); -} - -typedef void (GLAPIENTRYP _glptr_LightModeliv)(GLenum, const GLint *); -#define CALL_LightModeliv(disp, parameters) \ - (* GET_LightModeliv(disp)) parameters -static INLINE _glptr_LightModeliv GET_LightModeliv(struct _glapi_table *disp) { - return (_glptr_LightModeliv) (GET_by_offset(disp, _gloffset_LightModeliv)); -} - -static INLINE void SET_LightModeliv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_LightModeliv, fn); -} - -typedef void (GLAPIENTRYP _glptr_LineStipple)(GLint, GLushort); -#define CALL_LineStipple(disp, parameters) \ - (* GET_LineStipple(disp)) parameters -static INLINE _glptr_LineStipple GET_LineStipple(struct _glapi_table *disp) { - return (_glptr_LineStipple) (GET_by_offset(disp, _gloffset_LineStipple)); -} - -static INLINE void SET_LineStipple(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLushort)) { - SET_by_offset(disp, _gloffset_LineStipple, fn); -} - -typedef void (GLAPIENTRYP _glptr_LineWidth)(GLfloat); -#define CALL_LineWidth(disp, parameters) \ - (* GET_LineWidth(disp)) parameters -static INLINE _glptr_LineWidth GET_LineWidth(struct _glapi_table *disp) { - return (_glptr_LineWidth) (GET_by_offset(disp, _gloffset_LineWidth)); -} - -static INLINE void SET_LineWidth(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { - SET_by_offset(disp, _gloffset_LineWidth, fn); -} - -typedef void (GLAPIENTRYP _glptr_Materialf)(GLenum, GLenum, GLfloat); -#define CALL_Materialf(disp, parameters) \ - (* GET_Materialf(disp)) parameters -static INLINE _glptr_Materialf GET_Materialf(struct _glapi_table *disp) { - return (_glptr_Materialf) (GET_by_offset(disp, _gloffset_Materialf)); -} - -static INLINE void SET_Materialf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_Materialf, fn); -} - -typedef void (GLAPIENTRYP _glptr_Materialfv)(GLenum, GLenum, const GLfloat *); -#define CALL_Materialfv(disp, parameters) \ - (* GET_Materialfv(disp)) parameters -static INLINE _glptr_Materialfv GET_Materialfv(struct _glapi_table *disp) { - return (_glptr_Materialfv) (GET_by_offset(disp, _gloffset_Materialfv)); -} - -static INLINE void SET_Materialfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_Materialfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Materiali)(GLenum, GLenum, GLint); -#define CALL_Materiali(disp, parameters) \ - (* GET_Materiali(disp)) parameters -static INLINE _glptr_Materiali GET_Materiali(struct _glapi_table *disp) { - return (_glptr_Materiali) (GET_by_offset(disp, _gloffset_Materiali)); -} - -static INLINE void SET_Materiali(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { - SET_by_offset(disp, _gloffset_Materiali, fn); -} - -typedef void (GLAPIENTRYP _glptr_Materialiv)(GLenum, GLenum, const GLint *); -#define CALL_Materialiv(disp, parameters) \ - (* GET_Materialiv(disp)) parameters -static INLINE _glptr_Materialiv GET_Materialiv(struct _glapi_table *disp) { - return (_glptr_Materialiv) (GET_by_offset(disp, _gloffset_Materialiv)); -} - -static INLINE void SET_Materialiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_Materialiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_PointSize)(GLfloat); -#define CALL_PointSize(disp, parameters) \ - (* GET_PointSize(disp)) parameters -static INLINE _glptr_PointSize GET_PointSize(struct _glapi_table *disp) { - return (_glptr_PointSize) (GET_by_offset(disp, _gloffset_PointSize)); -} - -static INLINE void SET_PointSize(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { - SET_by_offset(disp, _gloffset_PointSize, fn); -} - -typedef void (GLAPIENTRYP _glptr_PolygonMode)(GLenum, GLenum); -#define CALL_PolygonMode(disp, parameters) \ - (* GET_PolygonMode(disp)) parameters -static INLINE _glptr_PolygonMode GET_PolygonMode(struct _glapi_table *disp) { - return (_glptr_PolygonMode) (GET_by_offset(disp, _gloffset_PolygonMode)); -} - -static INLINE void SET_PolygonMode(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_PolygonMode, fn); -} - -typedef void (GLAPIENTRYP _glptr_PolygonStipple)(const GLubyte *); -#define CALL_PolygonStipple(disp, parameters) \ - (* GET_PolygonStipple(disp)) parameters -static INLINE _glptr_PolygonStipple GET_PolygonStipple(struct _glapi_table *disp) { - return (_glptr_PolygonStipple) (GET_by_offset(disp, _gloffset_PolygonStipple)); -} - -static INLINE void SET_PolygonStipple(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLubyte *)) { - SET_by_offset(disp, _gloffset_PolygonStipple, fn); -} - -typedef void (GLAPIENTRYP _glptr_Scissor)(GLint, GLint, GLsizei, GLsizei); -#define CALL_Scissor(disp, parameters) \ - (* GET_Scissor(disp)) parameters -static INLINE _glptr_Scissor GET_Scissor(struct _glapi_table *disp) { - return (_glptr_Scissor) (GET_by_offset(disp, _gloffset_Scissor)); -} - -static INLINE void SET_Scissor(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLsizei, GLsizei)) { - SET_by_offset(disp, _gloffset_Scissor, fn); -} - -typedef void (GLAPIENTRYP _glptr_ShadeModel)(GLenum); -#define CALL_ShadeModel(disp, parameters) \ - (* GET_ShadeModel(disp)) parameters -static INLINE _glptr_ShadeModel GET_ShadeModel(struct _glapi_table *disp) { - return (_glptr_ShadeModel) (GET_by_offset(disp, _gloffset_ShadeModel)); -} - -static INLINE void SET_ShadeModel(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_ShadeModel, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexParameterf)(GLenum, GLenum, GLfloat); -#define CALL_TexParameterf(disp, parameters) \ - (* GET_TexParameterf(disp)) parameters -static INLINE _glptr_TexParameterf GET_TexParameterf(struct _glapi_table *disp) { - return (_glptr_TexParameterf) (GET_by_offset(disp, _gloffset_TexParameterf)); -} - -static INLINE void SET_TexParameterf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_TexParameterf, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexParameterfv)(GLenum, GLenum, const GLfloat *); -#define CALL_TexParameterfv(disp, parameters) \ - (* GET_TexParameterfv(disp)) parameters -static INLINE _glptr_TexParameterfv GET_TexParameterfv(struct _glapi_table *disp) { - return (_glptr_TexParameterfv) (GET_by_offset(disp, _gloffset_TexParameterfv)); -} - -static INLINE void SET_TexParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_TexParameterfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexParameteri)(GLenum, GLenum, GLint); -#define CALL_TexParameteri(disp, parameters) \ - (* GET_TexParameteri(disp)) parameters -static INLINE _glptr_TexParameteri GET_TexParameteri(struct _glapi_table *disp) { - return (_glptr_TexParameteri) (GET_by_offset(disp, _gloffset_TexParameteri)); -} - -static INLINE void SET_TexParameteri(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { - SET_by_offset(disp, _gloffset_TexParameteri, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexParameteriv)(GLenum, GLenum, const GLint *); -#define CALL_TexParameteriv(disp, parameters) \ - (* GET_TexParameteriv(disp)) parameters -static INLINE _glptr_TexParameteriv GET_TexParameteriv(struct _glapi_table *disp) { - return (_glptr_TexParameteriv) (GET_by_offset(disp, _gloffset_TexParameteriv)); -} - -static INLINE void SET_TexParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_TexParameteriv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexImage1D)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -#define CALL_TexImage1D(disp, parameters) \ - (* GET_TexImage1D(disp)) parameters -static INLINE _glptr_TexImage1D GET_TexImage1D(struct _glapi_table *disp) { - return (_glptr_TexImage1D) (GET_by_offset(disp, _gloffset_TexImage1D)); -} - -static INLINE void SET_TexImage1D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_TexImage1D, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexImage2D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -#define CALL_TexImage2D(disp, parameters) \ - (* GET_TexImage2D(disp)) parameters -static INLINE _glptr_TexImage2D GET_TexImage2D(struct _glapi_table *disp) { - return (_glptr_TexImage2D) (GET_by_offset(disp, _gloffset_TexImage2D)); -} - -static INLINE void SET_TexImage2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_TexImage2D, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexEnvf)(GLenum, GLenum, GLfloat); -#define CALL_TexEnvf(disp, parameters) \ - (* GET_TexEnvf(disp)) parameters -static INLINE _glptr_TexEnvf GET_TexEnvf(struct _glapi_table *disp) { - return (_glptr_TexEnvf) (GET_by_offset(disp, _gloffset_TexEnvf)); -} - -static INLINE void SET_TexEnvf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_TexEnvf, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexEnvfv)(GLenum, GLenum, const GLfloat *); -#define CALL_TexEnvfv(disp, parameters) \ - (* GET_TexEnvfv(disp)) parameters -static INLINE _glptr_TexEnvfv GET_TexEnvfv(struct _glapi_table *disp) { - return (_glptr_TexEnvfv) (GET_by_offset(disp, _gloffset_TexEnvfv)); -} - -static INLINE void SET_TexEnvfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_TexEnvfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexEnvi)(GLenum, GLenum, GLint); -#define CALL_TexEnvi(disp, parameters) \ - (* GET_TexEnvi(disp)) parameters -static INLINE _glptr_TexEnvi GET_TexEnvi(struct _glapi_table *disp) { - return (_glptr_TexEnvi) (GET_by_offset(disp, _gloffset_TexEnvi)); -} - -static INLINE void SET_TexEnvi(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { - SET_by_offset(disp, _gloffset_TexEnvi, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexEnviv)(GLenum, GLenum, const GLint *); -#define CALL_TexEnviv(disp, parameters) \ - (* GET_TexEnviv(disp)) parameters -static INLINE _glptr_TexEnviv GET_TexEnviv(struct _glapi_table *disp) { - return (_glptr_TexEnviv) (GET_by_offset(disp, _gloffset_TexEnviv)); -} - -static INLINE void SET_TexEnviv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_TexEnviv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexGend)(GLenum, GLenum, GLdouble); -#define CALL_TexGend(disp, parameters) \ - (* GET_TexGend(disp)) parameters -static INLINE _glptr_TexGend GET_TexGend(struct _glapi_table *disp) { - return (_glptr_TexGend) (GET_by_offset(disp, _gloffset_TexGend)); -} - -static INLINE void SET_TexGend(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLdouble)) { - SET_by_offset(disp, _gloffset_TexGend, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexGendv)(GLenum, GLenum, const GLdouble *); -#define CALL_TexGendv(disp, parameters) \ - (* GET_TexGendv(disp)) parameters -static INLINE _glptr_TexGendv GET_TexGendv(struct _glapi_table *disp) { - return (_glptr_TexGendv) (GET_by_offset(disp, _gloffset_TexGendv)); -} - -static INLINE void SET_TexGendv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLdouble *)) { - SET_by_offset(disp, _gloffset_TexGendv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexGenf)(GLenum, GLenum, GLfloat); -#define CALL_TexGenf(disp, parameters) \ - (* GET_TexGenf(disp)) parameters -static INLINE _glptr_TexGenf GET_TexGenf(struct _glapi_table *disp) { - return (_glptr_TexGenf) (GET_by_offset(disp, _gloffset_TexGenf)); -} - -static INLINE void SET_TexGenf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_TexGenf, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexGenfv)(GLenum, GLenum, const GLfloat *); -#define CALL_TexGenfv(disp, parameters) \ - (* GET_TexGenfv(disp)) parameters -static INLINE _glptr_TexGenfv GET_TexGenfv(struct _glapi_table *disp) { - return (_glptr_TexGenfv) (GET_by_offset(disp, _gloffset_TexGenfv)); -} - -static INLINE void SET_TexGenfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_TexGenfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexGeni)(GLenum, GLenum, GLint); -#define CALL_TexGeni(disp, parameters) \ - (* GET_TexGeni(disp)) parameters -static INLINE _glptr_TexGeni GET_TexGeni(struct _glapi_table *disp) { - return (_glptr_TexGeni) (GET_by_offset(disp, _gloffset_TexGeni)); -} - -static INLINE void SET_TexGeni(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { - SET_by_offset(disp, _gloffset_TexGeni, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexGeniv)(GLenum, GLenum, const GLint *); -#define CALL_TexGeniv(disp, parameters) \ - (* GET_TexGeniv(disp)) parameters -static INLINE _glptr_TexGeniv GET_TexGeniv(struct _glapi_table *disp) { - return (_glptr_TexGeniv) (GET_by_offset(disp, _gloffset_TexGeniv)); -} - -static INLINE void SET_TexGeniv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_TexGeniv, fn); -} - -typedef void (GLAPIENTRYP _glptr_FeedbackBuffer)(GLsizei, GLenum, GLfloat *); -#define CALL_FeedbackBuffer(disp, parameters) \ - (* GET_FeedbackBuffer(disp)) parameters -static INLINE _glptr_FeedbackBuffer GET_FeedbackBuffer(struct _glapi_table *disp) { - return (_glptr_FeedbackBuffer) (GET_by_offset(disp, _gloffset_FeedbackBuffer)); -} - -static INLINE void SET_FeedbackBuffer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_FeedbackBuffer, fn); -} - -typedef void (GLAPIENTRYP _glptr_SelectBuffer)(GLsizei, GLuint *); -#define CALL_SelectBuffer(disp, parameters) \ - (* GET_SelectBuffer(disp)) parameters -static INLINE _glptr_SelectBuffer GET_SelectBuffer(struct _glapi_table *disp) { - return (_glptr_SelectBuffer) (GET_by_offset(disp, _gloffset_SelectBuffer)); -} - -static INLINE void SET_SelectBuffer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_SelectBuffer, fn); -} - -typedef GLint (GLAPIENTRYP _glptr_RenderMode)(GLenum); -#define CALL_RenderMode(disp, parameters) \ - (* GET_RenderMode(disp)) parameters -static INLINE _glptr_RenderMode GET_RenderMode(struct _glapi_table *disp) { - return (_glptr_RenderMode) (GET_by_offset(disp, _gloffset_RenderMode)); -} - -static INLINE void SET_RenderMode(struct _glapi_table *disp, GLint (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_RenderMode, fn); -} - -typedef void (GLAPIENTRYP _glptr_InitNames)(void); -#define CALL_InitNames(disp, parameters) \ - (* GET_InitNames(disp)) parameters -static INLINE _glptr_InitNames GET_InitNames(struct _glapi_table *disp) { - return (_glptr_InitNames) (GET_by_offset(disp, _gloffset_InitNames)); -} - -static INLINE void SET_InitNames(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_InitNames, fn); -} - -typedef void (GLAPIENTRYP _glptr_LoadName)(GLuint); -#define CALL_LoadName(disp, parameters) \ - (* GET_LoadName(disp)) parameters -static INLINE _glptr_LoadName GET_LoadName(struct _glapi_table *disp) { - return (_glptr_LoadName) (GET_by_offset(disp, _gloffset_LoadName)); -} - -static INLINE void SET_LoadName(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_LoadName, fn); -} - -typedef void (GLAPIENTRYP _glptr_PassThrough)(GLfloat); -#define CALL_PassThrough(disp, parameters) \ - (* GET_PassThrough(disp)) parameters -static INLINE _glptr_PassThrough GET_PassThrough(struct _glapi_table *disp) { - return (_glptr_PassThrough) (GET_by_offset(disp, _gloffset_PassThrough)); -} - -static INLINE void SET_PassThrough(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { - SET_by_offset(disp, _gloffset_PassThrough, fn); -} - -typedef void (GLAPIENTRYP _glptr_PopName)(void); -#define CALL_PopName(disp, parameters) \ - (* GET_PopName(disp)) parameters -static INLINE _glptr_PopName GET_PopName(struct _glapi_table *disp) { - return (_glptr_PopName) (GET_by_offset(disp, _gloffset_PopName)); -} - -static INLINE void SET_PopName(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_PopName, fn); -} - -typedef void (GLAPIENTRYP _glptr_PushName)(GLuint); -#define CALL_PushName(disp, parameters) \ - (* GET_PushName(disp)) parameters -static INLINE _glptr_PushName GET_PushName(struct _glapi_table *disp) { - return (_glptr_PushName) (GET_by_offset(disp, _gloffset_PushName)); -} - -static INLINE void SET_PushName(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_PushName, fn); -} - -typedef void (GLAPIENTRYP _glptr_DrawBuffer)(GLenum); -#define CALL_DrawBuffer(disp, parameters) \ - (* GET_DrawBuffer(disp)) parameters -static INLINE _glptr_DrawBuffer GET_DrawBuffer(struct _glapi_table *disp) { - return (_glptr_DrawBuffer) (GET_by_offset(disp, _gloffset_DrawBuffer)); -} - -static INLINE void SET_DrawBuffer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_DrawBuffer, fn); -} - -typedef void (GLAPIENTRYP _glptr_Clear)(GLbitfield); -#define CALL_Clear(disp, parameters) \ - (* GET_Clear(disp)) parameters -static INLINE _glptr_Clear GET_Clear(struct _glapi_table *disp) { - return (_glptr_Clear) (GET_by_offset(disp, _gloffset_Clear)); -} - -static INLINE void SET_Clear(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbitfield)) { - SET_by_offset(disp, _gloffset_Clear, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClearAccum)(GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_ClearAccum(disp, parameters) \ - (* GET_ClearAccum(disp)) parameters -static INLINE _glptr_ClearAccum GET_ClearAccum(struct _glapi_table *disp) { - return (_glptr_ClearAccum) (GET_by_offset(disp, _gloffset_ClearAccum)); -} - -static INLINE void SET_ClearAccum(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_ClearAccum, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClearIndex)(GLfloat); -#define CALL_ClearIndex(disp, parameters) \ - (* GET_ClearIndex(disp)) parameters -static INLINE _glptr_ClearIndex GET_ClearIndex(struct _glapi_table *disp) { - return (_glptr_ClearIndex) (GET_by_offset(disp, _gloffset_ClearIndex)); -} - -static INLINE void SET_ClearIndex(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { - SET_by_offset(disp, _gloffset_ClearIndex, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClearColor)(GLclampf, GLclampf, GLclampf, GLclampf); -#define CALL_ClearColor(disp, parameters) \ - (* GET_ClearColor(disp)) parameters -static INLINE _glptr_ClearColor GET_ClearColor(struct _glapi_table *disp) { - return (_glptr_ClearColor) (GET_by_offset(disp, _gloffset_ClearColor)); -} - -static INLINE void SET_ClearColor(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampf, GLclampf, GLclampf, GLclampf)) { - SET_by_offset(disp, _gloffset_ClearColor, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClearStencil)(GLint); -#define CALL_ClearStencil(disp, parameters) \ - (* GET_ClearStencil(disp)) parameters -static INLINE _glptr_ClearStencil GET_ClearStencil(struct _glapi_table *disp) { - return (_glptr_ClearStencil) (GET_by_offset(disp, _gloffset_ClearStencil)); -} - -static INLINE void SET_ClearStencil(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint)) { - SET_by_offset(disp, _gloffset_ClearStencil, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClearDepth)(GLclampd); -#define CALL_ClearDepth(disp, parameters) \ - (* GET_ClearDepth(disp)) parameters -static INLINE _glptr_ClearDepth GET_ClearDepth(struct _glapi_table *disp) { - return (_glptr_ClearDepth) (GET_by_offset(disp, _gloffset_ClearDepth)); -} - -static INLINE void SET_ClearDepth(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampd)) { - SET_by_offset(disp, _gloffset_ClearDepth, fn); -} - -typedef void (GLAPIENTRYP _glptr_StencilMask)(GLuint); -#define CALL_StencilMask(disp, parameters) \ - (* GET_StencilMask(disp)) parameters -static INLINE _glptr_StencilMask GET_StencilMask(struct _glapi_table *disp) { - return (_glptr_StencilMask) (GET_by_offset(disp, _gloffset_StencilMask)); -} - -static INLINE void SET_StencilMask(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_StencilMask, fn); -} - -typedef void (GLAPIENTRYP _glptr_ColorMask)(GLboolean, GLboolean, GLboolean, GLboolean); -#define CALL_ColorMask(disp, parameters) \ - (* GET_ColorMask(disp)) parameters -static INLINE _glptr_ColorMask GET_ColorMask(struct _glapi_table *disp) { - return (_glptr_ColorMask) (GET_by_offset(disp, _gloffset_ColorMask)); -} - -static INLINE void SET_ColorMask(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLboolean, GLboolean, GLboolean, GLboolean)) { - SET_by_offset(disp, _gloffset_ColorMask, fn); -} - -typedef void (GLAPIENTRYP _glptr_DepthMask)(GLboolean); -#define CALL_DepthMask(disp, parameters) \ - (* GET_DepthMask(disp)) parameters -static INLINE _glptr_DepthMask GET_DepthMask(struct _glapi_table *disp) { - return (_glptr_DepthMask) (GET_by_offset(disp, _gloffset_DepthMask)); -} - -static INLINE void SET_DepthMask(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLboolean)) { - SET_by_offset(disp, _gloffset_DepthMask, fn); -} - -typedef void (GLAPIENTRYP _glptr_IndexMask)(GLuint); -#define CALL_IndexMask(disp, parameters) \ - (* GET_IndexMask(disp)) parameters -static INLINE _glptr_IndexMask GET_IndexMask(struct _glapi_table *disp) { - return (_glptr_IndexMask) (GET_by_offset(disp, _gloffset_IndexMask)); -} - -static INLINE void SET_IndexMask(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IndexMask, fn); -} - -typedef void (GLAPIENTRYP _glptr_Accum)(GLenum, GLfloat); -#define CALL_Accum(disp, parameters) \ - (* GET_Accum(disp)) parameters -static INLINE _glptr_Accum GET_Accum(struct _glapi_table *disp) { - return (_glptr_Accum) (GET_by_offset(disp, _gloffset_Accum)); -} - -static INLINE void SET_Accum(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_Accum, fn); -} - -typedef void (GLAPIENTRYP _glptr_Disable)(GLenum); -#define CALL_Disable(disp, parameters) \ - (* GET_Disable(disp)) parameters -static INLINE _glptr_Disable GET_Disable(struct _glapi_table *disp) { - return (_glptr_Disable) (GET_by_offset(disp, _gloffset_Disable)); -} - -static INLINE void SET_Disable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_Disable, fn); -} - -typedef void (GLAPIENTRYP _glptr_Enable)(GLenum); -#define CALL_Enable(disp, parameters) \ - (* GET_Enable(disp)) parameters -static INLINE _glptr_Enable GET_Enable(struct _glapi_table *disp) { - return (_glptr_Enable) (GET_by_offset(disp, _gloffset_Enable)); -} - -static INLINE void SET_Enable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_Enable, fn); -} - -typedef void (GLAPIENTRYP _glptr_Finish)(void); -#define CALL_Finish(disp, parameters) \ - (* GET_Finish(disp)) parameters -static INLINE _glptr_Finish GET_Finish(struct _glapi_table *disp) { - return (_glptr_Finish) (GET_by_offset(disp, _gloffset_Finish)); -} - -static INLINE void SET_Finish(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_Finish, fn); -} - -typedef void (GLAPIENTRYP _glptr_Flush)(void); -#define CALL_Flush(disp, parameters) \ - (* GET_Flush(disp)) parameters -static INLINE _glptr_Flush GET_Flush(struct _glapi_table *disp) { - return (_glptr_Flush) (GET_by_offset(disp, _gloffset_Flush)); -} - -static INLINE void SET_Flush(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_Flush, fn); -} - -typedef void (GLAPIENTRYP _glptr_PopAttrib)(void); -#define CALL_PopAttrib(disp, parameters) \ - (* GET_PopAttrib(disp)) parameters -static INLINE _glptr_PopAttrib GET_PopAttrib(struct _glapi_table *disp) { - return (_glptr_PopAttrib) (GET_by_offset(disp, _gloffset_PopAttrib)); -} - -static INLINE void SET_PopAttrib(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_PopAttrib, fn); -} - -typedef void (GLAPIENTRYP _glptr_PushAttrib)(GLbitfield); -#define CALL_PushAttrib(disp, parameters) \ - (* GET_PushAttrib(disp)) parameters -static INLINE _glptr_PushAttrib GET_PushAttrib(struct _glapi_table *disp) { - return (_glptr_PushAttrib) (GET_by_offset(disp, _gloffset_PushAttrib)); -} - -static INLINE void SET_PushAttrib(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbitfield)) { - SET_by_offset(disp, _gloffset_PushAttrib, fn); -} - -typedef void (GLAPIENTRYP _glptr_Map1d)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *); -#define CALL_Map1d(disp, parameters) \ - (* GET_Map1d(disp)) parameters -static INLINE _glptr_Map1d GET_Map1d(struct _glapi_table *disp) { - return (_glptr_Map1d) (GET_by_offset(disp, _gloffset_Map1d)); -} - -static INLINE void SET_Map1d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble, GLdouble, GLint, GLint, const GLdouble *)) { - SET_by_offset(disp, _gloffset_Map1d, fn); -} - -typedef void (GLAPIENTRYP _glptr_Map1f)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *); -#define CALL_Map1f(disp, parameters) \ - (* GET_Map1f(disp)) parameters -static INLINE _glptr_Map1f GET_Map1f(struct _glapi_table *disp) { - return (_glptr_Map1f) (GET_by_offset(disp, _gloffset_Map1f)); -} - -static INLINE void SET_Map1f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat, GLfloat, GLint, GLint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_Map1f, fn); -} - -typedef void (GLAPIENTRYP _glptr_Map2d)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *); -#define CALL_Map2d(disp, parameters) \ - (* GET_Map2d(disp)) parameters -static INLINE _glptr_Map2d GET_Map2d(struct _glapi_table *disp) { - return (_glptr_Map2d) (GET_by_offset(disp, _gloffset_Map2d)); -} - -static INLINE void SET_Map2d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble, GLdouble, GLint, GLint, GLdouble, GLdouble, GLint, GLint, const GLdouble *)) { - SET_by_offset(disp, _gloffset_Map2d, fn); -} - -typedef void (GLAPIENTRYP _glptr_Map2f)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *); -#define CALL_Map2f(disp, parameters) \ - (* GET_Map2f(disp)) parameters -static INLINE _glptr_Map2f GET_Map2f(struct _glapi_table *disp) { - return (_glptr_Map2f) (GET_by_offset(disp, _gloffset_Map2f)); -} - -static INLINE void SET_Map2f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat, GLfloat, GLint, GLint, GLfloat, GLfloat, GLint, GLint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_Map2f, fn); -} - -typedef void (GLAPIENTRYP _glptr_MapGrid1d)(GLint, GLdouble, GLdouble); -#define CALL_MapGrid1d(disp, parameters) \ - (* GET_MapGrid1d(disp)) parameters -static INLINE _glptr_MapGrid1d GET_MapGrid1d(struct _glapi_table *disp) { - return (_glptr_MapGrid1d) (GET_by_offset(disp, _gloffset_MapGrid1d)); -} - -static INLINE void SET_MapGrid1d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_MapGrid1d, fn); -} - -typedef void (GLAPIENTRYP _glptr_MapGrid1f)(GLint, GLfloat, GLfloat); -#define CALL_MapGrid1f(disp, parameters) \ - (* GET_MapGrid1f(disp)) parameters -static INLINE _glptr_MapGrid1f GET_MapGrid1f(struct _glapi_table *disp) { - return (_glptr_MapGrid1f) (GET_by_offset(disp, _gloffset_MapGrid1f)); -} - -static INLINE void SET_MapGrid1f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_MapGrid1f, fn); -} - -typedef void (GLAPIENTRYP _glptr_MapGrid2d)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble); -#define CALL_MapGrid2d(disp, parameters) \ - (* GET_MapGrid2d(disp)) parameters -static INLINE _glptr_MapGrid2d GET_MapGrid2d(struct _glapi_table *disp) { - return (_glptr_MapGrid2d) (GET_by_offset(disp, _gloffset_MapGrid2d)); -} - -static INLINE void SET_MapGrid2d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLdouble, GLdouble, GLint, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_MapGrid2d, fn); -} - -typedef void (GLAPIENTRYP _glptr_MapGrid2f)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat); -#define CALL_MapGrid2f(disp, parameters) \ - (* GET_MapGrid2f(disp)) parameters -static INLINE _glptr_MapGrid2f GET_MapGrid2f(struct _glapi_table *disp) { - return (_glptr_MapGrid2f) (GET_by_offset(disp, _gloffset_MapGrid2f)); -} - -static INLINE void SET_MapGrid2f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLfloat, GLfloat, GLint, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_MapGrid2f, fn); -} - -typedef void (GLAPIENTRYP _glptr_EvalCoord1d)(GLdouble); -#define CALL_EvalCoord1d(disp, parameters) \ - (* GET_EvalCoord1d(disp)) parameters -static INLINE _glptr_EvalCoord1d GET_EvalCoord1d(struct _glapi_table *disp) { - return (_glptr_EvalCoord1d) (GET_by_offset(disp, _gloffset_EvalCoord1d)); -} - -static INLINE void SET_EvalCoord1d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble)) { - SET_by_offset(disp, _gloffset_EvalCoord1d, fn); -} - -typedef void (GLAPIENTRYP _glptr_EvalCoord1dv)(const GLdouble *); -#define CALL_EvalCoord1dv(disp, parameters) \ - (* GET_EvalCoord1dv(disp)) parameters -static INLINE _glptr_EvalCoord1dv GET_EvalCoord1dv(struct _glapi_table *disp) { - return (_glptr_EvalCoord1dv) (GET_by_offset(disp, _gloffset_EvalCoord1dv)); -} - -static INLINE void SET_EvalCoord1dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_EvalCoord1dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_EvalCoord1f)(GLfloat); -#define CALL_EvalCoord1f(disp, parameters) \ - (* GET_EvalCoord1f(disp)) parameters -static INLINE _glptr_EvalCoord1f GET_EvalCoord1f(struct _glapi_table *disp) { - return (_glptr_EvalCoord1f) (GET_by_offset(disp, _gloffset_EvalCoord1f)); -} - -static INLINE void SET_EvalCoord1f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { - SET_by_offset(disp, _gloffset_EvalCoord1f, fn); -} - -typedef void (GLAPIENTRYP _glptr_EvalCoord1fv)(const GLfloat *); -#define CALL_EvalCoord1fv(disp, parameters) \ - (* GET_EvalCoord1fv(disp)) parameters -static INLINE _glptr_EvalCoord1fv GET_EvalCoord1fv(struct _glapi_table *disp) { - return (_glptr_EvalCoord1fv) (GET_by_offset(disp, _gloffset_EvalCoord1fv)); -} - -static INLINE void SET_EvalCoord1fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_EvalCoord1fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_EvalCoord2d)(GLdouble, GLdouble); -#define CALL_EvalCoord2d(disp, parameters) \ - (* GET_EvalCoord2d(disp)) parameters -static INLINE _glptr_EvalCoord2d GET_EvalCoord2d(struct _glapi_table *disp) { - return (_glptr_EvalCoord2d) (GET_by_offset(disp, _gloffset_EvalCoord2d)); -} - -static INLINE void SET_EvalCoord2d(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_EvalCoord2d, fn); -} - -typedef void (GLAPIENTRYP _glptr_EvalCoord2dv)(const GLdouble *); -#define CALL_EvalCoord2dv(disp, parameters) \ - (* GET_EvalCoord2dv(disp)) parameters -static INLINE _glptr_EvalCoord2dv GET_EvalCoord2dv(struct _glapi_table *disp) { - return (_glptr_EvalCoord2dv) (GET_by_offset(disp, _gloffset_EvalCoord2dv)); -} - -static INLINE void SET_EvalCoord2dv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_EvalCoord2dv, fn); -} - -typedef void (GLAPIENTRYP _glptr_EvalCoord2f)(GLfloat, GLfloat); -#define CALL_EvalCoord2f(disp, parameters) \ - (* GET_EvalCoord2f(disp)) parameters -static INLINE _glptr_EvalCoord2f GET_EvalCoord2f(struct _glapi_table *disp) { - return (_glptr_EvalCoord2f) (GET_by_offset(disp, _gloffset_EvalCoord2f)); -} - -static INLINE void SET_EvalCoord2f(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_EvalCoord2f, fn); -} - -typedef void (GLAPIENTRYP _glptr_EvalCoord2fv)(const GLfloat *); -#define CALL_EvalCoord2fv(disp, parameters) \ - (* GET_EvalCoord2fv(disp)) parameters -static INLINE _glptr_EvalCoord2fv GET_EvalCoord2fv(struct _glapi_table *disp) { - return (_glptr_EvalCoord2fv) (GET_by_offset(disp, _gloffset_EvalCoord2fv)); -} - -static INLINE void SET_EvalCoord2fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_EvalCoord2fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_EvalMesh1)(GLenum, GLint, GLint); -#define CALL_EvalMesh1(disp, parameters) \ - (* GET_EvalMesh1(disp)) parameters -static INLINE _glptr_EvalMesh1 GET_EvalMesh1(struct _glapi_table *disp) { - return (_glptr_EvalMesh1) (GET_by_offset(disp, _gloffset_EvalMesh1)); -} - -static INLINE void SET_EvalMesh1(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint)) { - SET_by_offset(disp, _gloffset_EvalMesh1, fn); -} - -typedef void (GLAPIENTRYP _glptr_EvalPoint1)(GLint); -#define CALL_EvalPoint1(disp, parameters) \ - (* GET_EvalPoint1(disp)) parameters -static INLINE _glptr_EvalPoint1 GET_EvalPoint1(struct _glapi_table *disp) { - return (_glptr_EvalPoint1) (GET_by_offset(disp, _gloffset_EvalPoint1)); -} - -static INLINE void SET_EvalPoint1(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint)) { - SET_by_offset(disp, _gloffset_EvalPoint1, fn); -} - -typedef void (GLAPIENTRYP _glptr_EvalMesh2)(GLenum, GLint, GLint, GLint, GLint); -#define CALL_EvalMesh2(disp, parameters) \ - (* GET_EvalMesh2(disp)) parameters -static INLINE _glptr_EvalMesh2 GET_EvalMesh2(struct _glapi_table *disp) { - return (_glptr_EvalMesh2) (GET_by_offset(disp, _gloffset_EvalMesh2)); -} - -static INLINE void SET_EvalMesh2(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_EvalMesh2, fn); -} - -typedef void (GLAPIENTRYP _glptr_EvalPoint2)(GLint, GLint); -#define CALL_EvalPoint2(disp, parameters) \ - (* GET_EvalPoint2(disp)) parameters -static INLINE _glptr_EvalPoint2 GET_EvalPoint2(struct _glapi_table *disp) { - return (_glptr_EvalPoint2) (GET_by_offset(disp, _gloffset_EvalPoint2)); -} - -static INLINE void SET_EvalPoint2(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint)) { - SET_by_offset(disp, _gloffset_EvalPoint2, fn); -} - -typedef void (GLAPIENTRYP _glptr_AlphaFunc)(GLenum, GLclampf); -#define CALL_AlphaFunc(disp, parameters) \ - (* GET_AlphaFunc(disp)) parameters -static INLINE _glptr_AlphaFunc GET_AlphaFunc(struct _glapi_table *disp) { - return (_glptr_AlphaFunc) (GET_by_offset(disp, _gloffset_AlphaFunc)); -} - -static INLINE void SET_AlphaFunc(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLclampf)) { - SET_by_offset(disp, _gloffset_AlphaFunc, fn); -} - -typedef void (GLAPIENTRYP _glptr_BlendFunc)(GLenum, GLenum); -#define CALL_BlendFunc(disp, parameters) \ - (* GET_BlendFunc(disp)) parameters -static INLINE _glptr_BlendFunc GET_BlendFunc(struct _glapi_table *disp) { - return (_glptr_BlendFunc) (GET_by_offset(disp, _gloffset_BlendFunc)); -} - -static INLINE void SET_BlendFunc(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_BlendFunc, fn); -} - -typedef void (GLAPIENTRYP _glptr_LogicOp)(GLenum); -#define CALL_LogicOp(disp, parameters) \ - (* GET_LogicOp(disp)) parameters -static INLINE _glptr_LogicOp GET_LogicOp(struct _glapi_table *disp) { - return (_glptr_LogicOp) (GET_by_offset(disp, _gloffset_LogicOp)); -} - -static INLINE void SET_LogicOp(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_LogicOp, fn); -} - -typedef void (GLAPIENTRYP _glptr_StencilFunc)(GLenum, GLint, GLuint); -#define CALL_StencilFunc(disp, parameters) \ - (* GET_StencilFunc(disp)) parameters -static INLINE _glptr_StencilFunc GET_StencilFunc(struct _glapi_table *disp) { - return (_glptr_StencilFunc) (GET_by_offset(disp, _gloffset_StencilFunc)); -} - -static INLINE void SET_StencilFunc(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLuint)) { - SET_by_offset(disp, _gloffset_StencilFunc, fn); -} - -typedef void (GLAPIENTRYP _glptr_StencilOp)(GLenum, GLenum, GLenum); -#define CALL_StencilOp(disp, parameters) \ - (* GET_StencilOp(disp)) parameters -static INLINE _glptr_StencilOp GET_StencilOp(struct _glapi_table *disp) { - return (_glptr_StencilOp) (GET_by_offset(disp, _gloffset_StencilOp)); -} - -static INLINE void SET_StencilOp(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_StencilOp, fn); -} - -typedef void (GLAPIENTRYP _glptr_DepthFunc)(GLenum); -#define CALL_DepthFunc(disp, parameters) \ - (* GET_DepthFunc(disp)) parameters -static INLINE _glptr_DepthFunc GET_DepthFunc(struct _glapi_table *disp) { - return (_glptr_DepthFunc) (GET_by_offset(disp, _gloffset_DepthFunc)); -} - -static INLINE void SET_DepthFunc(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_DepthFunc, fn); -} - -typedef void (GLAPIENTRYP _glptr_PixelZoom)(GLfloat, GLfloat); -#define CALL_PixelZoom(disp, parameters) \ - (* GET_PixelZoom(disp)) parameters -static INLINE _glptr_PixelZoom GET_PixelZoom(struct _glapi_table *disp) { - return (_glptr_PixelZoom) (GET_by_offset(disp, _gloffset_PixelZoom)); -} - -static INLINE void SET_PixelZoom(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_PixelZoom, fn); -} - -typedef void (GLAPIENTRYP _glptr_PixelTransferf)(GLenum, GLfloat); -#define CALL_PixelTransferf(disp, parameters) \ - (* GET_PixelTransferf(disp)) parameters -static INLINE _glptr_PixelTransferf GET_PixelTransferf(struct _glapi_table *disp) { - return (_glptr_PixelTransferf) (GET_by_offset(disp, _gloffset_PixelTransferf)); -} - -static INLINE void SET_PixelTransferf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_PixelTransferf, fn); -} - -typedef void (GLAPIENTRYP _glptr_PixelTransferi)(GLenum, GLint); -#define CALL_PixelTransferi(disp, parameters) \ - (* GET_PixelTransferi(disp)) parameters -static INLINE _glptr_PixelTransferi GET_PixelTransferi(struct _glapi_table *disp) { - return (_glptr_PixelTransferi) (GET_by_offset(disp, _gloffset_PixelTransferi)); -} - -static INLINE void SET_PixelTransferi(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { - SET_by_offset(disp, _gloffset_PixelTransferi, fn); -} - -typedef void (GLAPIENTRYP _glptr_PixelStoref)(GLenum, GLfloat); -#define CALL_PixelStoref(disp, parameters) \ - (* GET_PixelStoref(disp)) parameters -static INLINE _glptr_PixelStoref GET_PixelStoref(struct _glapi_table *disp) { - return (_glptr_PixelStoref) (GET_by_offset(disp, _gloffset_PixelStoref)); -} - -static INLINE void SET_PixelStoref(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_PixelStoref, fn); -} - -typedef void (GLAPIENTRYP _glptr_PixelStorei)(GLenum, GLint); -#define CALL_PixelStorei(disp, parameters) \ - (* GET_PixelStorei(disp)) parameters -static INLINE _glptr_PixelStorei GET_PixelStorei(struct _glapi_table *disp) { - return (_glptr_PixelStorei) (GET_by_offset(disp, _gloffset_PixelStorei)); -} - -static INLINE void SET_PixelStorei(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { - SET_by_offset(disp, _gloffset_PixelStorei, fn); -} - -typedef void (GLAPIENTRYP _glptr_PixelMapfv)(GLenum, GLsizei, const GLfloat *); -#define CALL_PixelMapfv(disp, parameters) \ - (* GET_PixelMapfv(disp)) parameters -static INLINE _glptr_PixelMapfv GET_PixelMapfv(struct _glapi_table *disp) { - return (_glptr_PixelMapfv) (GET_by_offset(disp, _gloffset_PixelMapfv)); -} - -static INLINE void SET_PixelMapfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLfloat *)) { - SET_by_offset(disp, _gloffset_PixelMapfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_PixelMapuiv)(GLenum, GLsizei, const GLuint *); -#define CALL_PixelMapuiv(disp, parameters) \ - (* GET_PixelMapuiv(disp)) parameters -static INLINE _glptr_PixelMapuiv GET_PixelMapuiv(struct _glapi_table *disp) { - return (_glptr_PixelMapuiv) (GET_by_offset(disp, _gloffset_PixelMapuiv)); -} - -static INLINE void SET_PixelMapuiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_PixelMapuiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_PixelMapusv)(GLenum, GLsizei, const GLushort *); -#define CALL_PixelMapusv(disp, parameters) \ - (* GET_PixelMapusv(disp)) parameters -static INLINE _glptr_PixelMapusv GET_PixelMapusv(struct _glapi_table *disp) { - return (_glptr_PixelMapusv) (GET_by_offset(disp, _gloffset_PixelMapusv)); -} - -static INLINE void SET_PixelMapusv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLushort *)) { - SET_by_offset(disp, _gloffset_PixelMapusv, fn); -} - -typedef void (GLAPIENTRYP _glptr_ReadBuffer)(GLenum); -#define CALL_ReadBuffer(disp, parameters) \ - (* GET_ReadBuffer(disp)) parameters -static INLINE _glptr_ReadBuffer GET_ReadBuffer(struct _glapi_table *disp) { - return (_glptr_ReadBuffer) (GET_by_offset(disp, _gloffset_ReadBuffer)); -} - -static INLINE void SET_ReadBuffer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_ReadBuffer, fn); -} - -typedef void (GLAPIENTRYP _glptr_CopyPixels)(GLint, GLint, GLsizei, GLsizei, GLenum); -#define CALL_CopyPixels(disp, parameters) \ - (* GET_CopyPixels(disp)) parameters -static INLINE _glptr_CopyPixels GET_CopyPixels(struct _glapi_table *disp) { - return (_glptr_CopyPixels) (GET_by_offset(disp, _gloffset_CopyPixels)); -} - -static INLINE void SET_CopyPixels(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLsizei, GLsizei, GLenum)) { - SET_by_offset(disp, _gloffset_CopyPixels, fn); -} - -typedef void (GLAPIENTRYP _glptr_ReadPixels)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *); -#define CALL_ReadPixels(disp, parameters) \ - (* GET_ReadPixels(disp)) parameters -static INLINE _glptr_ReadPixels GET_ReadPixels(struct _glapi_table *disp) { - return (_glptr_ReadPixels) (GET_by_offset(disp, _gloffset_ReadPixels)); -} - -static INLINE void SET_ReadPixels(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *)) { - SET_by_offset(disp, _gloffset_ReadPixels, fn); -} - -typedef void (GLAPIENTRYP _glptr_DrawPixels)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -#define CALL_DrawPixels(disp, parameters) \ - (* GET_DrawPixels(disp)) parameters -static INLINE _glptr_DrawPixels GET_DrawPixels(struct _glapi_table *disp) { - return (_glptr_DrawPixels) (GET_by_offset(disp, _gloffset_DrawPixels)); -} - -static INLINE void SET_DrawPixels(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLsizei, GLenum, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_DrawPixels, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetBooleanv)(GLenum, GLboolean *); -#define CALL_GetBooleanv(disp, parameters) \ - (* GET_GetBooleanv(disp)) parameters -static INLINE _glptr_GetBooleanv GET_GetBooleanv(struct _glapi_table *disp) { - return (_glptr_GetBooleanv) (GET_by_offset(disp, _gloffset_GetBooleanv)); -} - -static INLINE void SET_GetBooleanv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLboolean *)) { - SET_by_offset(disp, _gloffset_GetBooleanv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetClipPlane)(GLenum, GLdouble *); -#define CALL_GetClipPlane(disp, parameters) \ - (* GET_GetClipPlane(disp)) parameters -static INLINE _glptr_GetClipPlane GET_GetClipPlane(struct _glapi_table *disp) { - return (_glptr_GetClipPlane) (GET_by_offset(disp, _gloffset_GetClipPlane)); -} - -static INLINE void SET_GetClipPlane(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble *)) { - SET_by_offset(disp, _gloffset_GetClipPlane, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetDoublev)(GLenum, GLdouble *); -#define CALL_GetDoublev(disp, parameters) \ - (* GET_GetDoublev(disp)) parameters -static INLINE _glptr_GetDoublev GET_GetDoublev(struct _glapi_table *disp) { - return (_glptr_GetDoublev) (GET_by_offset(disp, _gloffset_GetDoublev)); -} - -static INLINE void SET_GetDoublev(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble *)) { - SET_by_offset(disp, _gloffset_GetDoublev, fn); -} - -typedef GLenum (GLAPIENTRYP _glptr_GetError)(void); -#define CALL_GetError(disp, parameters) \ - (* GET_GetError(disp)) parameters -static INLINE _glptr_GetError GET_GetError(struct _glapi_table *disp) { - return (_glptr_GetError) (GET_by_offset(disp, _gloffset_GetError)); -} - -static INLINE void SET_GetError(struct _glapi_table *disp, GLenum (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_GetError, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetFloatv)(GLenum, GLfloat *); -#define CALL_GetFloatv(disp, parameters) \ - (* GET_GetFloatv(disp)) parameters -static INLINE _glptr_GetFloatv GET_GetFloatv(struct _glapi_table *disp) { - return (_glptr_GetFloatv) (GET_by_offset(disp, _gloffset_GetFloatv)); -} - -static INLINE void SET_GetFloatv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetFloatv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetIntegerv)(GLenum, GLint *); -#define CALL_GetIntegerv(disp, parameters) \ - (* GET_GetIntegerv(disp)) parameters -static INLINE _glptr_GetIntegerv GET_GetIntegerv(struct _glapi_table *disp) { - return (_glptr_GetIntegerv) (GET_by_offset(disp, _gloffset_GetIntegerv)); -} - -static INLINE void SET_GetIntegerv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetIntegerv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetLightfv)(GLenum, GLenum, GLfloat *); -#define CALL_GetLightfv(disp, parameters) \ - (* GET_GetLightfv(disp)) parameters -static INLINE _glptr_GetLightfv GET_GetLightfv(struct _glapi_table *disp) { - return (_glptr_GetLightfv) (GET_by_offset(disp, _gloffset_GetLightfv)); -} - -static INLINE void SET_GetLightfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetLightfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetLightiv)(GLenum, GLenum, GLint *); -#define CALL_GetLightiv(disp, parameters) \ - (* GET_GetLightiv(disp)) parameters -static INLINE _glptr_GetLightiv GET_GetLightiv(struct _glapi_table *disp) { - return (_glptr_GetLightiv) (GET_by_offset(disp, _gloffset_GetLightiv)); -} - -static INLINE void SET_GetLightiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetLightiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetMapdv)(GLenum, GLenum, GLdouble *); -#define CALL_GetMapdv(disp, parameters) \ - (* GET_GetMapdv(disp)) parameters -static INLINE _glptr_GetMapdv GET_GetMapdv(struct _glapi_table *disp) { - return (_glptr_GetMapdv) (GET_by_offset(disp, _gloffset_GetMapdv)); -} - -static INLINE void SET_GetMapdv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLdouble *)) { - SET_by_offset(disp, _gloffset_GetMapdv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetMapfv)(GLenum, GLenum, GLfloat *); -#define CALL_GetMapfv(disp, parameters) \ - (* GET_GetMapfv(disp)) parameters -static INLINE _glptr_GetMapfv GET_GetMapfv(struct _glapi_table *disp) { - return (_glptr_GetMapfv) (GET_by_offset(disp, _gloffset_GetMapfv)); -} - -static INLINE void SET_GetMapfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetMapfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetMapiv)(GLenum, GLenum, GLint *); -#define CALL_GetMapiv(disp, parameters) \ - (* GET_GetMapiv(disp)) parameters -static INLINE _glptr_GetMapiv GET_GetMapiv(struct _glapi_table *disp) { - return (_glptr_GetMapiv) (GET_by_offset(disp, _gloffset_GetMapiv)); -} - -static INLINE void SET_GetMapiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetMapiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetMaterialfv)(GLenum, GLenum, GLfloat *); -#define CALL_GetMaterialfv(disp, parameters) \ - (* GET_GetMaterialfv(disp)) parameters -static INLINE _glptr_GetMaterialfv GET_GetMaterialfv(struct _glapi_table *disp) { - return (_glptr_GetMaterialfv) (GET_by_offset(disp, _gloffset_GetMaterialfv)); -} - -static INLINE void SET_GetMaterialfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetMaterialfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetMaterialiv)(GLenum, GLenum, GLint *); -#define CALL_GetMaterialiv(disp, parameters) \ - (* GET_GetMaterialiv(disp)) parameters -static INLINE _glptr_GetMaterialiv GET_GetMaterialiv(struct _glapi_table *disp) { - return (_glptr_GetMaterialiv) (GET_by_offset(disp, _gloffset_GetMaterialiv)); -} - -static INLINE void SET_GetMaterialiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetMaterialiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetPixelMapfv)(GLenum, GLfloat *); -#define CALL_GetPixelMapfv(disp, parameters) \ - (* GET_GetPixelMapfv(disp)) parameters -static INLINE _glptr_GetPixelMapfv GET_GetPixelMapfv(struct _glapi_table *disp) { - return (_glptr_GetPixelMapfv) (GET_by_offset(disp, _gloffset_GetPixelMapfv)); -} - -static INLINE void SET_GetPixelMapfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetPixelMapfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetPixelMapuiv)(GLenum, GLuint *); -#define CALL_GetPixelMapuiv(disp, parameters) \ - (* GET_GetPixelMapuiv(disp)) parameters -static INLINE _glptr_GetPixelMapuiv GET_GetPixelMapuiv(struct _glapi_table *disp) { - return (_glptr_GetPixelMapuiv) (GET_by_offset(disp, _gloffset_GetPixelMapuiv)); -} - -static INLINE void SET_GetPixelMapuiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint *)) { - SET_by_offset(disp, _gloffset_GetPixelMapuiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetPixelMapusv)(GLenum, GLushort *); -#define CALL_GetPixelMapusv(disp, parameters) \ - (* GET_GetPixelMapusv(disp)) parameters -static INLINE _glptr_GetPixelMapusv GET_GetPixelMapusv(struct _glapi_table *disp) { - return (_glptr_GetPixelMapusv) (GET_by_offset(disp, _gloffset_GetPixelMapusv)); -} - -static INLINE void SET_GetPixelMapusv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLushort *)) { - SET_by_offset(disp, _gloffset_GetPixelMapusv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetPolygonStipple)(GLubyte *); -#define CALL_GetPolygonStipple(disp, parameters) \ - (* GET_GetPolygonStipple(disp)) parameters -static INLINE _glptr_GetPolygonStipple GET_GetPolygonStipple(struct _glapi_table *disp) { - return (_glptr_GetPolygonStipple) (GET_by_offset(disp, _gloffset_GetPolygonStipple)); -} - -static INLINE void SET_GetPolygonStipple(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLubyte *)) { - SET_by_offset(disp, _gloffset_GetPolygonStipple, fn); -} - -typedef const GLubyte * (GLAPIENTRYP _glptr_GetString)(GLenum); -#define CALL_GetString(disp, parameters) \ - (* GET_GetString(disp)) parameters -static INLINE _glptr_GetString GET_GetString(struct _glapi_table *disp) { - return (_glptr_GetString) (GET_by_offset(disp, _gloffset_GetString)); -} - -static INLINE void SET_GetString(struct _glapi_table *disp, const GLubyte * (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_GetString, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexEnvfv)(GLenum, GLenum, GLfloat *); -#define CALL_GetTexEnvfv(disp, parameters) \ - (* GET_GetTexEnvfv(disp)) parameters -static INLINE _glptr_GetTexEnvfv GET_GetTexEnvfv(struct _glapi_table *disp) { - return (_glptr_GetTexEnvfv) (GET_by_offset(disp, _gloffset_GetTexEnvfv)); -} - -static INLINE void SET_GetTexEnvfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetTexEnvfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexEnviv)(GLenum, GLenum, GLint *); -#define CALL_GetTexEnviv(disp, parameters) \ - (* GET_GetTexEnviv(disp)) parameters -static INLINE _glptr_GetTexEnviv GET_GetTexEnviv(struct _glapi_table *disp) { - return (_glptr_GetTexEnviv) (GET_by_offset(disp, _gloffset_GetTexEnviv)); -} - -static INLINE void SET_GetTexEnviv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetTexEnviv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexGendv)(GLenum, GLenum, GLdouble *); -#define CALL_GetTexGendv(disp, parameters) \ - (* GET_GetTexGendv(disp)) parameters -static INLINE _glptr_GetTexGendv GET_GetTexGendv(struct _glapi_table *disp) { - return (_glptr_GetTexGendv) (GET_by_offset(disp, _gloffset_GetTexGendv)); -} - -static INLINE void SET_GetTexGendv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLdouble *)) { - SET_by_offset(disp, _gloffset_GetTexGendv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexGenfv)(GLenum, GLenum, GLfloat *); -#define CALL_GetTexGenfv(disp, parameters) \ - (* GET_GetTexGenfv(disp)) parameters -static INLINE _glptr_GetTexGenfv GET_GetTexGenfv(struct _glapi_table *disp) { - return (_glptr_GetTexGenfv) (GET_by_offset(disp, _gloffset_GetTexGenfv)); -} - -static INLINE void SET_GetTexGenfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetTexGenfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexGeniv)(GLenum, GLenum, GLint *); -#define CALL_GetTexGeniv(disp, parameters) \ - (* GET_GetTexGeniv(disp)) parameters -static INLINE _glptr_GetTexGeniv GET_GetTexGeniv(struct _glapi_table *disp) { - return (_glptr_GetTexGeniv) (GET_by_offset(disp, _gloffset_GetTexGeniv)); -} - -static INLINE void SET_GetTexGeniv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetTexGeniv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexImage)(GLenum, GLint, GLenum, GLenum, GLvoid *); -#define CALL_GetTexImage(disp, parameters) \ - (* GET_GetTexImage(disp)) parameters -static INLINE _glptr_GetTexImage GET_GetTexImage(struct _glapi_table *disp) { - return (_glptr_GetTexImage) (GET_by_offset(disp, _gloffset_GetTexImage)); -} - -static INLINE void SET_GetTexImage(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLenum, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetTexImage, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexParameterfv)(GLenum, GLenum, GLfloat *); -#define CALL_GetTexParameterfv(disp, parameters) \ - (* GET_GetTexParameterfv(disp)) parameters -static INLINE _glptr_GetTexParameterfv GET_GetTexParameterfv(struct _glapi_table *disp) { - return (_glptr_GetTexParameterfv) (GET_by_offset(disp, _gloffset_GetTexParameterfv)); -} - -static INLINE void SET_GetTexParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetTexParameterfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexParameteriv)(GLenum, GLenum, GLint *); -#define CALL_GetTexParameteriv(disp, parameters) \ - (* GET_GetTexParameteriv(disp)) parameters -static INLINE _glptr_GetTexParameteriv GET_GetTexParameteriv(struct _glapi_table *disp) { - return (_glptr_GetTexParameteriv) (GET_by_offset(disp, _gloffset_GetTexParameteriv)); -} - -static INLINE void SET_GetTexParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetTexParameteriv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexLevelParameterfv)(GLenum, GLint, GLenum, GLfloat *); -#define CALL_GetTexLevelParameterfv(disp, parameters) \ - (* GET_GetTexLevelParameterfv(disp)) parameters -static INLINE _glptr_GetTexLevelParameterfv GET_GetTexLevelParameterfv(struct _glapi_table *disp) { - return (_glptr_GetTexLevelParameterfv) (GET_by_offset(disp, _gloffset_GetTexLevelParameterfv)); -} - -static INLINE void SET_GetTexLevelParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetTexLevelParameterfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexLevelParameteriv)(GLenum, GLint, GLenum, GLint *); -#define CALL_GetTexLevelParameteriv(disp, parameters) \ - (* GET_GetTexLevelParameteriv(disp)) parameters -static INLINE _glptr_GetTexLevelParameteriv GET_GetTexLevelParameteriv(struct _glapi_table *disp) { - return (_glptr_GetTexLevelParameteriv) (GET_by_offset(disp, _gloffset_GetTexLevelParameteriv)); -} - -static INLINE void SET_GetTexLevelParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetTexLevelParameteriv, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsEnabled)(GLenum); -#define CALL_IsEnabled(disp, parameters) \ - (* GET_IsEnabled(disp)) parameters -static INLINE _glptr_IsEnabled GET_IsEnabled(struct _glapi_table *disp) { - return (_glptr_IsEnabled) (GET_by_offset(disp, _gloffset_IsEnabled)); -} - -static INLINE void SET_IsEnabled(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_IsEnabled, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsList)(GLuint); -#define CALL_IsList(disp, parameters) \ - (* GET_IsList(disp)) parameters -static INLINE _glptr_IsList GET_IsList(struct _glapi_table *disp) { - return (_glptr_IsList) (GET_by_offset(disp, _gloffset_IsList)); -} - -static INLINE void SET_IsList(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IsList, fn); -} - -typedef void (GLAPIENTRYP _glptr_DepthRange)(GLclampd, GLclampd); -#define CALL_DepthRange(disp, parameters) \ - (* GET_DepthRange(disp)) parameters -static INLINE _glptr_DepthRange GET_DepthRange(struct _glapi_table *disp) { - return (_glptr_DepthRange) (GET_by_offset(disp, _gloffset_DepthRange)); -} - -static INLINE void SET_DepthRange(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampd, GLclampd)) { - SET_by_offset(disp, _gloffset_DepthRange, fn); -} - -typedef void (GLAPIENTRYP _glptr_Frustum)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_Frustum(disp, parameters) \ - (* GET_Frustum(disp)) parameters -static INLINE _glptr_Frustum GET_Frustum(struct _glapi_table *disp) { - return (_glptr_Frustum) (GET_by_offset(disp, _gloffset_Frustum)); -} - -static INLINE void SET_Frustum(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_Frustum, fn); -} - -typedef void (GLAPIENTRYP _glptr_LoadIdentity)(void); -#define CALL_LoadIdentity(disp, parameters) \ - (* GET_LoadIdentity(disp)) parameters -static INLINE _glptr_LoadIdentity GET_LoadIdentity(struct _glapi_table *disp) { - return (_glptr_LoadIdentity) (GET_by_offset(disp, _gloffset_LoadIdentity)); -} - -static INLINE void SET_LoadIdentity(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_LoadIdentity, fn); -} - -typedef void (GLAPIENTRYP _glptr_LoadMatrixf)(const GLfloat *); -#define CALL_LoadMatrixf(disp, parameters) \ - (* GET_LoadMatrixf(disp)) parameters -static INLINE _glptr_LoadMatrixf GET_LoadMatrixf(struct _glapi_table *disp) { - return (_glptr_LoadMatrixf) (GET_by_offset(disp, _gloffset_LoadMatrixf)); -} - -static INLINE void SET_LoadMatrixf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_LoadMatrixf, fn); -} - -typedef void (GLAPIENTRYP _glptr_LoadMatrixd)(const GLdouble *); -#define CALL_LoadMatrixd(disp, parameters) \ - (* GET_LoadMatrixd(disp)) parameters -static INLINE _glptr_LoadMatrixd GET_LoadMatrixd(struct _glapi_table *disp) { - return (_glptr_LoadMatrixd) (GET_by_offset(disp, _gloffset_LoadMatrixd)); -} - -static INLINE void SET_LoadMatrixd(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_LoadMatrixd, fn); -} - -typedef void (GLAPIENTRYP _glptr_MatrixMode)(GLenum); -#define CALL_MatrixMode(disp, parameters) \ - (* GET_MatrixMode(disp)) parameters -static INLINE _glptr_MatrixMode GET_MatrixMode(struct _glapi_table *disp) { - return (_glptr_MatrixMode) (GET_by_offset(disp, _gloffset_MatrixMode)); -} - -static INLINE void SET_MatrixMode(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_MatrixMode, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultMatrixf)(const GLfloat *); -#define CALL_MultMatrixf(disp, parameters) \ - (* GET_MultMatrixf(disp)) parameters -static INLINE _glptr_MultMatrixf GET_MultMatrixf(struct _glapi_table *disp) { - return (_glptr_MultMatrixf) (GET_by_offset(disp, _gloffset_MultMatrixf)); -} - -static INLINE void SET_MultMatrixf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_MultMatrixf, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultMatrixd)(const GLdouble *); -#define CALL_MultMatrixd(disp, parameters) \ - (* GET_MultMatrixd(disp)) parameters -static INLINE _glptr_MultMatrixd GET_MultMatrixd(struct _glapi_table *disp) { - return (_glptr_MultMatrixd) (GET_by_offset(disp, _gloffset_MultMatrixd)); -} - -static INLINE void SET_MultMatrixd(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_MultMatrixd, fn); -} - -typedef void (GLAPIENTRYP _glptr_Ortho)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_Ortho(disp, parameters) \ - (* GET_Ortho(disp)) parameters -static INLINE _glptr_Ortho GET_Ortho(struct _glapi_table *disp) { - return (_glptr_Ortho) (GET_by_offset(disp, _gloffset_Ortho)); -} - -static INLINE void SET_Ortho(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_Ortho, fn); -} - -typedef void (GLAPIENTRYP _glptr_PopMatrix)(void); -#define CALL_PopMatrix(disp, parameters) \ - (* GET_PopMatrix(disp)) parameters -static INLINE _glptr_PopMatrix GET_PopMatrix(struct _glapi_table *disp) { - return (_glptr_PopMatrix) (GET_by_offset(disp, _gloffset_PopMatrix)); -} - -static INLINE void SET_PopMatrix(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_PopMatrix, fn); -} - -typedef void (GLAPIENTRYP _glptr_PushMatrix)(void); -#define CALL_PushMatrix(disp, parameters) \ - (* GET_PushMatrix(disp)) parameters -static INLINE _glptr_PushMatrix GET_PushMatrix(struct _glapi_table *disp) { - return (_glptr_PushMatrix) (GET_by_offset(disp, _gloffset_PushMatrix)); -} - -static INLINE void SET_PushMatrix(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_PushMatrix, fn); -} - -typedef void (GLAPIENTRYP _glptr_Rotated)(GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_Rotated(disp, parameters) \ - (* GET_Rotated(disp)) parameters -static INLINE _glptr_Rotated GET_Rotated(struct _glapi_table *disp) { - return (_glptr_Rotated) (GET_by_offset(disp, _gloffset_Rotated)); -} - -static INLINE void SET_Rotated(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_Rotated, fn); -} - -typedef void (GLAPIENTRYP _glptr_Rotatef)(GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_Rotatef(disp, parameters) \ - (* GET_Rotatef(disp)) parameters -static INLINE _glptr_Rotatef GET_Rotatef(struct _glapi_table *disp) { - return (_glptr_Rotatef) (GET_by_offset(disp, _gloffset_Rotatef)); -} - -static INLINE void SET_Rotatef(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_Rotatef, fn); -} - -typedef void (GLAPIENTRYP _glptr_Scaled)(GLdouble, GLdouble, GLdouble); -#define CALL_Scaled(disp, parameters) \ - (* GET_Scaled(disp)) parameters -static INLINE _glptr_Scaled GET_Scaled(struct _glapi_table *disp) { - return (_glptr_Scaled) (GET_by_offset(disp, _gloffset_Scaled)); -} - -static INLINE void SET_Scaled(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_Scaled, fn); -} - -typedef void (GLAPIENTRYP _glptr_Scalef)(GLfloat, GLfloat, GLfloat); -#define CALL_Scalef(disp, parameters) \ - (* GET_Scalef(disp)) parameters -static INLINE _glptr_Scalef GET_Scalef(struct _glapi_table *disp) { - return (_glptr_Scalef) (GET_by_offset(disp, _gloffset_Scalef)); -} - -static INLINE void SET_Scalef(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_Scalef, fn); -} - -typedef void (GLAPIENTRYP _glptr_Translated)(GLdouble, GLdouble, GLdouble); -#define CALL_Translated(disp, parameters) \ - (* GET_Translated(disp)) parameters -static INLINE _glptr_Translated GET_Translated(struct _glapi_table *disp) { - return (_glptr_Translated) (GET_by_offset(disp, _gloffset_Translated)); -} - -static INLINE void SET_Translated(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_Translated, fn); -} - -typedef void (GLAPIENTRYP _glptr_Translatef)(GLfloat, GLfloat, GLfloat); -#define CALL_Translatef(disp, parameters) \ - (* GET_Translatef(disp)) parameters -static INLINE _glptr_Translatef GET_Translatef(struct _glapi_table *disp) { - return (_glptr_Translatef) (GET_by_offset(disp, _gloffset_Translatef)); -} - -static INLINE void SET_Translatef(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_Translatef, fn); -} - -typedef void (GLAPIENTRYP _glptr_Viewport)(GLint, GLint, GLsizei, GLsizei); -#define CALL_Viewport(disp, parameters) \ - (* GET_Viewport(disp)) parameters -static INLINE _glptr_Viewport GET_Viewport(struct _glapi_table *disp) { - return (_glptr_Viewport) (GET_by_offset(disp, _gloffset_Viewport)); -} - -static INLINE void SET_Viewport(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLsizei, GLsizei)) { - SET_by_offset(disp, _gloffset_Viewport, fn); -} - -typedef void (GLAPIENTRYP _glptr_ArrayElement)(GLint); -#define CALL_ArrayElement(disp, parameters) \ - (* GET_ArrayElement(disp)) parameters -static INLINE _glptr_ArrayElement GET_ArrayElement(struct _glapi_table *disp) { - return (_glptr_ArrayElement) (GET_by_offset(disp, _gloffset_ArrayElement)); -} - -static INLINE void SET_ArrayElement(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint)) { - SET_by_offset(disp, _gloffset_ArrayElement, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindTexture)(GLenum, GLuint); -#define CALL_BindTexture(disp, parameters) \ - (* GET_BindTexture(disp)) parameters -static INLINE _glptr_BindTexture GET_BindTexture(struct _glapi_table *disp) { - return (_glptr_BindTexture) (GET_by_offset(disp, _gloffset_BindTexture)); -} - -static INLINE void SET_BindTexture(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_BindTexture, fn); -} - -typedef void (GLAPIENTRYP _glptr_ColorPointer)(GLint, GLenum, GLsizei, const GLvoid *); -#define CALL_ColorPointer(disp, parameters) \ - (* GET_ColorPointer(disp)) parameters -static INLINE _glptr_ColorPointer GET_ColorPointer(struct _glapi_table *disp) { - return (_glptr_ColorPointer) (GET_by_offset(disp, _gloffset_ColorPointer)); -} - -static INLINE void SET_ColorPointer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_ColorPointer, fn); -} - -typedef void (GLAPIENTRYP _glptr_DisableClientState)(GLenum); -#define CALL_DisableClientState(disp, parameters) \ - (* GET_DisableClientState(disp)) parameters -static INLINE _glptr_DisableClientState GET_DisableClientState(struct _glapi_table *disp) { - return (_glptr_DisableClientState) (GET_by_offset(disp, _gloffset_DisableClientState)); -} - -static INLINE void SET_DisableClientState(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_DisableClientState, fn); -} - -typedef void (GLAPIENTRYP _glptr_DrawArrays)(GLenum, GLint, GLsizei); -#define CALL_DrawArrays(disp, parameters) \ - (* GET_DrawArrays(disp)) parameters -static INLINE _glptr_DrawArrays GET_DrawArrays(struct _glapi_table *disp) { - return (_glptr_DrawArrays) (GET_by_offset(disp, _gloffset_DrawArrays)); -} - -static INLINE void SET_DrawArrays(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLsizei)) { - SET_by_offset(disp, _gloffset_DrawArrays, fn); -} - -typedef void (GLAPIENTRYP _glptr_DrawElements)(GLenum, GLsizei, GLenum, const GLvoid *); -#define CALL_DrawElements(disp, parameters) \ - (* GET_DrawElements(disp)) parameters -static INLINE _glptr_DrawElements GET_DrawElements(struct _glapi_table *disp) { - return (_glptr_DrawElements) (GET_by_offset(disp, _gloffset_DrawElements)); -} - -static INLINE void SET_DrawElements(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_DrawElements, fn); -} - -typedef void (GLAPIENTRYP _glptr_EdgeFlagPointer)(GLsizei, const GLvoid *); -#define CALL_EdgeFlagPointer(disp, parameters) \ - (* GET_EdgeFlagPointer(disp)) parameters -static INLINE _glptr_EdgeFlagPointer GET_EdgeFlagPointer(struct _glapi_table *disp) { - return (_glptr_EdgeFlagPointer) (GET_by_offset(disp, _gloffset_EdgeFlagPointer)); -} - -static INLINE void SET_EdgeFlagPointer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_EdgeFlagPointer, fn); -} - -typedef void (GLAPIENTRYP _glptr_EnableClientState)(GLenum); -#define CALL_EnableClientState(disp, parameters) \ - (* GET_EnableClientState(disp)) parameters -static INLINE _glptr_EnableClientState GET_EnableClientState(struct _glapi_table *disp) { - return (_glptr_EnableClientState) (GET_by_offset(disp, _gloffset_EnableClientState)); -} - -static INLINE void SET_EnableClientState(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_EnableClientState, fn); -} - -typedef void (GLAPIENTRYP _glptr_IndexPointer)(GLenum, GLsizei, const GLvoid *); -#define CALL_IndexPointer(disp, parameters) \ - (* GET_IndexPointer(disp)) parameters -static INLINE _glptr_IndexPointer GET_IndexPointer(struct _glapi_table *disp) { - return (_glptr_IndexPointer) (GET_by_offset(disp, _gloffset_IndexPointer)); -} - -static INLINE void SET_IndexPointer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_IndexPointer, fn); -} - -typedef void (GLAPIENTRYP _glptr_Indexub)(GLubyte); -#define CALL_Indexub(disp, parameters) \ - (* GET_Indexub(disp)) parameters -static INLINE _glptr_Indexub GET_Indexub(struct _glapi_table *disp) { - return (_glptr_Indexub) (GET_by_offset(disp, _gloffset_Indexub)); -} - -static INLINE void SET_Indexub(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLubyte)) { - SET_by_offset(disp, _gloffset_Indexub, fn); -} - -typedef void (GLAPIENTRYP _glptr_Indexubv)(const GLubyte *); -#define CALL_Indexubv(disp, parameters) \ - (* GET_Indexubv(disp)) parameters -static INLINE _glptr_Indexubv GET_Indexubv(struct _glapi_table *disp) { - return (_glptr_Indexubv) (GET_by_offset(disp, _gloffset_Indexubv)); -} - -static INLINE void SET_Indexubv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLubyte *)) { - SET_by_offset(disp, _gloffset_Indexubv, fn); -} - -typedef void (GLAPIENTRYP _glptr_InterleavedArrays)(GLenum, GLsizei, const GLvoid *); -#define CALL_InterleavedArrays(disp, parameters) \ - (* GET_InterleavedArrays(disp)) parameters -static INLINE _glptr_InterleavedArrays GET_InterleavedArrays(struct _glapi_table *disp) { - return (_glptr_InterleavedArrays) (GET_by_offset(disp, _gloffset_InterleavedArrays)); -} - -static INLINE void SET_InterleavedArrays(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_InterleavedArrays, fn); -} - -typedef void (GLAPIENTRYP _glptr_NormalPointer)(GLenum, GLsizei, const GLvoid *); -#define CALL_NormalPointer(disp, parameters) \ - (* GET_NormalPointer(disp)) parameters -static INLINE _glptr_NormalPointer GET_NormalPointer(struct _glapi_table *disp) { - return (_glptr_NormalPointer) (GET_by_offset(disp, _gloffset_NormalPointer)); -} - -static INLINE void SET_NormalPointer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_NormalPointer, fn); -} - -typedef void (GLAPIENTRYP _glptr_PolygonOffset)(GLfloat, GLfloat); -#define CALL_PolygonOffset(disp, parameters) \ - (* GET_PolygonOffset(disp)) parameters -static INLINE _glptr_PolygonOffset GET_PolygonOffset(struct _glapi_table *disp) { - return (_glptr_PolygonOffset) (GET_by_offset(disp, _gloffset_PolygonOffset)); -} - -static INLINE void SET_PolygonOffset(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_PolygonOffset, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoordPointer)(GLint, GLenum, GLsizei, const GLvoid *); -#define CALL_TexCoordPointer(disp, parameters) \ - (* GET_TexCoordPointer(disp)) parameters -static INLINE _glptr_TexCoordPointer GET_TexCoordPointer(struct _glapi_table *disp) { - return (_glptr_TexCoordPointer) (GET_by_offset(disp, _gloffset_TexCoordPointer)); -} - -static INLINE void SET_TexCoordPointer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_TexCoordPointer, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexPointer)(GLint, GLenum, GLsizei, const GLvoid *); -#define CALL_VertexPointer(disp, parameters) \ - (* GET_VertexPointer(disp)) parameters -static INLINE _glptr_VertexPointer GET_VertexPointer(struct _glapi_table *disp) { - return (_glptr_VertexPointer) (GET_by_offset(disp, _gloffset_VertexPointer)); -} - -static INLINE void SET_VertexPointer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_VertexPointer, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_AreTexturesResident)(GLsizei, const GLuint *, GLboolean *); -#define CALL_AreTexturesResident(disp, parameters) \ - (* GET_AreTexturesResident(disp)) parameters -static INLINE _glptr_AreTexturesResident GET_AreTexturesResident(struct _glapi_table *disp) { - return (_glptr_AreTexturesResident) (GET_by_offset(disp, _gloffset_AreTexturesResident)); -} - -static INLINE void SET_AreTexturesResident(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLsizei, const GLuint *, GLboolean *)) { - SET_by_offset(disp, _gloffset_AreTexturesResident, fn); -} - -typedef void (GLAPIENTRYP _glptr_CopyTexImage1D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint); -#define CALL_CopyTexImage1D(disp, parameters) \ - (* GET_CopyTexImage1D(disp)) parameters -static INLINE _glptr_CopyTexImage1D GET_CopyTexImage1D(struct _glapi_table *disp) { - return (_glptr_CopyTexImage1D) (GET_by_offset(disp, _gloffset_CopyTexImage1D)); -} - -static INLINE void SET_CopyTexImage1D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint)) { - SET_by_offset(disp, _gloffset_CopyTexImage1D, fn); -} - -typedef void (GLAPIENTRYP _glptr_CopyTexImage2D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); -#define CALL_CopyTexImage2D(disp, parameters) \ - (* GET_CopyTexImage2D(disp)) parameters -static INLINE _glptr_CopyTexImage2D GET_CopyTexImage2D(struct _glapi_table *disp) { - return (_glptr_CopyTexImage2D) (GET_by_offset(disp, _gloffset_CopyTexImage2D)); -} - -static INLINE void SET_CopyTexImage2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint)) { - SET_by_offset(disp, _gloffset_CopyTexImage2D, fn); -} - -typedef void (GLAPIENTRYP _glptr_CopyTexSubImage1D)(GLenum, GLint, GLint, GLint, GLint, GLsizei); -#define CALL_CopyTexSubImage1D(disp, parameters) \ - (* GET_CopyTexSubImage1D(disp)) parameters -static INLINE _glptr_CopyTexSubImage1D GET_CopyTexSubImage1D(struct _glapi_table *disp) { - return (_glptr_CopyTexSubImage1D) (GET_by_offset(disp, _gloffset_CopyTexSubImage1D)); -} - -static INLINE void SET_CopyTexSubImage1D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint, GLsizei)) { - SET_by_offset(disp, _gloffset_CopyTexSubImage1D, fn); -} - -typedef void (GLAPIENTRYP _glptr_CopyTexSubImage2D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -#define CALL_CopyTexSubImage2D(disp, parameters) \ - (* GET_CopyTexSubImage2D(disp)) parameters -static INLINE _glptr_CopyTexSubImage2D GET_CopyTexSubImage2D(struct _glapi_table *disp) { - return (_glptr_CopyTexSubImage2D) (GET_by_offset(disp, _gloffset_CopyTexSubImage2D)); -} - -static INLINE void SET_CopyTexSubImage2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei)) { - SET_by_offset(disp, _gloffset_CopyTexSubImage2D, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteTextures)(GLsizei, const GLuint *); -#define CALL_DeleteTextures(disp, parameters) \ - (* GET_DeleteTextures(disp)) parameters -static INLINE _glptr_DeleteTextures GET_DeleteTextures(struct _glapi_table *disp) { - return (_glptr_DeleteTextures) (GET_by_offset(disp, _gloffset_DeleteTextures)); -} - -static INLINE void SET_DeleteTextures(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_DeleteTextures, fn); -} - -typedef void (GLAPIENTRYP _glptr_GenTextures)(GLsizei, GLuint *); -#define CALL_GenTextures(disp, parameters) \ - (* GET_GenTextures(disp)) parameters -static INLINE _glptr_GenTextures GET_GenTextures(struct _glapi_table *disp) { - return (_glptr_GenTextures) (GET_by_offset(disp, _gloffset_GenTextures)); -} - -static INLINE void SET_GenTextures(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_GenTextures, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetPointerv)(GLenum, GLvoid **); -#define CALL_GetPointerv(disp, parameters) \ - (* GET_GetPointerv(disp)) parameters -static INLINE _glptr_GetPointerv GET_GetPointerv(struct _glapi_table *disp) { - return (_glptr_GetPointerv) (GET_by_offset(disp, _gloffset_GetPointerv)); -} - -static INLINE void SET_GetPointerv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLvoid **)) { - SET_by_offset(disp, _gloffset_GetPointerv, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsTexture)(GLuint); -#define CALL_IsTexture(disp, parameters) \ - (* GET_IsTexture(disp)) parameters -static INLINE _glptr_IsTexture GET_IsTexture(struct _glapi_table *disp) { - return (_glptr_IsTexture) (GET_by_offset(disp, _gloffset_IsTexture)); -} - -static INLINE void SET_IsTexture(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IsTexture, fn); -} - -typedef void (GLAPIENTRYP _glptr_PrioritizeTextures)(GLsizei, const GLuint *, const GLclampf *); -#define CALL_PrioritizeTextures(disp, parameters) \ - (* GET_PrioritizeTextures(disp)) parameters -static INLINE _glptr_PrioritizeTextures GET_PrioritizeTextures(struct _glapi_table *disp) { - return (_glptr_PrioritizeTextures) (GET_by_offset(disp, _gloffset_PrioritizeTextures)); -} - -static INLINE void SET_PrioritizeTextures(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *, const GLclampf *)) { - SET_by_offset(disp, _gloffset_PrioritizeTextures, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexSubImage1D)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *); -#define CALL_TexSubImage1D(disp, parameters) \ - (* GET_TexSubImage1D(disp)) parameters -static INLINE _glptr_TexSubImage1D GET_TexSubImage1D(struct _glapi_table *disp) { - return (_glptr_TexSubImage1D) (GET_by_offset(disp, _gloffset_TexSubImage1D)); -} - -static INLINE void SET_TexSubImage1D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_TexSubImage1D, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -#define CALL_TexSubImage2D(disp, parameters) \ - (* GET_TexSubImage2D(disp)) parameters -static INLINE _glptr_TexSubImage2D GET_TexSubImage2D(struct _glapi_table *disp) { - return (_glptr_TexSubImage2D) (GET_by_offset(disp, _gloffset_TexSubImage2D)); -} - -static INLINE void SET_TexSubImage2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_TexSubImage2D, fn); -} - -typedef void (GLAPIENTRYP _glptr_PopClientAttrib)(void); -#define CALL_PopClientAttrib(disp, parameters) \ - (* GET_PopClientAttrib(disp)) parameters -static INLINE _glptr_PopClientAttrib GET_PopClientAttrib(struct _glapi_table *disp) { - return (_glptr_PopClientAttrib) (GET_by_offset(disp, _gloffset_PopClientAttrib)); -} - -static INLINE void SET_PopClientAttrib(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_PopClientAttrib, fn); -} - -typedef void (GLAPIENTRYP _glptr_PushClientAttrib)(GLbitfield); -#define CALL_PushClientAttrib(disp, parameters) \ - (* GET_PushClientAttrib(disp)) parameters -static INLINE _glptr_PushClientAttrib GET_PushClientAttrib(struct _glapi_table *disp) { - return (_glptr_PushClientAttrib) (GET_by_offset(disp, _gloffset_PushClientAttrib)); -} - -static INLINE void SET_PushClientAttrib(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbitfield)) { - SET_by_offset(disp, _gloffset_PushClientAttrib, fn); -} - -typedef void (GLAPIENTRYP _glptr_BlendColor)(GLclampf, GLclampf, GLclampf, GLclampf); -#define CALL_BlendColor(disp, parameters) \ - (* GET_BlendColor(disp)) parameters -static INLINE _glptr_BlendColor GET_BlendColor(struct _glapi_table *disp) { - return (_glptr_BlendColor) (GET_by_offset(disp, _gloffset_BlendColor)); -} - -static INLINE void SET_BlendColor(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampf, GLclampf, GLclampf, GLclampf)) { - SET_by_offset(disp, _gloffset_BlendColor, fn); -} - -typedef void (GLAPIENTRYP _glptr_BlendEquation)(GLenum); -#define CALL_BlendEquation(disp, parameters) \ - (* GET_BlendEquation(disp)) parameters -static INLINE _glptr_BlendEquation GET_BlendEquation(struct _glapi_table *disp) { - return (_glptr_BlendEquation) (GET_by_offset(disp, _gloffset_BlendEquation)); -} - -static INLINE void SET_BlendEquation(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_BlendEquation, fn); -} - -typedef void (GLAPIENTRYP _glptr_DrawRangeElements)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *); -#define CALL_DrawRangeElements(disp, parameters) \ - (* GET_DrawRangeElements(disp)) parameters -static INLINE _glptr_DrawRangeElements GET_DrawRangeElements(struct _glapi_table *disp) { - return (_glptr_DrawRangeElements) (GET_by_offset(disp, _gloffset_DrawRangeElements)); -} - -static INLINE void SET_DrawRangeElements(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_DrawRangeElements, fn); -} - -typedef void (GLAPIENTRYP _glptr_ColorTable)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); -#define CALL_ColorTable(disp, parameters) \ - (* GET_ColorTable(disp)) parameters -static INLINE _glptr_ColorTable GET_ColorTable(struct _glapi_table *disp) { - return (_glptr_ColorTable) (GET_by_offset(disp, _gloffset_ColorTable)); -} - -static INLINE void SET_ColorTable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_ColorTable, fn); -} - -typedef void (GLAPIENTRYP _glptr_ColorTableParameterfv)(GLenum, GLenum, const GLfloat *); -#define CALL_ColorTableParameterfv(disp, parameters) \ - (* GET_ColorTableParameterfv(disp)) parameters -static INLINE _glptr_ColorTableParameterfv GET_ColorTableParameterfv(struct _glapi_table *disp) { - return (_glptr_ColorTableParameterfv) (GET_by_offset(disp, _gloffset_ColorTableParameterfv)); -} - -static INLINE void SET_ColorTableParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_ColorTableParameterfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_ColorTableParameteriv)(GLenum, GLenum, const GLint *); -#define CALL_ColorTableParameteriv(disp, parameters) \ - (* GET_ColorTableParameteriv(disp)) parameters -static INLINE _glptr_ColorTableParameteriv GET_ColorTableParameteriv(struct _glapi_table *disp) { - return (_glptr_ColorTableParameteriv) (GET_by_offset(disp, _gloffset_ColorTableParameteriv)); -} - -static INLINE void SET_ColorTableParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_ColorTableParameteriv, fn); -} - -typedef void (GLAPIENTRYP _glptr_CopyColorTable)(GLenum, GLenum, GLint, GLint, GLsizei); -#define CALL_CopyColorTable(disp, parameters) \ - (* GET_CopyColorTable(disp)) parameters -static INLINE _glptr_CopyColorTable GET_CopyColorTable(struct _glapi_table *disp) { - return (_glptr_CopyColorTable) (GET_by_offset(disp, _gloffset_CopyColorTable)); -} - -static INLINE void SET_CopyColorTable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint, GLint, GLsizei)) { - SET_by_offset(disp, _gloffset_CopyColorTable, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetColorTable)(GLenum, GLenum, GLenum, GLvoid *); -#define CALL_GetColorTable(disp, parameters) \ - (* GET_GetColorTable(disp)) parameters -static INLINE _glptr_GetColorTable GET_GetColorTable(struct _glapi_table *disp) { - return (_glptr_GetColorTable) (GET_by_offset(disp, _gloffset_GetColorTable)); -} - -static INLINE void SET_GetColorTable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetColorTable, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetColorTableParameterfv)(GLenum, GLenum, GLfloat *); -#define CALL_GetColorTableParameterfv(disp, parameters) \ - (* GET_GetColorTableParameterfv(disp)) parameters -static INLINE _glptr_GetColorTableParameterfv GET_GetColorTableParameterfv(struct _glapi_table *disp) { - return (_glptr_GetColorTableParameterfv) (GET_by_offset(disp, _gloffset_GetColorTableParameterfv)); -} - -static INLINE void SET_GetColorTableParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetColorTableParameterfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetColorTableParameteriv)(GLenum, GLenum, GLint *); -#define CALL_GetColorTableParameteriv(disp, parameters) \ - (* GET_GetColorTableParameteriv(disp)) parameters -static INLINE _glptr_GetColorTableParameteriv GET_GetColorTableParameteriv(struct _glapi_table *disp) { - return (_glptr_GetColorTableParameteriv) (GET_by_offset(disp, _gloffset_GetColorTableParameteriv)); -} - -static INLINE void SET_GetColorTableParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetColorTableParameteriv, fn); -} - -typedef void (GLAPIENTRYP _glptr_ColorSubTable)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -#define CALL_ColorSubTable(disp, parameters) \ - (* GET_ColorSubTable(disp)) parameters -static INLINE _glptr_ColorSubTable GET_ColorSubTable(struct _glapi_table *disp) { - return (_glptr_ColorSubTable) (GET_by_offset(disp, _gloffset_ColorSubTable)); -} - -static INLINE void SET_ColorSubTable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_ColorSubTable, fn); -} - -typedef void (GLAPIENTRYP _glptr_CopyColorSubTable)(GLenum, GLsizei, GLint, GLint, GLsizei); -#define CALL_CopyColorSubTable(disp, parameters) \ - (* GET_CopyColorSubTable(disp)) parameters -static INLINE _glptr_CopyColorSubTable GET_CopyColorSubTable(struct _glapi_table *disp) { - return (_glptr_CopyColorSubTable) (GET_by_offset(disp, _gloffset_CopyColorSubTable)); -} - -static INLINE void SET_CopyColorSubTable(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLint, GLint, GLsizei)) { - SET_by_offset(disp, _gloffset_CopyColorSubTable, fn); -} - -typedef void (GLAPIENTRYP _glptr_ConvolutionFilter1D)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *); -#define CALL_ConvolutionFilter1D(disp, parameters) \ - (* GET_ConvolutionFilter1D(disp)) parameters -static INLINE _glptr_ConvolutionFilter1D GET_ConvolutionFilter1D(struct _glapi_table *disp) { - return (_glptr_ConvolutionFilter1D) (GET_by_offset(disp, _gloffset_ConvolutionFilter1D)); -} - -static INLINE void SET_ConvolutionFilter1D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLenum, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_ConvolutionFilter1D, fn); -} - -typedef void (GLAPIENTRYP _glptr_ConvolutionFilter2D)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -#define CALL_ConvolutionFilter2D(disp, parameters) \ - (* GET_ConvolutionFilter2D(disp)) parameters -static INLINE _glptr_ConvolutionFilter2D GET_ConvolutionFilter2D(struct _glapi_table *disp) { - return (_glptr_ConvolutionFilter2D) (GET_by_offset(disp, _gloffset_ConvolutionFilter2D)); -} - -static INLINE void SET_ConvolutionFilter2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_ConvolutionFilter2D, fn); -} - -typedef void (GLAPIENTRYP _glptr_ConvolutionParameterf)(GLenum, GLenum, GLfloat); -#define CALL_ConvolutionParameterf(disp, parameters) \ - (* GET_ConvolutionParameterf(disp)) parameters -static INLINE _glptr_ConvolutionParameterf GET_ConvolutionParameterf(struct _glapi_table *disp) { - return (_glptr_ConvolutionParameterf) (GET_by_offset(disp, _gloffset_ConvolutionParameterf)); -} - -static INLINE void SET_ConvolutionParameterf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_ConvolutionParameterf, fn); -} - -typedef void (GLAPIENTRYP _glptr_ConvolutionParameterfv)(GLenum, GLenum, const GLfloat *); -#define CALL_ConvolutionParameterfv(disp, parameters) \ - (* GET_ConvolutionParameterfv(disp)) parameters -static INLINE _glptr_ConvolutionParameterfv GET_ConvolutionParameterfv(struct _glapi_table *disp) { - return (_glptr_ConvolutionParameterfv) (GET_by_offset(disp, _gloffset_ConvolutionParameterfv)); -} - -static INLINE void SET_ConvolutionParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_ConvolutionParameterfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_ConvolutionParameteri)(GLenum, GLenum, GLint); -#define CALL_ConvolutionParameteri(disp, parameters) \ - (* GET_ConvolutionParameteri(disp)) parameters -static INLINE _glptr_ConvolutionParameteri GET_ConvolutionParameteri(struct _glapi_table *disp) { - return (_glptr_ConvolutionParameteri) (GET_by_offset(disp, _gloffset_ConvolutionParameteri)); -} - -static INLINE void SET_ConvolutionParameteri(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { - SET_by_offset(disp, _gloffset_ConvolutionParameteri, fn); -} - -typedef void (GLAPIENTRYP _glptr_ConvolutionParameteriv)(GLenum, GLenum, const GLint *); -#define CALL_ConvolutionParameteriv(disp, parameters) \ - (* GET_ConvolutionParameteriv(disp)) parameters -static INLINE _glptr_ConvolutionParameteriv GET_ConvolutionParameteriv(struct _glapi_table *disp) { - return (_glptr_ConvolutionParameteriv) (GET_by_offset(disp, _gloffset_ConvolutionParameteriv)); -} - -static INLINE void SET_ConvolutionParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_ConvolutionParameteriv, fn); -} - -typedef void (GLAPIENTRYP _glptr_CopyConvolutionFilter1D)(GLenum, GLenum, GLint, GLint, GLsizei); -#define CALL_CopyConvolutionFilter1D(disp, parameters) \ - (* GET_CopyConvolutionFilter1D(disp)) parameters -static INLINE _glptr_CopyConvolutionFilter1D GET_CopyConvolutionFilter1D(struct _glapi_table *disp) { - return (_glptr_CopyConvolutionFilter1D) (GET_by_offset(disp, _gloffset_CopyConvolutionFilter1D)); -} - -static INLINE void SET_CopyConvolutionFilter1D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint, GLint, GLsizei)) { - SET_by_offset(disp, _gloffset_CopyConvolutionFilter1D, fn); -} - -typedef void (GLAPIENTRYP _glptr_CopyConvolutionFilter2D)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei); -#define CALL_CopyConvolutionFilter2D(disp, parameters) \ - (* GET_CopyConvolutionFilter2D(disp)) parameters -static INLINE _glptr_CopyConvolutionFilter2D GET_CopyConvolutionFilter2D(struct _glapi_table *disp) { - return (_glptr_CopyConvolutionFilter2D) (GET_by_offset(disp, _gloffset_CopyConvolutionFilter2D)); -} - -static INLINE void SET_CopyConvolutionFilter2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei)) { - SET_by_offset(disp, _gloffset_CopyConvolutionFilter2D, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetConvolutionFilter)(GLenum, GLenum, GLenum, GLvoid *); -#define CALL_GetConvolutionFilter(disp, parameters) \ - (* GET_GetConvolutionFilter(disp)) parameters -static INLINE _glptr_GetConvolutionFilter GET_GetConvolutionFilter(struct _glapi_table *disp) { - return (_glptr_GetConvolutionFilter) (GET_by_offset(disp, _gloffset_GetConvolutionFilter)); -} - -static INLINE void SET_GetConvolutionFilter(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetConvolutionFilter, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetConvolutionParameterfv)(GLenum, GLenum, GLfloat *); -#define CALL_GetConvolutionParameterfv(disp, parameters) \ - (* GET_GetConvolutionParameterfv(disp)) parameters -static INLINE _glptr_GetConvolutionParameterfv GET_GetConvolutionParameterfv(struct _glapi_table *disp) { - return (_glptr_GetConvolutionParameterfv) (GET_by_offset(disp, _gloffset_GetConvolutionParameterfv)); -} - -static INLINE void SET_GetConvolutionParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetConvolutionParameterfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetConvolutionParameteriv)(GLenum, GLenum, GLint *); -#define CALL_GetConvolutionParameteriv(disp, parameters) \ - (* GET_GetConvolutionParameteriv(disp)) parameters -static INLINE _glptr_GetConvolutionParameteriv GET_GetConvolutionParameteriv(struct _glapi_table *disp) { - return (_glptr_GetConvolutionParameteriv) (GET_by_offset(disp, _gloffset_GetConvolutionParameteriv)); -} - -static INLINE void SET_GetConvolutionParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetConvolutionParameteriv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetSeparableFilter)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *); -#define CALL_GetSeparableFilter(disp, parameters) \ - (* GET_GetSeparableFilter(disp)) parameters -static INLINE _glptr_GetSeparableFilter GET_GetSeparableFilter(struct _glapi_table *disp) { - return (_glptr_GetSeparableFilter) (GET_by_offset(disp, _gloffset_GetSeparableFilter)); -} - -static INLINE void SET_GetSeparableFilter(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLvoid *, GLvoid *, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetSeparableFilter, fn); -} - -typedef void (GLAPIENTRYP _glptr_SeparableFilter2D)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *); -#define CALL_SeparableFilter2D(disp, parameters) \ - (* GET_SeparableFilter2D(disp)) parameters -static INLINE _glptr_SeparableFilter2D GET_SeparableFilter2D(struct _glapi_table *disp) { - return (_glptr_SeparableFilter2D) (GET_by_offset(disp, _gloffset_SeparableFilter2D)); -} - -static INLINE void SET_SeparableFilter2D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *, const GLvoid *)) { - SET_by_offset(disp, _gloffset_SeparableFilter2D, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetHistogram)(GLenum, GLboolean, GLenum, GLenum, GLvoid *); -#define CALL_GetHistogram(disp, parameters) \ - (* GET_GetHistogram(disp)) parameters -static INLINE _glptr_GetHistogram GET_GetHistogram(struct _glapi_table *disp) { - return (_glptr_GetHistogram) (GET_by_offset(disp, _gloffset_GetHistogram)); -} - -static INLINE void SET_GetHistogram(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLboolean, GLenum, GLenum, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetHistogram, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetHistogramParameterfv)(GLenum, GLenum, GLfloat *); -#define CALL_GetHistogramParameterfv(disp, parameters) \ - (* GET_GetHistogramParameterfv(disp)) parameters -static INLINE _glptr_GetHistogramParameterfv GET_GetHistogramParameterfv(struct _glapi_table *disp) { - return (_glptr_GetHistogramParameterfv) (GET_by_offset(disp, _gloffset_GetHistogramParameterfv)); -} - -static INLINE void SET_GetHistogramParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetHistogramParameterfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetHistogramParameteriv)(GLenum, GLenum, GLint *); -#define CALL_GetHistogramParameteriv(disp, parameters) \ - (* GET_GetHistogramParameteriv(disp)) parameters -static INLINE _glptr_GetHistogramParameteriv GET_GetHistogramParameteriv(struct _glapi_table *disp) { - return (_glptr_GetHistogramParameteriv) (GET_by_offset(disp, _gloffset_GetHistogramParameteriv)); -} - -static INLINE void SET_GetHistogramParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetHistogramParameteriv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetMinmax)(GLenum, GLboolean, GLenum, GLenum, GLvoid *); -#define CALL_GetMinmax(disp, parameters) \ - (* GET_GetMinmax(disp)) parameters -static INLINE _glptr_GetMinmax GET_GetMinmax(struct _glapi_table *disp) { - return (_glptr_GetMinmax) (GET_by_offset(disp, _gloffset_GetMinmax)); -} - -static INLINE void SET_GetMinmax(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLboolean, GLenum, GLenum, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetMinmax, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetMinmaxParameterfv)(GLenum, GLenum, GLfloat *); -#define CALL_GetMinmaxParameterfv(disp, parameters) \ - (* GET_GetMinmaxParameterfv(disp)) parameters -static INLINE _glptr_GetMinmaxParameterfv GET_GetMinmaxParameterfv(struct _glapi_table *disp) { - return (_glptr_GetMinmaxParameterfv) (GET_by_offset(disp, _gloffset_GetMinmaxParameterfv)); -} - -static INLINE void SET_GetMinmaxParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetMinmaxParameterfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetMinmaxParameteriv)(GLenum, GLenum, GLint *); -#define CALL_GetMinmaxParameteriv(disp, parameters) \ - (* GET_GetMinmaxParameteriv(disp)) parameters -static INLINE _glptr_GetMinmaxParameteriv GET_GetMinmaxParameteriv(struct _glapi_table *disp) { - return (_glptr_GetMinmaxParameteriv) (GET_by_offset(disp, _gloffset_GetMinmaxParameteriv)); -} - -static INLINE void SET_GetMinmaxParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetMinmaxParameteriv, fn); -} - -typedef void (GLAPIENTRYP _glptr_Histogram)(GLenum, GLsizei, GLenum, GLboolean); -#define CALL_Histogram(disp, parameters) \ - (* GET_Histogram(disp)) parameters -static INLINE _glptr_Histogram GET_Histogram(struct _glapi_table *disp) { - return (_glptr_Histogram) (GET_by_offset(disp, _gloffset_Histogram)); -} - -static INLINE void SET_Histogram(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLenum, GLboolean)) { - SET_by_offset(disp, _gloffset_Histogram, fn); -} - -typedef void (GLAPIENTRYP _glptr_Minmax)(GLenum, GLenum, GLboolean); -#define CALL_Minmax(disp, parameters) \ - (* GET_Minmax(disp)) parameters -static INLINE _glptr_Minmax GET_Minmax(struct _glapi_table *disp) { - return (_glptr_Minmax) (GET_by_offset(disp, _gloffset_Minmax)); -} - -static INLINE void SET_Minmax(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLboolean)) { - SET_by_offset(disp, _gloffset_Minmax, fn); -} - -typedef void (GLAPIENTRYP _glptr_ResetHistogram)(GLenum); -#define CALL_ResetHistogram(disp, parameters) \ - (* GET_ResetHistogram(disp)) parameters -static INLINE _glptr_ResetHistogram GET_ResetHistogram(struct _glapi_table *disp) { - return (_glptr_ResetHistogram) (GET_by_offset(disp, _gloffset_ResetHistogram)); -} - -static INLINE void SET_ResetHistogram(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_ResetHistogram, fn); -} - -typedef void (GLAPIENTRYP _glptr_ResetMinmax)(GLenum); -#define CALL_ResetMinmax(disp, parameters) \ - (* GET_ResetMinmax(disp)) parameters -static INLINE _glptr_ResetMinmax GET_ResetMinmax(struct _glapi_table *disp) { - return (_glptr_ResetMinmax) (GET_by_offset(disp, _gloffset_ResetMinmax)); -} - -static INLINE void SET_ResetMinmax(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_ResetMinmax, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexImage3D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *); -#define CALL_TexImage3D(disp, parameters) \ - (* GET_TexImage3D(disp)) parameters -static INLINE _glptr_TexImage3D GET_TexImage3D(struct _glapi_table *disp) { - return (_glptr_TexImage3D) (GET_by_offset(disp, _gloffset_TexImage3D)); -} - -static INLINE void SET_TexImage3D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_TexImage3D, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *); -#define CALL_TexSubImage3D(disp, parameters) \ - (* GET_TexSubImage3D(disp)) parameters -static INLINE _glptr_TexSubImage3D GET_TexSubImage3D(struct _glapi_table *disp) { - return (_glptr_TexSubImage3D) (GET_by_offset(disp, _gloffset_TexSubImage3D)); -} - -static INLINE void SET_TexSubImage3D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *)) { - SET_by_offset(disp, _gloffset_TexSubImage3D, fn); -} - -typedef void (GLAPIENTRYP _glptr_CopyTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); -#define CALL_CopyTexSubImage3D(disp, parameters) \ - (* GET_CopyTexSubImage3D(disp)) parameters -static INLINE _glptr_CopyTexSubImage3D GET_CopyTexSubImage3D(struct _glapi_table *disp) { - return (_glptr_CopyTexSubImage3D) (GET_by_offset(disp, _gloffset_CopyTexSubImage3D)); -} - -static INLINE void SET_CopyTexSubImage3D(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei)) { - SET_by_offset(disp, _gloffset_CopyTexSubImage3D, fn); -} - -typedef void (GLAPIENTRYP _glptr_ActiveTextureARB)(GLenum); -#define CALL_ActiveTextureARB(disp, parameters) \ - (* GET_ActiveTextureARB(disp)) parameters -static INLINE _glptr_ActiveTextureARB GET_ActiveTextureARB(struct _glapi_table *disp) { - return (_glptr_ActiveTextureARB) (GET_by_offset(disp, _gloffset_ActiveTextureARB)); -} - -static INLINE void SET_ActiveTextureARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_ActiveTextureARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClientActiveTextureARB)(GLenum); -#define CALL_ClientActiveTextureARB(disp, parameters) \ - (* GET_ClientActiveTextureARB(disp)) parameters -static INLINE _glptr_ClientActiveTextureARB GET_ClientActiveTextureARB(struct _glapi_table *disp) { - return (_glptr_ClientActiveTextureARB) (GET_by_offset(disp, _gloffset_ClientActiveTextureARB)); -} - -static INLINE void SET_ClientActiveTextureARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_ClientActiveTextureARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord1dARB)(GLenum, GLdouble); -#define CALL_MultiTexCoord1dARB(disp, parameters) \ - (* GET_MultiTexCoord1dARB(disp)) parameters -static INLINE _glptr_MultiTexCoord1dARB GET_MultiTexCoord1dARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord1dARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1dARB)); -} - -static INLINE void SET_MultiTexCoord1dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble)) { - SET_by_offset(disp, _gloffset_MultiTexCoord1dARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord1dvARB)(GLenum, const GLdouble *); -#define CALL_MultiTexCoord1dvARB(disp, parameters) \ - (* GET_MultiTexCoord1dvARB(disp)) parameters -static INLINE _glptr_MultiTexCoord1dvARB GET_MultiTexCoord1dvARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord1dvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1dvARB)); -} - -static INLINE void SET_MultiTexCoord1dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLdouble *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord1dvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord1fARB)(GLenum, GLfloat); -#define CALL_MultiTexCoord1fARB(disp, parameters) \ - (* GET_MultiTexCoord1fARB(disp)) parameters -static INLINE _glptr_MultiTexCoord1fARB GET_MultiTexCoord1fARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord1fARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1fARB)); -} - -static INLINE void SET_MultiTexCoord1fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_MultiTexCoord1fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord1fvARB)(GLenum, const GLfloat *); -#define CALL_MultiTexCoord1fvARB(disp, parameters) \ - (* GET_MultiTexCoord1fvARB(disp)) parameters -static INLINE _glptr_MultiTexCoord1fvARB GET_MultiTexCoord1fvARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord1fvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1fvARB)); -} - -static INLINE void SET_MultiTexCoord1fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord1fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord1iARB)(GLenum, GLint); -#define CALL_MultiTexCoord1iARB(disp, parameters) \ - (* GET_MultiTexCoord1iARB(disp)) parameters -static INLINE _glptr_MultiTexCoord1iARB GET_MultiTexCoord1iARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord1iARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1iARB)); -} - -static INLINE void SET_MultiTexCoord1iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { - SET_by_offset(disp, _gloffset_MultiTexCoord1iARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord1ivARB)(GLenum, const GLint *); -#define CALL_MultiTexCoord1ivARB(disp, parameters) \ - (* GET_MultiTexCoord1ivARB(disp)) parameters -static INLINE _glptr_MultiTexCoord1ivARB GET_MultiTexCoord1ivARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord1ivARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1ivARB)); -} - -static INLINE void SET_MultiTexCoord1ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord1ivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord1sARB)(GLenum, GLshort); -#define CALL_MultiTexCoord1sARB(disp, parameters) \ - (* GET_MultiTexCoord1sARB(disp)) parameters -static INLINE _glptr_MultiTexCoord1sARB GET_MultiTexCoord1sARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord1sARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1sARB)); -} - -static INLINE void SET_MultiTexCoord1sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLshort)) { - SET_by_offset(disp, _gloffset_MultiTexCoord1sARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord1svARB)(GLenum, const GLshort *); -#define CALL_MultiTexCoord1svARB(disp, parameters) \ - (* GET_MultiTexCoord1svARB(disp)) parameters -static INLINE _glptr_MultiTexCoord1svARB GET_MultiTexCoord1svARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord1svARB) (GET_by_offset(disp, _gloffset_MultiTexCoord1svARB)); -} - -static INLINE void SET_MultiTexCoord1svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLshort *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord1svARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord2dARB)(GLenum, GLdouble, GLdouble); -#define CALL_MultiTexCoord2dARB(disp, parameters) \ - (* GET_MultiTexCoord2dARB(disp)) parameters -static INLINE _glptr_MultiTexCoord2dARB GET_MultiTexCoord2dARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord2dARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2dARB)); -} - -static INLINE void SET_MultiTexCoord2dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_MultiTexCoord2dARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord2dvARB)(GLenum, const GLdouble *); -#define CALL_MultiTexCoord2dvARB(disp, parameters) \ - (* GET_MultiTexCoord2dvARB(disp)) parameters -static INLINE _glptr_MultiTexCoord2dvARB GET_MultiTexCoord2dvARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord2dvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2dvARB)); -} - -static INLINE void SET_MultiTexCoord2dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLdouble *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord2dvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord2fARB)(GLenum, GLfloat, GLfloat); -#define CALL_MultiTexCoord2fARB(disp, parameters) \ - (* GET_MultiTexCoord2fARB(disp)) parameters -static INLINE _glptr_MultiTexCoord2fARB GET_MultiTexCoord2fARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord2fARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2fARB)); -} - -static INLINE void SET_MultiTexCoord2fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_MultiTexCoord2fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord2fvARB)(GLenum, const GLfloat *); -#define CALL_MultiTexCoord2fvARB(disp, parameters) \ - (* GET_MultiTexCoord2fvARB(disp)) parameters -static INLINE _glptr_MultiTexCoord2fvARB GET_MultiTexCoord2fvARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord2fvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2fvARB)); -} - -static INLINE void SET_MultiTexCoord2fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord2fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord2iARB)(GLenum, GLint, GLint); -#define CALL_MultiTexCoord2iARB(disp, parameters) \ - (* GET_MultiTexCoord2iARB(disp)) parameters -static INLINE _glptr_MultiTexCoord2iARB GET_MultiTexCoord2iARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord2iARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2iARB)); -} - -static INLINE void SET_MultiTexCoord2iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint)) { - SET_by_offset(disp, _gloffset_MultiTexCoord2iARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord2ivARB)(GLenum, const GLint *); -#define CALL_MultiTexCoord2ivARB(disp, parameters) \ - (* GET_MultiTexCoord2ivARB(disp)) parameters -static INLINE _glptr_MultiTexCoord2ivARB GET_MultiTexCoord2ivARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord2ivARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2ivARB)); -} - -static INLINE void SET_MultiTexCoord2ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord2ivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord2sARB)(GLenum, GLshort, GLshort); -#define CALL_MultiTexCoord2sARB(disp, parameters) \ - (* GET_MultiTexCoord2sARB(disp)) parameters -static INLINE _glptr_MultiTexCoord2sARB GET_MultiTexCoord2sARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord2sARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2sARB)); -} - -static INLINE void SET_MultiTexCoord2sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_MultiTexCoord2sARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord2svARB)(GLenum, const GLshort *); -#define CALL_MultiTexCoord2svARB(disp, parameters) \ - (* GET_MultiTexCoord2svARB(disp)) parameters -static INLINE _glptr_MultiTexCoord2svARB GET_MultiTexCoord2svARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord2svARB) (GET_by_offset(disp, _gloffset_MultiTexCoord2svARB)); -} - -static INLINE void SET_MultiTexCoord2svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLshort *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord2svARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord3dARB)(GLenum, GLdouble, GLdouble, GLdouble); -#define CALL_MultiTexCoord3dARB(disp, parameters) \ - (* GET_MultiTexCoord3dARB(disp)) parameters -static INLINE _glptr_MultiTexCoord3dARB GET_MultiTexCoord3dARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord3dARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3dARB)); -} - -static INLINE void SET_MultiTexCoord3dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_MultiTexCoord3dARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord3dvARB)(GLenum, const GLdouble *); -#define CALL_MultiTexCoord3dvARB(disp, parameters) \ - (* GET_MultiTexCoord3dvARB(disp)) parameters -static INLINE _glptr_MultiTexCoord3dvARB GET_MultiTexCoord3dvARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord3dvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3dvARB)); -} - -static INLINE void SET_MultiTexCoord3dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLdouble *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord3dvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord3fARB)(GLenum, GLfloat, GLfloat, GLfloat); -#define CALL_MultiTexCoord3fARB(disp, parameters) \ - (* GET_MultiTexCoord3fARB(disp)) parameters -static INLINE _glptr_MultiTexCoord3fARB GET_MultiTexCoord3fARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord3fARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3fARB)); -} - -static INLINE void SET_MultiTexCoord3fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_MultiTexCoord3fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord3fvARB)(GLenum, const GLfloat *); -#define CALL_MultiTexCoord3fvARB(disp, parameters) \ - (* GET_MultiTexCoord3fvARB(disp)) parameters -static INLINE _glptr_MultiTexCoord3fvARB GET_MultiTexCoord3fvARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord3fvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3fvARB)); -} - -static INLINE void SET_MultiTexCoord3fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord3fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord3iARB)(GLenum, GLint, GLint, GLint); -#define CALL_MultiTexCoord3iARB(disp, parameters) \ - (* GET_MultiTexCoord3iARB(disp)) parameters -static INLINE _glptr_MultiTexCoord3iARB GET_MultiTexCoord3iARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord3iARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3iARB)); -} - -static INLINE void SET_MultiTexCoord3iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_MultiTexCoord3iARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord3ivARB)(GLenum, const GLint *); -#define CALL_MultiTexCoord3ivARB(disp, parameters) \ - (* GET_MultiTexCoord3ivARB(disp)) parameters -static INLINE _glptr_MultiTexCoord3ivARB GET_MultiTexCoord3ivARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord3ivARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3ivARB)); -} - -static INLINE void SET_MultiTexCoord3ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord3ivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord3sARB)(GLenum, GLshort, GLshort, GLshort); -#define CALL_MultiTexCoord3sARB(disp, parameters) \ - (* GET_MultiTexCoord3sARB(disp)) parameters -static INLINE _glptr_MultiTexCoord3sARB GET_MultiTexCoord3sARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord3sARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3sARB)); -} - -static INLINE void SET_MultiTexCoord3sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_MultiTexCoord3sARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord3svARB)(GLenum, const GLshort *); -#define CALL_MultiTexCoord3svARB(disp, parameters) \ - (* GET_MultiTexCoord3svARB(disp)) parameters -static INLINE _glptr_MultiTexCoord3svARB GET_MultiTexCoord3svARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord3svARB) (GET_by_offset(disp, _gloffset_MultiTexCoord3svARB)); -} - -static INLINE void SET_MultiTexCoord3svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLshort *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord3svARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord4dARB)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_MultiTexCoord4dARB(disp, parameters) \ - (* GET_MultiTexCoord4dARB(disp)) parameters -static INLINE _glptr_MultiTexCoord4dARB GET_MultiTexCoord4dARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord4dARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4dARB)); -} - -static INLINE void SET_MultiTexCoord4dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_MultiTexCoord4dARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord4dvARB)(GLenum, const GLdouble *); -#define CALL_MultiTexCoord4dvARB(disp, parameters) \ - (* GET_MultiTexCoord4dvARB(disp)) parameters -static INLINE _glptr_MultiTexCoord4dvARB GET_MultiTexCoord4dvARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord4dvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4dvARB)); -} - -static INLINE void SET_MultiTexCoord4dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLdouble *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord4dvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord4fARB)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_MultiTexCoord4fARB(disp, parameters) \ - (* GET_MultiTexCoord4fARB(disp)) parameters -static INLINE _glptr_MultiTexCoord4fARB GET_MultiTexCoord4fARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord4fARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4fARB)); -} - -static INLINE void SET_MultiTexCoord4fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_MultiTexCoord4fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord4fvARB)(GLenum, const GLfloat *); -#define CALL_MultiTexCoord4fvARB(disp, parameters) \ - (* GET_MultiTexCoord4fvARB(disp)) parameters -static INLINE _glptr_MultiTexCoord4fvARB GET_MultiTexCoord4fvARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord4fvARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4fvARB)); -} - -static INLINE void SET_MultiTexCoord4fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord4fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord4iARB)(GLenum, GLint, GLint, GLint, GLint); -#define CALL_MultiTexCoord4iARB(disp, parameters) \ - (* GET_MultiTexCoord4iARB(disp)) parameters -static INLINE _glptr_MultiTexCoord4iARB GET_MultiTexCoord4iARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord4iARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4iARB)); -} - -static INLINE void SET_MultiTexCoord4iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_MultiTexCoord4iARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord4ivARB)(GLenum, const GLint *); -#define CALL_MultiTexCoord4ivARB(disp, parameters) \ - (* GET_MultiTexCoord4ivARB(disp)) parameters -static INLINE _glptr_MultiTexCoord4ivARB GET_MultiTexCoord4ivARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord4ivARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4ivARB)); -} - -static INLINE void SET_MultiTexCoord4ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord4ivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord4sARB)(GLenum, GLshort, GLshort, GLshort, GLshort); -#define CALL_MultiTexCoord4sARB(disp, parameters) \ - (* GET_MultiTexCoord4sARB(disp)) parameters -static INLINE _glptr_MultiTexCoord4sARB GET_MultiTexCoord4sARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord4sARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4sARB)); -} - -static INLINE void SET_MultiTexCoord4sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLshort, GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_MultiTexCoord4sARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiTexCoord4svARB)(GLenum, const GLshort *); -#define CALL_MultiTexCoord4svARB(disp, parameters) \ - (* GET_MultiTexCoord4svARB(disp)) parameters -static INLINE _glptr_MultiTexCoord4svARB GET_MultiTexCoord4svARB(struct _glapi_table *disp) { - return (_glptr_MultiTexCoord4svARB) (GET_by_offset(disp, _gloffset_MultiTexCoord4svARB)); -} - -static INLINE void SET_MultiTexCoord4svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLshort *)) { - SET_by_offset(disp, _gloffset_MultiTexCoord4svARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_AttachShader)(GLuint, GLuint); -#define CALL_AttachShader(disp, parameters) \ - (* GET_AttachShader(disp)) parameters -static INLINE _glptr_AttachShader GET_AttachShader(struct _glapi_table *disp) { - return (_glptr_AttachShader) (GET_by_offset(disp, _gloffset_AttachShader)); -} - -static INLINE void SET_AttachShader(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_AttachShader, fn); -} - -typedef GLuint (GLAPIENTRYP _glptr_CreateProgram)(void); -#define CALL_CreateProgram(disp, parameters) \ - (* GET_CreateProgram(disp)) parameters -static INLINE _glptr_CreateProgram GET_CreateProgram(struct _glapi_table *disp) { - return (_glptr_CreateProgram) (GET_by_offset(disp, _gloffset_CreateProgram)); -} - -static INLINE void SET_CreateProgram(struct _glapi_table *disp, GLuint (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_CreateProgram, fn); -} - -typedef GLuint (GLAPIENTRYP _glptr_CreateShader)(GLenum); -#define CALL_CreateShader(disp, parameters) \ - (* GET_CreateShader(disp)) parameters -static INLINE _glptr_CreateShader GET_CreateShader(struct _glapi_table *disp) { - return (_glptr_CreateShader) (GET_by_offset(disp, _gloffset_CreateShader)); -} - -static INLINE void SET_CreateShader(struct _glapi_table *disp, GLuint (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_CreateShader, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteProgram)(GLuint); -#define CALL_DeleteProgram(disp, parameters) \ - (* GET_DeleteProgram(disp)) parameters -static INLINE _glptr_DeleteProgram GET_DeleteProgram(struct _glapi_table *disp) { - return (_glptr_DeleteProgram) (GET_by_offset(disp, _gloffset_DeleteProgram)); -} - -static INLINE void SET_DeleteProgram(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_DeleteProgram, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteShader)(GLuint); -#define CALL_DeleteShader(disp, parameters) \ - (* GET_DeleteShader(disp)) parameters -static INLINE _glptr_DeleteShader GET_DeleteShader(struct _glapi_table *disp) { - return (_glptr_DeleteShader) (GET_by_offset(disp, _gloffset_DeleteShader)); -} - -static INLINE void SET_DeleteShader(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_DeleteShader, fn); -} - -typedef void (GLAPIENTRYP _glptr_DetachShader)(GLuint, GLuint); -#define CALL_DetachShader(disp, parameters) \ - (* GET_DetachShader(disp)) parameters -static INLINE _glptr_DetachShader GET_DetachShader(struct _glapi_table *disp) { - return (_glptr_DetachShader) (GET_by_offset(disp, _gloffset_DetachShader)); -} - -static INLINE void SET_DetachShader(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_DetachShader, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetAttachedShaders)(GLuint, GLsizei, GLsizei *, GLuint *); -#define CALL_GetAttachedShaders(disp, parameters) \ - (* GET_GetAttachedShaders(disp)) parameters -static INLINE _glptr_GetAttachedShaders GET_GetAttachedShaders(struct _glapi_table *disp) { - return (_glptr_GetAttachedShaders) (GET_by_offset(disp, _gloffset_GetAttachedShaders)); -} - -static INLINE void SET_GetAttachedShaders(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, GLsizei *, GLuint *)) { - SET_by_offset(disp, _gloffset_GetAttachedShaders, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *); -#define CALL_GetProgramInfoLog(disp, parameters) \ - (* GET_GetProgramInfoLog(disp)) parameters -static INLINE _glptr_GetProgramInfoLog GET_GetProgramInfoLog(struct _glapi_table *disp) { - return (_glptr_GetProgramInfoLog) (GET_by_offset(disp, _gloffset_GetProgramInfoLog)); -} - -static INLINE void SET_GetProgramInfoLog(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, GLsizei *, GLchar *)) { - SET_by_offset(disp, _gloffset_GetProgramInfoLog, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramiv)(GLuint, GLenum, GLint *); -#define CALL_GetProgramiv(disp, parameters) \ - (* GET_GetProgramiv(disp)) parameters -static INLINE _glptr_GetProgramiv GET_GetProgramiv(struct _glapi_table *disp) { - return (_glptr_GetProgramiv) (GET_by_offset(disp, _gloffset_GetProgramiv)); -} - -static INLINE void SET_GetProgramiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetProgramiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetShaderInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *); -#define CALL_GetShaderInfoLog(disp, parameters) \ - (* GET_GetShaderInfoLog(disp)) parameters -static INLINE _glptr_GetShaderInfoLog GET_GetShaderInfoLog(struct _glapi_table *disp) { - return (_glptr_GetShaderInfoLog) (GET_by_offset(disp, _gloffset_GetShaderInfoLog)); -} - -static INLINE void SET_GetShaderInfoLog(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, GLsizei *, GLchar *)) { - SET_by_offset(disp, _gloffset_GetShaderInfoLog, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetShaderiv)(GLuint, GLenum, GLint *); -#define CALL_GetShaderiv(disp, parameters) \ - (* GET_GetShaderiv(disp)) parameters -static INLINE _glptr_GetShaderiv GET_GetShaderiv(struct _glapi_table *disp) { - return (_glptr_GetShaderiv) (GET_by_offset(disp, _gloffset_GetShaderiv)); -} - -static INLINE void SET_GetShaderiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetShaderiv, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsProgram)(GLuint); -#define CALL_IsProgram(disp, parameters) \ - (* GET_IsProgram(disp)) parameters -static INLINE _glptr_IsProgram GET_IsProgram(struct _glapi_table *disp) { - return (_glptr_IsProgram) (GET_by_offset(disp, _gloffset_IsProgram)); -} - -static INLINE void SET_IsProgram(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IsProgram, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsShader)(GLuint); -#define CALL_IsShader(disp, parameters) \ - (* GET_IsShader(disp)) parameters -static INLINE _glptr_IsShader GET_IsShader(struct _glapi_table *disp) { - return (_glptr_IsShader) (GET_by_offset(disp, _gloffset_IsShader)); -} - -static INLINE void SET_IsShader(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IsShader, fn); -} - -typedef void (GLAPIENTRYP _glptr_StencilFuncSeparate)(GLenum, GLenum, GLint, GLuint); -#define CALL_StencilFuncSeparate(disp, parameters) \ - (* GET_StencilFuncSeparate(disp)) parameters -static INLINE _glptr_StencilFuncSeparate GET_StencilFuncSeparate(struct _glapi_table *disp) { - return (_glptr_StencilFuncSeparate) (GET_by_offset(disp, _gloffset_StencilFuncSeparate)); -} - -static INLINE void SET_StencilFuncSeparate(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint, GLuint)) { - SET_by_offset(disp, _gloffset_StencilFuncSeparate, fn); -} - -typedef void (GLAPIENTRYP _glptr_StencilMaskSeparate)(GLenum, GLuint); -#define CALL_StencilMaskSeparate(disp, parameters) \ - (* GET_StencilMaskSeparate(disp)) parameters -static INLINE _glptr_StencilMaskSeparate GET_StencilMaskSeparate(struct _glapi_table *disp) { - return (_glptr_StencilMaskSeparate) (GET_by_offset(disp, _gloffset_StencilMaskSeparate)); -} - -static INLINE void SET_StencilMaskSeparate(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_StencilMaskSeparate, fn); -} - -typedef void (GLAPIENTRYP _glptr_StencilOpSeparate)(GLenum, GLenum, GLenum, GLenum); -#define CALL_StencilOpSeparate(disp, parameters) \ - (* GET_StencilOpSeparate(disp)) parameters -static INLINE _glptr_StencilOpSeparate GET_StencilOpSeparate(struct _glapi_table *disp) { - return (_glptr_StencilOpSeparate) (GET_by_offset(disp, _gloffset_StencilOpSeparate)); -} - -static INLINE void SET_StencilOpSeparate(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_StencilOpSeparate, fn); -} - -typedef void (GLAPIENTRYP _glptr_UniformMatrix2x3fv)(GLint, GLsizei, GLboolean, const GLfloat *); -#define CALL_UniformMatrix2x3fv(disp, parameters) \ - (* GET_UniformMatrix2x3fv(disp)) parameters -static INLINE _glptr_UniformMatrix2x3fv GET_UniformMatrix2x3fv(struct _glapi_table *disp) { - return (_glptr_UniformMatrix2x3fv) (GET_by_offset(disp, _gloffset_UniformMatrix2x3fv)); -} - -static INLINE void SET_UniformMatrix2x3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { - SET_by_offset(disp, _gloffset_UniformMatrix2x3fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_UniformMatrix2x4fv)(GLint, GLsizei, GLboolean, const GLfloat *); -#define CALL_UniformMatrix2x4fv(disp, parameters) \ - (* GET_UniformMatrix2x4fv(disp)) parameters -static INLINE _glptr_UniformMatrix2x4fv GET_UniformMatrix2x4fv(struct _glapi_table *disp) { - return (_glptr_UniformMatrix2x4fv) (GET_by_offset(disp, _gloffset_UniformMatrix2x4fv)); -} - -static INLINE void SET_UniformMatrix2x4fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { - SET_by_offset(disp, _gloffset_UniformMatrix2x4fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_UniformMatrix3x2fv)(GLint, GLsizei, GLboolean, const GLfloat *); -#define CALL_UniformMatrix3x2fv(disp, parameters) \ - (* GET_UniformMatrix3x2fv(disp)) parameters -static INLINE _glptr_UniformMatrix3x2fv GET_UniformMatrix3x2fv(struct _glapi_table *disp) { - return (_glptr_UniformMatrix3x2fv) (GET_by_offset(disp, _gloffset_UniformMatrix3x2fv)); -} - -static INLINE void SET_UniformMatrix3x2fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { - SET_by_offset(disp, _gloffset_UniformMatrix3x2fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_UniformMatrix3x4fv)(GLint, GLsizei, GLboolean, const GLfloat *); -#define CALL_UniformMatrix3x4fv(disp, parameters) \ - (* GET_UniformMatrix3x4fv(disp)) parameters -static INLINE _glptr_UniformMatrix3x4fv GET_UniformMatrix3x4fv(struct _glapi_table *disp) { - return (_glptr_UniformMatrix3x4fv) (GET_by_offset(disp, _gloffset_UniformMatrix3x4fv)); -} - -static INLINE void SET_UniformMatrix3x4fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { - SET_by_offset(disp, _gloffset_UniformMatrix3x4fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_UniformMatrix4x2fv)(GLint, GLsizei, GLboolean, const GLfloat *); -#define CALL_UniformMatrix4x2fv(disp, parameters) \ - (* GET_UniformMatrix4x2fv(disp)) parameters -static INLINE _glptr_UniformMatrix4x2fv GET_UniformMatrix4x2fv(struct _glapi_table *disp) { - return (_glptr_UniformMatrix4x2fv) (GET_by_offset(disp, _gloffset_UniformMatrix4x2fv)); -} - -static INLINE void SET_UniformMatrix4x2fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { - SET_by_offset(disp, _gloffset_UniformMatrix4x2fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_UniformMatrix4x3fv)(GLint, GLsizei, GLboolean, const GLfloat *); -#define CALL_UniformMatrix4x3fv(disp, parameters) \ - (* GET_UniformMatrix4x3fv(disp)) parameters -static INLINE _glptr_UniformMatrix4x3fv GET_UniformMatrix4x3fv(struct _glapi_table *disp) { - return (_glptr_UniformMatrix4x3fv) (GET_by_offset(disp, _gloffset_UniformMatrix4x3fv)); -} - -static INLINE void SET_UniformMatrix4x3fv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { - SET_by_offset(disp, _gloffset_UniformMatrix4x3fv, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClampColor)(GLenum, GLenum); -#define CALL_ClampColor(disp, parameters) \ - (* GET_ClampColor(disp)) parameters -static INLINE _glptr_ClampColor GET_ClampColor(struct _glapi_table *disp) { - return (_glptr_ClampColor) (GET_by_offset(disp, _gloffset_ClampColor)); -} - -static INLINE void SET_ClampColor(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_ClampColor, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClearBufferfi)(GLenum, GLint, GLfloat, GLint); -#define CALL_ClearBufferfi(disp, parameters) \ - (* GET_ClearBufferfi(disp)) parameters -static INLINE _glptr_ClearBufferfi GET_ClearBufferfi(struct _glapi_table *disp) { - return (_glptr_ClearBufferfi) (GET_by_offset(disp, _gloffset_ClearBufferfi)); -} - -static INLINE void SET_ClearBufferfi(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLfloat, GLint)) { - SET_by_offset(disp, _gloffset_ClearBufferfi, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClearBufferfv)(GLenum, GLint, const GLfloat *); -#define CALL_ClearBufferfv(disp, parameters) \ - (* GET_ClearBufferfv(disp)) parameters -static INLINE _glptr_ClearBufferfv GET_ClearBufferfv(struct _glapi_table *disp) { - return (_glptr_ClearBufferfv) (GET_by_offset(disp, _gloffset_ClearBufferfv)); -} - -static INLINE void SET_ClearBufferfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_ClearBufferfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClearBufferiv)(GLenum, GLint, const GLint *); -#define CALL_ClearBufferiv(disp, parameters) \ - (* GET_ClearBufferiv(disp)) parameters -static INLINE _glptr_ClearBufferiv GET_ClearBufferiv(struct _glapi_table *disp) { - return (_glptr_ClearBufferiv) (GET_by_offset(disp, _gloffset_ClearBufferiv)); -} - -static INLINE void SET_ClearBufferiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, const GLint *)) { - SET_by_offset(disp, _gloffset_ClearBufferiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClearBufferuiv)(GLenum, GLint, const GLuint *); -#define CALL_ClearBufferuiv(disp, parameters) \ - (* GET_ClearBufferuiv(disp)) parameters -static INLINE _glptr_ClearBufferuiv GET_ClearBufferuiv(struct _glapi_table *disp) { - return (_glptr_ClearBufferuiv) (GET_by_offset(disp, _gloffset_ClearBufferuiv)); -} - -static INLINE void SET_ClearBufferuiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, const GLuint *)) { - SET_by_offset(disp, _gloffset_ClearBufferuiv, fn); -} - -typedef const GLubyte * (GLAPIENTRYP _glptr_GetStringi)(GLenum, GLuint); -#define CALL_GetStringi(disp, parameters) \ - (* GET_GetStringi(disp)) parameters -static INLINE _glptr_GetStringi GET_GetStringi(struct _glapi_table *disp) { - return (_glptr_GetStringi) (GET_by_offset(disp, _gloffset_GetStringi)); -} - -static INLINE void SET_GetStringi(struct _glapi_table *disp, const GLubyte * (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_GetStringi, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexBuffer)(GLenum, GLenum, GLuint); -#define CALL_TexBuffer(disp, parameters) \ - (* GET_TexBuffer(disp)) parameters -static INLINE _glptr_TexBuffer GET_TexBuffer(struct _glapi_table *disp) { - return (_glptr_TexBuffer) (GET_by_offset(disp, _gloffset_TexBuffer)); -} - -static INLINE void SET_TexBuffer(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_TexBuffer, fn); -} - -typedef void (GLAPIENTRYP _glptr_FramebufferTexture)(GLenum, GLenum, GLuint, GLint); -#define CALL_FramebufferTexture(disp, parameters) \ - (* GET_FramebufferTexture(disp)) parameters -static INLINE _glptr_FramebufferTexture GET_FramebufferTexture(struct _glapi_table *disp) { - return (_glptr_FramebufferTexture) (GET_by_offset(disp, _gloffset_FramebufferTexture)); -} - -static INLINE void SET_FramebufferTexture(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint, GLint)) { - SET_by_offset(disp, _gloffset_FramebufferTexture, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetBufferParameteri64v)(GLenum, GLenum, GLint64 *); -#define CALL_GetBufferParameteri64v(disp, parameters) \ - (* GET_GetBufferParameteri64v(disp)) parameters -static INLINE _glptr_GetBufferParameteri64v GET_GetBufferParameteri64v(struct _glapi_table *disp) { - return (_glptr_GetBufferParameteri64v) (GET_by_offset(disp, _gloffset_GetBufferParameteri64v)); -} - -static INLINE void SET_GetBufferParameteri64v(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint64 *)) { - SET_by_offset(disp, _gloffset_GetBufferParameteri64v, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetInteger64i_v)(GLenum, GLuint, GLint64 *); -#define CALL_GetInteger64i_v(disp, parameters) \ - (* GET_GetInteger64i_v(disp)) parameters -static INLINE _glptr_GetInteger64i_v GET_GetInteger64i_v(struct _glapi_table *disp) { - return (_glptr_GetInteger64i_v) (GET_by_offset(disp, _gloffset_GetInteger64i_v)); -} - -static INLINE void SET_GetInteger64i_v(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLint64 *)) { - SET_by_offset(disp, _gloffset_GetInteger64i_v, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribDivisor)(GLuint, GLuint); -#define CALL_VertexAttribDivisor(disp, parameters) \ - (* GET_VertexAttribDivisor(disp)) parameters -static INLINE _glptr_VertexAttribDivisor GET_VertexAttribDivisor(struct _glapi_table *disp) { - return (_glptr_VertexAttribDivisor) (GET_by_offset(disp, _gloffset_VertexAttribDivisor)); -} - -static INLINE void SET_VertexAttribDivisor(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_VertexAttribDivisor, fn); -} - -typedef void (GLAPIENTRYP _glptr_LoadTransposeMatrixdARB)(const GLdouble *); -#define CALL_LoadTransposeMatrixdARB(disp, parameters) \ - (* GET_LoadTransposeMatrixdARB(disp)) parameters -static INLINE _glptr_LoadTransposeMatrixdARB GET_LoadTransposeMatrixdARB(struct _glapi_table *disp) { - return (_glptr_LoadTransposeMatrixdARB) (GET_by_offset(disp, _gloffset_LoadTransposeMatrixdARB)); -} - -static INLINE void SET_LoadTransposeMatrixdARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_LoadTransposeMatrixdARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_LoadTransposeMatrixfARB)(const GLfloat *); -#define CALL_LoadTransposeMatrixfARB(disp, parameters) \ - (* GET_LoadTransposeMatrixfARB(disp)) parameters -static INLINE _glptr_LoadTransposeMatrixfARB GET_LoadTransposeMatrixfARB(struct _glapi_table *disp) { - return (_glptr_LoadTransposeMatrixfARB) (GET_by_offset(disp, _gloffset_LoadTransposeMatrixfARB)); -} - -static INLINE void SET_LoadTransposeMatrixfARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_LoadTransposeMatrixfARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultTransposeMatrixdARB)(const GLdouble *); -#define CALL_MultTransposeMatrixdARB(disp, parameters) \ - (* GET_MultTransposeMatrixdARB(disp)) parameters -static INLINE _glptr_MultTransposeMatrixdARB GET_MultTransposeMatrixdARB(struct _glapi_table *disp) { - return (_glptr_MultTransposeMatrixdARB) (GET_by_offset(disp, _gloffset_MultTransposeMatrixdARB)); -} - -static INLINE void SET_MultTransposeMatrixdARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_MultTransposeMatrixdARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultTransposeMatrixfARB)(const GLfloat *); -#define CALL_MultTransposeMatrixfARB(disp, parameters) \ - (* GET_MultTransposeMatrixfARB(disp)) parameters -static INLINE _glptr_MultTransposeMatrixfARB GET_MultTransposeMatrixfARB(struct _glapi_table *disp) { - return (_glptr_MultTransposeMatrixfARB) (GET_by_offset(disp, _gloffset_MultTransposeMatrixfARB)); -} - -static INLINE void SET_MultTransposeMatrixfARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_MultTransposeMatrixfARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_SampleCoverageARB)(GLclampf, GLboolean); -#define CALL_SampleCoverageARB(disp, parameters) \ - (* GET_SampleCoverageARB(disp)) parameters -static INLINE _glptr_SampleCoverageARB GET_SampleCoverageARB(struct _glapi_table *disp) { - return (_glptr_SampleCoverageARB) (GET_by_offset(disp, _gloffset_SampleCoverageARB)); -} - -static INLINE void SET_SampleCoverageARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampf, GLboolean)) { - SET_by_offset(disp, _gloffset_SampleCoverageARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_CompressedTexImage1DARB)(GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *); -#define CALL_CompressedTexImage1DARB(disp, parameters) \ - (* GET_CompressedTexImage1DARB(disp)) parameters -static INLINE _glptr_CompressedTexImage1DARB GET_CompressedTexImage1DARB(struct _glapi_table *disp) { - return (_glptr_CompressedTexImage1DARB) (GET_by_offset(disp, _gloffset_CompressedTexImage1DARB)); -} - -static INLINE void SET_CompressedTexImage1DARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_CompressedTexImage1DARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_CompressedTexImage2DARB)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); -#define CALL_CompressedTexImage2DARB(disp, parameters) \ - (* GET_CompressedTexImage2DARB(disp)) parameters -static INLINE _glptr_CompressedTexImage2DARB GET_CompressedTexImage2DARB(struct _glapi_table *disp) { - return (_glptr_CompressedTexImage2DARB) (GET_by_offset(disp, _gloffset_CompressedTexImage2DARB)); -} - -static INLINE void SET_CompressedTexImage2DARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_CompressedTexImage2DARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_CompressedTexImage3DARB)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *); -#define CALL_CompressedTexImage3DARB(disp, parameters) \ - (* GET_CompressedTexImage3DARB(disp)) parameters -static INLINE _glptr_CompressedTexImage3DARB GET_CompressedTexImage3DARB(struct _glapi_table *disp) { - return (_glptr_CompressedTexImage3DARB) (GET_by_offset(disp, _gloffset_CompressedTexImage3DARB)); -} - -static INLINE void SET_CompressedTexImage3DARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_CompressedTexImage3DARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_CompressedTexSubImage1DARB)(GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *); -#define CALL_CompressedTexSubImage1DARB(disp, parameters) \ - (* GET_CompressedTexSubImage1DARB(disp)) parameters -static INLINE _glptr_CompressedTexSubImage1DARB GET_CompressedTexSubImage1DARB(struct _glapi_table *disp) { - return (_glptr_CompressedTexSubImage1DARB) (GET_by_offset(disp, _gloffset_CompressedTexSubImage1DARB)); -} - -static INLINE void SET_CompressedTexSubImage1DARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_CompressedTexSubImage1DARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_CompressedTexSubImage2DARB)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); -#define CALL_CompressedTexSubImage2DARB(disp, parameters) \ - (* GET_CompressedTexSubImage2DARB(disp)) parameters -static INLINE _glptr_CompressedTexSubImage2DARB GET_CompressedTexSubImage2DARB(struct _glapi_table *disp) { - return (_glptr_CompressedTexSubImage2DARB) (GET_by_offset(disp, _gloffset_CompressedTexSubImage2DARB)); -} - -static INLINE void SET_CompressedTexSubImage2DARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_CompressedTexSubImage2DARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_CompressedTexSubImage3DARB)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *); -#define CALL_CompressedTexSubImage3DARB(disp, parameters) \ - (* GET_CompressedTexSubImage3DARB(disp)) parameters -static INLINE _glptr_CompressedTexSubImage3DARB GET_CompressedTexSubImage3DARB(struct _glapi_table *disp) { - return (_glptr_CompressedTexSubImage3DARB) (GET_by_offset(disp, _gloffset_CompressedTexSubImage3DARB)); -} - -static INLINE void SET_CompressedTexSubImage3DARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_CompressedTexSubImage3DARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetCompressedTexImageARB)(GLenum, GLint, GLvoid *); -#define CALL_GetCompressedTexImageARB(disp, parameters) \ - (* GET_GetCompressedTexImageARB(disp)) parameters -static INLINE _glptr_GetCompressedTexImageARB GET_GetCompressedTexImageARB(struct _glapi_table *disp) { - return (_glptr_GetCompressedTexImageARB) (GET_by_offset(disp, _gloffset_GetCompressedTexImageARB)); -} - -static INLINE void SET_GetCompressedTexImageARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetCompressedTexImageARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_DisableVertexAttribArrayARB)(GLuint); -#define CALL_DisableVertexAttribArrayARB(disp, parameters) \ - (* GET_DisableVertexAttribArrayARB(disp)) parameters -static INLINE _glptr_DisableVertexAttribArrayARB GET_DisableVertexAttribArrayARB(struct _glapi_table *disp) { - return (_glptr_DisableVertexAttribArrayARB) (GET_by_offset(disp, _gloffset_DisableVertexAttribArrayARB)); -} - -static INLINE void SET_DisableVertexAttribArrayARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_DisableVertexAttribArrayARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_EnableVertexAttribArrayARB)(GLuint); -#define CALL_EnableVertexAttribArrayARB(disp, parameters) \ - (* GET_EnableVertexAttribArrayARB(disp)) parameters -static INLINE _glptr_EnableVertexAttribArrayARB GET_EnableVertexAttribArrayARB(struct _glapi_table *disp) { - return (_glptr_EnableVertexAttribArrayARB) (GET_by_offset(disp, _gloffset_EnableVertexAttribArrayARB)); -} - -static INLINE void SET_EnableVertexAttribArrayARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_EnableVertexAttribArrayARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramEnvParameterdvARB)(GLenum, GLuint, GLdouble *); -#define CALL_GetProgramEnvParameterdvARB(disp, parameters) \ - (* GET_GetProgramEnvParameterdvARB(disp)) parameters -static INLINE _glptr_GetProgramEnvParameterdvARB GET_GetProgramEnvParameterdvARB(struct _glapi_table *disp) { - return (_glptr_GetProgramEnvParameterdvARB) (GET_by_offset(disp, _gloffset_GetProgramEnvParameterdvARB)); -} - -static INLINE void SET_GetProgramEnvParameterdvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLdouble *)) { - SET_by_offset(disp, _gloffset_GetProgramEnvParameterdvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramEnvParameterfvARB)(GLenum, GLuint, GLfloat *); -#define CALL_GetProgramEnvParameterfvARB(disp, parameters) \ - (* GET_GetProgramEnvParameterfvARB(disp)) parameters -static INLINE _glptr_GetProgramEnvParameterfvARB GET_GetProgramEnvParameterfvARB(struct _glapi_table *disp) { - return (_glptr_GetProgramEnvParameterfvARB) (GET_by_offset(disp, _gloffset_GetProgramEnvParameterfvARB)); -} - -static INLINE void SET_GetProgramEnvParameterfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetProgramEnvParameterfvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramLocalParameterdvARB)(GLenum, GLuint, GLdouble *); -#define CALL_GetProgramLocalParameterdvARB(disp, parameters) \ - (* GET_GetProgramLocalParameterdvARB(disp)) parameters -static INLINE _glptr_GetProgramLocalParameterdvARB GET_GetProgramLocalParameterdvARB(struct _glapi_table *disp) { - return (_glptr_GetProgramLocalParameterdvARB) (GET_by_offset(disp, _gloffset_GetProgramLocalParameterdvARB)); -} - -static INLINE void SET_GetProgramLocalParameterdvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLdouble *)) { - SET_by_offset(disp, _gloffset_GetProgramLocalParameterdvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramLocalParameterfvARB)(GLenum, GLuint, GLfloat *); -#define CALL_GetProgramLocalParameterfvARB(disp, parameters) \ - (* GET_GetProgramLocalParameterfvARB(disp)) parameters -static INLINE _glptr_GetProgramLocalParameterfvARB GET_GetProgramLocalParameterfvARB(struct _glapi_table *disp) { - return (_glptr_GetProgramLocalParameterfvARB) (GET_by_offset(disp, _gloffset_GetProgramLocalParameterfvARB)); -} - -static INLINE void SET_GetProgramLocalParameterfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetProgramLocalParameterfvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramStringARB)(GLenum, GLenum, GLvoid *); -#define CALL_GetProgramStringARB(disp, parameters) \ - (* GET_GetProgramStringARB(disp)) parameters -static INLINE _glptr_GetProgramStringARB GET_GetProgramStringARB(struct _glapi_table *disp) { - return (_glptr_GetProgramStringARB) (GET_by_offset(disp, _gloffset_GetProgramStringARB)); -} - -static INLINE void SET_GetProgramStringARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetProgramStringARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramivARB)(GLenum, GLenum, GLint *); -#define CALL_GetProgramivARB(disp, parameters) \ - (* GET_GetProgramivARB(disp)) parameters -static INLINE _glptr_GetProgramivARB GET_GetProgramivARB(struct _glapi_table *disp) { - return (_glptr_GetProgramivARB) (GET_by_offset(disp, _gloffset_GetProgramivARB)); -} - -static INLINE void SET_GetProgramivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetProgramivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetVertexAttribdvARB)(GLuint, GLenum, GLdouble *); -#define CALL_GetVertexAttribdvARB(disp, parameters) \ - (* GET_GetVertexAttribdvARB(disp)) parameters -static INLINE _glptr_GetVertexAttribdvARB GET_GetVertexAttribdvARB(struct _glapi_table *disp) { - return (_glptr_GetVertexAttribdvARB) (GET_by_offset(disp, _gloffset_GetVertexAttribdvARB)); -} - -static INLINE void SET_GetVertexAttribdvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLdouble *)) { - SET_by_offset(disp, _gloffset_GetVertexAttribdvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetVertexAttribfvARB)(GLuint, GLenum, GLfloat *); -#define CALL_GetVertexAttribfvARB(disp, parameters) \ - (* GET_GetVertexAttribfvARB(disp)) parameters -static INLINE _glptr_GetVertexAttribfvARB GET_GetVertexAttribfvARB(struct _glapi_table *disp) { - return (_glptr_GetVertexAttribfvARB) (GET_by_offset(disp, _gloffset_GetVertexAttribfvARB)); -} - -static INLINE void SET_GetVertexAttribfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetVertexAttribfvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetVertexAttribivARB)(GLuint, GLenum, GLint *); -#define CALL_GetVertexAttribivARB(disp, parameters) \ - (* GET_GetVertexAttribivARB(disp)) parameters -static INLINE _glptr_GetVertexAttribivARB GET_GetVertexAttribivARB(struct _glapi_table *disp) { - return (_glptr_GetVertexAttribivARB) (GET_by_offset(disp, _gloffset_GetVertexAttribivARB)); -} - -static INLINE void SET_GetVertexAttribivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetVertexAttribivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramEnvParameter4dARB)(GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_ProgramEnvParameter4dARB(disp, parameters) \ - (* GET_ProgramEnvParameter4dARB(disp)) parameters -static INLINE _glptr_ProgramEnvParameter4dARB GET_ProgramEnvParameter4dARB(struct _glapi_table *disp) { - return (_glptr_ProgramEnvParameter4dARB) (GET_by_offset(disp, _gloffset_ProgramEnvParameter4dARB)); -} - -static INLINE void SET_ProgramEnvParameter4dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_ProgramEnvParameter4dARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramEnvParameter4dvARB)(GLenum, GLuint, const GLdouble *); -#define CALL_ProgramEnvParameter4dvARB(disp, parameters) \ - (* GET_ProgramEnvParameter4dvARB(disp)) parameters -static INLINE _glptr_ProgramEnvParameter4dvARB GET_ProgramEnvParameter4dvARB(struct _glapi_table *disp) { - return (_glptr_ProgramEnvParameter4dvARB) (GET_by_offset(disp, _gloffset_ProgramEnvParameter4dvARB)); -} - -static INLINE void SET_ProgramEnvParameter4dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, const GLdouble *)) { - SET_by_offset(disp, _gloffset_ProgramEnvParameter4dvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramEnvParameter4fARB)(GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_ProgramEnvParameter4fARB(disp, parameters) \ - (* GET_ProgramEnvParameter4fARB(disp)) parameters -static INLINE _glptr_ProgramEnvParameter4fARB GET_ProgramEnvParameter4fARB(struct _glapi_table *disp) { - return (_glptr_ProgramEnvParameter4fARB) (GET_by_offset(disp, _gloffset_ProgramEnvParameter4fARB)); -} - -static INLINE void SET_ProgramEnvParameter4fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_ProgramEnvParameter4fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramEnvParameter4fvARB)(GLenum, GLuint, const GLfloat *); -#define CALL_ProgramEnvParameter4fvARB(disp, parameters) \ - (* GET_ProgramEnvParameter4fvARB(disp)) parameters -static INLINE _glptr_ProgramEnvParameter4fvARB GET_ProgramEnvParameter4fvARB(struct _glapi_table *disp) { - return (_glptr_ProgramEnvParameter4fvARB) (GET_by_offset(disp, _gloffset_ProgramEnvParameter4fvARB)); -} - -static INLINE void SET_ProgramEnvParameter4fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_ProgramEnvParameter4fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramLocalParameter4dARB)(GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_ProgramLocalParameter4dARB(disp, parameters) \ - (* GET_ProgramLocalParameter4dARB(disp)) parameters -static INLINE _glptr_ProgramLocalParameter4dARB GET_ProgramLocalParameter4dARB(struct _glapi_table *disp) { - return (_glptr_ProgramLocalParameter4dARB) (GET_by_offset(disp, _gloffset_ProgramLocalParameter4dARB)); -} - -static INLINE void SET_ProgramLocalParameter4dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_ProgramLocalParameter4dARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramLocalParameter4dvARB)(GLenum, GLuint, const GLdouble *); -#define CALL_ProgramLocalParameter4dvARB(disp, parameters) \ - (* GET_ProgramLocalParameter4dvARB(disp)) parameters -static INLINE _glptr_ProgramLocalParameter4dvARB GET_ProgramLocalParameter4dvARB(struct _glapi_table *disp) { - return (_glptr_ProgramLocalParameter4dvARB) (GET_by_offset(disp, _gloffset_ProgramLocalParameter4dvARB)); -} - -static INLINE void SET_ProgramLocalParameter4dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, const GLdouble *)) { - SET_by_offset(disp, _gloffset_ProgramLocalParameter4dvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramLocalParameter4fARB)(GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_ProgramLocalParameter4fARB(disp, parameters) \ - (* GET_ProgramLocalParameter4fARB(disp)) parameters -static INLINE _glptr_ProgramLocalParameter4fARB GET_ProgramLocalParameter4fARB(struct _glapi_table *disp) { - return (_glptr_ProgramLocalParameter4fARB) (GET_by_offset(disp, _gloffset_ProgramLocalParameter4fARB)); -} - -static INLINE void SET_ProgramLocalParameter4fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_ProgramLocalParameter4fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramLocalParameter4fvARB)(GLenum, GLuint, const GLfloat *); -#define CALL_ProgramLocalParameter4fvARB(disp, parameters) \ - (* GET_ProgramLocalParameter4fvARB(disp)) parameters -static INLINE _glptr_ProgramLocalParameter4fvARB GET_ProgramLocalParameter4fvARB(struct _glapi_table *disp) { - return (_glptr_ProgramLocalParameter4fvARB) (GET_by_offset(disp, _gloffset_ProgramLocalParameter4fvARB)); -} - -static INLINE void SET_ProgramLocalParameter4fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_ProgramLocalParameter4fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramStringARB)(GLenum, GLenum, GLsizei, const GLvoid *); -#define CALL_ProgramStringARB(disp, parameters) \ - (* GET_ProgramStringARB(disp)) parameters -static INLINE _glptr_ProgramStringARB GET_ProgramStringARB(struct _glapi_table *disp) { - return (_glptr_ProgramStringARB) (GET_by_offset(disp, _gloffset_ProgramStringARB)); -} - -static INLINE void SET_ProgramStringARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_ProgramStringARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib1dARB)(GLuint, GLdouble); -#define CALL_VertexAttrib1dARB(disp, parameters) \ - (* GET_VertexAttrib1dARB(disp)) parameters -static INLINE _glptr_VertexAttrib1dARB GET_VertexAttrib1dARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib1dARB) (GET_by_offset(disp, _gloffset_VertexAttrib1dARB)); -} - -static INLINE void SET_VertexAttrib1dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble)) { - SET_by_offset(disp, _gloffset_VertexAttrib1dARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib1dvARB)(GLuint, const GLdouble *); -#define CALL_VertexAttrib1dvARB(disp, parameters) \ - (* GET_VertexAttrib1dvARB(disp)) parameters -static INLINE _glptr_VertexAttrib1dvARB GET_VertexAttrib1dvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib1dvARB) (GET_by_offset(disp, _gloffset_VertexAttrib1dvARB)); -} - -static INLINE void SET_VertexAttrib1dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { - SET_by_offset(disp, _gloffset_VertexAttrib1dvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib1fARB)(GLuint, GLfloat); -#define CALL_VertexAttrib1fARB(disp, parameters) \ - (* GET_VertexAttrib1fARB(disp)) parameters -static INLINE _glptr_VertexAttrib1fARB GET_VertexAttrib1fARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib1fARB) (GET_by_offset(disp, _gloffset_VertexAttrib1fARB)); -} - -static INLINE void SET_VertexAttrib1fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat)) { - SET_by_offset(disp, _gloffset_VertexAttrib1fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib1fvARB)(GLuint, const GLfloat *); -#define CALL_VertexAttrib1fvARB(disp, parameters) \ - (* GET_VertexAttrib1fvARB(disp)) parameters -static INLINE _glptr_VertexAttrib1fvARB GET_VertexAttrib1fvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib1fvARB) (GET_by_offset(disp, _gloffset_VertexAttrib1fvARB)); -} - -static INLINE void SET_VertexAttrib1fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_VertexAttrib1fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib1sARB)(GLuint, GLshort); -#define CALL_VertexAttrib1sARB(disp, parameters) \ - (* GET_VertexAttrib1sARB(disp)) parameters -static INLINE _glptr_VertexAttrib1sARB GET_VertexAttrib1sARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib1sARB) (GET_by_offset(disp, _gloffset_VertexAttrib1sARB)); -} - -static INLINE void SET_VertexAttrib1sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort)) { - SET_by_offset(disp, _gloffset_VertexAttrib1sARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib1svARB)(GLuint, const GLshort *); -#define CALL_VertexAttrib1svARB(disp, parameters) \ - (* GET_VertexAttrib1svARB(disp)) parameters -static INLINE _glptr_VertexAttrib1svARB GET_VertexAttrib1svARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib1svARB) (GET_by_offset(disp, _gloffset_VertexAttrib1svARB)); -} - -static INLINE void SET_VertexAttrib1svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttrib1svARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib2dARB)(GLuint, GLdouble, GLdouble); -#define CALL_VertexAttrib2dARB(disp, parameters) \ - (* GET_VertexAttrib2dARB(disp)) parameters -static INLINE _glptr_VertexAttrib2dARB GET_VertexAttrib2dARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib2dARB) (GET_by_offset(disp, _gloffset_VertexAttrib2dARB)); -} - -static INLINE void SET_VertexAttrib2dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_VertexAttrib2dARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib2dvARB)(GLuint, const GLdouble *); -#define CALL_VertexAttrib2dvARB(disp, parameters) \ - (* GET_VertexAttrib2dvARB(disp)) parameters -static INLINE _glptr_VertexAttrib2dvARB GET_VertexAttrib2dvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib2dvARB) (GET_by_offset(disp, _gloffset_VertexAttrib2dvARB)); -} - -static INLINE void SET_VertexAttrib2dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { - SET_by_offset(disp, _gloffset_VertexAttrib2dvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib2fARB)(GLuint, GLfloat, GLfloat); -#define CALL_VertexAttrib2fARB(disp, parameters) \ - (* GET_VertexAttrib2fARB(disp)) parameters -static INLINE _glptr_VertexAttrib2fARB GET_VertexAttrib2fARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib2fARB) (GET_by_offset(disp, _gloffset_VertexAttrib2fARB)); -} - -static INLINE void SET_VertexAttrib2fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_VertexAttrib2fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib2fvARB)(GLuint, const GLfloat *); -#define CALL_VertexAttrib2fvARB(disp, parameters) \ - (* GET_VertexAttrib2fvARB(disp)) parameters -static INLINE _glptr_VertexAttrib2fvARB GET_VertexAttrib2fvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib2fvARB) (GET_by_offset(disp, _gloffset_VertexAttrib2fvARB)); -} - -static INLINE void SET_VertexAttrib2fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_VertexAttrib2fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib2sARB)(GLuint, GLshort, GLshort); -#define CALL_VertexAttrib2sARB(disp, parameters) \ - (* GET_VertexAttrib2sARB(disp)) parameters -static INLINE _glptr_VertexAttrib2sARB GET_VertexAttrib2sARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib2sARB) (GET_by_offset(disp, _gloffset_VertexAttrib2sARB)); -} - -static INLINE void SET_VertexAttrib2sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_VertexAttrib2sARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib2svARB)(GLuint, const GLshort *); -#define CALL_VertexAttrib2svARB(disp, parameters) \ - (* GET_VertexAttrib2svARB(disp)) parameters -static INLINE _glptr_VertexAttrib2svARB GET_VertexAttrib2svARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib2svARB) (GET_by_offset(disp, _gloffset_VertexAttrib2svARB)); -} - -static INLINE void SET_VertexAttrib2svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttrib2svARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib3dARB)(GLuint, GLdouble, GLdouble, GLdouble); -#define CALL_VertexAttrib3dARB(disp, parameters) \ - (* GET_VertexAttrib3dARB(disp)) parameters -static INLINE _glptr_VertexAttrib3dARB GET_VertexAttrib3dARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib3dARB) (GET_by_offset(disp, _gloffset_VertexAttrib3dARB)); -} - -static INLINE void SET_VertexAttrib3dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_VertexAttrib3dARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib3dvARB)(GLuint, const GLdouble *); -#define CALL_VertexAttrib3dvARB(disp, parameters) \ - (* GET_VertexAttrib3dvARB(disp)) parameters -static INLINE _glptr_VertexAttrib3dvARB GET_VertexAttrib3dvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib3dvARB) (GET_by_offset(disp, _gloffset_VertexAttrib3dvARB)); -} - -static INLINE void SET_VertexAttrib3dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { - SET_by_offset(disp, _gloffset_VertexAttrib3dvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib3fARB)(GLuint, GLfloat, GLfloat, GLfloat); -#define CALL_VertexAttrib3fARB(disp, parameters) \ - (* GET_VertexAttrib3fARB(disp)) parameters -static INLINE _glptr_VertexAttrib3fARB GET_VertexAttrib3fARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib3fARB) (GET_by_offset(disp, _gloffset_VertexAttrib3fARB)); -} - -static INLINE void SET_VertexAttrib3fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_VertexAttrib3fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib3fvARB)(GLuint, const GLfloat *); -#define CALL_VertexAttrib3fvARB(disp, parameters) \ - (* GET_VertexAttrib3fvARB(disp)) parameters -static INLINE _glptr_VertexAttrib3fvARB GET_VertexAttrib3fvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib3fvARB) (GET_by_offset(disp, _gloffset_VertexAttrib3fvARB)); -} - -static INLINE void SET_VertexAttrib3fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_VertexAttrib3fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib3sARB)(GLuint, GLshort, GLshort, GLshort); -#define CALL_VertexAttrib3sARB(disp, parameters) \ - (* GET_VertexAttrib3sARB(disp)) parameters -static INLINE _glptr_VertexAttrib3sARB GET_VertexAttrib3sARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib3sARB) (GET_by_offset(disp, _gloffset_VertexAttrib3sARB)); -} - -static INLINE void SET_VertexAttrib3sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_VertexAttrib3sARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib3svARB)(GLuint, const GLshort *); -#define CALL_VertexAttrib3svARB(disp, parameters) \ - (* GET_VertexAttrib3svARB(disp)) parameters -static INLINE _glptr_VertexAttrib3svARB GET_VertexAttrib3svARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib3svARB) (GET_by_offset(disp, _gloffset_VertexAttrib3svARB)); -} - -static INLINE void SET_VertexAttrib3svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttrib3svARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4NbvARB)(GLuint, const GLbyte *); -#define CALL_VertexAttrib4NbvARB(disp, parameters) \ - (* GET_VertexAttrib4NbvARB(disp)) parameters -static INLINE _glptr_VertexAttrib4NbvARB GET_VertexAttrib4NbvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4NbvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NbvARB)); -} - -static INLINE void SET_VertexAttrib4NbvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLbyte *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4NbvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4NivARB)(GLuint, const GLint *); -#define CALL_VertexAttrib4NivARB(disp, parameters) \ - (* GET_VertexAttrib4NivARB(disp)) parameters -static INLINE _glptr_VertexAttrib4NivARB GET_VertexAttrib4NivARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4NivARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NivARB)); -} - -static INLINE void SET_VertexAttrib4NivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLint *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4NivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4NsvARB)(GLuint, const GLshort *); -#define CALL_VertexAttrib4NsvARB(disp, parameters) \ - (* GET_VertexAttrib4NsvARB(disp)) parameters -static INLINE _glptr_VertexAttrib4NsvARB GET_VertexAttrib4NsvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4NsvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NsvARB)); -} - -static INLINE void SET_VertexAttrib4NsvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4NsvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4NubARB)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte); -#define CALL_VertexAttrib4NubARB(disp, parameters) \ - (* GET_VertexAttrib4NubARB(disp)) parameters -static INLINE _glptr_VertexAttrib4NubARB GET_VertexAttrib4NubARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4NubARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NubARB)); -} - -static INLINE void SET_VertexAttrib4NubARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte)) { - SET_by_offset(disp, _gloffset_VertexAttrib4NubARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4NubvARB)(GLuint, const GLubyte *); -#define CALL_VertexAttrib4NubvARB(disp, parameters) \ - (* GET_VertexAttrib4NubvARB(disp)) parameters -static INLINE _glptr_VertexAttrib4NubvARB GET_VertexAttrib4NubvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4NubvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NubvARB)); -} - -static INLINE void SET_VertexAttrib4NubvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLubyte *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4NubvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4NuivARB)(GLuint, const GLuint *); -#define CALL_VertexAttrib4NuivARB(disp, parameters) \ - (* GET_VertexAttrib4NuivARB(disp)) parameters -static INLINE _glptr_VertexAttrib4NuivARB GET_VertexAttrib4NuivARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4NuivARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NuivARB)); -} - -static INLINE void SET_VertexAttrib4NuivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLuint *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4NuivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4NusvARB)(GLuint, const GLushort *); -#define CALL_VertexAttrib4NusvARB(disp, parameters) \ - (* GET_VertexAttrib4NusvARB(disp)) parameters -static INLINE _glptr_VertexAttrib4NusvARB GET_VertexAttrib4NusvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4NusvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4NusvARB)); -} - -static INLINE void SET_VertexAttrib4NusvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLushort *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4NusvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4bvARB)(GLuint, const GLbyte *); -#define CALL_VertexAttrib4bvARB(disp, parameters) \ - (* GET_VertexAttrib4bvARB(disp)) parameters -static INLINE _glptr_VertexAttrib4bvARB GET_VertexAttrib4bvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4bvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4bvARB)); -} - -static INLINE void SET_VertexAttrib4bvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLbyte *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4bvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4dARB)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_VertexAttrib4dARB(disp, parameters) \ - (* GET_VertexAttrib4dARB(disp)) parameters -static INLINE _glptr_VertexAttrib4dARB GET_VertexAttrib4dARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4dARB) (GET_by_offset(disp, _gloffset_VertexAttrib4dARB)); -} - -static INLINE void SET_VertexAttrib4dARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_VertexAttrib4dARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4dvARB)(GLuint, const GLdouble *); -#define CALL_VertexAttrib4dvARB(disp, parameters) \ - (* GET_VertexAttrib4dvARB(disp)) parameters -static INLINE _glptr_VertexAttrib4dvARB GET_VertexAttrib4dvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4dvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4dvARB)); -} - -static INLINE void SET_VertexAttrib4dvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4dvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4fARB)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_VertexAttrib4fARB(disp, parameters) \ - (* GET_VertexAttrib4fARB(disp)) parameters -static INLINE _glptr_VertexAttrib4fARB GET_VertexAttrib4fARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4fARB) (GET_by_offset(disp, _gloffset_VertexAttrib4fARB)); -} - -static INLINE void SET_VertexAttrib4fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_VertexAttrib4fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4fvARB)(GLuint, const GLfloat *); -#define CALL_VertexAttrib4fvARB(disp, parameters) \ - (* GET_VertexAttrib4fvARB(disp)) parameters -static INLINE _glptr_VertexAttrib4fvARB GET_VertexAttrib4fvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4fvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4fvARB)); -} - -static INLINE void SET_VertexAttrib4fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4ivARB)(GLuint, const GLint *); -#define CALL_VertexAttrib4ivARB(disp, parameters) \ - (* GET_VertexAttrib4ivARB(disp)) parameters -static INLINE _glptr_VertexAttrib4ivARB GET_VertexAttrib4ivARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4ivARB) (GET_by_offset(disp, _gloffset_VertexAttrib4ivARB)); -} - -static INLINE void SET_VertexAttrib4ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLint *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4ivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4sARB)(GLuint, GLshort, GLshort, GLshort, GLshort); -#define CALL_VertexAttrib4sARB(disp, parameters) \ - (* GET_VertexAttrib4sARB(disp)) parameters -static INLINE _glptr_VertexAttrib4sARB GET_VertexAttrib4sARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4sARB) (GET_by_offset(disp, _gloffset_VertexAttrib4sARB)); -} - -static INLINE void SET_VertexAttrib4sARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort, GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_VertexAttrib4sARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4svARB)(GLuint, const GLshort *); -#define CALL_VertexAttrib4svARB(disp, parameters) \ - (* GET_VertexAttrib4svARB(disp)) parameters -static INLINE _glptr_VertexAttrib4svARB GET_VertexAttrib4svARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4svARB) (GET_by_offset(disp, _gloffset_VertexAttrib4svARB)); -} - -static INLINE void SET_VertexAttrib4svARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4svARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4ubvARB)(GLuint, const GLubyte *); -#define CALL_VertexAttrib4ubvARB(disp, parameters) \ - (* GET_VertexAttrib4ubvARB(disp)) parameters -static INLINE _glptr_VertexAttrib4ubvARB GET_VertexAttrib4ubvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4ubvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4ubvARB)); -} - -static INLINE void SET_VertexAttrib4ubvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLubyte *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4ubvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4uivARB)(GLuint, const GLuint *); -#define CALL_VertexAttrib4uivARB(disp, parameters) \ - (* GET_VertexAttrib4uivARB(disp)) parameters -static INLINE _glptr_VertexAttrib4uivARB GET_VertexAttrib4uivARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4uivARB) (GET_by_offset(disp, _gloffset_VertexAttrib4uivARB)); -} - -static INLINE void SET_VertexAttrib4uivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLuint *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4uivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4usvARB)(GLuint, const GLushort *); -#define CALL_VertexAttrib4usvARB(disp, parameters) \ - (* GET_VertexAttrib4usvARB(disp)) parameters -static INLINE _glptr_VertexAttrib4usvARB GET_VertexAttrib4usvARB(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4usvARB) (GET_by_offset(disp, _gloffset_VertexAttrib4usvARB)); -} - -static INLINE void SET_VertexAttrib4usvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLushort *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4usvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribPointerARB)(GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *); -#define CALL_VertexAttribPointerARB(disp, parameters) \ - (* GET_VertexAttribPointerARB(disp)) parameters -static INLINE _glptr_VertexAttribPointerARB GET_VertexAttribPointerARB(struct _glapi_table *disp) { - return (_glptr_VertexAttribPointerARB) (GET_by_offset(disp, _gloffset_VertexAttribPointerARB)); -} - -static INLINE void SET_VertexAttribPointerARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLenum, GLboolean, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_VertexAttribPointerARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindBufferARB)(GLenum, GLuint); -#define CALL_BindBufferARB(disp, parameters) \ - (* GET_BindBufferARB(disp)) parameters -static INLINE _glptr_BindBufferARB GET_BindBufferARB(struct _glapi_table *disp) { - return (_glptr_BindBufferARB) (GET_by_offset(disp, _gloffset_BindBufferARB)); -} - -static INLINE void SET_BindBufferARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_BindBufferARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_BufferDataARB)(GLenum, GLsizeiptrARB, const GLvoid *, GLenum); -#define CALL_BufferDataARB(disp, parameters) \ - (* GET_BufferDataARB(disp)) parameters -static INLINE _glptr_BufferDataARB GET_BufferDataARB(struct _glapi_table *disp) { - return (_glptr_BufferDataARB) (GET_by_offset(disp, _gloffset_BufferDataARB)); -} - -static INLINE void SET_BufferDataARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizeiptrARB, const GLvoid *, GLenum)) { - SET_by_offset(disp, _gloffset_BufferDataARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_BufferSubDataARB)(GLenum, GLintptrARB, GLsizeiptrARB, const GLvoid *); -#define CALL_BufferSubDataARB(disp, parameters) \ - (* GET_BufferSubDataARB(disp)) parameters -static INLINE _glptr_BufferSubDataARB GET_BufferSubDataARB(struct _glapi_table *disp) { - return (_glptr_BufferSubDataARB) (GET_by_offset(disp, _gloffset_BufferSubDataARB)); -} - -static INLINE void SET_BufferSubDataARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLintptrARB, GLsizeiptrARB, const GLvoid *)) { - SET_by_offset(disp, _gloffset_BufferSubDataARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteBuffersARB)(GLsizei, const GLuint *); -#define CALL_DeleteBuffersARB(disp, parameters) \ - (* GET_DeleteBuffersARB(disp)) parameters -static INLINE _glptr_DeleteBuffersARB GET_DeleteBuffersARB(struct _glapi_table *disp) { - return (_glptr_DeleteBuffersARB) (GET_by_offset(disp, _gloffset_DeleteBuffersARB)); -} - -static INLINE void SET_DeleteBuffersARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_DeleteBuffersARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GenBuffersARB)(GLsizei, GLuint *); -#define CALL_GenBuffersARB(disp, parameters) \ - (* GET_GenBuffersARB(disp)) parameters -static INLINE _glptr_GenBuffersARB GET_GenBuffersARB(struct _glapi_table *disp) { - return (_glptr_GenBuffersARB) (GET_by_offset(disp, _gloffset_GenBuffersARB)); -} - -static INLINE void SET_GenBuffersARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_GenBuffersARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetBufferParameterivARB)(GLenum, GLenum, GLint *); -#define CALL_GetBufferParameterivARB(disp, parameters) \ - (* GET_GetBufferParameterivARB(disp)) parameters -static INLINE _glptr_GetBufferParameterivARB GET_GetBufferParameterivARB(struct _glapi_table *disp) { - return (_glptr_GetBufferParameterivARB) (GET_by_offset(disp, _gloffset_GetBufferParameterivARB)); -} - -static INLINE void SET_GetBufferParameterivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetBufferParameterivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetBufferPointervARB)(GLenum, GLenum, GLvoid **); -#define CALL_GetBufferPointervARB(disp, parameters) \ - (* GET_GetBufferPointervARB(disp)) parameters -static INLINE _glptr_GetBufferPointervARB GET_GetBufferPointervARB(struct _glapi_table *disp) { - return (_glptr_GetBufferPointervARB) (GET_by_offset(disp, _gloffset_GetBufferPointervARB)); -} - -static INLINE void SET_GetBufferPointervARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLvoid **)) { - SET_by_offset(disp, _gloffset_GetBufferPointervARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetBufferSubDataARB)(GLenum, GLintptrARB, GLsizeiptrARB, GLvoid *); -#define CALL_GetBufferSubDataARB(disp, parameters) \ - (* GET_GetBufferSubDataARB(disp)) parameters -static INLINE _glptr_GetBufferSubDataARB GET_GetBufferSubDataARB(struct _glapi_table *disp) { - return (_glptr_GetBufferSubDataARB) (GET_by_offset(disp, _gloffset_GetBufferSubDataARB)); -} - -static INLINE void SET_GetBufferSubDataARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLintptrARB, GLsizeiptrARB, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetBufferSubDataARB, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsBufferARB)(GLuint); -#define CALL_IsBufferARB(disp, parameters) \ - (* GET_IsBufferARB(disp)) parameters -static INLINE _glptr_IsBufferARB GET_IsBufferARB(struct _glapi_table *disp) { - return (_glptr_IsBufferARB) (GET_by_offset(disp, _gloffset_IsBufferARB)); -} - -static INLINE void SET_IsBufferARB(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IsBufferARB, fn); -} - -typedef GLvoid * (GLAPIENTRYP _glptr_MapBufferARB)(GLenum, GLenum); -#define CALL_MapBufferARB(disp, parameters) \ - (* GET_MapBufferARB(disp)) parameters -static INLINE _glptr_MapBufferARB GET_MapBufferARB(struct _glapi_table *disp) { - return (_glptr_MapBufferARB) (GET_by_offset(disp, _gloffset_MapBufferARB)); -} - -static INLINE void SET_MapBufferARB(struct _glapi_table *disp, GLvoid * (GLAPIENTRYP fn)(GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_MapBufferARB, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_UnmapBufferARB)(GLenum); -#define CALL_UnmapBufferARB(disp, parameters) \ - (* GET_UnmapBufferARB(disp)) parameters -static INLINE _glptr_UnmapBufferARB GET_UnmapBufferARB(struct _glapi_table *disp) { - return (_glptr_UnmapBufferARB) (GET_by_offset(disp, _gloffset_UnmapBufferARB)); -} - -static INLINE void SET_UnmapBufferARB(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_UnmapBufferARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_BeginQueryARB)(GLenum, GLuint); -#define CALL_BeginQueryARB(disp, parameters) \ - (* GET_BeginQueryARB(disp)) parameters -static INLINE _glptr_BeginQueryARB GET_BeginQueryARB(struct _glapi_table *disp) { - return (_glptr_BeginQueryARB) (GET_by_offset(disp, _gloffset_BeginQueryARB)); -} - -static INLINE void SET_BeginQueryARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_BeginQueryARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteQueriesARB)(GLsizei, const GLuint *); -#define CALL_DeleteQueriesARB(disp, parameters) \ - (* GET_DeleteQueriesARB(disp)) parameters -static INLINE _glptr_DeleteQueriesARB GET_DeleteQueriesARB(struct _glapi_table *disp) { - return (_glptr_DeleteQueriesARB) (GET_by_offset(disp, _gloffset_DeleteQueriesARB)); -} - -static INLINE void SET_DeleteQueriesARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_DeleteQueriesARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_EndQueryARB)(GLenum); -#define CALL_EndQueryARB(disp, parameters) \ - (* GET_EndQueryARB(disp)) parameters -static INLINE _glptr_EndQueryARB GET_EndQueryARB(struct _glapi_table *disp) { - return (_glptr_EndQueryARB) (GET_by_offset(disp, _gloffset_EndQueryARB)); -} - -static INLINE void SET_EndQueryARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_EndQueryARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GenQueriesARB)(GLsizei, GLuint *); -#define CALL_GenQueriesARB(disp, parameters) \ - (* GET_GenQueriesARB(disp)) parameters -static INLINE _glptr_GenQueriesARB GET_GenQueriesARB(struct _glapi_table *disp) { - return (_glptr_GenQueriesARB) (GET_by_offset(disp, _gloffset_GenQueriesARB)); -} - -static INLINE void SET_GenQueriesARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_GenQueriesARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetQueryObjectivARB)(GLuint, GLenum, GLint *); -#define CALL_GetQueryObjectivARB(disp, parameters) \ - (* GET_GetQueryObjectivARB(disp)) parameters -static INLINE _glptr_GetQueryObjectivARB GET_GetQueryObjectivARB(struct _glapi_table *disp) { - return (_glptr_GetQueryObjectivARB) (GET_by_offset(disp, _gloffset_GetQueryObjectivARB)); -} - -static INLINE void SET_GetQueryObjectivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetQueryObjectivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetQueryObjectuivARB)(GLuint, GLenum, GLuint *); -#define CALL_GetQueryObjectuivARB(disp, parameters) \ - (* GET_GetQueryObjectuivARB(disp)) parameters -static INLINE _glptr_GetQueryObjectuivARB GET_GetQueryObjectuivARB(struct _glapi_table *disp) { - return (_glptr_GetQueryObjectuivARB) (GET_by_offset(disp, _gloffset_GetQueryObjectuivARB)); -} - -static INLINE void SET_GetQueryObjectuivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLuint *)) { - SET_by_offset(disp, _gloffset_GetQueryObjectuivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetQueryivARB)(GLenum, GLenum, GLint *); -#define CALL_GetQueryivARB(disp, parameters) \ - (* GET_GetQueryivARB(disp)) parameters -static INLINE _glptr_GetQueryivARB GET_GetQueryivARB(struct _glapi_table *disp) { - return (_glptr_GetQueryivARB) (GET_by_offset(disp, _gloffset_GetQueryivARB)); -} - -static INLINE void SET_GetQueryivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetQueryivARB, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsQueryARB)(GLuint); -#define CALL_IsQueryARB(disp, parameters) \ - (* GET_IsQueryARB(disp)) parameters -static INLINE _glptr_IsQueryARB GET_IsQueryARB(struct _glapi_table *disp) { - return (_glptr_IsQueryARB) (GET_by_offset(disp, _gloffset_IsQueryARB)); -} - -static INLINE void SET_IsQueryARB(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IsQueryARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_AttachObjectARB)(GLhandleARB, GLhandleARB); -#define CALL_AttachObjectARB(disp, parameters) \ - (* GET_AttachObjectARB(disp)) parameters -static INLINE _glptr_AttachObjectARB GET_AttachObjectARB(struct _glapi_table *disp) { - return (_glptr_AttachObjectARB) (GET_by_offset(disp, _gloffset_AttachObjectARB)); -} - -static INLINE void SET_AttachObjectARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLhandleARB)) { - SET_by_offset(disp, _gloffset_AttachObjectARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_CompileShaderARB)(GLhandleARB); -#define CALL_CompileShaderARB(disp, parameters) \ - (* GET_CompileShaderARB(disp)) parameters -static INLINE _glptr_CompileShaderARB GET_CompileShaderARB(struct _glapi_table *disp) { - return (_glptr_CompileShaderARB) (GET_by_offset(disp, _gloffset_CompileShaderARB)); -} - -static INLINE void SET_CompileShaderARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB)) { - SET_by_offset(disp, _gloffset_CompileShaderARB, fn); -} - -typedef GLhandleARB (GLAPIENTRYP _glptr_CreateProgramObjectARB)(void); -#define CALL_CreateProgramObjectARB(disp, parameters) \ - (* GET_CreateProgramObjectARB(disp)) parameters -static INLINE _glptr_CreateProgramObjectARB GET_CreateProgramObjectARB(struct _glapi_table *disp) { - return (_glptr_CreateProgramObjectARB) (GET_by_offset(disp, _gloffset_CreateProgramObjectARB)); -} - -static INLINE void SET_CreateProgramObjectARB(struct _glapi_table *disp, GLhandleARB (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_CreateProgramObjectARB, fn); -} - -typedef GLhandleARB (GLAPIENTRYP _glptr_CreateShaderObjectARB)(GLenum); -#define CALL_CreateShaderObjectARB(disp, parameters) \ - (* GET_CreateShaderObjectARB(disp)) parameters -static INLINE _glptr_CreateShaderObjectARB GET_CreateShaderObjectARB(struct _glapi_table *disp) { - return (_glptr_CreateShaderObjectARB) (GET_by_offset(disp, _gloffset_CreateShaderObjectARB)); -} - -static INLINE void SET_CreateShaderObjectARB(struct _glapi_table *disp, GLhandleARB (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_CreateShaderObjectARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteObjectARB)(GLhandleARB); -#define CALL_DeleteObjectARB(disp, parameters) \ - (* GET_DeleteObjectARB(disp)) parameters -static INLINE _glptr_DeleteObjectARB GET_DeleteObjectARB(struct _glapi_table *disp) { - return (_glptr_DeleteObjectARB) (GET_by_offset(disp, _gloffset_DeleteObjectARB)); -} - -static INLINE void SET_DeleteObjectARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB)) { - SET_by_offset(disp, _gloffset_DeleteObjectARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_DetachObjectARB)(GLhandleARB, GLhandleARB); -#define CALL_DetachObjectARB(disp, parameters) \ - (* GET_DetachObjectARB(disp)) parameters -static INLINE _glptr_DetachObjectARB GET_DetachObjectARB(struct _glapi_table *disp) { - return (_glptr_DetachObjectARB) (GET_by_offset(disp, _gloffset_DetachObjectARB)); -} - -static INLINE void SET_DetachObjectARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLhandleARB)) { - SET_by_offset(disp, _gloffset_DetachObjectARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetActiveUniformARB)(GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *); -#define CALL_GetActiveUniformARB(disp, parameters) \ - (* GET_GetActiveUniformARB(disp)) parameters -static INLINE _glptr_GetActiveUniformARB GET_GetActiveUniformARB(struct _glapi_table *disp) { - return (_glptr_GetActiveUniformARB) (GET_by_offset(disp, _gloffset_GetActiveUniformARB)); -} - -static INLINE void SET_GetActiveUniformARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *)) { - SET_by_offset(disp, _gloffset_GetActiveUniformARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetAttachedObjectsARB)(GLhandleARB, GLsizei, GLsizei *, GLhandleARB *); -#define CALL_GetAttachedObjectsARB(disp, parameters) \ - (* GET_GetAttachedObjectsARB(disp)) parameters -static INLINE _glptr_GetAttachedObjectsARB GET_GetAttachedObjectsARB(struct _glapi_table *disp) { - return (_glptr_GetAttachedObjectsARB) (GET_by_offset(disp, _gloffset_GetAttachedObjectsARB)); -} - -static INLINE void SET_GetAttachedObjectsARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLsizei, GLsizei *, GLhandleARB *)) { - SET_by_offset(disp, _gloffset_GetAttachedObjectsARB, fn); -} - -typedef GLhandleARB (GLAPIENTRYP _glptr_GetHandleARB)(GLenum); -#define CALL_GetHandleARB(disp, parameters) \ - (* GET_GetHandleARB(disp)) parameters -static INLINE _glptr_GetHandleARB GET_GetHandleARB(struct _glapi_table *disp) { - return (_glptr_GetHandleARB) (GET_by_offset(disp, _gloffset_GetHandleARB)); -} - -static INLINE void SET_GetHandleARB(struct _glapi_table *disp, GLhandleARB (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_GetHandleARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetInfoLogARB)(GLhandleARB, GLsizei, GLsizei *, GLcharARB *); -#define CALL_GetInfoLogARB(disp, parameters) \ - (* GET_GetInfoLogARB(disp)) parameters -static INLINE _glptr_GetInfoLogARB GET_GetInfoLogARB(struct _glapi_table *disp) { - return (_glptr_GetInfoLogARB) (GET_by_offset(disp, _gloffset_GetInfoLogARB)); -} - -static INLINE void SET_GetInfoLogARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLsizei, GLsizei *, GLcharARB *)) { - SET_by_offset(disp, _gloffset_GetInfoLogARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetObjectParameterfvARB)(GLhandleARB, GLenum, GLfloat *); -#define CALL_GetObjectParameterfvARB(disp, parameters) \ - (* GET_GetObjectParameterfvARB(disp)) parameters -static INLINE _glptr_GetObjectParameterfvARB GET_GetObjectParameterfvARB(struct _glapi_table *disp) { - return (_glptr_GetObjectParameterfvARB) (GET_by_offset(disp, _gloffset_GetObjectParameterfvARB)); -} - -static INLINE void SET_GetObjectParameterfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetObjectParameterfvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetObjectParameterivARB)(GLhandleARB, GLenum, GLint *); -#define CALL_GetObjectParameterivARB(disp, parameters) \ - (* GET_GetObjectParameterivARB(disp)) parameters -static INLINE _glptr_GetObjectParameterivARB GET_GetObjectParameterivARB(struct _glapi_table *disp) { - return (_glptr_GetObjectParameterivARB) (GET_by_offset(disp, _gloffset_GetObjectParameterivARB)); -} - -static INLINE void SET_GetObjectParameterivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetObjectParameterivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetShaderSourceARB)(GLhandleARB, GLsizei, GLsizei *, GLcharARB *); -#define CALL_GetShaderSourceARB(disp, parameters) \ - (* GET_GetShaderSourceARB(disp)) parameters -static INLINE _glptr_GetShaderSourceARB GET_GetShaderSourceARB(struct _glapi_table *disp) { - return (_glptr_GetShaderSourceARB) (GET_by_offset(disp, _gloffset_GetShaderSourceARB)); -} - -static INLINE void SET_GetShaderSourceARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLsizei, GLsizei *, GLcharARB *)) { - SET_by_offset(disp, _gloffset_GetShaderSourceARB, fn); -} - -typedef GLint (GLAPIENTRYP _glptr_GetUniformLocationARB)(GLhandleARB, const GLcharARB *); -#define CALL_GetUniformLocationARB(disp, parameters) \ - (* GET_GetUniformLocationARB(disp)) parameters -static INLINE _glptr_GetUniformLocationARB GET_GetUniformLocationARB(struct _glapi_table *disp) { - return (_glptr_GetUniformLocationARB) (GET_by_offset(disp, _gloffset_GetUniformLocationARB)); -} - -static INLINE void SET_GetUniformLocationARB(struct _glapi_table *disp, GLint (GLAPIENTRYP fn)(GLhandleARB, const GLcharARB *)) { - SET_by_offset(disp, _gloffset_GetUniformLocationARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetUniformfvARB)(GLhandleARB, GLint, GLfloat *); -#define CALL_GetUniformfvARB(disp, parameters) \ - (* GET_GetUniformfvARB(disp)) parameters -static INLINE _glptr_GetUniformfvARB GET_GetUniformfvARB(struct _glapi_table *disp) { - return (_glptr_GetUniformfvARB) (GET_by_offset(disp, _gloffset_GetUniformfvARB)); -} - -static INLINE void SET_GetUniformfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLint, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetUniformfvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetUniformivARB)(GLhandleARB, GLint, GLint *); -#define CALL_GetUniformivARB(disp, parameters) \ - (* GET_GetUniformivARB(disp)) parameters -static INLINE _glptr_GetUniformivARB GET_GetUniformivARB(struct _glapi_table *disp) { - return (_glptr_GetUniformivARB) (GET_by_offset(disp, _gloffset_GetUniformivARB)); -} - -static INLINE void SET_GetUniformivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLint, GLint *)) { - SET_by_offset(disp, _gloffset_GetUniformivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_LinkProgramARB)(GLhandleARB); -#define CALL_LinkProgramARB(disp, parameters) \ - (* GET_LinkProgramARB(disp)) parameters -static INLINE _glptr_LinkProgramARB GET_LinkProgramARB(struct _glapi_table *disp) { - return (_glptr_LinkProgramARB) (GET_by_offset(disp, _gloffset_LinkProgramARB)); -} - -static INLINE void SET_LinkProgramARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB)) { - SET_by_offset(disp, _gloffset_LinkProgramARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ShaderSourceARB)(GLhandleARB, GLsizei, const GLcharARB **, const GLint *); -#define CALL_ShaderSourceARB(disp, parameters) \ - (* GET_ShaderSourceARB(disp)) parameters -static INLINE _glptr_ShaderSourceARB GET_ShaderSourceARB(struct _glapi_table *disp) { - return (_glptr_ShaderSourceARB) (GET_by_offset(disp, _gloffset_ShaderSourceARB)); -} - -static INLINE void SET_ShaderSourceARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLsizei, const GLcharARB **, const GLint *)) { - SET_by_offset(disp, _gloffset_ShaderSourceARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform1fARB)(GLint, GLfloat); -#define CALL_Uniform1fARB(disp, parameters) \ - (* GET_Uniform1fARB(disp)) parameters -static INLINE _glptr_Uniform1fARB GET_Uniform1fARB(struct _glapi_table *disp) { - return (_glptr_Uniform1fARB) (GET_by_offset(disp, _gloffset_Uniform1fARB)); -} - -static INLINE void SET_Uniform1fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLfloat)) { - SET_by_offset(disp, _gloffset_Uniform1fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform1fvARB)(GLint, GLsizei, const GLfloat *); -#define CALL_Uniform1fvARB(disp, parameters) \ - (* GET_Uniform1fvARB(disp)) parameters -static INLINE _glptr_Uniform1fvARB GET_Uniform1fvARB(struct _glapi_table *disp) { - return (_glptr_Uniform1fvARB) (GET_by_offset(disp, _gloffset_Uniform1fvARB)); -} - -static INLINE void SET_Uniform1fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLfloat *)) { - SET_by_offset(disp, _gloffset_Uniform1fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform1iARB)(GLint, GLint); -#define CALL_Uniform1iARB(disp, parameters) \ - (* GET_Uniform1iARB(disp)) parameters -static INLINE _glptr_Uniform1iARB GET_Uniform1iARB(struct _glapi_table *disp) { - return (_glptr_Uniform1iARB) (GET_by_offset(disp, _gloffset_Uniform1iARB)); -} - -static INLINE void SET_Uniform1iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint)) { - SET_by_offset(disp, _gloffset_Uniform1iARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform1ivARB)(GLint, GLsizei, const GLint *); -#define CALL_Uniform1ivARB(disp, parameters) \ - (* GET_Uniform1ivARB(disp)) parameters -static INLINE _glptr_Uniform1ivARB GET_Uniform1ivARB(struct _glapi_table *disp) { - return (_glptr_Uniform1ivARB) (GET_by_offset(disp, _gloffset_Uniform1ivARB)); -} - -static INLINE void SET_Uniform1ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLint *)) { - SET_by_offset(disp, _gloffset_Uniform1ivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform2fARB)(GLint, GLfloat, GLfloat); -#define CALL_Uniform2fARB(disp, parameters) \ - (* GET_Uniform2fARB(disp)) parameters -static INLINE _glptr_Uniform2fARB GET_Uniform2fARB(struct _glapi_table *disp) { - return (_glptr_Uniform2fARB) (GET_by_offset(disp, _gloffset_Uniform2fARB)); -} - -static INLINE void SET_Uniform2fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_Uniform2fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform2fvARB)(GLint, GLsizei, const GLfloat *); -#define CALL_Uniform2fvARB(disp, parameters) \ - (* GET_Uniform2fvARB(disp)) parameters -static INLINE _glptr_Uniform2fvARB GET_Uniform2fvARB(struct _glapi_table *disp) { - return (_glptr_Uniform2fvARB) (GET_by_offset(disp, _gloffset_Uniform2fvARB)); -} - -static INLINE void SET_Uniform2fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLfloat *)) { - SET_by_offset(disp, _gloffset_Uniform2fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform2iARB)(GLint, GLint, GLint); -#define CALL_Uniform2iARB(disp, parameters) \ - (* GET_Uniform2iARB(disp)) parameters -static INLINE _glptr_Uniform2iARB GET_Uniform2iARB(struct _glapi_table *disp) { - return (_glptr_Uniform2iARB) (GET_by_offset(disp, _gloffset_Uniform2iARB)); -} - -static INLINE void SET_Uniform2iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_Uniform2iARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform2ivARB)(GLint, GLsizei, const GLint *); -#define CALL_Uniform2ivARB(disp, parameters) \ - (* GET_Uniform2ivARB(disp)) parameters -static INLINE _glptr_Uniform2ivARB GET_Uniform2ivARB(struct _glapi_table *disp) { - return (_glptr_Uniform2ivARB) (GET_by_offset(disp, _gloffset_Uniform2ivARB)); -} - -static INLINE void SET_Uniform2ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLint *)) { - SET_by_offset(disp, _gloffset_Uniform2ivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform3fARB)(GLint, GLfloat, GLfloat, GLfloat); -#define CALL_Uniform3fARB(disp, parameters) \ - (* GET_Uniform3fARB(disp)) parameters -static INLINE _glptr_Uniform3fARB GET_Uniform3fARB(struct _glapi_table *disp) { - return (_glptr_Uniform3fARB) (GET_by_offset(disp, _gloffset_Uniform3fARB)); -} - -static INLINE void SET_Uniform3fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_Uniform3fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform3fvARB)(GLint, GLsizei, const GLfloat *); -#define CALL_Uniform3fvARB(disp, parameters) \ - (* GET_Uniform3fvARB(disp)) parameters -static INLINE _glptr_Uniform3fvARB GET_Uniform3fvARB(struct _glapi_table *disp) { - return (_glptr_Uniform3fvARB) (GET_by_offset(disp, _gloffset_Uniform3fvARB)); -} - -static INLINE void SET_Uniform3fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLfloat *)) { - SET_by_offset(disp, _gloffset_Uniform3fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform3iARB)(GLint, GLint, GLint, GLint); -#define CALL_Uniform3iARB(disp, parameters) \ - (* GET_Uniform3iARB(disp)) parameters -static INLINE _glptr_Uniform3iARB GET_Uniform3iARB(struct _glapi_table *disp) { - return (_glptr_Uniform3iARB) (GET_by_offset(disp, _gloffset_Uniform3iARB)); -} - -static INLINE void SET_Uniform3iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_Uniform3iARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform3ivARB)(GLint, GLsizei, const GLint *); -#define CALL_Uniform3ivARB(disp, parameters) \ - (* GET_Uniform3ivARB(disp)) parameters -static INLINE _glptr_Uniform3ivARB GET_Uniform3ivARB(struct _glapi_table *disp) { - return (_glptr_Uniform3ivARB) (GET_by_offset(disp, _gloffset_Uniform3ivARB)); -} - -static INLINE void SET_Uniform3ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLint *)) { - SET_by_offset(disp, _gloffset_Uniform3ivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform4fARB)(GLint, GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_Uniform4fARB(disp, parameters) \ - (* GET_Uniform4fARB(disp)) parameters -static INLINE _glptr_Uniform4fARB GET_Uniform4fARB(struct _glapi_table *disp) { - return (_glptr_Uniform4fARB) (GET_by_offset(disp, _gloffset_Uniform4fARB)); -} - -static INLINE void SET_Uniform4fARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_Uniform4fARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform4fvARB)(GLint, GLsizei, const GLfloat *); -#define CALL_Uniform4fvARB(disp, parameters) \ - (* GET_Uniform4fvARB(disp)) parameters -static INLINE _glptr_Uniform4fvARB GET_Uniform4fvARB(struct _glapi_table *disp) { - return (_glptr_Uniform4fvARB) (GET_by_offset(disp, _gloffset_Uniform4fvARB)); -} - -static INLINE void SET_Uniform4fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLfloat *)) { - SET_by_offset(disp, _gloffset_Uniform4fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform4iARB)(GLint, GLint, GLint, GLint, GLint); -#define CALL_Uniform4iARB(disp, parameters) \ - (* GET_Uniform4iARB(disp)) parameters -static INLINE _glptr_Uniform4iARB GET_Uniform4iARB(struct _glapi_table *disp) { - return (_glptr_Uniform4iARB) (GET_by_offset(disp, _gloffset_Uniform4iARB)); -} - -static INLINE void SET_Uniform4iARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_Uniform4iARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform4ivARB)(GLint, GLsizei, const GLint *); -#define CALL_Uniform4ivARB(disp, parameters) \ - (* GET_Uniform4ivARB(disp)) parameters -static INLINE _glptr_Uniform4ivARB GET_Uniform4ivARB(struct _glapi_table *disp) { - return (_glptr_Uniform4ivARB) (GET_by_offset(disp, _gloffset_Uniform4ivARB)); -} - -static INLINE void SET_Uniform4ivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLint *)) { - SET_by_offset(disp, _gloffset_Uniform4ivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_UniformMatrix2fvARB)(GLint, GLsizei, GLboolean, const GLfloat *); -#define CALL_UniformMatrix2fvARB(disp, parameters) \ - (* GET_UniformMatrix2fvARB(disp)) parameters -static INLINE _glptr_UniformMatrix2fvARB GET_UniformMatrix2fvARB(struct _glapi_table *disp) { - return (_glptr_UniformMatrix2fvARB) (GET_by_offset(disp, _gloffset_UniformMatrix2fvARB)); -} - -static INLINE void SET_UniformMatrix2fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { - SET_by_offset(disp, _gloffset_UniformMatrix2fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_UniformMatrix3fvARB)(GLint, GLsizei, GLboolean, const GLfloat *); -#define CALL_UniformMatrix3fvARB(disp, parameters) \ - (* GET_UniformMatrix3fvARB(disp)) parameters -static INLINE _glptr_UniformMatrix3fvARB GET_UniformMatrix3fvARB(struct _glapi_table *disp) { - return (_glptr_UniformMatrix3fvARB) (GET_by_offset(disp, _gloffset_UniformMatrix3fvARB)); -} - -static INLINE void SET_UniformMatrix3fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { - SET_by_offset(disp, _gloffset_UniformMatrix3fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_UniformMatrix4fvARB)(GLint, GLsizei, GLboolean, const GLfloat *); -#define CALL_UniformMatrix4fvARB(disp, parameters) \ - (* GET_UniformMatrix4fvARB(disp)) parameters -static INLINE _glptr_UniformMatrix4fvARB GET_UniformMatrix4fvARB(struct _glapi_table *disp) { - return (_glptr_UniformMatrix4fvARB) (GET_by_offset(disp, _gloffset_UniformMatrix4fvARB)); -} - -static INLINE void SET_UniformMatrix4fvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, GLboolean, const GLfloat *)) { - SET_by_offset(disp, _gloffset_UniformMatrix4fvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_UseProgramObjectARB)(GLhandleARB); -#define CALL_UseProgramObjectARB(disp, parameters) \ - (* GET_UseProgramObjectARB(disp)) parameters -static INLINE _glptr_UseProgramObjectARB GET_UseProgramObjectARB(struct _glapi_table *disp) { - return (_glptr_UseProgramObjectARB) (GET_by_offset(disp, _gloffset_UseProgramObjectARB)); -} - -static INLINE void SET_UseProgramObjectARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB)) { - SET_by_offset(disp, _gloffset_UseProgramObjectARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ValidateProgramARB)(GLhandleARB); -#define CALL_ValidateProgramARB(disp, parameters) \ - (* GET_ValidateProgramARB(disp)) parameters -static INLINE _glptr_ValidateProgramARB GET_ValidateProgramARB(struct _glapi_table *disp) { - return (_glptr_ValidateProgramARB) (GET_by_offset(disp, _gloffset_ValidateProgramARB)); -} - -static INLINE void SET_ValidateProgramARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB)) { - SET_by_offset(disp, _gloffset_ValidateProgramARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindAttribLocationARB)(GLhandleARB, GLuint, const GLcharARB *); -#define CALL_BindAttribLocationARB(disp, parameters) \ - (* GET_BindAttribLocationARB(disp)) parameters -static INLINE _glptr_BindAttribLocationARB GET_BindAttribLocationARB(struct _glapi_table *disp) { - return (_glptr_BindAttribLocationARB) (GET_by_offset(disp, _gloffset_BindAttribLocationARB)); -} - -static INLINE void SET_BindAttribLocationARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLuint, const GLcharARB *)) { - SET_by_offset(disp, _gloffset_BindAttribLocationARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetActiveAttribARB)(GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *); -#define CALL_GetActiveAttribARB(disp, parameters) \ - (* GET_GetActiveAttribARB(disp)) parameters -static INLINE _glptr_GetActiveAttribARB GET_GetActiveAttribARB(struct _glapi_table *disp) { - return (_glptr_GetActiveAttribARB) (GET_by_offset(disp, _gloffset_GetActiveAttribARB)); -} - -static INLINE void SET_GetActiveAttribARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLcharARB *)) { - SET_by_offset(disp, _gloffset_GetActiveAttribARB, fn); -} - -typedef GLint (GLAPIENTRYP _glptr_GetAttribLocationARB)(GLhandleARB, const GLcharARB *); -#define CALL_GetAttribLocationARB(disp, parameters) \ - (* GET_GetAttribLocationARB(disp)) parameters -static INLINE _glptr_GetAttribLocationARB GET_GetAttribLocationARB(struct _glapi_table *disp) { - return (_glptr_GetAttribLocationARB) (GET_by_offset(disp, _gloffset_GetAttribLocationARB)); -} - -static INLINE void SET_GetAttribLocationARB(struct _glapi_table *disp, GLint (GLAPIENTRYP fn)(GLhandleARB, const GLcharARB *)) { - SET_by_offset(disp, _gloffset_GetAttribLocationARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_DrawBuffersARB)(GLsizei, const GLenum *); -#define CALL_DrawBuffersARB(disp, parameters) \ - (* GET_DrawBuffersARB(disp)) parameters -static INLINE _glptr_DrawBuffersARB GET_DrawBuffersARB(struct _glapi_table *disp) { - return (_glptr_DrawBuffersARB) (GET_by_offset(disp, _gloffset_DrawBuffersARB)); -} - -static INLINE void SET_DrawBuffersARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLenum *)) { - SET_by_offset(disp, _gloffset_DrawBuffersARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClampColorARB)(GLenum, GLenum); -#define CALL_ClampColorARB(disp, parameters) \ - (* GET_ClampColorARB(disp)) parameters -static INLINE _glptr_ClampColorARB GET_ClampColorARB(struct _glapi_table *disp) { - return (_glptr_ClampColorARB) (GET_by_offset(disp, _gloffset_ClampColorARB)); -} - -static INLINE void SET_ClampColorARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_ClampColorARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_DrawArraysInstancedARB)(GLenum, GLint, GLsizei, GLsizei); -#define CALL_DrawArraysInstancedARB(disp, parameters) \ - (* GET_DrawArraysInstancedARB(disp)) parameters -static INLINE _glptr_DrawArraysInstancedARB GET_DrawArraysInstancedARB(struct _glapi_table *disp) { - return (_glptr_DrawArraysInstancedARB) (GET_by_offset(disp, _gloffset_DrawArraysInstancedARB)); -} - -static INLINE void SET_DrawArraysInstancedARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLsizei, GLsizei)) { - SET_by_offset(disp, _gloffset_DrawArraysInstancedARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_DrawElementsInstancedARB)(GLenum, GLsizei, GLenum, const GLvoid *, GLsizei); -#define CALL_DrawElementsInstancedARB(disp, parameters) \ - (* GET_DrawElementsInstancedARB(disp)) parameters -static INLINE _glptr_DrawElementsInstancedARB GET_DrawElementsInstancedARB(struct _glapi_table *disp) { - return (_glptr_DrawElementsInstancedARB) (GET_by_offset(disp, _gloffset_DrawElementsInstancedARB)); -} - -static INLINE void SET_DrawElementsInstancedARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLenum, const GLvoid *, GLsizei)) { - SET_by_offset(disp, _gloffset_DrawElementsInstancedARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_RenderbufferStorageMultisample)(GLenum, GLsizei, GLenum, GLsizei, GLsizei); -#define CALL_RenderbufferStorageMultisample(disp, parameters) \ - (* GET_RenderbufferStorageMultisample(disp)) parameters -static INLINE _glptr_RenderbufferStorageMultisample GET_RenderbufferStorageMultisample(struct _glapi_table *disp) { - return (_glptr_RenderbufferStorageMultisample) (GET_by_offset(disp, _gloffset_RenderbufferStorageMultisample)); -} - -static INLINE void SET_RenderbufferStorageMultisample(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLenum, GLsizei, GLsizei)) { - SET_by_offset(disp, _gloffset_RenderbufferStorageMultisample, fn); -} - -typedef void (GLAPIENTRYP _glptr_FramebufferTextureARB)(GLenum, GLenum, GLuint, GLint); -#define CALL_FramebufferTextureARB(disp, parameters) \ - (* GET_FramebufferTextureARB(disp)) parameters -static INLINE _glptr_FramebufferTextureARB GET_FramebufferTextureARB(struct _glapi_table *disp) { - return (_glptr_FramebufferTextureARB) (GET_by_offset(disp, _gloffset_FramebufferTextureARB)); -} - -static INLINE void SET_FramebufferTextureARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint, GLint)) { - SET_by_offset(disp, _gloffset_FramebufferTextureARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_FramebufferTextureFaceARB)(GLenum, GLenum, GLuint, GLint, GLenum); -#define CALL_FramebufferTextureFaceARB(disp, parameters) \ - (* GET_FramebufferTextureFaceARB(disp)) parameters -static INLINE _glptr_FramebufferTextureFaceARB GET_FramebufferTextureFaceARB(struct _glapi_table *disp) { - return (_glptr_FramebufferTextureFaceARB) (GET_by_offset(disp, _gloffset_FramebufferTextureFaceARB)); -} - -static INLINE void SET_FramebufferTextureFaceARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint, GLint, GLenum)) { - SET_by_offset(disp, _gloffset_FramebufferTextureFaceARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramParameteriARB)(GLuint, GLenum, GLint); -#define CALL_ProgramParameteriARB(disp, parameters) \ - (* GET_ProgramParameteriARB(disp)) parameters -static INLINE _glptr_ProgramParameteriARB GET_ProgramParameteriARB(struct _glapi_table *disp) { - return (_glptr_ProgramParameteriARB) (GET_by_offset(disp, _gloffset_ProgramParameteriARB)); -} - -static INLINE void SET_ProgramParameteriARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint)) { - SET_by_offset(disp, _gloffset_ProgramParameteriARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribDivisorARB)(GLuint, GLuint); -#define CALL_VertexAttribDivisorARB(disp, parameters) \ - (* GET_VertexAttribDivisorARB(disp)) parameters -static INLINE _glptr_VertexAttribDivisorARB GET_VertexAttribDivisorARB(struct _glapi_table *disp) { - return (_glptr_VertexAttribDivisorARB) (GET_by_offset(disp, _gloffset_VertexAttribDivisorARB)); -} - -static INLINE void SET_VertexAttribDivisorARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_VertexAttribDivisorARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_FlushMappedBufferRange)(GLenum, GLintptr, GLsizeiptr); -#define CALL_FlushMappedBufferRange(disp, parameters) \ - (* GET_FlushMappedBufferRange(disp)) parameters -static INLINE _glptr_FlushMappedBufferRange GET_FlushMappedBufferRange(struct _glapi_table *disp) { - return (_glptr_FlushMappedBufferRange) (GET_by_offset(disp, _gloffset_FlushMappedBufferRange)); -} - -static INLINE void SET_FlushMappedBufferRange(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLintptr, GLsizeiptr)) { - SET_by_offset(disp, _gloffset_FlushMappedBufferRange, fn); -} - -typedef GLvoid * (GLAPIENTRYP _glptr_MapBufferRange)(GLenum, GLintptr, GLsizeiptr, GLbitfield); -#define CALL_MapBufferRange(disp, parameters) \ - (* GET_MapBufferRange(disp)) parameters -static INLINE _glptr_MapBufferRange GET_MapBufferRange(struct _glapi_table *disp) { - return (_glptr_MapBufferRange) (GET_by_offset(disp, _gloffset_MapBufferRange)); -} - -static INLINE void SET_MapBufferRange(struct _glapi_table *disp, GLvoid * (GLAPIENTRYP fn)(GLenum, GLintptr, GLsizeiptr, GLbitfield)) { - SET_by_offset(disp, _gloffset_MapBufferRange, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexBufferARB)(GLenum, GLenum, GLuint); -#define CALL_TexBufferARB(disp, parameters) \ - (* GET_TexBufferARB(disp)) parameters -static INLINE _glptr_TexBufferARB GET_TexBufferARB(struct _glapi_table *disp) { - return (_glptr_TexBufferARB) (GET_by_offset(disp, _gloffset_TexBufferARB)); -} - -static INLINE void SET_TexBufferARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_TexBufferARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindVertexArray)(GLuint); -#define CALL_BindVertexArray(disp, parameters) \ - (* GET_BindVertexArray(disp)) parameters -static INLINE _glptr_BindVertexArray GET_BindVertexArray(struct _glapi_table *disp) { - return (_glptr_BindVertexArray) (GET_by_offset(disp, _gloffset_BindVertexArray)); -} - -static INLINE void SET_BindVertexArray(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_BindVertexArray, fn); -} - -typedef void (GLAPIENTRYP _glptr_GenVertexArrays)(GLsizei, GLuint *); -#define CALL_GenVertexArrays(disp, parameters) \ - (* GET_GenVertexArrays(disp)) parameters -static INLINE _glptr_GenVertexArrays GET_GenVertexArrays(struct _glapi_table *disp) { - return (_glptr_GenVertexArrays) (GET_by_offset(disp, _gloffset_GenVertexArrays)); -} - -static INLINE void SET_GenVertexArrays(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_GenVertexArrays, fn); -} - -typedef void (GLAPIENTRYP _glptr_CopyBufferSubData)(GLenum, GLenum, GLintptr, GLintptr, GLsizeiptr); -#define CALL_CopyBufferSubData(disp, parameters) \ - (* GET_CopyBufferSubData(disp)) parameters -static INLINE _glptr_CopyBufferSubData GET_CopyBufferSubData(struct _glapi_table *disp) { - return (_glptr_CopyBufferSubData) (GET_by_offset(disp, _gloffset_CopyBufferSubData)); -} - -static INLINE void SET_CopyBufferSubData(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLintptr, GLintptr, GLsizeiptr)) { - SET_by_offset(disp, _gloffset_CopyBufferSubData, fn); -} - -typedef GLenum (GLAPIENTRYP _glptr_ClientWaitSync)(GLsync, GLbitfield, GLuint64); -#define CALL_ClientWaitSync(disp, parameters) \ - (* GET_ClientWaitSync(disp)) parameters -static INLINE _glptr_ClientWaitSync GET_ClientWaitSync(struct _glapi_table *disp) { - return (_glptr_ClientWaitSync) (GET_by_offset(disp, _gloffset_ClientWaitSync)); -} - -static INLINE void SET_ClientWaitSync(struct _glapi_table *disp, GLenum (GLAPIENTRYP fn)(GLsync, GLbitfield, GLuint64)) { - SET_by_offset(disp, _gloffset_ClientWaitSync, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteSync)(GLsync); -#define CALL_DeleteSync(disp, parameters) \ - (* GET_DeleteSync(disp)) parameters -static INLINE _glptr_DeleteSync GET_DeleteSync(struct _glapi_table *disp) { - return (_glptr_DeleteSync) (GET_by_offset(disp, _gloffset_DeleteSync)); -} - -static INLINE void SET_DeleteSync(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsync)) { - SET_by_offset(disp, _gloffset_DeleteSync, fn); -} - -typedef GLsync (GLAPIENTRYP _glptr_FenceSync)(GLenum, GLbitfield); -#define CALL_FenceSync(disp, parameters) \ - (* GET_FenceSync(disp)) parameters -static INLINE _glptr_FenceSync GET_FenceSync(struct _glapi_table *disp) { - return (_glptr_FenceSync) (GET_by_offset(disp, _gloffset_FenceSync)); -} - -static INLINE void SET_FenceSync(struct _glapi_table *disp, GLsync (GLAPIENTRYP fn)(GLenum, GLbitfield)) { - SET_by_offset(disp, _gloffset_FenceSync, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetInteger64v)(GLenum, GLint64 *); -#define CALL_GetInteger64v(disp, parameters) \ - (* GET_GetInteger64v(disp)) parameters -static INLINE _glptr_GetInteger64v GET_GetInteger64v(struct _glapi_table *disp) { - return (_glptr_GetInteger64v) (GET_by_offset(disp, _gloffset_GetInteger64v)); -} - -static INLINE void SET_GetInteger64v(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint64 *)) { - SET_by_offset(disp, _gloffset_GetInteger64v, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetSynciv)(GLsync, GLenum, GLsizei, GLsizei *, GLint *); -#define CALL_GetSynciv(disp, parameters) \ - (* GET_GetSynciv(disp)) parameters -static INLINE _glptr_GetSynciv GET_GetSynciv(struct _glapi_table *disp) { - return (_glptr_GetSynciv) (GET_by_offset(disp, _gloffset_GetSynciv)); -} - -static INLINE void SET_GetSynciv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsync, GLenum, GLsizei, GLsizei *, GLint *)) { - SET_by_offset(disp, _gloffset_GetSynciv, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsSync)(GLsync); -#define CALL_IsSync(disp, parameters) \ - (* GET_IsSync(disp)) parameters -static INLINE _glptr_IsSync GET_IsSync(struct _glapi_table *disp) { - return (_glptr_IsSync) (GET_by_offset(disp, _gloffset_IsSync)); -} - -static INLINE void SET_IsSync(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLsync)) { - SET_by_offset(disp, _gloffset_IsSync, fn); -} - -typedef void (GLAPIENTRYP _glptr_WaitSync)(GLsync, GLbitfield, GLuint64); -#define CALL_WaitSync(disp, parameters) \ - (* GET_WaitSync(disp)) parameters -static INLINE _glptr_WaitSync GET_WaitSync(struct _glapi_table *disp) { - return (_glptr_WaitSync) (GET_by_offset(disp, _gloffset_WaitSync)); -} - -static INLINE void SET_WaitSync(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsync, GLbitfield, GLuint64)) { - SET_by_offset(disp, _gloffset_WaitSync, fn); -} - -typedef void (GLAPIENTRYP _glptr_DrawElementsBaseVertex)(GLenum, GLsizei, GLenum, const GLvoid *, GLint); -#define CALL_DrawElementsBaseVertex(disp, parameters) \ - (* GET_DrawElementsBaseVertex(disp)) parameters -static INLINE _glptr_DrawElementsBaseVertex GET_DrawElementsBaseVertex(struct _glapi_table *disp) { - return (_glptr_DrawElementsBaseVertex) (GET_by_offset(disp, _gloffset_DrawElementsBaseVertex)); -} - -static INLINE void SET_DrawElementsBaseVertex(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLenum, const GLvoid *, GLint)) { - SET_by_offset(disp, _gloffset_DrawElementsBaseVertex, fn); -} - -typedef void (GLAPIENTRYP _glptr_DrawElementsInstancedBaseVertex)(GLenum, GLsizei, GLenum, const GLvoid *, GLsizei, GLint); -#define CALL_DrawElementsInstancedBaseVertex(disp, parameters) \ - (* GET_DrawElementsInstancedBaseVertex(disp)) parameters -static INLINE _glptr_DrawElementsInstancedBaseVertex GET_DrawElementsInstancedBaseVertex(struct _glapi_table *disp) { - return (_glptr_DrawElementsInstancedBaseVertex) (GET_by_offset(disp, _gloffset_DrawElementsInstancedBaseVertex)); -} - -static INLINE void SET_DrawElementsInstancedBaseVertex(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLenum, const GLvoid *, GLsizei, GLint)) { - SET_by_offset(disp, _gloffset_DrawElementsInstancedBaseVertex, fn); -} - -typedef void (GLAPIENTRYP _glptr_DrawRangeElementsBaseVertex)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *, GLint); -#define CALL_DrawRangeElementsBaseVertex(disp, parameters) \ - (* GET_DrawRangeElementsBaseVertex(disp)) parameters -static INLINE _glptr_DrawRangeElementsBaseVertex GET_DrawRangeElementsBaseVertex(struct _glapi_table *disp) { - return (_glptr_DrawRangeElementsBaseVertex) (GET_by_offset(disp, _gloffset_DrawRangeElementsBaseVertex)); -} - -static INLINE void SET_DrawRangeElementsBaseVertex(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLsizei, GLenum, const GLvoid *, GLint)) { - SET_by_offset(disp, _gloffset_DrawRangeElementsBaseVertex, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiDrawElementsBaseVertex)(GLenum, const GLsizei *, GLenum, const GLvoid **, GLsizei, const GLint *); -#define CALL_MultiDrawElementsBaseVertex(disp, parameters) \ - (* GET_MultiDrawElementsBaseVertex(disp)) parameters -static INLINE _glptr_MultiDrawElementsBaseVertex GET_MultiDrawElementsBaseVertex(struct _glapi_table *disp) { - return (_glptr_MultiDrawElementsBaseVertex) (GET_by_offset(disp, _gloffset_MultiDrawElementsBaseVertex)); -} - -static INLINE void SET_MultiDrawElementsBaseVertex(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLsizei *, GLenum, const GLvoid **, GLsizei, const GLint *)) { - SET_by_offset(disp, _gloffset_MultiDrawElementsBaseVertex, fn); -} - -typedef void (GLAPIENTRYP _glptr_BlendEquationSeparateiARB)(GLuint, GLenum, GLenum); -#define CALL_BlendEquationSeparateiARB(disp, parameters) \ - (* GET_BlendEquationSeparateiARB(disp)) parameters -static INLINE _glptr_BlendEquationSeparateiARB GET_BlendEquationSeparateiARB(struct _glapi_table *disp) { - return (_glptr_BlendEquationSeparateiARB) (GET_by_offset(disp, _gloffset_BlendEquationSeparateiARB)); -} - -static INLINE void SET_BlendEquationSeparateiARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_BlendEquationSeparateiARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_BlendEquationiARB)(GLuint, GLenum); -#define CALL_BlendEquationiARB(disp, parameters) \ - (* GET_BlendEquationiARB(disp)) parameters -static INLINE _glptr_BlendEquationiARB GET_BlendEquationiARB(struct _glapi_table *disp) { - return (_glptr_BlendEquationiARB) (GET_by_offset(disp, _gloffset_BlendEquationiARB)); -} - -static INLINE void SET_BlendEquationiARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum)) { - SET_by_offset(disp, _gloffset_BlendEquationiARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_BlendFuncSeparateiARB)(GLuint, GLenum, GLenum, GLenum, GLenum); -#define CALL_BlendFuncSeparateiARB(disp, parameters) \ - (* GET_BlendFuncSeparateiARB(disp)) parameters -static INLINE _glptr_BlendFuncSeparateiARB GET_BlendFuncSeparateiARB(struct _glapi_table *disp) { - return (_glptr_BlendFuncSeparateiARB) (GET_by_offset(disp, _gloffset_BlendFuncSeparateiARB)); -} - -static INLINE void SET_BlendFuncSeparateiARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLenum, GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_BlendFuncSeparateiARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_BlendFunciARB)(GLuint, GLenum, GLenum); -#define CALL_BlendFunciARB(disp, parameters) \ - (* GET_BlendFunciARB(disp)) parameters -static INLINE _glptr_BlendFunciARB GET_BlendFunciARB(struct _glapi_table *disp) { - return (_glptr_BlendFunciARB) (GET_by_offset(disp, _gloffset_BlendFunciARB)); -} - -static INLINE void SET_BlendFunciARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_BlendFunciARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindSampler)(GLuint, GLuint); -#define CALL_BindSampler(disp, parameters) \ - (* GET_BindSampler(disp)) parameters -static INLINE _glptr_BindSampler GET_BindSampler(struct _glapi_table *disp) { - return (_glptr_BindSampler) (GET_by_offset(disp, _gloffset_BindSampler)); -} - -static INLINE void SET_BindSampler(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_BindSampler, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteSamplers)(GLsizei, const GLuint *); -#define CALL_DeleteSamplers(disp, parameters) \ - (* GET_DeleteSamplers(disp)) parameters -static INLINE _glptr_DeleteSamplers GET_DeleteSamplers(struct _glapi_table *disp) { - return (_glptr_DeleteSamplers) (GET_by_offset(disp, _gloffset_DeleteSamplers)); -} - -static INLINE void SET_DeleteSamplers(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_DeleteSamplers, fn); -} - -typedef void (GLAPIENTRYP _glptr_GenSamplers)(GLsizei, GLuint *); -#define CALL_GenSamplers(disp, parameters) \ - (* GET_GenSamplers(disp)) parameters -static INLINE _glptr_GenSamplers GET_GenSamplers(struct _glapi_table *disp) { - return (_glptr_GenSamplers) (GET_by_offset(disp, _gloffset_GenSamplers)); -} - -static INLINE void SET_GenSamplers(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_GenSamplers, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetSamplerParameterIiv)(GLuint, GLenum, GLint *); -#define CALL_GetSamplerParameterIiv(disp, parameters) \ - (* GET_GetSamplerParameterIiv(disp)) parameters -static INLINE _glptr_GetSamplerParameterIiv GET_GetSamplerParameterIiv(struct _glapi_table *disp) { - return (_glptr_GetSamplerParameterIiv) (GET_by_offset(disp, _gloffset_GetSamplerParameterIiv)); -} - -static INLINE void SET_GetSamplerParameterIiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetSamplerParameterIiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetSamplerParameterIuiv)(GLuint, GLenum, GLuint *); -#define CALL_GetSamplerParameterIuiv(disp, parameters) \ - (* GET_GetSamplerParameterIuiv(disp)) parameters -static INLINE _glptr_GetSamplerParameterIuiv GET_GetSamplerParameterIuiv(struct _glapi_table *disp) { - return (_glptr_GetSamplerParameterIuiv) (GET_by_offset(disp, _gloffset_GetSamplerParameterIuiv)); -} - -static INLINE void SET_GetSamplerParameterIuiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLuint *)) { - SET_by_offset(disp, _gloffset_GetSamplerParameterIuiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetSamplerParameterfv)(GLuint, GLenum, GLfloat *); -#define CALL_GetSamplerParameterfv(disp, parameters) \ - (* GET_GetSamplerParameterfv(disp)) parameters -static INLINE _glptr_GetSamplerParameterfv GET_GetSamplerParameterfv(struct _glapi_table *disp) { - return (_glptr_GetSamplerParameterfv) (GET_by_offset(disp, _gloffset_GetSamplerParameterfv)); -} - -static INLINE void SET_GetSamplerParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetSamplerParameterfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetSamplerParameteriv)(GLuint, GLenum, GLint *); -#define CALL_GetSamplerParameteriv(disp, parameters) \ - (* GET_GetSamplerParameteriv(disp)) parameters -static INLINE _glptr_GetSamplerParameteriv GET_GetSamplerParameteriv(struct _glapi_table *disp) { - return (_glptr_GetSamplerParameteriv) (GET_by_offset(disp, _gloffset_GetSamplerParameteriv)); -} - -static INLINE void SET_GetSamplerParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetSamplerParameteriv, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsSampler)(GLuint); -#define CALL_IsSampler(disp, parameters) \ - (* GET_IsSampler(disp)) parameters -static INLINE _glptr_IsSampler GET_IsSampler(struct _glapi_table *disp) { - return (_glptr_IsSampler) (GET_by_offset(disp, _gloffset_IsSampler)); -} - -static INLINE void SET_IsSampler(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IsSampler, fn); -} - -typedef void (GLAPIENTRYP _glptr_SamplerParameterIiv)(GLuint, GLenum, const GLint *); -#define CALL_SamplerParameterIiv(disp, parameters) \ - (* GET_SamplerParameterIiv(disp)) parameters -static INLINE _glptr_SamplerParameterIiv GET_SamplerParameterIiv(struct _glapi_table *disp) { - return (_glptr_SamplerParameterIiv) (GET_by_offset(disp, _gloffset_SamplerParameterIiv)); -} - -static INLINE void SET_SamplerParameterIiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_SamplerParameterIiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_SamplerParameterIuiv)(GLuint, GLenum, const GLuint *); -#define CALL_SamplerParameterIuiv(disp, parameters) \ - (* GET_SamplerParameterIuiv(disp)) parameters -static INLINE _glptr_SamplerParameterIuiv GET_SamplerParameterIuiv(struct _glapi_table *disp) { - return (_glptr_SamplerParameterIuiv) (GET_by_offset(disp, _gloffset_SamplerParameterIuiv)); -} - -static INLINE void SET_SamplerParameterIuiv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, const GLuint *)) { - SET_by_offset(disp, _gloffset_SamplerParameterIuiv, fn); -} - -typedef void (GLAPIENTRYP _glptr_SamplerParameterf)(GLuint, GLenum, GLfloat); -#define CALL_SamplerParameterf(disp, parameters) \ - (* GET_SamplerParameterf(disp)) parameters -static INLINE _glptr_SamplerParameterf GET_SamplerParameterf(struct _glapi_table *disp) { - return (_glptr_SamplerParameterf) (GET_by_offset(disp, _gloffset_SamplerParameterf)); -} - -static INLINE void SET_SamplerParameterf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_SamplerParameterf, fn); -} - -typedef void (GLAPIENTRYP _glptr_SamplerParameterfv)(GLuint, GLenum, const GLfloat *); -#define CALL_SamplerParameterfv(disp, parameters) \ - (* GET_SamplerParameterfv(disp)) parameters -static INLINE _glptr_SamplerParameterfv GET_SamplerParameterfv(struct _glapi_table *disp) { - return (_glptr_SamplerParameterfv) (GET_by_offset(disp, _gloffset_SamplerParameterfv)); -} - -static INLINE void SET_SamplerParameterfv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_SamplerParameterfv, fn); -} - -typedef void (GLAPIENTRYP _glptr_SamplerParameteri)(GLuint, GLenum, GLint); -#define CALL_SamplerParameteri(disp, parameters) \ - (* GET_SamplerParameteri(disp)) parameters -static INLINE _glptr_SamplerParameteri GET_SamplerParameteri(struct _glapi_table *disp) { - return (_glptr_SamplerParameteri) (GET_by_offset(disp, _gloffset_SamplerParameteri)); -} - -static INLINE void SET_SamplerParameteri(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint)) { - SET_by_offset(disp, _gloffset_SamplerParameteri, fn); -} - -typedef void (GLAPIENTRYP _glptr_SamplerParameteriv)(GLuint, GLenum, const GLint *); -#define CALL_SamplerParameteriv(disp, parameters) \ - (* GET_SamplerParameteriv(disp)) parameters -static INLINE _glptr_SamplerParameteriv GET_SamplerParameteriv(struct _glapi_table *disp) { - return (_glptr_SamplerParameteriv) (GET_by_offset(disp, _gloffset_SamplerParameteriv)); -} - -static INLINE void SET_SamplerParameteriv(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_SamplerParameteriv, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindTransformFeedback)(GLenum, GLuint); -#define CALL_BindTransformFeedback(disp, parameters) \ - (* GET_BindTransformFeedback(disp)) parameters -static INLINE _glptr_BindTransformFeedback GET_BindTransformFeedback(struct _glapi_table *disp) { - return (_glptr_BindTransformFeedback) (GET_by_offset(disp, _gloffset_BindTransformFeedback)); -} - -static INLINE void SET_BindTransformFeedback(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_BindTransformFeedback, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteTransformFeedbacks)(GLsizei, const GLuint *); -#define CALL_DeleteTransformFeedbacks(disp, parameters) \ - (* GET_DeleteTransformFeedbacks(disp)) parameters -static INLINE _glptr_DeleteTransformFeedbacks GET_DeleteTransformFeedbacks(struct _glapi_table *disp) { - return (_glptr_DeleteTransformFeedbacks) (GET_by_offset(disp, _gloffset_DeleteTransformFeedbacks)); -} - -static INLINE void SET_DeleteTransformFeedbacks(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_DeleteTransformFeedbacks, fn); -} - -typedef void (GLAPIENTRYP _glptr_DrawTransformFeedback)(GLenum, GLuint); -#define CALL_DrawTransformFeedback(disp, parameters) \ - (* GET_DrawTransformFeedback(disp)) parameters -static INLINE _glptr_DrawTransformFeedback GET_DrawTransformFeedback(struct _glapi_table *disp) { - return (_glptr_DrawTransformFeedback) (GET_by_offset(disp, _gloffset_DrawTransformFeedback)); -} - -static INLINE void SET_DrawTransformFeedback(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_DrawTransformFeedback, fn); -} - -typedef void (GLAPIENTRYP _glptr_GenTransformFeedbacks)(GLsizei, GLuint *); -#define CALL_GenTransformFeedbacks(disp, parameters) \ - (* GET_GenTransformFeedbacks(disp)) parameters -static INLINE _glptr_GenTransformFeedbacks GET_GenTransformFeedbacks(struct _glapi_table *disp) { - return (_glptr_GenTransformFeedbacks) (GET_by_offset(disp, _gloffset_GenTransformFeedbacks)); -} - -static INLINE void SET_GenTransformFeedbacks(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_GenTransformFeedbacks, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsTransformFeedback)(GLuint); -#define CALL_IsTransformFeedback(disp, parameters) \ - (* GET_IsTransformFeedback(disp)) parameters -static INLINE _glptr_IsTransformFeedback GET_IsTransformFeedback(struct _glapi_table *disp) { - return (_glptr_IsTransformFeedback) (GET_by_offset(disp, _gloffset_IsTransformFeedback)); -} - -static INLINE void SET_IsTransformFeedback(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IsTransformFeedback, fn); -} - -typedef void (GLAPIENTRYP _glptr_PauseTransformFeedback)(void); -#define CALL_PauseTransformFeedback(disp, parameters) \ - (* GET_PauseTransformFeedback(disp)) parameters -static INLINE _glptr_PauseTransformFeedback GET_PauseTransformFeedback(struct _glapi_table *disp) { - return (_glptr_PauseTransformFeedback) (GET_by_offset(disp, _gloffset_PauseTransformFeedback)); -} - -static INLINE void SET_PauseTransformFeedback(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_PauseTransformFeedback, fn); -} - -typedef void (GLAPIENTRYP _glptr_ResumeTransformFeedback)(void); -#define CALL_ResumeTransformFeedback(disp, parameters) \ - (* GET_ResumeTransformFeedback(disp)) parameters -static INLINE _glptr_ResumeTransformFeedback GET_ResumeTransformFeedback(struct _glapi_table *disp) { - return (_glptr_ResumeTransformFeedback) (GET_by_offset(disp, _gloffset_ResumeTransformFeedback)); -} - -static INLINE void SET_ResumeTransformFeedback(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_ResumeTransformFeedback, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClearDepthf)(GLclampf); -#define CALL_ClearDepthf(disp, parameters) \ - (* GET_ClearDepthf(disp)) parameters -static INLINE _glptr_ClearDepthf GET_ClearDepthf(struct _glapi_table *disp) { - return (_glptr_ClearDepthf) (GET_by_offset(disp, _gloffset_ClearDepthf)); -} - -static INLINE void SET_ClearDepthf(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampf)) { - SET_by_offset(disp, _gloffset_ClearDepthf, fn); -} - -typedef void (GLAPIENTRYP _glptr_DepthRangef)(GLclampf, GLclampf); -#define CALL_DepthRangef(disp, parameters) \ - (* GET_DepthRangef(disp)) parameters -static INLINE _glptr_DepthRangef GET_DepthRangef(struct _glapi_table *disp) { - return (_glptr_DepthRangef) (GET_by_offset(disp, _gloffset_DepthRangef)); -} - -static INLINE void SET_DepthRangef(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampf, GLclampf)) { - SET_by_offset(disp, _gloffset_DepthRangef, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetShaderPrecisionFormat)(GLenum, GLenum, GLint *, GLint *); -#define CALL_GetShaderPrecisionFormat(disp, parameters) \ - (* GET_GetShaderPrecisionFormat(disp)) parameters -static INLINE _glptr_GetShaderPrecisionFormat GET_GetShaderPrecisionFormat(struct _glapi_table *disp) { - return (_glptr_GetShaderPrecisionFormat) (GET_by_offset(disp, _gloffset_GetShaderPrecisionFormat)); -} - -static INLINE void SET_GetShaderPrecisionFormat(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *, GLint *)) { - SET_by_offset(disp, _gloffset_GetShaderPrecisionFormat, fn); -} - -typedef void (GLAPIENTRYP _glptr_ReleaseShaderCompiler)(void); -#define CALL_ReleaseShaderCompiler(disp, parameters) \ - (* GET_ReleaseShaderCompiler(disp)) parameters -static INLINE _glptr_ReleaseShaderCompiler GET_ReleaseShaderCompiler(struct _glapi_table *disp) { - return (_glptr_ReleaseShaderCompiler) (GET_by_offset(disp, _gloffset_ReleaseShaderCompiler)); -} - -static INLINE void SET_ReleaseShaderCompiler(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_ReleaseShaderCompiler, fn); -} - -typedef void (GLAPIENTRYP _glptr_ShaderBinary)(GLsizei, const GLuint *, GLenum, const GLvoid *, GLsizei); -#define CALL_ShaderBinary(disp, parameters) \ - (* GET_ShaderBinary(disp)) parameters -static INLINE _glptr_ShaderBinary GET_ShaderBinary(struct _glapi_table *disp) { - return (_glptr_ShaderBinary) (GET_by_offset(disp, _gloffset_ShaderBinary)); -} - -static INLINE void SET_ShaderBinary(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *, GLenum, const GLvoid *, GLsizei)) { - SET_by_offset(disp, _gloffset_ShaderBinary, fn); -} - -typedef GLenum (GLAPIENTRYP _glptr_GetGraphicsResetStatusARB)(void); -#define CALL_GetGraphicsResetStatusARB(disp, parameters) \ - (* GET_GetGraphicsResetStatusARB(disp)) parameters -static INLINE _glptr_GetGraphicsResetStatusARB GET_GetGraphicsResetStatusARB(struct _glapi_table *disp) { - return (_glptr_GetGraphicsResetStatusARB) (GET_by_offset(disp, _gloffset_GetGraphicsResetStatusARB)); -} - -static INLINE void SET_GetGraphicsResetStatusARB(struct _glapi_table *disp, GLenum (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_GetGraphicsResetStatusARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnColorTableARB)(GLenum, GLenum, GLenum, GLsizei, GLvoid *); -#define CALL_GetnColorTableARB(disp, parameters) \ - (* GET_GetnColorTableARB(disp)) parameters -static INLINE _glptr_GetnColorTableARB GET_GetnColorTableARB(struct _glapi_table *disp) { - return (_glptr_GetnColorTableARB) (GET_by_offset(disp, _gloffset_GetnColorTableARB)); -} - -static INLINE void SET_GetnColorTableARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLsizei, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetnColorTableARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnCompressedTexImageARB)(GLenum, GLint, GLsizei, GLvoid *); -#define CALL_GetnCompressedTexImageARB(disp, parameters) \ - (* GET_GetnCompressedTexImageARB(disp)) parameters -static INLINE _glptr_GetnCompressedTexImageARB GET_GetnCompressedTexImageARB(struct _glapi_table *disp) { - return (_glptr_GetnCompressedTexImageARB) (GET_by_offset(disp, _gloffset_GetnCompressedTexImageARB)); -} - -static INLINE void SET_GetnCompressedTexImageARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLsizei, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetnCompressedTexImageARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnConvolutionFilterARB)(GLenum, GLenum, GLenum, GLsizei, GLvoid *); -#define CALL_GetnConvolutionFilterARB(disp, parameters) \ - (* GET_GetnConvolutionFilterARB(disp)) parameters -static INLINE _glptr_GetnConvolutionFilterARB GET_GetnConvolutionFilterARB(struct _glapi_table *disp) { - return (_glptr_GetnConvolutionFilterARB) (GET_by_offset(disp, _gloffset_GetnConvolutionFilterARB)); -} - -static INLINE void SET_GetnConvolutionFilterARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLsizei, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetnConvolutionFilterARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnHistogramARB)(GLenum, GLboolean, GLenum, GLenum, GLsizei, GLvoid *); -#define CALL_GetnHistogramARB(disp, parameters) \ - (* GET_GetnHistogramARB(disp)) parameters -static INLINE _glptr_GetnHistogramARB GET_GetnHistogramARB(struct _glapi_table *disp) { - return (_glptr_GetnHistogramARB) (GET_by_offset(disp, _gloffset_GetnHistogramARB)); -} - -static INLINE void SET_GetnHistogramARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLboolean, GLenum, GLenum, GLsizei, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetnHistogramARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnMapdvARB)(GLenum, GLenum, GLsizei, GLdouble *); -#define CALL_GetnMapdvARB(disp, parameters) \ - (* GET_GetnMapdvARB(disp)) parameters -static INLINE _glptr_GetnMapdvARB GET_GetnMapdvARB(struct _glapi_table *disp) { - return (_glptr_GetnMapdvARB) (GET_by_offset(disp, _gloffset_GetnMapdvARB)); -} - -static INLINE void SET_GetnMapdvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLdouble *)) { - SET_by_offset(disp, _gloffset_GetnMapdvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnMapfvARB)(GLenum, GLenum, GLsizei, GLfloat *); -#define CALL_GetnMapfvARB(disp, parameters) \ - (* GET_GetnMapfvARB(disp)) parameters -static INLINE _glptr_GetnMapfvARB GET_GetnMapfvARB(struct _glapi_table *disp) { - return (_glptr_GetnMapfvARB) (GET_by_offset(disp, _gloffset_GetnMapfvARB)); -} - -static INLINE void SET_GetnMapfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetnMapfvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnMapivARB)(GLenum, GLenum, GLsizei, GLint *); -#define CALL_GetnMapivARB(disp, parameters) \ - (* GET_GetnMapivARB(disp)) parameters -static INLINE _glptr_GetnMapivARB GET_GetnMapivARB(struct _glapi_table *disp) { - return (_glptr_GetnMapivARB) (GET_by_offset(disp, _gloffset_GetnMapivARB)); -} - -static INLINE void SET_GetnMapivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLint *)) { - SET_by_offset(disp, _gloffset_GetnMapivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnMinmaxARB)(GLenum, GLboolean, GLenum, GLenum, GLsizei, GLvoid *); -#define CALL_GetnMinmaxARB(disp, parameters) \ - (* GET_GetnMinmaxARB(disp)) parameters -static INLINE _glptr_GetnMinmaxARB GET_GetnMinmaxARB(struct _glapi_table *disp) { - return (_glptr_GetnMinmaxARB) (GET_by_offset(disp, _gloffset_GetnMinmaxARB)); -} - -static INLINE void SET_GetnMinmaxARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLboolean, GLenum, GLenum, GLsizei, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetnMinmaxARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnPixelMapfvARB)(GLenum, GLsizei, GLfloat *); -#define CALL_GetnPixelMapfvARB(disp, parameters) \ - (* GET_GetnPixelMapfvARB(disp)) parameters -static INLINE _glptr_GetnPixelMapfvARB GET_GetnPixelMapfvARB(struct _glapi_table *disp) { - return (_glptr_GetnPixelMapfvARB) (GET_by_offset(disp, _gloffset_GetnPixelMapfvARB)); -} - -static INLINE void SET_GetnPixelMapfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetnPixelMapfvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnPixelMapuivARB)(GLenum, GLsizei, GLuint *); -#define CALL_GetnPixelMapuivARB(disp, parameters) \ - (* GET_GetnPixelMapuivARB(disp)) parameters -static INLINE _glptr_GetnPixelMapuivARB GET_GetnPixelMapuivARB(struct _glapi_table *disp) { - return (_glptr_GetnPixelMapuivARB) (GET_by_offset(disp, _gloffset_GetnPixelMapuivARB)); -} - -static INLINE void SET_GetnPixelMapuivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_GetnPixelMapuivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnPixelMapusvARB)(GLenum, GLsizei, GLushort *); -#define CALL_GetnPixelMapusvARB(disp, parameters) \ - (* GET_GetnPixelMapusvARB(disp)) parameters -static INLINE _glptr_GetnPixelMapusvARB GET_GetnPixelMapusvARB(struct _glapi_table *disp) { - return (_glptr_GetnPixelMapusvARB) (GET_by_offset(disp, _gloffset_GetnPixelMapusvARB)); -} - -static INLINE void SET_GetnPixelMapusvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLushort *)) { - SET_by_offset(disp, _gloffset_GetnPixelMapusvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnPolygonStippleARB)(GLsizei, GLubyte *); -#define CALL_GetnPolygonStippleARB(disp, parameters) \ - (* GET_GetnPolygonStippleARB(disp)) parameters -static INLINE _glptr_GetnPolygonStippleARB GET_GetnPolygonStippleARB(struct _glapi_table *disp) { - return (_glptr_GetnPolygonStippleARB) (GET_by_offset(disp, _gloffset_GetnPolygonStippleARB)); -} - -static INLINE void SET_GetnPolygonStippleARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLubyte *)) { - SET_by_offset(disp, _gloffset_GetnPolygonStippleARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnSeparableFilterARB)(GLenum, GLenum, GLenum, GLsizei, GLvoid *, GLsizei, GLvoid *, GLvoid *); -#define CALL_GetnSeparableFilterARB(disp, parameters) \ - (* GET_GetnSeparableFilterARB(disp)) parameters -static INLINE _glptr_GetnSeparableFilterARB GET_GetnSeparableFilterARB(struct _glapi_table *disp) { - return (_glptr_GetnSeparableFilterARB) (GET_by_offset(disp, _gloffset_GetnSeparableFilterARB)); -} - -static INLINE void SET_GetnSeparableFilterARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLsizei, GLvoid *, GLsizei, GLvoid *, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetnSeparableFilterARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnTexImageARB)(GLenum, GLint, GLenum, GLenum, GLsizei, GLvoid *); -#define CALL_GetnTexImageARB(disp, parameters) \ - (* GET_GetnTexImageARB(disp)) parameters -static INLINE _glptr_GetnTexImageARB GET_GetnTexImageARB(struct _glapi_table *disp) { - return (_glptr_GetnTexImageARB) (GET_by_offset(disp, _gloffset_GetnTexImageARB)); -} - -static INLINE void SET_GetnTexImageARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint, GLenum, GLenum, GLsizei, GLvoid *)) { - SET_by_offset(disp, _gloffset_GetnTexImageARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnUniformdvARB)(GLhandleARB, GLint, GLsizei, GLdouble *); -#define CALL_GetnUniformdvARB(disp, parameters) \ - (* GET_GetnUniformdvARB(disp)) parameters -static INLINE _glptr_GetnUniformdvARB GET_GetnUniformdvARB(struct _glapi_table *disp) { - return (_glptr_GetnUniformdvARB) (GET_by_offset(disp, _gloffset_GetnUniformdvARB)); -} - -static INLINE void SET_GetnUniformdvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLint, GLsizei, GLdouble *)) { - SET_by_offset(disp, _gloffset_GetnUniformdvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnUniformfvARB)(GLhandleARB, GLint, GLsizei, GLfloat *); -#define CALL_GetnUniformfvARB(disp, parameters) \ - (* GET_GetnUniformfvARB(disp)) parameters -static INLINE _glptr_GetnUniformfvARB GET_GetnUniformfvARB(struct _glapi_table *disp) { - return (_glptr_GetnUniformfvARB) (GET_by_offset(disp, _gloffset_GetnUniformfvARB)); -} - -static INLINE void SET_GetnUniformfvARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLint, GLsizei, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetnUniformfvARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnUniformivARB)(GLhandleARB, GLint, GLsizei, GLint *); -#define CALL_GetnUniformivARB(disp, parameters) \ - (* GET_GetnUniformivARB(disp)) parameters -static INLINE _glptr_GetnUniformivARB GET_GetnUniformivARB(struct _glapi_table *disp) { - return (_glptr_GetnUniformivARB) (GET_by_offset(disp, _gloffset_GetnUniformivARB)); -} - -static INLINE void SET_GetnUniformivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLint, GLsizei, GLint *)) { - SET_by_offset(disp, _gloffset_GetnUniformivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetnUniformuivARB)(GLhandleARB, GLint, GLsizei, GLuint *); -#define CALL_GetnUniformuivARB(disp, parameters) \ - (* GET_GetnUniformuivARB(disp)) parameters -static INLINE _glptr_GetnUniformuivARB GET_GetnUniformuivARB(struct _glapi_table *disp) { - return (_glptr_GetnUniformuivARB) (GET_by_offset(disp, _gloffset_GetnUniformuivARB)); -} - -static INLINE void SET_GetnUniformuivARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLhandleARB, GLint, GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_GetnUniformuivARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_ReadnPixelsARB)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLsizei, GLvoid *); -#define CALL_ReadnPixelsARB(disp, parameters) \ - (* GET_ReadnPixelsARB(disp)) parameters -static INLINE _glptr_ReadnPixelsARB GET_ReadnPixelsARB(struct _glapi_table *disp) { - return (_glptr_ReadnPixelsARB) (GET_by_offset(disp, _gloffset_ReadnPixelsARB)); -} - -static INLINE void SET_ReadnPixelsARB(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLsizei, GLvoid *)) { - SET_by_offset(disp, _gloffset_ReadnPixelsARB, fn); -} - -typedef void (GLAPIENTRYP _glptr_PolygonOffsetEXT)(GLfloat, GLfloat); -#define CALL_PolygonOffsetEXT(disp, parameters) \ - (* GET_PolygonOffsetEXT(disp)) parameters -static INLINE _glptr_PolygonOffsetEXT GET_PolygonOffsetEXT(struct _glapi_table *disp) { - return (_glptr_PolygonOffsetEXT) (GET_by_offset(disp, _gloffset_PolygonOffsetEXT)); -} - -static INLINE void SET_PolygonOffsetEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_PolygonOffsetEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetPixelTexGenParameterfvSGIS)(GLenum, GLfloat *); -#define CALL_GetPixelTexGenParameterfvSGIS(disp, parameters) \ - (* GET_GetPixelTexGenParameterfvSGIS(disp)) parameters -static INLINE _glptr_GetPixelTexGenParameterfvSGIS GET_GetPixelTexGenParameterfvSGIS(struct _glapi_table *disp) { - return (_glptr_GetPixelTexGenParameterfvSGIS) (GET_by_offset(disp, _gloffset_GetPixelTexGenParameterfvSGIS)); -} - -static INLINE void SET_GetPixelTexGenParameterfvSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetPixelTexGenParameterfvSGIS, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetPixelTexGenParameterivSGIS)(GLenum, GLint *); -#define CALL_GetPixelTexGenParameterivSGIS(disp, parameters) \ - (* GET_GetPixelTexGenParameterivSGIS(disp)) parameters -static INLINE _glptr_GetPixelTexGenParameterivSGIS GET_GetPixelTexGenParameterivSGIS(struct _glapi_table *disp) { - return (_glptr_GetPixelTexGenParameterivSGIS) (GET_by_offset(disp, _gloffset_GetPixelTexGenParameterivSGIS)); -} - -static INLINE void SET_GetPixelTexGenParameterivSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetPixelTexGenParameterivSGIS, fn); -} - -typedef void (GLAPIENTRYP _glptr_PixelTexGenParameterfSGIS)(GLenum, GLfloat); -#define CALL_PixelTexGenParameterfSGIS(disp, parameters) \ - (* GET_PixelTexGenParameterfSGIS(disp)) parameters -static INLINE _glptr_PixelTexGenParameterfSGIS GET_PixelTexGenParameterfSGIS(struct _glapi_table *disp) { - return (_glptr_PixelTexGenParameterfSGIS) (GET_by_offset(disp, _gloffset_PixelTexGenParameterfSGIS)); -} - -static INLINE void SET_PixelTexGenParameterfSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_PixelTexGenParameterfSGIS, fn); -} - -typedef void (GLAPIENTRYP _glptr_PixelTexGenParameterfvSGIS)(GLenum, const GLfloat *); -#define CALL_PixelTexGenParameterfvSGIS(disp, parameters) \ - (* GET_PixelTexGenParameterfvSGIS(disp)) parameters -static INLINE _glptr_PixelTexGenParameterfvSGIS GET_PixelTexGenParameterfvSGIS(struct _glapi_table *disp) { - return (_glptr_PixelTexGenParameterfvSGIS) (GET_by_offset(disp, _gloffset_PixelTexGenParameterfvSGIS)); -} - -static INLINE void SET_PixelTexGenParameterfvSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_PixelTexGenParameterfvSGIS, fn); -} - -typedef void (GLAPIENTRYP _glptr_PixelTexGenParameteriSGIS)(GLenum, GLint); -#define CALL_PixelTexGenParameteriSGIS(disp, parameters) \ - (* GET_PixelTexGenParameteriSGIS(disp)) parameters -static INLINE _glptr_PixelTexGenParameteriSGIS GET_PixelTexGenParameteriSGIS(struct _glapi_table *disp) { - return (_glptr_PixelTexGenParameteriSGIS) (GET_by_offset(disp, _gloffset_PixelTexGenParameteriSGIS)); -} - -static INLINE void SET_PixelTexGenParameteriSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { - SET_by_offset(disp, _gloffset_PixelTexGenParameteriSGIS, fn); -} - -typedef void (GLAPIENTRYP _glptr_PixelTexGenParameterivSGIS)(GLenum, const GLint *); -#define CALL_PixelTexGenParameterivSGIS(disp, parameters) \ - (* GET_PixelTexGenParameterivSGIS(disp)) parameters -static INLINE _glptr_PixelTexGenParameterivSGIS GET_PixelTexGenParameterivSGIS(struct _glapi_table *disp) { - return (_glptr_PixelTexGenParameterivSGIS) (GET_by_offset(disp, _gloffset_PixelTexGenParameterivSGIS)); -} - -static INLINE void SET_PixelTexGenParameterivSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_PixelTexGenParameterivSGIS, fn); -} - -typedef void (GLAPIENTRYP _glptr_SampleMaskSGIS)(GLclampf, GLboolean); -#define CALL_SampleMaskSGIS(disp, parameters) \ - (* GET_SampleMaskSGIS(disp)) parameters -static INLINE _glptr_SampleMaskSGIS GET_SampleMaskSGIS(struct _glapi_table *disp) { - return (_glptr_SampleMaskSGIS) (GET_by_offset(disp, _gloffset_SampleMaskSGIS)); -} - -static INLINE void SET_SampleMaskSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampf, GLboolean)) { - SET_by_offset(disp, _gloffset_SampleMaskSGIS, fn); -} - -typedef void (GLAPIENTRYP _glptr_SamplePatternSGIS)(GLenum); -#define CALL_SamplePatternSGIS(disp, parameters) \ - (* GET_SamplePatternSGIS(disp)) parameters -static INLINE _glptr_SamplePatternSGIS GET_SamplePatternSGIS(struct _glapi_table *disp) { - return (_glptr_SamplePatternSGIS) (GET_by_offset(disp, _gloffset_SamplePatternSGIS)); -} - -static INLINE void SET_SamplePatternSGIS(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_SamplePatternSGIS, fn); -} - -typedef void (GLAPIENTRYP _glptr_ColorPointerEXT)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *); -#define CALL_ColorPointerEXT(disp, parameters) \ - (* GET_ColorPointerEXT(disp)) parameters -static INLINE _glptr_ColorPointerEXT GET_ColorPointerEXT(struct _glapi_table *disp) { - return (_glptr_ColorPointerEXT) (GET_by_offset(disp, _gloffset_ColorPointerEXT)); -} - -static INLINE void SET_ColorPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_ColorPointerEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_EdgeFlagPointerEXT)(GLsizei, GLsizei, const GLboolean *); -#define CALL_EdgeFlagPointerEXT(disp, parameters) \ - (* GET_EdgeFlagPointerEXT(disp)) parameters -static INLINE _glptr_EdgeFlagPointerEXT GET_EdgeFlagPointerEXT(struct _glapi_table *disp) { - return (_glptr_EdgeFlagPointerEXT) (GET_by_offset(disp, _gloffset_EdgeFlagPointerEXT)); -} - -static INLINE void SET_EdgeFlagPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLsizei, const GLboolean *)) { - SET_by_offset(disp, _gloffset_EdgeFlagPointerEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_IndexPointerEXT)(GLenum, GLsizei, GLsizei, const GLvoid *); -#define CALL_IndexPointerEXT(disp, parameters) \ - (* GET_IndexPointerEXT(disp)) parameters -static INLINE _glptr_IndexPointerEXT GET_IndexPointerEXT(struct _glapi_table *disp) { - return (_glptr_IndexPointerEXT) (GET_by_offset(disp, _gloffset_IndexPointerEXT)); -} - -static INLINE void SET_IndexPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_IndexPointerEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_NormalPointerEXT)(GLenum, GLsizei, GLsizei, const GLvoid *); -#define CALL_NormalPointerEXT(disp, parameters) \ - (* GET_NormalPointerEXT(disp)) parameters -static INLINE _glptr_NormalPointerEXT GET_NormalPointerEXT(struct _glapi_table *disp) { - return (_glptr_NormalPointerEXT) (GET_by_offset(disp, _gloffset_NormalPointerEXT)); -} - -static INLINE void SET_NormalPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_NormalPointerEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexCoordPointerEXT)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *); -#define CALL_TexCoordPointerEXT(disp, parameters) \ - (* GET_TexCoordPointerEXT(disp)) parameters -static INLINE _glptr_TexCoordPointerEXT GET_TexCoordPointerEXT(struct _glapi_table *disp) { - return (_glptr_TexCoordPointerEXT) (GET_by_offset(disp, _gloffset_TexCoordPointerEXT)); -} - -static INLINE void SET_TexCoordPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_TexCoordPointerEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexPointerEXT)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *); -#define CALL_VertexPointerEXT(disp, parameters) \ - (* GET_VertexPointerEXT(disp)) parameters -static INLINE _glptr_VertexPointerEXT GET_VertexPointerEXT(struct _glapi_table *disp) { - return (_glptr_VertexPointerEXT) (GET_by_offset(disp, _gloffset_VertexPointerEXT)); -} - -static INLINE void SET_VertexPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_VertexPointerEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_PointParameterfEXT)(GLenum, GLfloat); -#define CALL_PointParameterfEXT(disp, parameters) \ - (* GET_PointParameterfEXT(disp)) parameters -static INLINE _glptr_PointParameterfEXT GET_PointParameterfEXT(struct _glapi_table *disp) { - return (_glptr_PointParameterfEXT) (GET_by_offset(disp, _gloffset_PointParameterfEXT)); -} - -static INLINE void SET_PointParameterfEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_PointParameterfEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_PointParameterfvEXT)(GLenum, const GLfloat *); -#define CALL_PointParameterfvEXT(disp, parameters) \ - (* GET_PointParameterfvEXT(disp)) parameters -static INLINE _glptr_PointParameterfvEXT GET_PointParameterfvEXT(struct _glapi_table *disp) { - return (_glptr_PointParameterfvEXT) (GET_by_offset(disp, _gloffset_PointParameterfvEXT)); -} - -static INLINE void SET_PointParameterfvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_PointParameterfvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_LockArraysEXT)(GLint, GLsizei); -#define CALL_LockArraysEXT(disp, parameters) \ - (* GET_LockArraysEXT(disp)) parameters -static INLINE _glptr_LockArraysEXT GET_LockArraysEXT(struct _glapi_table *disp) { - return (_glptr_LockArraysEXT) (GET_by_offset(disp, _gloffset_LockArraysEXT)); -} - -static INLINE void SET_LockArraysEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei)) { - SET_by_offset(disp, _gloffset_LockArraysEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_UnlockArraysEXT)(void); -#define CALL_UnlockArraysEXT(disp, parameters) \ - (* GET_UnlockArraysEXT(disp)) parameters -static INLINE _glptr_UnlockArraysEXT GET_UnlockArraysEXT(struct _glapi_table *disp) { - return (_glptr_UnlockArraysEXT) (GET_by_offset(disp, _gloffset_UnlockArraysEXT)); -} - -static INLINE void SET_UnlockArraysEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_UnlockArraysEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3bEXT)(GLbyte, GLbyte, GLbyte); -#define CALL_SecondaryColor3bEXT(disp, parameters) \ - (* GET_SecondaryColor3bEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3bEXT GET_SecondaryColor3bEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3bEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3bEXT)); -} - -static INLINE void SET_SecondaryColor3bEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLbyte, GLbyte, GLbyte)) { - SET_by_offset(disp, _gloffset_SecondaryColor3bEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3bvEXT)(const GLbyte *); -#define CALL_SecondaryColor3bvEXT(disp, parameters) \ - (* GET_SecondaryColor3bvEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3bvEXT GET_SecondaryColor3bvEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3bvEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3bvEXT)); -} - -static INLINE void SET_SecondaryColor3bvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLbyte *)) { - SET_by_offset(disp, _gloffset_SecondaryColor3bvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3dEXT)(GLdouble, GLdouble, GLdouble); -#define CALL_SecondaryColor3dEXT(disp, parameters) \ - (* GET_SecondaryColor3dEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3dEXT GET_SecondaryColor3dEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3dEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3dEXT)); -} - -static INLINE void SET_SecondaryColor3dEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_SecondaryColor3dEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3dvEXT)(const GLdouble *); -#define CALL_SecondaryColor3dvEXT(disp, parameters) \ - (* GET_SecondaryColor3dvEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3dvEXT GET_SecondaryColor3dvEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3dvEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3dvEXT)); -} - -static INLINE void SET_SecondaryColor3dvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_SecondaryColor3dvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3fEXT)(GLfloat, GLfloat, GLfloat); -#define CALL_SecondaryColor3fEXT(disp, parameters) \ - (* GET_SecondaryColor3fEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3fEXT GET_SecondaryColor3fEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3fEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3fEXT)); -} - -static INLINE void SET_SecondaryColor3fEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_SecondaryColor3fEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3fvEXT)(const GLfloat *); -#define CALL_SecondaryColor3fvEXT(disp, parameters) \ - (* GET_SecondaryColor3fvEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3fvEXT GET_SecondaryColor3fvEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3fvEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3fvEXT)); -} - -static INLINE void SET_SecondaryColor3fvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_SecondaryColor3fvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3iEXT)(GLint, GLint, GLint); -#define CALL_SecondaryColor3iEXT(disp, parameters) \ - (* GET_SecondaryColor3iEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3iEXT GET_SecondaryColor3iEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3iEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3iEXT)); -} - -static INLINE void SET_SecondaryColor3iEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_SecondaryColor3iEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3ivEXT)(const GLint *); -#define CALL_SecondaryColor3ivEXT(disp, parameters) \ - (* GET_SecondaryColor3ivEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3ivEXT GET_SecondaryColor3ivEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3ivEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3ivEXT)); -} - -static INLINE void SET_SecondaryColor3ivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_SecondaryColor3ivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3sEXT)(GLshort, GLshort, GLshort); -#define CALL_SecondaryColor3sEXT(disp, parameters) \ - (* GET_SecondaryColor3sEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3sEXT GET_SecondaryColor3sEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3sEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3sEXT)); -} - -static INLINE void SET_SecondaryColor3sEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_SecondaryColor3sEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3svEXT)(const GLshort *); -#define CALL_SecondaryColor3svEXT(disp, parameters) \ - (* GET_SecondaryColor3svEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3svEXT GET_SecondaryColor3svEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3svEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3svEXT)); -} - -static INLINE void SET_SecondaryColor3svEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_SecondaryColor3svEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3ubEXT)(GLubyte, GLubyte, GLubyte); -#define CALL_SecondaryColor3ubEXT(disp, parameters) \ - (* GET_SecondaryColor3ubEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3ubEXT GET_SecondaryColor3ubEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3ubEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3ubEXT)); -} - -static INLINE void SET_SecondaryColor3ubEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLubyte, GLubyte, GLubyte)) { - SET_by_offset(disp, _gloffset_SecondaryColor3ubEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3ubvEXT)(const GLubyte *); -#define CALL_SecondaryColor3ubvEXT(disp, parameters) \ - (* GET_SecondaryColor3ubvEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3ubvEXT GET_SecondaryColor3ubvEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3ubvEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3ubvEXT)); -} - -static INLINE void SET_SecondaryColor3ubvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLubyte *)) { - SET_by_offset(disp, _gloffset_SecondaryColor3ubvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3uiEXT)(GLuint, GLuint, GLuint); -#define CALL_SecondaryColor3uiEXT(disp, parameters) \ - (* GET_SecondaryColor3uiEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3uiEXT GET_SecondaryColor3uiEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3uiEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3uiEXT)); -} - -static INLINE void SET_SecondaryColor3uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_SecondaryColor3uiEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3uivEXT)(const GLuint *); -#define CALL_SecondaryColor3uivEXT(disp, parameters) \ - (* GET_SecondaryColor3uivEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3uivEXT GET_SecondaryColor3uivEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3uivEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3uivEXT)); -} - -static INLINE void SET_SecondaryColor3uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLuint *)) { - SET_by_offset(disp, _gloffset_SecondaryColor3uivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3usEXT)(GLushort, GLushort, GLushort); -#define CALL_SecondaryColor3usEXT(disp, parameters) \ - (* GET_SecondaryColor3usEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3usEXT GET_SecondaryColor3usEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3usEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3usEXT)); -} - -static INLINE void SET_SecondaryColor3usEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLushort, GLushort, GLushort)) { - SET_by_offset(disp, _gloffset_SecondaryColor3usEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColor3usvEXT)(const GLushort *); -#define CALL_SecondaryColor3usvEXT(disp, parameters) \ - (* GET_SecondaryColor3usvEXT(disp)) parameters -static INLINE _glptr_SecondaryColor3usvEXT GET_SecondaryColor3usvEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColor3usvEXT) (GET_by_offset(disp, _gloffset_SecondaryColor3usvEXT)); -} - -static INLINE void SET_SecondaryColor3usvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLushort *)) { - SET_by_offset(disp, _gloffset_SecondaryColor3usvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_SecondaryColorPointerEXT)(GLint, GLenum, GLsizei, const GLvoid *); -#define CALL_SecondaryColorPointerEXT(disp, parameters) \ - (* GET_SecondaryColorPointerEXT(disp)) parameters -static INLINE _glptr_SecondaryColorPointerEXT GET_SecondaryColorPointerEXT(struct _glapi_table *disp) { - return (_glptr_SecondaryColorPointerEXT) (GET_by_offset(disp, _gloffset_SecondaryColorPointerEXT)); -} - -static INLINE void SET_SecondaryColorPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_SecondaryColorPointerEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiDrawArraysEXT)(GLenum, const GLint *, const GLsizei *, GLsizei); -#define CALL_MultiDrawArraysEXT(disp, parameters) \ - (* GET_MultiDrawArraysEXT(disp)) parameters -static INLINE _glptr_MultiDrawArraysEXT GET_MultiDrawArraysEXT(struct _glapi_table *disp) { - return (_glptr_MultiDrawArraysEXT) (GET_by_offset(disp, _gloffset_MultiDrawArraysEXT)); -} - -static INLINE void SET_MultiDrawArraysEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *, const GLsizei *, GLsizei)) { - SET_by_offset(disp, _gloffset_MultiDrawArraysEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiDrawElementsEXT)(GLenum, const GLsizei *, GLenum, const GLvoid **, GLsizei); -#define CALL_MultiDrawElementsEXT(disp, parameters) \ - (* GET_MultiDrawElementsEXT(disp)) parameters -static INLINE _glptr_MultiDrawElementsEXT GET_MultiDrawElementsEXT(struct _glapi_table *disp) { - return (_glptr_MultiDrawElementsEXT) (GET_by_offset(disp, _gloffset_MultiDrawElementsEXT)); -} - -static INLINE void SET_MultiDrawElementsEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLsizei *, GLenum, const GLvoid **, GLsizei)) { - SET_by_offset(disp, _gloffset_MultiDrawElementsEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_FogCoordPointerEXT)(GLenum, GLsizei, const GLvoid *); -#define CALL_FogCoordPointerEXT(disp, parameters) \ - (* GET_FogCoordPointerEXT(disp)) parameters -static INLINE _glptr_FogCoordPointerEXT GET_FogCoordPointerEXT(struct _glapi_table *disp) { - return (_glptr_FogCoordPointerEXT) (GET_by_offset(disp, _gloffset_FogCoordPointerEXT)); -} - -static INLINE void SET_FogCoordPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_FogCoordPointerEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_FogCoorddEXT)(GLdouble); -#define CALL_FogCoorddEXT(disp, parameters) \ - (* GET_FogCoorddEXT(disp)) parameters -static INLINE _glptr_FogCoorddEXT GET_FogCoorddEXT(struct _glapi_table *disp) { - return (_glptr_FogCoorddEXT) (GET_by_offset(disp, _gloffset_FogCoorddEXT)); -} - -static INLINE void SET_FogCoorddEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble)) { - SET_by_offset(disp, _gloffset_FogCoorddEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_FogCoorddvEXT)(const GLdouble *); -#define CALL_FogCoorddvEXT(disp, parameters) \ - (* GET_FogCoorddvEXT(disp)) parameters -static INLINE _glptr_FogCoorddvEXT GET_FogCoorddvEXT(struct _glapi_table *disp) { - return (_glptr_FogCoorddvEXT) (GET_by_offset(disp, _gloffset_FogCoorddvEXT)); -} - -static INLINE void SET_FogCoorddvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_FogCoorddvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_FogCoordfEXT)(GLfloat); -#define CALL_FogCoordfEXT(disp, parameters) \ - (* GET_FogCoordfEXT(disp)) parameters -static INLINE _glptr_FogCoordfEXT GET_FogCoordfEXT(struct _glapi_table *disp) { - return (_glptr_FogCoordfEXT) (GET_by_offset(disp, _gloffset_FogCoordfEXT)); -} - -static INLINE void SET_FogCoordfEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat)) { - SET_by_offset(disp, _gloffset_FogCoordfEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_FogCoordfvEXT)(const GLfloat *); -#define CALL_FogCoordfvEXT(disp, parameters) \ - (* GET_FogCoordfvEXT(disp)) parameters -static INLINE _glptr_FogCoordfvEXT GET_FogCoordfvEXT(struct _glapi_table *disp) { - return (_glptr_FogCoordfvEXT) (GET_by_offset(disp, _gloffset_FogCoordfvEXT)); -} - -static INLINE void SET_FogCoordfvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_FogCoordfvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_PixelTexGenSGIX)(GLenum); -#define CALL_PixelTexGenSGIX(disp, parameters) \ - (* GET_PixelTexGenSGIX(disp)) parameters -static INLINE _glptr_PixelTexGenSGIX GET_PixelTexGenSGIX(struct _glapi_table *disp) { - return (_glptr_PixelTexGenSGIX) (GET_by_offset(disp, _gloffset_PixelTexGenSGIX)); -} - -static INLINE void SET_PixelTexGenSGIX(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_PixelTexGenSGIX, fn); -} - -typedef void (GLAPIENTRYP _glptr_BlendFuncSeparateEXT)(GLenum, GLenum, GLenum, GLenum); -#define CALL_BlendFuncSeparateEXT(disp, parameters) \ - (* GET_BlendFuncSeparateEXT(disp)) parameters -static INLINE _glptr_BlendFuncSeparateEXT GET_BlendFuncSeparateEXT(struct _glapi_table *disp) { - return (_glptr_BlendFuncSeparateEXT) (GET_by_offset(disp, _gloffset_BlendFuncSeparateEXT)); -} - -static INLINE void SET_BlendFuncSeparateEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_BlendFuncSeparateEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_FlushVertexArrayRangeNV)(void); -#define CALL_FlushVertexArrayRangeNV(disp, parameters) \ - (* GET_FlushVertexArrayRangeNV(disp)) parameters -static INLINE _glptr_FlushVertexArrayRangeNV GET_FlushVertexArrayRangeNV(struct _glapi_table *disp) { - return (_glptr_FlushVertexArrayRangeNV) (GET_by_offset(disp, _gloffset_FlushVertexArrayRangeNV)); -} - -static INLINE void SET_FlushVertexArrayRangeNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_FlushVertexArrayRangeNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexArrayRangeNV)(GLsizei, const GLvoid *); -#define CALL_VertexArrayRangeNV(disp, parameters) \ - (* GET_VertexArrayRangeNV(disp)) parameters -static INLINE _glptr_VertexArrayRangeNV GET_VertexArrayRangeNV(struct _glapi_table *disp) { - return (_glptr_VertexArrayRangeNV) (GET_by_offset(disp, _gloffset_VertexArrayRangeNV)); -} - -static INLINE void SET_VertexArrayRangeNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_VertexArrayRangeNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_CombinerInputNV)(GLenum, GLenum, GLenum, GLenum, GLenum, GLenum); -#define CALL_CombinerInputNV(disp, parameters) \ - (* GET_CombinerInputNV(disp)) parameters -static INLINE _glptr_CombinerInputNV GET_CombinerInputNV(struct _glapi_table *disp) { - return (_glptr_CombinerInputNV) (GET_by_offset(disp, _gloffset_CombinerInputNV)); -} - -static INLINE void SET_CombinerInputNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum, GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_CombinerInputNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_CombinerOutputNV)(GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLboolean, GLboolean, GLboolean); -#define CALL_CombinerOutputNV(disp, parameters) \ - (* GET_CombinerOutputNV(disp)) parameters -static INLINE _glptr_CombinerOutputNV GET_CombinerOutputNV(struct _glapi_table *disp) { - return (_glptr_CombinerOutputNV) (GET_by_offset(disp, _gloffset_CombinerOutputNV)); -} - -static INLINE void SET_CombinerOutputNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLboolean, GLboolean, GLboolean)) { - SET_by_offset(disp, _gloffset_CombinerOutputNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_CombinerParameterfNV)(GLenum, GLfloat); -#define CALL_CombinerParameterfNV(disp, parameters) \ - (* GET_CombinerParameterfNV(disp)) parameters -static INLINE _glptr_CombinerParameterfNV GET_CombinerParameterfNV(struct _glapi_table *disp) { - return (_glptr_CombinerParameterfNV) (GET_by_offset(disp, _gloffset_CombinerParameterfNV)); -} - -static INLINE void SET_CombinerParameterfNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat)) { - SET_by_offset(disp, _gloffset_CombinerParameterfNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_CombinerParameterfvNV)(GLenum, const GLfloat *); -#define CALL_CombinerParameterfvNV(disp, parameters) \ - (* GET_CombinerParameterfvNV(disp)) parameters -static INLINE _glptr_CombinerParameterfvNV GET_CombinerParameterfvNV(struct _glapi_table *disp) { - return (_glptr_CombinerParameterfvNV) (GET_by_offset(disp, _gloffset_CombinerParameterfvNV)); -} - -static INLINE void SET_CombinerParameterfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_CombinerParameterfvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_CombinerParameteriNV)(GLenum, GLint); -#define CALL_CombinerParameteriNV(disp, parameters) \ - (* GET_CombinerParameteriNV(disp)) parameters -static INLINE _glptr_CombinerParameteriNV GET_CombinerParameteriNV(struct _glapi_table *disp) { - return (_glptr_CombinerParameteriNV) (GET_by_offset(disp, _gloffset_CombinerParameteriNV)); -} - -static INLINE void SET_CombinerParameteriNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { - SET_by_offset(disp, _gloffset_CombinerParameteriNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_CombinerParameterivNV)(GLenum, const GLint *); -#define CALL_CombinerParameterivNV(disp, parameters) \ - (* GET_CombinerParameterivNV(disp)) parameters -static INLINE _glptr_CombinerParameterivNV GET_CombinerParameterivNV(struct _glapi_table *disp) { - return (_glptr_CombinerParameterivNV) (GET_by_offset(disp, _gloffset_CombinerParameterivNV)); -} - -static INLINE void SET_CombinerParameterivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_CombinerParameterivNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_FinalCombinerInputNV)(GLenum, GLenum, GLenum, GLenum); -#define CALL_FinalCombinerInputNV(disp, parameters) \ - (* GET_FinalCombinerInputNV(disp)) parameters -static INLINE _glptr_FinalCombinerInputNV GET_FinalCombinerInputNV(struct _glapi_table *disp) { - return (_glptr_FinalCombinerInputNV) (GET_by_offset(disp, _gloffset_FinalCombinerInputNV)); -} - -static INLINE void SET_FinalCombinerInputNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_FinalCombinerInputNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetCombinerInputParameterfvNV)(GLenum, GLenum, GLenum, GLenum, GLfloat *); -#define CALL_GetCombinerInputParameterfvNV(disp, parameters) \ - (* GET_GetCombinerInputParameterfvNV(disp)) parameters -static INLINE _glptr_GetCombinerInputParameterfvNV GET_GetCombinerInputParameterfvNV(struct _glapi_table *disp) { - return (_glptr_GetCombinerInputParameterfvNV) (GET_by_offset(disp, _gloffset_GetCombinerInputParameterfvNV)); -} - -static INLINE void SET_GetCombinerInputParameterfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetCombinerInputParameterfvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetCombinerInputParameterivNV)(GLenum, GLenum, GLenum, GLenum, GLint *); -#define CALL_GetCombinerInputParameterivNV(disp, parameters) \ - (* GET_GetCombinerInputParameterivNV(disp)) parameters -static INLINE _glptr_GetCombinerInputParameterivNV GET_GetCombinerInputParameterivNV(struct _glapi_table *disp) { - return (_glptr_GetCombinerInputParameterivNV) (GET_by_offset(disp, _gloffset_GetCombinerInputParameterivNV)); -} - -static INLINE void SET_GetCombinerInputParameterivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetCombinerInputParameterivNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetCombinerOutputParameterfvNV)(GLenum, GLenum, GLenum, GLfloat *); -#define CALL_GetCombinerOutputParameterfvNV(disp, parameters) \ - (* GET_GetCombinerOutputParameterfvNV(disp)) parameters -static INLINE _glptr_GetCombinerOutputParameterfvNV GET_GetCombinerOutputParameterfvNV(struct _glapi_table *disp) { - return (_glptr_GetCombinerOutputParameterfvNV) (GET_by_offset(disp, _gloffset_GetCombinerOutputParameterfvNV)); -} - -static INLINE void SET_GetCombinerOutputParameterfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetCombinerOutputParameterfvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetCombinerOutputParameterivNV)(GLenum, GLenum, GLenum, GLint *); -#define CALL_GetCombinerOutputParameterivNV(disp, parameters) \ - (* GET_GetCombinerOutputParameterivNV(disp)) parameters -static INLINE _glptr_GetCombinerOutputParameterivNV GET_GetCombinerOutputParameterivNV(struct _glapi_table *disp) { - return (_glptr_GetCombinerOutputParameterivNV) (GET_by_offset(disp, _gloffset_GetCombinerOutputParameterivNV)); -} - -static INLINE void SET_GetCombinerOutputParameterivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetCombinerOutputParameterivNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetFinalCombinerInputParameterfvNV)(GLenum, GLenum, GLfloat *); -#define CALL_GetFinalCombinerInputParameterfvNV(disp, parameters) \ - (* GET_GetFinalCombinerInputParameterfvNV(disp)) parameters -static INLINE _glptr_GetFinalCombinerInputParameterfvNV GET_GetFinalCombinerInputParameterfvNV(struct _glapi_table *disp) { - return (_glptr_GetFinalCombinerInputParameterfvNV) (GET_by_offset(disp, _gloffset_GetFinalCombinerInputParameterfvNV)); -} - -static INLINE void SET_GetFinalCombinerInputParameterfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetFinalCombinerInputParameterfvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetFinalCombinerInputParameterivNV)(GLenum, GLenum, GLint *); -#define CALL_GetFinalCombinerInputParameterivNV(disp, parameters) \ - (* GET_GetFinalCombinerInputParameterivNV(disp)) parameters -static INLINE _glptr_GetFinalCombinerInputParameterivNV GET_GetFinalCombinerInputParameterivNV(struct _glapi_table *disp) { - return (_glptr_GetFinalCombinerInputParameterivNV) (GET_by_offset(disp, _gloffset_GetFinalCombinerInputParameterivNV)); -} - -static INLINE void SET_GetFinalCombinerInputParameterivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetFinalCombinerInputParameterivNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_ResizeBuffersMESA)(void); -#define CALL_ResizeBuffersMESA(disp, parameters) \ - (* GET_ResizeBuffersMESA(disp)) parameters -static INLINE _glptr_ResizeBuffersMESA GET_ResizeBuffersMESA(struct _glapi_table *disp) { - return (_glptr_ResizeBuffersMESA) (GET_by_offset(disp, _gloffset_ResizeBuffersMESA)); -} - -static INLINE void SET_ResizeBuffersMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_ResizeBuffersMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos2dMESA)(GLdouble, GLdouble); -#define CALL_WindowPos2dMESA(disp, parameters) \ - (* GET_WindowPos2dMESA(disp)) parameters -static INLINE _glptr_WindowPos2dMESA GET_WindowPos2dMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos2dMESA) (GET_by_offset(disp, _gloffset_WindowPos2dMESA)); -} - -static INLINE void SET_WindowPos2dMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_WindowPos2dMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos2dvMESA)(const GLdouble *); -#define CALL_WindowPos2dvMESA(disp, parameters) \ - (* GET_WindowPos2dvMESA(disp)) parameters -static INLINE _glptr_WindowPos2dvMESA GET_WindowPos2dvMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos2dvMESA) (GET_by_offset(disp, _gloffset_WindowPos2dvMESA)); -} - -static INLINE void SET_WindowPos2dvMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_WindowPos2dvMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos2fMESA)(GLfloat, GLfloat); -#define CALL_WindowPos2fMESA(disp, parameters) \ - (* GET_WindowPos2fMESA(disp)) parameters -static INLINE _glptr_WindowPos2fMESA GET_WindowPos2fMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos2fMESA) (GET_by_offset(disp, _gloffset_WindowPos2fMESA)); -} - -static INLINE void SET_WindowPos2fMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_WindowPos2fMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos2fvMESA)(const GLfloat *); -#define CALL_WindowPos2fvMESA(disp, parameters) \ - (* GET_WindowPos2fvMESA(disp)) parameters -static INLINE _glptr_WindowPos2fvMESA GET_WindowPos2fvMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos2fvMESA) (GET_by_offset(disp, _gloffset_WindowPos2fvMESA)); -} - -static INLINE void SET_WindowPos2fvMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_WindowPos2fvMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos2iMESA)(GLint, GLint); -#define CALL_WindowPos2iMESA(disp, parameters) \ - (* GET_WindowPos2iMESA(disp)) parameters -static INLINE _glptr_WindowPos2iMESA GET_WindowPos2iMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos2iMESA) (GET_by_offset(disp, _gloffset_WindowPos2iMESA)); -} - -static INLINE void SET_WindowPos2iMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint)) { - SET_by_offset(disp, _gloffset_WindowPos2iMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos2ivMESA)(const GLint *); -#define CALL_WindowPos2ivMESA(disp, parameters) \ - (* GET_WindowPos2ivMESA(disp)) parameters -static INLINE _glptr_WindowPos2ivMESA GET_WindowPos2ivMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos2ivMESA) (GET_by_offset(disp, _gloffset_WindowPos2ivMESA)); -} - -static INLINE void SET_WindowPos2ivMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_WindowPos2ivMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos2sMESA)(GLshort, GLshort); -#define CALL_WindowPos2sMESA(disp, parameters) \ - (* GET_WindowPos2sMESA(disp)) parameters -static INLINE _glptr_WindowPos2sMESA GET_WindowPos2sMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos2sMESA) (GET_by_offset(disp, _gloffset_WindowPos2sMESA)); -} - -static INLINE void SET_WindowPos2sMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_WindowPos2sMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos2svMESA)(const GLshort *); -#define CALL_WindowPos2svMESA(disp, parameters) \ - (* GET_WindowPos2svMESA(disp)) parameters -static INLINE _glptr_WindowPos2svMESA GET_WindowPos2svMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos2svMESA) (GET_by_offset(disp, _gloffset_WindowPos2svMESA)); -} - -static INLINE void SET_WindowPos2svMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_WindowPos2svMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos3dMESA)(GLdouble, GLdouble, GLdouble); -#define CALL_WindowPos3dMESA(disp, parameters) \ - (* GET_WindowPos3dMESA(disp)) parameters -static INLINE _glptr_WindowPos3dMESA GET_WindowPos3dMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos3dMESA) (GET_by_offset(disp, _gloffset_WindowPos3dMESA)); -} - -static INLINE void SET_WindowPos3dMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_WindowPos3dMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos3dvMESA)(const GLdouble *); -#define CALL_WindowPos3dvMESA(disp, parameters) \ - (* GET_WindowPos3dvMESA(disp)) parameters -static INLINE _glptr_WindowPos3dvMESA GET_WindowPos3dvMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos3dvMESA) (GET_by_offset(disp, _gloffset_WindowPos3dvMESA)); -} - -static INLINE void SET_WindowPos3dvMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_WindowPos3dvMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos3fMESA)(GLfloat, GLfloat, GLfloat); -#define CALL_WindowPos3fMESA(disp, parameters) \ - (* GET_WindowPos3fMESA(disp)) parameters -static INLINE _glptr_WindowPos3fMESA GET_WindowPos3fMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos3fMESA) (GET_by_offset(disp, _gloffset_WindowPos3fMESA)); -} - -static INLINE void SET_WindowPos3fMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_WindowPos3fMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos3fvMESA)(const GLfloat *); -#define CALL_WindowPos3fvMESA(disp, parameters) \ - (* GET_WindowPos3fvMESA(disp)) parameters -static INLINE _glptr_WindowPos3fvMESA GET_WindowPos3fvMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos3fvMESA) (GET_by_offset(disp, _gloffset_WindowPos3fvMESA)); -} - -static INLINE void SET_WindowPos3fvMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_WindowPos3fvMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos3iMESA)(GLint, GLint, GLint); -#define CALL_WindowPos3iMESA(disp, parameters) \ - (* GET_WindowPos3iMESA(disp)) parameters -static INLINE _glptr_WindowPos3iMESA GET_WindowPos3iMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos3iMESA) (GET_by_offset(disp, _gloffset_WindowPos3iMESA)); -} - -static INLINE void SET_WindowPos3iMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_WindowPos3iMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos3ivMESA)(const GLint *); -#define CALL_WindowPos3ivMESA(disp, parameters) \ - (* GET_WindowPos3ivMESA(disp)) parameters -static INLINE _glptr_WindowPos3ivMESA GET_WindowPos3ivMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos3ivMESA) (GET_by_offset(disp, _gloffset_WindowPos3ivMESA)); -} - -static INLINE void SET_WindowPos3ivMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_WindowPos3ivMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos3sMESA)(GLshort, GLshort, GLshort); -#define CALL_WindowPos3sMESA(disp, parameters) \ - (* GET_WindowPos3sMESA(disp)) parameters -static INLINE _glptr_WindowPos3sMESA GET_WindowPos3sMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos3sMESA) (GET_by_offset(disp, _gloffset_WindowPos3sMESA)); -} - -static INLINE void SET_WindowPos3sMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_WindowPos3sMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos3svMESA)(const GLshort *); -#define CALL_WindowPos3svMESA(disp, parameters) \ - (* GET_WindowPos3svMESA(disp)) parameters -static INLINE _glptr_WindowPos3svMESA GET_WindowPos3svMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos3svMESA) (GET_by_offset(disp, _gloffset_WindowPos3svMESA)); -} - -static INLINE void SET_WindowPos3svMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_WindowPos3svMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos4dMESA)(GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_WindowPos4dMESA(disp, parameters) \ - (* GET_WindowPos4dMESA(disp)) parameters -static INLINE _glptr_WindowPos4dMESA GET_WindowPos4dMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos4dMESA) (GET_by_offset(disp, _gloffset_WindowPos4dMESA)); -} - -static INLINE void SET_WindowPos4dMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_WindowPos4dMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos4dvMESA)(const GLdouble *); -#define CALL_WindowPos4dvMESA(disp, parameters) \ - (* GET_WindowPos4dvMESA(disp)) parameters -static INLINE _glptr_WindowPos4dvMESA GET_WindowPos4dvMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos4dvMESA) (GET_by_offset(disp, _gloffset_WindowPos4dvMESA)); -} - -static INLINE void SET_WindowPos4dvMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLdouble *)) { - SET_by_offset(disp, _gloffset_WindowPos4dvMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos4fMESA)(GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_WindowPos4fMESA(disp, parameters) \ - (* GET_WindowPos4fMESA(disp)) parameters -static INLINE _glptr_WindowPos4fMESA GET_WindowPos4fMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos4fMESA) (GET_by_offset(disp, _gloffset_WindowPos4fMESA)); -} - -static INLINE void SET_WindowPos4fMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_WindowPos4fMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos4fvMESA)(const GLfloat *); -#define CALL_WindowPos4fvMESA(disp, parameters) \ - (* GET_WindowPos4fvMESA(disp)) parameters -static INLINE _glptr_WindowPos4fvMESA GET_WindowPos4fvMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos4fvMESA) (GET_by_offset(disp, _gloffset_WindowPos4fvMESA)); -} - -static INLINE void SET_WindowPos4fvMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLfloat *)) { - SET_by_offset(disp, _gloffset_WindowPos4fvMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos4iMESA)(GLint, GLint, GLint, GLint); -#define CALL_WindowPos4iMESA(disp, parameters) \ - (* GET_WindowPos4iMESA(disp)) parameters -static INLINE _glptr_WindowPos4iMESA GET_WindowPos4iMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos4iMESA) (GET_by_offset(disp, _gloffset_WindowPos4iMESA)); -} - -static INLINE void SET_WindowPos4iMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_WindowPos4iMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos4ivMESA)(const GLint *); -#define CALL_WindowPos4ivMESA(disp, parameters) \ - (* GET_WindowPos4ivMESA(disp)) parameters -static INLINE _glptr_WindowPos4ivMESA GET_WindowPos4ivMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos4ivMESA) (GET_by_offset(disp, _gloffset_WindowPos4ivMESA)); -} - -static INLINE void SET_WindowPos4ivMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLint *)) { - SET_by_offset(disp, _gloffset_WindowPos4ivMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos4sMESA)(GLshort, GLshort, GLshort, GLshort); -#define CALL_WindowPos4sMESA(disp, parameters) \ - (* GET_WindowPos4sMESA(disp)) parameters -static INLINE _glptr_WindowPos4sMESA GET_WindowPos4sMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos4sMESA) (GET_by_offset(disp, _gloffset_WindowPos4sMESA)); -} - -static INLINE void SET_WindowPos4sMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLshort, GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_WindowPos4sMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_WindowPos4svMESA)(const GLshort *); -#define CALL_WindowPos4svMESA(disp, parameters) \ - (* GET_WindowPos4svMESA(disp)) parameters -static INLINE _glptr_WindowPos4svMESA GET_WindowPos4svMESA(struct _glapi_table *disp) { - return (_glptr_WindowPos4svMESA) (GET_by_offset(disp, _gloffset_WindowPos4svMESA)); -} - -static INLINE void SET_WindowPos4svMESA(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLshort *)) { - SET_by_offset(disp, _gloffset_WindowPos4svMESA, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiModeDrawArraysIBM)(const GLenum *, const GLint *, const GLsizei *, GLsizei, GLint); -#define CALL_MultiModeDrawArraysIBM(disp, parameters) \ - (* GET_MultiModeDrawArraysIBM(disp)) parameters -static INLINE _glptr_MultiModeDrawArraysIBM GET_MultiModeDrawArraysIBM(struct _glapi_table *disp) { - return (_glptr_MultiModeDrawArraysIBM) (GET_by_offset(disp, _gloffset_MultiModeDrawArraysIBM)); -} - -static INLINE void SET_MultiModeDrawArraysIBM(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLenum *, const GLint *, const GLsizei *, GLsizei, GLint)) { - SET_by_offset(disp, _gloffset_MultiModeDrawArraysIBM, fn); -} - -typedef void (GLAPIENTRYP _glptr_MultiModeDrawElementsIBM)(const GLenum *, const GLsizei *, GLenum, const GLvoid * const *, GLsizei, GLint); -#define CALL_MultiModeDrawElementsIBM(disp, parameters) \ - (* GET_MultiModeDrawElementsIBM(disp)) parameters -static INLINE _glptr_MultiModeDrawElementsIBM GET_MultiModeDrawElementsIBM(struct _glapi_table *disp) { - return (_glptr_MultiModeDrawElementsIBM) (GET_by_offset(disp, _gloffset_MultiModeDrawElementsIBM)); -} - -static INLINE void SET_MultiModeDrawElementsIBM(struct _glapi_table *disp, void (GLAPIENTRYP fn)(const GLenum *, const GLsizei *, GLenum, const GLvoid * const *, GLsizei, GLint)) { - SET_by_offset(disp, _gloffset_MultiModeDrawElementsIBM, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteFencesNV)(GLsizei, const GLuint *); -#define CALL_DeleteFencesNV(disp, parameters) \ - (* GET_DeleteFencesNV(disp)) parameters -static INLINE _glptr_DeleteFencesNV GET_DeleteFencesNV(struct _glapi_table *disp) { - return (_glptr_DeleteFencesNV) (GET_by_offset(disp, _gloffset_DeleteFencesNV)); -} - -static INLINE void SET_DeleteFencesNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_DeleteFencesNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_FinishFenceNV)(GLuint); -#define CALL_FinishFenceNV(disp, parameters) \ - (* GET_FinishFenceNV(disp)) parameters -static INLINE _glptr_FinishFenceNV GET_FinishFenceNV(struct _glapi_table *disp) { - return (_glptr_FinishFenceNV) (GET_by_offset(disp, _gloffset_FinishFenceNV)); -} - -static INLINE void SET_FinishFenceNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_FinishFenceNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GenFencesNV)(GLsizei, GLuint *); -#define CALL_GenFencesNV(disp, parameters) \ - (* GET_GenFencesNV(disp)) parameters -static INLINE _glptr_GenFencesNV GET_GenFencesNV(struct _glapi_table *disp) { - return (_glptr_GenFencesNV) (GET_by_offset(disp, _gloffset_GenFencesNV)); -} - -static INLINE void SET_GenFencesNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_GenFencesNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetFenceivNV)(GLuint, GLenum, GLint *); -#define CALL_GetFenceivNV(disp, parameters) \ - (* GET_GetFenceivNV(disp)) parameters -static INLINE _glptr_GetFenceivNV GET_GetFenceivNV(struct _glapi_table *disp) { - return (_glptr_GetFenceivNV) (GET_by_offset(disp, _gloffset_GetFenceivNV)); -} - -static INLINE void SET_GetFenceivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetFenceivNV, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsFenceNV)(GLuint); -#define CALL_IsFenceNV(disp, parameters) \ - (* GET_IsFenceNV(disp)) parameters -static INLINE _glptr_IsFenceNV GET_IsFenceNV(struct _glapi_table *disp) { - return (_glptr_IsFenceNV) (GET_by_offset(disp, _gloffset_IsFenceNV)); -} - -static INLINE void SET_IsFenceNV(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IsFenceNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_SetFenceNV)(GLuint, GLenum); -#define CALL_SetFenceNV(disp, parameters) \ - (* GET_SetFenceNV(disp)) parameters -static INLINE _glptr_SetFenceNV GET_SetFenceNV(struct _glapi_table *disp) { - return (_glptr_SetFenceNV) (GET_by_offset(disp, _gloffset_SetFenceNV)); -} - -static INLINE void SET_SetFenceNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum)) { - SET_by_offset(disp, _gloffset_SetFenceNV, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_TestFenceNV)(GLuint); -#define CALL_TestFenceNV(disp, parameters) \ - (* GET_TestFenceNV(disp)) parameters -static INLINE _glptr_TestFenceNV GET_TestFenceNV(struct _glapi_table *disp) { - return (_glptr_TestFenceNV) (GET_by_offset(disp, _gloffset_TestFenceNV)); -} - -static INLINE void SET_TestFenceNV(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_TestFenceNV, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_AreProgramsResidentNV)(GLsizei, const GLuint *, GLboolean *); -#define CALL_AreProgramsResidentNV(disp, parameters) \ - (* GET_AreProgramsResidentNV(disp)) parameters -static INLINE _glptr_AreProgramsResidentNV GET_AreProgramsResidentNV(struct _glapi_table *disp) { - return (_glptr_AreProgramsResidentNV) (GET_by_offset(disp, _gloffset_AreProgramsResidentNV)); -} - -static INLINE void SET_AreProgramsResidentNV(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLsizei, const GLuint *, GLboolean *)) { - SET_by_offset(disp, _gloffset_AreProgramsResidentNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindProgramNV)(GLenum, GLuint); -#define CALL_BindProgramNV(disp, parameters) \ - (* GET_BindProgramNV(disp)) parameters -static INLINE _glptr_BindProgramNV GET_BindProgramNV(struct _glapi_table *disp) { - return (_glptr_BindProgramNV) (GET_by_offset(disp, _gloffset_BindProgramNV)); -} - -static INLINE void SET_BindProgramNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_BindProgramNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteProgramsNV)(GLsizei, const GLuint *); -#define CALL_DeleteProgramsNV(disp, parameters) \ - (* GET_DeleteProgramsNV(disp)) parameters -static INLINE _glptr_DeleteProgramsNV GET_DeleteProgramsNV(struct _glapi_table *disp) { - return (_glptr_DeleteProgramsNV) (GET_by_offset(disp, _gloffset_DeleteProgramsNV)); -} - -static INLINE void SET_DeleteProgramsNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_DeleteProgramsNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_ExecuteProgramNV)(GLenum, GLuint, const GLfloat *); -#define CALL_ExecuteProgramNV(disp, parameters) \ - (* GET_ExecuteProgramNV(disp)) parameters -static INLINE _glptr_ExecuteProgramNV GET_ExecuteProgramNV(struct _glapi_table *disp) { - return (_glptr_ExecuteProgramNV) (GET_by_offset(disp, _gloffset_ExecuteProgramNV)); -} - -static INLINE void SET_ExecuteProgramNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_ExecuteProgramNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GenProgramsNV)(GLsizei, GLuint *); -#define CALL_GenProgramsNV(disp, parameters) \ - (* GET_GenProgramsNV(disp)) parameters -static INLINE _glptr_GenProgramsNV GET_GenProgramsNV(struct _glapi_table *disp) { - return (_glptr_GenProgramsNV) (GET_by_offset(disp, _gloffset_GenProgramsNV)); -} - -static INLINE void SET_GenProgramsNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_GenProgramsNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramParameterdvNV)(GLenum, GLuint, GLenum, GLdouble *); -#define CALL_GetProgramParameterdvNV(disp, parameters) \ - (* GET_GetProgramParameterdvNV(disp)) parameters -static INLINE _glptr_GetProgramParameterdvNV GET_GetProgramParameterdvNV(struct _glapi_table *disp) { - return (_glptr_GetProgramParameterdvNV) (GET_by_offset(disp, _gloffset_GetProgramParameterdvNV)); -} - -static INLINE void SET_GetProgramParameterdvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLenum, GLdouble *)) { - SET_by_offset(disp, _gloffset_GetProgramParameterdvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramParameterfvNV)(GLenum, GLuint, GLenum, GLfloat *); -#define CALL_GetProgramParameterfvNV(disp, parameters) \ - (* GET_GetProgramParameterfvNV(disp)) parameters -static INLINE _glptr_GetProgramParameterfvNV GET_GetProgramParameterfvNV(struct _glapi_table *disp) { - return (_glptr_GetProgramParameterfvNV) (GET_by_offset(disp, _gloffset_GetProgramParameterfvNV)); -} - -static INLINE void SET_GetProgramParameterfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetProgramParameterfvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramStringNV)(GLuint, GLenum, GLubyte *); -#define CALL_GetProgramStringNV(disp, parameters) \ - (* GET_GetProgramStringNV(disp)) parameters -static INLINE _glptr_GetProgramStringNV GET_GetProgramStringNV(struct _glapi_table *disp) { - return (_glptr_GetProgramStringNV) (GET_by_offset(disp, _gloffset_GetProgramStringNV)); -} - -static INLINE void SET_GetProgramStringNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLubyte *)) { - SET_by_offset(disp, _gloffset_GetProgramStringNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramivNV)(GLuint, GLenum, GLint *); -#define CALL_GetProgramivNV(disp, parameters) \ - (* GET_GetProgramivNV(disp)) parameters -static INLINE _glptr_GetProgramivNV GET_GetProgramivNV(struct _glapi_table *disp) { - return (_glptr_GetProgramivNV) (GET_by_offset(disp, _gloffset_GetProgramivNV)); -} - -static INLINE void SET_GetProgramivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetProgramivNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTrackMatrixivNV)(GLenum, GLuint, GLenum, GLint *); -#define CALL_GetTrackMatrixivNV(disp, parameters) \ - (* GET_GetTrackMatrixivNV(disp)) parameters -static INLINE _glptr_GetTrackMatrixivNV GET_GetTrackMatrixivNV(struct _glapi_table *disp) { - return (_glptr_GetTrackMatrixivNV) (GET_by_offset(disp, _gloffset_GetTrackMatrixivNV)); -} - -static INLINE void SET_GetTrackMatrixivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetTrackMatrixivNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetVertexAttribPointervNV)(GLuint, GLenum, GLvoid **); -#define CALL_GetVertexAttribPointervNV(disp, parameters) \ - (* GET_GetVertexAttribPointervNV(disp)) parameters -static INLINE _glptr_GetVertexAttribPointervNV GET_GetVertexAttribPointervNV(struct _glapi_table *disp) { - return (_glptr_GetVertexAttribPointervNV) (GET_by_offset(disp, _gloffset_GetVertexAttribPointervNV)); -} - -static INLINE void SET_GetVertexAttribPointervNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLvoid **)) { - SET_by_offset(disp, _gloffset_GetVertexAttribPointervNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetVertexAttribdvNV)(GLuint, GLenum, GLdouble *); -#define CALL_GetVertexAttribdvNV(disp, parameters) \ - (* GET_GetVertexAttribdvNV(disp)) parameters -static INLINE _glptr_GetVertexAttribdvNV GET_GetVertexAttribdvNV(struct _glapi_table *disp) { - return (_glptr_GetVertexAttribdvNV) (GET_by_offset(disp, _gloffset_GetVertexAttribdvNV)); -} - -static INLINE void SET_GetVertexAttribdvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLdouble *)) { - SET_by_offset(disp, _gloffset_GetVertexAttribdvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetVertexAttribfvNV)(GLuint, GLenum, GLfloat *); -#define CALL_GetVertexAttribfvNV(disp, parameters) \ - (* GET_GetVertexAttribfvNV(disp)) parameters -static INLINE _glptr_GetVertexAttribfvNV GET_GetVertexAttribfvNV(struct _glapi_table *disp) { - return (_glptr_GetVertexAttribfvNV) (GET_by_offset(disp, _gloffset_GetVertexAttribfvNV)); -} - -static INLINE void SET_GetVertexAttribfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetVertexAttribfvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetVertexAttribivNV)(GLuint, GLenum, GLint *); -#define CALL_GetVertexAttribivNV(disp, parameters) \ - (* GET_GetVertexAttribivNV(disp)) parameters -static INLINE _glptr_GetVertexAttribivNV GET_GetVertexAttribivNV(struct _glapi_table *disp) { - return (_glptr_GetVertexAttribivNV) (GET_by_offset(disp, _gloffset_GetVertexAttribivNV)); -} - -static INLINE void SET_GetVertexAttribivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetVertexAttribivNV, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsProgramNV)(GLuint); -#define CALL_IsProgramNV(disp, parameters) \ - (* GET_IsProgramNV(disp)) parameters -static INLINE _glptr_IsProgramNV GET_IsProgramNV(struct _glapi_table *disp) { - return (_glptr_IsProgramNV) (GET_by_offset(disp, _gloffset_IsProgramNV)); -} - -static INLINE void SET_IsProgramNV(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IsProgramNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_LoadProgramNV)(GLenum, GLuint, GLsizei, const GLubyte *); -#define CALL_LoadProgramNV(disp, parameters) \ - (* GET_LoadProgramNV(disp)) parameters -static INLINE _glptr_LoadProgramNV GET_LoadProgramNV(struct _glapi_table *disp) { - return (_glptr_LoadProgramNV) (GET_by_offset(disp, _gloffset_LoadProgramNV)); -} - -static INLINE void SET_LoadProgramNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLsizei, const GLubyte *)) { - SET_by_offset(disp, _gloffset_LoadProgramNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramParameters4dvNV)(GLenum, GLuint, GLsizei, const GLdouble *); -#define CALL_ProgramParameters4dvNV(disp, parameters) \ - (* GET_ProgramParameters4dvNV(disp)) parameters -static INLINE _glptr_ProgramParameters4dvNV GET_ProgramParameters4dvNV(struct _glapi_table *disp) { - return (_glptr_ProgramParameters4dvNV) (GET_by_offset(disp, _gloffset_ProgramParameters4dvNV)); -} - -static INLINE void SET_ProgramParameters4dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLsizei, const GLdouble *)) { - SET_by_offset(disp, _gloffset_ProgramParameters4dvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramParameters4fvNV)(GLenum, GLuint, GLsizei, const GLfloat *); -#define CALL_ProgramParameters4fvNV(disp, parameters) \ - (* GET_ProgramParameters4fvNV(disp)) parameters -static INLINE _glptr_ProgramParameters4fvNV GET_ProgramParameters4fvNV(struct _glapi_table *disp) { - return (_glptr_ProgramParameters4fvNV) (GET_by_offset(disp, _gloffset_ProgramParameters4fvNV)); -} - -static INLINE void SET_ProgramParameters4fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLsizei, const GLfloat *)) { - SET_by_offset(disp, _gloffset_ProgramParameters4fvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_RequestResidentProgramsNV)(GLsizei, const GLuint *); -#define CALL_RequestResidentProgramsNV(disp, parameters) \ - (* GET_RequestResidentProgramsNV(disp)) parameters -static INLINE _glptr_RequestResidentProgramsNV GET_RequestResidentProgramsNV(struct _glapi_table *disp) { - return (_glptr_RequestResidentProgramsNV) (GET_by_offset(disp, _gloffset_RequestResidentProgramsNV)); -} - -static INLINE void SET_RequestResidentProgramsNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_RequestResidentProgramsNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_TrackMatrixNV)(GLenum, GLuint, GLenum, GLenum); -#define CALL_TrackMatrixNV(disp, parameters) \ - (* GET_TrackMatrixNV(disp)) parameters -static INLINE _glptr_TrackMatrixNV GET_TrackMatrixNV(struct _glapi_table *disp) { - return (_glptr_TrackMatrixNV) (GET_by_offset(disp, _gloffset_TrackMatrixNV)); -} - -static INLINE void SET_TrackMatrixNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_TrackMatrixNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib1dNV)(GLuint, GLdouble); -#define CALL_VertexAttrib1dNV(disp, parameters) \ - (* GET_VertexAttrib1dNV(disp)) parameters -static INLINE _glptr_VertexAttrib1dNV GET_VertexAttrib1dNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib1dNV) (GET_by_offset(disp, _gloffset_VertexAttrib1dNV)); -} - -static INLINE void SET_VertexAttrib1dNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble)) { - SET_by_offset(disp, _gloffset_VertexAttrib1dNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib1dvNV)(GLuint, const GLdouble *); -#define CALL_VertexAttrib1dvNV(disp, parameters) \ - (* GET_VertexAttrib1dvNV(disp)) parameters -static INLINE _glptr_VertexAttrib1dvNV GET_VertexAttrib1dvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib1dvNV) (GET_by_offset(disp, _gloffset_VertexAttrib1dvNV)); -} - -static INLINE void SET_VertexAttrib1dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { - SET_by_offset(disp, _gloffset_VertexAttrib1dvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib1fNV)(GLuint, GLfloat); -#define CALL_VertexAttrib1fNV(disp, parameters) \ - (* GET_VertexAttrib1fNV(disp)) parameters -static INLINE _glptr_VertexAttrib1fNV GET_VertexAttrib1fNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib1fNV) (GET_by_offset(disp, _gloffset_VertexAttrib1fNV)); -} - -static INLINE void SET_VertexAttrib1fNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat)) { - SET_by_offset(disp, _gloffset_VertexAttrib1fNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib1fvNV)(GLuint, const GLfloat *); -#define CALL_VertexAttrib1fvNV(disp, parameters) \ - (* GET_VertexAttrib1fvNV(disp)) parameters -static INLINE _glptr_VertexAttrib1fvNV GET_VertexAttrib1fvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib1fvNV) (GET_by_offset(disp, _gloffset_VertexAttrib1fvNV)); -} - -static INLINE void SET_VertexAttrib1fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_VertexAttrib1fvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib1sNV)(GLuint, GLshort); -#define CALL_VertexAttrib1sNV(disp, parameters) \ - (* GET_VertexAttrib1sNV(disp)) parameters -static INLINE _glptr_VertexAttrib1sNV GET_VertexAttrib1sNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib1sNV) (GET_by_offset(disp, _gloffset_VertexAttrib1sNV)); -} - -static INLINE void SET_VertexAttrib1sNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort)) { - SET_by_offset(disp, _gloffset_VertexAttrib1sNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib1svNV)(GLuint, const GLshort *); -#define CALL_VertexAttrib1svNV(disp, parameters) \ - (* GET_VertexAttrib1svNV(disp)) parameters -static INLINE _glptr_VertexAttrib1svNV GET_VertexAttrib1svNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib1svNV) (GET_by_offset(disp, _gloffset_VertexAttrib1svNV)); -} - -static INLINE void SET_VertexAttrib1svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttrib1svNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib2dNV)(GLuint, GLdouble, GLdouble); -#define CALL_VertexAttrib2dNV(disp, parameters) \ - (* GET_VertexAttrib2dNV(disp)) parameters -static INLINE _glptr_VertexAttrib2dNV GET_VertexAttrib2dNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib2dNV) (GET_by_offset(disp, _gloffset_VertexAttrib2dNV)); -} - -static INLINE void SET_VertexAttrib2dNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_VertexAttrib2dNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib2dvNV)(GLuint, const GLdouble *); -#define CALL_VertexAttrib2dvNV(disp, parameters) \ - (* GET_VertexAttrib2dvNV(disp)) parameters -static INLINE _glptr_VertexAttrib2dvNV GET_VertexAttrib2dvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib2dvNV) (GET_by_offset(disp, _gloffset_VertexAttrib2dvNV)); -} - -static INLINE void SET_VertexAttrib2dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { - SET_by_offset(disp, _gloffset_VertexAttrib2dvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib2fNV)(GLuint, GLfloat, GLfloat); -#define CALL_VertexAttrib2fNV(disp, parameters) \ - (* GET_VertexAttrib2fNV(disp)) parameters -static INLINE _glptr_VertexAttrib2fNV GET_VertexAttrib2fNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib2fNV) (GET_by_offset(disp, _gloffset_VertexAttrib2fNV)); -} - -static INLINE void SET_VertexAttrib2fNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_VertexAttrib2fNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib2fvNV)(GLuint, const GLfloat *); -#define CALL_VertexAttrib2fvNV(disp, parameters) \ - (* GET_VertexAttrib2fvNV(disp)) parameters -static INLINE _glptr_VertexAttrib2fvNV GET_VertexAttrib2fvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib2fvNV) (GET_by_offset(disp, _gloffset_VertexAttrib2fvNV)); -} - -static INLINE void SET_VertexAttrib2fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_VertexAttrib2fvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib2sNV)(GLuint, GLshort, GLshort); -#define CALL_VertexAttrib2sNV(disp, parameters) \ - (* GET_VertexAttrib2sNV(disp)) parameters -static INLINE _glptr_VertexAttrib2sNV GET_VertexAttrib2sNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib2sNV) (GET_by_offset(disp, _gloffset_VertexAttrib2sNV)); -} - -static INLINE void SET_VertexAttrib2sNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_VertexAttrib2sNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib2svNV)(GLuint, const GLshort *); -#define CALL_VertexAttrib2svNV(disp, parameters) \ - (* GET_VertexAttrib2svNV(disp)) parameters -static INLINE _glptr_VertexAttrib2svNV GET_VertexAttrib2svNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib2svNV) (GET_by_offset(disp, _gloffset_VertexAttrib2svNV)); -} - -static INLINE void SET_VertexAttrib2svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttrib2svNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib3dNV)(GLuint, GLdouble, GLdouble, GLdouble); -#define CALL_VertexAttrib3dNV(disp, parameters) \ - (* GET_VertexAttrib3dNV(disp)) parameters -static INLINE _glptr_VertexAttrib3dNV GET_VertexAttrib3dNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib3dNV) (GET_by_offset(disp, _gloffset_VertexAttrib3dNV)); -} - -static INLINE void SET_VertexAttrib3dNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_VertexAttrib3dNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib3dvNV)(GLuint, const GLdouble *); -#define CALL_VertexAttrib3dvNV(disp, parameters) \ - (* GET_VertexAttrib3dvNV(disp)) parameters -static INLINE _glptr_VertexAttrib3dvNV GET_VertexAttrib3dvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib3dvNV) (GET_by_offset(disp, _gloffset_VertexAttrib3dvNV)); -} - -static INLINE void SET_VertexAttrib3dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { - SET_by_offset(disp, _gloffset_VertexAttrib3dvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib3fNV)(GLuint, GLfloat, GLfloat, GLfloat); -#define CALL_VertexAttrib3fNV(disp, parameters) \ - (* GET_VertexAttrib3fNV(disp)) parameters -static INLINE _glptr_VertexAttrib3fNV GET_VertexAttrib3fNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib3fNV) (GET_by_offset(disp, _gloffset_VertexAttrib3fNV)); -} - -static INLINE void SET_VertexAttrib3fNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_VertexAttrib3fNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib3fvNV)(GLuint, const GLfloat *); -#define CALL_VertexAttrib3fvNV(disp, parameters) \ - (* GET_VertexAttrib3fvNV(disp)) parameters -static INLINE _glptr_VertexAttrib3fvNV GET_VertexAttrib3fvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib3fvNV) (GET_by_offset(disp, _gloffset_VertexAttrib3fvNV)); -} - -static INLINE void SET_VertexAttrib3fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_VertexAttrib3fvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib3sNV)(GLuint, GLshort, GLshort, GLshort); -#define CALL_VertexAttrib3sNV(disp, parameters) \ - (* GET_VertexAttrib3sNV(disp)) parameters -static INLINE _glptr_VertexAttrib3sNV GET_VertexAttrib3sNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib3sNV) (GET_by_offset(disp, _gloffset_VertexAttrib3sNV)); -} - -static INLINE void SET_VertexAttrib3sNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_VertexAttrib3sNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib3svNV)(GLuint, const GLshort *); -#define CALL_VertexAttrib3svNV(disp, parameters) \ - (* GET_VertexAttrib3svNV(disp)) parameters -static INLINE _glptr_VertexAttrib3svNV GET_VertexAttrib3svNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib3svNV) (GET_by_offset(disp, _gloffset_VertexAttrib3svNV)); -} - -static INLINE void SET_VertexAttrib3svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttrib3svNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4dNV)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_VertexAttrib4dNV(disp, parameters) \ - (* GET_VertexAttrib4dNV(disp)) parameters -static INLINE _glptr_VertexAttrib4dNV GET_VertexAttrib4dNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4dNV) (GET_by_offset(disp, _gloffset_VertexAttrib4dNV)); -} - -static INLINE void SET_VertexAttrib4dNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_VertexAttrib4dNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4dvNV)(GLuint, const GLdouble *); -#define CALL_VertexAttrib4dvNV(disp, parameters) \ - (* GET_VertexAttrib4dvNV(disp)) parameters -static INLINE _glptr_VertexAttrib4dvNV GET_VertexAttrib4dvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4dvNV) (GET_by_offset(disp, _gloffset_VertexAttrib4dvNV)); -} - -static INLINE void SET_VertexAttrib4dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLdouble *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4dvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4fNV)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_VertexAttrib4fNV(disp, parameters) \ - (* GET_VertexAttrib4fNV(disp)) parameters -static INLINE _glptr_VertexAttrib4fNV GET_VertexAttrib4fNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4fNV) (GET_by_offset(disp, _gloffset_VertexAttrib4fNV)); -} - -static INLINE void SET_VertexAttrib4fNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_VertexAttrib4fNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4fvNV)(GLuint, const GLfloat *); -#define CALL_VertexAttrib4fvNV(disp, parameters) \ - (* GET_VertexAttrib4fvNV(disp)) parameters -static INLINE _glptr_VertexAttrib4fvNV GET_VertexAttrib4fvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4fvNV) (GET_by_offset(disp, _gloffset_VertexAttrib4fvNV)); -} - -static INLINE void SET_VertexAttrib4fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4fvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4sNV)(GLuint, GLshort, GLshort, GLshort, GLshort); -#define CALL_VertexAttrib4sNV(disp, parameters) \ - (* GET_VertexAttrib4sNV(disp)) parameters -static INLINE _glptr_VertexAttrib4sNV GET_VertexAttrib4sNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4sNV) (GET_by_offset(disp, _gloffset_VertexAttrib4sNV)); -} - -static INLINE void SET_VertexAttrib4sNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLshort, GLshort, GLshort, GLshort)) { - SET_by_offset(disp, _gloffset_VertexAttrib4sNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4svNV)(GLuint, const GLshort *); -#define CALL_VertexAttrib4svNV(disp, parameters) \ - (* GET_VertexAttrib4svNV(disp)) parameters -static INLINE _glptr_VertexAttrib4svNV GET_VertexAttrib4svNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4svNV) (GET_by_offset(disp, _gloffset_VertexAttrib4svNV)); -} - -static INLINE void SET_VertexAttrib4svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4svNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4ubNV)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte); -#define CALL_VertexAttrib4ubNV(disp, parameters) \ - (* GET_VertexAttrib4ubNV(disp)) parameters -static INLINE _glptr_VertexAttrib4ubNV GET_VertexAttrib4ubNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4ubNV) (GET_by_offset(disp, _gloffset_VertexAttrib4ubNV)); -} - -static INLINE void SET_VertexAttrib4ubNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte)) { - SET_by_offset(disp, _gloffset_VertexAttrib4ubNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttrib4ubvNV)(GLuint, const GLubyte *); -#define CALL_VertexAttrib4ubvNV(disp, parameters) \ - (* GET_VertexAttrib4ubvNV(disp)) parameters -static INLINE _glptr_VertexAttrib4ubvNV GET_VertexAttrib4ubvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttrib4ubvNV) (GET_by_offset(disp, _gloffset_VertexAttrib4ubvNV)); -} - -static INLINE void SET_VertexAttrib4ubvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLubyte *)) { - SET_by_offset(disp, _gloffset_VertexAttrib4ubvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribPointerNV)(GLuint, GLint, GLenum, GLsizei, const GLvoid *); -#define CALL_VertexAttribPointerNV(disp, parameters) \ - (* GET_VertexAttribPointerNV(disp)) parameters -static INLINE _glptr_VertexAttribPointerNV GET_VertexAttribPointerNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribPointerNV) (GET_by_offset(disp, _gloffset_VertexAttribPointerNV)); -} - -static INLINE void SET_VertexAttribPointerNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_VertexAttribPointerNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribs1dvNV)(GLuint, GLsizei, const GLdouble *); -#define CALL_VertexAttribs1dvNV(disp, parameters) \ - (* GET_VertexAttribs1dvNV(disp)) parameters -static INLINE _glptr_VertexAttribs1dvNV GET_VertexAttribs1dvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribs1dvNV) (GET_by_offset(disp, _gloffset_VertexAttribs1dvNV)); -} - -static INLINE void SET_VertexAttribs1dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLdouble *)) { - SET_by_offset(disp, _gloffset_VertexAttribs1dvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribs1fvNV)(GLuint, GLsizei, const GLfloat *); -#define CALL_VertexAttribs1fvNV(disp, parameters) \ - (* GET_VertexAttribs1fvNV(disp)) parameters -static INLINE _glptr_VertexAttribs1fvNV GET_VertexAttribs1fvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribs1fvNV) (GET_by_offset(disp, _gloffset_VertexAttribs1fvNV)); -} - -static INLINE void SET_VertexAttribs1fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLfloat *)) { - SET_by_offset(disp, _gloffset_VertexAttribs1fvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribs1svNV)(GLuint, GLsizei, const GLshort *); -#define CALL_VertexAttribs1svNV(disp, parameters) \ - (* GET_VertexAttribs1svNV(disp)) parameters -static INLINE _glptr_VertexAttribs1svNV GET_VertexAttribs1svNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribs1svNV) (GET_by_offset(disp, _gloffset_VertexAttribs1svNV)); -} - -static INLINE void SET_VertexAttribs1svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttribs1svNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribs2dvNV)(GLuint, GLsizei, const GLdouble *); -#define CALL_VertexAttribs2dvNV(disp, parameters) \ - (* GET_VertexAttribs2dvNV(disp)) parameters -static INLINE _glptr_VertexAttribs2dvNV GET_VertexAttribs2dvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribs2dvNV) (GET_by_offset(disp, _gloffset_VertexAttribs2dvNV)); -} - -static INLINE void SET_VertexAttribs2dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLdouble *)) { - SET_by_offset(disp, _gloffset_VertexAttribs2dvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribs2fvNV)(GLuint, GLsizei, const GLfloat *); -#define CALL_VertexAttribs2fvNV(disp, parameters) \ - (* GET_VertexAttribs2fvNV(disp)) parameters -static INLINE _glptr_VertexAttribs2fvNV GET_VertexAttribs2fvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribs2fvNV) (GET_by_offset(disp, _gloffset_VertexAttribs2fvNV)); -} - -static INLINE void SET_VertexAttribs2fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLfloat *)) { - SET_by_offset(disp, _gloffset_VertexAttribs2fvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribs2svNV)(GLuint, GLsizei, const GLshort *); -#define CALL_VertexAttribs2svNV(disp, parameters) \ - (* GET_VertexAttribs2svNV(disp)) parameters -static INLINE _glptr_VertexAttribs2svNV GET_VertexAttribs2svNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribs2svNV) (GET_by_offset(disp, _gloffset_VertexAttribs2svNV)); -} - -static INLINE void SET_VertexAttribs2svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttribs2svNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribs3dvNV)(GLuint, GLsizei, const GLdouble *); -#define CALL_VertexAttribs3dvNV(disp, parameters) \ - (* GET_VertexAttribs3dvNV(disp)) parameters -static INLINE _glptr_VertexAttribs3dvNV GET_VertexAttribs3dvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribs3dvNV) (GET_by_offset(disp, _gloffset_VertexAttribs3dvNV)); -} - -static INLINE void SET_VertexAttribs3dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLdouble *)) { - SET_by_offset(disp, _gloffset_VertexAttribs3dvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribs3fvNV)(GLuint, GLsizei, const GLfloat *); -#define CALL_VertexAttribs3fvNV(disp, parameters) \ - (* GET_VertexAttribs3fvNV(disp)) parameters -static INLINE _glptr_VertexAttribs3fvNV GET_VertexAttribs3fvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribs3fvNV) (GET_by_offset(disp, _gloffset_VertexAttribs3fvNV)); -} - -static INLINE void SET_VertexAttribs3fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLfloat *)) { - SET_by_offset(disp, _gloffset_VertexAttribs3fvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribs3svNV)(GLuint, GLsizei, const GLshort *); -#define CALL_VertexAttribs3svNV(disp, parameters) \ - (* GET_VertexAttribs3svNV(disp)) parameters -static INLINE _glptr_VertexAttribs3svNV GET_VertexAttribs3svNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribs3svNV) (GET_by_offset(disp, _gloffset_VertexAttribs3svNV)); -} - -static INLINE void SET_VertexAttribs3svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttribs3svNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribs4dvNV)(GLuint, GLsizei, const GLdouble *); -#define CALL_VertexAttribs4dvNV(disp, parameters) \ - (* GET_VertexAttribs4dvNV(disp)) parameters -static INLINE _glptr_VertexAttribs4dvNV GET_VertexAttribs4dvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribs4dvNV) (GET_by_offset(disp, _gloffset_VertexAttribs4dvNV)); -} - -static INLINE void SET_VertexAttribs4dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLdouble *)) { - SET_by_offset(disp, _gloffset_VertexAttribs4dvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribs4fvNV)(GLuint, GLsizei, const GLfloat *); -#define CALL_VertexAttribs4fvNV(disp, parameters) \ - (* GET_VertexAttribs4fvNV(disp)) parameters -static INLINE _glptr_VertexAttribs4fvNV GET_VertexAttribs4fvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribs4fvNV) (GET_by_offset(disp, _gloffset_VertexAttribs4fvNV)); -} - -static INLINE void SET_VertexAttribs4fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLfloat *)) { - SET_by_offset(disp, _gloffset_VertexAttribs4fvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribs4svNV)(GLuint, GLsizei, const GLshort *); -#define CALL_VertexAttribs4svNV(disp, parameters) \ - (* GET_VertexAttribs4svNV(disp)) parameters -static INLINE _glptr_VertexAttribs4svNV GET_VertexAttribs4svNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribs4svNV) (GET_by_offset(disp, _gloffset_VertexAttribs4svNV)); -} - -static INLINE void SET_VertexAttribs4svNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttribs4svNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribs4ubvNV)(GLuint, GLsizei, const GLubyte *); -#define CALL_VertexAttribs4ubvNV(disp, parameters) \ - (* GET_VertexAttribs4ubvNV(disp)) parameters -static INLINE _glptr_VertexAttribs4ubvNV GET_VertexAttribs4ubvNV(struct _glapi_table *disp) { - return (_glptr_VertexAttribs4ubvNV) (GET_by_offset(disp, _gloffset_VertexAttribs4ubvNV)); -} - -static INLINE void SET_VertexAttribs4ubvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *)) { - SET_by_offset(disp, _gloffset_VertexAttribs4ubvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexBumpParameterfvATI)(GLenum, GLfloat *); -#define CALL_GetTexBumpParameterfvATI(disp, parameters) \ - (* GET_GetTexBumpParameterfvATI(disp)) parameters -static INLINE _glptr_GetTexBumpParameterfvATI GET_GetTexBumpParameterfvATI(struct _glapi_table *disp) { - return (_glptr_GetTexBumpParameterfvATI) (GET_by_offset(disp, _gloffset_GetTexBumpParameterfvATI)); -} - -static INLINE void SET_GetTexBumpParameterfvATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetTexBumpParameterfvATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexBumpParameterivATI)(GLenum, GLint *); -#define CALL_GetTexBumpParameterivATI(disp, parameters) \ - (* GET_GetTexBumpParameterivATI(disp)) parameters -static INLINE _glptr_GetTexBumpParameterivATI GET_GetTexBumpParameterivATI(struct _glapi_table *disp) { - return (_glptr_GetTexBumpParameterivATI) (GET_by_offset(disp, _gloffset_GetTexBumpParameterivATI)); -} - -static INLINE void SET_GetTexBumpParameterivATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetTexBumpParameterivATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexBumpParameterfvATI)(GLenum, const GLfloat *); -#define CALL_TexBumpParameterfvATI(disp, parameters) \ - (* GET_TexBumpParameterfvATI(disp)) parameters -static INLINE _glptr_TexBumpParameterfvATI GET_TexBumpParameterfvATI(struct _glapi_table *disp) { - return (_glptr_TexBumpParameterfvATI) (GET_by_offset(disp, _gloffset_TexBumpParameterfvATI)); -} - -static INLINE void SET_TexBumpParameterfvATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLfloat *)) { - SET_by_offset(disp, _gloffset_TexBumpParameterfvATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexBumpParameterivATI)(GLenum, const GLint *); -#define CALL_TexBumpParameterivATI(disp, parameters) \ - (* GET_TexBumpParameterivATI(disp)) parameters -static INLINE _glptr_TexBumpParameterivATI GET_TexBumpParameterivATI(struct _glapi_table *disp) { - return (_glptr_TexBumpParameterivATI) (GET_by_offset(disp, _gloffset_TexBumpParameterivATI)); -} - -static INLINE void SET_TexBumpParameterivATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_TexBumpParameterivATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_AlphaFragmentOp1ATI)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint); -#define CALL_AlphaFragmentOp1ATI(disp, parameters) \ - (* GET_AlphaFragmentOp1ATI(disp)) parameters -static INLINE _glptr_AlphaFragmentOp1ATI GET_AlphaFragmentOp1ATI(struct _glapi_table *disp) { - return (_glptr_AlphaFragmentOp1ATI) (GET_by_offset(disp, _gloffset_AlphaFragmentOp1ATI)); -} - -static INLINE void SET_AlphaFragmentOp1ATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_AlphaFragmentOp1ATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_AlphaFragmentOp2ATI)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); -#define CALL_AlphaFragmentOp2ATI(disp, parameters) \ - (* GET_AlphaFragmentOp2ATI(disp)) parameters -static INLINE _glptr_AlphaFragmentOp2ATI GET_AlphaFragmentOp2ATI(struct _glapi_table *disp) { - return (_glptr_AlphaFragmentOp2ATI) (GET_by_offset(disp, _gloffset_AlphaFragmentOp2ATI)); -} - -static INLINE void SET_AlphaFragmentOp2ATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_AlphaFragmentOp2ATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_AlphaFragmentOp3ATI)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); -#define CALL_AlphaFragmentOp3ATI(disp, parameters) \ - (* GET_AlphaFragmentOp3ATI(disp)) parameters -static INLINE _glptr_AlphaFragmentOp3ATI GET_AlphaFragmentOp3ATI(struct _glapi_table *disp) { - return (_glptr_AlphaFragmentOp3ATI) (GET_by_offset(disp, _gloffset_AlphaFragmentOp3ATI)); -} - -static INLINE void SET_AlphaFragmentOp3ATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_AlphaFragmentOp3ATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_BeginFragmentShaderATI)(void); -#define CALL_BeginFragmentShaderATI(disp, parameters) \ - (* GET_BeginFragmentShaderATI(disp)) parameters -static INLINE _glptr_BeginFragmentShaderATI GET_BeginFragmentShaderATI(struct _glapi_table *disp) { - return (_glptr_BeginFragmentShaderATI) (GET_by_offset(disp, _gloffset_BeginFragmentShaderATI)); -} - -static INLINE void SET_BeginFragmentShaderATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_BeginFragmentShaderATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindFragmentShaderATI)(GLuint); -#define CALL_BindFragmentShaderATI(disp, parameters) \ - (* GET_BindFragmentShaderATI(disp)) parameters -static INLINE _glptr_BindFragmentShaderATI GET_BindFragmentShaderATI(struct _glapi_table *disp) { - return (_glptr_BindFragmentShaderATI) (GET_by_offset(disp, _gloffset_BindFragmentShaderATI)); -} - -static INLINE void SET_BindFragmentShaderATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_BindFragmentShaderATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_ColorFragmentOp1ATI)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); -#define CALL_ColorFragmentOp1ATI(disp, parameters) \ - (* GET_ColorFragmentOp1ATI(disp)) parameters -static INLINE _glptr_ColorFragmentOp1ATI GET_ColorFragmentOp1ATI(struct _glapi_table *disp) { - return (_glptr_ColorFragmentOp1ATI) (GET_by_offset(disp, _gloffset_ColorFragmentOp1ATI)); -} - -static INLINE void SET_ColorFragmentOp1ATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_ColorFragmentOp1ATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_ColorFragmentOp2ATI)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); -#define CALL_ColorFragmentOp2ATI(disp, parameters) \ - (* GET_ColorFragmentOp2ATI(disp)) parameters -static INLINE _glptr_ColorFragmentOp2ATI GET_ColorFragmentOp2ATI(struct _glapi_table *disp) { - return (_glptr_ColorFragmentOp2ATI) (GET_by_offset(disp, _gloffset_ColorFragmentOp2ATI)); -} - -static INLINE void SET_ColorFragmentOp2ATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_ColorFragmentOp2ATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_ColorFragmentOp3ATI)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint); -#define CALL_ColorFragmentOp3ATI(disp, parameters) \ - (* GET_ColorFragmentOp3ATI(disp)) parameters -static INLINE _glptr_ColorFragmentOp3ATI GET_ColorFragmentOp3ATI(struct _glapi_table *disp) { - return (_glptr_ColorFragmentOp3ATI) (GET_by_offset(disp, _gloffset_ColorFragmentOp3ATI)); -} - -static INLINE void SET_ColorFragmentOp3ATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_ColorFragmentOp3ATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteFragmentShaderATI)(GLuint); -#define CALL_DeleteFragmentShaderATI(disp, parameters) \ - (* GET_DeleteFragmentShaderATI(disp)) parameters -static INLINE _glptr_DeleteFragmentShaderATI GET_DeleteFragmentShaderATI(struct _glapi_table *disp) { - return (_glptr_DeleteFragmentShaderATI) (GET_by_offset(disp, _gloffset_DeleteFragmentShaderATI)); -} - -static INLINE void SET_DeleteFragmentShaderATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_DeleteFragmentShaderATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_EndFragmentShaderATI)(void); -#define CALL_EndFragmentShaderATI(disp, parameters) \ - (* GET_EndFragmentShaderATI(disp)) parameters -static INLINE _glptr_EndFragmentShaderATI GET_EndFragmentShaderATI(struct _glapi_table *disp) { - return (_glptr_EndFragmentShaderATI) (GET_by_offset(disp, _gloffset_EndFragmentShaderATI)); -} - -static INLINE void SET_EndFragmentShaderATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_EndFragmentShaderATI, fn); -} - -typedef GLuint (GLAPIENTRYP _glptr_GenFragmentShadersATI)(GLuint); -#define CALL_GenFragmentShadersATI(disp, parameters) \ - (* GET_GenFragmentShadersATI(disp)) parameters -static INLINE _glptr_GenFragmentShadersATI GET_GenFragmentShadersATI(struct _glapi_table *disp) { - return (_glptr_GenFragmentShadersATI) (GET_by_offset(disp, _gloffset_GenFragmentShadersATI)); -} - -static INLINE void SET_GenFragmentShadersATI(struct _glapi_table *disp, GLuint (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_GenFragmentShadersATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_PassTexCoordATI)(GLuint, GLuint, GLenum); -#define CALL_PassTexCoordATI(disp, parameters) \ - (* GET_PassTexCoordATI(disp)) parameters -static INLINE _glptr_PassTexCoordATI GET_PassTexCoordATI(struct _glapi_table *disp) { - return (_glptr_PassTexCoordATI) (GET_by_offset(disp, _gloffset_PassTexCoordATI)); -} - -static INLINE void SET_PassTexCoordATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLenum)) { - SET_by_offset(disp, _gloffset_PassTexCoordATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_SampleMapATI)(GLuint, GLuint, GLenum); -#define CALL_SampleMapATI(disp, parameters) \ - (* GET_SampleMapATI(disp)) parameters -static INLINE _glptr_SampleMapATI GET_SampleMapATI(struct _glapi_table *disp) { - return (_glptr_SampleMapATI) (GET_by_offset(disp, _gloffset_SampleMapATI)); -} - -static INLINE void SET_SampleMapATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLenum)) { - SET_by_offset(disp, _gloffset_SampleMapATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_SetFragmentShaderConstantATI)(GLuint, const GLfloat *); -#define CALL_SetFragmentShaderConstantATI(disp, parameters) \ - (* GET_SetFragmentShaderConstantATI(disp)) parameters -static INLINE _glptr_SetFragmentShaderConstantATI GET_SetFragmentShaderConstantATI(struct _glapi_table *disp) { - return (_glptr_SetFragmentShaderConstantATI) (GET_by_offset(disp, _gloffset_SetFragmentShaderConstantATI)); -} - -static INLINE void SET_SetFragmentShaderConstantATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLfloat *)) { - SET_by_offset(disp, _gloffset_SetFragmentShaderConstantATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_PointParameteriNV)(GLenum, GLint); -#define CALL_PointParameteriNV(disp, parameters) \ - (* GET_PointParameteriNV(disp)) parameters -static INLINE _glptr_PointParameteriNV GET_PointParameteriNV(struct _glapi_table *disp) { - return (_glptr_PointParameteriNV) (GET_by_offset(disp, _gloffset_PointParameteriNV)); -} - -static INLINE void SET_PointParameteriNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLint)) { - SET_by_offset(disp, _gloffset_PointParameteriNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_PointParameterivNV)(GLenum, const GLint *); -#define CALL_PointParameterivNV(disp, parameters) \ - (* GET_PointParameterivNV(disp)) parameters -static INLINE _glptr_PointParameterivNV GET_PointParameterivNV(struct _glapi_table *disp) { - return (_glptr_PointParameterivNV) (GET_by_offset(disp, _gloffset_PointParameterivNV)); -} - -static INLINE void SET_PointParameterivNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_PointParameterivNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_ActiveStencilFaceEXT)(GLenum); -#define CALL_ActiveStencilFaceEXT(disp, parameters) \ - (* GET_ActiveStencilFaceEXT(disp)) parameters -static INLINE _glptr_ActiveStencilFaceEXT GET_ActiveStencilFaceEXT(struct _glapi_table *disp) { - return (_glptr_ActiveStencilFaceEXT) (GET_by_offset(disp, _gloffset_ActiveStencilFaceEXT)); -} - -static INLINE void SET_ActiveStencilFaceEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_ActiveStencilFaceEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindVertexArrayAPPLE)(GLuint); -#define CALL_BindVertexArrayAPPLE(disp, parameters) \ - (* GET_BindVertexArrayAPPLE(disp)) parameters -static INLINE _glptr_BindVertexArrayAPPLE GET_BindVertexArrayAPPLE(struct _glapi_table *disp) { - return (_glptr_BindVertexArrayAPPLE) (GET_by_offset(disp, _gloffset_BindVertexArrayAPPLE)); -} - -static INLINE void SET_BindVertexArrayAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_BindVertexArrayAPPLE, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteVertexArraysAPPLE)(GLsizei, const GLuint *); -#define CALL_DeleteVertexArraysAPPLE(disp, parameters) \ - (* GET_DeleteVertexArraysAPPLE(disp)) parameters -static INLINE _glptr_DeleteVertexArraysAPPLE GET_DeleteVertexArraysAPPLE(struct _glapi_table *disp) { - return (_glptr_DeleteVertexArraysAPPLE) (GET_by_offset(disp, _gloffset_DeleteVertexArraysAPPLE)); -} - -static INLINE void SET_DeleteVertexArraysAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_DeleteVertexArraysAPPLE, fn); -} - -typedef void (GLAPIENTRYP _glptr_GenVertexArraysAPPLE)(GLsizei, GLuint *); -#define CALL_GenVertexArraysAPPLE(disp, parameters) \ - (* GET_GenVertexArraysAPPLE(disp)) parameters -static INLINE _glptr_GenVertexArraysAPPLE GET_GenVertexArraysAPPLE(struct _glapi_table *disp) { - return (_glptr_GenVertexArraysAPPLE) (GET_by_offset(disp, _gloffset_GenVertexArraysAPPLE)); -} - -static INLINE void SET_GenVertexArraysAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_GenVertexArraysAPPLE, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsVertexArrayAPPLE)(GLuint); -#define CALL_IsVertexArrayAPPLE(disp, parameters) \ - (* GET_IsVertexArrayAPPLE(disp)) parameters -static INLINE _glptr_IsVertexArrayAPPLE GET_IsVertexArrayAPPLE(struct _glapi_table *disp) { - return (_glptr_IsVertexArrayAPPLE) (GET_by_offset(disp, _gloffset_IsVertexArrayAPPLE)); -} - -static INLINE void SET_IsVertexArrayAPPLE(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IsVertexArrayAPPLE, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramNamedParameterdvNV)(GLuint, GLsizei, const GLubyte *, GLdouble *); -#define CALL_GetProgramNamedParameterdvNV(disp, parameters) \ - (* GET_GetProgramNamedParameterdvNV(disp)) parameters -static INLINE _glptr_GetProgramNamedParameterdvNV GET_GetProgramNamedParameterdvNV(struct _glapi_table *disp) { - return (_glptr_GetProgramNamedParameterdvNV) (GET_by_offset(disp, _gloffset_GetProgramNamedParameterdvNV)); -} - -static INLINE void SET_GetProgramNamedParameterdvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *, GLdouble *)) { - SET_by_offset(disp, _gloffset_GetProgramNamedParameterdvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetProgramNamedParameterfvNV)(GLuint, GLsizei, const GLubyte *, GLfloat *); -#define CALL_GetProgramNamedParameterfvNV(disp, parameters) \ - (* GET_GetProgramNamedParameterfvNV(disp)) parameters -static INLINE _glptr_GetProgramNamedParameterfvNV GET_GetProgramNamedParameterfvNV(struct _glapi_table *disp) { - return (_glptr_GetProgramNamedParameterfvNV) (GET_by_offset(disp, _gloffset_GetProgramNamedParameterfvNV)); -} - -static INLINE void SET_GetProgramNamedParameterfvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *, GLfloat *)) { - SET_by_offset(disp, _gloffset_GetProgramNamedParameterfvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramNamedParameter4dNV)(GLuint, GLsizei, const GLubyte *, GLdouble, GLdouble, GLdouble, GLdouble); -#define CALL_ProgramNamedParameter4dNV(disp, parameters) \ - (* GET_ProgramNamedParameter4dNV(disp)) parameters -static INLINE _glptr_ProgramNamedParameter4dNV GET_ProgramNamedParameter4dNV(struct _glapi_table *disp) { - return (_glptr_ProgramNamedParameter4dNV) (GET_by_offset(disp, _gloffset_ProgramNamedParameter4dNV)); -} - -static INLINE void SET_ProgramNamedParameter4dNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *, GLdouble, GLdouble, GLdouble, GLdouble)) { - SET_by_offset(disp, _gloffset_ProgramNamedParameter4dNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramNamedParameter4dvNV)(GLuint, GLsizei, const GLubyte *, const GLdouble *); -#define CALL_ProgramNamedParameter4dvNV(disp, parameters) \ - (* GET_ProgramNamedParameter4dvNV(disp)) parameters -static INLINE _glptr_ProgramNamedParameter4dvNV GET_ProgramNamedParameter4dvNV(struct _glapi_table *disp) { - return (_glptr_ProgramNamedParameter4dvNV) (GET_by_offset(disp, _gloffset_ProgramNamedParameter4dvNV)); -} - -static INLINE void SET_ProgramNamedParameter4dvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *, const GLdouble *)) { - SET_by_offset(disp, _gloffset_ProgramNamedParameter4dvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramNamedParameter4fNV)(GLuint, GLsizei, const GLubyte *, GLfloat, GLfloat, GLfloat, GLfloat); -#define CALL_ProgramNamedParameter4fNV(disp, parameters) \ - (* GET_ProgramNamedParameter4fNV(disp)) parameters -static INLINE _glptr_ProgramNamedParameter4fNV GET_ProgramNamedParameter4fNV(struct _glapi_table *disp) { - return (_glptr_ProgramNamedParameter4fNV) (GET_by_offset(disp, _gloffset_ProgramNamedParameter4fNV)); -} - -static INLINE void SET_ProgramNamedParameter4fNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *, GLfloat, GLfloat, GLfloat, GLfloat)) { - SET_by_offset(disp, _gloffset_ProgramNamedParameter4fNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramNamedParameter4fvNV)(GLuint, GLsizei, const GLubyte *, const GLfloat *); -#define CALL_ProgramNamedParameter4fvNV(disp, parameters) \ - (* GET_ProgramNamedParameter4fvNV(disp)) parameters -static INLINE _glptr_ProgramNamedParameter4fvNV GET_ProgramNamedParameter4fvNV(struct _glapi_table *disp) { - return (_glptr_ProgramNamedParameter4fvNV) (GET_by_offset(disp, _gloffset_ProgramNamedParameter4fvNV)); -} - -static INLINE void SET_ProgramNamedParameter4fvNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const GLubyte *, const GLfloat *)) { - SET_by_offset(disp, _gloffset_ProgramNamedParameter4fvNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_PrimitiveRestartIndexNV)(GLuint); -#define CALL_PrimitiveRestartIndexNV(disp, parameters) \ - (* GET_PrimitiveRestartIndexNV(disp)) parameters -static INLINE _glptr_PrimitiveRestartIndexNV GET_PrimitiveRestartIndexNV(struct _glapi_table *disp) { - return (_glptr_PrimitiveRestartIndexNV) (GET_by_offset(disp, _gloffset_PrimitiveRestartIndexNV)); -} - -static INLINE void SET_PrimitiveRestartIndexNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_PrimitiveRestartIndexNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_PrimitiveRestartNV)(void); -#define CALL_PrimitiveRestartNV(disp, parameters) \ - (* GET_PrimitiveRestartNV(disp)) parameters -static INLINE _glptr_PrimitiveRestartNV GET_PrimitiveRestartNV(struct _glapi_table *disp) { - return (_glptr_PrimitiveRestartNV) (GET_by_offset(disp, _gloffset_PrimitiveRestartNV)); -} - -static INLINE void SET_PrimitiveRestartNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_PrimitiveRestartNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_DepthBoundsEXT)(GLclampd, GLclampd); -#define CALL_DepthBoundsEXT(disp, parameters) \ - (* GET_DepthBoundsEXT(disp)) parameters -static INLINE _glptr_DepthBoundsEXT GET_DepthBoundsEXT(struct _glapi_table *disp) { - return (_glptr_DepthBoundsEXT) (GET_by_offset(disp, _gloffset_DepthBoundsEXT)); -} - -static INLINE void SET_DepthBoundsEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLclampd, GLclampd)) { - SET_by_offset(disp, _gloffset_DepthBoundsEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_BlendEquationSeparateEXT)(GLenum, GLenum); -#define CALL_BlendEquationSeparateEXT(disp, parameters) \ - (* GET_BlendEquationSeparateEXT(disp)) parameters -static INLINE _glptr_BlendEquationSeparateEXT GET_BlendEquationSeparateEXT(struct _glapi_table *disp) { - return (_glptr_BlendEquationSeparateEXT) (GET_by_offset(disp, _gloffset_BlendEquationSeparateEXT)); -} - -static INLINE void SET_BlendEquationSeparateEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum)) { - SET_by_offset(disp, _gloffset_BlendEquationSeparateEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindFramebufferEXT)(GLenum, GLuint); -#define CALL_BindFramebufferEXT(disp, parameters) \ - (* GET_BindFramebufferEXT(disp)) parameters -static INLINE _glptr_BindFramebufferEXT GET_BindFramebufferEXT(struct _glapi_table *disp) { - return (_glptr_BindFramebufferEXT) (GET_by_offset(disp, _gloffset_BindFramebufferEXT)); -} - -static INLINE void SET_BindFramebufferEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_BindFramebufferEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindRenderbufferEXT)(GLenum, GLuint); -#define CALL_BindRenderbufferEXT(disp, parameters) \ - (* GET_BindRenderbufferEXT(disp)) parameters -static INLINE _glptr_BindRenderbufferEXT GET_BindRenderbufferEXT(struct _glapi_table *disp) { - return (_glptr_BindRenderbufferEXT) (GET_by_offset(disp, _gloffset_BindRenderbufferEXT)); -} - -static INLINE void SET_BindRenderbufferEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_BindRenderbufferEXT, fn); -} - -typedef GLenum (GLAPIENTRYP _glptr_CheckFramebufferStatusEXT)(GLenum); -#define CALL_CheckFramebufferStatusEXT(disp, parameters) \ - (* GET_CheckFramebufferStatusEXT(disp)) parameters -static INLINE _glptr_CheckFramebufferStatusEXT GET_CheckFramebufferStatusEXT(struct _glapi_table *disp) { - return (_glptr_CheckFramebufferStatusEXT) (GET_by_offset(disp, _gloffset_CheckFramebufferStatusEXT)); -} - -static INLINE void SET_CheckFramebufferStatusEXT(struct _glapi_table *disp, GLenum (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_CheckFramebufferStatusEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteFramebuffersEXT)(GLsizei, const GLuint *); -#define CALL_DeleteFramebuffersEXT(disp, parameters) \ - (* GET_DeleteFramebuffersEXT(disp)) parameters -static INLINE _glptr_DeleteFramebuffersEXT GET_DeleteFramebuffersEXT(struct _glapi_table *disp) { - return (_glptr_DeleteFramebuffersEXT) (GET_by_offset(disp, _gloffset_DeleteFramebuffersEXT)); -} - -static INLINE void SET_DeleteFramebuffersEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_DeleteFramebuffersEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_DeleteRenderbuffersEXT)(GLsizei, const GLuint *); -#define CALL_DeleteRenderbuffersEXT(disp, parameters) \ - (* GET_DeleteRenderbuffersEXT(disp)) parameters -static INLINE _glptr_DeleteRenderbuffersEXT GET_DeleteRenderbuffersEXT(struct _glapi_table *disp) { - return (_glptr_DeleteRenderbuffersEXT) (GET_by_offset(disp, _gloffset_DeleteRenderbuffersEXT)); -} - -static INLINE void SET_DeleteRenderbuffersEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_DeleteRenderbuffersEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_FramebufferRenderbufferEXT)(GLenum, GLenum, GLenum, GLuint); -#define CALL_FramebufferRenderbufferEXT(disp, parameters) \ - (* GET_FramebufferRenderbufferEXT(disp)) parameters -static INLINE _glptr_FramebufferRenderbufferEXT GET_FramebufferRenderbufferEXT(struct _glapi_table *disp) { - return (_glptr_FramebufferRenderbufferEXT) (GET_by_offset(disp, _gloffset_FramebufferRenderbufferEXT)); -} - -static INLINE void SET_FramebufferRenderbufferEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_FramebufferRenderbufferEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_FramebufferTexture1DEXT)(GLenum, GLenum, GLenum, GLuint, GLint); -#define CALL_FramebufferTexture1DEXT(disp, parameters) \ - (* GET_FramebufferTexture1DEXT(disp)) parameters -static INLINE _glptr_FramebufferTexture1DEXT GET_FramebufferTexture1DEXT(struct _glapi_table *disp) { - return (_glptr_FramebufferTexture1DEXT) (GET_by_offset(disp, _gloffset_FramebufferTexture1DEXT)); -} - -static INLINE void SET_FramebufferTexture1DEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLuint, GLint)) { - SET_by_offset(disp, _gloffset_FramebufferTexture1DEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_FramebufferTexture2DEXT)(GLenum, GLenum, GLenum, GLuint, GLint); -#define CALL_FramebufferTexture2DEXT(disp, parameters) \ - (* GET_FramebufferTexture2DEXT(disp)) parameters -static INLINE _glptr_FramebufferTexture2DEXT GET_FramebufferTexture2DEXT(struct _glapi_table *disp) { - return (_glptr_FramebufferTexture2DEXT) (GET_by_offset(disp, _gloffset_FramebufferTexture2DEXT)); -} - -static INLINE void SET_FramebufferTexture2DEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLuint, GLint)) { - SET_by_offset(disp, _gloffset_FramebufferTexture2DEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_FramebufferTexture3DEXT)(GLenum, GLenum, GLenum, GLuint, GLint, GLint); -#define CALL_FramebufferTexture3DEXT(disp, parameters) \ - (* GET_FramebufferTexture3DEXT(disp)) parameters -static INLINE _glptr_FramebufferTexture3DEXT GET_FramebufferTexture3DEXT(struct _glapi_table *disp) { - return (_glptr_FramebufferTexture3DEXT) (GET_by_offset(disp, _gloffset_FramebufferTexture3DEXT)); -} - -static INLINE void SET_FramebufferTexture3DEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLuint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_FramebufferTexture3DEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GenFramebuffersEXT)(GLsizei, GLuint *); -#define CALL_GenFramebuffersEXT(disp, parameters) \ - (* GET_GenFramebuffersEXT(disp)) parameters -static INLINE _glptr_GenFramebuffersEXT GET_GenFramebuffersEXT(struct _glapi_table *disp) { - return (_glptr_GenFramebuffersEXT) (GET_by_offset(disp, _gloffset_GenFramebuffersEXT)); -} - -static INLINE void SET_GenFramebuffersEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_GenFramebuffersEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GenRenderbuffersEXT)(GLsizei, GLuint *); -#define CALL_GenRenderbuffersEXT(disp, parameters) \ - (* GET_GenRenderbuffersEXT(disp)) parameters -static INLINE _glptr_GenRenderbuffersEXT GET_GenRenderbuffersEXT(struct _glapi_table *disp) { - return (_glptr_GenRenderbuffersEXT) (GET_by_offset(disp, _gloffset_GenRenderbuffersEXT)); -} - -static INLINE void SET_GenRenderbuffersEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLsizei, GLuint *)) { - SET_by_offset(disp, _gloffset_GenRenderbuffersEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GenerateMipmapEXT)(GLenum); -#define CALL_GenerateMipmapEXT(disp, parameters) \ - (* GET_GenerateMipmapEXT(disp)) parameters -static INLINE _glptr_GenerateMipmapEXT GET_GenerateMipmapEXT(struct _glapi_table *disp) { - return (_glptr_GenerateMipmapEXT) (GET_by_offset(disp, _gloffset_GenerateMipmapEXT)); -} - -static INLINE void SET_GenerateMipmapEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_GenerateMipmapEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetFramebufferAttachmentParameterivEXT)(GLenum, GLenum, GLenum, GLint *); -#define CALL_GetFramebufferAttachmentParameterivEXT(disp, parameters) \ - (* GET_GetFramebufferAttachmentParameterivEXT(disp)) parameters -static INLINE _glptr_GetFramebufferAttachmentParameterivEXT GET_GetFramebufferAttachmentParameterivEXT(struct _glapi_table *disp) { - return (_glptr_GetFramebufferAttachmentParameterivEXT) (GET_by_offset(disp, _gloffset_GetFramebufferAttachmentParameterivEXT)); -} - -static INLINE void SET_GetFramebufferAttachmentParameterivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetFramebufferAttachmentParameterivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetRenderbufferParameterivEXT)(GLenum, GLenum, GLint *); -#define CALL_GetRenderbufferParameterivEXT(disp, parameters) \ - (* GET_GetRenderbufferParameterivEXT(disp)) parameters -static INLINE _glptr_GetRenderbufferParameterivEXT GET_GetRenderbufferParameterivEXT(struct _glapi_table *disp) { - return (_glptr_GetRenderbufferParameterivEXT) (GET_by_offset(disp, _gloffset_GetRenderbufferParameterivEXT)); -} - -static INLINE void SET_GetRenderbufferParameterivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetRenderbufferParameterivEXT, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsFramebufferEXT)(GLuint); -#define CALL_IsFramebufferEXT(disp, parameters) \ - (* GET_IsFramebufferEXT(disp)) parameters -static INLINE _glptr_IsFramebufferEXT GET_IsFramebufferEXT(struct _glapi_table *disp) { - return (_glptr_IsFramebufferEXT) (GET_by_offset(disp, _gloffset_IsFramebufferEXT)); -} - -static INLINE void SET_IsFramebufferEXT(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IsFramebufferEXT, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsRenderbufferEXT)(GLuint); -#define CALL_IsRenderbufferEXT(disp, parameters) \ - (* GET_IsRenderbufferEXT(disp)) parameters -static INLINE _glptr_IsRenderbufferEXT GET_IsRenderbufferEXT(struct _glapi_table *disp) { - return (_glptr_IsRenderbufferEXT) (GET_by_offset(disp, _gloffset_IsRenderbufferEXT)); -} - -static INLINE void SET_IsRenderbufferEXT(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_IsRenderbufferEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_RenderbufferStorageEXT)(GLenum, GLenum, GLsizei, GLsizei); -#define CALL_RenderbufferStorageEXT(disp, parameters) \ - (* GET_RenderbufferStorageEXT(disp)) parameters -static INLINE _glptr_RenderbufferStorageEXT GET_RenderbufferStorageEXT(struct _glapi_table *disp) { - return (_glptr_RenderbufferStorageEXT) (GET_by_offset(disp, _gloffset_RenderbufferStorageEXT)); -} - -static INLINE void SET_RenderbufferStorageEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLsizei, GLsizei)) { - SET_by_offset(disp, _gloffset_RenderbufferStorageEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_BlitFramebufferEXT)(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum); -#define CALL_BlitFramebufferEXT(disp, parameters) \ - (* GET_BlitFramebufferEXT(disp)) parameters -static INLINE _glptr_BlitFramebufferEXT GET_BlitFramebufferEXT(struct _glapi_table *disp) { - return (_glptr_BlitFramebufferEXT) (GET_by_offset(disp, _gloffset_BlitFramebufferEXT)); -} - -static INLINE void SET_BlitFramebufferEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum)) { - SET_by_offset(disp, _gloffset_BlitFramebufferEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_BufferParameteriAPPLE)(GLenum, GLenum, GLint); -#define CALL_BufferParameteriAPPLE(disp, parameters) \ - (* GET_BufferParameteriAPPLE(disp)) parameters -static INLINE _glptr_BufferParameteriAPPLE GET_BufferParameteriAPPLE(struct _glapi_table *disp) { - return (_glptr_BufferParameteriAPPLE) (GET_by_offset(disp, _gloffset_BufferParameteriAPPLE)); -} - -static INLINE void SET_BufferParameteriAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint)) { - SET_by_offset(disp, _gloffset_BufferParameteriAPPLE, fn); -} - -typedef void (GLAPIENTRYP _glptr_FlushMappedBufferRangeAPPLE)(GLenum, GLintptr, GLsizeiptr); -#define CALL_FlushMappedBufferRangeAPPLE(disp, parameters) \ - (* GET_FlushMappedBufferRangeAPPLE(disp)) parameters -static INLINE _glptr_FlushMappedBufferRangeAPPLE GET_FlushMappedBufferRangeAPPLE(struct _glapi_table *disp) { - return (_glptr_FlushMappedBufferRangeAPPLE) (GET_by_offset(disp, _gloffset_FlushMappedBufferRangeAPPLE)); -} - -static INLINE void SET_FlushMappedBufferRangeAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLintptr, GLsizeiptr)) { - SET_by_offset(disp, _gloffset_FlushMappedBufferRangeAPPLE, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindFragDataLocationEXT)(GLuint, GLuint, const GLchar *); -#define CALL_BindFragDataLocationEXT(disp, parameters) \ - (* GET_BindFragDataLocationEXT(disp)) parameters -static INLINE _glptr_BindFragDataLocationEXT GET_BindFragDataLocationEXT(struct _glapi_table *disp) { - return (_glptr_BindFragDataLocationEXT) (GET_by_offset(disp, _gloffset_BindFragDataLocationEXT)); -} - -static INLINE void SET_BindFragDataLocationEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, const GLchar *)) { - SET_by_offset(disp, _gloffset_BindFragDataLocationEXT, fn); -} - -typedef GLint (GLAPIENTRYP _glptr_GetFragDataLocationEXT)(GLuint, const GLchar *); -#define CALL_GetFragDataLocationEXT(disp, parameters) \ - (* GET_GetFragDataLocationEXT(disp)) parameters -static INLINE _glptr_GetFragDataLocationEXT GET_GetFragDataLocationEXT(struct _glapi_table *disp) { - return (_glptr_GetFragDataLocationEXT) (GET_by_offset(disp, _gloffset_GetFragDataLocationEXT)); -} - -static INLINE void SET_GetFragDataLocationEXT(struct _glapi_table *disp, GLint (GLAPIENTRYP fn)(GLuint, const GLchar *)) { - SET_by_offset(disp, _gloffset_GetFragDataLocationEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetUniformuivEXT)(GLuint, GLint, GLuint *); -#define CALL_GetUniformuivEXT(disp, parameters) \ - (* GET_GetUniformuivEXT(disp)) parameters -static INLINE _glptr_GetUniformuivEXT GET_GetUniformuivEXT(struct _glapi_table *disp) { - return (_glptr_GetUniformuivEXT) (GET_by_offset(disp, _gloffset_GetUniformuivEXT)); -} - -static INLINE void SET_GetUniformuivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLuint *)) { - SET_by_offset(disp, _gloffset_GetUniformuivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetVertexAttribIivEXT)(GLuint, GLenum, GLint *); -#define CALL_GetVertexAttribIivEXT(disp, parameters) \ - (* GET_GetVertexAttribIivEXT(disp)) parameters -static INLINE _glptr_GetVertexAttribIivEXT GET_GetVertexAttribIivEXT(struct _glapi_table *disp) { - return (_glptr_GetVertexAttribIivEXT) (GET_by_offset(disp, _gloffset_GetVertexAttribIivEXT)); -} - -static INLINE void SET_GetVertexAttribIivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetVertexAttribIivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetVertexAttribIuivEXT)(GLuint, GLenum, GLuint *); -#define CALL_GetVertexAttribIuivEXT(disp, parameters) \ - (* GET_GetVertexAttribIuivEXT(disp)) parameters -static INLINE _glptr_GetVertexAttribIuivEXT GET_GetVertexAttribIuivEXT(struct _glapi_table *disp) { - return (_glptr_GetVertexAttribIuivEXT) (GET_by_offset(disp, _gloffset_GetVertexAttribIuivEXT)); -} - -static INLINE void SET_GetVertexAttribIuivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLuint *)) { - SET_by_offset(disp, _gloffset_GetVertexAttribIuivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform1uiEXT)(GLint, GLuint); -#define CALL_Uniform1uiEXT(disp, parameters) \ - (* GET_Uniform1uiEXT(disp)) parameters -static INLINE _glptr_Uniform1uiEXT GET_Uniform1uiEXT(struct _glapi_table *disp) { - return (_glptr_Uniform1uiEXT) (GET_by_offset(disp, _gloffset_Uniform1uiEXT)); -} - -static INLINE void SET_Uniform1uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLuint)) { - SET_by_offset(disp, _gloffset_Uniform1uiEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform1uivEXT)(GLint, GLsizei, const GLuint *); -#define CALL_Uniform1uivEXT(disp, parameters) \ - (* GET_Uniform1uivEXT(disp)) parameters -static INLINE _glptr_Uniform1uivEXT GET_Uniform1uivEXT(struct _glapi_table *disp) { - return (_glptr_Uniform1uivEXT) (GET_by_offset(disp, _gloffset_Uniform1uivEXT)); -} - -static INLINE void SET_Uniform1uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_Uniform1uivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform2uiEXT)(GLint, GLuint, GLuint); -#define CALL_Uniform2uiEXT(disp, parameters) \ - (* GET_Uniform2uiEXT(disp)) parameters -static INLINE _glptr_Uniform2uiEXT GET_Uniform2uiEXT(struct _glapi_table *disp) { - return (_glptr_Uniform2uiEXT) (GET_by_offset(disp, _gloffset_Uniform2uiEXT)); -} - -static INLINE void SET_Uniform2uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_Uniform2uiEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform2uivEXT)(GLint, GLsizei, const GLuint *); -#define CALL_Uniform2uivEXT(disp, parameters) \ - (* GET_Uniform2uivEXT(disp)) parameters -static INLINE _glptr_Uniform2uivEXT GET_Uniform2uivEXT(struct _glapi_table *disp) { - return (_glptr_Uniform2uivEXT) (GET_by_offset(disp, _gloffset_Uniform2uivEXT)); -} - -static INLINE void SET_Uniform2uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_Uniform2uivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform3uiEXT)(GLint, GLuint, GLuint, GLuint); -#define CALL_Uniform3uiEXT(disp, parameters) \ - (* GET_Uniform3uiEXT(disp)) parameters -static INLINE _glptr_Uniform3uiEXT GET_Uniform3uiEXT(struct _glapi_table *disp) { - return (_glptr_Uniform3uiEXT) (GET_by_offset(disp, _gloffset_Uniform3uiEXT)); -} - -static INLINE void SET_Uniform3uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_Uniform3uiEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform3uivEXT)(GLint, GLsizei, const GLuint *); -#define CALL_Uniform3uivEXT(disp, parameters) \ - (* GET_Uniform3uivEXT(disp)) parameters -static INLINE _glptr_Uniform3uivEXT GET_Uniform3uivEXT(struct _glapi_table *disp) { - return (_glptr_Uniform3uivEXT) (GET_by_offset(disp, _gloffset_Uniform3uivEXT)); -} - -static INLINE void SET_Uniform3uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_Uniform3uivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform4uiEXT)(GLint, GLuint, GLuint, GLuint, GLuint); -#define CALL_Uniform4uiEXT(disp, parameters) \ - (* GET_Uniform4uiEXT(disp)) parameters -static INLINE _glptr_Uniform4uiEXT GET_Uniform4uiEXT(struct _glapi_table *disp) { - return (_glptr_Uniform4uiEXT) (GET_by_offset(disp, _gloffset_Uniform4uiEXT)); -} - -static INLINE void SET_Uniform4uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLuint, GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_Uniform4uiEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_Uniform4uivEXT)(GLint, GLsizei, const GLuint *); -#define CALL_Uniform4uivEXT(disp, parameters) \ - (* GET_Uniform4uivEXT(disp)) parameters -static INLINE _glptr_Uniform4uivEXT GET_Uniform4uivEXT(struct _glapi_table *disp) { - return (_glptr_Uniform4uivEXT) (GET_by_offset(disp, _gloffset_Uniform4uivEXT)); -} - -static INLINE void SET_Uniform4uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLsizei, const GLuint *)) { - SET_by_offset(disp, _gloffset_Uniform4uivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI1iEXT)(GLuint, GLint); -#define CALL_VertexAttribI1iEXT(disp, parameters) \ - (* GET_VertexAttribI1iEXT(disp)) parameters -static INLINE _glptr_VertexAttribI1iEXT GET_VertexAttribI1iEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI1iEXT) (GET_by_offset(disp, _gloffset_VertexAttribI1iEXT)); -} - -static INLINE void SET_VertexAttribI1iEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint)) { - SET_by_offset(disp, _gloffset_VertexAttribI1iEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI1ivEXT)(GLuint, const GLint *); -#define CALL_VertexAttribI1ivEXT(disp, parameters) \ - (* GET_VertexAttribI1ivEXT(disp)) parameters -static INLINE _glptr_VertexAttribI1ivEXT GET_VertexAttribI1ivEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI1ivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI1ivEXT)); -} - -static INLINE void SET_VertexAttribI1ivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLint *)) { - SET_by_offset(disp, _gloffset_VertexAttribI1ivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI1uiEXT)(GLuint, GLuint); -#define CALL_VertexAttribI1uiEXT(disp, parameters) \ - (* GET_VertexAttribI1uiEXT(disp)) parameters -static INLINE _glptr_VertexAttribI1uiEXT GET_VertexAttribI1uiEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI1uiEXT) (GET_by_offset(disp, _gloffset_VertexAttribI1uiEXT)); -} - -static INLINE void SET_VertexAttribI1uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_VertexAttribI1uiEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI1uivEXT)(GLuint, const GLuint *); -#define CALL_VertexAttribI1uivEXT(disp, parameters) \ - (* GET_VertexAttribI1uivEXT(disp)) parameters -static INLINE _glptr_VertexAttribI1uivEXT GET_VertexAttribI1uivEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI1uivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI1uivEXT)); -} - -static INLINE void SET_VertexAttribI1uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLuint *)) { - SET_by_offset(disp, _gloffset_VertexAttribI1uivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI2iEXT)(GLuint, GLint, GLint); -#define CALL_VertexAttribI2iEXT(disp, parameters) \ - (* GET_VertexAttribI2iEXT(disp)) parameters -static INLINE _glptr_VertexAttribI2iEXT GET_VertexAttribI2iEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI2iEXT) (GET_by_offset(disp, _gloffset_VertexAttribI2iEXT)); -} - -static INLINE void SET_VertexAttribI2iEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_VertexAttribI2iEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI2ivEXT)(GLuint, const GLint *); -#define CALL_VertexAttribI2ivEXT(disp, parameters) \ - (* GET_VertexAttribI2ivEXT(disp)) parameters -static INLINE _glptr_VertexAttribI2ivEXT GET_VertexAttribI2ivEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI2ivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI2ivEXT)); -} - -static INLINE void SET_VertexAttribI2ivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLint *)) { - SET_by_offset(disp, _gloffset_VertexAttribI2ivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI2uiEXT)(GLuint, GLuint, GLuint); -#define CALL_VertexAttribI2uiEXT(disp, parameters) \ - (* GET_VertexAttribI2uiEXT(disp)) parameters -static INLINE _glptr_VertexAttribI2uiEXT GET_VertexAttribI2uiEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI2uiEXT) (GET_by_offset(disp, _gloffset_VertexAttribI2uiEXT)); -} - -static INLINE void SET_VertexAttribI2uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_VertexAttribI2uiEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI2uivEXT)(GLuint, const GLuint *); -#define CALL_VertexAttribI2uivEXT(disp, parameters) \ - (* GET_VertexAttribI2uivEXT(disp)) parameters -static INLINE _glptr_VertexAttribI2uivEXT GET_VertexAttribI2uivEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI2uivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI2uivEXT)); -} - -static INLINE void SET_VertexAttribI2uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLuint *)) { - SET_by_offset(disp, _gloffset_VertexAttribI2uivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI3iEXT)(GLuint, GLint, GLint, GLint); -#define CALL_VertexAttribI3iEXT(disp, parameters) \ - (* GET_VertexAttribI3iEXT(disp)) parameters -static INLINE _glptr_VertexAttribI3iEXT GET_VertexAttribI3iEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI3iEXT) (GET_by_offset(disp, _gloffset_VertexAttribI3iEXT)); -} - -static INLINE void SET_VertexAttribI3iEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_VertexAttribI3iEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI3ivEXT)(GLuint, const GLint *); -#define CALL_VertexAttribI3ivEXT(disp, parameters) \ - (* GET_VertexAttribI3ivEXT(disp)) parameters -static INLINE _glptr_VertexAttribI3ivEXT GET_VertexAttribI3ivEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI3ivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI3ivEXT)); -} - -static INLINE void SET_VertexAttribI3ivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLint *)) { - SET_by_offset(disp, _gloffset_VertexAttribI3ivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI3uiEXT)(GLuint, GLuint, GLuint, GLuint); -#define CALL_VertexAttribI3uiEXT(disp, parameters) \ - (* GET_VertexAttribI3uiEXT(disp)) parameters -static INLINE _glptr_VertexAttribI3uiEXT GET_VertexAttribI3uiEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI3uiEXT) (GET_by_offset(disp, _gloffset_VertexAttribI3uiEXT)); -} - -static INLINE void SET_VertexAttribI3uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_VertexAttribI3uiEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI3uivEXT)(GLuint, const GLuint *); -#define CALL_VertexAttribI3uivEXT(disp, parameters) \ - (* GET_VertexAttribI3uivEXT(disp)) parameters -static INLINE _glptr_VertexAttribI3uivEXT GET_VertexAttribI3uivEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI3uivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI3uivEXT)); -} - -static INLINE void SET_VertexAttribI3uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLuint *)) { - SET_by_offset(disp, _gloffset_VertexAttribI3uivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI4bvEXT)(GLuint, const GLbyte *); -#define CALL_VertexAttribI4bvEXT(disp, parameters) \ - (* GET_VertexAttribI4bvEXT(disp)) parameters -static INLINE _glptr_VertexAttribI4bvEXT GET_VertexAttribI4bvEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI4bvEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4bvEXT)); -} - -static INLINE void SET_VertexAttribI4bvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLbyte *)) { - SET_by_offset(disp, _gloffset_VertexAttribI4bvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI4iEXT)(GLuint, GLint, GLint, GLint, GLint); -#define CALL_VertexAttribI4iEXT(disp, parameters) \ - (* GET_VertexAttribI4iEXT(disp)) parameters -static INLINE _glptr_VertexAttribI4iEXT GET_VertexAttribI4iEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI4iEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4iEXT)); -} - -static INLINE void SET_VertexAttribI4iEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_VertexAttribI4iEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI4ivEXT)(GLuint, const GLint *); -#define CALL_VertexAttribI4ivEXT(disp, parameters) \ - (* GET_VertexAttribI4ivEXT(disp)) parameters -static INLINE _glptr_VertexAttribI4ivEXT GET_VertexAttribI4ivEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI4ivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4ivEXT)); -} - -static INLINE void SET_VertexAttribI4ivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLint *)) { - SET_by_offset(disp, _gloffset_VertexAttribI4ivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI4svEXT)(GLuint, const GLshort *); -#define CALL_VertexAttribI4svEXT(disp, parameters) \ - (* GET_VertexAttribI4svEXT(disp)) parameters -static INLINE _glptr_VertexAttribI4svEXT GET_VertexAttribI4svEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI4svEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4svEXT)); -} - -static INLINE void SET_VertexAttribI4svEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLshort *)) { - SET_by_offset(disp, _gloffset_VertexAttribI4svEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI4ubvEXT)(GLuint, const GLubyte *); -#define CALL_VertexAttribI4ubvEXT(disp, parameters) \ - (* GET_VertexAttribI4ubvEXT(disp)) parameters -static INLINE _glptr_VertexAttribI4ubvEXT GET_VertexAttribI4ubvEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI4ubvEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4ubvEXT)); -} - -static INLINE void SET_VertexAttribI4ubvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLubyte *)) { - SET_by_offset(disp, _gloffset_VertexAttribI4ubvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI4uiEXT)(GLuint, GLuint, GLuint, GLuint, GLuint); -#define CALL_VertexAttribI4uiEXT(disp, parameters) \ - (* GET_VertexAttribI4uiEXT(disp)) parameters -static INLINE _glptr_VertexAttribI4uiEXT GET_VertexAttribI4uiEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI4uiEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4uiEXT)); -} - -static INLINE void SET_VertexAttribI4uiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_VertexAttribI4uiEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI4uivEXT)(GLuint, const GLuint *); -#define CALL_VertexAttribI4uivEXT(disp, parameters) \ - (* GET_VertexAttribI4uivEXT(disp)) parameters -static INLINE _glptr_VertexAttribI4uivEXT GET_VertexAttribI4uivEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI4uivEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4uivEXT)); -} - -static INLINE void SET_VertexAttribI4uivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLuint *)) { - SET_by_offset(disp, _gloffset_VertexAttribI4uivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribI4usvEXT)(GLuint, const GLushort *); -#define CALL_VertexAttribI4usvEXT(disp, parameters) \ - (* GET_VertexAttribI4usvEXT(disp)) parameters -static INLINE _glptr_VertexAttribI4usvEXT GET_VertexAttribI4usvEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribI4usvEXT) (GET_by_offset(disp, _gloffset_VertexAttribI4usvEXT)); -} - -static INLINE void SET_VertexAttribI4usvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, const GLushort *)) { - SET_by_offset(disp, _gloffset_VertexAttribI4usvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_VertexAttribIPointerEXT)(GLuint, GLint, GLenum, GLsizei, const GLvoid *); -#define CALL_VertexAttribIPointerEXT(disp, parameters) \ - (* GET_VertexAttribIPointerEXT(disp)) parameters -static INLINE _glptr_VertexAttribIPointerEXT GET_VertexAttribIPointerEXT(struct _glapi_table *disp) { - return (_glptr_VertexAttribIPointerEXT) (GET_by_offset(disp, _gloffset_VertexAttribIPointerEXT)); -} - -static INLINE void SET_VertexAttribIPointerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLint, GLenum, GLsizei, const GLvoid *)) { - SET_by_offset(disp, _gloffset_VertexAttribIPointerEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_FramebufferTextureLayerEXT)(GLenum, GLenum, GLuint, GLint, GLint); -#define CALL_FramebufferTextureLayerEXT(disp, parameters) \ - (* GET_FramebufferTextureLayerEXT(disp)) parameters -static INLINE _glptr_FramebufferTextureLayerEXT GET_FramebufferTextureLayerEXT(struct _glapi_table *disp) { - return (_glptr_FramebufferTextureLayerEXT) (GET_by_offset(disp, _gloffset_FramebufferTextureLayerEXT)); -} - -static INLINE void SET_FramebufferTextureLayerEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_FramebufferTextureLayerEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_ColorMaskIndexedEXT)(GLuint, GLboolean, GLboolean, GLboolean, GLboolean); -#define CALL_ColorMaskIndexedEXT(disp, parameters) \ - (* GET_ColorMaskIndexedEXT(disp)) parameters -static INLINE _glptr_ColorMaskIndexedEXT GET_ColorMaskIndexedEXT(struct _glapi_table *disp) { - return (_glptr_ColorMaskIndexedEXT) (GET_by_offset(disp, _gloffset_ColorMaskIndexedEXT)); -} - -static INLINE void SET_ColorMaskIndexedEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLboolean, GLboolean, GLboolean, GLboolean)) { - SET_by_offset(disp, _gloffset_ColorMaskIndexedEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_DisableIndexedEXT)(GLenum, GLuint); -#define CALL_DisableIndexedEXT(disp, parameters) \ - (* GET_DisableIndexedEXT(disp)) parameters -static INLINE _glptr_DisableIndexedEXT GET_DisableIndexedEXT(struct _glapi_table *disp) { - return (_glptr_DisableIndexedEXT) (GET_by_offset(disp, _gloffset_DisableIndexedEXT)); -} - -static INLINE void SET_DisableIndexedEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_DisableIndexedEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_EnableIndexedEXT)(GLenum, GLuint); -#define CALL_EnableIndexedEXT(disp, parameters) \ - (* GET_EnableIndexedEXT(disp)) parameters -static INLINE _glptr_EnableIndexedEXT GET_EnableIndexedEXT(struct _glapi_table *disp) { - return (_glptr_EnableIndexedEXT) (GET_by_offset(disp, _gloffset_EnableIndexedEXT)); -} - -static INLINE void SET_EnableIndexedEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_EnableIndexedEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetBooleanIndexedvEXT)(GLenum, GLuint, GLboolean *); -#define CALL_GetBooleanIndexedvEXT(disp, parameters) \ - (* GET_GetBooleanIndexedvEXT(disp)) parameters -static INLINE _glptr_GetBooleanIndexedvEXT GET_GetBooleanIndexedvEXT(struct _glapi_table *disp) { - return (_glptr_GetBooleanIndexedvEXT) (GET_by_offset(disp, _gloffset_GetBooleanIndexedvEXT)); -} - -static INLINE void SET_GetBooleanIndexedvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLboolean *)) { - SET_by_offset(disp, _gloffset_GetBooleanIndexedvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetIntegerIndexedvEXT)(GLenum, GLuint, GLint *); -#define CALL_GetIntegerIndexedvEXT(disp, parameters) \ - (* GET_GetIntegerIndexedvEXT(disp)) parameters -static INLINE _glptr_GetIntegerIndexedvEXT GET_GetIntegerIndexedvEXT(struct _glapi_table *disp) { - return (_glptr_GetIntegerIndexedvEXT) (GET_by_offset(disp, _gloffset_GetIntegerIndexedvEXT)); -} - -static INLINE void SET_GetIntegerIndexedvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLint *)) { - SET_by_offset(disp, _gloffset_GetIntegerIndexedvEXT, fn); -} - -typedef GLboolean (GLAPIENTRYP _glptr_IsEnabledIndexedEXT)(GLenum, GLuint); -#define CALL_IsEnabledIndexedEXT(disp, parameters) \ - (* GET_IsEnabledIndexedEXT(disp)) parameters -static INLINE _glptr_IsEnabledIndexedEXT GET_IsEnabledIndexedEXT(struct _glapi_table *disp) { - return (_glptr_IsEnabledIndexedEXT) (GET_by_offset(disp, _gloffset_IsEnabledIndexedEXT)); -} - -static INLINE void SET_IsEnabledIndexedEXT(struct _glapi_table *disp, GLboolean (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_IsEnabledIndexedEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClearColorIiEXT)(GLint, GLint, GLint, GLint); -#define CALL_ClearColorIiEXT(disp, parameters) \ - (* GET_ClearColorIiEXT(disp)) parameters -static INLINE _glptr_ClearColorIiEXT GET_ClearColorIiEXT(struct _glapi_table *disp) { - return (_glptr_ClearColorIiEXT) (GET_by_offset(disp, _gloffset_ClearColorIiEXT)); -} - -static INLINE void SET_ClearColorIiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLint, GLint, GLint, GLint)) { - SET_by_offset(disp, _gloffset_ClearColorIiEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_ClearColorIuiEXT)(GLuint, GLuint, GLuint, GLuint); -#define CALL_ClearColorIuiEXT(disp, parameters) \ - (* GET_ClearColorIuiEXT(disp)) parameters -static INLINE _glptr_ClearColorIuiEXT GET_ClearColorIuiEXT(struct _glapi_table *disp) { - return (_glptr_ClearColorIuiEXT) (GET_by_offset(disp, _gloffset_ClearColorIuiEXT)); -} - -static INLINE void SET_ClearColorIuiEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_ClearColorIuiEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexParameterIivEXT)(GLenum, GLenum, GLint *); -#define CALL_GetTexParameterIivEXT(disp, parameters) \ - (* GET_GetTexParameterIivEXT(disp)) parameters -static INLINE _glptr_GetTexParameterIivEXT GET_GetTexParameterIivEXT(struct _glapi_table *disp) { - return (_glptr_GetTexParameterIivEXT) (GET_by_offset(disp, _gloffset_GetTexParameterIivEXT)); -} - -static INLINE void SET_GetTexParameterIivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetTexParameterIivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexParameterIuivEXT)(GLenum, GLenum, GLuint *); -#define CALL_GetTexParameterIuivEXT(disp, parameters) \ - (* GET_GetTexParameterIuivEXT(disp)) parameters -static INLINE _glptr_GetTexParameterIuivEXT GET_GetTexParameterIuivEXT(struct _glapi_table *disp) { - return (_glptr_GetTexParameterIuivEXT) (GET_by_offset(disp, _gloffset_GetTexParameterIuivEXT)); -} - -static INLINE void SET_GetTexParameterIuivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLuint *)) { - SET_by_offset(disp, _gloffset_GetTexParameterIuivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexParameterIivEXT)(GLenum, GLenum, const GLint *); -#define CALL_TexParameterIivEXT(disp, parameters) \ - (* GET_TexParameterIivEXT(disp)) parameters -static INLINE _glptr_TexParameterIivEXT GET_TexParameterIivEXT(struct _glapi_table *disp) { - return (_glptr_TexParameterIivEXT) (GET_by_offset(disp, _gloffset_TexParameterIivEXT)); -} - -static INLINE void SET_TexParameterIivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLint *)) { - SET_by_offset(disp, _gloffset_TexParameterIivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_TexParameterIuivEXT)(GLenum, GLenum, const GLuint *); -#define CALL_TexParameterIuivEXT(disp, parameters) \ - (* GET_TexParameterIuivEXT(disp)) parameters -static INLINE _glptr_TexParameterIuivEXT GET_TexParameterIuivEXT(struct _glapi_table *disp) { - return (_glptr_TexParameterIuivEXT) (GET_by_offset(disp, _gloffset_TexParameterIuivEXT)); -} - -static INLINE void SET_TexParameterIuivEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, const GLuint *)) { - SET_by_offset(disp, _gloffset_TexParameterIuivEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_BeginConditionalRenderNV)(GLuint, GLenum); -#define CALL_BeginConditionalRenderNV(disp, parameters) \ - (* GET_BeginConditionalRenderNV(disp)) parameters -static INLINE _glptr_BeginConditionalRenderNV GET_BeginConditionalRenderNV(struct _glapi_table *disp) { - return (_glptr_BeginConditionalRenderNV) (GET_by_offset(disp, _gloffset_BeginConditionalRenderNV)); -} - -static INLINE void SET_BeginConditionalRenderNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum)) { - SET_by_offset(disp, _gloffset_BeginConditionalRenderNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_EndConditionalRenderNV)(void); -#define CALL_EndConditionalRenderNV(disp, parameters) \ - (* GET_EndConditionalRenderNV(disp)) parameters -static INLINE _glptr_EndConditionalRenderNV GET_EndConditionalRenderNV(struct _glapi_table *disp) { - return (_glptr_EndConditionalRenderNV) (GET_by_offset(disp, _gloffset_EndConditionalRenderNV)); -} - -static INLINE void SET_EndConditionalRenderNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_EndConditionalRenderNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_BeginTransformFeedbackEXT)(GLenum); -#define CALL_BeginTransformFeedbackEXT(disp, parameters) \ - (* GET_BeginTransformFeedbackEXT(disp)) parameters -static INLINE _glptr_BeginTransformFeedbackEXT GET_BeginTransformFeedbackEXT(struct _glapi_table *disp) { - return (_glptr_BeginTransformFeedbackEXT) (GET_by_offset(disp, _gloffset_BeginTransformFeedbackEXT)); -} - -static INLINE void SET_BeginTransformFeedbackEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_BeginTransformFeedbackEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindBufferBaseEXT)(GLenum, GLuint, GLuint); -#define CALL_BindBufferBaseEXT(disp, parameters) \ - (* GET_BindBufferBaseEXT(disp)) parameters -static INLINE _glptr_BindBufferBaseEXT GET_BindBufferBaseEXT(struct _glapi_table *disp) { - return (_glptr_BindBufferBaseEXT) (GET_by_offset(disp, _gloffset_BindBufferBaseEXT)); -} - -static INLINE void SET_BindBufferBaseEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint)) { - SET_by_offset(disp, _gloffset_BindBufferBaseEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindBufferOffsetEXT)(GLenum, GLuint, GLuint, GLintptr); -#define CALL_BindBufferOffsetEXT(disp, parameters) \ - (* GET_BindBufferOffsetEXT(disp)) parameters -static INLINE _glptr_BindBufferOffsetEXT GET_BindBufferOffsetEXT(struct _glapi_table *disp) { - return (_glptr_BindBufferOffsetEXT) (GET_by_offset(disp, _gloffset_BindBufferOffsetEXT)); -} - -static INLINE void SET_BindBufferOffsetEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLintptr)) { - SET_by_offset(disp, _gloffset_BindBufferOffsetEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_BindBufferRangeEXT)(GLenum, GLuint, GLuint, GLintptr, GLsizeiptr); -#define CALL_BindBufferRangeEXT(disp, parameters) \ - (* GET_BindBufferRangeEXT(disp)) parameters -static INLINE _glptr_BindBufferRangeEXT GET_BindBufferRangeEXT(struct _glapi_table *disp) { - return (_glptr_BindBufferRangeEXT) (GET_by_offset(disp, _gloffset_BindBufferRangeEXT)); -} - -static INLINE void SET_BindBufferRangeEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLuint, GLintptr, GLsizeiptr)) { - SET_by_offset(disp, _gloffset_BindBufferRangeEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_EndTransformFeedbackEXT)(void); -#define CALL_EndTransformFeedbackEXT(disp, parameters) \ - (* GET_EndTransformFeedbackEXT(disp)) parameters -static INLINE _glptr_EndTransformFeedbackEXT GET_EndTransformFeedbackEXT(struct _glapi_table *disp) { - return (_glptr_EndTransformFeedbackEXT) (GET_by_offset(disp, _gloffset_EndTransformFeedbackEXT)); -} - -static INLINE void SET_EndTransformFeedbackEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_EndTransformFeedbackEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTransformFeedbackVaryingEXT)(GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *); -#define CALL_GetTransformFeedbackVaryingEXT(disp, parameters) \ - (* GET_GetTransformFeedbackVaryingEXT(disp)) parameters -static INLINE _glptr_GetTransformFeedbackVaryingEXT GET_GetTransformFeedbackVaryingEXT(struct _glapi_table *disp) { - return (_glptr_GetTransformFeedbackVaryingEXT) (GET_by_offset(disp, _gloffset_GetTransformFeedbackVaryingEXT)); -} - -static INLINE void SET_GetTransformFeedbackVaryingEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *)) { - SET_by_offset(disp, _gloffset_GetTransformFeedbackVaryingEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_TransformFeedbackVaryingsEXT)(GLuint, GLsizei, const char **, GLenum); -#define CALL_TransformFeedbackVaryingsEXT(disp, parameters) \ - (* GET_TransformFeedbackVaryingsEXT(disp)) parameters -static INLINE _glptr_TransformFeedbackVaryingsEXT GET_TransformFeedbackVaryingsEXT(struct _glapi_table *disp) { - return (_glptr_TransformFeedbackVaryingsEXT) (GET_by_offset(disp, _gloffset_TransformFeedbackVaryingsEXT)); -} - -static INLINE void SET_TransformFeedbackVaryingsEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLsizei, const char **, GLenum)) { - SET_by_offset(disp, _gloffset_TransformFeedbackVaryingsEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProvokingVertexEXT)(GLenum); -#define CALL_ProvokingVertexEXT(disp, parameters) \ - (* GET_ProvokingVertexEXT(disp)) parameters -static INLINE _glptr_ProvokingVertexEXT GET_ProvokingVertexEXT(struct _glapi_table *disp) { - return (_glptr_ProvokingVertexEXT) (GET_by_offset(disp, _gloffset_ProvokingVertexEXT)); -} - -static INLINE void SET_ProvokingVertexEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum)) { - SET_by_offset(disp, _gloffset_ProvokingVertexEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetTexParameterPointervAPPLE)(GLenum, GLenum, GLvoid **); -#define CALL_GetTexParameterPointervAPPLE(disp, parameters) \ - (* GET_GetTexParameterPointervAPPLE(disp)) parameters -static INLINE _glptr_GetTexParameterPointervAPPLE GET_GetTexParameterPointervAPPLE(struct _glapi_table *disp) { - return (_glptr_GetTexParameterPointervAPPLE) (GET_by_offset(disp, _gloffset_GetTexParameterPointervAPPLE)); -} - -static INLINE void SET_GetTexParameterPointervAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLvoid **)) { - SET_by_offset(disp, _gloffset_GetTexParameterPointervAPPLE, fn); -} - -typedef void (GLAPIENTRYP _glptr_TextureRangeAPPLE)(GLenum, GLsizei, GLvoid *); -#define CALL_TextureRangeAPPLE(disp, parameters) \ - (* GET_TextureRangeAPPLE(disp)) parameters -static INLINE _glptr_TextureRangeAPPLE GET_TextureRangeAPPLE(struct _glapi_table *disp) { - return (_glptr_TextureRangeAPPLE) (GET_by_offset(disp, _gloffset_TextureRangeAPPLE)); -} - -static INLINE void SET_TextureRangeAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLsizei, GLvoid *)) { - SET_by_offset(disp, _gloffset_TextureRangeAPPLE, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetObjectParameterivAPPLE)(GLenum, GLuint, GLenum, GLint *); -#define CALL_GetObjectParameterivAPPLE(disp, parameters) \ - (* GET_GetObjectParameterivAPPLE(disp)) parameters -static INLINE _glptr_GetObjectParameterivAPPLE GET_GetObjectParameterivAPPLE(struct _glapi_table *disp) { - return (_glptr_GetObjectParameterivAPPLE) (GET_by_offset(disp, _gloffset_GetObjectParameterivAPPLE)); -} - -static INLINE void SET_GetObjectParameterivAPPLE(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLenum, GLint *)) { - SET_by_offset(disp, _gloffset_GetObjectParameterivAPPLE, fn); -} - -typedef GLenum (GLAPIENTRYP _glptr_ObjectPurgeableAPPLE)(GLenum, GLuint, GLenum); -#define CALL_ObjectPurgeableAPPLE(disp, parameters) \ - (* GET_ObjectPurgeableAPPLE(disp)) parameters -static INLINE _glptr_ObjectPurgeableAPPLE GET_ObjectPurgeableAPPLE(struct _glapi_table *disp) { - return (_glptr_ObjectPurgeableAPPLE) (GET_by_offset(disp, _gloffset_ObjectPurgeableAPPLE)); -} - -static INLINE void SET_ObjectPurgeableAPPLE(struct _glapi_table *disp, GLenum (GLAPIENTRYP fn)(GLenum, GLuint, GLenum)) { - SET_by_offset(disp, _gloffset_ObjectPurgeableAPPLE, fn); -} - -typedef GLenum (GLAPIENTRYP _glptr_ObjectUnpurgeableAPPLE)(GLenum, GLuint, GLenum); -#define CALL_ObjectUnpurgeableAPPLE(disp, parameters) \ - (* GET_ObjectUnpurgeableAPPLE(disp)) parameters -static INLINE _glptr_ObjectUnpurgeableAPPLE GET_ObjectUnpurgeableAPPLE(struct _glapi_table *disp) { - return (_glptr_ObjectUnpurgeableAPPLE) (GET_by_offset(disp, _gloffset_ObjectUnpurgeableAPPLE)); -} - -static INLINE void SET_ObjectUnpurgeableAPPLE(struct _glapi_table *disp, GLenum (GLAPIENTRYP fn)(GLenum, GLuint, GLenum)) { - SET_by_offset(disp, _gloffset_ObjectUnpurgeableAPPLE, fn); -} - -typedef void (GLAPIENTRYP _glptr_ActiveProgramEXT)(GLuint); -#define CALL_ActiveProgramEXT(disp, parameters) \ - (* GET_ActiveProgramEXT(disp)) parameters -static INLINE _glptr_ActiveProgramEXT GET_ActiveProgramEXT(struct _glapi_table *disp) { - return (_glptr_ActiveProgramEXT) (GET_by_offset(disp, _gloffset_ActiveProgramEXT)); -} - -static INLINE void SET_ActiveProgramEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint)) { - SET_by_offset(disp, _gloffset_ActiveProgramEXT, fn); -} - -typedef GLuint (GLAPIENTRYP _glptr_CreateShaderProgramEXT)(GLenum, const GLchar *); -#define CALL_CreateShaderProgramEXT(disp, parameters) \ - (* GET_CreateShaderProgramEXT(disp)) parameters -static INLINE _glptr_CreateShaderProgramEXT GET_CreateShaderProgramEXT(struct _glapi_table *disp) { - return (_glptr_CreateShaderProgramEXT) (GET_by_offset(disp, _gloffset_CreateShaderProgramEXT)); -} - -static INLINE void SET_CreateShaderProgramEXT(struct _glapi_table *disp, GLuint (GLAPIENTRYP fn)(GLenum, const GLchar *)) { - SET_by_offset(disp, _gloffset_CreateShaderProgramEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_UseShaderProgramEXT)(GLenum, GLuint); -#define CALL_UseShaderProgramEXT(disp, parameters) \ - (* GET_UseShaderProgramEXT(disp)) parameters -static INLINE _glptr_UseShaderProgramEXT GET_UseShaderProgramEXT(struct _glapi_table *disp) { - return (_glptr_UseShaderProgramEXT) (GET_by_offset(disp, _gloffset_UseShaderProgramEXT)); -} - -static INLINE void SET_UseShaderProgramEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint)) { - SET_by_offset(disp, _gloffset_UseShaderProgramEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_TextureBarrierNV)(void); -#define CALL_TextureBarrierNV(disp, parameters) \ - (* GET_TextureBarrierNV(disp)) parameters -static INLINE _glptr_TextureBarrierNV GET_TextureBarrierNV(struct _glapi_table *disp) { - return (_glptr_TextureBarrierNV) (GET_by_offset(disp, _gloffset_TextureBarrierNV)); -} - -static INLINE void SET_TextureBarrierNV(struct _glapi_table *disp, void (GLAPIENTRYP fn)(void)) { - SET_by_offset(disp, _gloffset_TextureBarrierNV, fn); -} - -typedef void (GLAPIENTRYP _glptr_StencilFuncSeparateATI)(GLenum, GLenum, GLint, GLuint); -#define CALL_StencilFuncSeparateATI(disp, parameters) \ - (* GET_StencilFuncSeparateATI(disp)) parameters -static INLINE _glptr_StencilFuncSeparateATI GET_StencilFuncSeparateATI(struct _glapi_table *disp) { - return (_glptr_StencilFuncSeparateATI) (GET_by_offset(disp, _gloffset_StencilFuncSeparateATI)); -} - -static INLINE void SET_StencilFuncSeparateATI(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLenum, GLint, GLuint)) { - SET_by_offset(disp, _gloffset_StencilFuncSeparateATI, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramEnvParameters4fvEXT)(GLenum, GLuint, GLsizei, const GLfloat *); -#define CALL_ProgramEnvParameters4fvEXT(disp, parameters) \ - (* GET_ProgramEnvParameters4fvEXT(disp)) parameters -static INLINE _glptr_ProgramEnvParameters4fvEXT GET_ProgramEnvParameters4fvEXT(struct _glapi_table *disp) { - return (_glptr_ProgramEnvParameters4fvEXT) (GET_by_offset(disp, _gloffset_ProgramEnvParameters4fvEXT)); -} - -static INLINE void SET_ProgramEnvParameters4fvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLsizei, const GLfloat *)) { - SET_by_offset(disp, _gloffset_ProgramEnvParameters4fvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_ProgramLocalParameters4fvEXT)(GLenum, GLuint, GLsizei, const GLfloat *); -#define CALL_ProgramLocalParameters4fvEXT(disp, parameters) \ - (* GET_ProgramLocalParameters4fvEXT(disp)) parameters -static INLINE _glptr_ProgramLocalParameters4fvEXT GET_ProgramLocalParameters4fvEXT(struct _glapi_table *disp) { - return (_glptr_ProgramLocalParameters4fvEXT) (GET_by_offset(disp, _gloffset_ProgramLocalParameters4fvEXT)); -} - -static INLINE void SET_ProgramLocalParameters4fvEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLuint, GLsizei, const GLfloat *)) { - SET_by_offset(disp, _gloffset_ProgramLocalParameters4fvEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetQueryObjecti64vEXT)(GLuint, GLenum, GLint64EXT *); -#define CALL_GetQueryObjecti64vEXT(disp, parameters) \ - (* GET_GetQueryObjecti64vEXT(disp)) parameters -static INLINE _glptr_GetQueryObjecti64vEXT GET_GetQueryObjecti64vEXT(struct _glapi_table *disp) { - return (_glptr_GetQueryObjecti64vEXT) (GET_by_offset(disp, _gloffset_GetQueryObjecti64vEXT)); -} - -static INLINE void SET_GetQueryObjecti64vEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLint64EXT *)) { - SET_by_offset(disp, _gloffset_GetQueryObjecti64vEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_GetQueryObjectui64vEXT)(GLuint, GLenum, GLuint64EXT *); -#define CALL_GetQueryObjectui64vEXT(disp, parameters) \ - (* GET_GetQueryObjectui64vEXT(disp)) parameters -static INLINE _glptr_GetQueryObjectui64vEXT GET_GetQueryObjectui64vEXT(struct _glapi_table *disp) { - return (_glptr_GetQueryObjectui64vEXT) (GET_by_offset(disp, _gloffset_GetQueryObjectui64vEXT)); -} - -static INLINE void SET_GetQueryObjectui64vEXT(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLuint, GLenum, GLuint64EXT *)) { - SET_by_offset(disp, _gloffset_GetQueryObjectui64vEXT, fn); -} - -typedef void (GLAPIENTRYP _glptr_EGLImageTargetRenderbufferStorageOES)(GLenum, GLvoid *); -#define CALL_EGLImageTargetRenderbufferStorageOES(disp, parameters) \ - (* GET_EGLImageTargetRenderbufferStorageOES(disp)) parameters -static INLINE _glptr_EGLImageTargetRenderbufferStorageOES GET_EGLImageTargetRenderbufferStorageOES(struct _glapi_table *disp) { - return (_glptr_EGLImageTargetRenderbufferStorageOES) (GET_by_offset(disp, _gloffset_EGLImageTargetRenderbufferStorageOES)); -} - -static INLINE void SET_EGLImageTargetRenderbufferStorageOES(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLvoid *)) { - SET_by_offset(disp, _gloffset_EGLImageTargetRenderbufferStorageOES, fn); -} - -typedef void (GLAPIENTRYP _glptr_EGLImageTargetTexture2DOES)(GLenum, GLvoid *); -#define CALL_EGLImageTargetTexture2DOES(disp, parameters) \ - (* GET_EGLImageTargetTexture2DOES(disp)) parameters -static INLINE _glptr_EGLImageTargetTexture2DOES GET_EGLImageTargetTexture2DOES(struct _glapi_table *disp) { - return (_glptr_EGLImageTargetTexture2DOES) (GET_by_offset(disp, _gloffset_EGLImageTargetTexture2DOES)); -} - -static INLINE void SET_EGLImageTargetTexture2DOES(struct _glapi_table *disp, void (GLAPIENTRYP fn)(GLenum, GLvoid *)) { - SET_by_offset(disp, _gloffset_EGLImageTargetTexture2DOES, fn); -} - - -#endif /* !defined( _GLAPI_DISPATCH_H_ ) */ From 6b492d09767531915aa631bec470af1cf4653a6c Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 9 Jun 2011 00:23:16 +0800 Subject: [PATCH 116/145] st/egl: set EGL_ALPHA_MASK_SIZE --- src/gallium/state_trackers/egl/common/egl_g3d.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/state_trackers/egl/common/egl_g3d.c b/src/gallium/state_trackers/egl/common/egl_g3d.c index 4bd865638a3..29dbbefbf48 100644 --- a/src/gallium/state_trackers/egl/common/egl_g3d.c +++ b/src/gallium/state_trackers/egl/common/egl_g3d.c @@ -259,6 +259,10 @@ init_config_attributes(_EGLConfig *conf, const struct native_config *nconf, conf->DepthSize = depth_stencil[0]; conf->StencilSize = depth_stencil[1]; + /* st/vega will allocate the mask on demand */ + if (api_mask & EGL_OPENVG_BIT) + conf->AlphaMaskSize = 8; + conf->SurfaceType = surface_type; conf->NativeRenderable = EGL_TRUE; From 2abc8cae87b4cd037ebde68b4b9a1d02254657df Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Mon, 23 May 2011 13:48:28 -0700 Subject: [PATCH 117/145] i965/brw: Emit state for hiz and separate stencil buffers When emitting 3DSTATE_DEPTH_BUFFER, also emit 3DSTATE_HIER_DEPTH_BUFFER if there is a hiz buffer. Ditto for 3DSTATE_STENCIL_BUFFER and a separate stencil buffer. Reviewed-by: Eric Anholt Reviewed-by: Kenneth Graunke Signed-off-by: Chad Versace --- src/mesa/drivers/dri/i965/brw_misc_state.c | 114 ++++++++++++++++-- .../drivers/dri/i965/brw_wm_surface_state.c | 2 + 2 files changed, 107 insertions(+), 9 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c index 3ec90096212..4256234a645 100644 --- a/src/mesa/drivers/dri/i965/brw_misc_state.c +++ b/src/mesa/drivers/dri/i965/brw_misc_state.c @@ -202,6 +202,8 @@ static void prepare_depthbuffer(struct brw_context *brw) if (drb) brw_add_validated_bo(brw, drb->region->buffer); + if (drb && drb->hiz_region) + brw_add_validated_bo(brw, drb->hiz_region->buffer); if (srb) brw_add_validated_bo(brw, srb->region->buffer); } @@ -212,14 +214,28 @@ static void emit_depthbuffer(struct brw_context *brw) struct gl_context *ctx = &intel->ctx; struct gl_framebuffer *fb = ctx->DrawBuffer; /* _NEW_BUFFERS */ - struct intel_renderbuffer *irb = intel_get_renderbuffer(fb, BUFFER_DEPTH); + struct intel_renderbuffer *depth_irb = intel_get_renderbuffer(fb, BUFFER_DEPTH); + struct intel_renderbuffer *stencil_irb = intel_get_renderbuffer(fb, BUFFER_STENCIL); + struct intel_region *hiz_region = depth_irb ? depth_irb->hiz_region : NULL; unsigned int len; - /* If we're combined depth stencil but no depth is attached, look - * up stencil. + /* + * If depth and stencil buffers are identical, then don't use separate + * stencil. */ - if (!irb) - irb = intel_get_renderbuffer(fb, BUFFER_STENCIL); + if (depth_irb && depth_irb == stencil_irb) { + stencil_irb = NULL; + } + + /* + * If stencil buffer uses combined depth/stencil format, but no depth buffer + * is attached, then use stencil buffer as depth buffer. + */ + if (!depth_irb && stencil_irb + && stencil_irb->Base.Format == MESA_FORMAT_S8_Z24) { + depth_irb = stencil_irb; + stencil_irb = NULL; + } if (intel->gen >= 6) len = 7; @@ -228,7 +244,7 @@ static void emit_depthbuffer(struct brw_context *brw) else len = 5; - if (!irb) { + if (!depth_irb && !stencil_irb) { BEGIN_BATCH(len); OUT_BATCH(_3DSTATE_DEPTH_BUFFER << 16 | (len - 2)); OUT_BATCH((BRW_DEPTHFORMAT_D32_FLOAT << 18) | @@ -244,11 +260,57 @@ static void emit_depthbuffer(struct brw_context *brw) OUT_BATCH(0); ADVANCE_BATCH(); + + } else if (!depth_irb && stencil_irb) { + /* + * There exists a separate stencil buffer but no depth buffer. + * + * The stencil buffer inherits most of its fields from + * 3DSTATE_DEPTH_BUFFER: namely the tile walk, surface type, width, and + * height. + * + * Since the stencil buffer has quirky pitch requirements, its region + * was allocated with half height and double cpp. So we need + * a multiplier of 2 to obtain the surface's real height. + * + * Enable the hiz bit because it and the separate stencil bit must have + * the same value. From Section 2.11.5.6.1.1 3DSTATE_DEPTH_BUFFER, Bit + * 1.21 "Separate Stencil Enable": + * [DevIL]: If this field is enabled, Hierarchical Depth Buffer + * Enable must also be enabled. + * + * [DevGT]: This field must be set to the same value (enabled or + * disabled) as Hierarchical Depth Buffer Enable + */ + assert(intel->has_separate_stencil); + assert(stencil_irb->Base.Format == MESA_FORMAT_S8); + + BEGIN_BATCH(len); + OUT_BATCH(_3DSTATE_DEPTH_BUFFER << 16 | (len - 2)); + OUT_BATCH((BRW_DEPTHFORMAT_D32_FLOAT << 18) | + (1 << 21) | /* separate stencil enable */ + (1 << 22) | /* hiz enable */ + (BRW_TILEWALK_YMAJOR << 26) | + (BRW_SURFACE_2D << 29)); + OUT_BATCH(0); + OUT_BATCH(((stencil_irb->region->width - 1) << 6) | + (2 * stencil_irb->region->height - 1) << 19); + OUT_BATCH(0); + OUT_BATCH(0); + + if (intel->gen >= 6) + OUT_BATCH(0); + + ADVANCE_BATCH(); + } else { - struct intel_region *region = irb->region; + struct intel_region *region = depth_irb->region; unsigned int format; uint32_t tile_x, tile_y, offset; + /* If using separate stencil, hiz must be enabled. */ + assert(!stencil_irb || hiz_region); + switch (region->cpp) { case 2: format = BRW_DEPTHFORMAT_D16_UNORM; @@ -256,6 +318,8 @@ static void emit_depthbuffer(struct brw_context *brw) case 4: if (intel->depth_buffer_is_float) format = BRW_DEPTHFORMAT_D32_FLOAT; + else if (hiz_region) + format = BRW_DEPTHFORMAT_D24_UNORM_X8_UINT; else format = BRW_DEPTHFORMAT_D24_UNORM_S8_UINT; break; @@ -267,11 +331,14 @@ static void emit_depthbuffer(struct brw_context *brw) offset = intel_region_tile_offsets(region, &tile_x, &tile_y); assert(intel->gen < 6 || region->tiling == I915_TILING_Y); + assert(!hiz_region || region->tiling == I915_TILING_Y); BEGIN_BATCH(len); OUT_BATCH(_3DSTATE_DEPTH_BUFFER << 16 | (len - 2)); OUT_BATCH(((region->pitch * region->cpp) - 1) | (format << 18) | + ((hiz_region ? 1 : 0) << 21) | /* separate stencil enable */ + ((hiz_region ? 1 : 0) << 22) | /* hiz enable */ (BRW_TILEWALK_YMAJOR << 26) | ((region->tiling != I915_TILING_NONE) << 27) | (BRW_SURFACE_2D << 29)); @@ -294,8 +361,37 @@ static void emit_depthbuffer(struct brw_context *brw) ADVANCE_BATCH(); } - /* Initialize it for safety. */ - if (intel->gen >= 6) { + /* Emit hiz buffer. */ + if (hiz_region || stencil_irb) { + BEGIN_BATCH(3); + OUT_BATCH((_3DSTATE_HIER_DEPTH_BUFFER << 16) | (3 - 2)); + OUT_BATCH(hiz_region->pitch * hiz_region->cpp - 1); + OUT_RELOC(hiz_region->buffer, + I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, + 0); + ADVANCE_BATCH(); + } + + /* Emit stencil buffer. */ + if (hiz_region || stencil_irb) { + BEGIN_BATCH(3); + OUT_BATCH((_3DSTATE_STENCIL_BUFFER << 16) | (3 - 2)); + OUT_BATCH(stencil_irb->region->pitch * stencil_irb->region->cpp - 1); + OUT_RELOC(stencil_irb->region->buffer, + I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, + 0); + ADVANCE_BATCH(); + } + + /* + * On Gen >= 6, emit clear params for safety. If using hiz, then clear + * params must be emitted. + * + * From Section 2.11.5.6.4.1 3DSTATE_CLEAR_PARAMS: + * 3DSTATE_CLEAR_PARAMS packet must follow the DEPTH_BUFFER_STATE packet + * when HiZ is enabled and the DEPTH_BUFFER_STATE changes. + */ + if (intel->gen >= 6 || hiz_region) { BEGIN_BATCH(2); OUT_BATCH(_3DSTATE_CLEAR_PARAMS << 16 | (2 - 2)); OUT_BATCH(0); diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 6c1eba69d4b..f560bc3fa66 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -134,6 +134,7 @@ brw_render_target_supported(gl_format format) */ if (format == MESA_FORMAT_S8_Z24 || format == MESA_FORMAT_X8_Z24 || + format == MESA_FORMAT_S8 || format == MESA_FORMAT_Z16) { return true; } @@ -168,6 +169,7 @@ translate_tex_format(gl_format mesa_format, return BRW_SURFACEFORMAT_L16_UNORM; case MESA_FORMAT_S8_Z24: + case MESA_FORMAT_X8_Z24: /* XXX: these different surface formats don't seem to * make any difference for shadow sampler/compares. */ From ff99103c0a8a1b9e76fff80f9753d2124da27da2 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Wed, 1 Jun 2011 11:31:56 -0700 Subject: [PATCH 118/145] intel: Define span functions for S8 renderbuffers Since the stencil buffer is interleaved, the generic Mesa renderbuffer accessors do not suffice. Custom span functions are necessary. Acked-by: Kenneth Graunke Reviewed-by: Eric Anholt Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_span.c | 64 +++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/src/mesa/drivers/dri/intel/intel_span.c b/src/mesa/drivers/dri/intel/intel_span.c index 5290342c3e1..a4a1d6bd6eb 100644 --- a/src/mesa/drivers/dri/intel/intel_span.c +++ b/src/mesa/drivers/dri/intel/intel_span.c @@ -1,6 +1,7 @@ /************************************************************************** * * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas. + * Copyright 2011 Intel Corporation * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a @@ -23,9 +24,13 @@ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * + * Authors: + * Chad Versace + * **************************************************************************/ #include +#include #include "main/glheader.h" #include "main/macros.h" #include "main/mtypes.h" @@ -112,6 +117,64 @@ intel_set_span_functions(struct intel_context *intel, #define TAG2(x,y) intel_##x##y##_A8 #include "spantmp2.h" +/* ------------------------------------------------------------------------- */ +/* s8 stencil span and pixel functions */ +/* ------------------------------------------------------------------------- */ + +/* + * HAVE_HW_STENCIL_SPANS determines if stencil buffer read/writes are done with + * memcpy or for loops. Since the stencil buffer is interleaved, memcpy won't + * work. + */ +#define HAVE_HW_STENCIL_SPANS 0 + +#define LOCAL_STENCIL_VARS \ + (void) ctx; \ + int minx = 0; \ + int miny = 0; \ + int maxx = rb->Width; \ + int maxy = rb->Height; \ + int stride = rb->RowStride; \ + uint8_t *buf = rb->Data; \ + +/* Don't flip y. */ +#undef Y_FLIP +#define Y_FLIP(y) y + +/** + * \brief Get pointer offset into stencil buffer. + * + * The stencil buffer interleaves two rows into one. Yay for crazy hardware. + * The table below demonstrates how the pointer arithmetic behaves for a buffer + * with positive stride (s=stride). + * + * x | y | byte offset + * -------------------------- + * 0 | 0 | 0 + * 0 | 0 | 1 + * 1 | 0 | 2 + * 1 | 1 | 3 + * ... | ... | ... + * 0 | 2 | s + * 0 | 3 | s + 1 + * 1 | 2 | s + 2 + * 1 | 3 | s + 3 + * + * + */ +static inline intptr_t +intel_offset_S8(int stride, GLint x, GLint y) +{ + return 2 * ((y / 2) * stride + x) + y % 2; +} + +#define WRITE_STENCIL(x, y, src) buf[intel_offset_S8(stride, x, y)] = src; +#define READ_STENCIL(dest, x, y) dest = buf[intel_offset_S8(stride, x, y)] +#define TAG(x) intel_##x##_S8 +#include "stenciltmp.h" + +/* ------------------------------------------------------------------------- */ + void intel_renderbuffer_map(struct intel_context *intel, struct gl_renderbuffer *rb) { @@ -332,6 +395,7 @@ static span_init_func intel_span_init_funcs[MESA_FORMAT_COUNT] = [MESA_FORMAT_Z16] = _mesa_set_renderbuffer_accessors, [MESA_FORMAT_X8_Z24] = _mesa_set_renderbuffer_accessors, [MESA_FORMAT_S8_Z24] = _mesa_set_renderbuffer_accessors, + [MESA_FORMAT_S8] = intel_InitStencilPointers_S8, [MESA_FORMAT_R8] = _mesa_set_renderbuffer_accessors, [MESA_FORMAT_RG88] = _mesa_set_renderbuffer_accessors, [MESA_FORMAT_R16] = _mesa_set_renderbuffer_accessors, From 4501a5d6e8d00fd0d87625352ed5ba1a8861f72e Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Thu, 26 May 2011 16:50:30 -0700 Subject: [PATCH 119/145] dri2: Add token for DRI2BufferHiz MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CC: Ian Romanick CC: Kristian Høgsberg Acked-by: Eric Anholt Reviewed-by: Kenneth Graunke Signed-off-by: Chad Versace --- include/GL/internal/dri_interface.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index d79155798bd..f022b44b260 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -692,6 +692,7 @@ struct __DRIswrastExtensionRec { #define __DRI_BUFFER_FAKE_FRONT_LEFT 7 #define __DRI_BUFFER_FAKE_FRONT_RIGHT 8 #define __DRI_BUFFER_DEPTH_STENCIL 9 /**< Only available with DRI2 1.1 */ +#define __DRI_BUFFER_HIZ 10 struct __DRIbufferRec { unsigned int attachment; From df9f533c67e06713ae1b7f759c3644ca610058fd Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Wed, 1 Jun 2011 14:19:29 -0700 Subject: [PATCH 120/145] intel: Define enum intel_dri2_has_hiz MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... which indicates if the X driver supports DRI2BufferHiz and DRI2BufferStencil. I'm placing this in its own commit due to the large comment block. CC: Ian Romanick CC: Kristian Høgsberg Acked-by: Eric Anholt Reviewed-by: Kenneth Graunke Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_screen.h | 56 +++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/src/mesa/drivers/dri/intel/intel_screen.h b/src/mesa/drivers/dri/intel/intel_screen.h index 4613c9858c4..5d13dfba612 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.h +++ b/src/mesa/drivers/dri/intel/intel_screen.h @@ -34,6 +34,62 @@ #include "i915_drm.h" #include "xmlconfig.h" +/** + * \brief Does X driver support DRI2BufferHiz and DRI2BufferStencil? + * + * (Here, "X driver" referes to the DDX driver, xf86-video-intel). + * + * The DRI2 protocol does not allow us to query the X driver's version nor + * query for a list of buffer formats that the driver supports. So, to + * determine if the X driver supports DRI2BufferHiz and DRI2BufferStencil we + * must resort to a handshake. + * + * If the hardware lacks support for separate stencil (and consequently, lacks + * support for hiz also), then the X driver's separate stencil and hiz support + * is irrelevant and the handshake never occurs. + * + * Complications + * ------------- + * The handshake is complicated by a bug in xf86-video-intel 2.15. Even though + * that version of the X driver did not supppot requests for DRI2BufferHiz or + * DRI2BufferStencil, if requested one it still allocated and returned one. + * The returned buffer, however, was incorrectly X tiled. + * + * How the handshake works + * ----------------------- + * (TODO: To be implemented on a future commit). + * + * Initially, intel_screen.dri2_has_hiz is set to unknown. The first time the + * user requests a depth and stencil buffer, intelCreateBuffers() creates a + * framebuffer with separate depth and stencil attachments (with formats + * x8_z24 and s8). + * + * Eventually, intel_update_renderbuffers() makes a DRI2 request for + * DRI2BufferStencil and DRI2BufferHiz. If the returned buffers are Y tiled, + * then we joyfully set intel_screen.dri2_has_hiz to true and continue as if + * nothing happend. + * + * If the buffers are X tiled, however, the handshake has failed and we must + * clean up. + * 1. Angrily set intel_screen.dri2_has_hiz to false. + * 2. Discard the framebuffer's depth and stencil attachments. + * 3. Attach a packed depth/stencil buffer to the framebuffer (with format + * s8_z24). + * 4. Make a DRI2 request for the new buffer, using attachment type + * DRI2BufferDepthStencil). + * + * Future Considerations + * --------------------- + * On a sunny day in the far future, when we are certain that no one has an + * xf86-video-intel installed without hiz and separate stencil support, then + * this enumerant and the handshake should die. + */ +enum intel_dri2_has_hiz { + INTEL_DRI2_HAS_HIZ_UNKNOWN, + INTEL_DRI2_HAS_HIZ_TRUE, + INTEL_DRI2_HAS_HIZ_FALSE, +}; + struct intel_screen { int deviceID; From 6b2bf272ee173bd8ee6c731500861de21fa01b5f Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Thu, 26 May 2011 15:24:48 -0700 Subject: [PATCH 121/145] intel: Add flags to intel_screen for hiz and separate stencil MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add the fields below to intel_screen. The expression in parens is the value to which intelInitScreen2() currently sets the field. GLboolean hw_has_separate_stencil (true iff gen >= 7) GLboolean hw_must_use_separate_stencil (true iff gen >= 7) GLboolean hw_has_hiz (always false) enum intel_dri2_has_hiz dri2_has_hiz (INTEL_DRI2_HAS_HIZ_UNKNOWN) The analogous fields in intel_context now inherit their values from intel_screen. When hiz and separate stencil become completely implemented for a given chipset, then the respective fields need to be enabled. CC: Ian Romanick CC: Kristian Høgsberg Acked-by: Eric Anholt Reviewed-by: Kenneth Graunke Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_context.c | 10 ++-- src/mesa/drivers/dri/intel/intel_screen.c | 60 ++++++++++++++++++++++ src/mesa/drivers/dri/intel/intel_screen.h | 10 ++++ 3 files changed, 73 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index b6a017a876c..22704a30e1c 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -704,14 +704,9 @@ intelInitContext(struct intel_context *intel, if (IS_GEN7(intel->intelScreen->deviceID)) { intel->needs_ff_sync = GL_TRUE; intel->has_luminance_srgb = GL_TRUE; - /* FINISHME: Enable intel->has_separate_stencil on Gen7. */ - /* FINISHME: Enable intel->must_use_separate_stencil on Gen7. */ - /* FINISHME: Enable intel->has_hiz on Gen7. */ } else if (IS_GEN6(intel->intelScreen->deviceID)) { intel->needs_ff_sync = GL_TRUE; intel->has_luminance_srgb = GL_TRUE; - /* FINISHME: Enable intel->has_separate_stencil on Gen6. */ - /* FINISHME: Enable intel->has_hiz on Gen6. */ } else if (IS_GEN5(intel->intelScreen->deviceID)) { intel->needs_ff_sync = GL_TRUE; intel->has_luminance_srgb = GL_TRUE; @@ -731,8 +726,9 @@ intelInitContext(struct intel_context *intel, } } - intel_override_hiz(intel); - intel_override_separate_stencil(intel); + intel->has_separate_stencil = intel->intelScreen->hw_has_separate_stencil; + intel->must_use_separate_stencil = intel->intelScreen->hw_must_use_separate_stencil; + intel->has_hiz = intel->intelScreen->hw_has_hiz; memset(&ctx->TextureFormatSupported, 0, sizeof(ctx->TextureFormatSupported)); diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index deca11d8c34..646b96051d9 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -506,6 +506,54 @@ intel_init_bufmgr(struct intel_screen *intelScreen) return GL_TRUE; } +/** + * Override intel_screen.hw_has_hiz with environment variable INTEL_HIZ. + * + * Valid values for INTEL_HIZ are "0" and "1". If an invalid valid value is + * encountered, a warning is emitted and INTEL_HIZ is ignored. + */ +static void +intel_override_hiz(struct intel_screen *intel) +{ + const char *s = getenv("INTEL_HIZ"); + if (!s) { + return; + } else if (!strncmp("0", s, 2)) { + intel->hw_has_hiz = false; + } else if (!strncmp("1", s, 2)) { + intel->hw_has_hiz = true; + } else { + fprintf(stderr, + "warning: env variable INTEL_HIZ=\"%s\" has invalid value " + "and is ignored", s); + } +} + +/** + * Override intel_screen.hw_has_separate_stencil with environment variable + * INTEL_SEPARATE_STENCIL. + * + * Valid values for INTEL_SEPARATE_STENCIL are "0" and "1". If an invalid + * valid value is encountered, a warning is emitted and INTEL_SEPARATE_STENCIL + * is ignored. + */ +static void +intel_override_separate_stencil(struct intel_screen *screen) +{ + const char *s = getenv("INTEL_SEPARATE_STENCIL"); + if (!s) { + return; + } else if (!strncmp("0", s, 2)) { + screen->hw_has_separate_stencil = false; + } else if (!strncmp("1", s, 2)) { + screen->hw_has_separate_stencil = true; + } else { + fprintf(stderr, + "warning: env variable INTEL_SEPARATE_STENCIL=\"%s\" has " + "invalid value and is ignored", s); + } +} + /** * This is the driver specific part of the createNewScreen entry point. * Called when using DRI2. @@ -570,6 +618,18 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp) intelScreen->gen = 2; } + /* + * FIXME: The hiz and separate stencil fields need updating once the + * FIXME: features are completely implemented for a given chipset. + */ + intelScreen->hw_has_separate_stencil = intelScreen->gen >= 7; + intelScreen->hw_must_use_separate_stencil = intelScreen->gen >= 7; + intelScreen->hw_has_hiz = false; + intelScreen->dri2_has_hiz = INTEL_DRI2_HAS_HIZ_UNKNOWN; + + intel_override_hiz(intelScreen); + intel_override_separate_stencil(intelScreen); + api_mask = (1 << __DRI_API_OPENGL); #if FEATURE_ES1 api_mask |= (1 << __DRI_API_GLES); diff --git a/src/mesa/drivers/dri/intel/intel_screen.h b/src/mesa/drivers/dri/intel/intel_screen.h index 5d13dfba612..b4afae9d62f 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.h +++ b/src/mesa/drivers/dri/intel/intel_screen.h @@ -102,6 +102,16 @@ struct intel_screen GLboolean no_hw; GLuint relaxed_relocations; + /* + * The hardware hiz and separate stencil fields are needed in intel_screen, + * rather than solely in intel_context, because glXCreatePbuffer and + * glXCreatePixmap are not passed a GLXContext. + */ + GLboolean hw_has_separate_stencil; + GLboolean hw_must_use_separate_stencil; + GLboolean hw_has_hiz; + enum intel_dri2_has_hiz dri2_has_hiz; + GLboolean no_vbo; dri_bufmgr *bufmgr; struct _mesa_HashTable *named_regions; From beb8b7da20c862549b96a500226caf3a610342d9 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Wed, 1 Jun 2011 15:14:18 -0700 Subject: [PATCH 122/145] intel/intel_context.c: Remove unused functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove functions intel_override_hiz() and intel_override_separate_stencil(). They are now located in intel_screen.c. CC: Ian Romanick CC: Kristian Høgsberg Acked-by: Eric Anholt Reviewed-by: Kenneth Graunke Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_context.c | 48 ---------------------- 1 file changed, 48 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 22704a30e1c..0259891be34 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -610,54 +610,6 @@ intelInitDriverFunctions(struct dd_function_table *functions) intel_init_syncobj_functions(functions); } -/** - * Override intel->has_hiz with environment variable INTEL_HIZ. - * - * Valid values for INTEL_HIZ are "0" and "1". If an invalid valid value is - * encountered, a warning is emitted and INTEL_HIZ is ignored. - */ -static void -intel_override_hiz(struct intel_context *intel) -{ - const char *s = getenv("INTEL_HIZ"); - if (!s) { - return; - } else if (!strncmp("0", s, 2)) { - intel->has_hiz = false; - } else if (!strncmp("1", s, 2)) { - intel->has_hiz = true; - } else { - _mesa_warning(&intel->ctx, - "env variable INTEL_HIZ=\"%s\" has invalid value and " - "is ignored", s); - } -} - -/** - * Override intel->has_separate_stencil with environment variable - * INTEL_SEPARATE_STENCIL. - * - * Valid values for INTEL_SEPARATE_STENCIL are "0" and "1". If an invalid - * value is encountered, a warning is emitted and INTEL_SEPARATE_STENCIL is - * ignored. - */ -static void -intel_override_separate_stencil(struct intel_context *intel) -{ - const char *s = getenv("INTEL_SEPARATE_STENCIL"); - if (!s) { - return; - } else if (!strncmp("0", s, 2)) { - intel->has_separate_stencil = false; - } else if (!strncmp("1", s, 2)) { - intel->has_separate_stencil = true; - } else { - _mesa_warning(&intel->ctx, - "env variable INTEL_SEPARATE_STENCIL=\"%s\" has invalid " - "value and is ignored", s); - } -} - GLboolean intelInitContext(struct intel_context *intel, int api, From 84294fe26ca5860c34e6541f633be4d093ab57f2 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Tue, 31 May 2011 14:18:22 -0700 Subject: [PATCH 123/145] intel: Add function intel_renderbuffer_set_hiz_region() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's the analog of intel_renderbuffer_set_region(), but for the hiz region of course. CC: Ian Romanick CC: Kristian Høgsberg Acked-by: Eric Anholt Reviewed-by: Kenneth Graunke Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_fbo.c | 12 ++++++++++++ src/mesa/drivers/dri/intel/intel_fbo.h | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c index 7434e0efff6..83f622d437e 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.c +++ b/src/mesa/drivers/dri/intel/intel_fbo.c @@ -321,6 +321,18 @@ intel_renderbuffer_set_region(struct intel_context *intel, } +void +intel_renderbuffer_set_hiz_region(struct intel_context *intel, + struct intel_renderbuffer *rb, + struct intel_region *region) +{ + struct intel_region *old = rb->hiz_region; + rb->hiz_region = NULL; + intel_region_reference(&rb->hiz_region, region); + intel_region_release(&old); +} + + /** * Create a new intel_renderbuffer which corresponds to an on-screen window, * not a user-created renderbuffer. diff --git a/src/mesa/drivers/dri/intel/intel_fbo.h b/src/mesa/drivers/dri/intel/intel_fbo.h index 212dd9aadc8..e9929b095ff 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.h +++ b/src/mesa/drivers/dri/intel/intel_fbo.h @@ -113,6 +113,11 @@ intel_renderbuffer_set_region(struct intel_context *intel, struct intel_renderbuffer *irb, struct intel_region *region); +extern void +intel_renderbuffer_set_hiz_region(struct intel_context *intel, + struct intel_renderbuffer *rb, + struct intel_region *region); + extern struct intel_renderbuffer * intel_create_renderbuffer(gl_format format); From 89d34cfd3e7c96cefc489fbb995124e2dc4a97ec Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Fri, 3 Jun 2011 16:14:25 -0700 Subject: [PATCH 124/145] intel: Refactor intel_update_renderbuffers() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extract the code that queries DRI2 to obtain the DRIdrawable's buffers into intel_query_dri2_buffers_no_separate_stencil(). Extract the code that assigns the DRI buffer's DRM region to the corresponding renderbuffer into intel_process_dri2_buffer_no_separate_stencil(). Rationale --------- The next commit enables intel_update_renderbuffers() to query for separate stencil and hiz buffers. Without separating the separate-stencil and no-separate-stencil paths, intel_update_renderbuffers() degenerates into an impenetrable labyrinth of if-trees. CC: Ian Romanick CC: Kristian Høgsberg Acked-by: Eric Anholt Reviewed-by: Kenneth Graunke Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_context.c | 323 ++++++++++++++------- 1 file changed, 212 insertions(+), 111 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 0259891be34..3460e679e41 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -227,18 +227,27 @@ intel_bits_per_pixel(const struct intel_renderbuffer *rb) return _mesa_get_format_bytes(rb->Base.Format) * 8; } +static void +intel_query_dri2_buffers_no_separate_stencil(struct intel_context *intel, + __DRIdrawable *drawable, + __DRIbuffer **buffers, + int *count); + +static void +intel_process_dri2_buffer_no_separate_stencil(struct intel_context *intel, + __DRIdrawable *drawable, + __DRIbuffer *buffer, + struct intel_renderbuffer *rb, + const char *buffer_name); + void intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) { struct gl_framebuffer *fb = drawable->driverPrivate; struct intel_renderbuffer *rb; - struct intel_region *region, *depth_region; struct intel_context *intel = context->driverPrivate; - struct intel_renderbuffer *front_rb, *back_rb, *depth_rb, *stencil_rb; __DRIbuffer *buffers = NULL; - __DRIscreen *screen; int i, count; - unsigned int attachments[10]; const char *region_name; /* If we're rendering to the fake front buffer, make sure all the @@ -260,70 +269,12 @@ intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) if (unlikely(INTEL_DEBUG & DEBUG_DRI)) fprintf(stderr, "enter %s, drawable %p\n", __func__, drawable); - screen = intel->intelScreen->driScrnPriv; - - if (screen->dri2.loader - && (screen->dri2.loader->base.version > 2) - && (screen->dri2.loader->getBuffersWithFormat != NULL)) { - - front_rb = intel_get_renderbuffer(fb, BUFFER_FRONT_LEFT); - back_rb = intel_get_renderbuffer(fb, BUFFER_BACK_LEFT); - depth_rb = intel_get_renderbuffer(fb, BUFFER_DEPTH); - stencil_rb = intel_get_renderbuffer(fb, BUFFER_STENCIL); - - i = 0; - if ((intel->is_front_buffer_rendering || - intel->is_front_buffer_reading || - !back_rb) && front_rb) { - attachments[i++] = __DRI_BUFFER_FRONT_LEFT; - attachments[i++] = intel_bits_per_pixel(front_rb); - } - - if (back_rb) { - attachments[i++] = __DRI_BUFFER_BACK_LEFT; - attachments[i++] = intel_bits_per_pixel(back_rb); - } - - if ((depth_rb != NULL) && (stencil_rb != NULL)) { - attachments[i++] = __DRI_BUFFER_DEPTH_STENCIL; - attachments[i++] = intel_bits_per_pixel(depth_rb); - } else if (depth_rb != NULL) { - attachments[i++] = __DRI_BUFFER_DEPTH; - attachments[i++] = intel_bits_per_pixel(depth_rb); - } else if (stencil_rb != NULL) { - attachments[i++] = __DRI_BUFFER_STENCIL; - attachments[i++] = intel_bits_per_pixel(stencil_rb); - } - - buffers = - (*screen->dri2.loader->getBuffersWithFormat)(drawable, - &drawable->w, - &drawable->h, - attachments, i / 2, - &count, - drawable->loaderPrivate); - } else if (screen->dri2.loader) { - i = 0; - if (intel_get_renderbuffer(fb, BUFFER_FRONT_LEFT)) - attachments[i++] = __DRI_BUFFER_FRONT_LEFT; - if (intel_get_renderbuffer(fb, BUFFER_BACK_LEFT)) - attachments[i++] = __DRI_BUFFER_BACK_LEFT; - if (intel_get_renderbuffer(fb, BUFFER_DEPTH)) - attachments[i++] = __DRI_BUFFER_DEPTH; - if (intel_get_renderbuffer(fb, BUFFER_STENCIL)) - attachments[i++] = __DRI_BUFFER_STENCIL; - - buffers = (*screen->dri2.loader->getBuffers)(drawable, - &drawable->w, - &drawable->h, - attachments, i, - &count, - drawable->loaderPrivate); - } - if (buffers == NULL) return; + intel_query_dri2_buffers_no_separate_stencil(intel, drawable, &buffers, + &count); + drawable->x = 0; drawable->y = 0; drawable->backX = 0; @@ -339,7 +290,6 @@ intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) drawable->pBackClipRects[0].x2 = drawable->w; drawable->pBackClipRects[0].y2 = drawable->h; - depth_region = NULL; for (i = 0; i < count; i++) { switch (buffers[i].attachment) { case __DRI_BUFFER_FRONT_LEFT: @@ -380,51 +330,9 @@ intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) return; } - if (rb == NULL) - continue; - - if (rb->region && rb->region->name == buffers[i].name) - continue; - - if (unlikely(INTEL_DEBUG & DEBUG_DRI)) - fprintf(stderr, - "attaching buffer %d, at %d, cpp %d, pitch %d\n", - buffers[i].name, buffers[i].attachment, - buffers[i].cpp, buffers[i].pitch); - - if (buffers[i].attachment == __DRI_BUFFER_STENCIL && depth_region) { - if (unlikely(INTEL_DEBUG & DEBUG_DRI)) - fprintf(stderr, "(reusing depth buffer as stencil)\n"); - intel_region_reference(®ion, depth_region); - } - else - region = intel_region_alloc_for_handle(intel->intelScreen, - buffers[i].cpp, - drawable->w, - drawable->h, - buffers[i].pitch / buffers[i].cpp, - buffers[i].name, - region_name); - - if (buffers[i].attachment == __DRI_BUFFER_DEPTH) - depth_region = region; - - intel_renderbuffer_set_region(intel, rb, region); - intel_region_release(®ion); - - if (buffers[i].attachment == __DRI_BUFFER_DEPTH_STENCIL) { - rb = intel_get_renderbuffer(fb, BUFFER_STENCIL); - if (rb != NULL) { - struct intel_region *stencil_region = NULL; - - if (rb->region && rb->region->name == buffers[i].name) - continue; - - intel_region_reference(&stencil_region, region); - intel_renderbuffer_set_region(intel, rb, stencil_region); - intel_region_release(&stencil_region); - } - } + intel_process_dri2_buffer_no_separate_stencil(intel, drawable, + &buffers[i], rb, + region_name); } driUpdateFramebufferSize(&intel->ctx, drawable); @@ -1023,3 +931,196 @@ intelMakeCurrent(__DRIcontext * driContextPriv, return GL_TRUE; } + +/** + * \brief Query DRI2 to obtain a DRIdrawable's buffers. + * + * To determine which DRI buffers to request, examine the renderbuffers + * attached to the drawable's framebuffer. Then request the buffers with + * DRI2GetBuffers() or DRI2GetBuffersWithFormat(). + * + * This is called from intel_update_renderbuffers(). It is used only if either + * the hardware or the X driver lacks separate stencil support. + * + * \param drawable Drawable whose buffers are queried. + * \param buffers [out] List of buffers returned by DRI2 query. + * \param buffer_count [out] Number of buffers returned. + * + * \see intel_update_renderbuffers() + * \see DRI2GetBuffers() + * \see DRI2GetBuffersWithFormat() + */ +static void +intel_query_dri2_buffers_no_separate_stencil(struct intel_context *intel, + __DRIdrawable *drawable, + __DRIbuffer **buffers, + int *buffer_count) +{ + assert(!intel->must_use_separate_stencil); + + __DRIscreen *screen = intel->intelScreen->driScrnPriv; + struct gl_framebuffer *fb = drawable->driverPrivate; + + if (screen->dri2.loader + && screen->dri2.loader->base.version > 2 + && screen->dri2.loader->getBuffersWithFormat != NULL) { + + int i = 0; + const int max_attachments = 4; + unsigned *attachments = calloc(2 * max_attachments, sizeof(unsigned)); + + struct intel_renderbuffer *front_rb; + struct intel_renderbuffer *back_rb; + struct intel_renderbuffer *depth_rb; + struct intel_renderbuffer *stencil_rb; + + front_rb = intel_get_renderbuffer(fb, BUFFER_FRONT_LEFT); + back_rb = intel_get_renderbuffer(fb, BUFFER_BACK_LEFT); + depth_rb = intel_get_renderbuffer(fb, BUFFER_DEPTH); + stencil_rb = intel_get_renderbuffer(fb, BUFFER_STENCIL); + + if ((intel->is_front_buffer_rendering || + intel->is_front_buffer_reading || + !back_rb) && front_rb) { + attachments[i++] = __DRI_BUFFER_FRONT_LEFT; + attachments[i++] = intel_bits_per_pixel(front_rb); + } + + if (back_rb) { + attachments[i++] = __DRI_BUFFER_BACK_LEFT; + attachments[i++] = intel_bits_per_pixel(back_rb); + } + + if (depth_rb && stencil_rb) { + attachments[i++] = __DRI_BUFFER_DEPTH_STENCIL; + attachments[i++] = intel_bits_per_pixel(depth_rb); + } else if (depth_rb) { + attachments[i++] = __DRI_BUFFER_DEPTH; + attachments[i++] = intel_bits_per_pixel(depth_rb); + } else if (stencil_rb) { + attachments[i++] = __DRI_BUFFER_STENCIL; + attachments[i++] = intel_bits_per_pixel(stencil_rb); + } + + assert(i <= 2 * max_attachments); + + *buffers = screen->dri2.loader->getBuffersWithFormat(drawable, + &drawable->w, + &drawable->h, + attachments, i / 2, + buffer_count, + drawable->loaderPrivate); + free(attachments); + + } else if (screen->dri2.loader) { + + int i = 0; + const int max_attachments = 4; + unsigned *attachments = calloc(max_attachments, sizeof(unsigned)); + + if (intel_get_renderbuffer(fb, BUFFER_FRONT_LEFT)) + attachments[i++] = __DRI_BUFFER_FRONT_LEFT; + if (intel_get_renderbuffer(fb, BUFFER_BACK_LEFT)) + attachments[i++] = __DRI_BUFFER_BACK_LEFT; + if (intel_get_renderbuffer(fb, BUFFER_DEPTH)) + attachments[i++] = __DRI_BUFFER_DEPTH; + if (intel_get_renderbuffer(fb, BUFFER_STENCIL)) + attachments[i++] = __DRI_BUFFER_STENCIL; + + assert(i <= max_attachments); + + *buffers = screen->dri2.loader->getBuffersWithFormat(drawable, + &drawable->w, + &drawable->h, + attachments, i, + buffer_count, + drawable->loaderPrivate); + free(attachments); + + } else { + *buffers = NULL; + *buffer_count = 0; + } +} + +/** + * \brief Assign a DRI buffer's DRM region to a renderbuffer. + * + * This is called from intel_update_renderbuffers(). It is used only if + * either the hardware or the X driver lacks separate stencil support. + * + * \par Note: + * DRI buffers whose attachment point is DRI2BufferStencil or + * DRI2BufferDepthStencil are handled as special cases. + * + * \param buffer_name is a human readable name, such as "dri2 front buffer", + * that is passed to intel_region_alloc_for_handle(). + * + * \see intel_update_renderbuffers() + * \see intel_region_alloc_for_handle() + * \see intel_renderbuffer_set_region() + */ +static void +intel_process_dri2_buffer_no_separate_stencil(struct intel_context *intel, + __DRIdrawable *drawable, + __DRIbuffer *buffer, + struct intel_renderbuffer *rb, + const char *buffer_name) +{ + assert(!intel->must_use_separate_stencil); + + struct gl_framebuffer *fb = drawable->driverPrivate; + struct intel_region *region = NULL; + struct intel_renderbuffer *depth_rb = NULL; + + if (!rb) + return; + + if (rb->region && rb->region->name == buffer->name) + return; + + if (unlikely(INTEL_DEBUG & DEBUG_DRI)) { + fprintf(stderr, + "attaching buffer %d, at %d, cpp %d, pitch %d\n", + buffer->name, buffer->attachment, + buffer->cpp, buffer->pitch); + } + + bool identify_depth_and_stencil = false; + if (buffer->attachment == __DRI_BUFFER_STENCIL) { + struct intel_renderbuffer *depth_rb = + intel_get_renderbuffer(fb, BUFFER_DEPTH); + identify_depth_and_stencil = depth_rb && depth_rb->region; + } + + if (identify_depth_and_stencil) { + if (unlikely(INTEL_DEBUG & DEBUG_DRI)) { + fprintf(stderr, "(reusing depth buffer as stencil)\n"); + } + intel_region_reference(®ion, depth_rb->region); + } else { + region = intel_region_alloc_for_handle(intel->intelScreen, + buffer->cpp, + drawable->w, + drawable->h, + buffer->pitch / buffer->cpp, + buffer->name, + buffer_name); + } + + intel_renderbuffer_set_region(intel, rb, region); + intel_region_release(®ion); + + if (buffer->attachment == __DRI_BUFFER_DEPTH_STENCIL) { + struct intel_renderbuffer *stencil_rb = + intel_get_renderbuffer(fb, BUFFER_STENCIL); + + if (!stencil_rb) + return; + + if (stencil_rb->region && stencil_rb->region->name == buffer->name) + return; + + intel_renderbuffer_set_region(intel, stencil_rb, region); + } +} From f4efb7ff4f9cb0f6386e9b53f4dcfd9ef23dc9d1 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Thu, 26 May 2011 14:55:54 -0700 Subject: [PATCH 125/145] intel: Add assertions to intelCreateBuffer() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Assert that the GLX config has an expected depth/stencil bit combination: one of d24/s8, d16/s0, d0/s0. These are the only depth/stencil configurations that we advertise. Remove the check for software stencil, because given the assertions' constraints the check always fails. CC: Ian Romanick CC: Kristian Høgsberg Acked-by: Eric Anholt Reviewed-by: Kenneth Graunke Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_screen.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 646b96051d9..21dc8dc0930 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -364,8 +364,6 @@ intelCreateBuffer(__DRIscreen * driScrnPriv, return GL_FALSE; /* not implemented */ } else { - GLboolean swStencil = (mesaVis->stencilBits > 0 && - mesaVis->depthBits != 24); gl_format rgbFormat; struct gl_framebuffer *fb = CALLOC_STRUCT(gl_framebuffer); @@ -391,6 +389,11 @@ intelCreateBuffer(__DRIscreen * driScrnPriv, _mesa_add_renderbuffer(fb, BUFFER_BACK_LEFT, &rb->Base); } + /* + * Assert here that the gl_config has an expected depth/stencil bit + * combination: one of d24/s8, d16/s0, d0/s0. (See intelInitScreen2(), + * which constructs the advertised configs.) + */ if (mesaVis->depthBits == 24) { assert(mesaVis->stencilBits == 8); /* combined depth/stencil buffer */ @@ -401,17 +404,23 @@ intelCreateBuffer(__DRIscreen * driScrnPriv, _mesa_add_renderbuffer(fb, BUFFER_STENCIL, &depthStencilRb->Base); } else if (mesaVis->depthBits == 16) { + assert(mesaVis->stencilBits == 0); /* just 16-bit depth buffer, no hw stencil */ struct intel_renderbuffer *depthRb = intel_create_renderbuffer(MESA_FORMAT_Z16); _mesa_add_renderbuffer(fb, BUFFER_DEPTH, &depthRb->Base); } + else { + assert(mesaVis->depthBits == 0); + assert(mesaVis->stencilBits == 0); + } /* now add any/all software-based renderbuffers we may need */ _mesa_add_soft_renderbuffers(fb, GL_FALSE, /* never sw color */ GL_FALSE, /* never sw depth */ - swStencil, mesaVis->accumRedBits > 0, + GL_FALSE, /* never sw stencil */ + mesaVis->accumRedBits > 0, GL_FALSE, /* never sw alpha */ GL_FALSE /* never sw aux */ ); driDrawPriv->driverPrivate = fb; From aea2236af60aee329e6ea73a41f2410d8eacc7b6 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Fri, 3 Jun 2011 16:33:32 -0700 Subject: [PATCH 126/145] intel: Request DRI2 buffers for separate stencil and hiz MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When it is sensible to do so, 1) intelCreateBuffer() now attaches separate depth and stencil buffers to the framebuffer it creates. 2) intel_update_renderbuffers() requests for the framebuffer a separate stencil buffer (DRI2BufferStencil). The criteria for "sensible" is: - The GLX config has nonzero depth and stencil bits. - The hardware supports separate stencil. - The X driver supports separate stencil, or its support has not yet been determined. If the hardware supports hiz too, then intel_update_renderbuffers() also requests DRI2BufferHiz. If after requesting DRI2BufferStencil we determine that X driver did not actually support separate stencil, we clean up the mistake and never ask for DRI2BufferStencil again. CC: Ian Romanick CC: Kristian Høgsberg Acked-by: Eric Anholt Reviewed-by: Kenneth Graunke Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_context.c | 428 ++++++++++++++++++++- src/mesa/drivers/dri/intel/intel_screen.c | 28 +- src/mesa/drivers/dri/intel/intel_screen.h | 2 - 3 files changed, 444 insertions(+), 14 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 3460e679e41..0c2ba413ad7 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -33,6 +33,7 @@ #include "main/framebuffer.h" #include "main/imports.h" #include "main/points.h" +#include "main/renderbuffer.h" #include "swrast/swrast.h" #include "swrast_setup/swrast_setup.h" @@ -240,6 +241,26 @@ intel_process_dri2_buffer_no_separate_stencil(struct intel_context *intel, struct intel_renderbuffer *rb, const char *buffer_name); +static void +intel_query_dri2_buffers_with_separate_stencil(struct intel_context *intel, + __DRIdrawable *drawable, + __DRIbuffer **buffers, + unsigned **attachments, + int *count); + +static void +intel_process_dri2_buffer_with_separate_stencil(struct intel_context *intel, + __DRIdrawable *drawable, + __DRIbuffer *buffer, + struct intel_renderbuffer *rb, + const char *buffer_name); +static void +intel_verify_dri2_has_hiz(struct intel_context *intel, + __DRIdrawable *drawable, + __DRIbuffer **buffers, + unsigned **attachments, + int *count); + void intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) { @@ -247,9 +268,19 @@ intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) struct intel_renderbuffer *rb; struct intel_context *intel = context->driverPrivate; __DRIbuffer *buffers = NULL; + unsigned *attachments = NULL; int i, count; const char *region_name; + bool try_separate_stencil = + intel->has_separate_stencil && + intel->intelScreen->dri2_has_hiz != INTEL_DRI2_HAS_HIZ_FALSE && + intel->intelScreen->driScrnPriv->dri2.loader != NULL && + intel->intelScreen->driScrnPriv->dri2.loader->base.version > 2 && + intel->intelScreen->driScrnPriv->dri2.loader->getBuffersWithFormat != NULL; + + assert(!intel->must_use_separate_stencil || try_separate_stencil); + /* If we're rendering to the fake front buffer, make sure all the * pending drawing has landed on the real front buffer. Otherwise * when we eventually get to DRI2GetBuffersWithFormat the stale @@ -269,12 +300,17 @@ intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) if (unlikely(INTEL_DEBUG & DEBUG_DRI)) fprintf(stderr, "enter %s, drawable %p\n", __func__, drawable); + if (try_separate_stencil) { + intel_query_dri2_buffers_with_separate_stencil(intel, drawable, &buffers, + &attachments, &count); + } else { + intel_query_dri2_buffers_no_separate_stencil(intel, drawable, &buffers, + &count); + } + if (buffers == NULL) return; - intel_query_dri2_buffers_no_separate_stencil(intel, drawable, &buffers, - &count); - drawable->x = 0; drawable->y = 0; drawable->backX = 0; @@ -312,6 +348,12 @@ intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) region_name = "dri2 depth buffer"; break; + case __DRI_BUFFER_HIZ: + /* The hiz region resides in the depth renderbuffer. */ + rb = intel_get_renderbuffer(fb, BUFFER_DEPTH); + region_name = "dri2 hiz buffer"; + break; + case __DRI_BUFFER_DEPTH_STENCIL: rb = intel_get_renderbuffer(fb, BUFFER_DEPTH); region_name = "dri2 depth / stencil buffer"; @@ -330,11 +372,26 @@ intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) return; } - intel_process_dri2_buffer_no_separate_stencil(intel, drawable, - &buffers[i], rb, - region_name); + if (try_separate_stencil) { + intel_process_dri2_buffer_with_separate_stencil(intel, drawable, + &buffers[i], rb, + region_name); + } else { + intel_process_dri2_buffer_no_separate_stencil(intel, drawable, + &buffers[i], rb, + region_name); + } } + if (try_separate_stencil + && intel->intelScreen->dri2_has_hiz == INTEL_DRI2_HAS_HIZ_UNKNOWN) { + intel_verify_dri2_has_hiz(intel, drawable, &buffers, &attachments, + &count); + } + + if (attachments) + free(attachments); + driUpdateFramebufferSize(&intel->ctx, drawable); } @@ -1124,3 +1181,362 @@ intel_process_dri2_buffer_no_separate_stencil(struct intel_context *intel, intel_renderbuffer_set_region(intel, stencil_rb, region); } } + +/** + * \brief Query DRI2 to obtain a DRIdrawable's buffers. + * + * To determine which DRI buffers to request, examine the renderbuffers + * attached to the drawable's framebuffer. Then request the buffers with + * DRI2GetBuffersWithFormat(). + * + * This is called from intel_update_renderbuffers(). It is used when 1) the + * hardware supports separate stencil and 2) the X driver's separate stencil + * support has been verified to work or is still unknown. + * + * \param drawable Drawable whose buffers are queried. + * \param buffers [out] List of buffers returned by DRI2 query. + * \param buffer_count [out] Number of buffers returned. + * \param attachments [out] List of pairs (attachment_point, bits_per_pixel) + * that were submitted in the DRI2 query. Number of pairs + * is same as buffer_count. + * + * \see intel_update_renderbuffers() + * \see DRI2GetBuffersWithFormat() + * \see enum intel_dri2_has_hiz + */ +static void +intel_query_dri2_buffers_with_separate_stencil(struct intel_context *intel, + __DRIdrawable *drawable, + __DRIbuffer **buffers, + unsigned **attachments, + int *count) +{ + assert(intel->has_separate_stencil); + + __DRIscreen *screen = intel->intelScreen->driScrnPriv; + struct gl_framebuffer *fb = drawable->driverPrivate; + + const int max_attachments = 5; + int i = 0; + + *attachments = calloc(2 * max_attachments, sizeof(unsigned)); + if (!*attachments) { + *buffers = NULL; + *count = 0; + return; + } + + struct intel_renderbuffer *front_rb; + struct intel_renderbuffer *back_rb; + struct intel_renderbuffer *depth_rb; + struct intel_renderbuffer *stencil_rb; + + front_rb = intel_get_renderbuffer(fb, BUFFER_FRONT_LEFT); + back_rb = intel_get_renderbuffer(fb, BUFFER_BACK_LEFT); + depth_rb = intel_get_renderbuffer(fb, BUFFER_DEPTH); + stencil_rb = intel_get_renderbuffer(fb, BUFFER_STENCIL); + + if ((intel->is_front_buffer_rendering || + intel->is_front_buffer_reading || + !back_rb) && front_rb) { + (*attachments)[i++] = __DRI_BUFFER_FRONT_LEFT; + (*attachments)[i++] = intel_bits_per_pixel(front_rb); + } + + if (back_rb) { + (*attachments)[i++] = __DRI_BUFFER_BACK_LEFT; + (*attachments)[i++] = intel_bits_per_pixel(back_rb); + } + + /* + * We request a separate stencil buffer, and perhaps a hiz buffer too, even + * if we do not yet know if the X driver supports it. See the comments for + * 'enum intel_dri2_has_hiz'. + */ + + if (depth_rb) { + (*attachments)[i++] = __DRI_BUFFER_DEPTH; + (*attachments)[i++] = intel_bits_per_pixel(depth_rb); + + if (intel->vtbl.is_hiz_depth_format(intel, depth_rb->Base.Format)) { + /* Depth and hiz buffer have same bpp. */ + (*attachments)[i++] = __DRI_BUFFER_HIZ; + (*attachments)[i++] = intel_bits_per_pixel(depth_rb); + } + } + + if (stencil_rb) { + assert(stencil_rb->Base.Format == MESA_FORMAT_S8); + (*attachments)[i++] = __DRI_BUFFER_STENCIL; + (*attachments)[i++] = intel_bits_per_pixel(stencil_rb); + } + + assert(i <= 2 * max_attachments); + + *buffers = screen->dri2.loader->getBuffersWithFormat(drawable, + &drawable->w, + &drawable->h, + *attachments, i / 2, + count, + drawable->loaderPrivate); + + if (!*buffers) { + free(*attachments); + *attachments = NULL; + *count = 0; + } +} + +/** + * \brief Assign a DRI buffer's DRM region to a renderbuffer. + * + * This is called from intel_update_renderbuffers(). It is used when 1) the + * hardware supports separate stencil and 2) the X driver's separate stencil + * support has been verified to work or is still unknown. + * + * \par Note: + * DRI buffers whose attachment point is DRI2BufferStencil or DRI2BufferHiz + * are handled as special cases. + * + * \param buffer_name is a human readable name, such as "dri2 front buffer", + * that is passed to intel_region_alloc_for_handle(). + * + * \see intel_update_renderbuffers() + * \see intel_region_alloc_for_handle() + * \see intel_renderbuffer_set_region() + * \see enum intel_dri2_has_hiz + */ +static void +intel_process_dri2_buffer_with_separate_stencil(struct intel_context *intel, + __DRIdrawable *drawable, + __DRIbuffer *buffer, + struct intel_renderbuffer *rb, + const char *buffer_name) +{ + assert(intel->has_separate_stencil); + assert(buffer->attachment != __DRI_BUFFER_DEPTH_STENCIL); + + if (!rb) + return; + + /* If the renderbuffer's and DRIbuffer's regions match, then continue. */ + if ((buffer->attachment != __DRI_BUFFER_HIZ && + rb->region && + rb->region->name == buffer->name) || + (buffer->attachment == __DRI_BUFFER_HIZ && + rb->hiz_region && + rb->hiz_region->name == buffer->name)) { + return; + } + + if (unlikely(INTEL_DEBUG & DEBUG_DRI)) { + fprintf(stderr, + "attaching buffer %d, at %d, cpp %d, pitch %d\n", + buffer->name, buffer->attachment, + buffer->cpp, buffer->pitch); + } + + /* + * The stencil buffer has quirky pitch requirements. From Section + * 2.11.5.6.2.1 3DSTATE_STENCIL_BUFFER, field "Surface Pitch": + * The pitch must be set to 2x the value computed based on width, as + * the stencil buffer is stored with two rows interleaved. + * If we neglect to double the pitch, then drm_intel_gem_bo_map_gtt() + * maps the memory incorrectly. + * + * To satisfy the pitch requirement, the X driver hackishly allocated + * the gem buffer with bpp doubled and height halved. So buffer->cpp is + * correct, but drawable->height is not. + */ + int buffer_height = drawable->h; + if (buffer->attachment == __DRI_BUFFER_STENCIL) { + buffer_height /= 2; + } + + struct intel_region *region = + intel_region_alloc_for_handle(intel->intelScreen, + buffer->cpp, + drawable->w, + buffer_height, + buffer->pitch / buffer->cpp, + buffer->name, + buffer_name); + + if (buffer->attachment == __DRI_BUFFER_HIZ) { + intel_renderbuffer_set_hiz_region(intel, rb, region); + } else { + intel_renderbuffer_set_region(intel, rb, region); + } + + intel_region_release(®ion); +} + +/** + * \brief Verify that the X driver supports hiz and separate stencil. + * + * This implements the cleanup stage of the handshake described in the + * comments for 'enum intel_dri2_has_hiz'. + * + * This should be called from intel_update_renderbuffers() after 1) the + * DRIdrawable has been queried for its buffers via DRI2GetBuffersWithFormat() + * and 2) the DRM region of each returned DRIbuffer has been assigned to the + * appropriate intel_renderbuffer. Furthermore, this should be called *only* + * when 1) intel_update_renderbuffers() tried to used the X driver's separate + * stencil functionality and 2) it has not yet been determined if the X driver + * supports separate stencil. + * + * If we determine that the X driver does have support, then we set + * intel_screen.dri2_has_hiz to true and return. + * + * If we determine that the X driver lacks support, and we requested + * a DRI2BufferDepth and DRI2BufferStencil, then we must remedy the mistake by + * taking the following actions: + * 1. Discard the framebuffer's stencil and depth renderbuffers. + * 2. Create a combined depth/stencil renderbuffer and attach + * it to the framebuffer's depth and stencil attachment points. + * 3. Query the drawable for a new set of buffers, which consists of the + * originally requested set plus DRI2BufferDepthStencil. + * 4. Assign the DRI2BufferDepthStencil's DRM region to the new + * depth/stencil renderbuffer. + * + * \pre intel->intelScreen->dri2_has_hiz == INTEL_DRI2_HAS_HIZ_UNKNOWN + * + * \param drawable Drawable whose buffers were queried. + * + * \param buffers [in/out] As input, the buffer list returned by the + * original DRI2 query. As output, the current buffer + * list, which may have been altered by a new DRI2 query. + * + * \param attachments [in/out] As input, the attachment list submitted + * in the original DRI2 query. As output, the attachment + * list that was submitted in the DRI2 query that + * obtained the current buffer list, as returned in the + * output parameter \c buffers. (Note: If no new query + * was made, then the list remains unaltered). + * + * \param count [out] Number of buffers in the current buffer list, as + * returned in the output parameter \c buffers. + * + * \see enum intel_dri2_has_hiz + * \see struct intel_screen::dri2_has_hiz + * \see intel_update_renderbuffers + */ +static void +intel_verify_dri2_has_hiz(struct intel_context *intel, + __DRIdrawable *drawable, + __DRIbuffer **buffers, + unsigned **attachments, + int *count) +{ + assert(intel->intelScreen->dri2_has_hiz == INTEL_DRI2_HAS_HIZ_UNKNOWN); + + struct gl_framebuffer *fb = drawable->driverPrivate; + struct intel_renderbuffer *stencil_rb = + intel_get_renderbuffer(fb, BUFFER_STENCIL); + + if (stencil_rb) { + /* + * We requested a DRI2BufferStencil without knowing if the X driver + * supports it. Now, check if X handled the request correctly and clean + * up if it did not. (See comments for 'enum intel_dri2_has_hiz'). + */ + struct intel_renderbuffer *depth_rb = + intel_get_renderbuffer(fb, BUFFER_DEPTH); + assert(stencil_rb->Base.Format == MESA_FORMAT_S8); + assert(depth_rb && depth_rb->Base.Format == MESA_FORMAT_X8_Z24); + + if (stencil_rb->region->tiling == I915_TILING_Y) { + intel->intelScreen->dri2_has_hiz = INTEL_DRI2_HAS_HIZ_TRUE; + return; + } else { + /* + * Oops... the screen doesn't support separate stencil. Discard the + * separate depth and stencil buffers and replace them with + * a combined depth/stencil buffer. Discard the hiz buffer too. + */ + intel->intelScreen->dri2_has_hiz = INTEL_DRI2_HAS_HIZ_FALSE; + + /* 1. Discard depth and stencil renderbuffers. */ + _mesa_remove_renderbuffer(fb, BUFFER_DEPTH); + depth_rb = NULL; + _mesa_remove_renderbuffer(fb, BUFFER_STENCIL); + stencil_rb = NULL; + + /* 2. Create new depth/stencil renderbuffer. */ + struct intel_renderbuffer *depth_stencil_rb = + intel_create_renderbuffer(MESA_FORMAT_S8_Z24); + _mesa_add_renderbuffer(fb, BUFFER_DEPTH, &depth_stencil_rb->Base); + _mesa_add_renderbuffer(fb, BUFFER_STENCIL, &depth_stencil_rb->Base); + + /* 3. Append DRI2BufferDepthStencil to attachment list. */ + int old_count = *count; + unsigned int *old_attachments = *attachments; + *count = old_count + 1; + *attachments = malloc(2 * (*count) * sizeof(unsigned)); + memcpy(*attachments, old_attachments, 2 * old_count * sizeof(unsigned)); + free(old_attachments); + (*attachments)[2 * old_count + 0] = __DRI_BUFFER_DEPTH_STENCIL; + (*attachments)[2 * old_count + 1] = intel_bits_per_pixel(depth_stencil_rb); + + /* 4. Request new set of DRI2 attachments. */ + __DRIscreen *screen = intel->intelScreen->driScrnPriv; + *buffers = screen->dri2.loader->getBuffersWithFormat(drawable, + &drawable->w, + &drawable->h, + *attachments, + *count, + count, + drawable->loaderPrivate); + if (!*buffers) + return; + + /* + * I don't know how to recover from the failure assertion below. + * Rather than fail gradually and unexpectedly, we should just die + * now. + */ + assert(*count == old_count + 1); + + /* 5. Assign the DRI buffer's DRM region to the its renderbuffers. */ + __DRIbuffer *depth_stencil_buffer = NULL; + for (int i = 0; i < *count; ++i) { + if ((*buffers)[i].attachment == __DRI_BUFFER_DEPTH_STENCIL) { + depth_stencil_buffer = &(*buffers)[i]; + break; + } + } + struct intel_region *region = + intel_region_alloc_for_handle(intel->intelScreen, + depth_stencil_buffer->cpp, + drawable->w, + drawable->h, + depth_stencil_buffer->pitch + / depth_stencil_buffer->cpp, + depth_stencil_buffer->name, + "dri2 depth / stencil buffer"); + intel_renderbuffer_set_region(intel, + intel_get_renderbuffer(fb, BUFFER_DEPTH), + region); + intel_renderbuffer_set_region(intel, + intel_get_renderbuffer(fb, BUFFER_STENCIL), + region); + intel_region_release(®ion); + } + } + + if (intel_framebuffer_has_hiz(fb)) { + /* + * In the future, the driver may advertise a GL config with hiz + * compatible depth bits and 0 stencil bits (for example, when the + * driver gains support for float32 depth buffers). When that day comes, + * here we need to verify that the X driver does in fact support hiz and + * clean up if it doesn't. + * + * Presently, however, no verification or clean up is necessary, and + * execution should not reach here. If the framebuffer still has a hiz + * region, then we have already set dri2_has_hiz to true after + * confirming above that the stencil buffer is Y tiled. + */ + assert(0); + } +} diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c index 21dc8dc0930..e915ca04fe0 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.c +++ b/src/mesa/drivers/dri/intel/intel_screen.c @@ -359,6 +359,7 @@ intelCreateBuffer(__DRIscreen * driScrnPriv, const struct gl_config * mesaVis, GLboolean isPixmap) { struct intel_renderbuffer *rb; + struct intel_screen *screen = (struct intel_screen*) driScrnPriv->private; if (isPixmap) { return GL_FALSE; /* not implemented */ @@ -396,12 +397,27 @@ intelCreateBuffer(__DRIscreen * driScrnPriv, */ if (mesaVis->depthBits == 24) { assert(mesaVis->stencilBits == 8); - /* combined depth/stencil buffer */ - struct intel_renderbuffer *depthStencilRb - = intel_create_renderbuffer(MESA_FORMAT_S8_Z24); - /* note: bind RB to two attachment points */ - _mesa_add_renderbuffer(fb, BUFFER_DEPTH, &depthStencilRb->Base); - _mesa_add_renderbuffer(fb, BUFFER_STENCIL, &depthStencilRb->Base); + + if (screen->hw_has_separate_stencil + && screen->dri2_has_hiz != INTEL_DRI2_HAS_HIZ_FALSE) { + /* + * Request a separate stencil buffer even if we do not yet know if + * the screen supports it. (See comments for + * enum intel_dri2_has_hiz). + */ + rb = intel_create_renderbuffer(MESA_FORMAT_X8_Z24); + _mesa_add_renderbuffer(fb, BUFFER_DEPTH, &rb->Base); + rb = intel_create_renderbuffer(MESA_FORMAT_S8); + _mesa_add_renderbuffer(fb, BUFFER_STENCIL, &rb->Base); + } else { + /* + * Use combined depth/stencil. Note that the renderbuffer is + * attached to two attachment points. + */ + rb = intel_create_renderbuffer(MESA_FORMAT_S8_Z24); + _mesa_add_renderbuffer(fb, BUFFER_DEPTH, &rb->Base); + _mesa_add_renderbuffer(fb, BUFFER_STENCIL, &rb->Base); + } } else if (mesaVis->depthBits == 16) { assert(mesaVis->stencilBits == 0); diff --git a/src/mesa/drivers/dri/intel/intel_screen.h b/src/mesa/drivers/dri/intel/intel_screen.h index b4afae9d62f..b2013af1a29 100644 --- a/src/mesa/drivers/dri/intel/intel_screen.h +++ b/src/mesa/drivers/dri/intel/intel_screen.h @@ -57,8 +57,6 @@ * * How the handshake works * ----------------------- - * (TODO: To be implemented on a future commit). - * * Initially, intel_screen.dri2_has_hiz is set to unknown. The first time the * user requests a depth and stencil buffer, intelCreateBuffers() creates a * framebuffer with separate depth and stencil attachments (with formats From 2835c5112de59a0713fe1c78efbe77ea855a3eed Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Wed, 8 Jun 2011 11:20:38 -0700 Subject: [PATCH 127/145] darwin: mklib: Make the real file match the id This makes mesa more consistent with glibtool and XCode where the generated file matches the dylib id rather using an extra symlink Signed-off-by: Jeremy Huddleston --- bin/mklib | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/bin/mklib b/bin/mklib index a511375e20e..2c7ed3880ae 100755 --- a/bin/mklib +++ b/bin/mklib @@ -767,9 +767,8 @@ case $ARCH in OPTS="${OPTS} -exported_symbols_list ${EXPORTS}" fi - LINKNAME="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}" - LINKNAME2="lib${LIBNAME}.${LIBSUFFIX}" - LIBNAME="lib${LIBNAME}.${MAJOR}.${MINOR}.${LIBSUFFIX}" + LINKNAME="lib${LIBNAME}.${LIBSUFFIX}" + LIBNAME="lib${LIBNAME}.${MAJOR}.${LIBSUFFIX}" # examine first object to determine ABI set ${OBJECTS} @@ -782,9 +781,6 @@ case $ARCH in OPTS=${ALTOPTS} fi - # XXX can we always add -isysroot /Developer/SDKs/MacOSX10.4u.sdk - # to OPTS here? - # determine linker if [ $CPLUSPLUS = 1 ] ; then LINK="g++" @@ -796,8 +792,7 @@ case $ARCH in ${LINK} ${OPTS} ${LDFLAGS} -o ${LIBNAME} ${OBJECTS} ${DEPS} ln -s ${LIBNAME} ${LINKNAME} - ln -s ${LIBNAME} ${LINKNAME2} - FINAL_LIBS="${LIBNAME} ${LINKNAME} ${LINKNAME2}" + FINAL_LIBS="${LIBNAME} ${LINKNAME}" fi ;; From 1b90d7d36bba4ca24099cd4c0d1cc3d8ac7ae415 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Wed, 8 Jun 2011 11:47:00 -0700 Subject: [PATCH 128/145] darwin: Use -fvisibility=hidden to set default symbol visibility Signed-off-by: Jeremy Huddleston --- configs/darwin | 4 ++-- src/glx/apple/apple_glapi.c | 4 ---- src/glx/apple/apple_xgl_api.h | 23 +++++++---------------- 3 files changed, 9 insertions(+), 22 deletions(-) diff --git a/configs/darwin b/configs/darwin index 9d3bbcf985c..9527f61bd86 100644 --- a/configs/darwin +++ b/configs/darwin @@ -25,9 +25,9 @@ DEFINES = -D_DARWIN_C_SOURCE -DPTHREADS -D_GNU_SOURCE \ ARCH_FLAGS += $(RC_CFLAGS) -CFLAGS = -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing \ +CFLAGS = -ggdb3 -Os -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing -fvisibility=hidden \ -I$(INSTALL_DIR)/include -I$(X11_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) -CXXFLAGS = -ggdb3 -Os -Wall -fno-strict-aliasing \ +CXXFLAGS = -ggdb3 -Os -Wall -fno-strict-aliasing -fvisibility=hidden \ -I$(INSTALL_DIR)/include -I$(X11_DIR)/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) # Library names (actual file names) diff --git a/src/glx/apple/apple_glapi.c b/src/glx/apple/apple_glapi.c index 99570509888..f60cacece76 100644 --- a/src/glx/apple/apple_glapi.c +++ b/src/glx/apple/apple_glapi.c @@ -49,13 +49,9 @@ #define OPENGL_FRAMEWORK_PATH "/System/Library/Frameworks/OpenGL.framework/OpenGL" #endif -__private_extern__ struct _glapi_table * __ogl_framework_api = NULL; - -__private_extern__ struct _glapi_table * __applegl_api = NULL; -__private_extern__ void apple_xgl_init_direct(void) { static void *handle; const char *opengl_framework_path; diff --git a/src/glx/apple/apple_xgl_api.h b/src/glx/apple/apple_xgl_api.h index c6d8903a0b3..2365d64788f 100644 --- a/src/glx/apple/apple_xgl_api.h +++ b/src/glx/apple/apple_xgl_api.h @@ -29,24 +29,15 @@ #ifndef APPLE_XGL_API_H -__private_extern__ void -__applegl_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, +void __applegl_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels); +void __applegl_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); +void __applegl_glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, + GLsizei width); -__private_extern__ void -__applegl_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); +void __applegl_glDrawBuffer(GLenum mode); +void __applegl_glDrawBuffersARB(GLsizei n, const GLenum * bufs); -__private_extern__ void -__applegl_glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, - GLsizei width); - -__private_extern__ void -__applegl_glDrawBuffer(GLenum mode); - -__private_extern__ void -__applegl_glDrawBuffersARB(GLsizei n, const GLenum * bufs); - -__private_extern__ void -__applegl_glViewport(GLint x, GLint y, GLsizei width, GLsizei height); +void __applegl_glViewport(GLint x, GLint y, GLsizei width, GLsizei height); #endif From 3b23cf43a4ac308df8875025fed333383b520105 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Wed, 8 Jun 2011 12:03:10 -0700 Subject: [PATCH 129/145] glx: Remove some GLX_USE_APPLEGL guards around glapi Now that we're using glapi, we don't need some GLX_USE_APPLEGL ifdef-foo Signed-off-by: Jeremy Huddleston --- src/glx/glxcurrent.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/glx/glxcurrent.c b/src/glx/glxcurrent.c index b3009580d13..064fd71ae6e 100644 --- a/src/glx/glxcurrent.c +++ b/src/glx/glxcurrent.c @@ -43,10 +43,10 @@ #include "apple_glx.h" #include "apple_glx_context.h" -#else -#include "glapi.h" #endif +#include "glapi.h" + /* ** We setup some dummy structures here so that the API can be used ** even if no context is current. @@ -160,7 +160,7 @@ _X_HIDDEN void __glXSetCurrentContextNull(void) { __glXSetCurrentContext(&dummyContext); -#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL) +#if defined(GLX_DIRECT_RENDERING) _glapi_set_dispatch(NULL); /* no-op functions */ _glapi_set_context(NULL); #endif @@ -214,7 +214,6 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw, struct glx_context *oldGC = __glXGetCurrentContext(); int ret = Success; -#ifndef GLX_USE_APPLEGL /* XXX: If this is left out, then libGL ends up not having this * symbol, and drivers using it fail to load. Compare the * implementation of this symbol to _glapi_noop_enable_warnings(), @@ -224,7 +223,6 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw, * library, though. */ (void)_glthread_GetID(); -#endif /* Make sure that the new context has a nonzero ID. In the request, * a zero context ID is used only to mean that we bind to no current @@ -244,9 +242,7 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw, return False; } -#ifndef GLX_USE_APPLEGL _glapi_check_multithread(); -#endif __glXLock(); if (oldGC == gc && From 2d22186ca80cee2c5929f8fb59b18eec12995534 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 15:07:15 -0600 Subject: [PATCH 130/145] svga: fix typos, update comments --- src/gallium/drivers/svga/svga_cmd.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/svga/svga_cmd.c b/src/gallium/drivers/svga/svga_cmd.c index 1ed1d5d25bb..ebcd4bcaf10 100644 --- a/src/gallium/drivers/svga/svga_cmd.c +++ b/src/gallium/drivers/svga/svga_cmd.c @@ -46,10 +46,10 @@ * to have allocated the fifo space before converting. * * Results: - * id is filld out. + * id is filled out. * * Side effects: - * One surface relocation is preformed for texture handle. + * One surface relocation is performed for texture handle. * *---------------------------------------------------------------------- */ @@ -224,7 +224,7 @@ SVGA3D_DestroyContext(struct svga_winsys_context *swc) // IN * containers for host VRAM objects like textures, vertex * buffers, and depth/stencil buffers. * - * Surfaces are hierarchial: + * Surfaces are hierarchical: * * - Surface may have multiple faces (for cube maps) * @@ -376,11 +376,9 @@ SVGA3D_DestroySurface(struct svga_winsys_context *swc, /* *---------------------------------------------------------------------- * - * SVGA3D_BeginSurfaceDMA-- + * SVGA3D_SurfaceDMA-- * - * Begin a SURFACE_DMA command. This reserves space for it in - * the FIFO, and returns a pointer to the command's box array. - * This function must be paired with SVGA_FIFOCommitAll(). + * Emit a SURFACE_DMA command. * * When the SVGA3D device asynchronously processes this FIFO * command, a DMA operation is performed between host VRAM and From e37e196151bd8c10a8475680ed91a82de8f7aad3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 8 Jun 2011 15:15:07 -0600 Subject: [PATCH 131/145] st/mesa: more helpful debug message in destroy_program_variants_cb() --- src/mesa/state_tracker/st_program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 0b1ad63afeb..7a6d33d3fea 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -1087,8 +1087,8 @@ destroy_program_variants(struct st_context *st, struct gl_program *program) } break; default: - _mesa_problem(NULL, "Unexpected program target in " - "destroy_program_variants_cb()"); + _mesa_problem(NULL, "Unexpected program target 0x%x in " + "destroy_program_variants_cb()", program->Target); } } From bd265201da44093ce9c583fe04aa7db94f61453c Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 23 May 2011 11:24:43 -0700 Subject: [PATCH 132/145] i965/gen7: Remove stencil renderbuffer from gen7_depth_format. Since Gen7 doesn't support packed depth/stencil, the stencil buffer can't possibly be relevant for determining the depth format. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/gen7_misc_state.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen7_misc_state.c b/src/mesa/drivers/dri/i965/gen7_misc_state.c index a180b678c11..8d5fc70f098 100644 --- a/src/mesa/drivers/dri/i965/gen7_misc_state.c +++ b/src/mesa/drivers/dri/i965/gen7_misc_state.c @@ -35,13 +35,10 @@ gen7_depth_format(struct brw_context *brw) struct gl_context *ctx = &intel->ctx; struct gl_framebuffer *fb = ctx->DrawBuffer; struct intel_renderbuffer *drb = intel_get_renderbuffer(fb, BUFFER_DEPTH); - struct intel_renderbuffer *srb = intel_get_renderbuffer(fb, BUFFER_STENCIL); struct intel_region *region = NULL; if (drb) region = drb->region; - else if (srb) - region = srb->region; else return BRW_DEPTHFORMAT_D32_FLOAT; From a00ca90815d8df3c087c49a2a7685f739d2d5c0a Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 23 May 2011 11:55:39 -0700 Subject: [PATCH 133/145] i965/gen7: gen7_emit_depthbuffer needs the _NEW_DEPTH dirty bit. For ctx->Depth.Mask. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/gen7_misc_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/gen7_misc_state.c b/src/mesa/drivers/dri/i965/gen7_misc_state.c index 8d5fc70f098..0364b61b75b 100644 --- a/src/mesa/drivers/dri/i965/gen7_misc_state.c +++ b/src/mesa/drivers/dri/i965/gen7_misc_state.c @@ -89,6 +89,7 @@ static void emit_depthbuffer(struct brw_context *brw) assert(region->tiling == I915_TILING_Y); + /* _NEW_DEPTH */ BEGIN_BATCH(7); OUT_BATCH(GEN7_3DSTATE_DEPTH_BUFFER << 16 | (7 - 2)); OUT_BATCH(((region->pitch * region->cpp) - 1) | @@ -133,7 +134,7 @@ static void emit_depthbuffer(struct brw_context *brw) */ const struct brw_tracked_state gen7_depthbuffer = { .dirty = { - .mesa = _NEW_BUFFERS, + .mesa = (_NEW_BUFFERS | _NEW_DEPTH), .brw = BRW_NEW_BATCH, .cache = 0, }, From 53b53a141ee4da9bf03b42d6381823520cd2e980 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 23 May 2011 14:40:51 -0700 Subject: [PATCH 134/145] i965/gen7: Add a prepare_depthbuffer function. We need to call add_validated_bo to do proper aperture space accounting. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/gen7_misc_state.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/mesa/drivers/dri/i965/gen7_misc_state.c b/src/mesa/drivers/dri/i965/gen7_misc_state.c index 0364b61b75b..024021185ac 100644 --- a/src/mesa/drivers/dri/i965/gen7_misc_state.c +++ b/src/mesa/drivers/dri/i965/gen7_misc_state.c @@ -56,6 +56,20 @@ gen7_depth_format(struct brw_context *brw) return 0; } +static void prepare_depthbuffer(struct brw_context *brw) +{ + struct intel_context *intel = &brw->intel; + struct gl_context *ctx = &intel->ctx; + struct gl_framebuffer *fb = ctx->DrawBuffer; + struct intel_renderbuffer *drb = intel_get_renderbuffer(fb, BUFFER_DEPTH); + struct intel_renderbuffer *srb = intel_get_renderbuffer(fb, BUFFER_STENCIL); + + if (drb) + brw_add_validated_bo(brw, drb->region->buffer); + if (srb) + brw_add_validated_bo(brw, srb->region->buffer); +} + static void emit_depthbuffer(struct brw_context *brw) { struct intel_context *intel = &brw->intel; @@ -138,5 +152,6 @@ const struct brw_tracked_state gen7_depthbuffer = { .brw = BRW_NEW_BATCH, .cache = 0, }, + .prepare = prepare_depthbuffer, .emit = emit_depthbuffer, }; From 626440add567174342d421a39252067c6a6fb901 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 23 May 2011 14:01:16 -0700 Subject: [PATCH 135/145] i965/gen7: Program stencil buffers on Ivybridge. Thanks to Chad's hard work implementing separate stencil and HiZ support, this is entirely straightforward. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/gen7_misc_state.c | 63 ++++++++++++++------- 1 file changed, 43 insertions(+), 20 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen7_misc_state.c b/src/mesa/drivers/dri/i965/gen7_misc_state.c index 024021185ac..dd0ccd27193 100644 --- a/src/mesa/drivers/dri/i965/gen7_misc_state.c +++ b/src/mesa/drivers/dri/i965/gen7_misc_state.c @@ -75,41 +75,55 @@ static void emit_depthbuffer(struct brw_context *brw) struct intel_context *intel = &brw->intel; struct gl_context *ctx = &intel->ctx; struct gl_framebuffer *fb = ctx->DrawBuffer; - struct intel_renderbuffer *drb = intel_get_renderbuffer(fb, BUFFER_DEPTH); - struct intel_renderbuffer *srb = intel_get_renderbuffer(fb, BUFFER_STENCIL); - struct intel_region *region = NULL; /* _NEW_BUFFERS */ - if (drb) - region = drb->region; - else if (srb) - region = srb->region; + struct intel_renderbuffer *drb = intel_get_renderbuffer(fb, BUFFER_DEPTH); + struct intel_renderbuffer *srb = intel_get_renderbuffer(fb, BUFFER_STENCIL); + + /* Gen7 doesn't support packed depth/stencil */ + assert(srb == NULL || srb != drb); + + if (drb == NULL) { + uint32_t dw1 = BRW_DEPTHFORMAT_D32_FLOAT << 18; + uint32_t dw3 = 0; + + if (srb == NULL) { + dw1 |= (BRW_SURFACE_NULL << 29); + } else { + struct intel_region *region = srb->region; + + /* _NEW_STENCIL: enable stencil buffer writes */ + dw1 |= ((ctx->Stencil.WriteMask != 0) << 27); + + /* 3DSTATE_STENCIL_BUFFER inherits surface type and dimensions. */ + dw1 |= (BRW_SURFACE_2D << 29); + dw3 = ((region->width - 1) << 4) | ((2 * region->height - 1) << 18); + } - if (region == NULL) { BEGIN_BATCH(7); OUT_BATCH(GEN7_3DSTATE_DEPTH_BUFFER << 16 | (7 - 2)); - OUT_BATCH((BRW_DEPTHFORMAT_D32_FLOAT << 18) | - (BRW_SURFACE_NULL << 29)); - OUT_BATCH(0); + OUT_BATCH(dw1); OUT_BATCH(0); + OUT_BATCH(dw3); OUT_BATCH(0); OUT_BATCH(0); OUT_BATCH(0); ADVANCE_BATCH(); } else { + struct intel_region *region = drb->region; uint32_t tile_x, tile_y, offset; offset = intel_region_tile_offsets(region, &tile_x, &tile_y); assert(region->tiling == I915_TILING_Y); - /* _NEW_DEPTH */ + /* _NEW_DEPTH, _NEW_STENCIL */ BEGIN_BATCH(7); OUT_BATCH(GEN7_3DSTATE_DEPTH_BUFFER << 16 | (7 - 2)); OUT_BATCH(((region->pitch * region->cpp) - 1) | (gen7_depth_format(brw) << 18) | (0 << 22) /* no HiZ buffer */ | - (0 << 27) /* no stencil write */ | + ((srb != NULL && ctx->Stencil.WriteMask != 0) << 27) | ((ctx->Depth.Mask != 0) << 28) | (BRW_SURFACE_2D << 29)); OUT_RELOC(region->buffer, @@ -129,12 +143,21 @@ static void emit_depthbuffer(struct brw_context *brw) OUT_BATCH(0); ADVANCE_BATCH(); - BEGIN_BATCH(4); - OUT_BATCH(GEN7_3DSTATE_STENCIL_BUFFER << 16 | (4 - 2)); - OUT_BATCH(0); - OUT_BATCH(0); - OUT_BATCH(0); - ADVANCE_BATCH(); + if (srb == NULL) { + BEGIN_BATCH(3); + OUT_BATCH(GEN7_3DSTATE_STENCIL_BUFFER << 16 | (3 - 2)); + OUT_BATCH(0); + OUT_BATCH(0); + ADVANCE_BATCH(); + } else { + BEGIN_BATCH(3); + OUT_BATCH(GEN7_3DSTATE_STENCIL_BUFFER << 16 | (3 - 2)); + OUT_BATCH(srb->region->pitch * srb->region->cpp - 1); + OUT_RELOC(srb->region->buffer, + I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, + 0); + ADVANCE_BATCH(); + } BEGIN_BATCH(3); OUT_BATCH(GEN7_3DSTATE_CLEAR_PARAMS << 16 | (3 - 2)); @@ -148,7 +171,7 @@ static void emit_depthbuffer(struct brw_context *brw) */ const struct brw_tracked_state gen7_depthbuffer = { .dirty = { - .mesa = (_NEW_BUFFERS | _NEW_DEPTH), + .mesa = (_NEW_BUFFERS | _NEW_DEPTH | _NEW_STENCIL), .brw = BRW_NEW_BATCH, .cache = 0, }, From 2a638076165eaa1294708a7e4518c2d72560e066 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 6 Jun 2011 10:35:58 -0700 Subject: [PATCH 136/145] i965/gen7: Don't emit 3DSTATE_GS_SVB_INDEX on Ivybridge. According to vol2a.07, it only applies from Cantiga to Sandybridge. I found this in my ringbuffers while investigating various GPU hangs. While it may not have been the cause, it seemed wise to remove it. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/brw_misc_state.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c index 4256234a645..a6de28b3add 100644 --- a/src/mesa/drivers/dri/i965/brw_misc_state.c +++ b/src/mesa/drivers/dri/i965/brw_misc_state.c @@ -606,13 +606,15 @@ static void upload_invarient_state( struct brw_context *brw ) OUT_BATCH(1); ADVANCE_BATCH(); - for (i = 0; i < 4; i++) { - BEGIN_BATCH(4); - OUT_BATCH(_3DSTATE_GS_SVB_INDEX << 16 | (4 - 2)); - OUT_BATCH(i << SVB_INDEX_SHIFT); - OUT_BATCH(0); - OUT_BATCH(0xffffffff); - ADVANCE_BATCH(); + if (intel->gen < 7) { + for (i = 0; i < 4; i++) { + BEGIN_BATCH(4); + OUT_BATCH(_3DSTATE_GS_SVB_INDEX << 16 | (4 - 2)); + OUT_BATCH(i << SVB_INDEX_SHIFT); + OUT_BATCH(0); + OUT_BATCH(0xffffffff); + ADVANCE_BATCH(); + } } } From acf82657f4d607e4477f03752613d42f239e4bd3 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 6 Jun 2011 11:14:15 -0700 Subject: [PATCH 137/145] i965/gen7: Enable SIMD16 fragment shader dispatch. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/gen7_wm_state.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen7_wm_state.c b/src/mesa/drivers/dri/i965/gen7_wm_state.c index 993d5bd8465..6a64eb8a2d3 100644 --- a/src/mesa/drivers/dri/i965/gen7_wm_state.c +++ b/src/mesa/drivers/dri/i965/gen7_wm_state.c @@ -232,9 +232,13 @@ upload_ps_state(struct brw_context *brw) OUT_BATCH(0); /* scratch space base offset */ OUT_BATCH(dw4); OUT_BATCH(dw5); - /* FINISHME: need to upload the SIMD16 program */ OUT_BATCH(0); /* kernel 1 pointer */ - OUT_BATCH(0); /* kernel 2 pointer */ + if (brw->wm.prog_data->prog_offset_16) { + OUT_RELOC(brw->wm.prog_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, + brw->wm.prog_data->prog_offset_16); + } else { + OUT_BATCH(0); /* kernel 2 pointer */ + } ADVANCE_BATCH(); } From 4ef8464068bc96ea9af71bbd18d121358db303b2 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 6 Jun 2011 17:19:12 -0700 Subject: [PATCH 138/145] i965/gen7: Call gen7_create_constant_surface instead of brw_[...]. Fixes 17 piglit tests: - glsl-vs-arrays-3 - glsl-vs-texturematrix-2 - glsl-vs-uniform-array-2 - arl - nv-arl - nv-init-zero-addr - vp-address-01 - vp-arl-constant-array - vp-arl-constant-array-huge - vp-arl-constant-array-huge-offset - vp-arl-constant-array-huge-offset-neg - vp-arl-constant-array-huge-relative-offset - vp-arl-constant-array-huge-varying - vp-arl-env-array - vp-arl-local-array - vp-arl-neg-array - vp-arl-neg-array-2 Fixes 4 glean tests: - glsl1-constant array of vec4 with variable indexing, vertex shader - glsl1-constant array with variable indexing, vertex shader - glsl1-constant array with variable indexing, vertex shader (2) - vp1-ARL test Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/brw_state.h | 6 ++++++ src/mesa/drivers/dri/i965/brw_vs_surface_state.c | 10 ++++++++-- src/mesa/drivers/dri/i965/gen7_wm_surface_state.c | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_state.h b/src/mesa/drivers/dri/i965/brw_state.h index 3aaa7c6d794..544ef7d47e6 100644 --- a/src/mesa/drivers/dri/i965/brw_state.h +++ b/src/mesa/drivers/dri/i965/brw_state.h @@ -191,6 +191,12 @@ GLuint translate_tex_format(gl_format mesa_format, GLenum depth_mode, GLenum srgb_decode); +/* gen7_wm_surface_state.c */ +void gen7_create_constant_surface(struct brw_context *brw, + drm_intel_bo *bo, + int width, + uint32_t *out_offset); + /* brw_wm_sampler_state.c */ uint32_t translate_wrap_mode(GLenum wrap, bool using_nearest); void upload_default_color(struct brw_context *brw, diff --git a/src/mesa/drivers/dri/i965/brw_vs_surface_state.c b/src/mesa/drivers/dri/i965/brw_vs_surface_state.c index 2b9b63590a0..611f6333689 100644 --- a/src/mesa/drivers/dri/i965/brw_vs_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_vs_surface_state.c @@ -114,6 +114,7 @@ brw_update_vs_constant_surface( struct gl_context *ctx, GLuint surf) { struct brw_context *brw = brw_context(ctx); + struct intel_context *intel = &brw->intel; struct brw_vertex_program *vp = (struct brw_vertex_program *) brw->vertex_program; const struct gl_program_parameter_list *params = vp->program.Base.Parameters; @@ -128,8 +129,13 @@ brw_update_vs_constant_surface( struct gl_context *ctx, return; } - brw_create_constant_surface(brw, brw->vs.const_bo, params->NumParameters, - &brw->vs.surf_offset[surf]); + if (intel->gen >= 7) { + gen7_create_constant_surface(brw, brw->vs.const_bo, params->NumParameters, + &brw->vs.surf_offset[surf]); + } else { + brw_create_constant_surface(brw, brw->vs.const_bo, params->NumParameters, + &brw->vs.surf_offset[surf]); + } } diff --git a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c index d4eb550c758..00b562f2176 100644 --- a/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/gen7_wm_surface_state.c @@ -126,7 +126,7 @@ gen7_update_texture_surface(struct gl_context *ctx, GLuint unit) * Create the constant buffer surface. Vertex/fragment shader constants will * be read from this buffer with Data Port Read instructions/messages. */ -static void +void gen7_create_constant_surface(struct brw_context *brw, drm_intel_bo *bo, int width, From 9f865646f1fb05cec72dcb1d7411670d38b0a9b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 8 Jun 2011 14:20:49 +0100 Subject: [PATCH 139/145] glx/xlib: Handle glXCreateContextAttribsARB in glXGetProcAddress. --- src/gallium/state_trackers/glx/xlib/glx_getproc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/state_trackers/glx/xlib/glx_getproc.c b/src/gallium/state_trackers/glx/xlib/glx_getproc.c index 26fcae78ece..bc29c31ffa7 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_getproc.c +++ b/src/gallium/state_trackers/glx/xlib/glx_getproc.c @@ -168,6 +168,9 @@ static struct name_address_pair GLX_functions[] = { /*** GLX_ARB_get_proc_address ***/ { "glXGetProcAddressARB", (__GLXextFuncPtr) glXGetProcAddressARB }, + /*** GLX_ARB_create_context ***/ + { "glXCreateContextAttribsARB", (__GLXextFuncPtr) glXCreateContextAttribsARB }, + /*** GLX_EXT_texture_from_pixmap ***/ { "glXBindTexImageEXT", (__GLXextFuncPtr) glXBindTexImageEXT }, { "glXReleaseTexImageEXT", (__GLXextFuncPtr) glXReleaseTexImageEXT }, From 894db40f122175ed85e0d32d42296f2d56cf748e Mon Sep 17 00:00:00 2001 From: Benjamin Bellec Date: Wed, 8 Jun 2011 23:00:54 +0200 Subject: [PATCH 140/145] util: better logbase2/next_power_of_two implementations Use __builtin_clz when available for logbase/next_power_of_two, and replace next_power_of_two with faster implementation otherwise. --- src/gallium/auxiliary/util/u_math.h | 30 ++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index 65a99fcb394..417f79f78ba 100644 --- a/src/gallium/auxiliary/util/u_math.h +++ b/src/gallium/auxiliary/util/u_math.h @@ -477,6 +477,9 @@ float_to_byte_tex(float f) static INLINE unsigned util_logbase2(unsigned n) { +#if defined(PIPE_CC_GCC) + return ((sizeof(unsigned) * 8 - 1) - __builtin_clz(n | 1)); +#else unsigned pos = 0; if (n >= 1<<16) { n >>= 16; pos += 16; } if (n >= 1<< 8) { n >>= 8; pos += 8; } @@ -484,6 +487,7 @@ util_logbase2(unsigned n) if (n >= 1<< 2) { n >>= 2; pos += 2; } if (n >= 1<< 1) { pos += 1; } return pos; +#endif } @@ -493,17 +497,29 @@ util_logbase2(unsigned n) static INLINE unsigned util_next_power_of_two(unsigned x) { - unsigned i; +#if defined(PIPE_CC_GCC) + if (x <= 1) + return 1; - if (x == 0) + return (1 << ((sizeof(unsigned) * 8) - __builtin_clz(x - 1))); +#else + unsigned val = x; + + if (x <= 1) return 1; - --x; + if (util_is_power_of_two(x)) + return x; - for (i = 1; i < sizeof(unsigned) * 8; i <<= 1) - x |= x >> i; - - return x + 1; + val--; + val = (val >> 1) | val; + val = (val >> 2) | val; + val = (val >> 4) | val; + val = (val >> 8) | val; + val = (val >> 16) | val; + val++; + return val; +#endif } From b3d5822e932767a572f392ae2b3ca1dfee5f6b03 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Wed, 8 Jun 2011 23:23:24 +0200 Subject: [PATCH 141/145] util: add gcc version check for builtins Looks like only next_power_of_two, logbase2 and bitcount use builtins requiring gcc 3.4, so maybe everything else compiles with older gcc. --- src/gallium/auxiliary/util/u_math.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index 417f79f78ba..0b5284428eb 100644 --- a/src/gallium/auxiliary/util/u_math.h +++ b/src/gallium/auxiliary/util/u_math.h @@ -477,7 +477,7 @@ float_to_byte_tex(float f) static INLINE unsigned util_logbase2(unsigned n) { -#if defined(PIPE_CC_GCC) +#if defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION >= 304) return ((sizeof(unsigned) * 8 - 1) - __builtin_clz(n | 1)); #else unsigned pos = 0; @@ -497,7 +497,7 @@ util_logbase2(unsigned n) static INLINE unsigned util_next_power_of_two(unsigned x) { -#if defined(PIPE_CC_GCC) +#if defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION >= 304) if (x <= 1) return 1; @@ -529,7 +529,7 @@ util_next_power_of_two(unsigned x) static INLINE unsigned util_bitcount(unsigned n) { -#if defined(PIPE_CC_GCC) +#if defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION >= 304) return __builtin_popcount(n); #else /* K&R classic bitcount. From b537f54b3a2bd47ec861f5c432c49529684eef21 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Thu, 9 Jun 2011 00:44:32 +0200 Subject: [PATCH 142/145] mesa: use __builtin_clz for logbase2 when available Also rename to _mesa_logbase2 and move to imports.h to keep the ugly ifdef GNUC stuff outside other files (also to allow reuse). --- src/mesa/main/imports.h | 21 +++++++++++++++++++++ src/mesa/main/teximage.c | 23 +++-------------------- 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index ce7baabe2c7..3fa1db02aee 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -486,6 +486,27 @@ _mesa_next_pow_two_64(uint64_t x) } +/* + * Returns the floor form of binary logarithm for a 32-bit integer. + */ +static INLINE GLuint +_mesa_logbase2(GLuint n) +{ +#if defined(__GNUC__) && \ + ((__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || __GNUC__ >= 4) + return (31 - __builtin_clz(n | 1)); +#else + GLuint pos = 0; + if (n >= 1<<16) { n >>= 16; pos += 16; } + if (n >= 1<< 8) { n >>= 8; pos += 8; } + if (n >= 1<< 4) { n >>= 4; pos += 4; } + if (n >= 1<< 2) { n >>= 2; pos += 2; } + if (n >= 1<< 1) { pos += 1; } + return pos; +#endif +} + + /** * Return 1 if this is a little endian machine, 0 if big endian. */ diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 3e429110ae9..0827cb883e8 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -80,23 +80,6 @@ _mesa_free_texmemory(void *m) } -/* - * Returns the floor form of binary logarithm for a 32-bit integer. - */ -static GLuint -logbase2(GLuint n) -{ - GLuint pos = 0; - if (n >= 1<<16) { n >>= 16; pos += 16; } - if (n >= 1<< 8) { n >>= 8; pos += 8; } - if (n >= 1<< 4) { n >>= 4; pos += 4; } - if (n >= 1<< 2) { n >>= 2; pos += 2; } - if (n >= 1<< 1) { pos += 1; } - return pos; -} - - - /** * Return the simple base format for a given internal texture format. * For example, given GL_LUMINANCE12_ALPHA4, return GL_LUMINANCE_ALPHA. @@ -1155,7 +1138,7 @@ _mesa_init_teximage_fields(struct gl_context *ctx, GLenum target, img->Depth = depth; img->Width2 = width - 2 * border; /* == 1 << img->WidthLog2; */ - img->WidthLog2 = logbase2(img->Width2); + img->WidthLog2 = _mesa_logbase2(img->Width2); if (height == 1) { /* 1-D texture */ img->Height2 = 1; @@ -1163,7 +1146,7 @@ _mesa_init_teximage_fields(struct gl_context *ctx, GLenum target, } else { img->Height2 = height - 2 * border; /* == 1 << img->HeightLog2; */ - img->HeightLog2 = logbase2(img->Height2); + img->HeightLog2 = _mesa_logbase2(img->Height2); } if (depth == 1) { /* 2-D texture */ @@ -1172,7 +1155,7 @@ _mesa_init_teximage_fields(struct gl_context *ctx, GLenum target, } else { img->Depth2 = depth - 2 * border; /* == 1 << img->DepthLog2; */ - img->DepthLog2 = logbase2(img->Depth2); + img->DepthLog2 = _mesa_logbase2(img->Depth2); } img->MaxLog2 = MAX2(img->WidthLog2, img->HeightLog2); From da009212fe121206a67cb65ca8f88777a9f7e44f Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Thu, 9 Jun 2011 00:45:03 +0200 Subject: [PATCH 143/145] mesa: fix gcc version check for _mesa_bitcount The version check was bogus, and only inside a non-gcc block anyway. --- src/mesa/main/imports.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index f262b25c718..0a572ec225d 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -511,9 +511,10 @@ _mesa_ffsll(int64_t val) return 0; } +#endif - -#if ((_GNUC__ == 3 && __GNUC_MINOR__ < 4) || __GNUC__ < 4) +#if !defined(__GNUC__) ||\ + ((_GNUC__ == 3 && __GNUC_MINOR__ < 4) && __GNUC__ < 4) /** * Return number of bits set in given GLuint. */ @@ -527,7 +528,6 @@ _mesa_bitcount(unsigned int n) return bits; } #endif -#endif /** From c1090f3019bbe0ff92455e4a9268f8957af9cda0 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Thu, 9 Jun 2011 00:47:19 +0200 Subject: [PATCH 144/145] mesa: get rid of homegrown logbase2 implementation in drivers Some of the logbase2 functions did just the same as _mesa_logbase2, though they were taking signed numbers (but it shouldn't matter for them). --- src/mesa/drivers/dri/intel/intel_tex_image.c | 16 +--------------- src/mesa/drivers/dri/unichrome/via_tex.c | 14 +------------- 2 files changed, 2 insertions(+), 28 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c index 775fd1008f9..bc39f4ad83f 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_image.c +++ b/src/mesa/drivers/dri/intel/intel_tex_image.c @@ -32,20 +32,6 @@ */ -static int -logbase2(int n) -{ - GLint i = 1; - GLint log2 = 0; - - while (n > i) { - i *= 2; - log2++; - } - - return log2; -} - /* Otherwise, store it in memory if (Border != 0) or (any dimension == * 1). @@ -118,7 +104,7 @@ intel_miptree_create_for_teximage(struct intel_context *intel, (intel->gen < 4 || firstLevel == 0)) { lastLevel = firstLevel; } else { - lastLevel = firstLevel + logbase2(MAX2(MAX2(width, height), depth)); + lastLevel = firstLevel + _mesa_logbase2(MAX2(MAX2(width, height), depth)); } } diff --git a/src/mesa/drivers/dri/unichrome/via_tex.c b/src/mesa/drivers/dri/unichrome/via_tex.c index 1a0d1eaf070..fe5480ff25c 100644 --- a/src/mesa/drivers/dri/unichrome/via_tex.c +++ b/src/mesa/drivers/dri/unichrome/via_tex.c @@ -196,18 +196,6 @@ viaChooseTexFormat( struct gl_context *ctx, GLint internalFormat, return MESA_FORMAT_NONE; /* never get here */ } -static int logbase2(int n) -{ - GLint i = 1; - GLint log2 = 0; - - while (n > i) { - i *= 2; - log2++; - } - - return log2; -} static const char *get_memtype_name( GLint memType ) { @@ -690,7 +678,7 @@ static void viaTexImage(struct gl_context *ctx, } assert(texImage->RowStride == postConvWidth); - viaImage->pitchLog2 = logbase2(postConvWidth * texelBytes); + viaImage->pitchLog2 = _mesa_logbase2(postConvWidth * texelBytes); /* allocate memory */ if (_mesa_is_format_compressed(texImage->TexFormat)) From d302804debeed13ced27fce222110c629e55d6f9 Mon Sep 17 00:00:00 2001 From: Roland Scheidegger Date: Thu, 9 Jun 2011 01:11:52 +0200 Subject: [PATCH 145/145] util: fix strict aliasing issues in u_format_r11g11b10f.h --- .../auxiliary/util/u_format_r11g11b10f.h | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/gallium/auxiliary/util/u_format_r11g11b10f.h b/src/gallium/auxiliary/util/u_format_r11g11b10f.h index c4181d0e34e..8e0572aa7ce 100644 --- a/src/gallium/auxiliary/util/u_format_r11g11b10f.h +++ b/src/gallium/auxiliary/util/u_format_r11g11b10f.h @@ -45,14 +45,18 @@ static INLINE unsigned f32_to_uf11(float val) { - uint32_t f32 = (*(uint32_t *) &val); + union { + float f; + uint32_t ui; + } f32 = {val}; + uint16_t uf11 = 0; /* Decode little-endian 32-bit floating-point value */ - int sign = (f32 >> 16) & 0x8000; + int sign = (f32.ui >> 16) & 0x8000; /* Map exponent to the range [-127,128] */ - int exponent = ((f32 >> 23) & 0xff) - 127; - int mantissa = f32 & 0x007fffff; + int exponent = ((f32.ui >> 23) & 0xff) - 127; + int mantissa = f32.ui & 0x007fffff; if (sign) return 0; @@ -111,14 +115,18 @@ static INLINE float uf11_to_f32(uint16_t val) static INLINE unsigned f32_to_uf10(float val) { - uint32_t f32 = (*(uint32_t *) &val); + union { + float f; + uint32_t ui; + } f32 = {val}; + uint16_t uf10 = 0; /* Decode little-endian 32-bit floating-point value */ - int sign = (f32 >> 16) & 0x8000; + int sign = (f32.ui >> 16) & 0x8000; /* Map exponent to the range [-127,128] */ - int exponent = ((f32 >> 23) & 0xff) - 127; - int mantissa = f32 & 0x007fffff; + int exponent = ((f32.ui >> 23) & 0xff) - 127; + int mantissa = f32.ui & 0x007fffff; if (sign) return 0;