diff --git a/.gitignore b/.gitignore index 3da714a..e182c2f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,10 @@ /src/*.c /include/GL/*.h /build/vc6/*.rc +/build/*/*.sdf +/build/*/*.suo +/build/*/*.vcxproj.user +/build/*/tmp/ /auto/extensions /auto/registry /bin diff --git a/Makefile b/Makefile index 9fdac23..140f03a 100644 --- a/Makefile +++ b/Makefile @@ -40,11 +40,16 @@ else $(error "Platform '$(SYSTEM)' not supported") endif +GLEW_PREFIX ?= /usr GLEW_DEST ?= /usr BINDIR ?= $(GLEW_DEST)/bin LIBDIR ?= $(GLEW_DEST)/lib INCDIR ?= $(GLEW_DEST)/include/GL +ifneq ($(GLEW_NO_GLU), -DGLEW_NO_GLU) +LIBGLU = glu +endif + DIST_NAME ?= glew-$(GLEW_VERSION) DIST_SRC_ZIP ?= $(shell pwd)/$(DIST_NAME).zip DIST_SRC_TGZ ?= $(shell pwd)/$(DIST_NAME).tgz @@ -65,7 +70,7 @@ STRIP ?= strip RM ?= rm -f LN ?= ln -sf -ifeq ($(MAKECMDGOALS), debug) +ifneq (,$(filter debug,$(MAKECMDGOALS))) OPT = -g else OPT = $(POPT) @@ -128,13 +133,14 @@ tmp/$(SYSTEM)/default/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wgl glew.pc: glew.pc.in sed \ - -e "s|@prefix@|$(GLEW_DEST)|g" \ + -e "s|@prefix@|$(GLEW_PREFIX)|g" \ -e "s|@libdir@|$(LIBDIR)|g" \ -e "s|@exec_prefix@|$(BINDIR)|g" \ -e "s|@includedir@|$(INCDIR)|g" \ -e "s|@version@|$(GLEW_VERSION)|g" \ -e "s|@cflags@||g" \ - -e "s|@libname@|GLEW|g" \ + -e "s|@libname@|$(NAME)|g" \ + -e "s|@requireslib@|$(LIBGLU)|g" \ < $< > $@ # GLEW MX static and shared libraries @@ -168,13 +174,14 @@ tmp/$(SYSTEM)/mx/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h glewmx.pc: glew.pc.in sed \ - -e "s|@prefix@|$(GLEW_DEST)|g" \ + -e "s|@prefix@|$(GLEW_PREFIX)|g" \ -e "s|@libdir@|$(LIBDIR)|g" \ -e "s|@exec_prefix@|$(BINDIR)|g" \ -e "s|@includedir@|$(INCDIR)|g" \ -e "s|@version@|$(GLEW_VERSION)|g" \ -e "s|@cflags@|-DGLEW_MX|g" \ - -e "s|@libname@|GLEWmx|g" \ + -e "s|@libname@|$(NAME)mx|g" \ + -e "s|@requireslib@|$(LIBGLU)|g" \ < $< > $@ # GLEW utility programs diff --git a/auto/bin/filter_gl_ext.sh b/auto/bin/filter_gl_ext.sh index b45dde0..4d2c2ed 100755 --- a/auto/bin/filter_gl_ext.sh +++ b/auto/bin/filter_gl_ext.sh @@ -467,12 +467,28 @@ EOT # Fixup REGAL and ANGLE urls - for i in $1/GL_REGAL_*; do perl -e 's#http://www.opengl.org/registry/specs/gl/REGAL/.*#https://github.com/p3/regal/tree/master/doc/extensions#g' -pi $i; done - for i in $1/GL_ANGLE_*; do perl -e 's#http://www.opengl.org/registry/specs/gl/ANGLE/.*#https://code.google.com/p/angleproject/source/browse/\#git%2Fextensions#g' -pi $i; done + for i in $1/GL_REGAL_*; do perl -e 's#http://www.opengl.org/registry/specs/REGAL/.*#https://github.com/p3/regal/tree/master/doc/extensions#g' -pi $i; done + for i in $1/GL_ANGLE_*; do perl -e 's#http://www.opengl.org/registry/specs/ANGLE/.*#https://code.google.com/p/angleproject/source/browse/\#git%2Fextensions#g' -pi $i; done # Filter out GL_NV_blend_equation_advanced_coherent enums and functions head -n3 $1/GL_NV_blend_equation_advanced_coherent > tmp mv tmp $1/GL_NV_blend_equation_advanced_coherent +# Filter out GL_AMD_gpu_shader_int64 enums and functions + head -n3 $1/GL_AMD_gpu_shader_int64 > tmp + mv tmp $1/GL_AMD_gpu_shader_int64 + +# Filter out GL_NO_ERROR enum from GL_KHR_robustness + grep -v 'GL_NO_ERROR' $1/GL_KHR_robustness > tmp + mv tmp $1/GL_KHR_robustness + +# Filter out all enums from GL_KHR_blend_equation_advanced_coherent + grep -v '0x' $1/GL_KHR_blend_equation_advanced_coherent > tmp + mv tmp $1/GL_KHR_blend_equation_advanced_coherent + +# Filter out glBlendBarrierKHR enum from GL_KHR_blend_equation_advanced_coherent + grep -v 'glBlendBarrierKHR' $1/GL_KHR_blend_equation_advanced_coherent > tmp + mv tmp $1/GL_KHR_blend_equation_advanced_coherent + # clean up rm -f $1/*.bak diff --git a/auto/bin/filter_spec.py b/auto/bin/filter_spec.py new file mode 100755 index 0000000..7fc334b --- /dev/null +++ b/auto/bin/filter_spec.py @@ -0,0 +1,32 @@ +#!/usr/bin/python + +import re + +section = re.compile('^(Name|Name Strings?|Number|Dependencies|New Procedures and Functions|New Tokens|Additions to .*|Changes to .*|Modifications to .*|Add new Section .*)\s*$') +token = re.compile('^\s+(([A-Z0-9][A-Z0-9_x]*):?\s+((?:0x)?[0-9A-F]+)([^\?]*))?\s*$') + +if __name__ == '__main__': + + from optparse import OptionParser + import os + + parser = OptionParser('usage: %prog [options] [SOURCES...]') + (options, args) = parser.parse_args() + + for i in args: + lines = open(i).readlines() + f = open(i,'w') + current = '' + for j in lines: + m = section.match(j) + if m: + current = m.group(1).strip() + if current in [ 'Name', 'Name String', 'Name Strings', 'Number', 'Dependencies', 'New Procedures and Functions', 'New Tokens']: + print >>f, j, + continue + if current=='New Tokens': + if token.match(j): + print >>f, j, + elif current in [ 'Name', 'Name String', 'Name Strings', 'Number', 'Dependencies', 'New Procedures and Functions']: + print >>f, j, + diff --git a/auto/bin/make.pl b/auto/bin/make.pl index f382263..83bb774 100755 --- a/auto/bin/make.pl +++ b/auto/bin/make.pl @@ -142,7 +142,25 @@ sub output_tokens($$) { local $, = "\n"; print "\n"; - print map { &{$fnc}($_, $tbl->{$_}) } sort { hex ${$tbl}{$a} <=> hex ${$tbl}{$b} } keys %{$tbl}; + print map { &{$fnc}($_, $tbl->{$_}) } sort { + if (${$tbl}{$a} eq ${$tbl}{$b}) { + $a cmp $b + } else { + if (${$tbl}{$a} =~ /_/) { + if (${$tbl}{$b} =~ /_/) { + $a cmp $b + } else { + -1 + } + } else { + if (${$tbl}{$b} =~ /_/) { + 1 + } else { + hex ${$tbl}{$a} <=> hex ${$tbl}{$b} + } + } + } + } keys %{$tbl}; print "\n"; } else { print STDERR "no keys in table!\n"; diff --git a/auto/bin/make_list.pl b/auto/bin/make_list.pl index a1eb665..75dc060 100755 --- a/auto/bin/make_list.pl +++ b/auto/bin/make_list.pl @@ -46,18 +46,18 @@ if (@ARGV) if (length($extstring)) { - print " CONST_CAST(" . $extvar . ") = _glewSearchExtension(\"$extstring\", extStart, extEnd);\n"; + print " " . $extvar . " = _glewSearchExtension(\"$extstring\", extStart, extEnd);\n"; } if (keys %$functions) { if ($extname =~ /WGL_.*/) { - print " if (glewExperimental || " . $extvar . "|| crippled) CONST_CAST(" . $extvar . ")= !_glewInit_$extname(GLEW_CONTEXT_ARG_VAR_INIT);\n"; + print " if (glewExperimental || " . $extvar . "|| crippled) " . $extvar . "= !_glewInit_$extname(GLEW_CONTEXT_ARG_VAR_INIT);\n"; } else { - print " if (glewExperimental || " . $extvar . ") CONST_CAST(" . $extvar . ") = !_glewInit_$extname(GLEW_CONTEXT_ARG_VAR_INIT);\n"; + print " if (glewExperimental || " . $extvar . ") " . $extvar . " = !_glewInit_$extname(GLEW_CONTEXT_ARG_VAR_INIT);\n"; } } print "#endif /* $extname */\n"; diff --git a/auto/bin/parse_spec.pl b/auto/bin/parse_spec.pl index 7e64ddb..8824af6 100755 --- a/auto/bin/parse_spec.pl +++ b/auto/bin/parse_spec.pl @@ -309,7 +309,7 @@ my @speclist = (); my %extensions = (); my $ext_dir = shift; -my $reg_http = "http://www.opengl.org/registry/specs/gl/"; +my $reg_http = "http://www.opengl.org/registry/specs/"; # Take command line arguments or read list from file if (@ARGV) @@ -336,8 +336,26 @@ foreach my $spec (sort @speclist) my $prefix = $ext; $prefix =~ s/^(.+?)(_.+)$/$1/; - foreach my $token (sort { hex ${$tokens}{$a} <=> hex ${$tokens}{$b} } keys %{$tokens}) - { + foreach my $token (sort { + if (${$tokens}{$a} eq ${$tokens}{$b}) { + $a cmp $b + } else { + if (${$tokens}{$a} =~ /_/) { + if (${$tokens}{$b} =~ /_/) { + $a cmp $b + } else { + -1 + } + } else { + if (${$tokens}{$b} =~ /_/) { + 1 + } else { + hex ${$tokens}{$a} <=> hex ${$tokens}{$b} + } + } + } + } keys %{$tokens}) + { if ($token =~ /^$prefix\_.*/i) { print EXT "\t" . $token . " " . ${\%{$tokens}}{$token} . "\n"; diff --git a/auto/core/gl/GL_VERSION_2_0 b/auto/core/gl/GL_VERSION_2_0 index b23d1a2..f6479d0 100644 --- a/auto/core/gl/GL_VERSION_2_0 +++ b/auto/core/gl/GL_VERSION_2_0 @@ -85,11 +85,11 @@ http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf GL_STENCIL_BACK_REF 0x8CA3 GL_STENCIL_BACK_VALUE_MASK 0x8CA4 GL_STENCIL_BACK_WRITEMASK 0x8CA5 - void glBlendEquationSeparate (GLenum, GLenum) + void glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) void glDrawBuffers (GLsizei n, const GLenum* bufs) void glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass) void glStencilFuncSeparate (GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask) - void glStencilMaskSeparate (GLenum, GLuint) + void glStencilMaskSeparate (GLenum face, GLuint mask) void glAttachShader (GLuint program, GLuint shader) void glBindAttribLocation (GLuint program, GLuint index, const GLchar* name) void glCompileShader (GLuint shader) @@ -98,8 +98,8 @@ http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf void glDeleteProgram (GLuint program) void glDeleteShader (GLuint shader) void glDetachShader (GLuint program, GLuint shader) - void glDisableVertexAttribArray (GLuint) - void glEnableVertexAttribArray (GLuint) + void glDisableVertexAttribArray (GLuint index) + void glEnableVertexAttribArray (GLuint index) void glGetActiveAttrib (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name) void glGetActiveUniform (GLuint program, GLuint index, GLsizei maxLength, GLsizei* length, GLint* size, GLenum* type, GLchar* name) void glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei* count, GLuint* shaders) @@ -112,10 +112,10 @@ http://www.opengl.org/documentation/specs/version2.0/glspec20.pdf GLint glGetUniformLocation (GLuint program, const GLchar* name) void glGetUniformfv (GLuint program, GLint location, GLfloat* params) void glGetUniformiv (GLuint program, GLint location, GLint* params) - void glGetVertexAttribdv (GLuint, GLenum, GLdouble*) - void glGetVertexAttribfv (GLuint, GLenum, GLfloat*) - void glGetVertexAttribiv (GLuint, GLenum, GLint*) - void glGetVertexAttribPointerv (GLuint, GLenum, void**) + void glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble* params) + void glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) + void glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) + void glGetVertexAttribPointerv (GLuint index, GLenum pname, void** pointer) GLboolean glIsProgram (GLuint program) GLboolean glIsShader (GLuint shader) void glLinkProgram (GLuint program) diff --git a/auto/core/gl/GL_VERSION_3_0 b/auto/core/gl/GL_VERSION_3_0 index 44f9158..c87cdab 100644 --- a/auto/core/gl/GL_VERSION_3_0 +++ b/auto/core/gl/GL_VERSION_3_0 @@ -1,5 +1,5 @@ GL_VERSION_3_0 -http://www.opengl.org/registry/doc/glspec30.20080811.pdf +https://www.opengl.org/registry/doc/glspec30.20080923.pdf GL_COMPARE_REF_TO_TEXTURE GL_COMPARE_R_TO_TEXTURE_ARB GL_CLIP_DISTANCE0 GL_CLIP_PLANE0 @@ -106,58 +106,58 @@ http://www.opengl.org/registry/doc/glspec30.20080811.pdf GL_QUERY_NO_WAIT 0x8E14 GL_QUERY_BY_REGION_WAIT 0x8E15 GL_QUERY_BY_REGION_NO_WAIT 0x8E16 - void glColorMaski (GLuint, GLboolean, GLboolean, GLboolean, GLboolean) - void glGetBooleani_v (GLenum, GLuint, GLboolean*) - void glEnablei (GLenum, GLuint) - void glDisablei (GLenum, GLuint) - GLboolean glIsEnabledi (GLenum, GLuint) - void glBeginTransformFeedback (GLenum) + void glColorMaski (GLuint buf, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) + void glGetBooleani_v (GLenum pname, GLuint index, GLboolean* data) + void glEnablei (GLenum cap, GLuint index) + void glDisablei (GLenum cap, GLuint index) + GLboolean glIsEnabledi (GLenum cap, GLuint index) + void glBeginTransformFeedback (GLenum primitiveMode) void glEndTransformFeedback (void) - void glTransformFeedbackVaryings (GLuint, GLsizei, const GLchar *const*, GLenum) - void glGetTransformFeedbackVarying (GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *) - void glClampColor (GLenum, GLenum) - void glBeginConditionalRender (GLuint, GLenum) + void glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar *const* varyings, GLenum bufferMode) + void glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name) + void glClampColor (GLenum target, GLenum clamp) + void glBeginConditionalRender (GLuint id, GLenum mode) void glEndConditionalRender (void) - void glVertexAttribI1i (GLuint, GLint) - void glVertexAttribI2i (GLuint, GLint, GLint) - void glVertexAttribI3i (GLuint, GLint, GLint, GLint) - void glVertexAttribI4i (GLuint, GLint, GLint, GLint, GLint) - void glVertexAttribI1ui (GLuint, GLuint) - void glVertexAttribI2ui (GLuint, GLuint, GLuint) - void glVertexAttribI3ui (GLuint, GLuint, GLuint, GLuint) - void glVertexAttribI4ui (GLuint, GLuint, GLuint, GLuint, GLuint) - void glVertexAttribI1iv (GLuint, const GLint*) - void glVertexAttribI2iv (GLuint, const GLint*) - void glVertexAttribI3iv (GLuint, const GLint*) - void glVertexAttribI4iv (GLuint, const GLint*) - void glVertexAttribI1uiv (GLuint, const GLuint*) - void glVertexAttribI2uiv (GLuint, const GLuint*) - void glVertexAttribI3uiv (GLuint, const GLuint*) - void glVertexAttribI4uiv (GLuint, const GLuint*) - void glVertexAttribI4bv (GLuint, const GLbyte*) - void glVertexAttribI4sv (GLuint, const GLshort*) - void glVertexAttribI4ubv (GLuint, const GLubyte*) - void glVertexAttribI4usv (GLuint, const GLushort*) - void glVertexAttribIPointer (GLuint, GLint, GLenum, GLsizei, const void*) - void glGetVertexAttribIiv (GLuint, GLenum, GLint*) - void glGetVertexAttribIuiv (GLuint, GLenum, GLuint*) - void glGetUniformuiv (GLuint, GLint, GLuint*) - void glBindFragDataLocation (GLuint, GLuint, const GLchar*) - GLint glGetFragDataLocation (GLuint, const GLchar*) - void glUniform1ui (GLint, GLuint) - void glUniform2ui (GLint, GLuint, GLuint) - void glUniform3ui (GLint, GLuint, GLuint, GLuint) - void glUniform4ui (GLint, GLuint, GLuint, GLuint, GLuint) - void glUniform1uiv (GLint, GLsizei, const GLuint*) - void glUniform2uiv (GLint, GLsizei, const GLuint*) - void glUniform3uiv (GLint, GLsizei, const GLuint*) - void glUniform4uiv (GLint, GLsizei, const GLuint*) - void glTexParameterIiv (GLenum, GLenum, const GLint*) - void glTexParameterIuiv (GLenum, GLenum, const GLuint*) - void glGetTexParameterIiv (GLenum, GLenum, GLint*) - void glGetTexParameterIuiv (GLenum, GLenum, GLuint*) - void glClearBufferiv (GLenum, GLint, const GLint*) - void glClearBufferuiv (GLenum, GLint, const GLuint*) - void glClearBufferfv (GLenum, GLint, const GLfloat*) - void glClearBufferfi (GLenum, GLint, GLfloat, GLint) - const GLubyte* glGetStringi (GLenum, GLuint) + void glVertexAttribI1i (GLuint index, GLint v0) + void glVertexAttribI2i (GLuint index, GLint v0, GLint v1) + void glVertexAttribI3i (GLuint index, GLint v0, GLint v1, GLint v2) + void glVertexAttribI4i (GLuint index, GLint v0, GLint v1, GLint v2, GLint v3) + void glVertexAttribI1ui (GLuint index, GLuint v0) + void glVertexAttribI2ui (GLuint index, GLuint v0, GLuint v1) + void glVertexAttribI3ui (GLuint index, GLuint v0, GLuint v1, GLuint v2) + void glVertexAttribI4ui (GLuint index, GLuint v0, GLuint v1, GLuint v2, GLuint v3) + void glVertexAttribI1iv (GLuint index, const GLint* v0) + void glVertexAttribI2iv (GLuint index, const GLint* v0) + void glVertexAttribI3iv (GLuint index, const GLint* v0) + void glVertexAttribI4iv (GLuint index, const GLint* v0) + void glVertexAttribI1uiv (GLuint index, const GLuint* v0) + void glVertexAttribI2uiv (GLuint index, const GLuint* v0) + void glVertexAttribI3uiv (GLuint index, const GLuint* v0) + void glVertexAttribI4uiv (GLuint index, const GLuint* v0) + void glVertexAttribI4bv (GLuint index, const GLbyte* v0) + void glVertexAttribI4sv (GLuint index, const GLshort* v0) + void glVertexAttribI4ubv (GLuint index, const GLubyte* v0) + void glVertexAttribI4usv (GLuint index, const GLushort* v0) + void glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void*pointer) + void glGetVertexAttribIiv (GLuint index, GLenum pname, GLint* params) + void glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint* params) + void glGetUniformuiv (GLuint program, GLint location, GLuint* params) + void glBindFragDataLocation (GLuint program, GLuint colorNumber, const GLchar* name) + GLint glGetFragDataLocation (GLuint program, const GLchar* name) + void glUniform1ui (GLint location, GLuint v0) + void glUniform2ui (GLint location, GLuint v0, GLuint v1) + void glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2) + void glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) + void glUniform1uiv (GLint location, GLsizei count, const GLuint* value) + void glUniform2uiv (GLint location, GLsizei count, const GLuint* value) + void glUniform3uiv (GLint location, GLsizei count, const GLuint* value) + void glUniform4uiv (GLint location, GLsizei count, const GLuint* value) + void glTexParameterIiv (GLenum target, GLenum pname, const GLint* params) + void glTexParameterIuiv (GLenum target, GLenum pname, const GLuint* params) + void glGetTexParameterIiv (GLenum target, GLenum pname, GLint* params) + void glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint* params) + void glClearBufferiv (GLenum buffer, GLint drawBuffer, const GLint* value) + void glClearBufferuiv (GLenum buffer, GLint drawBuffer, const GLuint* value) + void glClearBufferfv (GLenum buffer, GLint drawBuffer, const GLfloat* value) + void glClearBufferfi (GLenum buffer, GLint drawBuffer, GLfloat depth, GLint stencil) + const GLubyte* glGetStringi (GLenum name, GLuint index) diff --git a/auto/core/gl/GL_VERSION_3_1 b/auto/core/gl/GL_VERSION_3_1 index cf8f22b..a829a77 100644 --- a/auto/core/gl/GL_VERSION_3_1 +++ b/auto/core/gl/GL_VERSION_3_1 @@ -1,5 +1,5 @@ GL_VERSION_3_1 -http://www.opengl.org/registry/doc/glspec30.20080811.pdf +https://www.opengl.org/registry/doc/glspec31.20090528.pdf GL_SAMPLER_2D_RECT 0x8B63 GL_SAMPLER_2D_RECT_SHADOW 0x8B64 @@ -35,7 +35,7 @@ http://www.opengl.org/registry/doc/glspec30.20080811.pdf GL_BUFFER_ACCESS_FLAGS 0x911F GL_BUFFER_MAP_LENGTH 0x9120 GL_BUFFER_MAP_OFFSET 0x9121 - void glDrawArraysInstanced (GLenum, GLint, GLsizei, GLsizei) - void glDrawElementsInstanced (GLenum, GLsizei, GLenum, const void*, GLsizei) - void glTexBuffer (GLenum, GLenum, GLuint) - void glPrimitiveRestartIndex (GLuint) + void glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei primcount) + void glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount) + void glTexBuffer (GLenum target, GLenum internalFormat, GLuint buffer) + void glPrimitiveRestartIndex (GLuint buffer) diff --git a/auto/core/gl/GL_VERSION_3_2 b/auto/core/gl/GL_VERSION_3_2 index 81ba55d..85cea08 100644 --- a/auto/core/gl/GL_VERSION_3_2 +++ b/auto/core/gl/GL_VERSION_3_2 @@ -1,5 +1,5 @@ GL_VERSION_3_2 -http://www.opengl.org/registry/doc/glspec32.core.20090803.pdf +https://www.opengl.org/registry/doc/glspec32.compatibility.20091207.pdf GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002 @@ -23,6 +23,6 @@ http://www.opengl.org/registry/doc/glspec32.core.20090803.pdf GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124 GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125 GL_CONTEXT_PROFILE_MASK 0x9126 - void glGetInteger64i_v (GLenum, GLuint, GLint64 *) - void glGetBufferParameteri64v (GLenum, GLenum, GLint64 *) - void glFramebufferTexture (GLenum, GLenum, GLuint, GLint) + void glGetInteger64i_v (GLenum pname, GLuint index, GLint64 * data) + void glGetBufferParameteri64v (GLenum target, GLenum value, GLint64 * data) + void glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level) diff --git a/auto/core/gl/GL_VERSION_3_3 b/auto/core/gl/GL_VERSION_3_3 index 1fbe90b..bbd6914 100644 --- a/auto/core/gl/GL_VERSION_3_3 +++ b/auto/core/gl/GL_VERSION_3_3 @@ -1,5 +1,5 @@ GL_VERSION_3_3 -http://www.opengl.org/registry/doc/glspec32.core.20090803.pdf +https://www.opengl.org/registry/doc/glspec33.compatibility.20100311.pdf GL_RGB10_A2UI 0x906F GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE diff --git a/auto/core/gl/GL_VERSION_4_0 b/auto/core/gl/GL_VERSION_4_0 index dc33f91..a3a0dc2 100644 --- a/auto/core/gl/GL_VERSION_4_0 +++ b/auto/core/gl/GL_VERSION_4_0 @@ -1,5 +1,5 @@ GL_VERSION_4_0 -http://www.opengl.org/registry/doc/glspec32.core.20090803.pdf +https://www.opengl.org/registry/doc/glspec40.compatibility.20100311.pdf GL_SAMPLE_SHADING 0x8C36 GL_MIN_SAMPLE_SHADING_VALUE 0x8C37 diff --git a/auto/core/gl/GL_VERSION_4_1 b/auto/core/gl/GL_VERSION_4_1 index 4c51e00..91da382 100644 --- a/auto/core/gl/GL_VERSION_4_1 +++ b/auto/core/gl/GL_VERSION_4_1 @@ -1,3 +1,2 @@ GL_VERSION_4_1 -http://www.opengl.org/registry/doc/glspec41.core.20100725.pdf - +https://www.opengl.org/registry/doc/glspec41.compatibility.20100725.pdf diff --git a/auto/core/gl/GL_VERSION_4_2 b/auto/core/gl/GL_VERSION_4_2 index 401fb63..fa75117 100644 --- a/auto/core/gl/GL_VERSION_4_2 +++ b/auto/core/gl/GL_VERSION_4_2 @@ -1,5 +1,5 @@ GL_VERSION_4_2 -http://www.opengl.org/registry/doc/glspec42.core.20110822.pdf +https://www.opengl.org/registry/doc/glspec42.compatibility.20120427.pdf GL_COMPRESSED_RGBA_BPTC_UNORM 0x8E8C GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8E8D diff --git a/auto/core/gl/GL_VERSION_4_3 b/auto/core/gl/GL_VERSION_4_3 index 333109f..dc2b408 100644 --- a/auto/core/gl/GL_VERSION_4_3 +++ b/auto/core/gl/GL_VERSION_4_3 @@ -1,5 +1,5 @@ GL_VERSION_4_3 -http://www.opengl.org/registry/ +https://www.opengl.org/registry/doc/glspec43.compatibility.20130214.pdf GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9 diff --git a/auto/core/gl/GL_VERSION_4_4 b/auto/core/gl/GL_VERSION_4_4 index 8cb83ca..959c146 100644 --- a/auto/core/gl/GL_VERSION_4_4 +++ b/auto/core/gl/GL_VERSION_4_4 @@ -1,5 +1,5 @@ GL_VERSION_4_4 -http://www.opengl.org/registry/ +https://www.opengl.org/registry/doc/glspec44.compatibility.pdf GL_MAX_VERTEX_ATTRIB_STRIDE 0x82E5 GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221 diff --git a/auto/core/gl/GL_VERSION_4_5 b/auto/core/gl/GL_VERSION_4_5 new file mode 100644 index 0000000..c51e936 --- /dev/null +++ b/auto/core/gl/GL_VERSION_4_5 @@ -0,0 +1,2 @@ +GL_VERSION_4_5 +https://www.opengl.org/registry/doc/glspec45.compatibility.pdf diff --git a/auto/doc/index.html b/auto/doc/index.html index 349bb0b..7181882 100644 --- a/auto/doc/index.html +++ b/auto/doc/index.html @@ -13,7 +13,7 @@ Mac OS X, FreeBSD, Irix, and Solaris. GLEW is distributed as source and precompiled binaries.
The latest release is -1.10.0[07-22-13]: +1.11.0[08-11-14]:

@@ -27,8 +27,8 @@ The latest release is Source -ZIP |  -TGZ +ZIP |  +TGZ @@ -36,7 +36,7 @@ The latest release is Binaries -Windows 32-bit and 64-bit |  +Windows 32-bit and 64-bit @@ -60,9 +60,9 @@ An up-to-date copy is also available using git Unsupported snapshots are also available:

Supported Extensions

@@ -77,6 +77,7 @@ The latest release contains support for OpenGL 4.4 and the following extensions:

News

@@ -492,13 +548,13 @@
  • Bug fixes: + @@ -526,7 +582,7 @@
  • Missing tokens in GL_VERSION_2_1
  • Missing functions in GL_VERSION_1_4
  • Incorrect parameter type for glXCopyContext - +
    @@ -548,7 +604,7 @@ corruption of their values
  • Incorrect function names in GL_EXT_gpu_program_parameters
  • Missing tokens in GL_EXT_framebuffer_multisample
  • GLEW_MX initialization problem for WGL_{ARB,EXT}_extensions_string - +
    @@ -796,7 +852,7 @@ corruption of their values @@ -625,7 +678,7 @@ width="88" height="32" border="0" alt="Support This Project"> -->
  • Missing tokens in GL_VERSION_2_1
  • Missing functions in GL_VERSION_1_4
  • Incorrect parameter type for glXCopyContext - +
    @@ -647,7 +700,7 @@ corruption of their values
  • Incorrect function names in GL_EXT_gpu_program_parameters
  • Missing tokens in GL_EXT_framebuffer_multisample
  • GLEW_MX initialization problem for WGL_{ARB,EXT}_extensions_string - +
    @@ -895,7 +948,7 @@ corruption of their values