29 #ifndef _glfw3_native_h_
30 #define _glfw3_native_h_
73 #if defined(GLFW_EXPOSE_NATIVE_WIN32)
79 #elif defined(GLFW_EXPOSE_NATIVE_COCOA)
80 #include <ApplicationServices/ApplicationServices.h>
82 #import <Cocoa/Cocoa.h>
86 #elif defined(GLFW_EXPOSE_NATIVE_X11)
88 #include <X11/extensions/Xrandr.h>
90 #error "No window API selected"
93 #if defined(GLFW_EXPOSE_NATIVE_WGL)
95 #elif defined(GLFW_EXPOSE_NATIVE_NSGL)
97 #elif defined(GLFW_EXPOSE_NATIVE_GLX)
99 #elif defined(GLFW_EXPOSE_NATIVE_EGL)
102 #error "No context API selected"
110 #if defined(GLFW_EXPOSE_NATIVE_WIN32)
159 #if defined(GLFW_EXPOSE_NATIVE_WGL)
176 #if defined(GLFW_EXPOSE_NATIVE_COCOA)
208 #if defined(GLFW_EXPOSE_NATIVE_NSGL)
225 #if defined(GLFW_EXPOSE_NATIVE_X11)
287 #if defined(GLFW_EXPOSE_NATIVE_GLX)
304 #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.
const char * glfwGetWin32Monitor(GLFWmonitor *monitor)
Returns the display device name of the specified monitor.
CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor *monitor)
Returns the CGDirectDisplayID of the specified monitor.
RRCrtc glfwGetX11Adapter(GLFWmonitor *monitor)
Returns the RRCrtc of the specified monitor.
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 GLFWmonitor GLFWmonitor
Opaque monitor object.
Definition: glfw3.h:714
struct GLFWwindow GLFWwindow
Opaque window object.
Definition: glfw3.h:722
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.
const char * glfwGetWin32Adapter(GLFWmonitor *monitor)
Returns the adapter device name of the specified monitor.
RROutput glfwGetX11Monitor(GLFWmonitor *monitor)
Returns the RROutput of the specified monitor.