The first three lines of each core or extension file is now: name, URL and GL extension string name. For example GL_NV_geometry_program4 is available iff GL_NV_gpu_program4 appears in the extension string.

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@587 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
nigels 2010-03-05 18:19:59 +00:00
parent 3285bcd840
commit 4744f99070
104 changed files with 175 additions and 33 deletions

View File

@ -71,28 +71,42 @@ sub parse_ext($)
my %tokens = ();
my %types = ();
my @exacts = ();
my $extname = "";
my $exturl = "";
my $extname = ""; # Full extension name GL_FOO_extension
my $exturl = ""; # Info URL
my $extstring = ""; # Relevant extension string
open EXT, "<$filename" or return;
# As of GLEW 1.5.3 the first three lines _must_ be
# the extension name, the URL and the GL extension
# string (which might be different to the name)
#
# For example GL_NV_geometry_program4 is available
# iff GL_NV_gpu_program4 appears in the extension
# string.
#
# For core OpenGL versions, the third line should
# be blank.
#
# If the URL is unknown, the second line should be
# blank.
$extname = readline(*EXT);
$exturl = readline(*EXT);
$extstring = readline(*EXT);
chomp($extname);
chomp($exturl);
chomp($extstring);
while(<EXT>)
{
chomp;
if (/$regex{extname}/)
{
$extname = $_;
next;
}
elsif (/$regex{exturl}/)
{
$exturl = $_;
}
elsif (s/^\s+//)
if (s/^\s+//)
{
if (/$regex{exact}/)
{
push @exacts, $_;
push @exacts, $_;
}
elsif (/$regex{type}/)
{
@ -119,7 +133,7 @@ sub parse_ext($)
close EXT;
return ($extname, $exturl, \%types, \%tokens, \%functions, \@exacts);
return ($extname, $exturl, $extstring, \%types, \%tokens, \%functions, \@exacts);
}
sub output_tokens($$)

View File

@ -29,7 +29,7 @@ if (@ARGV)
foreach my $ext (sort @extlist)
{
my ($extname, $exturl, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
output_decls($functions, \&make_pfn_decl);
}
}

View File

@ -23,7 +23,7 @@ if (@ARGV)
foreach my $ext (sort @extlist)
{
my ($extname, $exturl, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my $extvar = $extname;
$extvar =~ s/GL(X*)_/GL$1EW_/;
print "GLboolean " . prefix_varname($extvar) . " = GL_FALSE;\n";

View File

@ -52,7 +52,7 @@ if (@ARGV)
foreach my $ext (sort @extlist)
{
my ($extname, $exturl, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
make_separator($extname);
print "#ifndef $extname\n#define $extname 1\n";

View File

@ -26,7 +26,7 @@ if (@ARGV)
print "<table border=\"0\" width=\"100%\" cellpadding=\"1\" cellspacing=\"0\" align=\"center\">\n";
foreach my $ext (sort @extlist)
{
my ($extname, $exturl, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
$cur_group = $extname;
$cur_group =~ s/^(?:W?)GL(?:X?)_([A-Z0-9]+?)_.*$/$1/;
$extname =~ s/^(?:W?)GL(?:X?)_(.*)$/$1/;

View File

@ -32,7 +32,7 @@ if (@ARGV)
foreach my $ext (sort @extlist)
{
my ($extname, $exturl, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my $extvar = $extname;
$extvar =~ s/GL(X*)_/GL$1EW_/;
my $extpre = $extname;

View File

@ -38,7 +38,7 @@ if (@ARGV)
foreach my $ext (sort @extlist)
{
my ($extname, $exturl, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
print "#ifdef $extname\n";
print " _glewInfo_$extname();\n";

View File

@ -34,7 +34,7 @@ if (@ARGV)
foreach my $ext (sort @extlist)
{
my ($extname, $exturl, $types, $tokens, $functions, $exacts) =
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) =
parse_ext($ext);
#make_separator($extname);

View File

@ -32,7 +32,7 @@ if (@ARGV)
foreach my $ext (sort @extlist)
{
my ($extname, $exturl, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my $extvar = $extname;
$extvar =~ s/GL(X*)_/GL$1EW_/;

View File

@ -22,7 +22,7 @@ if (@ARGV)
my $curexttype = "";
foreach my $ext (sort @extlist)
{
my ($extname, $exturl, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my $exttype = $extname;
$exttype =~ s/(W*?)GL(X*?)_(.*?_)(.*)/$3/;
my $extrem = $extname;

View File

@ -30,7 +30,7 @@ if (@ARGV)
foreach my $ext (sort @extlist)
{
my ($extname, $exturl, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
output_decls($functions, \&make_pfn_decl);
}
}

View File

@ -23,7 +23,7 @@ if (@ARGV)
foreach my $ext (sort @extlist)
{
my ($extname, $exturl, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
my $extvar = $extname;
$extvar =~ s/GL(X*)_/GL$1EW_/;
print $export . " GLboolean " . prefix_varname($extvar) . ";\n";

View File

@ -125,6 +125,7 @@ my %fnc_ignore_list = (
my %regex = (
eofnc => qr/(?:\);?$|^$)/, # )$ | );$ | ^$
extname => qr/^[A-Z][A-Za-z0-9_]+$/,
none => qr/^\(none\)$/,
function => qr/^(.+) ([a-z][a-z0-9_]*) \((.+)\)$/i,
prefix => qr/^(?:[aw]?gl|glX)/, # gl | agl | wgl | glX
tprefix => qr/^(?:[AW]?GL|GLX)_/, # GL_ | AGL_ | WGL_ | GLX_
@ -181,7 +182,13 @@ sub parse_spec($)
"Name Strings" => sub {
# Add extension name to extension list
# Does this look even plausible?
# Initially use $extname if (none) specified
if (/$regex{none}/)
{
$_ = $extname;
}
if (/$regex{extname}/)
{
# prefix with "GL_" if prefix not present
@ -301,10 +308,11 @@ foreach my $spec (sort @speclist)
{
my $info = "$ext_dir/" . $ext;
open EXT, ">$info";
print EXT $ext . "\n";
my $specname = $spec;
$specname =~ s/registry\///;
print EXT $reg_http . $specname . "\n";
print EXT $ext . "\n"; # Extension name
my $specname = $spec;
$specname =~ s/registry\///;
print EXT $reg_http . $specname . "\n"; # Extension info URL
print EXT $ext . "\n"; # Extension string
my $prefix = $ext;
$prefix =~ s/^(.+?)(_.+)$/$1/;

View File

@ -242,7 +242,7 @@ EOT
mv tmp $1/GLX_ARB_create_context
# Filter only profile related enumerations for GLX_ARB_create_context_profile
head -n2 $1/GLX_ARB_create_context_profile > tmp
head -n3 $1/GLX_ARB_create_context_profile > tmp
grep "_PROFILE_" $1/GLX_ARB_create_context_profile >> tmp
mv tmp $1/GLX_ARB_create_context_profile
@ -251,7 +251,7 @@ EOT
mv tmp $1/WGL_ARB_create_context
# Filter only profile related enumerations for WGL_ARB_create_context_profile
head -n2 $1/WGL_ARB_create_context_profile > tmp
head -n3 $1/WGL_ARB_create_context_profile > tmp
grep "_PROFILE_" $1/WGL_ARB_create_context_profile >> tmp
mv tmp $1/WGL_ARB_create_context_profile

View File

@ -1,3 +1,4 @@
GLX_ARB_get_proc_address
http://oss.sgi.com/projects/ogl-sample/registry/ARB/get_proc_address.txt
GLX_ARB_get_proc_address
extern void ( * glXGetProcAddressARB (const GLubyte *procName)) (void);

View File

@ -1,2 +1,4 @@
GLX_ATI_pixel_format_float
GLX_ATI_pixel_format_float
GLX_RGBA_FLOAT_ATI_BIT 0x00000100

View File

@ -1,3 +1,5 @@
GLX_ATI_render_texture
GLX_ATI_render_texture
GLX_BIND_TO_TEXTURE_RGB_ATI 0x9800
GLX_BIND_TO_TEXTURE_RGBA_ATI 0x9801

View File

@ -1,4 +1,5 @@
GLX_EXT_fbconfig_packed_float
http://developer.download.nvidia.com/opengl/specs/GL_EXT_packed_float.txt
GLX_EXT_fbconfig_packed_float
GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008

View File

@ -1,3 +1,4 @@
GLX_EXT_framebuffer_sRGB
http://developer.download.nvidia.com/opengl/specs/GL_EXT_framebuffer_sRGB.txt
GLX_EXT_framebuffer_sRGB
GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2

View File

@ -1,3 +1,4 @@
GLX_NV_float_buffer
http://cvs1.nvidia.com/inc/GL/glxtokens.h
GLX_NV_float_buffer
GLX_FLOAT_COMPONENTS_NV 0x20B0

View File

@ -1,4 +1,5 @@
GLX_NV_vertex_array_range
http://oss.sgi.com/projects/ogl-sample/registry/NV/vertex_array_range.txt
GLX_NV_vertex_array_range
void * glXAllocateMemoryNV (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority)
void glXFreeMemoryNV (void *pointer)

View File

@ -1,3 +1,5 @@
GLX_SGIS_shared_multisample
GLX_SGIS_shared_multisample
GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027

View File

@ -1,5 +1,6 @@
GLX_SGIX_hyperpipe
http://oss.sgi.com/projects/ogl-sample/registry/SGIX/hyperpipe_group.txt
GLX_SGIX_hyperpipe
GLX_HYPERPIPE_ID_SGIX 0x8030
GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001

View File

@ -1,4 +1,5 @@
GLX_SGIX_swap_barrier
http://oss.sgi.com/projects/ogl-sample/registry/SGIX/swap_barrier.txt
GLX_SGIX_swap_barrier
void glXBindSwapBarrierSGIX (Display *dpy, GLXDrawable drawable, int barrier)
Bool glXQueryMaxSwapBarriersSGIX (Display *dpy, int screen, int *max)

View File

@ -1,3 +1,4 @@
GLX_SGIX_swap_group
http://oss.sgi.com/projects/ogl-sample/registry/SGIX/swap_group.txt
GLX_SGIX_swap_group
void glXJoinSwapGroupSGIX (Display *dpy, GLXDrawable drawable, GLXDrawable member)

View File

@ -1,5 +1,6 @@
GLX_SUN_video_resize
http://wwws.sun.com/software/graphics/opengl/extensions/glx_sun_video_resize.txt
GLX_SUN_video_resize
GL_VIDEO_RESIZE_COMPENSATION_SUN 0x85CD
GLX_VIDEO_RESIZE_SUN 0x8171
int glXVideoResizeSUN (Display* display, GLXDrawable window, float factor)

View File

@ -1,2 +1,4 @@
GLX_VERSION_1_2
http://www.opengl.org/documentation/specs/glx/glx1.2.ps
GLX_VERSION_1_2
Display* glXGetCurrentDisplay (void)

View File

@ -1,3 +1,5 @@
GLX_VERSION_1_3
http://www.opengl.org/documentation/specs/glx/glx1.3.pdf
GLX_VERSION_1_3
GLX_WINDOW_BIT 0x00000001
GLX_PIXMAP_BIT 0x00000002

View File

@ -1,3 +1,5 @@
GLX_VERSION_1_4
http://www.opengl.org/documentation/specs/glx/glx1.4.pdf
GLX_VERSION_1_4
GLX_SAMPLE_BUFFERS 100000
GLX_SAMPLES 100001

View File

@ -1,5 +1,6 @@
GL_APPLE_float_pixels
http://developer.apple.com/opengl/extensions/apple_float_pixels.html
GL_APPLE_float_pixels
GL_HALF_APPLE 0x140B
GL_COLOR_FLOAT_APPLE 0x8A0F
GL_RGBA_FLOAT32_APPLE 0x8814

View File

@ -1,2 +1,4 @@
GL_APPLE_pixel_buffer
GL_APPLE_pixel_buffer
GL_MIN_PBUFFER_VIEWPORT_DIMS_APPLE 0x8A10

View File

@ -1,5 +1,6 @@
GL_APPLE_texture_range
http://developer.apple.com/opengl/extensions/apple_texture_range.html
GL_APPLE_texture_range
GL_TEXTURE_STORAGE_HINT_APPLE 0x85BC
GL_STORAGE_PRIVATE_APPLE 0x85BD
GL_STORAGE_CACHED_APPLE 0x85BE

View File

@ -1,3 +1,5 @@
GL_ARB_imaging
GL_ARB_imaging
GL_CONSTANT_COLOR 0x8001
GL_ONE_MINUS_CONSTANT_COLOR 0x8002

View File

@ -1,5 +1,6 @@
GL_ARB_matrix_palette
http://oss.sgi.com/projects/ogl-sample/registry/ARB/matrix_palette.txt
GL_ARB_matrix_palette
GL_MATRIX_PALETTE_ARB 0x8840
GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841
GL_MAX_PALETTE_MATRICES_ARB 0x8842

View File

@ -1,5 +1,6 @@
GL_ARB_multitexture
http://oss.sgi.com/projects/ogl-sample/registry/ARB/multitexture.txt
GL_ARB_multitexture
GL_TEXTURE0_ARB 0x84C0
GL_TEXTURE1_ARB 0x84C1
GL_TEXTURE2_ARB 0x84C2

View File

@ -1,5 +1,6 @@
GL_ARB_vertex_blend
http://oss.sgi.com/projects/ogl-sample/registry/ARB/vertex_blend.txt
GL_ARB_vertex_blend
GL_MAX_VERTEX_UNITS_ARB 0x86A4
GL_ACTIVE_VERTEX_UNITS_ARB 0x86A5
GL_WEIGHT_SUM_UNITY_ARB 0x86A6

View File

@ -1,5 +1,6 @@
GL_ATIX_point_sprites
http://www.ati.com/developer/atiopengl.pdf
GL_ATIX_point_sprites
GL_TEXTURE_POINT_MODE_ATIX 0x60B0
GL_TEXTURE_POINT_ONE_COORD_ATIX 0x60B1
GL_TEXTURE_POINT_SPRITE_ATIX 0x60B2

View File

@ -1,5 +1,6 @@
GL_ATIX_texture_env_combine3
http://www.ati.com/developer/atiopengl.pdf
GL_ATIX_texture_env_combine3
GL_MODULATE_ADD_ATIX 0x8744
GL_MODULATE_SIGNED_ADD_ATIX 0x8745
GL_MODULATE_SUBTRACT_ATIX 0x8746

View File

@ -1,5 +1,6 @@
GL_ATIX_texture_env_route
http://www.ati.com/developer/sdk/RadeonSDK/Html/Info/ATIX_texture_env_route.txt
GL_ATIX_texture_env_route
GL_SECONDARY_COLOR_ATIX 0x8747
GL_TEXTURE_OUTPUT_RGB_ATIX 0x8748
GL_TEXTURE_OUTPUT_ALPHA_ATIX 0x8749

View File

@ -1,3 +1,4 @@
GL_ATIX_vertex_shader_output_point_size
http://www.ati.com/developer/atiopengl.pdf
GL_ATIX_vertex_shader_output_point_size
GL_OUTPUT_POINT_SIZE_ATIX 0x610E

View File

@ -1,5 +1,6 @@
GL_ATI_envmap_bumpmap
http://oss.sgi.com/projects/ogl-sample/registry/ATI/envmap_bumpmap.txt
GL_ATI_envmap_bumpmap
GL_BUMP_ROT_MATRIX_ATI 0x8775
GL_BUMP_ROT_MATRIX_SIZE_ATI 0x8776
GL_BUMP_NUM_TEX_UNITS_ATI 0x8777

View File

@ -1,4 +1,5 @@
GL_ATI_map_object_buffer
http://www.ati.com/developer/sdk/RADEONSDK/Html/Info/ATI_map_object_buffer.txt
GL_ATI_map_object_buffer
void* glMapObjectBufferATI (GLuint buffer)
void glUnmapObjectBufferATI (GLuint buffer)

View File

@ -1,5 +1,6 @@
GL_ATI_pn_triangles
http://www.ati.com/developer/sdk/RADEONSDK/Html/Info/ati_pn_triangles.txt
GL_ATI_pn_triangles
GL_PN_TRIANGLES_ATI 0x87F0
GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI 0x87F1
GL_PN_TRIANGLES_POINT_MODE_ATI 0x87F2

View File

@ -1,5 +1,6 @@
GL_ATI_separate_stencil
http://www.ati.com/developer/sdk/RadeonSDK/Html/Info/ATI_separate_stencil.txt
GL_ATI_separate_stencil
GL_STENCIL_BACK_FUNC_ATI 0x8800
GL_STENCIL_BACK_FAIL_ATI 0x8801
GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI 0x8802

View File

@ -1 +1,3 @@
GL_ATI_shader_texture_lod
GL_ATI_shader_texture_lod

View File

@ -1,2 +1,4 @@
GL_ATI_texture_compression_3dc
GL_ATI_texture_compression_3dc
GL_COMPRESSED_LUMINANCE_ALPHA_3DC_ATI 0x8837

View File

@ -1,5 +1,6 @@
GL_ATI_vertex_streams
http://www.ati.com/developer/sdk/RADEONSDK/Html/Info/ATI_vertex_streams.txt
GL_ATI_vertex_streams
GL_MAX_VERTEX_STREAMS_ATI 0x876B
GL_VERTEX_SOURCE_ATI 0x876C
GL_VERTEX_STREAM0_ATI 0x876D

View File

@ -1,4 +1,5 @@
GL_EXT_Cg_shader
http://download.nvidia.com/developer/GLSL/GLSL%20Release%20Notes%20for%20Release%2060.pdf
GL_EXT_Cg_shader
GL_CG_VERTEX_SHADER_EXT 0x890E
GL_CG_FRAGMENT_SHADER_EXT 0x890F

View File

@ -1,5 +1,6 @@
GL_EXT_bindable_uniform
http://developer.download.nvidia.com/opengl/specs/GL_EXT_bindable_uniform.txt
GL_EXT_bindable_uniform
GL_MAX_VERTEX_BINDABLE_UNIFORMS_EXT 0x8DE2
GL_MAX_FRAGMENT_BINDABLE_UNIFORMS_EXT 0x8DE3
GL_MAX_GEOMETRY_BINDABLE_UNIFORMS_EXT 0x8DE4

View File

@ -1,5 +1,6 @@
GL_EXT_depth_bounds_test
http://www.nvidia.com/dev_content/nvopenglspecs/GL_EXT_depth_bounds_test.txt
GL_EXT_depth_bounds_test
GL_DEPTH_BOUNDS_TEST_EXT 0x8890
GL_DEPTH_BOUNDS_EXT 0x8891
void glDepthBoundsEXT (GLclampd zmin, GLclampd zmax)

View File

@ -1,4 +1,5 @@
GL_EXT_draw_instanced
http://developer.download.nvidia.com/opengl/specs/GL_EXT_draw_instanced.txt
GL_EXT_draw_instanced
void glDrawArraysInstancedEXT (GLenum mode, GLint start, GLsizei count, GLsizei primcount)
void glDrawElementsInstancedEXT (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount)

View File

@ -1,5 +1,6 @@
GL_EXT_draw_range_elements
http://oss.sgi.com/projects/ogl-sample/registry/EXT/draw_range_elements.txt
GL_EXT_draw_range_elements
GL_MAX_ELEMENTS_VERTICES 0x80E8
GL_MAX_ELEMENTS_INDICES 0x80E9
void glDrawRangeElementsEXT (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices)

View File

@ -1,5 +1,6 @@
GL_EXT_fog_coord
http://oss.sgi.com/projects/ogl-sample/registry/EXT/fog_coord.txt
GL_EXT_fog_coord
GL_FOG_COORDINATE_SOURCE_EXT 0x8450
GL_FOG_COORDINATE_EXT 0x8451
GL_FRAGMENT_DEPTH_EXT 0x8452

View File

@ -1,4 +1,5 @@
GL_EXT_framebuffer_sRGB
http://developer.download.nvidia.com/opengl/specs/GL_EXT_framebuffer_sRGB.txt
GL_EXT_framebuffer_sRGB
GL_FRAMEBUFFER_SRGB_EXT 0x8DB9
GL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x8DBA

View File

@ -1,5 +1,6 @@
GL_EXT_geometry_shader4
http://developer.download.nvidia.com/opengl/specs/GL_EXT_geometry_shader4.txt
GL_EXT_geometry_shader4
GL_GEOMETRY_SHADER_EXT 0x8DD9
GL_MAX_GEOMETRY_VARYING_COMPONENTS_EXT 0x8DDD
GL_MAX_VERTEX_VARYING_COMPONENTS_EXT 0x8DDE

View File

@ -1,4 +1,5 @@
GL_EXT_gpu_program_parameters
http://developer.download.nvidia.com/opengl/specs/GL_EXT_gpu_program_parameters.txt
GL_EXT_gpu_program_parameters
void glProgramEnvParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat* params)
void glProgramLocalParameters4fvEXT (GLenum target, GLuint index, GLsizei count, const GLfloat* params)

View File

@ -1,5 +1,6 @@
GL_EXT_gpu_shader4
http://developer.download.nvidia.com/opengl/specs/GL_EXT_gpu_shader4.txt
GL_EXT_gpu_shader4
GL_SAMPLER_1D_ARRAY_EXT 0x8DC0
GL_SAMPLER_2D_ARRAY_EXT 0x8DC1
GL_SAMPLER_BUFFER_EXT 0x8DC2

View File

@ -1,5 +1,6 @@
GL_EXT_packed_float
http://developer.download.nvidia.com/opengl/specs/GL_EXT_packed_float.txt
GL_EXT_packed_float
GL_R11F_G11F_B10F_EXT 0x8C3A
GL_UNSIGNED_INT_10F_11F_11F_REV_EXT 0x8C3B
GL_RGBA_SIGNED_COMPONENTS_EXT 0x8C3C

View File

@ -1,5 +1,6 @@
GL_EXT_pixel_buffer_object
http://www.nvidia.com/dev_content/nvopenglspecs/GL_EXT_pixel_buffer_object.txt
GL_EXT_pixel_buffer_object
GL_PIXEL_PACK_BUFFER_EXT 0x88EB
GL_PIXEL_UNPACK_BUFFER_EXT 0x88EC
GL_PIXEL_PACK_BUFFER_BINDING_EXT 0x88ED

View File

@ -1,5 +1,6 @@
GL_EXT_secondary_color
http://oss.sgi.com/projects/ogl-sample/registry/EXT/secondary_color.txt
GL_EXT_secondary_color
GL_COLOR_SUM_EXT 0x8458
GL_CURRENT_SECONDARY_COLOR_EXT 0x8459
GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A

View File

@ -1,5 +1,6 @@
GL_EXT_texture_array
http://developer.download.nvidia.com/opengl/specs/GL_EXT_texture_array.txt
GL_EXT_texture_array
GL_TEXTURE_1D_ARRAY_EXT 0x8C18
GL_PROXY_TEXTURE_1D_ARRAY_EXT 0x8C19
GL_TEXTURE_2D_ARRAY_EXT 0x8C1A

View File

@ -1,5 +1,6 @@
GL_EXT_texture_buffer_object
http://developer.download.nvidia.com/opengl/specs/GL_EXT_texture_buffer_object.txt
GL_EXT_texture_buffer_object
GL_TEXTURE_BUFFER_EXT 0x8C2A
GL_MAX_TEXTURE_BUFFER_SIZE_EXT 0x8C2B
GL_TEXTURE_BINDING_BUFFER_EXT 0x8C2C

View File

@ -1,5 +1,6 @@
GL_EXT_texture_compression_latc
http://developer.download.nvidia.com/opengl/specs/GL_EXT_texture_compression_latc.txt
GL_EXT_texture_compression_latc
GL_COMPRESSED_LUMINANCE_LATC1_EXT 0x8C70
GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_EXT 0x8C71
GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT 0x8C72

View File

@ -1,5 +1,6 @@
GL_EXT_texture_compression_rgtc
http://developer.download.nvidia.com/opengl/specs/GL_EXT_texture_compression_rgtc.txt
GL_EXT_texture_compression_rgtc
GL_COMPRESSED_RED_RGTC1_EXT 0x8DBB
GL_COMPRESSED_SIGNED_RED_RGTC1_EXT 0x8DBC
GL_COMPRESSED_RED_GREEN_RGTC2_EXT 0x8DBD

View File

@ -1,5 +1,6 @@
GL_EXT_texture_cube_map
http://www.nvidia.com/dev_content/nvopenglspecs/GL_EXT_texture_cube_map.txt
GL_EXT_texture_cube_map
GL_NORMAL_MAP_EXT 0x8511
GL_REFLECTION_MAP_EXT 0x8512
GL_TEXTURE_CUBE_MAP_EXT 0x8513

View File

@ -1,3 +1,4 @@
GL_EXT_texture_edge_clamp
http://www.opengl.org/developers/documentation/Version1.2/1.2specs/texture_edge_clamp.txt
GL_EXT_texture_edge_clamp
GL_CLAMP_TO_EDGE_EXT 0x812F

View File

@ -1,5 +1,6 @@
GL_EXT_texture_integer
http://developer.download.nvidia.com/opengl/specs/GL_EXT_texture_integer.txt
GL_EXT_texture_integer
GL_RGBA32UI_EXT 0x8D70
GL_RGB32UI_EXT 0x8D71
GL_ALPHA32UI_EXT 0x8D72

View File

@ -1,5 +1,6 @@
GL_EXT_texture_rectangle
http://developer.apple.com/opengl/extensions/ext_texture_rectangle.html
GL_EXT_texture_rectangle
GL_TEXTURE_RECTANGLE_EXT 0x84F5
GL_TEXTURE_BINDING_RECTANGLE_EXT 0x84F6
GL_PROXY_TEXTURE_RECTANGLE_EXT 0x84F7

View File

@ -1,5 +1,6 @@
GL_EXT_texture_shared_exponent
http://developer.download.nvidia.com/opengl/specs/GL_EXT_texture_shared_exponent.txt
GL_EXT_texture_shared_exponent
GL_RGB9_E5_EXT 0x8C3D
GL_UNSIGNED_INT_5_9_9_9_REV_EXT 0x8C3E
GL_TEXTURE_SHARED_SIZE_EXT 0x8C3F

View File

@ -1,5 +1,6 @@
GL_EXT_timer_query
http://www.nvidia.com/dev_content/nvopenglspecs/GL_EXT_timer_query.txt
GL_EXT_timer_query
GL_TIME_ELAPSED_EXT 0x88BF
void glGetQueryObjecti64vEXT (GLuint id, GLenum pname, GLint64EXT *params)
void glGetQueryObjectui64vEXT (GLuint id, GLenum pname, GLuint64EXT *params)

View File

@ -1,5 +1,6 @@
GL_EXT_vertex_shader
http://oss.sgi.com/projects/ogl-sample/registry/EXT/vertex_shader.txt
GL_EXT_vertex_shader
GL_VERTEX_SHADER_EXT 0x8780
GL_VERTEX_SHADER_BINDING_EXT 0x8781
GL_OP_INDEX_EXT 0x8782

View File

@ -1,3 +1,5 @@
GL_KTX_buffer_region
GL_KTX_buffer_region
GL_KTX_FRONT_REGION 0x0
GL_KTX_BACK_REGION 0x1

View File

@ -1,5 +1,6 @@
GL_NV_depth_buffer_float
http://developer.download.nvidia.com/opengl/specs/GL_NV_depth_buffer_float.txt
GL_NV_depth_buffer_float
GL_DEPTH_COMPONENT32F_NV 0x8DAB
GL_DEPTH32F_STENCIL8_NV 0x8DAC
GL_FLOAT_32_UNSIGNED_INT_24_8_REV_NV 0x8DAD

View File

@ -1,3 +1,5 @@
GL_NV_depth_range_unclamped
GL_NV_depth_range_unclamped
GL_SAMPLE_COUNT_BITS_NV 0x8864
GL_CURRENT_SAMPLE_COUNT_QUERY_NV 0x8865

View File

@ -1,5 +1,6 @@
GL_NV_fragment_program2
http://www.nvidia.com/dev_content/nvopenglspecs/GL_NV_fragment_program2.txt
GL_NV_fragment_program2
GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4
GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5
GL_MAX_PROGRAM_IF_DEPTH_NV 0x88F6

View File

@ -1,2 +1,3 @@
GL_NV_fragment_program4
http://developer.download.nvidia.com/opengl/specs/GL_NV_fragment_program4.txt
GL_NV_fragment_program4

View File

@ -1,2 +1,3 @@
GL_NV_fragment_program_option
http://www.nvidia.com/dev_content/nvopenglspecs/GL_NV_fragment_program_option.txt
GL_NV_fragment_program_option

View File

@ -1,5 +1,6 @@
GL_NV_framebuffer_multisample_coverage
http://developer.download.nvidia.com/opengl/specs/GL_NV_framebuffer_multisample_coverage.txt
GL_NV_framebuffer_multisample_coverage
GL_RENDERBUFFER_COVERAGE_SAMPLES_NV 0x8CAB
GL_RENDERBUFFER_COLOR_SAMPLES_NV 0x8E10
GL_MAX_MULTISAMPLE_COVERAGE_MODES_NV 0x8E11

View File

@ -1,5 +1,6 @@
GL_NV_geometry_program4
http://developer.download.nvidia.com/opengl/specs/GL_NV_geometry_program4.txt
GL_NV_geometry_program4
GL_GEOMETRY_PROGRAM_NV 0x8C26
GL_MAX_PROGRAM_OUTPUT_VERTICES_NV 0x8C27
GL_MAX_PROGRAM_TOTAL_OUTPUT_COMPONENTS_NV 0x8C28

View File

@ -1,2 +1,3 @@
GL_NV_geometry_shader4
http://developer.download.nvidia.com/opengl/specs/GL_NV_geometry_shader4.txt
GL_NV_geometry_shader4

View File

@ -1,5 +1,6 @@
GL_NV_gpu_program4
http://developer.download.nvidia.com/opengl/specs/GL_NV_gpu_program4.txt
GL_NV_gpu_program4
GL_MIN_PROGRAM_TEXEL_OFFSET_NV 0x8904
GL_MAX_PROGRAM_TEXEL_OFFSET_NV 0x8905
GL_PROGRAM_ATTRIB_COMPONENTS_NV 0x8906

View File

@ -1,5 +1,6 @@
GL_NV_parameter_buffer_object
http://developer.download.nvidia.com/opengl/specs/GL_NV_parameter_buffer_object.txt
GL_NV_parameter_buffer_object
GL_VERTEX_PROGRAM_PARAMETER_BUFFER_NV 0x8DA2
GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV 0x8DA3
GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV 0x8DA4

View File

@ -0,0 +1,15 @@
GL_NV_present_video
http://www.opengl.org/registry/specs/NV/present_video.txt
GL_NV_present_video
GL_FRAME_NV 0x8E26
GL_FIELDS_NV 0x8E27
GL_CURRENT_TIME_NV 0x8E28
GL_NUM_FILL_STREAMS_NV 0x8E29
GL_PRESENT_TIME_NV 0x8E2A
GL_PRESENT_DURATION_NV 0x8E2B
void glGetVideoi64vNV (GLuint video_slot, GLenum pname, GLint64EXT* params)
void glGetVideoivNV (GLuint video_slot, GLenum pname, GLint* params)
void glGetVideoui64vNV (GLuint video_slot, GLenum pname, GLuint64EXT* params)
void glGetVideouivNV (GLuint video_slot, GLenum pname, GLuint* params)
void glPresentFrameDualFillNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLenum target1, GLuint fill1, GLenum target2, GLuint fill2, GLenum target3, GLuint fill3)
void glPresentFrameKeyedNV (GLuint video_slot, GLuint64EXT minPresentTime, GLuint beginPresentTimeId, GLuint presentDurationId, GLenum type, GLenum target0, GLuint fill0, GLuint key0, GLenum target1, GLuint fill1, GLuint key1)

View File

@ -1,5 +1,6 @@
GL_NV_transform_feedback
http://developer.download.nvidia.com/opengl/specs/GL_NV_transform_feedback.txt
GL_NV_transform_feedback
GL_BACK_PRIMARY_COLOR_NV 0x8C77
GL_BACK_SECONDARY_COLOR_NV 0x8C78
GL_TEXTURE_COORD_NV 0x8C79

View File

@ -1,4 +1,5 @@
GL_NV_vertex_program2_option
http://www.nvidia.com/dev_content/nvopenglspecs/GL_NV_vertex_program2_option.txt
GL_NV_vertex_program2_option
GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV 0x88F4
GL_MAX_PROGRAM_CALL_DEPTH_NV 0x88F5

View File

@ -1,3 +1,4 @@
GL_NV_vertex_program3
http://www.nvidia.com/dev_content/nvopenglspecs/GL_NV_vertex_program3.txt
GL_NV_vertex_program3
MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C

View File

@ -1,2 +1,3 @@
GL_NV_vertex_program4
http://developer.download.nvidia.com/opengl/specs/GL_NV_vertex_program4.txt
GL_NV_vertex_program4

View File

@ -1,5 +1,6 @@
GL_SGIX_shadow
http://oss.sgi.com/projects/ogl-sample/registry/SGIX/shadow.txt
GL_SGIX_shadow
GL_TEXTURE_COMPARE_SGIX 0x819A
GL_TEXTURE_COMPARE_OPERATOR_SGIX 0x819B
GL_TEXTURE_LEQUAL_R_SGIX 0x819C

View File

@ -1,3 +1,4 @@
GL_SUN_read_video_pixels
http://wwws.sun.com/software/graphics/opengl/extensions/gl_sun_read_video_pixels.txt
GL_SUN_read_video_pixels
void glReadVideoPixelsSUN (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels)

View File

@ -1,4 +1,6 @@
GL_VERSION_1_2
http://www.opengl.org/documentation/specs/version1.2/opengl1.2.1.pdf
GL_UNSIGNED_BYTE_3_3_2 0x8032
GL_UNSIGNED_SHORT_4_4_4_4 0x8033
GL_UNSIGNED_SHORT_5_5_5_1 0x8034

View File

@ -1,4 +1,6 @@
GL_VERSION_1_3
http://www.opengl.org/documentation/specs/version1.3/glspec13.pdf
GL_TEXTURE0 0x84C0
GL_TEXTURE1 0x84C1
GL_TEXTURE2 0x84C2

View File

@ -1,4 +1,6 @@
GL_VERSION_1_4
http://www.opengl.org/documentation/specs/version1.4/glspec14.pdf
GL_GENERATE_MIPMAP 0x8191
GL_GENERATE_MIPMAP_HINT 0x8192
GL_DEPTH_COMPONENT16 0x81A5

View File

@ -1,5 +1,6 @@
GL_VERSION_1_5
http://www.opengl.org/documentation/specs/version1.5/glspec15.pdf
GL_BUFFER_SIZE 0x8764
GL_BUFFER_USAGE 0x8765
GL_QUERY_COUNTER_BITS 0x8864

View File

@ -1,5 +1,6 @@
GL_VERSION_2_0
http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf
GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION
GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623

View File

@ -1,5 +1,6 @@
GL_VERSION_2_1
http://www.opengl.org/documentation/specs/version2.1/glspec21.pdf
GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
GL_PIXEL_PACK_BUFFER 0x88EB
GL_PIXEL_UNPACK_BUFFER 0x88EC

View File

@ -1,5 +1,6 @@
GL_VERSION_3_0
http://www.opengl.org/registry/doc/glspec30.20080811.pdf
GL_COMPARE_REF_TO_TEXTURE GL_COMPARE_R_TO_TEXTURE_ARB
GL_CLIP_DISTANCE0 GL_CLIP_PLANE0
GL_CLIP_DISTANCE1 GL_CLIP_PLANE1

View File

@ -1,5 +1,6 @@
GL_VERSION_3_1
http://www.opengl.org/registry/doc/glspec30.20080811.pdf
GL_SAMPLER_2D_RECT 0x8B63
GL_SAMPLER_2D_RECT_SHADOW 0x8B64
GL_SAMPLER_BUFFER 0x8DC2

View File

@ -1,5 +1,6 @@
GL_VERSION_3_2
http://www.opengl.org/registry/doc/glspec32.core.20090803.pdf
GL_CONTEXT_CORE_PROFILE_BIT 0x00000001
GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
GL_LINES_ADJACENCY 0x000A

View File

@ -1,3 +1,4 @@
GL_WIN_swap_hint
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/opengl/glfunc01_16zy.asp
GL_WIN_swap_hint
void glAddSwapHintRectWIN (GLint x, GLint y, GLsizei width, GLsizei height)

View File

@ -1,2 +1,4 @@
WGL_ATI_render_texture_rectangle
WGL_ATI_render_texture_rectangle
WGL_TEXTURE_RECTANGLE_ATI 0x21A5

Some files were not shown because too many files have changed in this diff Show More