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
-- [03-15-20] GLEW 2.2.0 new extensions and minor bug fixes
-- [07-31-17] GLEW 2.1.0 adds support for OpenGL 4.6, new extensions and minor bug fixes
-- [07-24-16] GLEW 2.0.0 adds support for forward-compatible contexts, adds new extensions, OSMesa and EGL support, MX discontinued and minor bug fixes
+- [03-15-20] GLEW 2.2.0 new extensions and minor bug fixes
+- [07-31-17] GLEW 2.1.0 adds support for OpenGL 4.6, new extensions and minor bug fixes
+- [07-24-16] GLEW 2.0.0 adds support for forward-compatible contexts, adds new extensions, OSMesa and EGL support, MX discontinued and minor bug fixes
- [08-10-15] GLEW 1.13.0 adds support for new extensions, fixes minor bugs
- [26-01-15] GLEW 1.12.0 fixes minor bugs and adds new extensions
- [08-11-14] GLEW 1.11.0 adds support for OpenGL 4.5, new extensions
diff --git a/auto/src/eglew_head.h b/auto/src/eglew_head.h
index 51b1b46..121efaf 100644
--- a/auto/src/eglew_head.h
+++ b/auto/src/eglew_head.h
@@ -78,6 +78,11 @@ typedef khronos_stime_nanoseconds_t EGLnsecsANDROID;
struct EGLClientPixmapHI;
struct AHardwareBuffer;
+/* Wayland types for WL_bind_wayland_display purposes */
+struct wl_buffer;
+struct wl_display;
+struct wl_resource;
+
#define EGL_DONT_CARE ((EGLint)-1)
#define EGL_NO_CONTEXT ((EGLContext)0)
diff --git a/auto/src/header.html b/auto/src/header.html
index d204e24..3af7255 100644
--- a/auto/src/header.html
+++ b/auto/src/header.html
@@ -46,7 +46,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt
index 419c243..a401e03 100644
--- a/build/cmake/CMakeLists.txt
+++ b/build/cmake/CMakeLists.txt
@@ -87,9 +87,9 @@ endif ()
if (GLEW_EGL AND UNIX)
add_definitions (-DGLEW_EGL)
- if (OpenGL::EGL)
+ if (NOT OpenGL_EGL_FOUND)
message (FATAL_ERROR "EGL library set but not found.")
- endif()
+ endif ()
set (GLEW_LIBRARIES ${OPENGL_LIBRARIES} ${OPENGL_egl_LIBRARY})
endif ()
diff --git a/doc/advanced.html b/doc/advanced.html
index e74f2b6..b1ecc24 100644
--- a/doc/advanced.html
+++ b/doc/advanced.html
@@ -46,7 +46,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
|
diff --git a/doc/basic.html b/doc/basic.html
index 783ae7d..2372118 100644
--- a/doc/basic.html
+++ b/doc/basic.html
@@ -46,7 +46,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
|
diff --git a/doc/build.html b/doc/build.html
index 8cf30a1..491c521 100644
--- a/doc/build.html
+++ b/doc/build.html
@@ -46,7 +46,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
|
diff --git a/doc/credits.html b/doc/credits.html
index d66835c..0f5c18e 100644
--- a/doc/credits.html
+++ b/doc/credits.html
@@ -46,7 +46,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
|
diff --git a/doc/glew.html b/doc/glew.html
index 55f02cf..5b5e84b 100644
--- a/doc/glew.html
+++ b/doc/glew.html
@@ -46,7 +46,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
|
diff --git a/doc/glxew.html b/doc/glxew.html
index d8061bb..6054051 100644
--- a/doc/glxew.html
+++ b/doc/glxew.html
@@ -46,7 +46,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
|
diff --git a/doc/index.html b/doc/index.html
index c8fb66d..78ce7a1 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -46,7 +46,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -111,7 +109,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]:
@@ -125,8 +123,8 @@ The latest release is
| Source |
|
-ZIP |
-TGZ |
+ZIP |
+TGZ
|
@@ -134,7 +132,7 @@ The latest release is
Binaries |
|
-Windows 32-bit and 64-bit
+Windows 32-bit and 64-bit
|
|
@@ -163,9 +161,9 @@ The latest release contains support for OpenGL 4.6, compatibility and forward-co
News
-- [03-15-20] GLEW 2.2.0 new extensions and minor bug fixes
-- [07-31-17] GLEW 2.1.0 adds support for OpenGL 4.6, new extensions and minor bug fixes
-- [07-24-16] GLEW 2.0.0 adds support for forward-compatible contexts, adds new extensions, OSMesa and EGL support, MX discontinued and minor bug fixes
+- [03-15-20] GLEW 2.2.0 new extensions and minor bug fixes
+- [07-31-17] GLEW 2.1.0 adds support for OpenGL 4.6, new extensions and minor bug fixes
+- [07-24-16] GLEW 2.0.0 adds support for forward-compatible contexts, adds new extensions, OSMesa and EGL support, MX discontinued and minor bug fixes
- [08-10-15] GLEW 1.13.0 adds support for new extensions, fixes minor bugs
- [26-01-15] GLEW 1.12.0 fixes minor bugs and adds new extensions
- [08-11-14] GLEW 1.11.0 adds support for OpenGL 4.5, new extensions
diff --git a/doc/install.html b/doc/install.html
index 3c4993e..0fe901a 100644
--- a/doc/install.html
+++ b/doc/install.html
@@ -46,7 +46,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/doc/log.html b/doc/log.html
index c5f8ab7..89fb44e 100644
--- a/doc/log.html
+++ b/doc/log.html
@@ -46,7 +46,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
|
diff --git a/doc/wglew.html b/doc/wglew.html
index 7b4db0a..1826b01 100644
--- a/doc/wglew.html
+++ b/doc/wglew.html
@@ -46,7 +46,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
|
|