mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Added separate platform headers for EGL and GLX.
This commit is contained in:
+1
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user