29 #ifndef _glfw3_native_h_ 30 #define _glfw3_native_h_ 73 #if defined(GLFW_EXPOSE_NATIVE_WIN32) 75 #elif defined(GLFW_EXPOSE_NATIVE_COCOA) 77 #import <Cocoa/Cocoa.h> 81 #elif defined(GLFW_EXPOSE_NATIVE_X11) 84 #error "No window API specified" 87 #if defined(GLFW_EXPOSE_NATIVE_WGL) 89 #elif defined(GLFW_EXPOSE_NATIVE_NSGL) 91 #elif defined(GLFW_EXPOSE_NATIVE_GLX) 93 #elif defined(GLFW_EXPOSE_NATIVE_EGL) 96 #error "No context API specified" 104 #if defined(GLFW_EXPOSE_NATIVE_WIN32) 112 #if defined(GLFW_EXPOSE_NATIVE_WGL) 120 #if defined(GLFW_EXPOSE_NATIVE_COCOA) 128 #if defined(GLFW_EXPOSE_NATIVE_NSGL) 136 #if defined(GLFW_EXPOSE_NATIVE_X11) 149 #if defined(GLFW_EXPOSE_NATIVE_GLX) 157 #if defined(GLFW_EXPOSE_NATIVE_EGL) HGLRC glfwGetWGLContext(GLFWwindow *window)
Returns the HGLRC of the specified window.
id glfwGetCocoaWindow(GLFWwindow *window)
Returns the NSWindow of the specified window.
EGLSurface glfwGetEGLSurface(GLFWwindow *window)
Returns the EGLSurface of the specified window.
HWND glfwGetWin32Window(GLFWwindow *window)
Returns the HWND of the specified window.
id glfwGetNSGLContext(GLFWwindow *window)
Returns the NSOpenGLContext of the specified window.
EGLDisplay glfwGetEGLDisplay(void)
Returns the EGLDisplay used by GLFW.
Window glfwGetX11Window(GLFWwindow *window)
Returns the Window of the specified window.
struct GLFWwindow GLFWwindow
Opaque window object.
Definition: glfw3.h:574
Display * glfwGetX11Display(void)
Returns the Display used by GLFW.
GLXContext glfwGetGLXContext(GLFWwindow *window)
Returns the GLXContext of the specified window.
EGLContext glfwGetEGLContext(GLFWwindow *window)
Returns the EGLContext of the specified window.