29#ifndef _glfw3_native_h_
30#define _glfw3_native_h_
84#if defined(GLFW_EXPOSE_NATIVE_WIN32) || defined(GLFW_EXPOSE_NATIVE_WGL)
88 #if defined(GLFW_APIENTRY_DEFINED)
90 #undef GLFW_APIENTRY_DEFINED
98#elif defined(GLFW_EXPOSE_NATIVE_COCOA) || defined(GLFW_EXPOSE_NATIVE_NSGL)
100 #import <Cocoa/Cocoa.h>
102 #include <ApplicationServices/ApplicationServices.h>
105#elif defined(GLFW_EXPOSE_NATIVE_X11) || defined(GLFW_EXPOSE_NATIVE_GLX)
106 #include <X11/Xlib.h>
107 #include <X11/extensions/Xrandr.h>
108#elif defined(GLFW_EXPOSE_NATIVE_WAYLAND)
109 #include <wayland-client.h>
112#if defined(GLFW_EXPOSE_NATIVE_WGL)
115#if defined(GLFW_EXPOSE_NATIVE_NSGL)
118#if defined(GLFW_EXPOSE_NATIVE_GLX)
121#if defined(GLFW_EXPOSE_NATIVE_EGL)
124#if defined(GLFW_EXPOSE_NATIVE_OSMESA)
125 #include <GL/osmesa.h>
133#if defined(GLFW_EXPOSE_NATIVE_WIN32)
179#if defined(GLFW_EXPOSE_NATIVE_WGL)
195#if defined(GLFW_EXPOSE_NATIVE_COCOA)
225#if defined(GLFW_EXPOSE_NATIVE_NSGL)
241#if defined(GLFW_EXPOSE_NATIVE_X11)
349#if defined(GLFW_EXPOSE_NATIVE_GLX)
379#if defined(GLFW_EXPOSE_NATIVE_WAYLAND)
423#if defined(GLFW_EXPOSE_NATIVE_EGL)
467#if defined(GLFW_EXPOSE_NATIVE_OSMESA)
GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor *handle)
GLFWAPI id glfwGetCocoaWindow(GLFWwindow *handle)
GLFWAPI EGLDisplay glfwGetEGLDisplay(void)
GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow *handle)
GLFWAPI EGLContext glfwGetEGLContext(GLFWwindow *handle)
GLFWAPI GLXContext glfwGetGLXContext(GLFWwindow *handle)
GLFWAPI GLXWindow glfwGetGLXWindow(GLFWwindow *handle)
struct __GLXcontext * GLXContext
struct GLFWmonitor GLFWmonitor
Opaque monitor object.
struct GLFWwindow GLFWwindow
Opaque window object.
GLFWAPI id glfwGetNSGLContext(GLFWwindow *handle)
GLFWAPI int glfwGetOSMesaDepthBuffer(GLFWwindow *handle, int *width, int *height, int *bytesPerValue, void **buffer)
GLFWAPI int glfwGetOSMesaColorBuffer(GLFWwindow *handle, int *width, int *height, int *format, void **buffer)
GLFWAPI OSMesaContext glfwGetOSMesaContext(GLFWwindow *handle)
GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow *handle)
GLFWAPI const char * glfwGetWin32Adapter(GLFWmonitor *handle)
GLFWAPI const char * glfwGetWin32Monitor(GLFWmonitor *handle)
GLFWAPI HWND glfwGetWin32Window(GLFWwindow *handle)
GLFWAPI struct wl_output * glfwGetWaylandMonitor(GLFWmonitor *handle)
GLFWAPI struct wl_surface * glfwGetWaylandWindow(GLFWwindow *handle)
GLFWAPI struct wl_display * glfwGetWaylandDisplay(void)
GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor *handle)
GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor *handle)
GLFWAPI Display * glfwGetX11Display(void)
GLFWAPI void glfwSetX11SelectionString(const char *string)
GLFWAPI Window glfwGetX11Window(GLFWwindow *handle)
GLFWAPI const char * glfwGetX11SelectionString(void)