github.com/thommil/tge-gl@v0.0.0-20190313100017-83d8f10f8fae/consts.go (about)

     1  // Copyright 2014 The Go Authors.  All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package gl
     6  
     7  /*
     8  Partially generated from the Khronos OpenGL API specification in XML
     9  format, which is covered by the license:
    10  
    11  	Copyright (c) 2013-2014 The Khronos Group Inc.
    12  
    13  	Permission is hereby granted, free of charge, to any person obtaining a
    14  	copy of this software and/or associated documentation files (the
    15  	"Materials"), to deal in the Materials without restriction, including
    16  	without limitation the rights to use, copy, modify, merge, publish,
    17  	distribute, sublicense, and/or sell copies of the Materials, and to
    18  	permit persons to whom the Materials are furnished to do so, subject to
    19  	the following conditions:
    20  
    21  	The above copyright notice and this permission notice shall be included
    22  	in all copies or substantial portions of the Materials.
    23  
    24  	THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    25  	EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    26  	MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    27  	IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    28  	CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    29  	TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    30  	MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
    31  
    32  */
    33  
    34  // GL Common Constants
    35  const (
    36  	POINTS                                       = 0x0000
    37  	LINES                                        = 0x0001
    38  	LINE_LOOP                                    = 0x0002
    39  	LINE_STRIP                                   = 0x0003
    40  	TRIANGLES                                    = 0x0004
    41  	TRIANGLE_STRIP                               = 0x0005
    42  	TRIANGLE_FAN                                 = 0x0006
    43  	SRC_COLOR                                    = 0x0300
    44  	ONE_MINUS_SRC_COLOR                          = 0x0301
    45  	SRC_ALPHA                                    = 0x0302
    46  	ONE_MINUS_SRC_ALPHA                          = 0x0303
    47  	DST_ALPHA                                    = 0x0304
    48  	ONE_MINUS_DST_ALPHA                          = 0x0305
    49  	DST_COLOR                                    = 0x0306
    50  	ONE_MINUS_DST_COLOR                          = 0x0307
    51  	SRC_ALPHA_SATURATE                           = 0x0308
    52  	FUNC_ADD                                     = 0x8006
    53  	BLEND_EQUATION                               = 0x8009
    54  	BLEND_EQUATION_RGB                           = 0x8009
    55  	BLEND_EQUATION_ALPHA                         = 0x883D
    56  	FUNC_SUBTRACT                                = 0x800A
    57  	FUNC_REVERSE_SUBTRACT                        = 0x800B
    58  	BLEND_DST_RGB                                = 0x80C8
    59  	BLEND_SRC_RGB                                = 0x80C9
    60  	BLEND_DST_ALPHA                              = 0x80CA
    61  	BLEND_SRC_ALPHA                              = 0x80CB
    62  	CONSTANT_COLOR                               = 0x8001
    63  	ONE_MINUS_CONSTANT_COLOR                     = 0x8002
    64  	CONSTANT_ALPHA                               = 0x8003
    65  	ONE_MINUS_CONSTANT_ALPHA                     = 0x8004
    66  	BLEND_COLOR                                  = 0x8005
    67  	ARRAY_BUFFER                                 = 0x8892
    68  	ELEMENT_ARRAY_BUFFER                         = 0x8893
    69  	ARRAY_BUFFER_BINDING                         = 0x8894
    70  	ELEMENT_ARRAY_BUFFER_BINDING                 = 0x8895
    71  	STREAM_DRAW                                  = 0x88E0
    72  	STATIC_DRAW                                  = 0x88E4
    73  	DYNAMIC_DRAW                                 = 0x88E8
    74  	BUFFER_SIZE                                  = 0x8764
    75  	BUFFER_USAGE                                 = 0x8765
    76  	CURRENT_VERTEX_ATTRIB                        = 0x8626
    77  	FRONT                                        = 0x0404
    78  	BACK                                         = 0x0405
    79  	FRONT_AND_BACK                               = 0x0408
    80  	TEXTURE_2D                                   = 0x0DE1
    81  	CULL_FACE                                    = 0x0B44
    82  	BLEND                                        = 0x0BE2
    83  	DITHER                                       = 0x0BD0
    84  	STENCIL_TEST                                 = 0x0B90
    85  	DEPTH_TEST                                   = 0x0B71
    86  	SCISSOR_TEST                                 = 0x0C11
    87  	POLYGON_OFFSET_FILL                          = 0x8037
    88  	SAMPLE_ALPHA_TO_COVERAGE                     = 0x809E
    89  	SAMPLE_COVERAGE                              = 0x80A0
    90  	INVALID_ENUM                                 = 0x0500
    91  	INVALID_VALUE                                = 0x0501
    92  	INVALID_OPERATION                            = 0x0502
    93  	OUT_OF_MEMORY                                = 0x0505
    94  	CW                                           = 0x0900
    95  	CCW                                          = 0x0901
    96  	LINE_WIDTH                                   = 0x0B21
    97  	ALIASED_POINT_SIZE_RANGE                     = 0x846D
    98  	ALIASED_LINE_WIDTH_RANGE                     = 0x846E
    99  	CULL_FACE_MODE                               = 0x0B45
   100  	FRONT_FACE                                   = 0x0B46
   101  	DEPTH_RANGE                                  = 0x0B70
   102  	DEPTH_WRITEMASK                              = 0x0B72
   103  	DEPTH_CLEAR_VALUE                            = 0x0B73
   104  	DEPTH_FUNC                                   = 0x0B74
   105  	STENCIL_CLEAR_VALUE                          = 0x0B91
   106  	STENCIL_FUNC                                 = 0x0B92
   107  	STENCIL_FAIL                                 = 0x0B94
   108  	STENCIL_PASS_DEPTH_FAIL                      = 0x0B95
   109  	STENCIL_PASS_DEPTH_PASS                      = 0x0B96
   110  	STENCIL_REF                                  = 0x0B97
   111  	STENCIL_VALUE_MASK                           = 0x0B93
   112  	STENCIL_WRITEMASK                            = 0x0B98
   113  	STENCIL_BACK_FUNC                            = 0x8800
   114  	STENCIL_BACK_FAIL                            = 0x8801
   115  	STENCIL_BACK_PASS_DEPTH_FAIL                 = 0x8802
   116  	STENCIL_BACK_PASS_DEPTH_PASS                 = 0x8803
   117  	STENCIL_BACK_REF                             = 0x8CA3
   118  	STENCIL_BACK_VALUE_MASK                      = 0x8CA4
   119  	STENCIL_BACK_WRITEMASK                       = 0x8CA5
   120  	VIEWPORT                                     = 0x0BA2
   121  	SCISSOR_BOX                                  = 0x0C10
   122  	COLOR_CLEAR_VALUE                            = 0x0C22
   123  	COLOR_WRITEMASK                              = 0x0C23
   124  	UNPACK_ALIGNMENT                             = 0x0CF5
   125  	PACK_ALIGNMENT                               = 0x0D05
   126  	MAX_TEXTURE_SIZE                             = 0x0D33
   127  	MAX_VIEWPORT_DIMS                            = 0x0D3A
   128  	SUBPIXEL_BITS                                = 0x0D50
   129  	RED_BITS                                     = 0x0D52
   130  	GREEN_BITS                                   = 0x0D53
   131  	BLUE_BITS                                    = 0x0D54
   132  	ALPHA_BITS                                   = 0x0D55
   133  	DEPTH_BITS                                   = 0x0D56
   134  	STENCIL_BITS                                 = 0x0D57
   135  	POLYGON_OFFSET_UNITS                         = 0x2A00
   136  	POLYGON_OFFSET_FACTOR                        = 0x8038
   137  	TEXTURE_BINDING_2D                           = 0x8069
   138  	SAMPLE_BUFFERS                               = 0x80A8
   139  	SAMPLES                                      = 0x80A9
   140  	SAMPLE_COVERAGE_VALUE                        = 0x80AA
   141  	SAMPLE_COVERAGE_INVERT                       = 0x80AB
   142  	NUM_COMPRESSED_TEXTURE_FORMATS               = 0x86A2
   143  	COMPRESSED_TEXTURE_FORMATS                   = 0x86A3
   144  	DONT_CARE                                    = 0x1100
   145  	FASTEST                                      = 0x1101
   146  	NICEST                                       = 0x1102
   147  	GENERATE_MIPMAP_HINT                         = 0x8192
   148  	BYTE                                         = 0x1400
   149  	UNSIGNED_BYTE                                = 0x1401
   150  	SHORT                                        = 0x1402
   151  	UNSIGNED_SHORT                               = 0x1403
   152  	INT                                          = 0x1404
   153  	UNSIGNED_INT                                 = 0x1405
   154  	FLOAT                                        = 0x1406
   155  	FIXED                                        = 0x140C
   156  	DEPTH_COMPONENT                              = 0x1902
   157  	ALPHA                                        = 0x1906
   158  	RGB                                          = 0x1907
   159  	RGBA                                         = 0x1908
   160  	LUMINANCE                                    = 0x1909
   161  	LUMINANCE_ALPHA                              = 0x190A
   162  	UNSIGNED_SHORT_4_4_4_4                       = 0x8033
   163  	UNSIGNED_SHORT_5_5_5_1                       = 0x8034
   164  	UNSIGNED_SHORT_5_6_5                         = 0x8363
   165  	MAX_VERTEX_ATTRIBS                           = 0x8869
   166  	MAX_VERTEX_UNIFORM_VECTORS                   = 0x8DFB
   167  	MAX_VARYING_VECTORS                          = 0x8DFC
   168  	MAX_COMBINED_TEXTURE_IMAGE_UNITS             = 0x8B4D
   169  	MAX_VERTEX_TEXTURE_IMAGE_UNITS               = 0x8B4C
   170  	MAX_TEXTURE_IMAGE_UNITS                      = 0x8872
   171  	MAX_FRAGMENT_UNIFORM_VECTORS                 = 0x8DFD
   172  	SHADER_TYPE                                  = 0x8B4F
   173  	DELETE_STATUS                                = 0x8B80
   174  	LINK_STATUS                                  = 0x8B82
   175  	VALIDATE_STATUS                              = 0x8B83
   176  	ATTACHED_SHADERS                             = 0x8B85
   177  	ACTIVE_UNIFORMS                              = 0x8B86
   178  	ACTIVE_UNIFORM_MAX_LENGTH                    = 0x8B87
   179  	ACTIVE_ATTRIBUTES                            = 0x8B89
   180  	ACTIVE_ATTRIBUTE_MAX_LENGTH                  = 0x8B8A
   181  	SHADING_LANGUAGE_VERSION                     = 0x8B8C
   182  	CURRENT_PROGRAM                              = 0x8B8D
   183  	NEVER                                        = 0x0200
   184  	LESS                                         = 0x0201
   185  	EQUAL                                        = 0x0202
   186  	LEQUAL                                       = 0x0203
   187  	GREATER                                      = 0x0204
   188  	NOTEQUAL                                     = 0x0205
   189  	GEQUAL                                       = 0x0206
   190  	ALWAYS                                       = 0x0207
   191  	KEEP                                         = 0x1E00
   192  	REPLACE                                      = 0x1E01
   193  	INCR                                         = 0x1E02
   194  	DECR                                         = 0x1E03
   195  	INVERT                                       = 0x150A
   196  	INCR_WRAP                                    = 0x8507
   197  	DECR_WRAP                                    = 0x8508
   198  	VENDOR                                       = 0x1F00
   199  	RENDERER                                     = 0x1F01
   200  	VERSION                                      = 0x1F02
   201  	EXTENSIONS                                   = 0x1F03
   202  	NEAREST                                      = 0x2600
   203  	LINEAR                                       = 0x2601
   204  	NEAREST_MIPMAP_NEAREST                       = 0x2700
   205  	LINEAR_MIPMAP_NEAREST                        = 0x2701
   206  	NEAREST_MIPMAP_LINEAR                        = 0x2702
   207  	LINEAR_MIPMAP_LINEAR                         = 0x2703
   208  	TEXTURE_MAG_FILTER                           = 0x2800
   209  	TEXTURE_MIN_FILTER                           = 0x2801
   210  	TEXTURE_WRAP_S                               = 0x2802
   211  	TEXTURE_WRAP_T                               = 0x2803
   212  	TEXTURE                                      = 0x1702
   213  	TEXTURE_CUBE_MAP                             = 0x8513
   214  	TEXTURE_BINDING_CUBE_MAP                     = 0x8514
   215  	TEXTURE_CUBE_MAP_POSITIVE_X                  = 0x8515
   216  	TEXTURE_CUBE_MAP_NEGATIVE_X                  = 0x8516
   217  	TEXTURE_CUBE_MAP_POSITIVE_Y                  = 0x8517
   218  	TEXTURE_CUBE_MAP_NEGATIVE_Y                  = 0x8518
   219  	TEXTURE_CUBE_MAP_POSITIVE_Z                  = 0x8519
   220  	TEXTURE_CUBE_MAP_NEGATIVE_Z                  = 0x851A
   221  	MAX_CUBE_MAP_TEXTURE_SIZE                    = 0x851C
   222  	TEXTURE0                                     = 0x84C0
   223  	TEXTURE1                                     = 0x84C1
   224  	TEXTURE2                                     = 0x84C2
   225  	TEXTURE3                                     = 0x84C3
   226  	TEXTURE4                                     = 0x84C4
   227  	TEXTURE5                                     = 0x84C5
   228  	TEXTURE6                                     = 0x84C6
   229  	TEXTURE7                                     = 0x84C7
   230  	TEXTURE8                                     = 0x84C8
   231  	TEXTURE9                                     = 0x84C9
   232  	TEXTURE10                                    = 0x84CA
   233  	TEXTURE11                                    = 0x84CB
   234  	TEXTURE12                                    = 0x84CC
   235  	TEXTURE13                                    = 0x84CD
   236  	TEXTURE14                                    = 0x84CE
   237  	TEXTURE15                                    = 0x84CF
   238  	TEXTURE16                                    = 0x84D0
   239  	TEXTURE17                                    = 0x84D1
   240  	TEXTURE18                                    = 0x84D2
   241  	TEXTURE19                                    = 0x84D3
   242  	TEXTURE20                                    = 0x84D4
   243  	TEXTURE21                                    = 0x84D5
   244  	TEXTURE22                                    = 0x84D6
   245  	TEXTURE23                                    = 0x84D7
   246  	TEXTURE24                                    = 0x84D8
   247  	TEXTURE25                                    = 0x84D9
   248  	TEXTURE26                                    = 0x84DA
   249  	TEXTURE27                                    = 0x84DB
   250  	TEXTURE28                                    = 0x84DC
   251  	TEXTURE29                                    = 0x84DD
   252  	TEXTURE30                                    = 0x84DE
   253  	TEXTURE31                                    = 0x84DF
   254  	ACTIVE_TEXTURE                               = 0x84E0
   255  	REPEAT                                       = 0x2901
   256  	CLAMP_TO_EDGE                                = 0x812F
   257  	MIRRORED_REPEAT                              = 0x8370
   258  	VERTEX_ATTRIB_ARRAY_ENABLED                  = 0x8622
   259  	VERTEX_ATTRIB_ARRAY_SIZE                     = 0x8623
   260  	VERTEX_ATTRIB_ARRAY_STRIDE                   = 0x8624
   261  	VERTEX_ATTRIB_ARRAY_TYPE                     = 0x8625
   262  	VERTEX_ATTRIB_ARRAY_NORMALIZED               = 0x886A
   263  	VERTEX_ATTRIB_ARRAY_POINTER                  = 0x8645
   264  	VERTEX_ATTRIB_ARRAY_BUFFER_BINDING           = 0x889F
   265  	IMPLEMENTATION_COLOR_READ_TYPE               = 0x8B9A
   266  	IMPLEMENTATION_COLOR_READ_FORMAT             = 0x8B9B
   267  	COMPILE_STATUS                               = 0x8B81
   268  	INFO_LOG_LENGTH                              = 0x8B84
   269  	SHADER_SOURCE_LENGTH                         = 0x8B88
   270  	SHADER_COMPILER                              = 0x8DFA
   271  	SHADER_BINARY_FORMATS                        = 0x8DF8
   272  	NUM_SHADER_BINARY_FORMATS                    = 0x8DF9
   273  	LOW_FLOAT                                    = 0x8DF0
   274  	MEDIUM_FLOAT                                 = 0x8DF1
   275  	HIGH_FLOAT                                   = 0x8DF2
   276  	LOW_INT                                      = 0x8DF3
   277  	MEDIUM_INT                                   = 0x8DF4
   278  	HIGH_INT                                     = 0x8DF5
   279  	FRAMEBUFFER                                  = 0x8D40
   280  	RENDERBUFFER                                 = 0x8D41
   281  	RGBA4                                        = 0x8056
   282  	RGB5_A1                                      = 0x8057
   283  	RGB565                                       = 0x8D62
   284  	DEPTH_COMPONENT16                            = 0x81A5
   285  	STENCIL_INDEX8                               = 0x8D48
   286  	RENDERBUFFER_WIDTH                           = 0x8D42
   287  	RENDERBUFFER_HEIGHT                          = 0x8D43
   288  	RENDERBUFFER_INTERNAL_FORMAT                 = 0x8D44
   289  	RENDERBUFFER_RED_SIZE                        = 0x8D50
   290  	RENDERBUFFER_GREEN_SIZE                      = 0x8D51
   291  	RENDERBUFFER_BLUE_SIZE                       = 0x8D52
   292  	RENDERBUFFER_ALPHA_SIZE                      = 0x8D53
   293  	RENDERBUFFER_DEPTH_SIZE                      = 0x8D54
   294  	RENDERBUFFER_STENCIL_SIZE                    = 0x8D55
   295  	FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE           = 0x8CD0
   296  	FRAMEBUFFER_ATTACHMENT_OBJECT_NAME           = 0x8CD1
   297  	FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL         = 0x8CD2
   298  	FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3
   299  	COLOR_ATTACHMENT0                            = 0x8CE0
   300  	DEPTH_ATTACHMENT                             = 0x8D00
   301  	STENCIL_ATTACHMENT                           = 0x8D20
   302  	FRAMEBUFFER_COMPLETE                         = 0x8CD5
   303  	FRAMEBUFFER_INCOMPLETE_ATTACHMENT            = 0x8CD6
   304  	FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT    = 0x8CD7
   305  	FRAMEBUFFER_INCOMPLETE_DIMENSIONS            = 0x8CD9
   306  	FRAMEBUFFER_UNSUPPORTED                      = 0x8CDD
   307  	FRAMEBUFFER_BINDING                          = 0x8CA6
   308  	RENDERBUFFER_BINDING                         = 0x8CA7
   309  	MAX_RENDERBUFFER_SIZE                        = 0x84E8
   310  	INVALID_FRAMEBUFFER_OPERATION                = 0x0506
   311  )
   312  
   313  // Buffer types
   314  const (
   315  	DEPTH_BUFFER_BIT   = 0x00000100
   316  	STENCIL_BUFFER_BIT = 0x00000400
   317  	COLOR_BUFFER_BIT   = 0x00004000
   318  )
   319  
   320  // Types
   321  const (
   322  	FLOAT_VEC2   = 0x8B50
   323  	FLOAT_VEC3   = 0x8B51
   324  	FLOAT_VEC4   = 0x8B52
   325  	INT_VEC2     = 0x8B53
   326  	INT_VEC3     = 0x8B54
   327  	INT_VEC4     = 0x8B55
   328  	BOOL         = 0x8B56
   329  	BOOL_VEC2    = 0x8B57
   330  	BOOL_VEC3    = 0x8B58
   331  	BOOL_VEC4    = 0x8B59
   332  	FLOAT_MAT2   = 0x8B5A
   333  	FLOAT_MAT3   = 0x8B5B
   334  	FLOAT_MAT4   = 0x8B5C
   335  	SAMPLER_2D   = 0x8B5E
   336  	SAMPLER_CUBE = 0x8B60
   337  )
   338  
   339  // Shaders types
   340  const (
   341  	FRAGMENT_SHADER = 0x8B30
   342  	VERTEX_SHADER   = 0x8B31
   343  )
   344  
   345  // Common
   346  const (
   347  	FALSE    = 0
   348  	TRUE     = 1
   349  	ZERO     = 0
   350  	ONE      = 1
   351  	NO_ERROR = 0
   352  	NONE     = 0
   353  )
   354  
   355  // GL ES 3.0 constants.
   356  const (
   357  	ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH          = 0x8A35
   358  	ACTIVE_UNIFORM_BLOCKS                         = 0x8A36
   359  	ALREADY_SIGNALED                              = 0x911A
   360  	ANY_SAMPLES_PASSED                            = 0x8C2F
   361  	ANY_SAMPLES_PASSED_CONSERVATIVE               = 0x8D6A
   362  	BLUE                                          = 0x1905
   363  	BUFFER_ACCESS_FLAGS                           = 0x911F
   364  	BUFFER_MAP_LENGTH                             = 0x9120
   365  	BUFFER_MAP_OFFSET                             = 0x9121
   366  	BUFFER_MAPPED                                 = 0x88BC
   367  	BUFFER_MAP_POINTER                            = 0x88BD
   368  	COLOR                                         = 0x1800
   369  	COLOR_ATTACHMENT10                            = 0x8CEA
   370  	COLOR_ATTACHMENT1                             = 0x8CE1
   371  	COLOR_ATTACHMENT11                            = 0x8CEB
   372  	COLOR_ATTACHMENT12                            = 0x8CEC
   373  	COLOR_ATTACHMENT13                            = 0x8CED
   374  	COLOR_ATTACHMENT14                            = 0x8CEE
   375  	COLOR_ATTACHMENT15                            = 0x8CEF
   376  	COLOR_ATTACHMENT2                             = 0x8CE2
   377  	COLOR_ATTACHMENT3                             = 0x8CE3
   378  	COLOR_ATTACHMENT4                             = 0x8CE4
   379  	COLOR_ATTACHMENT5                             = 0x8CE5
   380  	COLOR_ATTACHMENT6                             = 0x8CE6
   381  	COLOR_ATTACHMENT7                             = 0x8CE7
   382  	COLOR_ATTACHMENT8                             = 0x8CE8
   383  	COLOR_ATTACHMENT9                             = 0x8CE9
   384  	COMPARE_REF_TO_TEXTURE                        = 0x884E
   385  	COMPRESSED_R11_EAC                            = 0x9270
   386  	COMPRESSED_RG11_EAC                           = 0x9272
   387  	COMPRESSED_RGB8_ETC2                          = 0x9274
   388  	COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2      = 0x9276
   389  	COMPRESSED_RGBA8_ETC2_EAC                     = 0x9278
   390  	COMPRESSED_SIGNED_R11_EAC                     = 0x9271
   391  	COMPRESSED_SIGNED_RG11_EAC                    = 0x9273
   392  	COMPRESSED_SRGB8_ALPHA8_ETC2_EAC              = 0x9279
   393  	COMPRESSED_SRGB8_ETC2                         = 0x9275
   394  	COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2     = 0x9277
   395  	CONDITION_SATISFIED                           = 0x911C
   396  	COPY_READ_BUFFER                              = 0x8F36
   397  	COPY_READ_BUFFER_BINDING                      = 0x8F36
   398  	COPY_WRITE_BUFFER                             = 0x8F37
   399  	COPY_WRITE_BUFFER_BINDING                     = 0x8F37
   400  	CURRENT_QUERY                                 = 0x8865
   401  	DEPTH                                         = 0x1801
   402  	DEPTH24_STENCIL8                              = 0x88F0
   403  	DEPTH32F_STENCIL8                             = 0x8CAD
   404  	DEPTH_COMPONENT24                             = 0x81A6
   405  	DEPTH_COMPONENT32F                            = 0x8CAC
   406  	DEPTH_STENCIL                                 = 0x84F9
   407  	DEPTH_STENCIL_ATTACHMENT                      = 0x821A
   408  	DRAW_BUFFER0                                  = 0x8825
   409  	DRAW_BUFFER10                                 = 0x882F
   410  	DRAW_BUFFER1                                  = 0x8826
   411  	DRAW_BUFFER11                                 = 0x8830
   412  	DRAW_BUFFER12                                 = 0x8831
   413  	DRAW_BUFFER13                                 = 0x8832
   414  	DRAW_BUFFER14                                 = 0x8833
   415  	DRAW_BUFFER15                                 = 0x8834
   416  	DRAW_BUFFER2                                  = 0x8827
   417  	DRAW_BUFFER3                                  = 0x8828
   418  	DRAW_BUFFER4                                  = 0x8829
   419  	DRAW_BUFFER5                                  = 0x882A
   420  	DRAW_BUFFER6                                  = 0x882B
   421  	DRAW_BUFFER7                                  = 0x882C
   422  	DRAW_BUFFER8                                  = 0x882D
   423  	DRAW_BUFFER9                                  = 0x882E
   424  	DRAW_FRAMEBUFFER                              = 0x8CA9
   425  	DRAW_FRAMEBUFFER_BINDING                      = 0x8CA6
   426  	DYNAMIC_COPY                                  = 0x88EA
   427  	DYNAMIC_READ                                  = 0x88E9
   428  	FLOAT_32_UNSIGNED_INT_24_8_REV                = 0x8DAD
   429  	FLOAT_MAT2x3                                  = 0x8B65
   430  	FLOAT_MAT2x4                                  = 0x8B66
   431  	FLOAT_MAT3x2                                  = 0x8B67
   432  	FLOAT_MAT3x4                                  = 0x8B68
   433  	FLOAT_MAT4x2                                  = 0x8B69
   434  	FLOAT_MAT4x3                                  = 0x8B6A
   435  	FRAGMENT_SHADER_DERIVATIVE_HINT               = 0x8B8B
   436  	FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE             = 0x8215
   437  	FRAMEBUFFER_ATTACHMENT_BLUE_SIZE              = 0x8214
   438  	FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING         = 0x8210
   439  	FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE         = 0x8211
   440  	FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE             = 0x8216
   441  	FRAMEBUFFER_ATTACHMENT_GREEN_SIZE             = 0x8213
   442  	FRAMEBUFFER_ATTACHMENT_RED_SIZE               = 0x8212
   443  	FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE           = 0x8217
   444  	FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER          = 0x8CD4
   445  	FRAMEBUFFER_DEFAULT                           = 0x8218
   446  	FRAMEBUFFER_INCOMPLETE_MULTISAMPLE            = 0x8D56
   447  	FRAMEBUFFER_UNDEFINED                         = 0x8219
   448  	GREEN                                         = 0x1904
   449  	HALF_FLOAT                                    = 0x140B
   450  	INT_2_10_10_10_REV                            = 0x8D9F
   451  	INTERLEAVED_ATTRIBS                           = 0x8C8C
   452  	INT_SAMPLER_2D                                = 0x8DCA
   453  	INT_SAMPLER_2D_ARRAY                          = 0x8DCF
   454  	INT_SAMPLER_3D                                = 0x8DCB
   455  	INT_SAMPLER_CUBE                              = 0x8DCC
   456  	INVALID_INDEX                                 = 0xFFFFFFFF
   457  	MAJOR_VERSION                                 = 0x821B
   458  	MAP_FLUSH_EXPLICIT_BIT                        = 0x0010
   459  	MAP_INVALIDATE_BUFFER_BIT                     = 0x0008
   460  	MAP_INVALIDATE_RANGE_BIT                      = 0x0004
   461  	MAP_READ_BIT                                  = 0x0001
   462  	MAP_UNSYNCHRONIZED_BIT                        = 0x0020
   463  	MAP_WRITE_BIT                                 = 0x0002
   464  	MAX                                           = 0x8008
   465  	MAX_3D_TEXTURE_SIZE                           = 0x8073
   466  	MAX_ARRAY_TEXTURE_LAYERS                      = 0x88FF
   467  	MAX_COLOR_ATTACHMENTS                         = 0x8CDF
   468  	MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS      = 0x8A33
   469  	MAX_COMBINED_UNIFORM_BLOCKS                   = 0x8A2E
   470  	MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS        = 0x8A31
   471  	MAX_DRAW_BUFFERS                              = 0x8824
   472  	MAX_ELEMENT_INDEX                             = 0x8D6B
   473  	MAX_ELEMENTS_INDICES                          = 0x80E9
   474  	MAX_ELEMENTS_VERTICES                         = 0x80E8
   475  	MAX_FRAGMENT_INPUT_COMPONENTS                 = 0x9125
   476  	MAX_FRAGMENT_UNIFORM_BLOCKS                   = 0x8A2D
   477  	MAX_FRAGMENT_UNIFORM_COMPONENTS               = 0x8B49
   478  	MAX_PROGRAM_TEXEL_OFFSET                      = 0x8905
   479  	MAX_SAMPLES                                   = 0x8D57
   480  	MAX_SERVER_WAIT_TIMEOUT                       = 0x9111
   481  	MAX_TEXTURE_LOD_BIAS                          = 0x84FD
   482  	MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS = 0x8C8A
   483  	MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS       = 0x8C8B
   484  	MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS    = 0x8C80
   485  	MAX_UNIFORM_BLOCK_SIZE                        = 0x8A30
   486  	MAX_UNIFORM_BUFFER_BINDINGS                   = 0x8A2F
   487  	MAX_VARYING_COMPONENTS                        = 0x8B4B
   488  	MAX_VERTEX_OUTPUT_COMPONENTS                  = 0x9122
   489  	MAX_VERTEX_UNIFORM_BLOCKS                     = 0x8A2B
   490  	MAX_VERTEX_UNIFORM_COMPONENTS                 = 0x8B4A
   491  	MIN                                           = 0x8007
   492  	MINOR_VERSION                                 = 0x821C
   493  	MIN_PROGRAM_TEXEL_OFFSET                      = 0x8904
   494  	NUM_EXTENSIONS                                = 0x821D
   495  	NUM_PROGRAM_BINARY_FORMATS                    = 0x87FE
   496  	NUM_SAMPLE_COUNTS                             = 0x9380
   497  	OBJECT_TYPE                                   = 0x9112
   498  	PACK_ROW_LENGTH                               = 0x0D02
   499  	PACK_SKIP_PIXELS                              = 0x0D04
   500  	PACK_SKIP_ROWS                                = 0x0D03
   501  	PIXEL_PACK_BUFFER                             = 0x88EB
   502  	PIXEL_PACK_BUFFER_BINDING                     = 0x88ED
   503  	PIXEL_UNPACK_BUFFER                           = 0x88EC
   504  	PIXEL_UNPACK_BUFFER_BINDING                   = 0x88EF
   505  	PRIMITIVE_RESTART_FIXED_INDEX                 = 0x8D69
   506  	PROGRAM_BINARY_FORMATS                        = 0x87FF
   507  	PROGRAM_BINARY_LENGTH                         = 0x8741
   508  	PROGRAM_BINARY_RETRIEVABLE_HINT               = 0x8257
   509  	QUERY_RESULT                                  = 0x8866
   510  	QUERY_RESULT_AVAILABLE                        = 0x8867
   511  	R11F_G11F_B10F                                = 0x8C3A
   512  	R16F                                          = 0x822D
   513  	R16I                                          = 0x8233
   514  	R16UI                                         = 0x8234
   515  	R32F                                          = 0x822E
   516  	R32I                                          = 0x8235
   517  	R32UI                                         = 0x8236
   518  	R8                                            = 0x8229
   519  	R8I                                           = 0x8231
   520  	R8_SNORM                                      = 0x8F94
   521  	R8UI                                          = 0x8232
   522  	RASTERIZER_DISCARD                            = 0x8C89
   523  	READ_BUFFER                                   = 0x0C02
   524  	READ_FRAMEBUFFER                              = 0x8CA8
   525  	READ_FRAMEBUFFER_BINDING                      = 0x8CAA
   526  	RED                                           = 0x1903
   527  	RED_INTEGER                                   = 0x8D94
   528  	RENDERBUFFER_SAMPLES                          = 0x8CAB
   529  	RG                                            = 0x8227
   530  	RG16F                                         = 0x822F
   531  	RG16I                                         = 0x8239
   532  	RG16UI                                        = 0x823A
   533  	RG32F                                         = 0x8230
   534  	RG32I                                         = 0x823B
   535  	RG32UI                                        = 0x823C
   536  	RG8                                           = 0x822B
   537  	RG8I                                          = 0x8237
   538  	RG8_SNORM                                     = 0x8F95
   539  	RG8UI                                         = 0x8238
   540  	RGB10_A2                                      = 0x8059
   541  	RGB10_A2UI                                    = 0x906F
   542  	RGB16F                                        = 0x881B
   543  	RGB16I                                        = 0x8D89
   544  	RGB16UI                                       = 0x8D77
   545  	RGB32F                                        = 0x8815
   546  	RGB32I                                        = 0x8D83
   547  	RGB32UI                                       = 0x8D71
   548  	RGB8                                          = 0x8051
   549  	RGB8I                                         = 0x8D8F
   550  	RGB8_SNORM                                    = 0x8F96
   551  	RGB8UI                                        = 0x8D7D
   552  	RGB9_E5                                       = 0x8C3D
   553  	RGBA16F                                       = 0x881A
   554  	RGBA16I                                       = 0x8D88
   555  	RGBA16UI                                      = 0x8D76
   556  	RGBA32F                                       = 0x8814
   557  	RGBA32I                                       = 0x8D82
   558  	RGBA32UI                                      = 0x8D70
   559  	RGBA8                                         = 0x8058
   560  	RGBA8I                                        = 0x8D8E
   561  	RGBA8_SNORM                                   = 0x8F97
   562  	RGBA8UI                                       = 0x8D7C
   563  	RGBA_INTEGER                                  = 0x8D99
   564  	RGB_INTEGER                                   = 0x8D98
   565  	RG_INTEGER                                    = 0x8228
   566  	SAMPLER_2D_ARRAY                              = 0x8DC1
   567  	SAMPLER_2D_ARRAY_SHADOW                       = 0x8DC4
   568  	SAMPLER_2D_SHADOW                             = 0x8B62
   569  	SAMPLER_3D                                    = 0x8B5F
   570  	SAMPLER_BINDING                               = 0x8919
   571  	SAMPLER_CUBE_SHADOW                           = 0x8DC5
   572  	SEPARATE_ATTRIBS                              = 0x8C8D
   573  	SIGNALED                                      = 0x9119
   574  	SIGNED_NORMALIZED                             = 0x8F9C
   575  	SRGB                                          = 0x8C40
   576  	SRGB8                                         = 0x8C41
   577  	SRGB8_ALPHA8                                  = 0x8C43
   578  	STATIC_COPY                                   = 0x88E6
   579  	STATIC_READ                                   = 0x88E5
   580  	STENCIL                                       = 0x1802
   581  	STREAM_COPY                                   = 0x88E2
   582  	STREAM_READ                                   = 0x88E1
   583  	SYNC_CONDITION                                = 0x9113
   584  	SYNC_FENCE                                    = 0x9116
   585  	SYNC_FLAGS                                    = 0x9115
   586  	SYNC_FLUSH_COMMANDS_BIT                       = 0x00000001
   587  	SYNC_GPU_COMMANDS_COMPLETE                    = 0x9117
   588  	SYNC_STATUS                                   = 0x9114
   589  	TEXTURE_2D_ARRAY                              = 0x8C1A
   590  	TEXTURE_3D                                    = 0x806F
   591  	TEXTURE_BASE_LEVEL                            = 0x813C
   592  	TEXTURE_BINDING_2D_ARRAY                      = 0x8C1D
   593  	TEXTURE_BINDING_3D                            = 0x806A
   594  	TEXTURE_COMPARE_FUNC                          = 0x884D
   595  	TEXTURE_COMPARE_MODE                          = 0x884C
   596  	TEXTURE_IMMUTABLE_FORMAT                      = 0x912F
   597  	TEXTURE_IMMUTABLE_LEVELS                      = 0x82DF
   598  	TEXTURE_MAX_LEVEL                             = 0x813D
   599  	TEXTURE_MAX_LOD                               = 0x813B
   600  	TEXTURE_MIN_LOD                               = 0x813A
   601  	TEXTURE_SWIZZLE_A                             = 0x8E45
   602  	TEXTURE_SWIZZLE_B                             = 0x8E44
   603  	TEXTURE_SWIZZLE_G                             = 0x8E43
   604  	TEXTURE_SWIZZLE_R                             = 0x8E42
   605  	TEXTURE_WRAP_R                                = 0x8072
   606  	TIMEOUT_EXPIRED                               = 0x911B
   607  	TIMEOUT_IGNORED                               = 0xFFFFFFFFFFFFFFFF
   608  	TRANSFORM_FEEDBACK                            = 0x8E22
   609  	TRANSFORM_FEEDBACK_ACTIVE                     = 0x8E24
   610  	TRANSFORM_FEEDBACK_BINDING                    = 0x8E25
   611  	TRANSFORM_FEEDBACK_BUFFER                     = 0x8C8E
   612  	TRANSFORM_FEEDBACK_BUFFER_BINDING             = 0x8C8F
   613  	TRANSFORM_FEEDBACK_BUFFER_MODE                = 0x8C7F
   614  	TRANSFORM_FEEDBACK_BUFFER_SIZE                = 0x8C85
   615  	TRANSFORM_FEEDBACK_BUFFER_START               = 0x8C84
   616  	TRANSFORM_FEEDBACK_PAUSED                     = 0x8E23
   617  	TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN         = 0x8C88
   618  	TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH         = 0x8C76
   619  	TRANSFORM_FEEDBACK_VARYINGS                   = 0x8C83
   620  	UNIFORM_ARRAY_STRIDE                          = 0x8A3C
   621  	UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES          = 0x8A43
   622  	UNIFORM_BLOCK_ACTIVE_UNIFORMS                 = 0x8A42
   623  	UNIFORM_BLOCK_BINDING                         = 0x8A3F
   624  	UNIFORM_BLOCK_DATA_SIZE                       = 0x8A40
   625  	UNIFORM_BLOCK_INDEX                           = 0x8A3A
   626  	UNIFORM_BLOCK_NAME_LENGTH                     = 0x8A41
   627  	UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER   = 0x8A46
   628  	UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER     = 0x8A44
   629  	UNIFORM_BUFFER                                = 0x8A11
   630  	UNIFORM_BUFFER_BINDING                        = 0x8A28
   631  	UNIFORM_BUFFER_OFFSET_ALIGNMENT               = 0x8A34
   632  	UNIFORM_BUFFER_SIZE                           = 0x8A2A
   633  	UNIFORM_BUFFER_START                          = 0x8A29
   634  	UNIFORM_IS_ROW_MAJOR                          = 0x8A3E
   635  	UNIFORM_MATRIX_STRIDE                         = 0x8A3D
   636  	UNIFORM_NAME_LENGTH                           = 0x8A39
   637  	UNIFORM_OFFSET                                = 0x8A3B
   638  	UNIFORM_SIZE                                  = 0x8A38
   639  	UNIFORM_TYPE                                  = 0x8A37
   640  	UNPACK_IMAGE_HEIGHT                           = 0x806E
   641  	UNPACK_ROW_LENGTH                             = 0x0CF2
   642  	UNPACK_SKIP_IMAGES                            = 0x806D
   643  	UNPACK_SKIP_PIXELS                            = 0x0CF4
   644  	UNPACK_SKIP_ROWS                              = 0x0CF3
   645  	UNSIGNALED                                    = 0x9118
   646  	UNSIGNED_INT_10F_11F_11F_REV                  = 0x8C3B
   647  	UNSIGNED_INT_2_10_10_10_REV                   = 0x8368
   648  	UNSIGNED_INT_24_8                             = 0x84FA
   649  	UNSIGNED_INT_5_9_9_9_REV                      = 0x8C3E
   650  	UNSIGNED_INT_SAMPLER_2D                       = 0x8DD2
   651  	UNSIGNED_INT_SAMPLER_2D_ARRAY                 = 0x8DD7
   652  	UNSIGNED_INT_SAMPLER_3D                       = 0x8DD3
   653  	UNSIGNED_INT_SAMPLER_CUBE                     = 0x8DD4
   654  	UNSIGNED_INT_VEC2                             = 0x8DC6
   655  	UNSIGNED_INT_VEC3                             = 0x8DC7
   656  	UNSIGNED_INT_VEC4                             = 0x8DC8
   657  	UNSIGNED_NORMALIZED                           = 0x8C17
   658  	VERTEX_ARRAY_BINDING                          = 0x85B5
   659  	VERTEX_ATTRIB_ARRAY_DIVISOR                   = 0x88FE
   660  	VERTEX_ATTRIB_ARRAY_INTEGER                   = 0x88FD
   661  	WAIT_FAILED                                   = 0x911D
   662  )