From 3fd17741bc0de05feb9699250bacb1e75c88a4f3 Mon Sep 17 00:00:00 2001
From: Camilla Berglund
Date: Thu, 19 Jul 2012 23:20:47 +0200
Subject: [PATCH] Added macro for including the GLES2 header.
---
include/GL/glfw3.h | 2 ++
readme.html | 1 +
2 files changed, 3 insertions(+)
diff --git a/include/GL/glfw3.h b/include/GL/glfw3.h
index 28e38bd1..2ff67627 100644
--- a/include/GL/glfw3.h
+++ b/include/GL/glfw3.h
@@ -161,6 +161,8 @@ extern "C" {
#else
#if defined(GLFW_INCLUDE_GL3)
#include
+ #elif defined(GLFW_INCLUDE_ES2)
+ #include
#else
#include
#endif
diff --git a/readme.html b/readme.html
index b854a59c..cdbb9885 100644
--- a/readme.html
+++ b/readme.html
@@ -284,6 +284,7 @@ version of GLFW.
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 GLFW_INCLUDE_ES2 macro for telling the GLFW header to include the OpenGL ES 2.0 header instead of gl.h
Added windows simple multi-window test program
Added sharing simple OpenGL object sharing test program
Added modes video mode enumeration and setting test program