|
|
|
@ -139,25 +139,7 @@ extern "C" { |
|
|
|
|
|
|
|
|
|
/* Include the chosen client API headers.
|
|
|
|
|
*/ |
|
|
|
|
#if defined(__APPLE__) |
|
|
|
|
#if defined(GLFW_INCLUDE_GLCOREARB) |
|
|
|
|
#include <OpenGL/gl3.h> |
|
|
|
|
#if defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|
#include <OpenGL/gl3ext.h> |
|
|
|
|
#endif |
|
|
|
|
#elif !defined(GLFW_INCLUDE_NONE) |
|
|
|
|
#if !defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|
#define GL_GLEXT_LEGACY |
|
|
|
|
#endif |
|
|
|
|
#include <OpenGL/gl.h> |
|
|
|
|
#endif |
|
|
|
|
#if defined(GLFW_INCLUDE_GLU) |
|
|
|
|
#include <OpenGL/glu.h> |
|
|
|
|
#endif |
|
|
|
|
#else |
|
|
|
|
#if defined(GLFW_INCLUDE_GLCOREARB) |
|
|
|
|
#include <GL/glcorearb.h> |
|
|
|
|
#elif defined(GLFW_INCLUDE_ES1) |
|
|
|
|
#if defined(GLFW_INCLUDE_ES1) |
|
|
|
|
#include <GLES/gl.h> |
|
|
|
|
#if defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|
#include <GLES/glext.h> |
|
|
|
@ -182,6 +164,24 @@ extern "C" { |
|
|
|
|
#if defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|
#include <GLES2/gl2ext.h> |
|
|
|
|
#endif |
|
|
|
|
#elif defined(__APPLE__) |
|
|
|
|
#if defined(GLFW_INCLUDE_GLCOREARB) |
|
|
|
|
#include <OpenGL/gl3.h> |
|
|
|
|
#if defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|
#include <OpenGL/gl3ext.h> |
|
|
|
|
#endif |
|
|
|
|
#elif !defined(GLFW_INCLUDE_NONE) |
|
|
|
|
#if !defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|
#define GL_GLEXT_LEGACY |
|
|
|
|
#endif |
|
|
|
|
#include <OpenGL/gl.h> |
|
|
|
|
#endif |
|
|
|
|
#if defined(GLFW_INCLUDE_GLU) |
|
|
|
|
#include <OpenGL/glu.h> |
|
|
|
|
#endif |
|
|
|
|
#else |
|
|
|
|
#if defined(GLFW_INCLUDE_GLCOREARB) |
|
|
|
|
#include <GL/glcorearb.h> |
|
|
|
|
#elif !defined(GLFW_INCLUDE_NONE) |
|
|
|
|
#include <GL/gl.h> |
|
|
|
|
#if defined(GLFW_INCLUDE_GLEXT) |
|
|
|
|