Added separate platform headers for EGL and GLX.

This commit is contained in:
Camilla Berglund
2012-07-19 23:01:51 +02:00
parent f004aa0f82
commit be12cbca15
6 changed files with 143 additions and 290 deletions
+1 -8
View File
@@ -71,19 +71,12 @@ typedef struct _GLFWlibrary _GLFWlibrary;
#include "../include/GL/glfw3.h"
// This path may need to be changed if you build GLFW using your own setup
// We ship and use our own copy of glext.h since GLFW uses fairly new
// extensions and not all operating systems come with an up-to-date version
#include "../support/GL/glext.h"
#if defined(_GLFW_COCOA_NSGL)
#include "cocoa_platform.h"
#elif defined(_GLFW_WIN32_WGL)
#include "win32_platform.h"
#elif defined(_GLFW_X11_GLX)
#elif defined(_GLFW_X11_GLX) || defined(_GLFW_X11_EGL)
#include "x11_platform.h"
#elif defined(_GLFW_X11_EGL)
#include "x11_egl_platform.h"
#else
#error "No supported platform selected"
#endif