29 #ifndef _glfw3_native_h_ 30 #define _glfw3_native_h_ 75 #if defined(GLFW_EXPOSE_NATIVE_WIN32) 81 #elif defined(GLFW_EXPOSE_NATIVE_COCOA) 82 #include <ApplicationServices/ApplicationServices.h> 84 #import <Cocoa/Cocoa.h> 88 #elif defined(GLFW_EXPOSE_NATIVE_X11) 90 #include <X11/extensions/Xrandr.h> 91 #elif defined(GLFW_EXPOSE_NATIVE_WAYLAND) 92 #include <wayland-client.h> 93 #elif defined(GLFW_EXPOSE_NATIVE_MIR) 94 #include <mir_toolkit/mir_client_library.h> 96 #error "No window API selected" 99 #if defined(GLFW_EXPOSE_NATIVE_WGL) 101 #elif defined(GLFW_EXPOSE_NATIVE_NSGL) 103 #elif defined(GLFW_EXPOSE_NATIVE_GLX) 105 #elif defined(GLFW_EXPOSE_NATIVE_EGL) 108 #error "No context API selected" 116 #if defined(GLFW_EXPOSE_NATIVE_WIN32) 165 #if defined(GLFW_EXPOSE_NATIVE_WGL) 182 #if defined(GLFW_EXPOSE_NATIVE_COCOA) 214 #if defined(GLFW_EXPOSE_NATIVE_NSGL) 231 #if defined(GLFW_EXPOSE_NATIVE_X11) 293 #if defined(GLFW_EXPOSE_NATIVE_GLX) 310 #if defined(GLFW_EXPOSE_NATIVE_WAYLAND) 324 GLFWAPI
struct wl_display* glfwGetWaylandDisplay(
void);
339 GLFWAPI
struct wl_output* glfwGetWaylandMonitor(
GLFWmonitor* monitor);
354 GLFWAPI
struct wl_surface* glfwGetWaylandWindow(
GLFWwindow* window);
357 #if defined(GLFW_EXPOSE_NATIVE_MIR) 371 GLFWAPI MirConnection* glfwGetMirDisplay(
void);
386 GLFWAPI
int glfwGetMirMonitor(
GLFWmonitor* monitor);
401 GLFWAPI MirSurface* glfwGetMirWindow(
GLFWwindow* window);
404 #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:732
struct GLFWwindow GLFWwindow
Opaque window object.
Definition: glfw3.h:740
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.