From 7ff239e8d85f3a8331d95de42298602d14e7c40e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Sun, 7 Aug 2011 18:28:16 +0000 Subject: [PATCH] [GB.OPENGL] * NEW: Remove "GL_" from the constant names in the Gl class. The old constant names are supported, but emit a warning message. git-svn-id: svn://localhost/gambas/trunk@3986 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.opengl/src/GL.c | 1078 +++++++++++++++++++++++--------------------- 1 file changed, 561 insertions(+), 517 deletions(-) diff --git a/gb.opengl/src/GL.c b/gb.opengl/src/GL.c index 5ee40e4f0..5cf495823 100644 --- a/gb.opengl/src/GL.c +++ b/gb.opengl/src/GL.c @@ -41,6 +41,8 @@ #include "GLeval.h" #include "framebufferobject.h" +#define MAX_COMPAT_WARNING 16 + /**************************************************************************/ BEGIN_METHOD_VOID(GLCHECKERROR) @@ -55,6 +57,44 @@ BEGIN_METHOD(GLCHECKEXTENSIONS, GB_STRING extlist) END_METHOD + +BEGIN_METHOD_VOID(GL_property) + + GB.ReturnBoolean(TRUE); + +END_METHOD + +BEGIN_METHOD(GL_unknown, GB_VALUE param[0]) + + static int nwarn = 0; + static void *klass = NULL; + char *name = GB.GetUnknown(); + + if (strncasecmp(name, "GL_", 3)) + { + GB.Error(GB_ERR_NSYMBOL, name, "Gl"); + return; + } + + if (GB.NParam()) + { + GB.Error(GB_ERR_NPROPERTY, "Gl", name); + return; + } + + nwarn++; + if (nwarn <= MAX_COMPAT_WARNING) + fprintf(stderr, "gb.opengl: warning: Gl.%s constant is deprecated. Use Gl.%s now.\n", name, &name[3]); + else if (nwarn == (MAX_COMPAT_WARNING + 1)) + fprintf(stderr, "gb.opengl: warning: too many deprecated constant warnings.\n"); + + if (!klass) + klass = (void *)GB.FindClass("Gl"); + + GB.GetProperty(klass, &name[3]); + +END_METHOD + /**************************************************************************/ GB_DESC Cgl[] = @@ -290,591 +330,595 @@ GB_DESC Cgl[] = GB_STATIC_METHOD("BindFramebufferEXT", NULL, GLBINDFRAMEBUFFERSEXT, "(Target)i(Framebuffer)i"), GB_STATIC_METHOD("CheckFramebufferStatusEXT", "i", GLCHECKFRAMEBUFFERSTATUSEXT, "(Target)i"), - GB_CONSTANT("GL_FRAMEBUFFER_EXT", "i", GL_FRAMEBUFFER_EXT), - GB_CONSTANT("GL_RENDERBUFFER_EXT", "i", GL_RENDERBUFFER_EXT), - GB_CONSTANT("GL_STENCIL_INDEX1_EXT", "i", GL_STENCIL_INDEX1_EXT), - GB_CONSTANT("GL_STENCIL_INDEX4_EXT", "i", GL_STENCIL_INDEX4_EXT), - GB_CONSTANT("GL_STENCIL_INDEX8_EXT", "i", GL_STENCIL_INDEX8_EXT), - GB_CONSTANT("GL_STENCIL_INDEX16_EXT", "i", GL_STENCIL_INDEX16_EXT), - GB_CONSTANT("GL_RENDERBUFFER_WIDTH_EXT", "i", GL_RENDERBUFFER_WIDTH_EXT), - GB_CONSTANT("GL_RENDERBUFFER_HEIGHT_EXT", "i", GL_RENDERBUFFER_HEIGHT_EXT), - GB_CONSTANT("GL_RENDERBUFFER_INTERNAL_FORMAT_EXT", "i", GL_RENDERBUFFER_INTERNAL_FORMAT_EXT), - GB_CONSTANT("GL_RENDERBUFFER_RED_SIZE_EXT", "i", GL_RENDERBUFFER_RED_SIZE_EXT), - GB_CONSTANT("GL_RENDERBUFFER_GREEN_SIZE_EXT", "i", GL_RENDERBUFFER_GREEN_SIZE_EXT), - GB_CONSTANT("GL_RENDERBUFFER_BLUE_SIZE_EXT", "i", GL_RENDERBUFFER_BLUE_SIZE_EXT), - GB_CONSTANT("GL_RENDERBUFFER_ALPHA_SIZE_EXT", "i", GL_RENDERBUFFER_ALPHA_SIZE_EXT), - GB_CONSTANT("GL_RENDERBUFFER_DEPTH_SIZE_EXT", "i", GL_RENDERBUFFER_DEPTH_SIZE_EXT), - GB_CONSTANT("GL_RENDERBUFFER_STENCIL_SIZE_EXT", "i", GL_RENDERBUFFER_STENCIL_SIZE_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT0_EXT", "i", GL_COLOR_ATTACHMENT0_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT1_EXT", "i", GL_COLOR_ATTACHMENT1_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT2_EXT", "i", GL_COLOR_ATTACHMENT2_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT3_EXT", "i", GL_COLOR_ATTACHMENT3_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT4_EXT", "i", GL_COLOR_ATTACHMENT4_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT5_EXT", "i", GL_COLOR_ATTACHMENT5_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT6_EXT", "i", GL_COLOR_ATTACHMENT6_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT7_EXT", "i", GL_COLOR_ATTACHMENT7_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT8_EXT", "i", GL_COLOR_ATTACHMENT8_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT9_EXT", "i", GL_COLOR_ATTACHMENT9_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT10_EXT", "i", GL_COLOR_ATTACHMENT10_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT11_EXT", "i", GL_COLOR_ATTACHMENT11_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT12_EXT", "i", GL_COLOR_ATTACHMENT12_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT13_EXT", "i", GL_COLOR_ATTACHMENT13_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT14_EXT", "i", GL_COLOR_ATTACHMENT14_EXT), - GB_CONSTANT("GL_COLOR_ATTACHMENT15_EXT", "i", GL_COLOR_ATTACHMENT15_EXT), - GB_CONSTANT("GL_DEPTH_ATTACHMENT_EXT", "i", GL_DEPTH_ATTACHMENT_EXT), - GB_CONSTANT("GL_STENCIL_ATTACHMENT_EXT", "i", GL_STENCIL_ATTACHMENT_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_COMPLETE_EXT", "i", GL_FRAMEBUFFER_COMPLETE_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_UNSUPPORTED_EXT", "i", GL_FRAMEBUFFER_UNSUPPORTED_EXT), - GB_CONSTANT("GL_FRAMEBUFFER_BINDING_EXT", "i", GL_FRAMEBUFFER_BINDING_EXT), - GB_CONSTANT("GL_RENDERBUFFER_BINDING_EXT", "i", GL_RENDERBUFFER_BINDING_EXT), - GB_CONSTANT("GL_MAX_COLOR_ATTACHMENTS_EXT", "i", GL_MAX_COLOR_ATTACHMENTS_EXT), - GB_CONSTANT("GL_MAX_RENDERBUFFER_SIZE_EXT", "i", GL_MAX_RENDERBUFFER_SIZE_EXT), - GB_CONSTANT("GL_INVALID_FRAMEBUFFER_OPERATION_EXT", "i", GL_INVALID_FRAMEBUFFER_OPERATION_EXT), + // Old constant naming support + GB_STATIC_METHOD("_unknown", "v", GL_unknown, "."), + GB_STATIC_METHOD("_property", "b", GL_property, NULL), + /********************/ /* opengl constants */ /********************/ /* GetString */ - GB_CONSTANT("GL_EXTENSIONS", "i", GL_EXTENSIONS), - GB_CONSTANT("GL_VENDOR", "i", GL_VENDOR), - GB_CONSTANT("GL_RENDERER", "i", GL_RENDERER), - GB_CONSTANT("GL_VERSION", "i", GL_VERSION), - GB_CONSTANT("GL_SHADING_LANGUAGE_VERSION", "i", GL_SHADING_LANGUAGE_VERSION), + GB_CONSTANT("EXTENSIONS", "i", GL_EXTENSIONS), + GB_CONSTANT("VENDOR", "i", GL_VENDOR), + GB_CONSTANT("RENDERER", "i", GL_RENDERER), + GB_CONSTANT("VERSION", "i", GL_VERSION), + GB_CONSTANT("SHADING_LANGUAGE_VERSION", "i", GL_SHADING_LANGUAGE_VERSION), /* Primitives */ - GB_CONSTANT("GL_POINTS", "i", GL_POINTS), - GB_CONSTANT("GL_LINES", "i", GL_LINES), - GB_CONSTANT("GL_LINE_LOOP", "i", GL_LINE_LOOP), - GB_CONSTANT("GL_LINE_STRIP", "i", GL_LINE_STRIP), - GB_CONSTANT("GL_TRIANGLES", "i", GL_TRIANGLES), - GB_CONSTANT("GL_TRIANGLE_STRIP", "i", GL_TRIANGLE_STRIP), - GB_CONSTANT("GL_TRIANGLE_FAN", "i", GL_TRIANGLE_FAN), - GB_CONSTANT("GL_QUADS", "i", GL_QUADS), - GB_CONSTANT("GL_QUAD_STRIP", "i", GL_QUAD_STRIP), - GB_CONSTANT("GL_POLYGON", "i", GL_POLYGON), + GB_CONSTANT("POINTS", "i", GL_POINTS), + GB_CONSTANT("LINES", "i", GL_LINES), + GB_CONSTANT("LINE_LOOP", "i", GL_LINE_LOOP), + GB_CONSTANT("LINE_STRIP", "i", GL_LINE_STRIP), + GB_CONSTANT("TRIANGLES", "i", GL_TRIANGLES), + GB_CONSTANT("TRIANGLE_STRIP", "i", GL_TRIANGLE_STRIP), + GB_CONSTANT("TRIANGLE_FAN", "i", GL_TRIANGLE_FAN), + GB_CONSTANT("QUADS", "i", GL_QUADS), + GB_CONSTANT("QUAD_STRIP", "i", GL_QUAD_STRIP), + GB_CONSTANT("POLYGON", "i", GL_POLYGON), /* Matrix Mode */ - GB_CONSTANT("GL_MATRIX_MODE", "i", GL_MATRIX_MODE), - GB_CONSTANT("GL_MODELVIEW", "i", GL_MODELVIEW), - GB_CONSTANT("GL_PROJECTION", "i", GL_PROJECTION), - GB_CONSTANT("GL_TEXTURE", "i", GL_TEXTURE), + GB_CONSTANT("MATRIX_MODE", "i", GL_MATRIX_MODE), + GB_CONSTANT("MODELVIEW", "i", GL_MODELVIEW), + GB_CONSTANT("PROJECTION", "i", GL_PROJECTION), + GB_CONSTANT("TEXTURE", "i", GL_TEXTURE), /* Points */ - GB_CONSTANT("GL_POINT_SMOOTH", "i", GL_POINT_SMOOTH), - GB_CONSTANT("GL_POINT_SIZE", "i", GL_POINT_SIZE), - GB_CONSTANT("GL_SMOOTH_POINT_SIZE_GRANULARITY", "i", GL_SMOOTH_POINT_SIZE_GRANULARITY), - GB_CONSTANT("GL_SMOOTH_POINT_SIZE_RANGE", "i", GL_SMOOTH_POINT_SIZE_RANGE), + GB_CONSTANT("POINT_SMOOTH", "i", GL_POINT_SMOOTH), + GB_CONSTANT("POINT_SIZE", "i", GL_POINT_SIZE), + GB_CONSTANT("SMOOTH_POINT_SIZE_GRANULARITY", "i", GL_SMOOTH_POINT_SIZE_GRANULARITY), + GB_CONSTANT("SMOOTH_POINT_SIZE_RANGE", "i", GL_SMOOTH_POINT_SIZE_RANGE), /* Display Lists */ - GB_CONSTANT("GL_COMPILE", "i", GL_COMPILE), - GB_CONSTANT("GL_COMPILE_AND_EXECUTE", "i", GL_COMPILE_AND_EXECUTE), - GB_CONSTANT("GL_LIST_BASE", "i", GL_LIST_BASE), - GB_CONSTANT("GL_LIST_INDEX", "i", GL_LIST_INDEX), - GB_CONSTANT("GL_LIST_MODE" ,"i", GL_LIST_MODE), + GB_CONSTANT("COMPILE", "i", GL_COMPILE), + GB_CONSTANT("COMPILE_AND_EXECUTE", "i", GL_COMPILE_AND_EXECUTE), + GB_CONSTANT("LIST_BASE", "i", GL_LIST_BASE), + GB_CONSTANT("LIST_INDEX", "i", GL_LIST_INDEX), + GB_CONSTANT("LIST_MODE" ,"i", GL_LIST_MODE), /* Accumulation buffer */ - GB_CONSTANT("GL_ACCUM", "i", GL_ACCUM), - GB_CONSTANT("GL_ACCUM_ALPHA_BITS", "i", GL_ACCUM_ALPHA_BITS), - GB_CONSTANT("GL_ACCUM_CLEAR_VALUE", "i", GL_ACCUM_CLEAR_VALUE), - GB_CONSTANT("GL_ACCUM_BLUE_BITS", "i", GL_ACCUM_BLUE_BITS), - GB_CONSTANT("GL_ACCUM_GREEN_BITS", "i", GL_ACCUM_GREEN_BITS), - GB_CONSTANT("GL_ACCUM_RED_BITS", "i", GL_ACCUM_RED_BITS), - GB_CONSTANT("GL_ADD", "i", GL_ADD), - GB_CONSTANT("GL_LOAD", "i", GL_LOAD), - GB_CONSTANT("GL_MULT", "i", GL_MULT), - GB_CONSTANT("GL_RETURN", "i", GL_RETURN), + GB_CONSTANT("ACCUM", "i", GL_ACCUM), + GB_CONSTANT("ACCUM_ALPHA_BITS", "i", GL_ACCUM_ALPHA_BITS), + GB_CONSTANT("ACCUM_CLEAR_VALUE", "i", GL_ACCUM_CLEAR_VALUE), + GB_CONSTANT("ACCUM_BLUE_BITS", "i", GL_ACCUM_BLUE_BITS), + GB_CONSTANT("ACCUM_GREEN_BITS", "i", GL_ACCUM_GREEN_BITS), + GB_CONSTANT("ACCUM_RED_BITS", "i", GL_ACCUM_RED_BITS), + GB_CONSTANT("ADD", "i", GL_ADD), + GB_CONSTANT("LOAD", "i", GL_LOAD), + GB_CONSTANT("MULT", "i", GL_MULT), + GB_CONSTANT("RETURN", "i", GL_RETURN), /* User clipping planes */ - GB_CONSTANT("GL_CLIP_PLANE0", "i", GL_CLIP_PLANE0), - GB_CONSTANT("GL_CLIP_PLANE1", "i", GL_CLIP_PLANE1), - GB_CONSTANT("GL_CLIP_PLANE2", "i", GL_CLIP_PLANE2), - GB_CONSTANT("GL_CLIP_PLANE3", "i", GL_CLIP_PLANE3), - GB_CONSTANT("GL_CLIP_PLANE4", "i", GL_CLIP_PLANE4), - GB_CONSTANT("GL_CLIP_PLANE5", "i", GL_CLIP_PLANE5), + GB_CONSTANT("CLIP_PLANE0", "i", GL_CLIP_PLANE0), + GB_CONSTANT("CLIP_PLANE1", "i", GL_CLIP_PLANE1), + GB_CONSTANT("CLIP_PLANE2", "i", GL_CLIP_PLANE2), + GB_CONSTANT("CLIP_PLANE3", "i", GL_CLIP_PLANE3), + GB_CONSTANT("CLIP_PLANE4", "i", GL_CLIP_PLANE4), + GB_CONSTANT("CLIP_PLANE5", "i", GL_CLIP_PLANE5), /* Alpha testing */ - GB_CONSTANT("GL_ALPHA_TEST", "i", GL_ALPHA_TEST), - GB_CONSTANT("GL_ALPHA_TEST_REF", "i", GL_ALPHA_TEST_REF), - GB_CONSTANT("GL_ALPHA_TEST_FUNC", "i", GL_ALPHA_TEST_FUNC), + GB_CONSTANT("ALPHA_TEST", "i", GL_ALPHA_TEST), + GB_CONSTANT("ALPHA_TEST_REF", "i", GL_ALPHA_TEST_REF), + GB_CONSTANT("ALPHA_TEST_FUNC", "i", GL_ALPHA_TEST_FUNC), /* glPush/PopAttrib bits */ - GB_CONSTANT("GL_ACCUM_BUFFER_BIT", "i", GL_ACCUM_BUFFER_BIT), - GB_CONSTANT("GL_ALL_ATTRIB_BITS", "i", GL_ALL_ATTRIB_BITS), - GB_CONSTANT("GL_CURRENT_BIT", "i", GL_CURRENT_BIT), - GB_CONSTANT("GL_COLOR_BUFFER_BIT", "i", GL_COLOR_BUFFER_BIT), - GB_CONSTANT("GL_DEPTH_BUFFER_BIT", "i", GL_DEPTH_BUFFER_BIT), - GB_CONSTANT("GL_ENABLE_BIT", "i", GL_ENABLE_BIT), - GB_CONSTANT("GL_EVAL_BIT", "i", GL_EVAL_BIT), - GB_CONSTANT("GL_FOG_BIT", "i", GL_FOG_BIT), - GB_CONSTANT("GL_HINT_BIT", "i", GL_HINT_BIT), - GB_CONSTANT("GL_LIGHTING_BIT", "i", GL_LIGHTING_BIT), - GB_CONSTANT("GL_LINE_BIT", "i", GL_LINE_BIT), - GB_CONSTANT("GL_LIST_BIT", "i", GL_LIST_BIT), - GB_CONSTANT("GL_PIXEL_MODE_BIT", "i", GL_PIXEL_MODE_BIT), - GB_CONSTANT("GL_POINT_BIT", "i", GL_POINT_BIT), - GB_CONSTANT("GL_POLYGON_BIT", "i", GL_POLYGON_BIT), - GB_CONSTANT("GL_POLYGON_STIPPLE_BIT", "i", GL_POLYGON_STIPPLE_BIT), - GB_CONSTANT("GL_SCISSOR_BIT", "i", GL_SCISSOR_BIT), - GB_CONSTANT("GL_STENCIL_BUFFER_BIT", "i", GL_STENCIL_BUFFER_BIT), - GB_CONSTANT("GL_TEXTURE_BIT", "i", GL_TEXTURE_BIT), - GB_CONSTANT("GL_TRANSFORM_BIT", "i", GL_TRANSFORM_BIT), - GB_CONSTANT("GL_VIEWPORT_BIT", "i", GL_VIEWPORT_BIT), + GB_CONSTANT("ACCUM_BUFFER_BIT", "i", GL_ACCUM_BUFFER_BIT), + GB_CONSTANT("ALL_ATTRIB_BITS", "i", GL_ALL_ATTRIB_BITS), + GB_CONSTANT("CURRENT_BIT", "i", GL_CURRENT_BIT), + GB_CONSTANT("COLOR_BUFFER_BIT", "i", GL_COLOR_BUFFER_BIT), + GB_CONSTANT("DEPTH_BUFFER_BIT", "i", GL_DEPTH_BUFFER_BIT), + GB_CONSTANT("ENABLE_BIT", "i", GL_ENABLE_BIT), + GB_CONSTANT("EVAL_BIT", "i", GL_EVAL_BIT), + GB_CONSTANT("FOG_BIT", "i", GL_FOG_BIT), + GB_CONSTANT("HINT_BIT", "i", GL_HINT_BIT), + GB_CONSTANT("LIGHTING_BIT", "i", GL_LIGHTING_BIT), + GB_CONSTANT("LINE_BIT", "i", GL_LINE_BIT), + GB_CONSTANT("LIST_BIT", "i", GL_LIST_BIT), + GB_CONSTANT("PIXEL_MODE_BIT", "i", GL_PIXEL_MODE_BIT), + GB_CONSTANT("POINT_BIT", "i", GL_POINT_BIT), + GB_CONSTANT("POLYGON_BIT", "i", GL_POLYGON_BIT), + GB_CONSTANT("POLYGON_STIPPLE_BIT", "i", GL_POLYGON_STIPPLE_BIT), + GB_CONSTANT("SCISSOR_BIT", "i", GL_SCISSOR_BIT), + GB_CONSTANT("STENCIL_BUFFER_BIT", "i", GL_STENCIL_BUFFER_BIT), + GB_CONSTANT("TEXTURE_BIT", "i", GL_TEXTURE_BIT), + GB_CONSTANT("TRANSFORM_BIT", "i", GL_TRANSFORM_BIT), + GB_CONSTANT("VIEWPORT_BIT", "i", GL_VIEWPORT_BIT), /* Polygons */ - GB_CONSTANT("GL_POINT", "i", GL_POINT), - GB_CONSTANT("GL_LINE", "i", GL_LINE), - GB_CONSTANT("GL_FILL", "i", GL_FILL), - GB_CONSTANT("GL_CW", "i", GL_CW), - GB_CONSTANT("GL_CCW", "i", GL_CCW), - GB_CONSTANT("GL_FRONT", "i", GL_FRONT), - GB_CONSTANT("GL_BACK", "i", GL_BACK), - GB_CONSTANT("GL_POLYGON_MODE", "i", GL_POLYGON_MODE), - GB_CONSTANT("GL_POLYGON_SMOOTH", "i", GL_POLYGON_SMOOTH), - GB_CONSTANT("GL_POLYGON_STIPPLE", "i", GL_POLYGON_STIPPLE), - GB_CONSTANT("GL_EDGE_FLAG", "i", GL_EDGE_FLAG), - GB_CONSTANT("GL_CULL_FACE", "i", GL_CULL_FACE), - GB_CONSTANT("GL_CULL_FACE_MODE", "i", GL_CULL_FACE_MODE), - GB_CONSTANT("GL_FRONT_FACE", "i", GL_FRONT_FACE), + GB_CONSTANT("POINT", "i", GL_POINT), + GB_CONSTANT("LINE", "i", GL_LINE), + GB_CONSTANT("FILL", "i", GL_FILL), + GB_CONSTANT("CW", "i", GL_CW), + GB_CONSTANT("CCW", "i", GL_CCW), + GB_CONSTANT("FRONT", "i", GL_FRONT), + GB_CONSTANT("BACK", "i", GL_BACK), + GB_CONSTANT("POLYGON_MODE", "i", GL_POLYGON_MODE), + GB_CONSTANT("POLYGON_SMOOTH", "i", GL_POLYGON_SMOOTH), + GB_CONSTANT("POLYGON_STIPPLE", "i", GL_POLYGON_STIPPLE), + GB_CONSTANT("EDGE_FLAG", "i", GL_EDGE_FLAG), + GB_CONSTANT("CULL_FACE", "i", GL_CULL_FACE), + GB_CONSTANT("CULL_FACE_MODE", "i", GL_CULL_FACE_MODE), + GB_CONSTANT("FRONT_FACE", "i", GL_FRONT_FACE), #if 0 // ogl 1.1 : void glPolygonOffset( GLfloat factor,GLfloat units ) - GB_CONSTANT("GL_POLYGON_OFFSET_FACTOR", "i", GL_POLYGON_OFFSET_FACTOR), - GB_CONSTANT("GL_POLYGON_OFFSET_UNITS", "i", GL_POLYGON_OFFSET_UNITS), - GB_CONSTANT("GL_POLYGON_OFFSET_POINT", "i", GL_POLYGON_OFFSET_POINT), - GB_CONSTANT("GL_POLYGON_OFFSET_LINE", "i", GL_POLYGON_OFFSET_LINE), - GB_CONSTANT("GL_POLYGON_OFFSET_FILL", "i", GL_POLYGON_OFFSET_FILL), + GB_CONSTANT("POLYGON_OFFSET_FACTOR", "i", GL_POLYGON_OFFSET_FACTOR), + GB_CONSTANT("POLYGON_OFFSET_UNITS", "i", GL_POLYGON_OFFSET_UNITS), + GB_CONSTANT("POLYGON_OFFSET_POINT", "i", GL_POLYGON_OFFSET_POINT), + GB_CONSTANT("POLYGON_OFFSET_LINE", "i", GL_POLYGON_OFFSET_LINE), + GB_CONSTANT("POLYGON_OFFSET_FILL", "i", GL_POLYGON_OFFSET_FILL), #endif /* Depth buffer */ - GB_CONSTANT("GL_NEVER", "i", GL_NEVER), - GB_CONSTANT("GL_LESS", "i", GL_LESS), - GB_CONSTANT("GL_EQUAL", "i", GL_EQUAL), - GB_CONSTANT("GL_LEQUAL", "i", GL_LEQUAL), - GB_CONSTANT("GL_GREATER", "i", GL_GREATER), - GB_CONSTANT("GL_NOTEQUAL", "i", GL_NOTEQUAL), - GB_CONSTANT("GL_GEQUAL", "i", GL_GEQUAL), - GB_CONSTANT("GL_ALWAYS", "i", GL_ALWAYS), - GB_CONSTANT("GL_DEPTH_TEST", "i", GL_DEPTH_TEST), - GB_CONSTANT("GL_DEPTH_BITS", "i", GL_DEPTH_BITS), - GB_CONSTANT("GL_DEPTH_CLEAR_VALUE", "i", GL_DEPTH_CLEAR_VALUE), - GB_CONSTANT("GL_DEPTH_FUNC", "i", GL_DEPTH_FUNC), - GB_CONSTANT("GL_DEPTH_RANGE", "i", GL_DEPTH_RANGE), - GB_CONSTANT("GL_DEPTH_WRITEMASK", "i", GL_DEPTH_WRITEMASK), - GB_CONSTANT("GL_DEPTH_COMPONENT", "i", GL_DEPTH_COMPONENT), + GB_CONSTANT("NEVER", "i", GL_NEVER), + GB_CONSTANT("LESS", "i", GL_LESS), + GB_CONSTANT("EQUAL", "i", GL_EQUAL), + GB_CONSTANT("LEQUAL", "i", GL_LEQUAL), + GB_CONSTANT("GREATER", "i", GL_GREATER), + GB_CONSTANT("NOTEQUAL", "i", GL_NOTEQUAL), + GB_CONSTANT("GEQUAL", "i", GL_GEQUAL), + GB_CONSTANT("ALWAYS", "i", GL_ALWAYS), + GB_CONSTANT("DEPTH_TEST", "i", GL_DEPTH_TEST), + GB_CONSTANT("DEPTH_BITS", "i", GL_DEPTH_BITS), + GB_CONSTANT("DEPTH_CLEAR_VALUE", "i", GL_DEPTH_CLEAR_VALUE), + GB_CONSTANT("DEPTH_FUNC", "i", GL_DEPTH_FUNC), + GB_CONSTANT("DEPTH_RANGE", "i", GL_DEPTH_RANGE), + GB_CONSTANT("DEPTH_WRITEMASK", "i", GL_DEPTH_WRITEMASK), + GB_CONSTANT("DEPTH_COMPONENT", "i", GL_DEPTH_COMPONENT), /* Lines */ - GB_CONSTANT("GL_LINE_SMOOTH", "i", GL_LINE_SMOOTH), - GB_CONSTANT("GL_LINE_STIPPLE", "i", GL_LINE_STIPPLE), - GB_CONSTANT("GL_LINE_STIPPLE_PATTERN", "i", GL_LINE_STIPPLE_PATTERN), - GB_CONSTANT("GL_LINE_STIPPLE_REPEAT", "i", GL_LINE_STIPPLE_REPEAT), - GB_CONSTANT("GL_LINE_WIDTH", "i", GL_LINE_WIDTH), - GB_CONSTANT("GL_SMOOTH_LINE_WIDTH_GRANULARITY", "i", GL_SMOOTH_LINE_WIDTH_GRANULARITY), - GB_CONSTANT("GL_SMOOTH_LINE_WIDTH_RANGE", "i", GL_SMOOTH_LINE_WIDTH_RANGE), + GB_CONSTANT("LINE_SMOOTH", "i", GL_LINE_SMOOTH), + GB_CONSTANT("LINE_STIPPLE", "i", GL_LINE_STIPPLE), + GB_CONSTANT("LINE_STIPPLE_PATTERN", "i", GL_LINE_STIPPLE_PATTERN), + GB_CONSTANT("LINE_STIPPLE_REPEAT", "i", GL_LINE_STIPPLE_REPEAT), + GB_CONSTANT("LINE_WIDTH", "i", GL_LINE_WIDTH), + GB_CONSTANT("SMOOTH_LINE_WIDTH_GRANULARITY", "i", GL_SMOOTH_LINE_WIDTH_GRANULARITY), + GB_CONSTANT("SMOOTH_LINE_WIDTH_RANGE", "i", GL_SMOOTH_LINE_WIDTH_RANGE), /* Render Mode */ - GB_CONSTANT("GL_FEEDBACK", "i", GL_FEEDBACK), - GB_CONSTANT("GL_RENDER", "i", GL_RENDER), - GB_CONSTANT("GL_SELECT", "i", GL_SELECT), + GB_CONSTANT("FEEDBACK", "i", GL_FEEDBACK), + GB_CONSTANT("RENDER", "i", GL_RENDER), + GB_CONSTANT("SELECT", "i", GL_SELECT), /* Feedback */ - GB_CONSTANT("GL_2D", "i", GL_2D), - GB_CONSTANT("GL_3D", "i", GL_3D), - GB_CONSTANT("GL_3D_COLOR", "i", GL_3D_COLOR), - GB_CONSTANT("GL_3D_COLOR_TEXTURE", "i", GL_3D_COLOR_TEXTURE), - GB_CONSTANT("GL_4D_COLOR_TEXTURE", "i", GL_4D_COLOR_TEXTURE), - GB_CONSTANT("GL_POINT_TOKEN", "i", GL_POINT_TOKEN), - GB_CONSTANT("GL_LINE_TOKEN", "i", GL_LINE_TOKEN), - GB_CONSTANT("GL_LINE_RESET_TOKEN", "i", GL_LINE_RESET_TOKEN), - GB_CONSTANT("GL_POLYGON_TOKEN", "i", GL_POLYGON_TOKEN), - GB_CONSTANT("GL_BITMAP_TOKEN", "i", GL_BITMAP_TOKEN), - GB_CONSTANT("GL_DRAW_PIXEL_TOKEN", "i", GL_DRAW_PIXEL_TOKEN), - GB_CONSTANT("GL_COPY_PIXEL_TOKEN", "i", GL_COPY_PIXEL_TOKEN), - GB_CONSTANT("GL_PASS_THROUGH_TOKEN", "i", GL_PASS_THROUGH_TOKEN), - GB_CONSTANT("GL_FEEDBACK_BUFFER_POINTER", "i", GL_FEEDBACK_BUFFER_POINTER), - GB_CONSTANT("GL_FEEDBACK_BUFFER_SIZE", "i", GL_FEEDBACK_BUFFER_SIZE), - GB_CONSTANT("GL_FEEDBACK_BUFFER_TYPE", "i", GL_FEEDBACK_BUFFER_TYPE), + GB_CONSTANT("2D", "i", GL_2D), + GB_CONSTANT("3D", "i", GL_3D), + GB_CONSTANT("3D_COLOR", "i", GL_3D_COLOR), + GB_CONSTANT("3D_COLOR_TEXTURE", "i", GL_3D_COLOR_TEXTURE), + GB_CONSTANT("4D_COLOR_TEXTURE", "i", GL_4D_COLOR_TEXTURE), + GB_CONSTANT("POINT_TOKEN", "i", GL_POINT_TOKEN), + GB_CONSTANT("LINE_TOKEN", "i", GL_LINE_TOKEN), + GB_CONSTANT("LINE_RESET_TOKEN", "i", GL_LINE_RESET_TOKEN), + GB_CONSTANT("POLYGON_TOKEN", "i", GL_POLYGON_TOKEN), + GB_CONSTANT("BITMAP_TOKEN", "i", GL_BITMAP_TOKEN), + GB_CONSTANT("DRAW_PIXEL_TOKEN", "i", GL_DRAW_PIXEL_TOKEN), + GB_CONSTANT("COPY_PIXEL_TOKEN", "i", GL_COPY_PIXEL_TOKEN), + GB_CONSTANT("PASS_THROUGH_TOKEN", "i", GL_PASS_THROUGH_TOKEN), + GB_CONSTANT("FEEDBACK_BUFFER_POINTER", "i", GL_FEEDBACK_BUFFER_POINTER), + GB_CONSTANT("FEEDBACK_BUFFER_SIZE", "i", GL_FEEDBACK_BUFFER_SIZE), + GB_CONSTANT("FEEDBACK_BUFFER_TYPE", "i", GL_FEEDBACK_BUFFER_TYPE), /* Selection */ - GB_CONSTANT("GL_SELECTION_BUFFER_POINTER", "i", GL_SELECTION_BUFFER_POINTER), - GB_CONSTANT("GL_SELECTION_BUFFER_SIZE", "i", GL_SELECTION_BUFFER_SIZE), + GB_CONSTANT("SELECTION_BUFFER_POINTER", "i", GL_SELECTION_BUFFER_POINTER), + GB_CONSTANT("SELECTION_BUFFER_SIZE", "i", GL_SELECTION_BUFFER_SIZE), /* Fog */ - GB_CONSTANT("GL_FOG", "i", GL_FOG), - GB_CONSTANT("GL_FOG_MODE", "i", GL_FOG_MODE), - GB_CONSTANT("GL_FOG_DENSITY", "i", GL_FOG_DENSITY), - GB_CONSTANT("GL_FOG_COLOR", "i", GL_FOG_COLOR), - GB_CONSTANT("GL_FOG_INDEX", "i", GL_FOG_INDEX), - GB_CONSTANT("GL_FOG_START", "i", GL_FOG_START), - GB_CONSTANT("GL_FOG_END", "i", GL_FOG_END), - GB_CONSTANT("GL_LINEAR", "i", GL_LINEAR), - GB_CONSTANT("GL_EXP", "i", GL_EXP), - GB_CONSTANT("GL_EXP2", "i", GL_EXP2), + GB_CONSTANT("FOG", "i", GL_FOG), + GB_CONSTANT("FOG_MODE", "i", GL_FOG_MODE), + GB_CONSTANT("FOG_DENSITY", "i", GL_FOG_DENSITY), + GB_CONSTANT("FOG_COLOR", "i", GL_FOG_COLOR), + GB_CONSTANT("FOG_INDEX", "i", GL_FOG_INDEX), + GB_CONSTANT("FOG_START", "i", GL_FOG_START), + GB_CONSTANT("FOG_END", "i", GL_FOG_END), + GB_CONSTANT("LINEAR", "i", GL_LINEAR), + GB_CONSTANT("EXP", "i", GL_EXP), + GB_CONSTANT("EXP2", "i", GL_EXP2), /* Errors */ - GB_CONSTANT("GL_NO_ERROR", "i", GL_NO_ERROR), - GB_CONSTANT("GL_INVALID_VALUE", "i", GL_INVALID_VALUE), - GB_CONSTANT("GL_INVALID_ENUM", "i", GL_INVALID_ENUM), - GB_CONSTANT("GL_INVALID_OPERATION", "i", GL_INVALID_OPERATION), - GB_CONSTANT("GL_STACK_OVERFLOW", "i", GL_STACK_OVERFLOW), - GB_CONSTANT("GL_STACK_UNDERFLOW", "i", GL_STACK_UNDERFLOW), - GB_CONSTANT("GL_OUT_OF_MEMORY", "i", GL_OUT_OF_MEMORY), + GB_CONSTANT("NO_ERROR", "i", GL_NO_ERROR), + GB_CONSTANT("INVALID_VALUE", "i", GL_INVALID_VALUE), + GB_CONSTANT("INVALID_ENUM", "i", GL_INVALID_ENUM), + GB_CONSTANT("INVALID_OPERATION", "i", GL_INVALID_OPERATION), + GB_CONSTANT("STACK_OVERFLOW", "i", GL_STACK_OVERFLOW), + GB_CONSTANT("STACK_UNDERFLOW", "i", GL_STACK_UNDERFLOW), + GB_CONSTANT("OUT_OF_MEMORY", "i", GL_OUT_OF_MEMORY), /* Lighting */ - GB_CONSTANT("GL_LIGHTING", "i", GL_LIGHTING), - GB_CONSTANT("GL_LIGHT0", "i", GL_LIGHT0), - GB_CONSTANT("GL_LIGHT1", "i", GL_LIGHT1), - GB_CONSTANT("GL_LIGHT2", "i", GL_LIGHT2), - GB_CONSTANT("GL_LIGHT3", "i", GL_LIGHT3), - GB_CONSTANT("GL_LIGHT4", "i", GL_LIGHT4), - GB_CONSTANT("GL_LIGHT5", "i", GL_LIGHT5), - GB_CONSTANT("GL_LIGHT6", "i", GL_LIGHT6), - GB_CONSTANT("GL_LIGHT7", "i", GL_LIGHT7), - GB_CONSTANT("GL_SPOT_EXPONENT", "i", GL_SPOT_EXPONENT), - GB_CONSTANT("GL_SPOT_CUTTOFF", "i", GL_SPOT_CUTOFF), - GB_CONSTANT("GL_CONSTANT_ATTENUATION", "i", GL_CONSTANT_ATTENUATION), - GB_CONSTANT("GL_LINEAR_ATTENUATION", "i", GL_LINEAR_ATTENUATION), - GB_CONSTANT("GL_QUADRATIC_ATTENUATION", "i", GL_QUADRATIC_ATTENUATION), - GB_CONSTANT("GL_AMBIENT", "i", GL_AMBIENT), - GB_CONSTANT("GL_DIFFUSE", "i", GL_DIFFUSE), - GB_CONSTANT("GL_SPECULAR", "i", GL_SPECULAR), - GB_CONSTANT("GL_SHININESS", "i", GL_SHININESS), - GB_CONSTANT("GL_EMISSION", "i", GL_EMISSION), - GB_CONSTANT("GL_POSITION", "i", GL_POSITION), - GB_CONSTANT("GL_SPOT_DIRECTION", "i", GL_SPOT_DIRECTION), - GB_CONSTANT("GL_AMBIENT_AND_DIFFUSE", "i", GL_AMBIENT_AND_DIFFUSE), - GB_CONSTANT("GL_COLOR_INDEXES", "i", GL_COLOR_INDEXES), - GB_CONSTANT("GL_LIGHT_MODEL_TWO_SIDE", "i", GL_LIGHT_MODEL_TWO_SIDE), - GB_CONSTANT("GL_LIGHT_MODEL_LOCAL_VIEWER", "i", GL_LIGHT_MODEL_LOCAL_VIEWER), - GB_CONSTANT("GL_LIGHT_MODEL_AMBIENT", "i", GL_LIGHT_MODEL_AMBIENT), - GB_CONSTANT("GL_FRONT_AND_BACK", "i", GL_FRONT_AND_BACK), - GB_CONSTANT("GL_SHADE_MODEL", "i", GL_SHADE_MODEL), - GB_CONSTANT("GL_FLAT", "i", GL_FLAT), - GB_CONSTANT("GL_SMOOTH", "i", GL_SMOOTH), - GB_CONSTANT("GL_COLOR_MATERIAL", "i", GL_COLOR_MATERIAL), - GB_CONSTANT("GL_COLOR_MATERIAL_FACE", "i", GL_COLOR_MATERIAL_FACE), - GB_CONSTANT("GL_COLOR_MATERIAL_PARAMETER", "i", GL_COLOR_MATERIAL_PARAMETER), - GB_CONSTANT("GL_NORMALIZE", "i", GL_NORMALIZE), + GB_CONSTANT("LIGHTING", "i", GL_LIGHTING), + GB_CONSTANT("LIGHT0", "i", GL_LIGHT0), + GB_CONSTANT("LIGHT1", "i", GL_LIGHT1), + GB_CONSTANT("LIGHT2", "i", GL_LIGHT2), + GB_CONSTANT("LIGHT3", "i", GL_LIGHT3), + GB_CONSTANT("LIGHT4", "i", GL_LIGHT4), + GB_CONSTANT("LIGHT5", "i", GL_LIGHT5), + GB_CONSTANT("LIGHT6", "i", GL_LIGHT6), + GB_CONSTANT("LIGHT7", "i", GL_LIGHT7), + GB_CONSTANT("SPOT_EXPONENT", "i", GL_SPOT_EXPONENT), + GB_CONSTANT("SPOT_CUTTOFF", "i", GL_SPOT_CUTOFF), + GB_CONSTANT("CONSTANT_ATTENUATION", "i", GL_CONSTANT_ATTENUATION), + GB_CONSTANT("LINEAR_ATTENUATION", "i", GL_LINEAR_ATTENUATION), + GB_CONSTANT("QUADRATIC_ATTENUATION", "i", GL_QUADRATIC_ATTENUATION), + GB_CONSTANT("AMBIENT", "i", GL_AMBIENT), + GB_CONSTANT("DIFFUSE", "i", GL_DIFFUSE), + GB_CONSTANT("SPECULAR", "i", GL_SPECULAR), + GB_CONSTANT("SHININESS", "i", GL_SHININESS), + GB_CONSTANT("EMISSION", "i", GL_EMISSION), + GB_CONSTANT("POSITION", "i", GL_POSITION), + GB_CONSTANT("SPOT_DIRECTION", "i", GL_SPOT_DIRECTION), + GB_CONSTANT("AMBIENT_AND_DIFFUSE", "i", GL_AMBIENT_AND_DIFFUSE), + GB_CONSTANT("COLOR_INDEXES", "i", GL_COLOR_INDEXES), + GB_CONSTANT("LIGHT_MODEL_TWO_SIDE", "i", GL_LIGHT_MODEL_TWO_SIDE), + GB_CONSTANT("LIGHT_MODEL_LOCAL_VIEWER", "i", GL_LIGHT_MODEL_LOCAL_VIEWER), + GB_CONSTANT("LIGHT_MODEL_AMBIENT", "i", GL_LIGHT_MODEL_AMBIENT), + GB_CONSTANT("FRONT_AND_BACK", "i", GL_FRONT_AND_BACK), + GB_CONSTANT("SHADE_MODEL", "i", GL_SHADE_MODEL), + GB_CONSTANT("FLAT", "i", GL_FLAT), + GB_CONSTANT("SMOOTH", "i", GL_SMOOTH), + GB_CONSTANT("COLOR_MATERIAL", "i", GL_COLOR_MATERIAL), + GB_CONSTANT("COLOR_MATERIAL_FACE", "i", GL_COLOR_MATERIAL_FACE), + GB_CONSTANT("COLOR_MATERIAL_PARAMETER", "i", GL_COLOR_MATERIAL_PARAMETER), + GB_CONSTANT("NORMALIZE", "i", GL_NORMALIZE), /* Blending */ - GB_CONSTANT("GL_BLEND", "i", GL_BLEND), - GB_CONSTANT("GL_BLEND_SRC", "i", GL_BLEND_SRC), - GB_CONSTANT("GL_BLEND_DST", "i", GL_BLEND_DST), - GB_CONSTANT("GL_ZERO", "i", GL_ZERO), - GB_CONSTANT("GL_ONE", "i", GL_ONE), - GB_CONSTANT("GL_SRC_COLOR", "i", GL_SRC_COLOR), - GB_CONSTANT("GL_ONE_MINUS_SRC_COLOR", "i", GL_ONE_MINUS_SRC_COLOR), - GB_CONSTANT("GL_SRC_ALPHA", "i", GL_SRC_ALPHA), - GB_CONSTANT("GL_ONE_MINUS_SRC_ALPHA", "i", GL_ONE_MINUS_SRC_ALPHA), - GB_CONSTANT("GL_DST_ALPHA", "i", GL_DST_ALPHA), - GB_CONSTANT("GL_ONE_MINUS_DST_ALPHA", "i", GL_ONE_MINUS_DST_ALPHA), - GB_CONSTANT("GL_DST_COLOR", "i", GL_DST_COLOR), - GB_CONSTANT("GL_ONE_MINUS_DST_COLOR", "i", GL_ONE_MINUS_DST_COLOR), - GB_CONSTANT("GL_SRC_ALPHA_SATURATE", "i", GL_SRC_ALPHA_SATURATE), + GB_CONSTANT("BLEND", "i", GL_BLEND), + GB_CONSTANT("BLEND_SRC", "i", GL_BLEND_SRC), + GB_CONSTANT("BLEND_DST", "i", GL_BLEND_DST), + GB_CONSTANT("ZERO", "i", GL_ZERO), + GB_CONSTANT("ONE", "i", GL_ONE), + GB_CONSTANT("SRC_COLOR", "i", GL_SRC_COLOR), + GB_CONSTANT("ONE_MINUS_SRC_COLOR", "i", GL_ONE_MINUS_SRC_COLOR), + GB_CONSTANT("SRC_ALPHA", "i", GL_SRC_ALPHA), + GB_CONSTANT("ONE_MINUS_SRC_ALPHA", "i", GL_ONE_MINUS_SRC_ALPHA), + GB_CONSTANT("DST_ALPHA", "i", GL_DST_ALPHA), + GB_CONSTANT("ONE_MINUS_DST_ALPHA", "i", GL_ONE_MINUS_DST_ALPHA), + GB_CONSTANT("DST_COLOR", "i", GL_DST_COLOR), + GB_CONSTANT("ONE_MINUS_DST_COLOR", "i", GL_ONE_MINUS_DST_COLOR), + GB_CONSTANT("SRC_ALPHA_SATURATE", "i", GL_SRC_ALPHA_SATURATE), /* Logic Ops */ - GB_CONSTANT("GL_LOGIC_OP", "i", GL_LOGIC_OP), - GB_CONSTANT("GL_INDEX_LOGIC_OP", "i", GL_INDEX_LOGIC_OP), - GB_CONSTANT("GL_COLOR_LOGIC_OP", "i", GL_COLOR_LOGIC_OP), - GB_CONSTANT("GL_LOGIC_OP_MODE", "i", GL_LOGIC_OP_MODE), - GB_CONSTANT("GL_CLEAR", "i", GL_CLEAR), - GB_CONSTANT("GL_SET", "i", GL_SET), - GB_CONSTANT("GL_COPY", "i", GL_COPY), - GB_CONSTANT("GL_COPY_INVERTED", "i", GL_COPY_INVERTED), - GB_CONSTANT("GL_NOOP", "i", GL_NOOP), - GB_CONSTANT("GL_INVERT", "i", GL_INVERT), - GB_CONSTANT("GL_AND", "i", GL_AND), - GB_CONSTANT("GL_NAND", "i", GL_NAND), - GB_CONSTANT("GL_OR", "i", GL_OR), - GB_CONSTANT("GL_NOR", "i", GL_NOR), - GB_CONSTANT("GL_XOR", "i", GL_XOR), - GB_CONSTANT("GL_EQUIV", "i", GL_EQUIV), - GB_CONSTANT("GL_AND_REVERSE", "i", GL_AND_REVERSE), - GB_CONSTANT("GL_AND_INVERTED", "i", GL_AND_INVERTED), - GB_CONSTANT("GL_OR_REVERSE", "i", GL_OR_REVERSE), - GB_CONSTANT("GL_OR_INVERTED", "i", GL_OR_INVERTED), + GB_CONSTANT("LOGIC_OP", "i", GL_LOGIC_OP), + GB_CONSTANT("INDEX_LOGIC_OP", "i", GL_INDEX_LOGIC_OP), + GB_CONSTANT("COLOR_LOGIC_OP", "i", GL_COLOR_LOGIC_OP), + GB_CONSTANT("LOGIC_OP_MODE", "i", GL_LOGIC_OP_MODE), + GB_CONSTANT("CLEAR", "i", GL_CLEAR), + GB_CONSTANT("SET", "i", GL_SET), + GB_CONSTANT("COPY", "i", GL_COPY), + GB_CONSTANT("COPY_INVERTED", "i", GL_COPY_INVERTED), + GB_CONSTANT("NOOP", "i", GL_NOOP), + GB_CONSTANT("INVERT", "i", GL_INVERT), + GB_CONSTANT("AND", "i", GL_AND), + GB_CONSTANT("NAND", "i", GL_NAND), + GB_CONSTANT("OR", "i", GL_OR), + GB_CONSTANT("NOR", "i", GL_NOR), + GB_CONSTANT("XOR", "i", GL_XOR), + GB_CONSTANT("EQUIV", "i", GL_EQUIV), + GB_CONSTANT("AND_REVERSE", "i", GL_AND_REVERSE), + GB_CONSTANT("AND_INVERTED", "i", GL_AND_INVERTED), + GB_CONSTANT("OR_REVERSE", "i", GL_OR_REVERSE), + GB_CONSTANT("OR_INVERTED", "i", GL_OR_INVERTED), /* Stencil */ - GB_CONSTANT("GL_STENCIL_BITS", "i", GL_STENCIL_BITS), - GB_CONSTANT("GL_STENCIL_TEST", "i", GL_STENCIL_TEST), - GB_CONSTANT("GL_STENCIL_CLEAR_VALUE", "i", GL_STENCIL_CLEAR_VALUE), - GB_CONSTANT("GL_STENCIL_FUNC", "i", GL_STENCIL_FUNC), - GB_CONSTANT("GL_STENCIL_VALUE_MASK", "i", GL_STENCIL_VALUE_MASK), - GB_CONSTANT("GL_STENCIL_FAIL", "i", GL_STENCIL_FAIL), - GB_CONSTANT("GL_STENCIL_PASS_DEPTH_FAIL", "i", GL_STENCIL_PASS_DEPTH_FAIL), - GB_CONSTANT("GL_STENCIL_PASS_DEPTH_PASS", "i", GL_STENCIL_PASS_DEPTH_PASS), - GB_CONSTANT("GL_STENCIL_REF", "i", GL_STENCIL_REF), - GB_CONSTANT("GL_STENCIL_WRITEMASK", "i", GL_STENCIL_WRITEMASK), - GB_CONSTANT("GL_STENCIL_INDEX", "i", GL_STENCIL_INDEX), - GB_CONSTANT("GL_KEEP", "i", GL_KEEP), - GB_CONSTANT("GL_REPLACE", "i", GL_REPLACE), - GB_CONSTANT("GL_INCR", "i", GL_INCR), - GB_CONSTANT("GL_DECR", "i", GL_DECR), + GB_CONSTANT("STENCIL_BITS", "i", GL_STENCIL_BITS), + GB_CONSTANT("STENCIL_TEST", "i", GL_STENCIL_TEST), + GB_CONSTANT("STENCIL_CLEAR_VALUE", "i", GL_STENCIL_CLEAR_VALUE), + GB_CONSTANT("STENCIL_FUNC", "i", GL_STENCIL_FUNC), + GB_CONSTANT("STENCIL_VALUE_MASK", "i", GL_STENCIL_VALUE_MASK), + GB_CONSTANT("STENCIL_FAIL", "i", GL_STENCIL_FAIL), + GB_CONSTANT("STENCIL_PASS_DEPTH_FAIL", "i", GL_STENCIL_PASS_DEPTH_FAIL), + GB_CONSTANT("STENCIL_PASS_DEPTH_PASS", "i", GL_STENCIL_PASS_DEPTH_PASS), + GB_CONSTANT("STENCIL_REF", "i", GL_STENCIL_REF), + GB_CONSTANT("STENCIL_WRITEMASK", "i", GL_STENCIL_WRITEMASK), + GB_CONSTANT("STENCIL_INDEX", "i", GL_STENCIL_INDEX), + GB_CONSTANT("KEEP", "i", GL_KEEP), + GB_CONSTANT("REPLACE", "i", GL_REPLACE), + GB_CONSTANT("INCR", "i", GL_INCR), + GB_CONSTANT("DECR", "i", GL_DECR), /* Buffers, Pixel Drawing/Reading */ - GB_CONSTANT("GL_AUX0", "i", GL_AUX0), - GB_CONSTANT("GL_AUX1", "i", GL_AUX1), - GB_CONSTANT("GL_AUX2", "i", GL_AUX2), - GB_CONSTANT("GL_AUX3", "i", GL_AUX3), - GB_CONSTANT("GL_BACK_LEFT", "i", GL_BACK_LEFT), - GB_CONSTANT("GL_BACK_RIGHT", "i", GL_BACK_RIGHT), - GB_CONSTANT("GL_FRONT_LEFT", "i", GL_FRONT_LEFT), - GB_CONSTANT("GL_FRONT_RIGHT", "i", GL_FRONT_RIGHT), - GB_CONSTANT("GL_LEFT", "i", GL_LEFT), - GB_CONSTANT("GL_NONE", "i", GL_NONE), - GB_CONSTANT("GL_RIGHT", "i", GL_RIGHT), - GB_CONSTANT("GL_COLOR_INDEX", "i", GL_COLOR_INDEX), - GB_CONSTANT("GL_RED", "i", GL_RED), - GB_CONSTANT("GL_GREEN", "i", GL_GREEN), - GB_CONSTANT("GL_BLUE", "i", GL_BLUE), - GB_CONSTANT("GL_ALPHA", "i", GL_ALPHA), - GB_CONSTANT("GL_LUMINANCE", "i", GL_LUMINANCE), - GB_CONSTANT("GL_LUMINANCE_ALPHA", "i", GL_LUMINANCE_ALPHA), - GB_CONSTANT("GL_ALPHA_BITS", "i", GL_ALPHA_BITS), - GB_CONSTANT("GL_RED_BITS", "i", GL_RED_BITS), - GB_CONSTANT("GL_GREEN_BITS", "i", GL_GREEN_BITS), - GB_CONSTANT("GL_BLUE_BITS", "i", GL_BLUE_BITS), - GB_CONSTANT("GL_INDEX_BITS", "i", GL_INDEX_BITS), - GB_CONSTANT("GL_SUBPIXEL_BITS", "i", GL_SUBPIXEL_BITS), - GB_CONSTANT("GL_AUX_BUFFERS", "i", GL_AUX_BUFFERS), - GB_CONSTANT("GL_READ_BUFFER", "i", GL_READ_BUFFER), - GB_CONSTANT("GL_DRAW_BUFFER", "i", GL_DRAW_BUFFER), - GB_CONSTANT("GL_DOUBLEBUFFER", "i", GL_DOUBLEBUFFER), - GB_CONSTANT("GL_STEREO", "i", GL_STEREO), - GB_CONSTANT("GL_BITMAP", "i", GL_BITMAP), - GB_CONSTANT("GL_COLOR", "i", GL_COLOR), - GB_CONSTANT("GL_DEPTH", "i", GL_DEPTH), - GB_CONSTANT("GL_STENCIL", "i", GL_STENCIL), - GB_CONSTANT("GL_DITHER", "i", GL_DITHER), - GB_CONSTANT("GL_RGB", "i", GL_RGB), - GB_CONSTANT("GL_RGBA", "i", GL_RGBA), + GB_CONSTANT("AUX0", "i", GL_AUX0), + GB_CONSTANT("AUX1", "i", GL_AUX1), + GB_CONSTANT("AUX2", "i", GL_AUX2), + GB_CONSTANT("AUX3", "i", GL_AUX3), + GB_CONSTANT("BACK_LEFT", "i", GL_BACK_LEFT), + GB_CONSTANT("BACK_RIGHT", "i", GL_BACK_RIGHT), + GB_CONSTANT("FRONT_LEFT", "i", GL_FRONT_LEFT), + GB_CONSTANT("FRONT_RIGHT", "i", GL_FRONT_RIGHT), + GB_CONSTANT("LEFT", "i", GL_LEFT), + GB_CONSTANT("NONE", "i", GL_NONE), + GB_CONSTANT("RIGHT", "i", GL_RIGHT), + GB_CONSTANT("COLOR_INDEX", "i", GL_COLOR_INDEX), + GB_CONSTANT("RED", "i", GL_RED), + GB_CONSTANT("GREEN", "i", GL_GREEN), + GB_CONSTANT("BLUE", "i", GL_BLUE), + GB_CONSTANT("ALPHA", "i", GL_ALPHA), + GB_CONSTANT("LUMINANCE", "i", GL_LUMINANCE), + GB_CONSTANT("LUMINANCE_ALPHA", "i", GL_LUMINANCE_ALPHA), + GB_CONSTANT("ALPHA_BITS", "i", GL_ALPHA_BITS), + GB_CONSTANT("RED_BITS", "i", GL_RED_BITS), + GB_CONSTANT("GREEN_BITS", "i", GL_GREEN_BITS), + GB_CONSTANT("BLUE_BITS", "i", GL_BLUE_BITS), + GB_CONSTANT("INDEX_BITS", "i", GL_INDEX_BITS), + GB_CONSTANT("SUBPIXEL_BITS", "i", GL_SUBPIXEL_BITS), + GB_CONSTANT("AUX_BUFFERS", "i", GL_AUX_BUFFERS), + GB_CONSTANT("READ_BUFFER", "i", GL_READ_BUFFER), + GB_CONSTANT("DRAW_BUFFER", "i", GL_DRAW_BUFFER), + GB_CONSTANT("DOUBLEBUFFER", "i", GL_DOUBLEBUFFER), + GB_CONSTANT("STEREO", "i", GL_STEREO), + GB_CONSTANT("BITMAP", "i", GL_BITMAP), + GB_CONSTANT("COLOR", "i", GL_COLOR), + GB_CONSTANT("DEPTH", "i", GL_DEPTH), + GB_CONSTANT("STENCIL", "i", GL_STENCIL), + GB_CONSTANT("DITHER", "i", GL_DITHER), + GB_CONSTANT("RGB", "i", GL_RGB), + GB_CONSTANT("RGBA", "i", GL_RGBA), /* Implementation limits */ - GB_CONSTANT("GL_MAX_LIST_NESTING", "i", GL_MAX_LIST_NESTING), - GB_CONSTANT("GL_MAX_ATTRIB_STACK_DEPTH", "i", GL_MAX_ATTRIB_STACK_DEPTH), - GB_CONSTANT("GL_MAX_NAME_STACK_DEPTH", "i", GL_MAX_NAME_STACK_DEPTH), - GB_CONSTANT("GL_MAX_PROJECTION_STACK_DEPTH", "i", GL_MAX_PROJECTION_STACK_DEPTH), - GB_CONSTANT("GL_MAX_TEXTURE_STACK_DEPTH", "i", GL_MAX_TEXTURE_STACK_DEPTH), - GB_CONSTANT("GL_MAX_EVAL_ORDER", "i", GL_MAX_EVAL_ORDER), - GB_CONSTANT("GL_MAX_LIGHTS", "i", GL_MAX_LIGHTS), - GB_CONSTANT("GL_MAX_CLIP_PLANES", "i", GL_MAX_CLIP_PLANES), - GB_CONSTANT("GL_MAX_TEXTURE_SIZE", "i", GL_MAX_TEXTURE_SIZE), - GB_CONSTANT("GL_MAX_PIXEL_MAP_TABLE", "i", GL_MAX_PIXEL_MAP_TABLE), - GB_CONSTANT("GL_MAX_VIEWPORT_DIMS", "i", GL_MAX_VIEWPORT_DIMS), - GB_CONSTANT("GL_MAX_CLIENT_ATTRIB_STACK_DEPTH", "i", GL_MAX_CLIENT_ATTRIB_STACK_DEPTH), - GB_CONSTANT("GL_MAX_MODELVIEW_STACK_DEPTH", "i", GL_MAX_MODELVIEW_STACK_DEPTH), + GB_CONSTANT("MAX_LIST_NESTING", "i", GL_MAX_LIST_NESTING), + GB_CONSTANT("MAX_ATTRIB_STACK_DEPTH", "i", GL_MAX_ATTRIB_STACK_DEPTH), + GB_CONSTANT("MAX_NAME_STACK_DEPTH", "i", GL_MAX_NAME_STACK_DEPTH), + GB_CONSTANT("MAX_PROJECTION_STACK_DEPTH", "i", GL_MAX_PROJECTION_STACK_DEPTH), + GB_CONSTANT("MAX_TEXTURE_STACK_DEPTH", "i", GL_MAX_TEXTURE_STACK_DEPTH), + GB_CONSTANT("MAX_EVAL_ORDER", "i", GL_MAX_EVAL_ORDER), + GB_CONSTANT("MAX_LIGHTS", "i", GL_MAX_LIGHTS), + GB_CONSTANT("MAX_CLIP_PLANES", "i", GL_MAX_CLIP_PLANES), + GB_CONSTANT("MAX_TEXTURE_SIZE", "i", GL_MAX_TEXTURE_SIZE), + GB_CONSTANT("MAX_PIXEL_MAP_TABLE", "i", GL_MAX_PIXEL_MAP_TABLE), + GB_CONSTANT("MAX_VIEWPORT_DIMS", "i", GL_MAX_VIEWPORT_DIMS), + GB_CONSTANT("MAX_CLIENT_ATTRIB_STACK_DEPTH", "i", GL_MAX_CLIENT_ATTRIB_STACK_DEPTH), + GB_CONSTANT("MAX_MODELVIEW_STACK_DEPTH", "i", GL_MAX_MODELVIEW_STACK_DEPTH), /* Gets */ - GB_CONSTANT("GL_ATTRIB_STACK_DEPTH", "i", GL_ATTRIB_STACK_DEPTH), - GB_CONSTANT("GL_CLIENT_ATTRIB_STACK_DEPTH", "i", GL_CLIENT_ATTRIB_STACK_DEPTH), - GB_CONSTANT("GL_COLOR_CLEAR_VALUE", "i", GL_COLOR_CLEAR_VALUE), - GB_CONSTANT("GL_COLOR_WRITEMASK", "i", GL_COLOR_WRITEMASK), - GB_CONSTANT("GL_CURRENT_INDEX", "i", GL_CURRENT_INDEX), - GB_CONSTANT("GL_CURRENT_COLOR", "i", GL_CURRENT_COLOR), - GB_CONSTANT("GL_CURRENT_NORMAL", "i", GL_CURRENT_NORMAL), - GB_CONSTANT("GL_CURRENT_RASTER_COLOR", "i", GL_CURRENT_RASTER_COLOR), - GB_CONSTANT("GL_CURRENT_RASTER_DISTANCE", "i", GL_CURRENT_RASTER_DISTANCE), - GB_CONSTANT("GL_CURRENT_RASTER_INDEX", "i", GL_CURRENT_RASTER_INDEX), - GB_CONSTANT("GL_CURRENT_RASTER_POSITION", "i", GL_CURRENT_RASTER_POSITION), - GB_CONSTANT("GL_CURRENT_RASTER_TEXTURE_COORDS", "i", GL_CURRENT_RASTER_TEXTURE_COORDS), - GB_CONSTANT("GL_CURRENT_RASTER_POSITION_VALID", "i", GL_CURRENT_RASTER_POSITION_VALID), - GB_CONSTANT("GL_CURRENT_TEXTURE_COORDS", "i", GL_CURRENT_TEXTURE_COORDS), - GB_CONSTANT("GL_INDEX_CLEAR_VALUE", "i", GL_INDEX_CLEAR_VALUE), - GB_CONSTANT("GL_INDEX_MODE", "i", GL_INDEX_MODE), - GB_CONSTANT("GL_INDEX_WRITEMASK", "i", GL_INDEX_WRITEMASK), - GB_CONSTANT("GL_MODELVIEW_MATRIX", "i", GL_MODELVIEW_MATRIX), - GB_CONSTANT("GL_MODELVIEW_STACK_DEPTH", "i", GL_MODELVIEW_STACK_DEPTH), - GB_CONSTANT("GL_NAME_STACK_DEPTH", "i", GL_NAME_STACK_DEPTH), - GB_CONSTANT("GL_PROJECTION_MATRIX", "i", GL_PROJECTION_MATRIX), - GB_CONSTANT("GL_PROJECTION_STACK_DEPTH", "i", GL_PROJECTION_STACK_DEPTH), - GB_CONSTANT("GL_RENDER_MODE", "i", GL_RENDER_MODE), - GB_CONSTANT("GL_RGBA_MODE", "i", GL_RGBA_MODE), - GB_CONSTANT("GL_TEXTURE_MATRIX", "i", GL_TEXTURE_MATRIX), - GB_CONSTANT("GL_TEXTURE_STACK_DEPTH", "i", GL_TEXTURE_STACK_DEPTH), - GB_CONSTANT("GL_VIEWPORT", "i", GL_VIEWPORT), + GB_CONSTANT("ATTRIB_STACK_DEPTH", "i", GL_ATTRIB_STACK_DEPTH), + GB_CONSTANT("CLIENT_ATTRIB_STACK_DEPTH", "i", GL_CLIENT_ATTRIB_STACK_DEPTH), + GB_CONSTANT("COLOR_CLEAR_VALUE", "i", GL_COLOR_CLEAR_VALUE), + GB_CONSTANT("COLOR_WRITEMASK", "i", GL_COLOR_WRITEMASK), + GB_CONSTANT("CURRENT_INDEX", "i", GL_CURRENT_INDEX), + GB_CONSTANT("CURRENT_COLOR", "i", GL_CURRENT_COLOR), + GB_CONSTANT("CURRENT_NORMAL", "i", GL_CURRENT_NORMAL), + GB_CONSTANT("CURRENT_RASTER_COLOR", "i", GL_CURRENT_RASTER_COLOR), + GB_CONSTANT("CURRENT_RASTER_DISTANCE", "i", GL_CURRENT_RASTER_DISTANCE), + GB_CONSTANT("CURRENT_RASTER_INDEX", "i", GL_CURRENT_RASTER_INDEX), + GB_CONSTANT("CURRENT_RASTER_POSITION", "i", GL_CURRENT_RASTER_POSITION), + GB_CONSTANT("CURRENT_RASTER_TEXTURE_COORDS", "i", GL_CURRENT_RASTER_TEXTURE_COORDS), + GB_CONSTANT("CURRENT_RASTER_POSITION_VALID", "i", GL_CURRENT_RASTER_POSITION_VALID), + GB_CONSTANT("CURRENT_TEXTURE_COORDS", "i", GL_CURRENT_TEXTURE_COORDS), + GB_CONSTANT("INDEX_CLEAR_VALUE", "i", GL_INDEX_CLEAR_VALUE), + GB_CONSTANT("INDEX_MODE", "i", GL_INDEX_MODE), + GB_CONSTANT("INDEX_WRITEMASK", "i", GL_INDEX_WRITEMASK), + GB_CONSTANT("MODELVIEW_MATRIX", "i", GL_MODELVIEW_MATRIX), + GB_CONSTANT("MODELVIEW_STACK_DEPTH", "i", GL_MODELVIEW_STACK_DEPTH), + GB_CONSTANT("NAME_STACK_DEPTH", "i", GL_NAME_STACK_DEPTH), + GB_CONSTANT("PROJECTION_MATRIX", "i", GL_PROJECTION_MATRIX), + GB_CONSTANT("PROJECTION_STACK_DEPTH", "i", GL_PROJECTION_STACK_DEPTH), + GB_CONSTANT("RENDER_MODE", "i", GL_RENDER_MODE), + GB_CONSTANT("RGBA_MODE", "i", GL_RGBA_MODE), + GB_CONSTANT("TEXTURE_MATRIX", "i", GL_TEXTURE_MATRIX), + GB_CONSTANT("TEXTURE_STACK_DEPTH", "i", GL_TEXTURE_STACK_DEPTH), + GB_CONSTANT("VIEWPORT", "i", GL_VIEWPORT), /* Evaluators */ - GB_CONSTANT("GL_AUTO_NORMAL", "i", GL_AUTO_NORMAL), - GB_CONSTANT("GL_MAP1_COLOR_4","i", GL_MAP1_COLOR_4), - GB_CONSTANT("GL_MAP1_INDEX","i", GL_MAP1_INDEX), - GB_CONSTANT("GL_MAP1_NORMAL","i", GL_MAP1_NORMAL), - GB_CONSTANT("GL_MAP1_TEXTURE_COORD_1","i", GL_MAP1_TEXTURE_COORD_1), - GB_CONSTANT("GL_MAP1_TEXTURE_COORD_2","i", GL_MAP1_TEXTURE_COORD_2), - GB_CONSTANT("GL_MAP1_TEXTURE_COORD_3","i", GL_MAP1_TEXTURE_COORD_3), - GB_CONSTANT("GL_MAP1_TEXTURE_COORD_4","i", GL_MAP1_TEXTURE_COORD_4), - GB_CONSTANT("GL_MAP1_VERTEX_3","i", GL_MAP1_VERTEX_3), - GB_CONSTANT("GL_MAP1_VERTEX_4","i", GL_MAP1_VERTEX_4), - GB_CONSTANT("GL_MAP2_COLOR_4","i", GL_MAP2_COLOR_4), - GB_CONSTANT("GL_MAP2_INDEX","i", GL_MAP2_INDEX), - GB_CONSTANT("GL_MAP2_NORMAL","i", GL_MAP2_NORMAL), - GB_CONSTANT("GL_MAP2_TEXTURE_COORD_1","i", GL_MAP2_TEXTURE_COORD_1), - GB_CONSTANT("GL_MAP2_TEXTURE_COORD_2","i", GL_MAP2_TEXTURE_COORD_2), - GB_CONSTANT("GL_MAP2_TEXTURE_COORD_3","i", GL_MAP2_TEXTURE_COORD_3), - GB_CONSTANT("GL_MAP2_TEXTURE_COORD_4","i", GL_MAP2_TEXTURE_COORD_4), - GB_CONSTANT("GL_MAP2_VERTEX_3","i", GL_MAP2_VERTEX_3), - GB_CONSTANT("GL_MAP2_VERTEX_4","i", GL_MAP2_VERTEX_4), - GB_CONSTANT("GL_MAP1_GRID_DOMAIN","i", GL_MAP1_GRID_DOMAIN), - GB_CONSTANT("GL_MAP1_GRID_SEGMENTS","i", GL_MAP1_GRID_SEGMENTS), - GB_CONSTANT("GL_MAP2_GRID_DOMAIN","i", GL_MAP2_GRID_DOMAIN), - GB_CONSTANT("GL_MAP2_GRID_SEGMENTS","i", GL_MAP2_GRID_SEGMENTS), - GB_CONSTANT("GL_COEFF","i", GL_COEFF), - GB_CONSTANT("GL_ORDER","i", GL_ORDER), - GB_CONSTANT("GL_DOMAIN","i", GL_DOMAIN), + GB_CONSTANT("AUTO_NORMAL", "i", GL_AUTO_NORMAL), + GB_CONSTANT("MAP1_COLOR_4","i", GL_MAP1_COLOR_4), + GB_CONSTANT("MAP1_INDEX","i", GL_MAP1_INDEX), + GB_CONSTANT("MAP1_NORMAL","i", GL_MAP1_NORMAL), + GB_CONSTANT("MAP1_TEXTURE_COORD_1","i", GL_MAP1_TEXTURE_COORD_1), + GB_CONSTANT("MAP1_TEXTURE_COORD_2","i", GL_MAP1_TEXTURE_COORD_2), + GB_CONSTANT("MAP1_TEXTURE_COORD_3","i", GL_MAP1_TEXTURE_COORD_3), + GB_CONSTANT("MAP1_TEXTURE_COORD_4","i", GL_MAP1_TEXTURE_COORD_4), + GB_CONSTANT("MAP1_VERTEX_3","i", GL_MAP1_VERTEX_3), + GB_CONSTANT("MAP1_VERTEX_4","i", GL_MAP1_VERTEX_4), + GB_CONSTANT("MAP2_COLOR_4","i", GL_MAP2_COLOR_4), + GB_CONSTANT("MAP2_INDEX","i", GL_MAP2_INDEX), + GB_CONSTANT("MAP2_NORMAL","i", GL_MAP2_NORMAL), + GB_CONSTANT("MAP2_TEXTURE_COORD_1","i", GL_MAP2_TEXTURE_COORD_1), + GB_CONSTANT("MAP2_TEXTURE_COORD_2","i", GL_MAP2_TEXTURE_COORD_2), + GB_CONSTANT("MAP2_TEXTURE_COORD_3","i", GL_MAP2_TEXTURE_COORD_3), + GB_CONSTANT("MAP2_TEXTURE_COORD_4","i", GL_MAP2_TEXTURE_COORD_4), + GB_CONSTANT("MAP2_VERTEX_3","i", GL_MAP2_VERTEX_3), + GB_CONSTANT("MAP2_VERTEX_4","i", GL_MAP2_VERTEX_4), + GB_CONSTANT("MAP1_GRID_DOMAIN","i", GL_MAP1_GRID_DOMAIN), + GB_CONSTANT("MAP1_GRID_SEGMENTS","i", GL_MAP1_GRID_SEGMENTS), + GB_CONSTANT("MAP2_GRID_DOMAIN","i", GL_MAP2_GRID_DOMAIN), + GB_CONSTANT("MAP2_GRID_SEGMENTS","i", GL_MAP2_GRID_SEGMENTS), + GB_CONSTANT("COEFF","i", GL_COEFF), + GB_CONSTANT("ORDER","i", GL_ORDER), + GB_CONSTANT("DOMAIN","i", GL_DOMAIN), /* Hints */ - GB_CONSTANT("GL_FOG_HINT", "i", GL_FOG_HINT), - GB_CONSTANT("GL_LINE_SMOOTH_HINT", "i", GL_LINE_SMOOTH_HINT), - GB_CONSTANT("GL_PERSPECTIVE_CORRECTION_HINT", "i", GL_PERSPECTIVE_CORRECTION_HINT), - GB_CONSTANT("GL_POINT_SMOOTH_HINT", "i", GL_POINT_SMOOTH_HINT), - GB_CONSTANT("GL_POLYGON_SMOOTH_HINT", "i", GL_POLYGON_SMOOTH_HINT), - GB_CONSTANT("GL_DONT_CARE", "i", GL_DONT_CARE), - GB_CONSTANT("GL_FASTEST", "i", GL_FASTEST), - GB_CONSTANT("GL_NICEST", "i", GL_NICEST), + GB_CONSTANT("FOG_HINT", "i", GL_FOG_HINT), + GB_CONSTANT("LINE_SMOOTH_HINT", "i", GL_LINE_SMOOTH_HINT), + GB_CONSTANT("PERSPECTIVE_CORRECTION_HINT", "i", GL_PERSPECTIVE_CORRECTION_HINT), + GB_CONSTANT("POINT_SMOOTH_HINT", "i", GL_POINT_SMOOTH_HINT), + GB_CONSTANT("POLYGON_SMOOTH_HINT", "i", GL_POLYGON_SMOOTH_HINT), + GB_CONSTANT("DONT_CARE", "i", GL_DONT_CARE), + GB_CONSTANT("FASTEST", "i", GL_FASTEST), + GB_CONSTANT("NICEST", "i", GL_NICEST), /* Scissor box */ - GB_CONSTANT("GL_SCISSOR_BOX", "i", GL_SCISSOR_BOX), - GB_CONSTANT("GL_SCISSOR_TEST", "i", GL_SCISSOR_TEST), + GB_CONSTANT("SCISSOR_BOX", "i", GL_SCISSOR_BOX), + GB_CONSTANT("SCISSOR_TEST", "i", GL_SCISSOR_TEST), /* Pixel Mode / Transfer */ - GB_CONSTANT("GL_MAP_COLOR", "i", GL_MAP_COLOR), - GB_CONSTANT("GL_MAP_STENCIL", "i", GL_MAP_STENCIL), - GB_CONSTANT("GL_INDEX_SHIFT", "i", GL_INDEX_SHIFT), - GB_CONSTANT("GL_INDEX_OFFSET", "i", GL_INDEX_OFFSET), - GB_CONSTANT("GL_RED_SCALE", "i", GL_RED_SCALE), - GB_CONSTANT("GL_RED_BIAS", "i", GL_RED_BIAS), - GB_CONSTANT("GL_GREEN_SCALE", "i", GL_GREEN_SCALE), - GB_CONSTANT("GL_GREEN_BIAS", "i", GL_GREEN_BIAS), - GB_CONSTANT("GL_BLUE_SCALE", "i", GL_BLUE_SCALE), - GB_CONSTANT("GL_BLUE_BIAS", "i", GL_BLUE_BIAS), - GB_CONSTANT("GL_ALPHA_SCALE", "i", GL_ALPHA_SCALE), - GB_CONSTANT("GL_ALPHA_BIAS", "i", GL_ALPHA_BIAS), - GB_CONSTANT("GL_DEPTH_SCALE", "i", GL_DEPTH_SCALE), - GB_CONSTANT("GL_DEPTH_BIAS", "i", GL_DEPTH_BIAS), - GB_CONSTANT("GL_PIXEL_MAP_S_TO_S_SIZE", "i", GL_PIXEL_MAP_S_TO_S_SIZE), - GB_CONSTANT("GL_PIXEL_MAP_I_TO_I_SIZE", "i", GL_PIXEL_MAP_I_TO_I_SIZE), - GB_CONSTANT("GL_PIXEL_MAP_I_TO_R_SIZE", "i", GL_PIXEL_MAP_I_TO_R_SIZE), - GB_CONSTANT("GL_PIXEL_MAP_I_TO_G_SIZE", "i", GL_PIXEL_MAP_I_TO_G_SIZE), - GB_CONSTANT("GL_PIXEL_MAP_I_TO_B_SIZE", "i", GL_PIXEL_MAP_I_TO_B_SIZE), - GB_CONSTANT("GL_PIXEL_MAP_I_TO_A_SIZE", "i", GL_PIXEL_MAP_I_TO_A_SIZE), - GB_CONSTANT("GL_PIXEL_MAP_R_TO_R_SIZE", "i", GL_PIXEL_MAP_R_TO_R_SIZE), - GB_CONSTANT("GL_PIXEL_MAP_G_TO_G_SIZE", "i", GL_PIXEL_MAP_G_TO_G_SIZE), - GB_CONSTANT("GL_PIXEL_MAP_B_TO_B_SIZE", "i", GL_PIXEL_MAP_B_TO_B_SIZE), - GB_CONSTANT("GL_PIXEL_MAP_A_TO_A_SIZE", "i", GL_PIXEL_MAP_A_TO_A_SIZE), - GB_CONSTANT("GL_PIXEL_MAP_S_TO_S", "i", GL_PIXEL_MAP_S_TO_S), - GB_CONSTANT("GL_PIXEL_MAP_I_TO_I", "i", GL_PIXEL_MAP_I_TO_I), - GB_CONSTANT("GL_PIXEL_MAP_I_TO_R", "i", GL_PIXEL_MAP_I_TO_R), - GB_CONSTANT("GL_PIXEL_MAP_I_TO_G", "i", GL_PIXEL_MAP_I_TO_G), - GB_CONSTANT("GL_PIXEL_MAP_I_TO_B", "i", GL_PIXEL_MAP_I_TO_B), - GB_CONSTANT("GL_PIXEL_MAP_I_TO_A", "i", GL_PIXEL_MAP_I_TO_A), - GB_CONSTANT("GL_PIXEL_MAP_R_TO_R", "i", GL_PIXEL_MAP_R_TO_R), - GB_CONSTANT("GL_PIXEL_MAP_G_TO_G", "i", GL_PIXEL_MAP_G_TO_G), - GB_CONSTANT("GL_PIXEL_MAP_B_TO_B", "i", GL_PIXEL_MAP_B_TO_B), - GB_CONSTANT("GL_PIXEL_MAP_A_TO_A", "i", GL_PIXEL_MAP_A_TO_A), - GB_CONSTANT("GL_PACK_ALIGNMENT", "i", GL_PACK_ALIGNMENT), - GB_CONSTANT("GL_PACK_LSB_FIRST", "i", GL_PACK_LSB_FIRST), - GB_CONSTANT("GL_PACK_ROW_LENGTH", "i", GL_PACK_ROW_LENGTH), - GB_CONSTANT("GL_PACK_SKIP_PIXELS", "i", GL_PACK_SKIP_PIXELS), - GB_CONSTANT("GL_PACK_SKIP_ROWS", "i", GL_PACK_SKIP_ROWS), - GB_CONSTANT("GL_PACK_SWAP_BYTES", "i", GL_PACK_SWAP_BYTES), - GB_CONSTANT("GL_UNPACK_ALIGNMENT", "i", GL_UNPACK_ALIGNMENT), - GB_CONSTANT("GL_UNPACK_LSB_FIRST", "i", GL_UNPACK_LSB_FIRST), - GB_CONSTANT("GL_UNPACK_ROW_LENGTH", "i", GL_UNPACK_ROW_LENGTH), - GB_CONSTANT("GL_UNPACK_SKIP_PIXELS", "i", GL_UNPACK_SKIP_PIXELS), - GB_CONSTANT("GL_UNPACK_SKIP_ROWS", "i", GL_UNPACK_SKIP_ROWS), - GB_CONSTANT("GL_UNPACK_SWAP_BYTES", "i", GL_UNPACK_SWAP_BYTES), - GB_CONSTANT("GL_ZOOM_X", "i", GL_ZOOM_X), - GB_CONSTANT("GL_ZOOM_Y", "i", GL_ZOOM_Y), + GB_CONSTANT("MAP_COLOR", "i", GL_MAP_COLOR), + GB_CONSTANT("MAP_STENCIL", "i", GL_MAP_STENCIL), + GB_CONSTANT("INDEX_SHIFT", "i", GL_INDEX_SHIFT), + GB_CONSTANT("INDEX_OFFSET", "i", GL_INDEX_OFFSET), + GB_CONSTANT("RED_SCALE", "i", GL_RED_SCALE), + GB_CONSTANT("RED_BIAS", "i", GL_RED_BIAS), + GB_CONSTANT("GREEN_SCALE", "i", GL_GREEN_SCALE), + GB_CONSTANT("GREEN_BIAS", "i", GL_GREEN_BIAS), + GB_CONSTANT("BLUE_SCALE", "i", GL_BLUE_SCALE), + GB_CONSTANT("BLUE_BIAS", "i", GL_BLUE_BIAS), + GB_CONSTANT("ALPHA_SCALE", "i", GL_ALPHA_SCALE), + GB_CONSTANT("ALPHA_BIAS", "i", GL_ALPHA_BIAS), + GB_CONSTANT("DEPTH_SCALE", "i", GL_DEPTH_SCALE), + GB_CONSTANT("DEPTH_BIAS", "i", GL_DEPTH_BIAS), + GB_CONSTANT("PIXEL_MAP_S_TO_S_SIZE", "i", GL_PIXEL_MAP_S_TO_S_SIZE), + GB_CONSTANT("PIXEL_MAP_I_TO_I_SIZE", "i", GL_PIXEL_MAP_I_TO_I_SIZE), + GB_CONSTANT("PIXEL_MAP_I_TO_R_SIZE", "i", GL_PIXEL_MAP_I_TO_R_SIZE), + GB_CONSTANT("PIXEL_MAP_I_TO_G_SIZE", "i", GL_PIXEL_MAP_I_TO_G_SIZE), + GB_CONSTANT("PIXEL_MAP_I_TO_B_SIZE", "i", GL_PIXEL_MAP_I_TO_B_SIZE), + GB_CONSTANT("PIXEL_MAP_I_TO_A_SIZE", "i", GL_PIXEL_MAP_I_TO_A_SIZE), + GB_CONSTANT("PIXEL_MAP_R_TO_R_SIZE", "i", GL_PIXEL_MAP_R_TO_R_SIZE), + GB_CONSTANT("PIXEL_MAP_G_TO_G_SIZE", "i", GL_PIXEL_MAP_G_TO_G_SIZE), + GB_CONSTANT("PIXEL_MAP_B_TO_B_SIZE", "i", GL_PIXEL_MAP_B_TO_B_SIZE), + GB_CONSTANT("PIXEL_MAP_A_TO_A_SIZE", "i", GL_PIXEL_MAP_A_TO_A_SIZE), + GB_CONSTANT("PIXEL_MAP_S_TO_S", "i", GL_PIXEL_MAP_S_TO_S), + GB_CONSTANT("PIXEL_MAP_I_TO_I", "i", GL_PIXEL_MAP_I_TO_I), + GB_CONSTANT("PIXEL_MAP_I_TO_R", "i", GL_PIXEL_MAP_I_TO_R), + GB_CONSTANT("PIXEL_MAP_I_TO_G", "i", GL_PIXEL_MAP_I_TO_G), + GB_CONSTANT("PIXEL_MAP_I_TO_B", "i", GL_PIXEL_MAP_I_TO_B), + GB_CONSTANT("PIXEL_MAP_I_TO_A", "i", GL_PIXEL_MAP_I_TO_A), + GB_CONSTANT("PIXEL_MAP_R_TO_R", "i", GL_PIXEL_MAP_R_TO_R), + GB_CONSTANT("PIXEL_MAP_G_TO_G", "i", GL_PIXEL_MAP_G_TO_G), + GB_CONSTANT("PIXEL_MAP_B_TO_B", "i", GL_PIXEL_MAP_B_TO_B), + GB_CONSTANT("PIXEL_MAP_A_TO_A", "i", GL_PIXEL_MAP_A_TO_A), + GB_CONSTANT("PACK_ALIGNMENT", "i", GL_PACK_ALIGNMENT), + GB_CONSTANT("PACK_LSB_FIRST", "i", GL_PACK_LSB_FIRST), + GB_CONSTANT("PACK_ROW_LENGTH", "i", GL_PACK_ROW_LENGTH), + GB_CONSTANT("PACK_SKIP_PIXELS", "i", GL_PACK_SKIP_PIXELS), + GB_CONSTANT("PACK_SKIP_ROWS", "i", GL_PACK_SKIP_ROWS), + GB_CONSTANT("PACK_SWAP_BYTES", "i", GL_PACK_SWAP_BYTES), + GB_CONSTANT("UNPACK_ALIGNMENT", "i", GL_UNPACK_ALIGNMENT), + GB_CONSTANT("UNPACK_LSB_FIRST", "i", GL_UNPACK_LSB_FIRST), + GB_CONSTANT("UNPACK_ROW_LENGTH", "i", GL_UNPACK_ROW_LENGTH), + GB_CONSTANT("UNPACK_SKIP_PIXELS", "i", GL_UNPACK_SKIP_PIXELS), + GB_CONSTANT("UNPACK_SKIP_ROWS", "i", GL_UNPACK_SKIP_ROWS), + GB_CONSTANT("UNPACK_SWAP_BYTES", "i", GL_UNPACK_SWAP_BYTES), + GB_CONSTANT("ZOOM_X", "i", GL_ZOOM_X), + GB_CONSTANT("ZOOM_Y", "i", GL_ZOOM_Y), /* Texture mapping */ - GB_CONSTANT("GL_TEXTURE_ENV", "i", GL_TEXTURE_ENV), - GB_CONSTANT("GL_TEXTURE_ENV_MODE", "i", GL_TEXTURE_ENV_MODE), - GB_CONSTANT("GL_TEXTURE_1D", "i", GL_TEXTURE_1D), - GB_CONSTANT("GL_TEXTURE_2D", "i", GL_TEXTURE_2D), - GB_CONSTANT("GL_TEXTURE_WRAP_S", "i", GL_TEXTURE_WRAP_S), - GB_CONSTANT("GL_TEXTURE_WRAP_T", "i", GL_TEXTURE_WRAP_T), - GB_CONSTANT("GL_TEXTURE_MAG_FILTER", "i", GL_TEXTURE_MAG_FILTER), - GB_CONSTANT("GL_TEXTURE_MIN_FILTER", "i", GL_TEXTURE_MIN_FILTER), - GB_CONSTANT("GL_TEXTURE_ENV_COLOR", "i", GL_TEXTURE_ENV_COLOR), - GB_CONSTANT("GL_TEXTURE_GEN_S", "i", GL_TEXTURE_GEN_S), - GB_CONSTANT("GL_TEXTURE_GEN_T", "i", GL_TEXTURE_GEN_T), - GB_CONSTANT("GL_TEXTURE_GEN_MODE", "i", GL_TEXTURE_GEN_MODE), - GB_CONSTANT("GL_TEXTURE_BORDER_COLOR", "i", GL_TEXTURE_BORDER_COLOR), - GB_CONSTANT("GL_TEXTURE_WIDTH", "i", GL_TEXTURE_WIDTH), - GB_CONSTANT("GL_TEXTURE_HEIGHT", "i", GL_TEXTURE_HEIGHT), - GB_CONSTANT("GL_TEXTURE_BORDER", "i", GL_TEXTURE_BORDER), - GB_CONSTANT("GL_TEXTURE_COMPONENTS", "i", GL_TEXTURE_COMPONENTS), - GB_CONSTANT("GL_TEXTURE_RED_SIZE", "i", GL_TEXTURE_RED_SIZE), - GB_CONSTANT("GL_TEXTURE_GREEN_SIZE", "i", GL_TEXTURE_GREEN_SIZE), - GB_CONSTANT("GL_TEXTURE_BLUE_SIZE", "i", GL_TEXTURE_BLUE_SIZE), - GB_CONSTANT("GL_TEXTURE_ALPHA_SIZE", "i", GL_TEXTURE_ALPHA_SIZE), - GB_CONSTANT("GL_TEXTURE_LUMINANCE_SIZE", "i", GL_TEXTURE_LUMINANCE_SIZE), - GB_CONSTANT("GL_TEXTURE_INTENSITY_SIZE", "i", GL_TEXTURE_INTENSITY_SIZE), - GB_CONSTANT("GL_NEAREST_MIPMAP_NEAREST", "i", GL_NEAREST_MIPMAP_NEAREST), - GB_CONSTANT("GL_NEAREST_MIPMAP_LINEAR", "i", GL_NEAREST_MIPMAP_LINEAR), - GB_CONSTANT("GL_LINEAR_MIPMAP_NEAREST", "i", GL_LINEAR_MIPMAP_NEAREST), - GB_CONSTANT("GL_LINEAR_MIPMAP_LINEAR", "i", GL_LINEAR_MIPMAP_LINEAR), - GB_CONSTANT("GL_OBJECT_LINEAR", "i", GL_OBJECT_LINEAR), - GB_CONSTANT("GL_OBJECT_PLANE", "i", GL_OBJECT_PLANE), - GB_CONSTANT("GL_EYE_LINEAR", "i", GL_EYE_LINEAR), - GB_CONSTANT("GL_EYE_PLANE", "i", GL_EYE_PLANE), - GB_CONSTANT("GL_SPHERE_MAP", "i", GL_SPHERE_MAP), - GB_CONSTANT("GL_DECAL", "i", GL_DECAL), - GB_CONSTANT("GL_MODULATE", "i", GL_MODULATE), - GB_CONSTANT("GL_NEAREST", "i", GL_NEAREST), - GB_CONSTANT("GL_REPEAT", "i", GL_REPEAT), - GB_CONSTANT("GL_CLAMP", "i", GL_CLAMP), - GB_CONSTANT("GL_S", "i", GL_S), - GB_CONSTANT("GL_T", "i", GL_T), - GB_CONSTANT("GL_R", "i", GL_R), - GB_CONSTANT("GL_Q", "i", GL_Q), - GB_CONSTANT("GL_TEXTURE_GEN_R", "i", GL_TEXTURE_GEN_R), - GB_CONSTANT("GL_TEXTURE_GEN_Q", "i", GL_TEXTURE_GEN_Q), + GB_CONSTANT("TEXTURE_ENV", "i", GL_TEXTURE_ENV), + GB_CONSTANT("TEXTURE_ENV_MODE", "i", GL_TEXTURE_ENV_MODE), + GB_CONSTANT("TEXTURE_1D", "i", GL_TEXTURE_1D), + GB_CONSTANT("TEXTURE_2D", "i", GL_TEXTURE_2D), + GB_CONSTANT("TEXTURE_WRAP_S", "i", GL_TEXTURE_WRAP_S), + GB_CONSTANT("TEXTURE_WRAP_T", "i", GL_TEXTURE_WRAP_T), + GB_CONSTANT("TEXTURE_MAG_FILTER", "i", GL_TEXTURE_MAG_FILTER), + GB_CONSTANT("TEXTURE_MIN_FILTER", "i", GL_TEXTURE_MIN_FILTER), + GB_CONSTANT("TEXTURE_ENV_COLOR", "i", GL_TEXTURE_ENV_COLOR), + GB_CONSTANT("TEXTURE_GEN_S", "i", GL_TEXTURE_GEN_S), + GB_CONSTANT("TEXTURE_GEN_T", "i", GL_TEXTURE_GEN_T), + GB_CONSTANT("TEXTURE_GEN_MODE", "i", GL_TEXTURE_GEN_MODE), + GB_CONSTANT("TEXTURE_BORDER_COLOR", "i", GL_TEXTURE_BORDER_COLOR), + GB_CONSTANT("TEXTURE_WIDTH", "i", GL_TEXTURE_WIDTH), + GB_CONSTANT("TEXTURE_HEIGHT", "i", GL_TEXTURE_HEIGHT), + GB_CONSTANT("TEXTURE_BORDER", "i", GL_TEXTURE_BORDER), + GB_CONSTANT("TEXTURE_COMPONENTS", "i", GL_TEXTURE_COMPONENTS), + GB_CONSTANT("TEXTURE_RED_SIZE", "i", GL_TEXTURE_RED_SIZE), + GB_CONSTANT("TEXTURE_GREEN_SIZE", "i", GL_TEXTURE_GREEN_SIZE), + GB_CONSTANT("TEXTURE_BLUE_SIZE", "i", GL_TEXTURE_BLUE_SIZE), + GB_CONSTANT("TEXTURE_ALPHA_SIZE", "i", GL_TEXTURE_ALPHA_SIZE), + GB_CONSTANT("TEXTURE_LUMINANCE_SIZE", "i", GL_TEXTURE_LUMINANCE_SIZE), + GB_CONSTANT("TEXTURE_INTENSITY_SIZE", "i", GL_TEXTURE_INTENSITY_SIZE), + GB_CONSTANT("NEAREST_MIPMAP_NEAREST", "i", GL_NEAREST_MIPMAP_NEAREST), + GB_CONSTANT("NEAREST_MIPMAP_LINEAR", "i", GL_NEAREST_MIPMAP_LINEAR), + GB_CONSTANT("LINEAR_MIPMAP_NEAREST", "i", GL_LINEAR_MIPMAP_NEAREST), + GB_CONSTANT("LINEAR_MIPMAP_LINEAR", "i", GL_LINEAR_MIPMAP_LINEAR), + GB_CONSTANT("OBJECT_LINEAR", "i", GL_OBJECT_LINEAR), + GB_CONSTANT("OBJECT_PLANE", "i", GL_OBJECT_PLANE), + GB_CONSTANT("EYE_LINEAR", "i", GL_EYE_LINEAR), + GB_CONSTANT("EYE_PLANE", "i", GL_EYE_PLANE), + GB_CONSTANT("SPHERE_MAP", "i", GL_SPHERE_MAP), + GB_CONSTANT("DECAL", "i", GL_DECAL), + GB_CONSTANT("MODULATE", "i", GL_MODULATE), + GB_CONSTANT("NEAREST", "i", GL_NEAREST), + GB_CONSTANT("REPEAT", "i", GL_REPEAT), + GB_CONSTANT("CLAMP", "i", GL_CLAMP), + GB_CONSTANT("S", "i", GL_S), + GB_CONSTANT("T", "i", GL_T), + GB_CONSTANT("R", "i", GL_R), + GB_CONSTANT("Q", "i", GL_Q), + GB_CONSTANT("TEXTURE_GEN_R", "i", GL_TEXTURE_GEN_R), + GB_CONSTANT("TEXTURE_GEN_Q", "i", GL_TEXTURE_GEN_Q), /* Multitexture Mapping ARB*/ - GB_CONSTANT("GL_TEXTURE0_ARB", "i", GL_TEXTURE0_ARB), - GB_CONSTANT("GL_TEXTURE1_ARB", "i", GL_TEXTURE1_ARB), - GB_CONSTANT("GL_TEXTURE2_ARB", "i", GL_TEXTURE2_ARB), - GB_CONSTANT("GL_TEXTURE3_ARB", "i", GL_TEXTURE3_ARB), - GB_CONSTANT("GL_TEXTURE4_ARB", "i", GL_TEXTURE4_ARB), - GB_CONSTANT("GL_COMBINE", "i", GL_COMBINE), - GB_CONSTANT("GL_COMBINE_RGB", "i", GL_COMBINE_RGB), - GB_CONSTANT("GL_COMBINE_ALPHA", "i", GL_COMBINE_ALPHA), - GB_CONSTANT("GL_COMBINE_EXT", "i", GL_COMBINE_EXT), - GB_CONSTANT("GL_COMBINE_RGB_EXT", "i", GL_COMBINE_RGB_EXT), - GB_CONSTANT("GL_COMBINE_ALPHA_EXT", "i", GL_COMBINE_ALPHA_EXT), - GB_CONSTANT("GL_COMBINE_ARB", "i", GL_COMBINE), - GB_CONSTANT("GL_COMBINE_RGB_ARB", "i", GL_COMBINE_RGB_ARB), - GB_CONSTANT("GL_COMBINE_ALPHA_ARB", "i", GL_COMBINE_ALPHA_ARB), - GB_CONSTANT("GL_SOURCE0_RGB_ARB", "i", GL_SOURCE0_RGB_ARB), - GB_CONSTANT("GL_SOURCE1_RGB_ARB", "i", GL_SOURCE1_RGB_ARB), - GB_CONSTANT("GL_SOURCE2_RGB_ARB", "i", GL_SOURCE2_RGB_ARB), - GB_CONSTANT("GL_SOURCE0_ALPHA_ARB", "i", GL_SOURCE0_ALPHA_ARB), - GB_CONSTANT("GL_SOURCE1_ALPHA_ARB", "i", GL_SOURCE1_ALPHA_ARB), - GB_CONSTANT("GL_SOURCE2_ALPHA_ARB", "i", GL_SOURCE2_ALPHA_ARB), - GB_CONSTANT("GL_OPERAND0_RGB_ARB", "i", GL_OPERAND0_RGB_ARB), - GB_CONSTANT("GL_OPERAND1_RGB_ARB", "i", GL_OPERAND1_RGB_ARB), - GB_CONSTANT("GL_OPERAND2_RGB_ARB", "i", GL_OPERAND2_RGB_ARB), - GB_CONSTANT("GL_OPERAND0_ALPHA_ARB", "i", GL_OPERAND0_ALPHA_ARB), - GB_CONSTANT("GL_OPERAND1_ALPHA_ARB", "i", GL_OPERAND1_ALPHA_ARB), - GB_CONSTANT("GL_OPERAND2_ALPHA_ARB", "i", GL_OPERAND2_ALPHA_ARB), - GB_CONSTANT("GL_RGB_SCALE_ARB", "i", GL_RGB_SCALE_ARB), - GB_CONSTANT("GL_ADD_SIGNED_ARB", "i", GL_ADD_SIGNED_ARB), - GB_CONSTANT("GL_INTERPOLATE_ARB", "i", GL_INTERPOLATE_ARB), - GB_CONSTANT("GL_SUBTRACT_ARB", "i", GL_SUBTRACT_ARB), - GB_CONSTANT("GL_CONSTANT_ARB", "i", GL_CONSTANT_ARB), - GB_CONSTANT("GL_PRIMARY_COLOR_ARB", "i", GL_PRIMARY_COLOR_ARB), - GB_CONSTANT("GL_PREVIOUS_ARB", "i", GL_PREVIOUS_ARB), + GB_CONSTANT("TEXTURE0_ARB", "i", GL_TEXTURE0_ARB), + GB_CONSTANT("TEXTURE1_ARB", "i", GL_TEXTURE1_ARB), + GB_CONSTANT("TEXTURE2_ARB", "i", GL_TEXTURE2_ARB), + GB_CONSTANT("TEXTURE3_ARB", "i", GL_TEXTURE3_ARB), + GB_CONSTANT("TEXTURE4_ARB", "i", GL_TEXTURE4_ARB), + GB_CONSTANT("COMBINE", "i", GL_COMBINE), + GB_CONSTANT("COMBINE_RGB", "i", GL_COMBINE_RGB), + GB_CONSTANT("COMBINE_ALPHA", "i", GL_COMBINE_ALPHA), + GB_CONSTANT("COMBINE_EXT", "i", GL_COMBINE_EXT), + GB_CONSTANT("COMBINE_RGB_EXT", "i", GL_COMBINE_RGB_EXT), + GB_CONSTANT("COMBINE_ALPHA_EXT", "i", GL_COMBINE_ALPHA_EXT), + GB_CONSTANT("COMBINE_ARB", "i", GL_COMBINE), + GB_CONSTANT("COMBINE_RGB_ARB", "i", GL_COMBINE_RGB_ARB), + GB_CONSTANT("COMBINE_ALPHA_ARB", "i", GL_COMBINE_ALPHA_ARB), + GB_CONSTANT("SOURCE0_RGB_ARB", "i", GL_SOURCE0_RGB_ARB), + GB_CONSTANT("SOURCE1_RGB_ARB", "i", GL_SOURCE1_RGB_ARB), + GB_CONSTANT("SOURCE2_RGB_ARB", "i", GL_SOURCE2_RGB_ARB), + GB_CONSTANT("SOURCE0_ALPHA_ARB", "i", GL_SOURCE0_ALPHA_ARB), + GB_CONSTANT("SOURCE1_ALPHA_ARB", "i", GL_SOURCE1_ALPHA_ARB), + GB_CONSTANT("SOURCE2_ALPHA_ARB", "i", GL_SOURCE2_ALPHA_ARB), + GB_CONSTANT("OPERAND0_RGB_ARB", "i", GL_OPERAND0_RGB_ARB), + GB_CONSTANT("OPERAND1_RGB_ARB", "i", GL_OPERAND1_RGB_ARB), + GB_CONSTANT("OPERAND2_RGB_ARB", "i", GL_OPERAND2_RGB_ARB), + GB_CONSTANT("OPERAND0_ALPHA_ARB", "i", GL_OPERAND0_ALPHA_ARB), + GB_CONSTANT("OPERAND1_ALPHA_ARB", "i", GL_OPERAND1_ALPHA_ARB), + GB_CONSTANT("OPERAND2_ALPHA_ARB", "i", GL_OPERAND2_ALPHA_ARB), + GB_CONSTANT("RGB_SCALE_ARB", "i", GL_RGB_SCALE_ARB), + GB_CONSTANT("ADD_SIGNED_ARB", "i", GL_ADD_SIGNED_ARB), + GB_CONSTANT("INTERPOLATE_ARB", "i", GL_INTERPOLATE_ARB), + GB_CONSTANT("SUBTRACT_ARB", "i", GL_SUBTRACT_ARB), + GB_CONSTANT("CONSTANT_ARB", "i", GL_CONSTANT_ARB), + GB_CONSTANT("PRIMARY_COLOR_ARB", "i", GL_PRIMARY_COLOR_ARB), + GB_CONSTANT("PREVIOUS_ARB", "i", GL_PREVIOUS_ARB), + GB_CONSTANT("FRAMEBUFFER_EXT", "i", GL_FRAMEBUFFER_EXT), + GB_CONSTANT("RENDERBUFFER_EXT", "i", GL_RENDERBUFFER_EXT), + GB_CONSTANT("STENCIL_INDEX1_EXT", "i", GL_STENCIL_INDEX1_EXT), + GB_CONSTANT("STENCIL_INDEX4_EXT", "i", GL_STENCIL_INDEX4_EXT), + GB_CONSTANT("STENCIL_INDEX8_EXT", "i", GL_STENCIL_INDEX8_EXT), + GB_CONSTANT("STENCIL_INDEX16_EXT", "i", GL_STENCIL_INDEX16_EXT), + GB_CONSTANT("RENDERBUFFER_WIDTH_EXT", "i", GL_RENDERBUFFER_WIDTH_EXT), + GB_CONSTANT("RENDERBUFFER_HEIGHT_EXT", "i", GL_RENDERBUFFER_HEIGHT_EXT), + GB_CONSTANT("RENDERBUFFER_INTERNAL_FORMAT_EXT", "i", GL_RENDERBUFFER_INTERNAL_FORMAT_EXT), + GB_CONSTANT("RENDERBUFFER_RED_SIZE_EXT", "i", GL_RENDERBUFFER_RED_SIZE_EXT), + GB_CONSTANT("RENDERBUFFER_GREEN_SIZE_EXT", "i", GL_RENDERBUFFER_GREEN_SIZE_EXT), + GB_CONSTANT("RENDERBUFFER_BLUE_SIZE_EXT", "i", GL_RENDERBUFFER_BLUE_SIZE_EXT), + GB_CONSTANT("RENDERBUFFER_ALPHA_SIZE_EXT", "i", GL_RENDERBUFFER_ALPHA_SIZE_EXT), + GB_CONSTANT("RENDERBUFFER_DEPTH_SIZE_EXT", "i", GL_RENDERBUFFER_DEPTH_SIZE_EXT), + GB_CONSTANT("RENDERBUFFER_STENCIL_SIZE_EXT", "i", GL_RENDERBUFFER_STENCIL_SIZE_EXT), + GB_CONSTANT("FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT), + GB_CONSTANT("FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT), + GB_CONSTANT("FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT), + GB_CONSTANT("FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT), + GB_CONSTANT("FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT", "i", GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT), + GB_CONSTANT("COLOR_ATTACHMENT0_EXT", "i", GL_COLOR_ATTACHMENT0_EXT), + GB_CONSTANT("COLOR_ATTACHMENT1_EXT", "i", GL_COLOR_ATTACHMENT1_EXT), + GB_CONSTANT("COLOR_ATTACHMENT2_EXT", "i", GL_COLOR_ATTACHMENT2_EXT), + GB_CONSTANT("COLOR_ATTACHMENT3_EXT", "i", GL_COLOR_ATTACHMENT3_EXT), + GB_CONSTANT("COLOR_ATTACHMENT4_EXT", "i", GL_COLOR_ATTACHMENT4_EXT), + GB_CONSTANT("COLOR_ATTACHMENT5_EXT", "i", GL_COLOR_ATTACHMENT5_EXT), + GB_CONSTANT("COLOR_ATTACHMENT6_EXT", "i", GL_COLOR_ATTACHMENT6_EXT), + GB_CONSTANT("COLOR_ATTACHMENT7_EXT", "i", GL_COLOR_ATTACHMENT7_EXT), + GB_CONSTANT("COLOR_ATTACHMENT8_EXT", "i", GL_COLOR_ATTACHMENT8_EXT), + GB_CONSTANT("COLOR_ATTACHMENT9_EXT", "i", GL_COLOR_ATTACHMENT9_EXT), + GB_CONSTANT("COLOR_ATTACHMENT10_EXT", "i", GL_COLOR_ATTACHMENT10_EXT), + GB_CONSTANT("COLOR_ATTACHMENT11_EXT", "i", GL_COLOR_ATTACHMENT11_EXT), + GB_CONSTANT("COLOR_ATTACHMENT12_EXT", "i", GL_COLOR_ATTACHMENT12_EXT), + GB_CONSTANT("COLOR_ATTACHMENT13_EXT", "i", GL_COLOR_ATTACHMENT13_EXT), + GB_CONSTANT("COLOR_ATTACHMENT14_EXT", "i", GL_COLOR_ATTACHMENT14_EXT), + GB_CONSTANT("COLOR_ATTACHMENT15_EXT", "i", GL_COLOR_ATTACHMENT15_EXT), + GB_CONSTANT("DEPTH_ATTACHMENT_EXT", "i", GL_DEPTH_ATTACHMENT_EXT), + GB_CONSTANT("STENCIL_ATTACHMENT_EXT", "i", GL_STENCIL_ATTACHMENT_EXT), + GB_CONSTANT("FRAMEBUFFER_COMPLETE_EXT", "i", GL_FRAMEBUFFER_COMPLETE_EXT), + GB_CONSTANT("FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT), + GB_CONSTANT("FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT), + GB_CONSTANT("FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT), + GB_CONSTANT("FRAMEBUFFER_INCOMPLETE_FORMATS_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT), + GB_CONSTANT("FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT), + GB_CONSTANT("FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT", "i", GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT), + GB_CONSTANT("FRAMEBUFFER_UNSUPPORTED_EXT", "i", GL_FRAMEBUFFER_UNSUPPORTED_EXT), + GB_CONSTANT("FRAMEBUFFER_BINDING_EXT", "i", GL_FRAMEBUFFER_BINDING_EXT), + GB_CONSTANT("RENDERBUFFER_BINDING_EXT", "i", GL_RENDERBUFFER_BINDING_EXT), + GB_CONSTANT("MAX_COLOR_ATTACHMENTS_EXT", "i", GL_MAX_COLOR_ATTACHMENTS_EXT), + GB_CONSTANT("MAX_RENDERBUFFER_SIZE_EXT", "i", GL_MAX_RENDERBUFFER_SIZE_EXT), + GB_CONSTANT("INVALID_FRAMEBUFFER_OPERATION_EXT", "i", GL_INVALID_FRAMEBUFFER_OPERATION_EXT), #if 0