diff --git a/Makefile b/Makefile index 1da7eac..e5222f9 100644 --- a/Makefile +++ b/Makefile @@ -236,6 +236,7 @@ install.include: $(INSTALL) -m 0644 include/GL/wglew.h "$(DESTDIR)$(INCDIR)/" $(INSTALL) -m 0644 include/GL/glew.h "$(DESTDIR)$(INCDIR)/" $(INSTALL) -m 0644 include/GL/glxew.h "$(DESTDIR)$(INCDIR)/" + $(INSTALL) -m 0644 include/GL/eglew.h "$(DESTDIR)$(INCDIR)/" install.pkgconfig: glew.pc $(INSTALL) -d -m 0755 "$(DESTDIR)$(PKGDIR)" diff --git a/README.md b/README.md index bfec306..977f335 100644 --- a/README.md +++ b/README.md @@ -39,22 +39,20 @@ https://github.com/nigels-com/glew ## Downloads -Current release is [2.1.0](https://sourceforge.net/projects/glew/files/glew/2.1.0/). +Current release is [2.2.0](https://github.com/nigels-com/glew/releases/tag/glew-2.2.0). [(Change Log)](http://glew.sourceforge.net/log.html) Sources available as -[ZIP](https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0.zip/download) or -[TGZ](https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0.tgz/download). +[ZIP](https://github.com/nigels-com/glew/releases/download/glew-2.2.0/glew-2.2.0.zip) or +[TGZ](https://github.com/nigels-com/glew/releases/download/glew-2.2.0/glew-2.2.0.tgz). -Windows binaries for [32-bit and 64-bit](https://sourceforge.net/projects/glew/files/glew/2.1.0/glew-2.1.0-win32.zip/download). +Windows binaries for [32-bit and 64-bit](https://github.com/nigels-com/glew/releases/download/glew-2.2.0/glew-2.2.0-win32.zip). ### Recent snapshots Snapshots may contain new features, bug-fixes or new OpenGL extensions ahead of tested, official releases. -[glew-20200115.tgz](https://sourceforge.net/projects/glew/files/glew/snapshots/glew-20200115.tgz/download) *GLEW 2.2.0 RC3: fixes* - -[glew-20190928.tgz](https://sourceforge.net/projects/glew/files/glew/snapshots/glew-20190928.tgz/download) *GLEW 2.2.0 RC2: New extensions, bug fixes* + ## Build diff --git a/auto/bin/parse_xml.py b/auto/bin/parse_xml.py index 2bcefc9..28ecb9f 100755 --- a/auto/bin/parse_xml.py +++ b/auto/bin/parse_xml.py @@ -43,12 +43,7 @@ def findParams(node): return ( t, n.strip()) def findEnums(dom): - ret = {} - for i in findChildren(dom, [ 'registry', 'enums', 'enum' ]): - n = i.getAttribute('name') - v = i.getAttribute('value') - ret[n] = v - return ret + return {i.getAttribute('name'): i.getAttribute('value') for i in findChildren(dom, [ 'registry', 'enums', 'enum' ])} def findCommands(dom): ret = {} @@ -62,12 +57,8 @@ def findFeatures(dom): ret = {} for i in findChildren(dom, [ 'registry', 'feature' ]): n = i.getAttribute('name') - e = [] - c = [] - for j in findChildren(i, [ 'require', 'enum' ]): - e.append(j.getAttribute("name")) - for j in findChildren(i, [ 'require', 'command' ]): - c.append(j.getAttribute("name")) + e = [j.getAttribute("name") for j in findChildren(i, [ 'require', 'enum' ])] + c = [j.getAttribute("name") for j in findChildren(i, [ 'require', 'command' ])] ret[n] = (e,c) return ret @@ -75,12 +66,8 @@ def findExtensions(dom): ret = {} for i in findChildren(dom, [ 'registry', 'extensions', 'extension' ]): n = i.getAttribute('name') - e = [] - c = [] - for j in findChildren(i, [ 'require', 'enum' ]): - e.append(j.getAttribute("name")) - for j in findChildren(i, [ 'require', 'command' ]): - c.append(j.getAttribute("name")) + e = [j.getAttribute("name") for j in findChildren(i, [ 'require', 'enum' ])] + c = [j.getAttribute("name") for j in findChildren(i, [ 'require', 'command' ])] ret[n] = (e,c) return ret @@ -148,13 +135,11 @@ if __name__ == '__main__': if len(options['core']): for i in api[2].keys(): - f = open('%s/%s'%(options['core'], i), 'wb') - writeExtension(f, i, api[2][i], api[0], api[1]) - f.close() + with open(os.path.join(options['core'], i), 'wb') as f: + writeExtension(f, i, api[2][i], api[0], api[1]) if len(options['extensions']): for i in api[3].keys(): - f = open('%s/%s'%(options['extensions'], i), 'wb') - writeExtension(f, i, api[3][i], api[0], api[1]) - f.close() + with open(os.path.join(options['extensions'], i), 'wb') as f: + writeExtension(f, i, api[3][i], api[0], api[1]) diff --git a/auto/doc/index.html b/auto/doc/index.html index c8a3e90..e569e75 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 -2.2.0[03-15-20]: +2.2.0[03-15-20]:

@@ -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 @@ -65,9 +65,9 @@ The latest release contains support for OpenGL 4.6, compatibility and forward-co

News