28 #if defined(_GLFW_USE_EGLPLATFORM_H) 29 #include <EGL/eglplatform.h> 30 #elif defined(_GLFW_WIN32) 31 #define EGLAPIENTRY __stdcall 32 typedef HDC EGLNativeDisplayType;
33 typedef HWND EGLNativeWindowType;
34 #elif defined(_GLFW_COCOA) 36 typedef void* EGLNativeDisplayType;
37 typedef id EGLNativeWindowType;
38 #elif defined(_GLFW_X11) 40 typedef Display* EGLNativeDisplayType;
41 typedef Window EGLNativeWindowType;
42 #elif defined(_GLFW_WAYLAND) 44 typedef struct wl_display* EGLNativeDisplayType;
45 typedef struct wl_egl_window* EGLNativeWindowType;
47 #error "No supported EGL platform selected" 50 #define EGL_SUCCESS 0x3000 51 #define EGL_NOT_INITIALIZED 0x3001 52 #define EGL_BAD_ACCESS 0x3002 53 #define EGL_BAD_ALLOC 0x3003 54 #define EGL_BAD_ATTRIBUTE 0x3004 55 #define EGL_BAD_CONFIG 0x3005 56 #define EGL_BAD_CONTEXT 0x3006 57 #define EGL_BAD_CURRENT_SURFACE 0x3007 58 #define EGL_BAD_DISPLAY 0x3008 59 #define EGL_BAD_MATCH 0x3009 60 #define EGL_BAD_NATIVE_PIXMAP 0x300a 61 #define EGL_BAD_NATIVE_WINDOW 0x300b 62 #define EGL_BAD_PARAMETER 0x300c 63 #define EGL_BAD_SURFACE 0x300d 64 #define EGL_CONTEXT_LOST 0x300e 65 #define EGL_COLOR_BUFFER_TYPE 0x303f 66 #define EGL_RGB_BUFFER 0x308e 67 #define EGL_SURFACE_TYPE 0x3033 68 #define EGL_WINDOW_BIT 0x0004 69 #define EGL_RENDERABLE_TYPE 0x3040 70 #define EGL_OPENGL_ES_BIT 0x0001 71 #define EGL_OPENGL_ES2_BIT 0x0004 72 #define EGL_OPENGL_BIT 0x0008 73 #define EGL_ALPHA_SIZE 0x3021 74 #define EGL_BLUE_SIZE 0x3022 75 #define EGL_GREEN_SIZE 0x3023 76 #define EGL_RED_SIZE 0x3024 77 #define EGL_DEPTH_SIZE 0x3025 78 #define EGL_STENCIL_SIZE 0x3026 79 #define EGL_SAMPLES 0x3031 80 #define EGL_OPENGL_ES_API 0x30a0 81 #define EGL_OPENGL_API 0x30a2 82 #define EGL_NONE 0x3038 83 #define EGL_EXTENSIONS 0x3055 84 #define EGL_CONTEXT_CLIENT_VERSION 0x3098 85 #define EGL_NATIVE_VISUAL_ID 0x302e 86 #define EGL_NO_SURFACE ((EGLSurface) 0) 87 #define EGL_NO_DISPLAY ((EGLDisplay) 0) 88 #define EGL_NO_CONTEXT ((EGLContext) 0) 89 #define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType) 0) 91 #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002 92 #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001 93 #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002 94 #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001 95 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31bd 96 #define EGL_NO_RESET_NOTIFICATION_KHR 0x31be 97 #define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31bf 98 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004 99 #define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098 100 #define EGL_CONTEXT_MINOR_VERSION_KHR 0x30fb 101 #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30fd 102 #define EGL_CONTEXT_FLAGS_KHR 0x30fc 103 #define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31b3 104 #define EGL_GL_COLORSPACE_KHR 0x309d 105 #define EGL_GL_COLORSPACE_SRGB_KHR 0x3089 106 #define EGL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x2097 107 #define EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR 0 108 #define EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x2098 135 #define eglGetConfigAttrib _glfw.egl.GetConfigAttrib 136 #define eglGetConfigs _glfw.egl.GetConfigs 137 #define eglGetDisplay _glfw.egl.GetDisplay 138 #define eglGetError _glfw.egl.GetError 139 #define eglInitialize _glfw.egl.Initialize 140 #define eglTerminate _glfw.egl.Terminate 141 #define eglBindAPI _glfw.egl.BindAPI 142 #define eglCreateContext _glfw.egl.CreateContext 143 #define eglDestroySurface _glfw.egl.DestroySurface 144 #define eglDestroyContext _glfw.egl.DestroyContext 145 #define eglCreateWindowSurface _glfw.egl.CreateWindowSurface 146 #define eglMakeCurrent _glfw.egl.MakeCurrent 147 #define eglSwapBuffers _glfw.egl.SwapBuffers 148 #define eglSwapInterval _glfw.egl.SwapInterval 149 #define eglQueryString _glfw.egl.QueryString 150 #define eglGetProcAddress _glfw.egl.GetProcAddress 152 #define _GLFW_EGL_CONTEXT_STATE _GLFWcontextEGL egl 153 #define _GLFW_EGL_LIBRARY_CONTEXT_STATE _GLFWlibraryEGL egl 209 #if defined(_GLFW_X11) 213 Visual** visual,
int*
depth);
EGLBoolean(EGLAPIENTRY * PFN_eglDestroySurface)(EGLDisplay, EGLSurface)
EGLBoolean(EGLAPIENTRY * PFN_eglBindAPI)(EGLenum)
struct _GLFWcontextEGL _GLFWcontextEGL
PFN_eglTerminate Terminate
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
PFN_eglGetDisplay GetDisplay
EGLBoolean(EGLAPIENTRY * PFN_eglMakeCurrent)(EGLDisplay, EGLSurface, EGLSurface, EGLContext)
EGLDisplay(EGLAPIENTRY * PFN_eglGetDisplay)(EGLNativeDisplayType)
GLFWbool _glfwInitEGL(void)
const char *(EGLAPIENTRY * PFN_eglQueryString)(EGLDisplay, EGLint)
GLFWbool _glfwCreateContextEGL(_GLFWwindow *window, const _GLFWctxconfig *ctxconfig, const _GLFWfbconfig *fbconfig)
PFN_eglCreateWindowSurface CreateWindowSurface
GLint GLint GLsizei GLsizei GLsizei depth
EGLBoolean(EGLAPIENTRY * PFN_eglGetConfigs)(EGLDisplay, EGLConfig *, EGLint, EGLint *)
void _glfwTerminateEGL(void)
EGLint(EGLAPIENTRY * PFN_eglGetError)(void)
PFN_eglGetConfigs GetConfigs
EGLBoolean(EGLAPIENTRY * PFN_eglTerminate)(EGLDisplay)
EGLBoolean(EGLAPIENTRY * PFN_eglDestroyContext)(EGLDisplay, EGLContext)
PFN_eglDestroyContext DestroyContext
PFN_eglMakeCurrent MakeCurrent
GLFWbool KHR_create_context_no_error
PFN_eglSwapBuffers SwapBuffers
PFN_eglQueryString QueryString
EGLBoolean(EGLAPIENTRY * PFN_eglSwapBuffers)(EGLDisplay, EGLSurface)
PFN_eglGetProcAddress GetProcAddress
GLFWbool KHR_context_flush_control
PFN_eglCreateContext CreateContext
PFN_eglGetConfigAttrib GetConfigAttrib
struct _GLFWlibraryEGL _GLFWlibraryEGL
GLFWbool KHR_create_context
GLFWglproc(EGLAPIENTRY * PFN_eglGetProcAddress)(const char *)
EGLBoolean(EGLAPIENTRY * PFN_eglSwapInterval)(EGLDisplay, EGLint)
EGLSurface(EGLAPIENTRY * PFN_eglCreateWindowSurface)(EGLDisplay, EGLConfig, EGLNativeWindowType, const EGLint *)
PFN_eglSwapInterval SwapInterval
GLFWbool KHR_get_all_proc_addresses
EGLBoolean(EGLAPIENTRY * PFN_eglInitialize)(EGLDisplay, EGLint *, EGLint *)
PFN_eglDestroySurface DestroySurface
EGLBoolean(EGLAPIENTRY * PFN_eglGetConfigAttrib)(EGLDisplay, EGLConfig, EGLint, EGLint *)
PFN_eglInitialize Initialize
GLFWbool KHR_gl_colorspace
EGLContext(EGLAPIENTRY * PFN_eglCreateContext)(EGLDisplay, EGLConfig, EGLContext, const EGLint *)