Added GLFW_INCLUDE_ES3.

This commit is contained in:
Camilla Berglund 2013-02-14 19:28:59 +01:00
parent b48128f339
commit a933d8c109
2 changed files with 5 additions and 0 deletions

View File

@ -133,6 +133,9 @@ instead of the regular OpenGL header.
`GLFW_INCLUDE_ES2` makes the header include the OpenGL ES 2.0 `GLES2/gl2.h` `GLFW_INCLUDE_ES2` makes the header include the OpenGL ES 2.0 `GLES2/gl2.h`
header instead of the regular OpenGL header. header instead of the regular OpenGL header.
`GLFW_INCLUDE_ES3` makes the header include the OpenGL ES 3.0 `GLES3/gl3.h`
header instead of the regular OpenGL header.
`GLFW_INCLUDE_GLU` makes the header include the GLU header. This only makes `GLFW_INCLUDE_GLU` makes the header include the GLU header. This only makes
sense if you are using OpenGL. sense if you are using OpenGL.

View File

@ -193,6 +193,8 @@ extern "C" {
#include <GLES/gl.h> #include <GLES/gl.h>
#elif defined(GLFW_INCLUDE_ES2) #elif defined(GLFW_INCLUDE_ES2)
#include <GLES2/gl2.h> #include <GLES2/gl2.h>
#elif defined(GLFW_INCLUDE_ES3)
#include <GLES3/gl3.h>
#else #else
#include <GL/gl.h> #include <GL/gl.h>
#endif #endif