Specific enums for Version15 "Buffer Objects" and Version21 "Pixel Buffer Objects". This is a great update!

This commit is contained in:
the_fiddler 2008-01-02 01:00:48 +00:00
parent 24bb434432
commit fb04abb077
2 changed files with 114 additions and 58 deletions

View file

@ -427,41 +427,41 @@ GetPName enum:
############################################################################### ###############################################################################
VERSION_1_5 enum: VERSION_1_5 enum:
BUFFER_SIZE = 0x8764 # ARB_vertex_buffer_object # BUFFER_SIZE = 0x8764 # ARB_vertex_buffer_object
BUFFER_USAGE = 0x8765 # ARB_vertex_buffer_object # BUFFER_USAGE = 0x8765 # ARB_vertex_buffer_object
# QUERY_COUNTER_BITS = 0x8864 # ARB_occlusion_query # QUERY_COUNTER_BITS = 0x8864 # ARB_occlusion_query
# CURRENT_QUERY = 0x8865 # ARB_occlusion_query # CURRENT_QUERY = 0x8865 # ARB_occlusion_query
# QUERY_RESULT = 0x8866 # ARB_occlusion_query # QUERY_RESULT = 0x8866 # ARB_occlusion_query
# QUERY_RESULT_AVAILABLE = 0x8867 # ARB_occlusion_query # QUERY_RESULT_AVAILABLE = 0x8867 # ARB_occlusion_query
ARRAY_BUFFER = 0x8892 # ARB_vertex_buffer_object # ARRAY_BUFFER = 0x8892 # ARB_vertex_buffer_object
ELEMENT_ARRAY_BUFFER = 0x8893 # ARB_vertex_buffer_object # ELEMENT_ARRAY_BUFFER = 0x8893 # ARB_vertex_buffer_object
ARRAY_BUFFER_BINDING = 0x8894 # ARB_vertex_buffer_object # ARRAY_BUFFER_BINDING = 0x8894 # ARB_vertex_buffer_object
ELEMENT_ARRAY_BUFFER_BINDING = 0x8895 # ARB_vertex_buffer_object # ELEMENT_ARRAY_BUFFER_BINDING = 0x8895 # ARB_vertex_buffer_object
VERTEX_ARRAY_BUFFER_BINDING = 0x8896 # ARB_vertex_buffer_object # VERTEX_ARRAY_BUFFER_BINDING = 0x8896 # ARB_vertex_buffer_object
NORMAL_ARRAY_BUFFER_BINDING = 0x8897 # ARB_vertex_buffer_object # NORMAL_ARRAY_BUFFER_BINDING = 0x8897 # ARB_vertex_buffer_object
COLOR_ARRAY_BUFFER_BINDING = 0x8898 # ARB_vertex_buffer_object # COLOR_ARRAY_BUFFER_BINDING = 0x8898 # ARB_vertex_buffer_object
INDEX_ARRAY_BUFFER_BINDING = 0x8899 # ARB_vertex_buffer_object # INDEX_ARRAY_BUFFER_BINDING = 0x8899 # ARB_vertex_buffer_object
TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A # ARB_vertex_buffer_object # TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A # ARB_vertex_buffer_object
EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B # ARB_vertex_buffer_object # EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B # ARB_vertex_buffer_object
SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C # ARB_vertex_buffer_object # SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C # ARB_vertex_buffer_object
FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D # ARB_vertex_buffer_object # FOG_COORDINATE_ARRAY_BUFFER_BINDING = 0x889D # ARB_vertex_buffer_object
WEIGHT_ARRAY_BUFFER_BINDING = 0x889E # ARB_vertex_buffer_object # WEIGHT_ARRAY_BUFFER_BINDING = 0x889E # ARB_vertex_buffer_object
VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F # ARB_vertex_buffer_object # VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F # ARB_vertex_buffer_object
READ_ONLY = 0x88B8 # ARB_vertex_buffer_object # READ_ONLY = 0x88B8 # ARB_vertex_buffer_object
WRITE_ONLY = 0x88B9 # ARB_vertex_buffer_object # WRITE_ONLY = 0x88B9 # ARB_vertex_buffer_object
READ_WRITE = 0x88BA # ARB_vertex_buffer_object # READ_WRITE = 0x88BA # ARB_vertex_buffer_object
BUFFER_ACCESS = 0x88BB # ARB_vertex_buffer_object # BUFFER_ACCESS = 0x88BB # ARB_vertex_buffer_object
BUFFER_MAPPED = 0x88BC # ARB_vertex_buffer_object # BUFFER_MAPPED = 0x88BC # ARB_vertex_buffer_object
BUFFER_MAP_POINTER = 0x88BD # ARB_vertex_buffer_object # BUFFER_MAP_POINTER = 0x88BD # ARB_vertex_buffer_object
STREAM_DRAW = 0x88E0 # ARB_vertex_buffer_object # STREAM_DRAW = 0x88E0 # ARB_vertex_buffer_object
STREAM_READ = 0x88E1 # ARB_vertex_buffer_object # STREAM_READ = 0x88E1 # ARB_vertex_buffer_object
STREAM_COPY = 0x88E2 # ARB_vertex_buffer_object # STREAM_COPY = 0x88E2 # ARB_vertex_buffer_object
STATIC_DRAW = 0x88E4 # ARB_vertex_buffer_object # STATIC_DRAW = 0x88E4 # ARB_vertex_buffer_object
STATIC_READ = 0x88E5 # ARB_vertex_buffer_object # STATIC_READ = 0x88E5 # ARB_vertex_buffer_object
STATIC_COPY = 0x88E6 # ARB_vertex_buffer_object # STATIC_COPY = 0x88E6 # ARB_vertex_buffer_object
DYNAMIC_DRAW = 0x88E8 # ARB_vertex_buffer_object # DYNAMIC_DRAW = 0x88E8 # ARB_vertex_buffer_object
DYNAMIC_READ = 0x88E9 # ARB_vertex_buffer_object # DYNAMIC_READ = 0x88E9 # ARB_vertex_buffer_object
DYNAMIC_COPY = 0x88EA # ARB_vertex_buffer_object # DYNAMIC_COPY = 0x88EA # ARB_vertex_buffer_object
# SAMPLES_PASSED = 0x8914 # ARB_occlusion_query # SAMPLES_PASSED = 0x8914 # ARB_occlusion_query
# New naming scheme # New naming scheme
# FOG_COORD_SRC = GL_FOG_COORDINATE_SOURCE # FOG_COORD_SRC = GL_FOG_COORDINATE_SOURCE
@ -480,7 +480,6 @@ VERSION_1_5 enum:
SRC2_ALPHA = GL_SOURCE2_ALPHA SRC2_ALPHA = GL_SOURCE2_ALPHA
# Occlusion Query # Occlusion Query
QueryTarget enum: QueryTarget enum:
SAMPLES_PASSED = 0x8914 SAMPLES_PASSED = 0x8914
@ -493,6 +492,50 @@ GetQueryObjectParam enum:
QUERY_RESULT_AVAILABLE = 0x8867 QUERY_RESULT_AVAILABLE = 0x8867
# Buffer Objects (http://www.opengl.org/sdk/docs/man/xhtml/glBindBuffer.xml)
BufferTarget enum:
ARRAY_BUFFER = 0x8892 # ARB_vertex_buffer_object
ELEMENT_ARRAY_BUFFER = 0x8893 # ARB_vertex_buffer_object
BufferUsageHint enum:
STREAM_DRAW = 0x88E0 # ARB_vertex_buffer_object
STREAM_READ = 0x88E1 # ARB_vertex_buffer_object
STREAM_COPY = 0x88E2 # ARB_vertex_buffer_object
STATIC_DRAW = 0x88E4 # ARB_vertex_buffer_object
STATIC_READ = 0x88E5 # ARB_vertex_buffer_object
STATIC_COPY = 0x88E6 # ARB_vertex_buffer_object
DYNAMIC_DRAW = 0x88E8 # ARB_vertex_buffer_object
DYNAMIC_READ = 0x88E9 # ARB_vertex_buffer_object
DYNAMIC_COPY = 0x88EA # ARB_vertex_buffer_object
BufferAccess enum:
READ_ONLY = 0x88B8 # ARB_vertex_buffer_object
WRITE_ONLY = 0x88B9 # ARB_vertex_buffer_object
READ_WRITE = 0x88BA # ARB_vertex_buffer_object
BufferParameterName enum:
BUFFER_SIZE = 0x8764 # ARB_vertex_buffer_object
BUFFER_USAGE = 0x8765 # ARB_vertex_buffer_object
BUFFER_ACCESS = 0x88BB # ARB_vertex_buffer_object
BUFFER_MAPPED = 0x88BC # ARB_vertex_buffer_object
BufferPointer enum:
BUFFER_MAP_POINTER = 0x88BD # ARB_vertex_buffer_object
GetPName enum:
ARRAY_BUFFER_BINDING = 0x8894 # ARB_vertex_buffer_object
ELEMENT_ARRAY_BUFFER_BINDING = 0x8895 # ARB_vertex_buffer_object
VERTEX_ARRAY_BUFFER_BINDING = 0x8896 # ARB_vertex_buffer_object
NORMAL_ARRAY_BUFFER_BINDING = 0x8897 # ARB_vertex_buffer_object
COLOR_ARRAY_BUFFER_BINDING = 0x8898 # ARB_vertex_buffer_object
INDEX_ARRAY_BUFFER_BINDING = 0x8899 # ARB_vertex_buffer_object
TEXTURE_COORD_ARRAY_BUFFER_BINDING = 0x889A # ARB_vertex_buffer_object
EDGE_FLAG_ARRAY_BUFFER_BINDING = 0x889B # ARB_vertex_buffer_object
SECONDARY_COLOR_ARRAY_BUFFER_BINDING = 0x889C # ARB_vertex_buffer_object
FOG_COORD_ARRAY_BUFFER_BINDING = 0x889D # ARB_vertex_buffer_object
WEIGHT_ARRAY_BUFFER_BINDING = 0x889E # ARB_vertex_buffer_object
VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F # ARB_vertex_buffer_object
############################################################################### ###############################################################################
# #
# OpenGL 2.0 enums (edited for OpenTK) # OpenGL 2.0 enums (edited for OpenTK)
@ -576,7 +619,7 @@ VERSION_2_0 enum:
ACTIVE_ATTRIBUTES = 0x8B89 # ARB_vertex_shader ACTIVE_ATTRIBUTES = 0x8B89 # ARB_vertex_shader
ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A # ARB_vertex_shader ACTIVE_ATTRIBUTE_MAX_LENGTH = 0x8B8A # ARB_vertex_shader
FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B # ARB_fragment_shader FRAGMENT_SHADER_DERIVATIVE_HINT = 0x8B8B # ARB_fragment_shader
SHADING_LANGUAGE_VERSION = 0x8B8C # ARB_shading_language_100 # SHADING_LANGUAGE_VERSION = 0x8B8C # ARB_shading_language_100
CURRENT_PROGRAM = 0x8B8D # ARB_shader_objects (added for 2.0) CURRENT_PROGRAM = 0x8B8D # ARB_shader_objects (added for 2.0)
POINT_SPRITE_COORD_ORIGIN = 0x8CA0 # ARB_point_sprite (added for 2.0) POINT_SPRITE_COORD_ORIGIN = 0x8CA0 # ARB_point_sprite (added for 2.0)
LOWER_LEFT = 0x8CA1 # ARB_point_sprite (added for 2.0) LOWER_LEFT = 0x8CA1 # ARB_point_sprite (added for 2.0)
@ -670,6 +713,10 @@ ActiveUniformType enum:
SAMPLER_1D_SHADOW = 0x8B61 # ARB_shader_objects SAMPLER_1D_SHADOW = 0x8B61 # ARB_shader_objects
SAMPLER_2D_SHADOW = 0x8B62 # ARB_shader_objects SAMPLER_2D_SHADOW = 0x8B62 # ARB_shader_objects
# Shading Language
StringName enum:
SHADING_LANGUAGE_VERSION = 0x8B8C
############################################################################### ###############################################################################
# #
# OpenGL 2.1 enums (edited for OpenTK) # OpenGL 2.1 enums (edited for OpenTK)
@ -678,8 +725,8 @@ ActiveUniformType enum:
VERSION_2_1 enum: VERSION_2_1 enum:
CURRENT_RASTER_SECONDARY_COLOR = 0x845F # New for 2.1 CURRENT_RASTER_SECONDARY_COLOR = 0x845F # New for 2.1
PIXEL_PACK_BUFFER = 0x88EB # ARB_pixel_buffer_object # PIXEL_PACK_BUFFER = 0x88EB # ARB_pixel_buffer_object
PIXEL_UNPACK_BUFFER = 0x88EC # ARB_pixel_buffer_object # PIXEL_UNPACK_BUFFER = 0x88EC # ARB_pixel_buffer_object
PIXEL_PACK_BUFFER_BINDING = 0x88ED # ARB_pixel_buffer_object PIXEL_PACK_BUFFER_BINDING = 0x88ED # ARB_pixel_buffer_object
PIXEL_UNPACK_BUFFER_BINDING = 0x88EF # ARB_pixel_buffer_object PIXEL_UNPACK_BUFFER_BINDING = 0x88EF # ARB_pixel_buffer_object
FLOAT_MAT2x3 = 0x8B65 # New for 2.1 FLOAT_MAT2x3 = 0x8B65 # New for 2.1
@ -701,6 +748,15 @@ VERSION_2_1 enum:
# COMPRESSED_SLUMINANCE = 0x8C4A # EXT_texture_sRGB # COMPRESSED_SLUMINANCE = 0x8C4A # EXT_texture_sRGB
# COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B # EXT_texture_sRGB # COMPRESSED_SLUMINANCE_ALPHA = 0x8C4B # EXT_texture_sRGB
# Pixel Buffer Objects http://www.opengl.org/sdk/docs/man/xhtml/glBindBuffer.xml
BufferTarget enum:
PIXEL_PACK_BUFFER = 0x88EB # ARB_pixel_buffer_object
PIXEL_UNPACK_BUFFER = 0x88EC # ARB_pixel_buffer_object
GetPName enum:
PIXEL_PACK_BUFFER_BINDING = 0x88ED # ARB_pixel_buffer_object
PIXEL_UNPACK_BUFFER_BINDING = 0x88EF # ARB_pixel_buffer_object
# sRGB textures (http://www.opengl.org/registry/specs/EXT/texture_sRGB.txt) # sRGB textures (http://www.opengl.org/registry/specs/EXT/texture_sRGB.txt)
PixelInternalFormat enum: PixelInternalFormat enum:
SRGB = 0x8C40 # EXT_texture_sRGB SRGB = 0x8C40 # EXT_texture_sRGB

View file

@ -5673,7 +5673,7 @@ GetQueryObjectuiv(id, pname, params)
BindBuffer(target, buffer) BindBuffer(target, buffer)
return void return void
param target BufferTargetARB in value param target BufferTarget in value # BufferTargetARB in value
param buffer UInt32 in value param buffer UInt32 in value
category VERSION_1_5 category VERSION_1_5
version 1.5 version 1.5
@ -5720,10 +5720,10 @@ IsBuffer(buffer)
BufferData(target, size, data, usage) BufferData(target, size, data, usage)
return void return void
param target BufferTargetARB in value param target BufferTarget in value # BufferTargetARB in value
param size BufferSize in value param size BufferSize in value
param data ConstVoid in array [size] param data ConstVoid in array [size]
param usage BufferUsageARB in value param usage BufferUsageHint in value # BufferUsageARB in value
category VERSION_1_5 category VERSION_1_5
version 1.5 version 1.5
extension extension
@ -5734,7 +5734,7 @@ BufferData(target, size, data, usage)
BufferSubData(target, offset, size, data) BufferSubData(target, offset, size, data)
return void return void
param target BufferTargetARB in value param target BufferTarget in value # BufferTargetARB in value
param offset BufferOffset in value param offset BufferOffset in value
param size BufferSize in value param size BufferSize in value
param data ConstVoid in array [size] param data ConstVoid in array [size]
@ -5748,7 +5748,7 @@ BufferSubData(target, offset, size, data)
GetBufferSubData(target, offset, size, data) GetBufferSubData(target, offset, size, data)
return void return void
param target BufferTargetARB in value param target BufferTarget in value # BufferTargetARB in value
param offset BufferOffset in value param offset BufferOffset in value
param size BufferSize in value param size BufferSize in value
param data Void out array [size] param data Void out array [size]
@ -5764,8 +5764,8 @@ GetBufferSubData(target, offset, size, data)
MapBuffer(target, access) MapBuffer(target, access)
return VoidPointer return VoidPointer
param target BufferTargetARB in value param target BufferTarget in value # BufferTargetARB in value
param access BufferAccessARB in value param access BufferAccess in value # BufferAccessARB in value
category VERSION_1_5 category VERSION_1_5
version 1.5 version 1.5
extension extension
@ -5776,7 +5776,7 @@ MapBuffer(target, access)
UnmapBuffer(target) UnmapBuffer(target)
return Boolean return Boolean
param target BufferTargetARB in value param target BufferTarget in value # BufferTargetARB in value
category VERSION_1_5 category VERSION_1_5
version 1.5 version 1.5
extension extension
@ -5787,8 +5787,8 @@ UnmapBuffer(target)
GetBufferParameteriv(target, pname, params) GetBufferParameteriv(target, pname, params)
return void return void
param target BufferTargetARB in value param target BufferTarget in value # BufferTargetARB in value
param pname BufferPNameARB in value param pname BufferParameterName in value # BufferPNameARB in value
param params Int32 out array [COMPSIZE(pname)] param params Int32 out array [COMPSIZE(pname)]
category VERSION_1_5 category VERSION_1_5
dlflags notlistable dlflags notlistable
@ -5802,8 +5802,8 @@ GetBufferParameteriv(target, pname, params)
GetBufferPointerv(target, pname, params) GetBufferPointerv(target, pname, params)
return void return void
param target BufferTargetARB in value param target BufferTarget in value # BufferTargetARB in value
param pname BufferPointerNameARB in value param pname BufferPointer in value # BufferPointerNameARB in value
param params VoidPointer out array [1] param params VoidPointer out array [1]
category VERSION_1_5 category VERSION_1_5
dlflags notlistable dlflags notlistable