diff options
-rw-r--r-- | specs/glparams.py | 240 | ||||
-rw-r--r-- | specs/scripts/.gitignore | 1 | ||||
-rw-r--r-- | specs/scripts/Makefile | 10 | ||||
-rw-r--r-- | specs/scripts/glparams.sed | 2 | ||||
-rw-r--r-- | specs/scripts/xml2glparams.py | 54 |
5 files changed, 272 insertions, 35 deletions
diff --git a/specs/glparams.py b/specs/glparams.py index 08deccfa..5c6e5eb4 100644 --- a/specs/glparams.py +++ b/specs/glparams.py @@ -77,6 +77,7 @@ parameters = [ ("", X, 1, "GL_CIRCULAR_CW_ARC_TO_NV"), # 0x00FA ("", X, 1, "GL_CIRCULAR_TANGENT_ARC_TO_NV"), # 0x00FC ("", X, 1, "GL_ARC_TO_NV"), # 0x00FE + ("", X, 1, "GL_RELATIVE_ARC_TO_NV"), # 0x00FF ("", X, 1, "GL_ACCUM"), # 0x0100 ("", X, 1, "GL_LOAD"), # 0x0101 @@ -383,7 +384,7 @@ parameters = [ ("", X, 1, "GL_HALF_FLOAT"), # 0x140B ("", X, 1, "GL_FIXED"), # 0x140C ("", X, 1, "GL_INT64_NV"), # 0x140E - ("", X, 1, "GL_UNSIGNED_INT64_NV"), # 0x140F + ("", X, 1, "GL_UNSIGNED_INT64_ARB"), # 0x140F ("", X, 1, "GL_CLEAR"), # 0x1500 ("", X, 1, "GL_AND"), # 0x1501 ("", X, 1, "GL_AND_REVERSE"), # 0x1502 @@ -729,6 +730,8 @@ parameters = [ ("", X, 1, "GL_PHONG_HINT_WIN"), # 0x80EB ("", X, 1, "GL_FOG_SPECULAR_TEXTURE_WIN"), # 0x80EC ("_glGetTexLevelParameter", I, 1, "GL_TEXTURE_INDEX_SIZE_EXT"), # 0x80ED + ("", X, 1, "GL_PARAMETER_BUFFER_ARB"), # 0x80EE + ("", X, 1, "GL_PARAMETER_BUFFER_BINDING_ARB"), # 0x80EF ("glGet", E, 1, "GL_CLIP_VOLUME_CLIPPING_HINT_EXT"), # 0x80F0 ("", X, 1, "GL_DUAL_ALPHA4_SGIS"), # 0x8110 ("", X, 1, "GL_DUAL_ALPHA8_SGIS"), # 0x8111 @@ -925,7 +928,9 @@ parameters = [ ("glGet", I, 1, "GL_MINOR_VERSION"), # 0x821C ("glGet", I, 1, "GL_NUM_EXTENSIONS"), # 0x821D ("glGet", I, 1, "GL_CONTEXT_FLAGS"), # 0x821E - ("", X, 1, "GL_BUFFER_IMMUTABLE_STORAGE"), # 0x821F + ("", X, 1, "GL_BUFFER_IMMUTABLE_STORAGE"), # 0x821F + ("", X, 1, "GL_BUFFER_STORAGE_FLAGS"), # 0x8220 + ("", X, 1, "GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED"), # 0x8221 ("", X, 1, "GL_INDEX"), # 0x8222 ("", X, 1, "GL_COMPRESSED_RED"), # 0x8225 ("", X, 1, "GL_COMPRESSED_RG"), # 0x8226 @@ -1114,6 +1119,7 @@ parameters = [ ("", X, 1, "GL_PROGRAM"), # 0x82E2 ("", X, 1, "GL_QUERY"), # 0x82E3 ("", X, 1, "GL_PROGRAM_PIPELINE"), # 0x82E4 + ("", X, 1, "GL_MAX_VERTEX_ATTRIB_STRIDE"), # 0x82E5 ("", X, 1, "GL_SAMPLER"), # 0x82E6 ("", X, 1, "GL_DISPLAY_LIST"), # 0x82E7 ("glGet", I, 1, "GL_MAX_LABEL_LENGTH"), # 0x82E8 @@ -1121,9 +1127,18 @@ parameters = [ ("", X, 1, "GL_DEPTH_PASS_INSTRUMENT_SGIX"), # 0x8310 ("", X, 1, "GL_DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX"), # 0x8311 ("", X, 1, "GL_DEPTH_PASS_INSTRUMENT_MAX_SGIX"), # 0x8312 + #("", X, 1, "GL_FRAGMENTS_INSTRUMENT_SGIX"), # 0x8313 + #("", X, 1, "GL_FRAGMENTS_INSTRUMENT_COUNTERS_SGIX"), # 0x8314 + #("", X, 1, "GL_FRAGMENTS_INSTRUMENT_MAX_SGIX"), # 0x8315 ("glGet", I, 1, "GL_CONVOLUTION_HINT_SGIX"), # 0x8316 ("", X, 1, "GL_YCRCB_SGIX"), # 0x8318 ("", X, 1, "GL_YCRCBA_SGIX"), # 0x8319 + #("", X, 1, "GL_UNPACK_COMPRESSED_SIZE_SGIX"), # 0x831A + #("", X, 1, "GL_PACK_MAX_COMPRESSED_SIZE_SGIX"), # 0x831B + #("", X, 1, "GL_PACK_COMPRESSED_SIZE_SGIX"), # 0x831C + #("", X, 1, "GL_SLIM8U_SGIX"), # 0x831D + #("", X, 1, "GL_SLIM10U_SGIX"), # 0x831E + #("", X, 1, "GL_SLIM12S_SGIX"), # 0x831F ("", X, 1, "GL_ALPHA_MIN_SGIX"), # 0x8320 ("", X, 1, "GL_ALPHA_MAX_SGIX"), # 0x8321 ("", X, 1, "GL_SCALEBIAS_HINT_SGIX"), # 0x8322 @@ -1153,6 +1168,7 @@ parameters = [ ("glGet", I, 1, "GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS"), # 0x8354 ("glGet", I, 1, "GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS"), # 0x8355 ("glGet", I, 1, "GL_PIXEL_GROUP_COLOR_SGIS"), # 0x8356 + #("", X, 1, "GL_LINE_QUALITY_HINT_SGIX"), # 0x835B ("", X, 1, "GL_ASYNC_TEX_IMAGE_SGIX"), # 0x835C ("", X, 1, "GL_ASYNC_DRAW_PIXELS_SGIX"), # 0x835D ("", X, 1, "GL_ASYNC_READ_PIXELS_SGIX"), # 0x835E @@ -1174,6 +1190,8 @@ parameters = [ ("", X, 1, "GL_RGB4_S3TC"), # 0x83A1 ("", X, 1, "GL_RGBA_S3TC"), # 0x83A2 ("", X, 1, "GL_RGBA4_S3TC"), # 0x83A3 + ("", X, 1, "GL_RGBA_DXT5_S3TC"), # 0x83A4 + ("", X, 1, "GL_RGBA4_DXT5_S3TC"), # 0x83A5 ("", X, 1, "GL_VERTEX_PRECLIP_SGIX"), # 0x83EE ("", X, 1, "GL_VERTEX_PRECLIP_HINT_SGIX"), # 0x83EF ("", X, 1, "GL_COMPRESSED_RGB_S3TC_DXT1_EXT"), # 0x83F0 @@ -1185,6 +1203,10 @@ parameters = [ ("", X, 1, "GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL"), # 0x83F6 ("", X, 1, "GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL"), # 0x83F7 ("", X, 1, "GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL"), # 0x83F8 + ("", X, 1, "GL_PERFQUERY_DONOT_FLUSH_INTEL"), # 0x83F9 + ("", X, 1, "GL_PERFQUERY_FLUSH_INTEL"), # 0x83FA + ("", X, 1, "GL_PERFQUERY_WAIT_INTEL"), # 0x83FB + ("", X, 1, "GL_TEXTURE_MEMORY_LAYOUT_INTEL"), # 0x83FF ("glGet", I, 1, "GL_FRAGMENT_LIGHTING_SGIX"), # 0x8400 ("glGet", I, 1, "GL_FRAGMENT_COLOR_MATERIAL_SGIX"), # 0x8401 ("glGet", I, 1, "GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX"), # 0x8402 @@ -1455,8 +1477,8 @@ parameters = [ ("glGetTexParameter", X, 1, "GL_TEXTURE_RANGE_LENGTH_APPLE"), # 0x85B7 ("", P, 1, "GL_TEXTURE_RANGE_POINTER_APPLE"), # 0x85B8 ("", X, 1, "GL_YCBCR_422_APPLE"), # 0x85B9 - ("", X, 1, "GL_UNSIGNED_SHORT_8_8_MESA"), # 0x85BA - ("", X, 1, "GL_UNSIGNED_SHORT_8_8_REV_MESA"), # 0x85BB + ("", X, 1, "GL_UNSIGNED_SHORT_8_8_APPLE"), # 0x85BA + ("", X, 1, "GL_UNSIGNED_SHORT_8_8_REV_APPLE"), # 0x85BB ("glGetTexParameter", E, 1, "GL_TEXTURE_STORAGE_HINT_APPLE"), # 0x85BC ("", X, 1, "GL_STORAGE_PRIVATE_APPLE"), # 0x85BD ("", X, 1, "GL_STORAGE_CACHED_APPLE"), # 0x85BE @@ -1719,6 +1741,19 @@ parameters = [ ("", X, 1, "GL_MODULATE_ADD_ATI"), # 0x8744 ("", X, 1, "GL_MODULATE_SIGNED_ADD_ATI"), # 0x8745 ("", X, 1, "GL_MODULATE_SUBTRACT_ATI"), # 0x8746 + ("", X, 1, "GL_SET_AMD"), # 0x874A + ("", X, 1, "GL_REPLACE_VALUE_AMD"), # 0x874B + ("", X, 1, "GL_STENCIL_OP_VALUE_AMD"), # 0x874C + ("", X, 1, "GL_STENCIL_BACK_OP_VALUE_AMD"), # 0x874D + ("glGetVertexAttrib", B, 1, "GL_VERTEX_ATTRIB_ARRAY_LONG"), # 0x874E + ("", X, 1, "GL_OCCLUSION_QUERY_EVENT_MASK_AMD"), # 0x874F + #("", X, 1, "GL_DEPTH_STENCIL_MESA"), # 0x8750 + #("", X, 1, "GL_UNSIGNED_INT_24_8_MESA"), # 0x8751 + #("", X, 1, "GL_UNSIGNED_INT_8_24_REV_MESA"), # 0x8752 + #("", X, 1, "GL_UNSIGNED_SHORT_15_1_MESA"), # 0x8753 + #("", X, 1, "GL_UNSIGNED_SHORT_1_15_REV_MESA"), # 0x8754 + #("", X, 1, "GL_TRACE_MASK_MESA"), # 0x8755 + #("", X, 1, "GL_TRACE_NAME_MESA"), # 0x8756 ("", X, 1, "GL_YCBCR_MESA"), # 0x8757 ("glGet", B, 1, "GL_PACK_INVERT_MESA"), # 0x8758 ("", X, 1, "GL_TEXTURE_1D_STACK_MESAX"), # 0x8759 @@ -1866,6 +1901,7 @@ parameters = [ ("", X, 1, "GL_INVARIANT_DATATYPE_EXT"), # 0x87EB ("", X, 1, "GL_LOCAL_CONSTANT_VALUE_EXT"), # 0x87EC ("", X, 1, "GL_LOCAL_CONSTANT_DATATYPE_EXT"), # 0x87ED + ("", X, 1, "GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD"), # 0x87EE ("", X, 1, "GL_PN_TRIANGLES_ATI"), # 0x87F0 ("", X, 1, "GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI"), # 0x87F1 ("", X, 1, "GL_PN_TRIANGLES_POINT_MODE_ATI"), # 0x87F2 @@ -1875,6 +1911,8 @@ parameters = [ ("", X, 1, "GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI"), # 0x87F6 ("", X, 1, "GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI"), # 0x87F7 ("", X, 1, "GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI"), # 0x87F8 + ("", X, 1, "GL_3DC_X_AMD"), # 0x87F9 + ("", X, 1, "GL_3DC_XY_AMD"), # 0x87FA ("", X, 1, "GL_VBO_FREE_MEMORY_ATI"), # 0x87FB ("", X, 1, "GL_TEXTURE_FREE_MEMORY_ATI"), # 0x87FC ("", X, 1, "GL_RENDERBUFFER_FREE_MEMORY_ATI"), # 0x87FD @@ -1928,7 +1966,9 @@ parameters = [ ("glGet", E, 1, "GL_DRAW_BUFFER14"), # 0x8833 ("glGet", E, 1, "GL_DRAW_BUFFER15"), # 0x8834 ("", X, 1, "GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI"), # 0x8835 + #("", X, 1, "GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI"), # 0x8837 ("glGet", E, 1, "GL_BLEND_EQUATION_ALPHA"), # 0x883D + ("", X, 1, "GL_SUBSAMPLE_DISTANCE_AMD"), # 0x883F ("glGet", B, 1, "GL_MATRIX_PALETTE_ARB"), # 0x8840 ("glGet", I, 1, "GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB"), # 0x8841 ("glGet", I, 1, "GL_MAX_PALETTE_MATRICES_ARB"), # 0x8842 @@ -1972,8 +2012,8 @@ parameters = [ ("", X, 1, "GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV"), # 0x8868 ("glGet", I, 1, "GL_MAX_VERTEX_ATTRIBS"), # 0x8869 ("glGetVertexAttrib", B, 1, "GL_VERTEX_ATTRIB_ARRAY_NORMALIZED"), # 0x886A - ("", X, 1, "GL_MAX_TESS_CONTROL_INPUT_COMPONENTS"), # 0x886C - ("", X, 1, "GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS"), # 0x886D + ("glGet", I, 1, "GL_MAX_TESS_CONTROL_INPUT_COMPONENTS"), # 0x886C + ("glGet", I, 1, "GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS"), # 0x886D ("", X, 1, "GL_DEPTH_STENCIL_TO_RGBA_NV"), # 0x886E ("", X, 1, "GL_DEPTH_STENCIL_TO_BGRA_NV"), # 0x886F ("", X, 1, "GL_FRAGMENT_PROGRAM_NV"), # 0x8870 @@ -2098,6 +2138,7 @@ parameters = [ ("", X, 1, "GL_PIXEL_PACK_BUFFER"), # 0x88EB ("", X, 1, "GL_PIXEL_UNPACK_BUFFER"), # 0x88EC ("glGet", I, 1, "GL_PIXEL_PACK_BUFFER_BINDING"), # 0x88ED + ("", X, 1, "GL_ETC1_SRGB8_NV"), # 0x88EE ("glGet", I, 1, "GL_PIXEL_UNPACK_BUFFER_BINDING"), # 0x88EF ("", X, 1, "GL_DEPTH24_STENCIL8"), # 0x88F0 ("glGetTexLevelParameter", I, 1, "GL_TEXTURE_STENCIL_SIZE"), # 0x88F1 @@ -2304,6 +2345,14 @@ parameters = [ ("glGetTexParameter", E, 1, "GL_TEXTURE_SRGB_DECODE_EXT"), # 0x8A48 ("", X, 1, "GL_DECODE_EXT"), # 0x8A49 ("", X, 1, "GL_SKIP_DECODE_EXT"), # 0x8A4A + ("", X, 1, "GL_PROGRAM_PIPELINE_OBJECT_EXT"), # 0x8A4F + ("", X, 1, "GL_RGB_RAW_422_APPLE"), # 0x8A51 + ("", X, 1, "GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT"), # 0x8A52 + ("", X, 1, "GL_SYNC_OBJECT_APPLE"), # 0x8A53 + ("", X, 1, "GL_COMPRESSED_SRGB_PVRTC_2BPPV1_EXT"), # 0x8A54 + ("", X, 1, "GL_COMPRESSED_SRGB_PVRTC_4BPPV1_EXT"), # 0x8A55 + ("", X, 1, "GL_COMPRESSED_SRGB_ALPHA_PVRTC_2BPPV1_EXT"), # 0x8A56 + ("", X, 1, "GL_COMPRESSED_SRGB_ALPHA_PVRTC_4BPPV1_EXT"), # 0x8A57 ("glGetProgramPipeline", I, 1, "GL_FRAGMENT_SHADER"), # 0x8B30 ("glGetProgramPipeline", I, 1, "GL_VERTEX_SHADER"), # 0x8B31 ("", H, 1, "GL_PROGRAM_OBJECT_ARB"), # 0x8B40 @@ -2471,7 +2520,7 @@ parameters = [ ("", X, 1, "GL_VERTEX_ID_NV"), # 0x8C7B ("", X, 1, "GL_PRIMITIVE_ID_NV"), # 0x8C7C ("", X, 1, "GL_GENERIC_ATTRIB_NV"), # 0x8C7D - ("", X, 1, "GL_TRANSFORM_FEEDBACK_ATTRIBS_NV"), # 0x8C7F + ("", X, 1, "GL_TRANSFORM_FEEDBACK_ATTRIBS_NV"), # 0x8C7E ("", X, 1, "GL_TRANSFORM_FEEDBACK_BUFFER_MODE"), # 0x8C7F ("", X, 1, "GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS"), # 0x8C80 ("", X, 1, "GL_ACTIVE_VARYINGS_NV"), # 0x8C81 @@ -2688,6 +2737,9 @@ parameters = [ ("", X, 1, "GL_LOW_INT"), # 0x8DF3 ("", X, 1, "GL_MEDIUM_INT"), # 0x8DF4 ("", X, 1, "GL_HIGH_INT"), # 0x8DF5 + ("", X, 1, "GL_UNSIGNED_INT_10_10_10_2_OES"), # 0x8DF6 + ("", X, 1, "GL_INT_10_10_10_2_OES"), # 0x8DF7 + ("", X, 1, "GL_SHADER_BINARY_FORMATS"), # 0x8DF8 ("glGet", I, 1, "GL_NUM_SHADER_BINARY_FORMATS"), # 0x8DF9 ("glGet", B, 1, "GL_SHADER_COMPILER"), # 0x8DFA ("glGet", I, 1, "GL_MAX_VERTEX_UNIFORM_VECTORS"), # 0x8DFB @@ -2713,6 +2765,7 @@ parameters = [ ("", X, 1, "GL_NUM_FILL_STREAMS_NV"), # 0x8E29 ("", X, 1, "GL_PRESENT_TIME_NV"), # 0x8E2A ("", X, 1, "GL_PRESENT_DURATION_NV"), # 0x8E2B + ("", X, 1, "GL_DEPTH_COMPONENT16_NONLINEAR_NV"), # 0x8E2C ("", X, 1, "GL_PROGRAM_MATRIX_EXT"), # 0x8E2D ("", X, 1, "GL_TRANSPOSE_PROGRAM_MATRIX_EXT"), # 0x8E2E ("", X, 1, "GL_PROGRAM_MATRIX_STACK_DEPTH_EXT"), # 0x8E2F @@ -2741,9 +2794,9 @@ parameters = [ ("", X, 1, "GL_UNSIGNED_INT_SAMPLER_RENDERBUFFER_NV"), # 0x8E58 ("glGet", I, 1, "GL_MAX_SAMPLE_MASK_WORDS"), # 0x8E59 ("", X, 1, "GL_MAX_GEOMETRY_SHADER_INVOCATIONS"), # 0x8E5A - ("", X, 1, "GL_MIN_FRAGMENT_INTERPOLATION_OFFSET"), # 0x8E5B - ("", X, 1, "GL_MAX_FRAGMENT_INTERPOLATION_OFFSET"), # 0x8E5C - ("", X, 1, "GL_FRAGMENT_INTERPOLATION_OFFSET_BITS"), # 0x8E5D + ("glGet", F, 1, "GL_MIN_FRAGMENT_INTERPOLATION_OFFSET"), # 0x8E5B + ("glGet", F, 1, "GL_MAX_FRAGMENT_INTERPOLATION_OFFSET"), # 0x8E5C + ("glGet", I, 1, "GL_FRAGMENT_INTERPOLATION_OFFSET_BITS"), # 0x8E5D ("", X, 1, "GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET"), # 0x8E5E ("", X, 1, "GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET"), # 0x8E5F ("glGet", I, 1, "GL_MAX_TRANSFORM_FEEDBACK_BUFFERS"), # 0x8E70 @@ -2785,7 +2838,7 @@ parameters = [ #("", X, 1, "GL_COVERAGE_ALL_FRAGMENTS_NV"), # 0x8ED5 #("", X, 1, "GL_COVERAGE_EDGE_FRAGMENTS_NV"), # 0x8ED6 #("", X, 1, "GL_COVERAGE_AUTOMATIC_NV"), # 0x8ED7 - ("", X, 1, "GL_BUFFER_GPU_ADDRESS_NV"), # 0x8F1D + ("GetBufferParameter", I64, 1, "GL_BUFFER_GPU_ADDRESS_NV"), # 0x8F1D ("", X, 1, "GL_VERTEX_ATTRIB_ARRAY_UNIFIED_NV"), # 0x8F1E ("", X, 1, "GL_ELEMENT_ARRAY_UNIFIED_NV"), # 0x8F1F ("", X, 1, "GL_VERTEX_ATTRIB_ARRAY_ADDRESS_NV"), # 0x8F20 @@ -2812,8 +2865,8 @@ parameters = [ ("", X, 1, "GL_MAX_SHADER_BUFFER_ADDRESS_NV"), # 0x8F35 ("glGet", I, 1, "GL_COPY_READ_BUFFER"), # 0x8F36 ("glGet", I, 1, "GL_COPY_WRITE_BUFFER"), # 0x8F37 - ("", X, 1, "GL_MAX_IMAGE_UNITS"), # 0x8F38 - ("", X, 1, "GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS"), # 0x8F39 + ("glGet", I, 1, "GL_MAX_IMAGE_UNITS"), # 0x8F38 + ("glGet", I, 1, "GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS"), # 0x8F39 ("", X, 1, "GL_IMAGE_BINDING_NAME"), # 0x8F3A ("", X, 1, "GL_IMAGE_BINDING_LEVEL"), # 0x8F3B ("", X, 1, "GL_IMAGE_BINDING_LAYERED"), # 0x8F3C @@ -2853,6 +2906,11 @@ parameters = [ ("glGet", I, 1, "GL_PRIMITIVE_RESTART_INDEX"), # 0x8F9E ("", X, 1, "GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB"), # 0x8F9F ("", X, 1, "GL_PERFMON_GLOBAL_MODE_QCOM"), # 0x8FA0 + ("", X, 1, "GL_BINNING_CONTROL_HINT_QCOM"), # 0x8FB0 + ("", X, 1, "GL_CPU_OPTIMIZED_QCOM"), # 0x8FB1 + ("", X, 1, "GL_GPU_OPTIMIZED_QCOM"), # 0x8FB2 + ("", X, 1, "GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM"), # 0x8FB3 + ("", X, 1, "GL_GPU_DISJOINT_EXT"), # 0x8FBB ("", X, 1, "GL_SHADER_BINARY_VIV"), # 0x8FC4 ("", X, 1, "GL_INT8_NV"), # 0x8FE0 ("", X, 1, "GL_INT8_VEC2_NV"), # 0x8FE1 @@ -2982,7 +3040,7 @@ parameters = [ ("", X, 1, "GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY"), # 0x906A ("", X, 1, "GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE"), # 0x906B ("", X, 1, "GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY"), # 0x906C - ("", X, 1, "GL_MAX_IMAGE_SAMPLES"), # 0x906D + ("glGet", I, 1, "GL_MAX_IMAGE_SAMPLES"), # 0x906D ("", X, 1, "GL_IMAGE_BINDING_FORMAT"), # 0x906E ("", X, 1, "GL_RGB10_A2UI"), # 0x906F ("", X, 1, "GL_PATH_FORMAT_SVG_NV"), # 0x9070 @@ -3067,12 +3125,12 @@ parameters = [ ("", X, 1, "GL_IMAGE_FORMAT_COMPATIBILITY_TYPE"), # 0x90C7 ("", X, 1, "GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE"), # 0x90C8 ("", X, 1, "GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS"), # 0x90C9 - ("", X, 1, "GL_MAX_VERTEX_IMAGE_UNIFORMS"), # 0x90CA - ("", X, 1, "GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS"), # 0x90CB - ("", X, 1, "GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS"), # 0x90CC - ("", X, 1, "GL_MAX_GEOMETRY_IMAGE_UNIFORMS"), # 0x90CD - ("", X, 1, "GL_MAX_FRAGMENT_IMAGE_UNIFORMS"), # 0x90CE - ("", X, 1, "GL_MAX_COMBINED_IMAGE_UNIFORMS"), # 0x90CF + ("glGet", I, 1, "GL_MAX_VERTEX_IMAGE_UNIFORMS"), # 0x90CA + ("glGet", I, 1, "GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS"), # 0x90CB + ("glGet", I, 1, "GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS"), # 0x90CC + ("glGet", I, 1, "GL_MAX_GEOMETRY_IMAGE_UNIFORMS"), # 0x90CD + ("glGet", I, 1, "GL_MAX_FRAGMENT_IMAGE_UNIFORMS"), # 0x90CE + ("glGet", I, 1, "GL_MAX_COMBINED_IMAGE_UNIFORMS"), # 0x90CF ("", X, 1, "GL_MAX_DEEP_3D_TEXTURE_WIDTH_HEIGHT_NV"), # 0x90D0 ("", X, 1, "GL_MAX_DEEP_3D_TEXTURE_DEPTH_NV"), # 0x90D1 ("", I, 1, "GL_SHADER_STORAGE_BUFFER"), # 0x90D2 @@ -3096,6 +3154,12 @@ parameters = [ ("", X, 1, "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER"), # 0x90ED ("", X, 1, "GL_DISPATCH_INDIRECT_BUFFER"), # 0x90EE ("glGet", I, 1, "GL_DISPATCH_INDIRECT_BUFFER_BINDING"), # 0x90EF + ("", X, 1, "GL_COLOR_ATTACHMENT_EXT"), # 0x90F0 + ("", X, 1, "GL_MULTIVIEW_EXT"), # 0x90F1 + ("", X, 1, "GL_MAX_MULTIVIEW_BUFFERS_EXT"), # 0x90F2 + ("", X, 1, "GL_CONTEXT_ROBUST_ACCESS_EXT"), # 0x90F3 + ("", X, 1, "GL_COMPUTE_PROGRAM_NV"), # 0x90FB + ("", X, 1, "GL_COMPUTE_PROGRAM_PARAMETER_BUFFER_NV"), # 0x90FC ("", X, 1, "GL_TEXTURE_2D_MULTISAMPLE"), # 0x9100 ("", X, 1, "GL_PROXY_TEXTURE_2D_MULTISAMPLE"), # 0x9101 ("", X, 1, "GL_TEXTURE_2D_MULTISAMPLE_ARRAY"), # 0x9102 @@ -3129,10 +3193,10 @@ parameters = [ ("glGetBufferParameter", I, 1, "GL_BUFFER_ACCESS_FLAGS"), # 0x911F ("glGetBufferParameter", I, 1, "GL_BUFFER_MAP_LENGTH"), # 0x9120 ("glGetBufferParameter", I, 1, "GL_BUFFER_MAP_OFFSET"), # 0x9121 - ("", X, 1, "GL_MAX_VERTEX_OUTPUT_COMPONENTS"), # 0x9122 - ("", X, 1, "GL_MAX_GEOMETRY_INPUT_COMPONENTS"), # 0x9123 - ("", X, 1, "GL_MAX_GEOMETRY_OUTPUT_COMPONENTS"), # 0x9124 - ("", X, 1, "GL_MAX_FRAGMENT_INPUT_COMPONENTS"), # 0x9125 + ("glGet", I, 1, "GL_MAX_VERTEX_OUTPUT_COMPONENTS"), # 0x9122 + ("glGet", I, 1, "GL_MAX_GEOMETRY_INPUT_COMPONENTS"), # 0x9123 + ("glGet", I, 1, "GL_MAX_GEOMETRY_OUTPUT_COMPONENTS"), # 0x9124 + ("glGet", I, 1, "GL_MAX_FRAGMENT_INPUT_COMPONENTS"), # 0x9125 ("glGet", I, 1, "GL_CONTEXT_PROFILE_MASK"), # 0x9126 ("glGet", I, 1, "GL_UNPACK_COMPRESSED_BLOCK_WIDTH"), # 0x9127 ("glGet", I, 1, "GL_UNPACK_COMPRESSED_BLOCK_HEIGHT"), # 0x9128 @@ -3148,6 +3212,8 @@ parameters = [ ("", X, 1, "GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG"), # 0x9134 ("", X, 1, "GL_MAX_SAMPLES_IMG"), # 0x9135 ("", X, 1, "GL_TEXTURE_SAMPLES_IMG"), # 0x9136 + ("", X, 1, "GL_COMPRESSED_RGBA_PVRTC_2BPPV2_IMG"), # 0x9137 + ("", X, 1, "GL_COMPRESSED_RGBA_PVRTC_4BPPV2_IMG"), # 0x9138 ("glGet", I, 1, "GL_MAX_DEBUG_MESSAGE_LENGTH"), # 0x9143 ("glGet", I, 1, "GL_MAX_DEBUG_LOGGED_MESSAGES"), # 0x9144 ("glGet", I, 1, "GL_DEBUG_LOGGED_MESSAGES"), # 0x9145 @@ -3182,12 +3248,23 @@ parameters = [ ("glGetTexLevelParameter", I, 1, "GL_TEXTURE_BUFFER_OFFSET"), # 0x919D ("glGetTexLevelParameter", I, 1, "GL_TEXTURE_BUFFER_SIZE"), # 0x919E ("glGet", I, 1, "GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT"), # 0x919F + ("", X, 1, "GL_VERTEX_ELEMENT_SWIZZLE_AMD"), # 0x91A4 + ("", X, 1, "GL_VERTEX_ID_SWIZZLE_AMD"), # 0x91A5 + ("", X, 1, "GL_TEXTURE_SPARSE_ARB"), # 0x91A6 + ("", X, 1, "GL_VIRTUAL_PAGE_SIZE_INDEX_ARB"), # 0x91A7 + ("", X, 1, "GL_NUM_VIRTUAL_PAGE_SIZES_ARB"), # 0x91A8 + ("", X, 1, "GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB"), # 0x91A9 ("glGetProgramPipeline", I, 1, "GL_COMPUTE_SHADER"), # 0x91B9 ("glGet", I, 1, "GL_MAX_COMPUTE_UNIFORM_BLOCKS"), # 0x91BB ("glGet", I, 1, "GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS"), # 0x91BC ("glGet", I, 1, "GL_MAX_COMPUTE_IMAGE_UNIFORMS"), # 0x91BD ("glGet", I, 3, "GL_MAX_COMPUTE_WORK_GROUP_COUNT"), # 0x91BE ("glGet", I, 3, "GL_MAX_COMPUTE_WORK_GROUP_SIZE"), # 0x91BF + #("", X, 1, "GL_UNPACK_FLIP_Y_WEBGL"), # 0x9240 + #("", X, 1, "GL_UNPACK_PREMULTIPLY_ALPHA_WEBGL"), # 0x9241 + #("", X, 1, "GL_CONTEXT_LOST_WEBGL"), # 0x9242 + #("", X, 1, "GL_UNPACK_COLORSPACE_CONVERSION_WEBGL"), # 0x9243 + #("", X, 1, "GL_BROWSER_DEFAULT_WEBGL"), # 0x9244 ("", X, 1, "GL_SHADER_BINARY_DMP"), # 0x9250 #("", X, 1, "GL_GCCSO_SHADER_BINARY_FJ"), # 0x9260 ("", X, 1, "GL_COMPRESSED_R11_EAC"), # 0x9270 @@ -3200,6 +3277,52 @@ parameters = [ ("", X, 1, "GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2"), # 0x9277 ("", X, 1, "GL_COMPRESSED_RGBA8_ETC2_EAC"), # 0x9278 ("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"), # 0x9279 + ("", X, 1, "GL_BLEND_PREMULTIPLIED_SRC_NV"), # 0x9280 + ("", X, 1, "GL_BLEND_OVERLAP_NV"), # 0x9281 + ("", X, 1, "GL_UNCORRELATED_NV"), # 0x9282 + ("", X, 1, "GL_DISJOINT_NV"), # 0x9283 + ("", X, 1, "GL_CONJOINT_NV"), # 0x9284 + ("", X, 1, "GL_BLEND_ADVANCED_COHERENT_NV"), # 0x9285 + ("", X, 1, "GL_SRC_NV"), # 0x9286 + ("", X, 1, "GL_DST_NV"), # 0x9287 + ("", X, 1, "GL_SRC_OVER_NV"), # 0x9288 + ("", X, 1, "GL_DST_OVER_NV"), # 0x9289 + ("", X, 1, "GL_SRC_IN_NV"), # 0x928A + ("", X, 1, "GL_DST_IN_NV"), # 0x928B + ("", X, 1, "GL_SRC_OUT_NV"), # 0x928C + ("", X, 1, "GL_DST_OUT_NV"), # 0x928D + ("", X, 1, "GL_SRC_ATOP_NV"), # 0x928E + ("", X, 1, "GL_DST_ATOP_NV"), # 0x928F + ("", X, 1, "GL_PLUS_NV"), # 0x9291 + ("", X, 1, "GL_PLUS_DARKER_NV"), # 0x9292 + ("", X, 1, "GL_MULTIPLY_NV"), # 0x9294 + ("", X, 1, "GL_SCREEN_NV"), # 0x9295 + ("", X, 1, "GL_OVERLAY_NV"), # 0x9296 + ("", X, 1, "GL_DARKEN_NV"), # 0x9297 + ("", X, 1, "GL_LIGHTEN_NV"), # 0x9298 + ("", X, 1, "GL_COLORDODGE_NV"), # 0x9299 + ("", X, 1, "GL_COLORBURN_NV"), # 0x929A + ("", X, 1, "GL_HARDLIGHT_NV"), # 0x929B + ("", X, 1, "GL_SOFTLIGHT_NV"), # 0x929C + ("", X, 1, "GL_DIFFERENCE_NV"), # 0x929E + ("", X, 1, "GL_MINUS_NV"), # 0x929F + ("", X, 1, "GL_EXCLUSION_NV"), # 0x92A0 + ("", X, 1, "GL_CONTRAST_NV"), # 0x92A1 + ("", X, 1, "GL_INVERT_RGB_NV"), # 0x92A3 + ("", X, 1, "GL_LINEARDODGE_NV"), # 0x92A4 + ("", X, 1, "GL_LINEARBURN_NV"), # 0x92A5 + ("", X, 1, "GL_VIVIDLIGHT_NV"), # 0x92A6 + ("", X, 1, "GL_LINEARLIGHT_NV"), # 0x92A7 + ("", X, 1, "GL_PINLIGHT_NV"), # 0x92A8 + ("", X, 1, "GL_HARDMIX_NV"), # 0x92A9 + ("", X, 1, "GL_HSL_HUE_NV"), # 0x92AD + ("", X, 1, "GL_HSL_SATURATION_NV"), # 0x92AE + ("", X, 1, "GL_HSL_COLOR_NV"), # 0x92AF + ("", X, 1, "GL_HSL_LUMINOSITY_NV"), # 0x92B0 + ("", X, 1, "GL_PLUS_CLAMPED_NV"), # 0x92B1 + ("", X, 1, "GL_PLUS_CLAMPED_ALPHA_NV"), # 0x92B2 + ("", X, 1, "GL_MINUS_CLAMPED_NV"), # 0x92B3 + ("", X, 1, "GL_INVERT_OVG_NV"), # 0x92B4 ("", X, 1, "GL_ATOMIC_COUNTER_BUFFER"), # 0x92C0 ("", X, 1, "GL_ATOMIC_COUNTER_BUFFER_BINDING"), # 0x92C1 ("", X, 1, "GL_ATOMIC_COUNTER_BUFFER_START"), # 0x92C2 @@ -3212,12 +3335,12 @@ parameters = [ ("", X, 1, "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER"), # 0x92C9 ("", X, 1, "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER"), # 0x92CA ("", X, 1, "GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER"), # 0x92CB - ("", X, 1, "GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS"), # 0x92CC - ("", X, 1, "GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS"), # 0x92CD - ("", X, 1, "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS"), # 0x92CE - ("", X, 1, "GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS"), # 0x92CF - ("", X, 1, "GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS"), # 0x92D0 - ("", X, 1, "GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS"), # 0x92D1 + ("glGet", I, 1, "GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS"), # 0x92CC + ("glGet", I, 1, "GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS"), # 0x92CD + ("glGet", I, 1, "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS"), # 0x92CE + ("glGet", I, 1, "GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS"), # 0x92CF + ("glGet", I, 1, "GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS"), # 0x92D0 + ("glGet", I, 1, "GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS"), # 0x92D1 ("", X, 1, "GL_MAX_VERTEX_ATOMIC_COUNTERS"), # 0x92D2 ("", X, 1, "GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS"), # 0x92D3 ("", X, 1, "GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS"), # 0x92D4 @@ -3286,12 +3409,15 @@ parameters = [ ("glGet", I, 1, "GL_MAX_FRAMEBUFFER_HEIGHT"), # 0x9316 ("glGet", I, 1, "GL_MAX_FRAMEBUFFER_LAYERS"), # 0x9317 ("glGet", I, 1, "GL_MAX_FRAMEBUFFER_SAMPLES"), # 0x9318 + ("", X, 1, "GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB"), # 0x9344 + ("", X, 1, "GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB"), # 0x9345 ("", X, 1, "GL_LOCATION_COMPONENT"), # 0x934A ("", X, 1, "GL_TRANSFORM_FEEDBACK_BUFFER_INDEX"), # 0x934B ("", X, 1, "GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE"), # 0x934C ("", X, 1, "GL_CLEAR_TEXTURE"), # 0x9365 ("", X, 1, "GL_NUM_SAMPLE_COUNTS"), # 0x9380 ("", X, 1, "GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE"), # 0x93A0 + ("", X, 1, "GL_BGRA8_EXT"), # 0x93A1 ("", X, 1, "GL_TEXTURE_USAGE_ANGLE"), # 0x93A2 ("", X, 1, "GL_FRAMEBUFFER_ATTACHMENT_ANGLE"), # 0x93A3 ("", X, 1, "GL_PACK_REVERSE_ROW_ORDER_ANGLE"), # 0x93A4 @@ -3310,6 +3436,16 @@ parameters = [ ("", X, 1, "GL_COMPRESSED_RGBA_ASTC_10x10_KHR"), # 0x93BB ("", X, 1, "GL_COMPRESSED_RGBA_ASTC_12x10_KHR"), # 0x93BC ("", X, 1, "GL_COMPRESSED_RGBA_ASTC_12x12_KHR"), # 0x93BD + #("", X, 1, "GL_COMPRESSED_RGBA_ASTC_3x3x3_OES"), # 0x93C0 + #("", X, 1, "GL_COMPRESSED_RGBA_ASTC_4x3x3_OES"), # 0x93C1 + #("", X, 1, "GL_COMPRESSED_RGBA_ASTC_4x4x3_OES"), # 0x93C2 + #("", X, 1, "GL_COMPRESSED_RGBA_ASTC_4x4x4_OES"), # 0x93C3 + #("", X, 1, "GL_COMPRESSED_RGBA_ASTC_5x4x4_OES"), # 0x93C4 + #("", X, 1, "GL_COMPRESSED_RGBA_ASTC_5x5x4_OES"), # 0x93C5 + #("", X, 1, "GL_COMPRESSED_RGBA_ASTC_5x5x5_OES"), # 0x93C6 + #("", X, 1, "GL_COMPRESSED_RGBA_ASTC_6x5x5_OES"), # 0x93C7 + #("", X, 1, "GL_COMPRESSED_RGBA_ASTC_6x6x5_OES"), # 0x93C8 + #("", X, 1, "GL_COMPRESSED_RGBA_ASTC_6x6x6_OES"), # 0x93C9 ("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR"), # 0x93D0 ("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR"), # 0x93D1 ("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR"), # 0x93D2 @@ -3324,6 +3460,31 @@ parameters = [ ("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR"), # 0x93DB ("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR"), # 0x93DC ("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR"), # 0x93DD + #("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_3x3x3_OES"), # 0x93E0 + #("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x3x3_OES"), # 0x93E1 + #("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x3_OES"), # 0x93E2 + #("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4x4_OES"), # 0x93E3 + #("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4x4_OES"), # 0x93E4 + #("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x4_OES"), # 0x93E5 + #("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5x5_OES"), # 0x93E6 + #("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5x5_OES"), # 0x93E7 + #("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x5_OES"), # 0x93E8 + #("", X, 1, "GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6x6_OES"), # 0x93E9 + ("", X, 1, "GL_PERFQUERY_COUNTER_EVENT_INTEL"), # 0x94F0 + ("", X, 1, "GL_PERFQUERY_COUNTER_DURATION_NORM_INTEL"), # 0x94F1 + ("", X, 1, "GL_PERFQUERY_COUNTER_DURATION_RAW_INTEL"), # 0x94F2 + ("", X, 1, "GL_PERFQUERY_COUNTER_THROUGHPUT_INTEL"), # 0x94F3 + ("", X, 1, "GL_PERFQUERY_COUNTER_RAW_INTEL"), # 0x94F4 + ("", X, 1, "GL_PERFQUERY_COUNTER_TIMESTAMP_INTEL"), # 0x94F5 + ("", X, 1, "GL_PERFQUERY_COUNTER_DATA_UINT32_INTEL"), # 0x94F8 + ("", X, 1, "GL_PERFQUERY_COUNTER_DATA_UINT64_INTEL"), # 0x94F9 + ("", X, 1, "GL_PERFQUERY_COUNTER_DATA_FLOAT_INTEL"), # 0x94FA + ("", X, 1, "GL_PERFQUERY_COUNTER_DATA_DOUBLE_INTEL"), # 0x94FB + ("", X, 1, "GL_PERFQUERY_COUNTER_DATA_BOOL32_INTEL"), # 0x94FC + ("", X, 1, "GL_PERFQUERY_QUERY_NAME_LENGTH_MAX_INTEL"), # 0x94FD + ("", X, 1, "GL_PERFQUERY_COUNTER_NAME_LENGTH_MAX_INTEL"), # 0x94FE + ("", X, 1, "GL_PERFQUERY_COUNTER_DESC_LENGTH_MAX_INTEL"), # 0x94FF + ("", X, 1, "GL_PERFQUERY_GPA_EXTENDED_COUNTERS_INTEL"), # 0x9500 ("_glGet", B, 1, "GL_RASTER_POSITION_UNCLIPPED_IBM"), # 0x19262 ("", X, 1, "GL_PREFER_DOUBLEBUFFER_HINT_PGI"), # 0x1A1F8 ("", X, 1, "GL_CONSERVE_MEMORY_HINT_PGI"), # 0x1A1FD @@ -3349,6 +3510,25 @@ parameters = [ ("", X, 1, "GL_VERTEX_CONSISTENT_HINT_PGI"), # 0x1A22B ("", X, 1, "GL_MATERIAL_SIDE_HINT_PGI"), # 0x1A22C ("", X, 1, "GL_MAX_VERTEX_HINT_PGI"), # 0x1A22D + ("", X, 1, "GL_CULL_VERTEX_IBM"), # 0x103050 + ("", X, 1, "GL_ALL_STATIC_DATA_IBM"), # 0x103060 + ("", X, 1, "GL_STATIC_VERTEX_ARRAY_IBM"), # 0x103061 + ("", X, 1, "GL_VERTEX_ARRAY_LIST_IBM"), # 0x103070 + ("", X, 1, "GL_NORMAL_ARRAY_LIST_IBM"), # 0x103071 + ("", X, 1, "GL_COLOR_ARRAY_LIST_IBM"), # 0x103072 + ("", X, 1, "GL_INDEX_ARRAY_LIST_IBM"), # 0x103073 + ("", X, 1, "GL_TEXTURE_COORD_ARRAY_LIST_IBM"), # 0x103074 + ("", X, 1, "GL_EDGE_FLAG_ARRAY_LIST_IBM"), # 0x103075 + ("", X, 1, "GL_FOG_COORDINATE_ARRAY_LIST_IBM"), # 0x103076 + ("", X, 1, "GL_SECONDARY_COLOR_ARRAY_LIST_IBM"), # 0x103077 + ("", X, 1, "GL_VERTEX_ARRAY_LIST_STRIDE_IBM"), # 0x103080 + ("", X, 1, "GL_NORMAL_ARRAY_LIST_STRIDE_IBM"), # 0x103081 + ("", X, 1, "GL_COLOR_ARRAY_LIST_STRIDE_IBM"), # 0x103082 + ("", X, 1, "GL_INDEX_ARRAY_LIST_STRIDE_IBM"), # 0x103083 + ("", X, 1, "GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM"), # 0x103084 + ("", X, 1, "GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM"), # 0x103085 + ("", X, 1, "GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM"), # 0x103086 + ("", X, 1, "GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM"), # 0x103087 ("", X, 1, "GL_INVALID_INDEX"), # 0xFFFFFFFFu #("", X, 1, "GL_TIMEOUT_IGNORED"), # 0xFFFFFFFFFFFFFFFFull ] diff --git a/specs/scripts/.gitignore b/specs/scripts/.gitignore index 5e2dae1c..0a18db77 100644 --- a/specs/scripts/.gitignore +++ b/specs/scripts/.gitignore @@ -1,6 +1,7 @@ *.spec *.tm *.txt +*.xml *api.py glparams.py wglenum.py diff --git a/specs/scripts/Makefile b/specs/scripts/Makefile index 339de1ef..a9be1ae9 100644 --- a/specs/scripts/Makefile +++ b/specs/scripts/Makefile @@ -9,7 +9,7 @@ all: \ eglenum.py download: \ - enum.spec \ + gl.xml \ enumext.spec \ gl.spec \ gl.tm \ @@ -25,6 +25,10 @@ download: \ wgl.tm \ eglenum.spec + +%.xml: + wget -N https://cvs.khronos.org/svn/repos/ogl/trunk/doc/registry/public/api/$@ + %.spec: wget -N http://www.opengl.org/registry/api/$@ @@ -43,8 +47,8 @@ glxapi.py: glspec.py glx.tm glx.spec glxext.spec wglapi.py: glspec.py wgl.tm wgl.spec wglext.spec python glspec.py wgl wgl.tm wgl.spec wglext.spec > $@ -glparams.py: glparams.sed enum.spec sort.sh - sed -n -f glparams.sed enum.spec | ./sort.sh > $@ +glparams.py: xml2glparams.py gl.xml + python xml2glparams.py gl.xml > $@ wglenum.py: wglenum.sh wglenumext.spec ./wglenum.sh wglenumext.spec > $@ diff --git a/specs/scripts/glparams.sed b/specs/scripts/glparams.sed deleted file mode 100644 index fbbc4240..00000000 --- a/specs/scripts/glparams.sed +++ /dev/null @@ -1,2 +0,0 @@ -s/^\s\+\(\w\+\)\s*=\s*\(0x\w\w\w\w\)\s\+#\s\+\([0-9]\+\)\s\+\([IF]\)\s*\(#.*\)\?$/ ("glGet",\t\4,\t\3,\t"GL_\1"),\t# \2/p -s/^\s\+\(\w\+\)\s*=\s*\(0x\w\w\w\w\)\s*\(#.*\)\?$/ ("",\tX,\t1,\t"GL_\1"),\t# \2/p diff --git a/specs/scripts/xml2glparams.py b/specs/scripts/xml2glparams.py new file mode 100644 index 00000000..1603c105 --- /dev/null +++ b/specs/scripts/xml2glparams.py @@ -0,0 +1,54 @@ +########################################################################## +# +# Copyright 2014 VMware, Inc +# 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 +# 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. +# +##########################################################################/ + + +# +# Script to half-generate glparams.py based on Khronos' gl.xml +# + + +import xml.etree.ElementTree as ET +tree = ET.parse('gl.xml') +root = tree.getroot() + + +params = {} +for enums in root.findall('enums'): + if enums.attrib.get('type') == 'bitmask': + continue + + for enum in enums.findall('enum'): + name = enum.attrib['name'] + value = enum.attrib['value'] + value = int(value, 16) + + params.setdefault(value, name) + + +values = params.keys() +values.sort() +for value in values: + name = params[value] + print ' ("",\tX,\t1,\t"%s"),\t# 0x%04X' % (name, value) |