Added GLFW_INCLUDE_ES3.

master
Camilla Berglund ago%!(EXTRA string=12 years)
parent b48128f339
commit a933d8c109
  1. 3
      README.md
  2. 2
      include/GL/glfw3.h

@ -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`
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
sense if you are using OpenGL.

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

Loading…
Cancel
Save