Added GLFW_INCLUDE_ES31.

Fixes #255.
This commit is contained in:
Camilla Berglund 2014-03-19 23:01:20 +01:00
parent 8ebd135536
commit 7ebd10a868
2 changed files with 5 additions and 2 deletions

View File

@ -47,11 +47,12 @@ The following dependencies are needed by the examples and test programs:
- Added native monitor handle access to native API - Added native monitor handle access to native API
- Added `glfwSetDropCallback` and `GLFWdropfun` for receiving dropped files - Added `glfwSetDropCallback` and `GLFWdropfun` for receiving dropped files
- Added `glfwPostEmptyEvent` for allowing secondary threads to cause
- Added `empty` test program for verifying posting of empty events - Added `empty` test program for verifying posting of empty events
- Added `GLFW_INCLUDE_ES31` for including the OpenGL ES 3.1 header
- Bugfix: The debug context attribute was set from `GL_ARB_debug_output` even - Bugfix: The debug context attribute was set from `GL_ARB_debug_output` even
when a debug context had not been requested when a debug context had not been requested
- Bugfix: The particles example was not linked against the threading library - Bugfix: The particles example was not linked against the threading library
- Added `glfwPostEmptyEvent` for allowing secondary threads to cause
`glfwWaitEvents` to return `glfwWaitEvents` to return
- [Cocoa] Added `_GLFW_USE_RETINA` to control whether windows will use the full - [Cocoa] Added `_GLFW_USE_RETINA` to control whether windows will use the full
resolution on Retina displays resolution on Retina displays

View File

@ -158,6 +158,8 @@ extern "C" {
#include <GLES2/gl2.h> #include <GLES2/gl2.h>
#elif defined(GLFW_INCLUDE_ES3) #elif defined(GLFW_INCLUDE_ES3)
#include <GLES3/gl3.h> #include <GLES3/gl3.h>
#elif defined(GLFW_INCLUDE_ES31)
#include <GLES3/gl31.h>
#elif !defined(GLFW_INCLUDE_NONE) #elif !defined(GLFW_INCLUDE_NONE)
#include <GL/gl.h> #include <GL/gl.h>
#endif #endif