Commits

Jason McKesson committed 26abcb8

Core OpenGL done.
Except for Gets, Enables, and Image Formats.

Comments (0)

Files changed (10)

function_enums/ARB_vertex_type_2_10_10_10_rev.lua

 return {
 ['ColorP3ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['ColorP3uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['ColorP4ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['ColorP4uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['MultiTexCoordP1ui'] = {
-	['texture'] = {},
-	['type'] = {},
+	['texture'] = {
+		range 'TEXTURE0',
+	},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['MultiTexCoordP1uiv'] = {
-	['texture'] = {},
-	['type'] = {},
+	['texture'] = {
+		range 'TEXTURE0',
+	},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['MultiTexCoordP2ui'] = {
-	['texture'] = {},
-	['type'] = {},
+	['texture'] = {
+		range 'TEXTURE0',
+	},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['MultiTexCoordP2uiv'] = {
-	['texture'] = {},
-	['type'] = {},
+	['texture'] = {
+		range 'TEXTURE0',
+	},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['MultiTexCoordP3ui'] = {
-	['texture'] = {},
-	['type'] = {},
+	['texture'] = {
+		range 'TEXTURE0',
+	},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['MultiTexCoordP3uiv'] = {
-	['texture'] = {},
-	['type'] = {},
+	['texture'] = {
+		range 'TEXTURE0',
+	},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['MultiTexCoordP4ui'] = {
-	['texture'] = {},
-	['type'] = {},
+	['texture'] = {
+		range 'TEXTURE0',
+	},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['MultiTexCoordP4uiv'] = {
-	['texture'] = {},
-	['type'] = {},
+	['texture'] = {
+		range 'TEXTURE0',
+	},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['NormalP3ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['NormalP3uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['SecondaryColorP3ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['SecondaryColorP3uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['TexCoordP1ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['TexCoordP1uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['TexCoordP2ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['TexCoordP2uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['TexCoordP3ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['TexCoordP3uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['TexCoordP4ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['TexCoordP4uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexAttribP1ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexAttribP1uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexAttribP2ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexAttribP2uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexAttribP3ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexAttribP3uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexAttribP4ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexAttribP4uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexP2ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexP2uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexP3ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexP3uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexP4ui'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 ['VertexP4uiv'] = {
-	['type'] = {},
+	['type'] = {
+		'INT_2_10_10_10_REV',
+		'UNSIGNED_INT_2_10_10_10_REV',
+	},
 },
 
 }

function_enums/Version_1_2.lua

 return {
 ['BlendEquation'] = {
-	['mode'] = {},
+	['mode'] = {
+		'FUNC_ADD',
+		'FUNC_SUBTRACT',
+		'FUNC_REVERSE_SUBTRACT',
+		'MIN',
+		'MAX',
+	},
 },
 
 ['ColorSubTable'] = {
 },
 
 ['DrawRangeElements'] = {
-	['mode'] = {},
-	['type'] = {},
+	['mode'] = {
+		'POINTS',
+		'LINE_STRIP',
+		'LINE_LOOP',
+		'LINES',
+		'POLYGON',
+		'TRIANGLE_STRIP',
+		'TRIANGLE_FAN',
+		'TRIANGLES',
+		'QUAD_STRIP',
+		'QUADS',
+		'LINES_ADJACENCY',
+		'LINE_STRIP_ADJACENCY',
+		'TRIANGLES_ADJACENCY',
+		'TRIANGLE_STRIP_ADJACENCY',
+		'PATCHES',
+	},
+	['type'] = {
+		'UNSIGNED_BYTE',
+		'UNSIGNED_SHORT',
+		'UNSIGNED_INT',
+	},
 },
 
 ['GetColorTable'] = {

function_enums/Version_1_3.lua

 return {
 ['ActiveTexture'] = {
-	['texture'] = {},
+	['texture'] = {
+		range('TEXTURE0', 'MAX_COMBINED_TEXTURE_IMAGE_UNITS'),
+	},
 },
 
 ['ClientActiveTexture'] = {
-	['texture'] = {},
+	['texture'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDINATES'),
+	},
 },
 
 ['CompressedTexImage1D'] = {
 },
 
 ['MultiTexCoord1d'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord1dv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord1f'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord1fv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord1i'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord1iv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord1s'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord1sv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord2d'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord2dv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord2f'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord2fv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord2i'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord2iv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord2s'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord2sv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord3d'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord3dv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord3f'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord3fv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord3i'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord3iv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord3s'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord3sv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord4d'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord4dv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord4f'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord4fv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord4i'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord4iv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord4s'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 ['MultiTexCoord4sv'] = {
-	['target'] = {},
+	['target'] = {
+		range('TEXTURE0', 'MAX_TEXTURE_COORDS'),
+	},
 },
 
 }

function_enums/Version_1_4.lua

 return {
 ['BlendFuncSeparate'] = {
-	['dfactorAlpha'] = {},
-	['dfactorRGB'] = {},
-	['sfactorAlpha'] = {},
-	['sfactorRGB'] = {},
+	['dfactorAlpha'] = {
+		'ZERO',
+		'ONE',
+		'SRC_COLOR',
+		'ONE_MINUS_SRC_COLOR',
+		'SRC_ALPHA',
+		'ONE_MINUS_SRC_ALPHA',
+		'DST_ALPHA',
+		'ONE_MINUS_DST_ALPHA',
+		'CONSTANT_COLOR',
+		'ONE_MINUS_CONSTANT_COLOR',
+		'CONSTANT_ALPHA',
+		'ONE_MINUS_CONSTANT_ALPHA',
+		'SRC_ALPHA_SATURATE',
+		'SRC1_COLOR',
+		'ONE_MINUS_SRC1_COLOR',
+		'SRC1_ALPHA',
+		'ONE_MINUS_SRC1_ALPHA',
+	},
+	['dfactorRGB'] = {
+		'ZERO',
+		'ONE',
+		'SRC_COLOR',
+		'ONE_MINUS_SRC_COLOR',
+		'SRC_ALPHA',
+		'ONE_MINUS_SRC_ALPHA',
+		'DST_ALPHA',
+		'ONE_MINUS_DST_ALPHA',
+		'CONSTANT_COLOR',
+		'ONE_MINUS_CONSTANT_COLOR',
+		'CONSTANT_ALPHA',
+		'ONE_MINUS_CONSTANT_ALPHA',
+		'SRC_ALPHA_SATURATE',
+		'SRC1_COLOR',
+		'ONE_MINUS_SRC1_COLOR',
+		'SRC1_ALPHA',
+		'ONE_MINUS_SRC1_ALPHA',
+	},
+	['sfactorAlpha'] = {
+		'ZERO',
+		'ONE',
+		'SRC_COLOR',
+		'ONE_MINUS_SRC_COLOR',
+		'SRC_ALPHA',
+		'ONE_MINUS_SRC_ALPHA',
+		'DST_ALPHA',
+		'ONE_MINUS_DST_ALPHA',
+		'CONSTANT_COLOR',
+		'ONE_MINUS_CONSTANT_COLOR',
+		'CONSTANT_ALPHA',
+		'ONE_MINUS_CONSTANT_ALPHA',
+		'SRC_ALPHA_SATURATE',
+		'SRC1_COLOR',
+		'ONE_MINUS_SRC1_COLOR',
+		'SRC1_ALPHA',
+		'ONE_MINUS_SRC1_ALPHA',
+	},
+	['sfactorRGB'] = {
+		'ZERO',
+		'ONE',
+		'SRC_COLOR',
+		'ONE_MINUS_SRC_COLOR',
+		'SRC_ALPHA',
+		'ONE_MINUS_SRC_ALPHA',
+		'DST_ALPHA',
+		'ONE_MINUS_DST_ALPHA',
+		'CONSTANT_COLOR',
+		'ONE_MINUS_CONSTANT_COLOR',
+		'CONSTANT_ALPHA',
+		'ONE_MINUS_CONSTANT_ALPHA',
+		'SRC_ALPHA_SATURATE',
+		'SRC1_COLOR',
+		'ONE_MINUS_SRC1_COLOR',
+		'SRC1_ALPHA',
+		'ONE_MINUS_SRC1_ALPHA',
+	},
 },
 
 ['FogCoordPointer'] = {
 },
 
 ['MultiDrawArrays'] = {
-	['mode'] = {},
+	['mode'] = {
+		'POINTS',
+		'LINE_STRIP',
+		'LINE_LOOP',
+		'LINES',
+		'POLYGON',
+		'TRIANGLE_STRIP',
+		'TRIANGLE_FAN',
+		'TRIANGLES',
+		'QUAD_STRIP',
+		'QUADS',
+		'LINES_ADJACENCY',
+		'LINE_STRIP_ADJACENCY',
+		'TRIANGLES_ADJACENCY',
+		'TRIANGLE_STRIP_ADJACENCY',
+		'PATCHES',
+	},
 },
 
 ['MultiDrawElements'] = {
-	['mode'] = {},
-	['type'] = {},
+	['mode'] = {
+		'POINTS',
+		'LINE_STRIP',
+		'LINE_LOOP',
+		'LINES',
+		'POLYGON',
+		'TRIANGLE_STRIP',
+		'TRIANGLE_FAN',
+		'TRIANGLES',
+		'QUAD_STRIP',
+		'QUADS',
+		'LINES_ADJACENCY',
+		'LINE_STRIP_ADJACENCY',
+		'TRIANGLES_ADJACENCY',
+		'TRIANGLE_STRIP_ADJACENCY',
+		'PATCHES',
+	},
+	['type'] = {
+		'UNSIGNED_BYTE',
+		'UNSIGNED_SHORT',
+		'UNSIGNED_INT',
+	},
 },
 
 ['PointParameterf'] = {
-	['pname'] = {},
+	['pname'] = {
+		'POINT_FADE_THRESHOLD_SIZE',
+		'POINT_DISTANCE_ATTENUATION',
+		'POINT_SIZE_MIN',
+		'POINT_SIZE_MAX',
+		'POINT_SPRITE_COORD_ORIGIN',
+	},
 },
 
 ['PointParameterfv'] = {
-	['pname'] = {},
+	['pname'] = {
+		'POINT_FADE_THRESHOLD_SIZE',
+		'POINT_DISTANCE_ATTENUATION',
+		'POINT_SIZE_MIN',
+		'POINT_SIZE_MAX',
+		'POINT_SPRITE_COORD_ORIGIN',
+	},
 },
 
 ['PointParameteri'] = {
-	['pname'] = {},
+	['pname'] = {
+		'POINT_FADE_THRESHOLD_SIZE',
+		'POINT_DISTANCE_ATTENUATION',
+		'POINT_SIZE_MIN',
+		'POINT_SIZE_MAX',
+		'POINT_SPRITE_COORD_ORIGIN',
+	},
 },
 
 ['PointParameteriv'] = {
-	['pname'] = {},
+	['pname'] = {
+		'POINT_FADE_THRESHOLD_SIZE',
+		'POINT_DISTANCE_ATTENUATION',
+		'POINT_SIZE_MIN',
+		'POINT_SIZE_MAX',
+		'POINT_SPRITE_COORD_ORIGIN',
+	},
 },
 
 ['SecondaryColorPointer'] = {

function_enums/Version_1_5.lua

 return {
 ['BeginQuery'] = {
-	['target'] = {},
+	['target'] = {
+		'SAMPLES_PASSED',
+		'ANY_SAMPLES_PASSED',
+		'ANY_SAMPLES_PASSED_CONSERVATIVE',
+	},
 },
 
 ['BindBuffer'] = {
-	['target'] = {},
+	['target'] = {
+		'ARRAY_BUFFER',
+		'ATOMIC_COUNTER_BUFFER',
+		'COPY_READ_BUFFER',
+		'COPY_WRITE_BUFFER',
+		'DISPATCH_INDIRECT_BUFFER',
+		'DRAW_INDIRECT_BUFFER',
+		'ELEMENT_ARRAY_BUFFER',
+		'PIXEL_PACK_BUFFER',
+		'PIXEL_UNPACK_BUFFER',
+		'SHADER_STORAGE_BUFFER',
+		'TEXTURE_BUFFER',
+		'TRANSFORM_FEEDBACK_BUFFER',
+		'UNIFORM_BUFFER',
+	},
 },
 
 ['BufferData'] = {
-	['target'] = {},
-	['usage'] = {},
+	['target'] = {
+		'ARRAY_BUFFER',
+		'ATOMIC_COUNTER_BUFFER',
+		'COPY_READ_BUFFER',
+		'COPY_WRITE_BUFFER',
+		'DISPATCH_INDIRECT_BUFFER',
+		'DRAW_INDIRECT_BUFFER',
+		'ELEMENT_ARRAY_BUFFER',
+		'PIXEL_PACK_BUFFER',
+		'PIXEL_UNPACK_BUFFER',
+		'SHADER_STORAGE_BUFFER',
+		'TEXTURE_BUFFER',
+		'TRANSFORM_FEEDBACK_BUFFER',
+		'UNIFORM_BUFFER',
+	},
+	['usage'] = {
+		'STREAM_DRAW',
+		'STREAM_READ',
+		'STREAM_COPY',
+		'STATIC_DRAW',
+		'STATIC_READ',
+		'STATIC_COPY',
+		'DYNAMIC_DRAW',
+		'DYNAMIC_READ',
+		'DYNAMIC_COPY',
+	},
 },
 
 ['BufferSubData'] = {
-	['target'] = {},
+	['target'] = {
+		'ARRAY_BUFFER',
+		'ATOMIC_COUNTER_BUFFER',
+		'COPY_READ_BUFFER',
+		'COPY_WRITE_BUFFER',
+		'DISPATCH_INDIRECT_BUFFER',
+		'DRAW_INDIRECT_BUFFER',
+		'ELEMENT_ARRAY_BUFFER',
+		'PIXEL_PACK_BUFFER',
+		'PIXEL_UNPACK_BUFFER',
+		'SHADER_STORAGE_BUFFER',
+		'TEXTURE_BUFFER',
+		'TRANSFORM_FEEDBACK_BUFFER',
+		'UNIFORM_BUFFER',
+	},
 },
 
 ['EndQuery'] = {
-	['target'] = {},
+	['target'] = {
+		'SAMPLES_PASSED',
+		'ANY_SAMPLES_PASSED',
+		'ANY_SAMPLES_PASSED_CONSERVATIVE',
+	},
 },
 
 ['GetBufferParameteriv'] = {
 },
 
 ['MapBuffer'] = {
-	['access'] = {},
-	['target'] = {},
+	['access'] = {
+		'READ_ONLY',
+		'WRITE_ONLY',
+		'READ_WRITE',
+	},
+	['target'] = {
+		'ARRAY_BUFFER',
+		'ATOMIC_COUNTER_BUFFER',
+		'COPY_READ_BUFFER',
+		'COPY_WRITE_BUFFER',
+		'DISPATCH_INDIRECT_BUFFER',
+		'DRAW_INDIRECT_BUFFER',
+		'ELEMENT_ARRAY_BUFFER',
+		'PIXEL_PACK_BUFFER',
+		'PIXEL_UNPACK_BUFFER',
+		'SHADER_STORAGE_BUFFER',
+		'TEXTURE_BUFFER',
+		'TRANSFORM_FEEDBACK_BUFFER',
+		'UNIFORM_BUFFER',
+	},
 },
 
 ['UnmapBuffer'] = {
-	['target'] = {},
+	['target'] = {
+		'ARRAY_BUFFER',
+		'ATOMIC_COUNTER_BUFFER',
+		'COPY_READ_BUFFER',
+		'COPY_WRITE_BUFFER',
+		'DISPATCH_INDIRECT_BUFFER',
+		'DRAW_INDIRECT_BUFFER',
+		'ELEMENT_ARRAY_BUFFER',
+		'PIXEL_PACK_BUFFER',
+		'PIXEL_UNPACK_BUFFER',
+		'SHADER_STORAGE_BUFFER',
+		'TEXTURE_BUFFER',
+		'TRANSFORM_FEEDBACK_BUFFER',
+		'UNIFORM_BUFFER',
+	},
 },
 
 }

function_enums/Version_2_0.lua

 return {
 ['BlendEquationSeparate'] = {
-	['modeAlpha'] = {},
-	['modeRGB'] = {},
+	['modeAlpha'] = {
+		'FUNC_ADD',
+		'FUNC_SUBTRACT',
+		'FUNC_REVERSE_SUBTRACT',
+		'MIN',
+		'MAX',
+	},
+	['modeRGB'] = {
+		'FUNC_ADD',
+		'FUNC_SUBTRACT',
+		'FUNC_REVERSE_SUBTRACT',
+		'MIN',
+		'MAX',
+	},
 },
 
 ['CreateShader'] = {
-	['type'] = {},
+	['type'] = {
+		'VERTEX_SHADER',
+		'TESS_CONTROL_SHADER',
+		'TESS_EVALUATION_SHADER',
+		'GEOMETRY_SHADER',
+		'FRAGMENT_SHADER',
+		'COMPUTE_SHADER',
+	},
 },
 
 ['DrawBuffers'] = {
-	['bufs'] = {},
+	['bufs'] = {
+		'NONE',
+		'FRONT_LEFT',
+		'FRONT_RIGHT',
+		'BACK_LEFT',
+		'BACK_RIGHT',
+		range 'AUX0',
+		range 'COLOR_ATTACHMENT0',
+	},
 },
 
 ['GetActiveAttrib'] = {
 },
 
 ['StencilFuncSeparate'] = {
-	['face'] = {},
-	['func'] = {},
+	['face'] = {
+		'FRONT',
+		'BACK',
+		'FRONT_AND_BACK',
+	},
+	['func'] = {
+		'NEVER',
+		'ALWAYS',
+		'LESS',
+		'LEQUAL',
+		'EQUAL',
+		'GEQUAL',
+		'GREATER',
+		'NOTEQUAL',
+	},
 },
 
 ['StencilMaskSeparate'] = {
-	['face'] = {},
+	['face'] = {
+		'FRONT',
+		'BACK',
+		'FRONT_AND_BACK',
+	},
 },
 
 ['StencilOpSeparate'] = {
-	['dpfail'] = {},
-	['dppass'] = {},
-	['face'] = {},
-	['sfail'] = {},
+	['dpfail'] = {
+		'KEEP',
+		'ZERO',
+		'REPLACE',
+		'INCR',
+		'DECR',
+		'INVERT',
+		'INCR_WRAP',
+		'DECR_WRAP',
+	},
+	['dppass'] = {
+		'KEEP',
+		'ZERO',
+		'REPLACE',
+		'INCR',
+		'DECR',
+		'INVERT',
+		'INCR_WRAP',
+		'DECR_WRAP',
+	},
+	['face'] = {
+		'FRONT',
+		'BACK',
+		'FRONT_AND_BACK',
+	},
+	['sfail'] = {
+		'KEEP',
+		'ZERO',
+		'REPLACE',
+		'INCR',
+		'DECR',
+		'INVERT',
+		'INCR_WRAP',
+		'DECR_WRAP',
+	},
 },
 
 ['VertexAttribPointer'] = {

function_enums/Version_3_0.lua

 return {
 ['BeginConditionalRender'] = {
-	['mode'] = {},
+	['mode'] = {
+		'QUERY_WAIT',
+		'QUERY_NO_WAIT',
+		'QUERY_BY_REGION_WAIT',
+		'QUERY_BY_REGION_NO_WAIT',
+	},
 },
 
 ['BeginTransformFeedback'] = {
-	['primitiveMode'] = {},
+	['primitiveMode'] = {
+		'TRIANGLES',
+		'LINES',
+		'POINTS',
+	},
 },
 
 ['BindBufferBase'] = {
-	['target'] = {},
+	['target'] = {
+		'ATOMIC_COUNTER_BUFFER',
+		'SHADER_STORAGE_BUFFER',
+		'TRANSFORM_FEEDBACK_BUFFER',
+		'UNIFORM_BUFFER',
+	},
 },
 
 ['BindBufferRange'] = {
-	['target'] = {},
+	['target'] = {
+		'ATOMIC_COUNTER_BUFFER',
+		'SHADER_STORAGE_BUFFER',
+		'TRANSFORM_FEEDBACK_BUFFER',
+		'UNIFORM_BUFFER',
+	},
 },
 
 ['ClampColor'] = {
-	['clamp'] = {},
-	['target'] = {},
+	['clamp'] = {
+		'FALSE',
+		'FIXED_ONLY',
+	},
+	['target'] = {
+		'CLAMP_FRAGMENT_COLOR',
+	},
 },
 
 ['ClearBufferfi'] = {
-	['buffer'] = {},
+	['buffer'] = {
+		'DEPTH_STENCIL',
+	},
 },
 
 ['ClearBufferfv'] = {
-	['buffer'] = {},
+	['buffer'] = {
+		'COLOR',
+		'DEPTH',
+		'STENCIL',
+	},
 },
 
 ['ClearBufferiv'] = {
-	['buffer'] = {},
+	['buffer'] = {
+		'COLOR',
+		'DEPTH',
+		'STENCIL',
+	},
 },
 
 ['ClearBufferuiv'] = {
-	['buffer'] = {},
+	['buffer'] = {
+		'COLOR',
+		'DEPTH',
+		'STENCIL',
+	},
 },
 
 ['Disablei'] = {
-	['target'] = {},
+	['target'] = {
+		'SCISSOR_TEST',
+		'BLEND',
+	},
 },
 
 ['Enablei'] = {
-	['target'] = {},
+	['target'] = {
+		'SCISSOR_TEST',
+		'BLEND',
+	},
 },
 
 ['GetBooleani_v'] = {
 },
 
 ['GetStringi'] = {
-	['name'] = {},
+	['name'] = {
+		'EXTENSIONS',
+		'SHADING_LANGUAGE_VERSION',
+	},
 },
 
 ['GetTexParameterIiv'] = {
 },
 
 ['IsEnabledi'] = {
-	['target'] = {},
+	['target'] = {
+		'SCISSOR_TEST',
+		'BLEND',
+	},
 },
 
 ['TexParameterIiv'] = {
-	['pname'] = {},
-	['target'] = {},
+	['pname'] = {
+		'DEPTH_TEXTURE_MODE',
+		'DEPTH_STENCIL_TEXTURE_MODE',
+		'GENERATE_MIPMAP',
+		'TEXTURE_BASE_LEVEL',
+		'TEXTURE_BORDER_COLOR',
+		'TEXTURE_COMPARE_MODE',
+		'TEXTURE_COMPARE_FUNC',
+		'TEXTURE_LOD_BIAS',
+		'TEXTURE_MAG_FILTER',
+		'TEXTURE_MAX_LEVEL',
+		'TEXTURE_MAX_LOD',
+		'TEXTURE_MIN_FILTER',
+		'TEXTURE_MIN_LOD',
+		'TEXTURE_PRIORITY',
+		'TEXTURE_SWIZZLE_R',
+		'TEXTURE_SWIZZLE_G',
+		'TEXTURE_SWIZZLE_B',
+		'TEXTURE_SWIZZLE_A',
+		'TEXTURE_SWIZZLE_RGBA',
+		'TEXTURE_WRAP_S',
+		'TEXTURE_WRAP_T',
+		'TEXTURE_WRAP_R',
+	},
+	['target'] = {
+		'TEXTURE_1D',
+		'TEXTURE_2D',
+		'TEXTURE_3D',
+		'TEXTURE_1D_ARRAY',
+		'TEXTURE_2D_ARRAY',
+		'TEXTURE_RECTANGLE',
+		'TEXTURE_CUBE_MAP',
+		'TEXTURE_CUBE_MAP_ARRAY',
+		'TEXTURE_2D_MULTISAMPLE',
+		'TEXTURE_2D_MULTISAMPLE_ARRAY',
+	},
 },
 
 ['TexParameterIuiv'] = {
-	['pname'] = {},
-	['target'] = {},
+	['pname'] = {
+		'DEPTH_TEXTURE_MODE',
+		'DEPTH_STENCIL_TEXTURE_MODE',
+		'GENERATE_MIPMAP',
+		'TEXTURE_BASE_LEVEL',
+		'TEXTURE_BORDER_COLOR',
+		'TEXTURE_COMPARE_MODE',
+		'TEXTURE_COMPARE_FUNC',
+		'TEXTURE_LOD_BIAS',
+		'TEXTURE_MAG_FILTER',
+		'TEXTURE_MAX_LEVEL',
+		'TEXTURE_MAX_LOD',
+		'TEXTURE_MIN_FILTER',
+		'TEXTURE_MIN_LOD',
+		'TEXTURE_PRIORITY',
+		'TEXTURE_SWIZZLE_R',
+		'TEXTURE_SWIZZLE_G',
+		'TEXTURE_SWIZZLE_B',
+		'TEXTURE_SWIZZLE_A',
+		'TEXTURE_SWIZZLE_RGBA',
+		'TEXTURE_WRAP_S',
+		'TEXTURE_WRAP_T',
+		'TEXTURE_WRAP_R',
+	},
+	['target'] = {
+		'TEXTURE_1D',
+		'TEXTURE_2D',
+		'TEXTURE_3D',
+		'TEXTURE_1D_ARRAY',
+		'TEXTURE_2D_ARRAY',
+		'TEXTURE_RECTANGLE',
+		'TEXTURE_CUBE_MAP',
+		'TEXTURE_CUBE_MAP_ARRAY',
+		'TEXTURE_2D_MULTISAMPLE',
+		'TEXTURE_2D_MULTISAMPLE_ARRAY',
+	},
 },
 
 ['TransformFeedbackVaryings'] = {
-	['bufferMode'] = {},
+	['bufferMode'] = {'INTERLEAVED_ATTRIBS', 'SEPARATE_ATTRIBS'},
 },
 
 ['VertexAttribIPointer'] = {

function_enums/Version_3_1.lua

 return {
 ['DrawArraysInstanced'] = {
-	['mode'] = {},
+	['mode'] = {
+		'POINTS',
+		'LINE_STRIP',
+		'LINE_LOOP',
+		'LINES',
+		'POLYGON',
+		'TRIANGLE_STRIP',
+		'TRIANGLE_FAN',
+		'TRIANGLES',
+		'QUAD_STRIP',
+		'QUADS',
+		'LINES_ADJACENCY',
+		'LINE_STRIP_ADJACENCY',
+		'TRIANGLES_ADJACENCY',
+		'TRIANGLE_STRIP_ADJACENCY',
+		'PATCHES',
+	},
 },
 
 ['DrawElementsInstanced'] = {
-	['mode'] = {},
-	['type'] = {},
+	['mode'] = {
+		'POINTS',
+		'LINE_STRIP',
+		'LINE_LOOP',
+		'LINES',
+		'POLYGON',
+		'TRIANGLE_STRIP',
+		'TRIANGLE_FAN',
+		'TRIANGLES',
+		'QUAD_STRIP',
+		'QUADS',
+		'LINES_ADJACENCY',
+		'LINE_STRIP_ADJACENCY',
+		'TRIANGLES_ADJACENCY',
+		'TRIANGLE_STRIP_ADJACENCY',
+		'PATCHES',
+	},
+	['type'] = {
+		'UNSIGNED_BYTE',
+		'UNSIGNED_SHORT',
+		'UNSIGNED_INT',
+	},
 },
 
 ['TexBuffer'] = {
 	['internalformat'] = {},
-	['target'] = {},
+	['target'] = {
+		'TEXTURE_BUFFER',
+	},
 },
 
 }

function_enums/Version_3_2.lua

 return {
 ['FramebufferTexture'] = {
-	['attachment'] = {},
-	['target'] = {},
+	['attachment'] = {
+		range 'COLOR_ATTACHMENT0',
+		'DEPTH_ATTACHMENT',
+		'STENCIL_ATTACHMENT',
+		'DEPTH_STENCIL_ATTACHMENT',
+	},
+	['target'] = {
+		'DRAW_FRAMEBUFFER',
+		'READ_FRAMEBUFFER',
+		'FRAMEBUFFER',
+	},
 },
 
 ['GetBufferParameteri64v'] = {

function_enums/Version_4_0.lua

 return {
 ['BlendEquationSeparatei'] = {
-	['modeAlpha'] = {},
-	['modeRGB'] = {},
+	['modeAlpha'] = {
+		'FUNC_ADD',
+		'FUNC_SUBTRACT',
+		'FUNC_REVERSE_SUBTRACT',
+		'MIN',
+		'MAX',
+	},
+	['modeRGB'] = {
+		'FUNC_ADD',
+		'FUNC_SUBTRACT',
+		'FUNC_REVERSE_SUBTRACT',
+		'MIN',
+		'MAX',
+	},
 },
 
 ['BlendEquationi'] = {
-	['mode'] = {},
+	['mode'] = {
+		'FUNC_ADD',
+		'FUNC_SUBTRACT',
+		'FUNC_REVERSE_SUBTRACT',
+		'MIN',
+		'MAX',
+	},
 },
 
 ['BlendFuncSeparatei'] = {
-	['dstAlpha'] = {},
-	['dstRGB'] = {},
-	['srcAlpha'] = {},
-	['srcRGB'] = {},
+	['dstAlpha'] = {
+		'ZERO',
+		'ONE',
+		'SRC_COLOR',
+		'ONE_MINUS_SRC_COLOR',
+		'SRC_ALPHA',
+		'ONE_MINUS_SRC_ALPHA',
+		'DST_ALPHA',
+		'ONE_MINUS_DST_ALPHA',
+		'CONSTANT_COLOR',
+		'ONE_MINUS_CONSTANT_COLOR',
+		'CONSTANT_ALPHA',
+		'ONE_MINUS_CONSTANT_ALPHA',
+		'SRC_ALPHA_SATURATE',
+		'SRC1_COLOR',
+		'ONE_MINUS_SRC1_COLOR',
+		'SRC1_ALPHA',
+		'ONE_MINUS_SRC1_ALPHA',
+	},
+	['dstRGB'] = {
+		'ZERO',
+		'ONE',
+		'SRC_COLOR',
+		'ONE_MINUS_SRC_COLOR',
+		'SRC_ALPHA',
+		'ONE_MINUS_SRC_ALPHA',
+		'DST_ALPHA',
+		'ONE_MINUS_DST_ALPHA',
+		'CONSTANT_COLOR',
+		'ONE_MINUS_CONSTANT_COLOR',
+		'CONSTANT_ALPHA',
+		'ONE_MINUS_CONSTANT_ALPHA',
+		'SRC_ALPHA_SATURATE',
+		'SRC1_COLOR',
+		'ONE_MINUS_SRC1_COLOR',
+		'SRC1_ALPHA',
+		'ONE_MINUS_SRC1_ALPHA',
+	},
+	['srcAlpha'] = {
+		'ZERO',
+		'ONE',
+		'SRC_COLOR',
+		'ONE_MINUS_SRC_COLOR',
+		'SRC_ALPHA',
+		'ONE_MINUS_SRC_ALPHA',
+		'DST_ALPHA',
+		'ONE_MINUS_DST_ALPHA',
+		'CONSTANT_COLOR',
+		'ONE_MINUS_CONSTANT_COLOR',
+		'CONSTANT_ALPHA',
+		'ONE_MINUS_CONSTANT_ALPHA',
+		'SRC_ALPHA_SATURATE',
+		'SRC1_COLOR',
+		'ONE_MINUS_SRC1_COLOR',
+		'SRC1_ALPHA',
+		'ONE_MINUS_SRC1_ALPHA',
+	},
+	['srcRGB'] = {
+		'ZERO',
+		'ONE',
+		'SRC_COLOR',
+		'ONE_MINUS_SRC_COLOR',
+		'SRC_ALPHA',
+		'ONE_MINUS_SRC_ALPHA',
+		'DST_ALPHA',
+		'ONE_MINUS_DST_ALPHA',
+		'CONSTANT_COLOR',
+		'ONE_MINUS_CONSTANT_COLOR',
+		'CONSTANT_ALPHA',
+		'ONE_MINUS_CONSTANT_ALPHA',
+		'SRC_ALPHA_SATURATE',
+		'SRC1_COLOR',
+		'ONE_MINUS_SRC1_COLOR',
+		'SRC1_ALPHA',
+		'ONE_MINUS_SRC1_ALPHA',
+	},
 },
 
 ['BlendFunci'] = {
-	['dst'] = {},
-	['src'] = {},
+	['dst'] = {
+		'ZERO',
+		'ONE',
+		'SRC_COLOR',
+		'ONE_MINUS_SRC_COLOR',
+		'SRC_ALPHA',
+		'ONE_MINUS_SRC_ALPHA',
+		'DST_ALPHA',
+		'ONE_MINUS_DST_ALPHA',
+		'CONSTANT_COLOR',
+		'ONE_MINUS_CONSTANT_COLOR',
+		'CONSTANT_ALPHA',
+		'ONE_MINUS_CONSTANT_ALPHA',
+		'SRC_ALPHA_SATURATE',
+		'SRC1_COLOR',
+		'ONE_MINUS_SRC1_COLOR',
+		'SRC1_ALPHA',
+		'ONE_MINUS_SRC1_ALPHA',
+	},
+	['src'] = {
+		'ZERO',
+		'ONE',
+		'SRC_COLOR',
+		'ONE_MINUS_SRC_COLOR',
+		'SRC_ALPHA',
+		'ONE_MINUS_SRC_ALPHA',
+		'DST_ALPHA',
+		'ONE_MINUS_DST_ALPHA',
+		'CONSTANT_COLOR',
+		'ONE_MINUS_CONSTANT_COLOR',
+		'CONSTANT_ALPHA',
+		'ONE_MINUS_CONSTANT_ALPHA',
+		'SRC_ALPHA_SATURATE',
+		'SRC1_COLOR',
+		'ONE_MINUS_SRC1_COLOR',
+		'SRC1_ALPHA',
+		'ONE_MINUS_SRC1_ALPHA',
+	},
 },
 
 }