From d88789e5e36914fd401c8a6701c270e0f8d7ee25 Mon Sep 17 00:00:00 2001
From: Camilla Berglund
Date: Fri, 16 Sep 2011 04:44:40 +0200
Subject: [PATCH] Added GLFW_INCLUDE_GL3 macro.
---
include/GL/glfw3.h | 26 +++++++++++++++++---------
readme.html | 1 +
2 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/include/GL/glfw3.h b/include/GL/glfw3.h
index d583c364..2271fc3f 100644
--- a/include/GL/glfw3.h
+++ b/include/GL/glfw3.h
@@ -158,16 +158,24 @@ extern "C" {
* (which is not a nice solution for portable programs).
*/
#if defined(__APPLE_CC__)
- #define GL_GLEXT_LEGACY
- #include
- #ifndef GLFW_NO_GLU
- #include
- #endif
+ #if defined(GLFW_INCLUDE_GL3)
+ #include
+ #else
+ #define GL_GLEXT_LEGACY
+ #include
+ #endif
+ #ifndef GLFW_NO_GLU
+ #include
+ #endif
#else
- #include
- #ifndef GLFW_NO_GLU
- #include
- #endif
+ #if defined(GLFW_INCLUDE_GL3)
+ #include
+ #else
+ #include
+ #endif
+ #ifndef GLFW_NO_GLU
+ #include
+ #endif
#endif
diff --git a/readme.html b/readme.html
index f93c0dda..b933810a 100644
--- a/readme.html
+++ b/readme.html
@@ -278,6 +278,7 @@ version of GLFW.
Added GLFW_OPENGL_ES2_PROFILE
profile for creating OpenGL ES 2.0 contexts using the GLX_EXT_create_context_es2_profile
and WGL_EXT_create_context_es2_profile
extensions
Added GLFW_OPENGL_ROBUSTNESS
window hint and associated strategy tokens for GL_ARB_robustness
support
Added GLFW_OPENGL_REVISION
window parameter to make up for removal of glfwGetGLVersion
+ Added GLFW_INCLUDE_GL3
macro for telling the GLFW header to include gl3.h
header instead of gl.h
Added windows
simple multi-window test program
Added sharing
simple OpenGL object sharing test program
Added a parameter to glfwOpenWindow
for specifying a context the new window's context will share objects with