|
|
|
@ -146,8 +146,13 @@ extern "C" { |
|
|
|
|
#if defined(__APPLE_CC__) |
|
|
|
|
#if defined(GLFW_INCLUDE_GLCOREARB) |
|
|
|
|
#include <OpenGL/gl3.h> |
|
|
|
|
#if defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|
#include <OpenGL/gl3ext.h> |
|
|
|
|
#endif |
|
|
|
|
#elif !defined(GLFW_INCLUDE_NONE) |
|
|
|
|
#define GL_GLEXT_LEGACY |
|
|
|
|
#if !defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|
#define GL_GLEXT_LEGACY |
|
|
|
|
#endif |
|
|
|
|
#include <OpenGL/gl.h> |
|
|
|
|
#endif |
|
|
|
|
#if defined(GLFW_INCLUDE_GLU) |
|
|
|
@ -158,14 +163,29 @@ extern "C" { |
|
|
|
|
#include <GL/glcorearb.h> |
|
|
|
|
#elif defined(GLFW_INCLUDE_ES1) |
|
|
|
|
#include <GLES/gl.h> |
|
|
|
|
#if defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|
#include <GLES/glext.h> |
|
|
|
|
#endif |
|
|
|
|
#elif defined(GLFW_INCLUDE_ES2) |
|
|
|
|
#include <GLES2/gl2.h> |
|
|
|
|
#if defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|
#include <GLES2/gl2ext.h> |
|
|
|
|
#endif |
|
|
|
|
#elif defined(GLFW_INCLUDE_ES3) |
|
|
|
|
#include <GLES3/gl3.h> |
|
|
|
|
#if defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|
#include <GLES3/gl2ext.h> |
|
|
|
|
#endif |
|
|
|
|
#elif defined(GLFW_INCLUDE_ES31) |
|
|
|
|
#include <GLES3/gl31.h> |
|
|
|
|
#if defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|
#include <GLES3/gl2ext.h> |
|
|
|
|
#endif |
|
|
|
|
#elif !defined(GLFW_INCLUDE_NONE) |
|
|
|
|
#include <GL/gl.h> |
|
|
|
|
#if defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|
#include <GL/glext.h> |
|
|
|
|
#endif |
|
|
|
|
#endif |
|
|
|
|
#if defined(GLFW_INCLUDE_GLU) |
|
|
|
|
#include <GL/glu.h> |
|
|
|
|