29#ifndef _glfw3_native_h_ 
   30#define _glfw3_native_h_ 
   94#if !defined(GLFW_NATIVE_INCLUDE_NONE) 
   96 #if defined(GLFW_EXPOSE_NATIVE_WIN32) || defined(GLFW_EXPOSE_NATIVE_WGL) 
  101  #if defined(GLFW_APIENTRY_DEFINED) 
  103   #undef GLFW_APIENTRY_DEFINED 
  108 #if defined(GLFW_EXPOSE_NATIVE_COCOA) || defined(GLFW_EXPOSE_NATIVE_NSGL) 
  109  #if defined(__OBJC__) 
  110   #import <Cocoa/Cocoa.h> 
  112   #include <ApplicationServices/ApplicationServices.h> 
  113   #include <objc/objc.h> 
  117 #if defined(GLFW_EXPOSE_NATIVE_X11) || defined(GLFW_EXPOSE_NATIVE_GLX) 
  118  #include <X11/Xlib.h> 
  119  #include <X11/extensions/Xrandr.h> 
  122 #if defined(GLFW_EXPOSE_NATIVE_WAYLAND) 
  123  #include <wayland-client.h> 
  126 #if defined(GLFW_EXPOSE_NATIVE_WGL) 
  129 #if defined(GLFW_EXPOSE_NATIVE_NSGL) 
  132 #if defined(GLFW_EXPOSE_NATIVE_GLX) 
  137  #if defined(GLFW_GLAPIENTRY_DEFINED) 
  139   #undef GLFW_GLAPIENTRY_DEFINED 
  143 #if defined(GLFW_EXPOSE_NATIVE_EGL) 
  146 #if defined(GLFW_EXPOSE_NATIVE_OSMESA) 
  151  #if defined(GLFW_GLAPIENTRY_DEFINED) 
  153   #undef GLFW_GLAPIENTRY_DEFINED 
  155  #include <GL/osmesa.h> 
  165#if defined(GLFW_EXPOSE_NATIVE_WIN32) 
  228#if defined(GLFW_EXPOSE_NATIVE_WGL) 
  255#if defined(GLFW_EXPOSE_NATIVE_COCOA) 
  308#if defined(GLFW_EXPOSE_NATIVE_NSGL) 
  327#if defined(GLFW_EXPOSE_NATIVE_X11) 
  447#if defined(GLFW_EXPOSE_NATIVE_GLX) 
  483#if defined(GLFW_EXPOSE_NATIVE_WAYLAND) 
  536#if defined(GLFW_EXPOSE_NATIVE_EGL) 
  591#if defined(GLFW_EXPOSE_NATIVE_OSMESA) 
struct GLFWmonitor GLFWmonitor
Opaque monitor object.
Definition glfw3.h:1391
RRCrtc glfwGetX11Adapter(GLFWmonitor *monitor)
Returns the RRCrtc of the specified monitor.
EGLDisplay glfwGetEGLDisplay(void)
Returns the EGLDisplay used by GLFW.
GLXWindow glfwGetGLXWindow(GLFWwindow *window)
Returns the GLXWindow of the specified window.
EGLSurface glfwGetEGLSurface(GLFWwindow *window)
Returns the EGLSurface of the specified window.
int glfwGetOSMesaColorBuffer(GLFWwindow *window, int *width, int *height, int *format, void **buffer)
Retrieves the color buffer associated with the specified window.
struct wl_output * glfwGetWaylandMonitor(GLFWmonitor *monitor)
Returns the struct wl_output* of the specified monitor.
id glfwGetNSGLContext(GLFWwindow *window)
Returns the NSOpenGLContext of the specified window.
void glfwSetX11SelectionString(const char *string)
Sets the current primary selection to the specified string.
struct wl_surface * glfwGetWaylandWindow(GLFWwindow *window)
Returns the main struct wl_surface* of the specified window.
GLXContext glfwGetGLXContext(GLFWwindow *window)
Returns the GLXContext of the specified window.
EGLContext glfwGetEGLContext(GLFWwindow *window)
Returns the EGLContext of the specified window.
int glfwGetOSMesaDepthBuffer(GLFWwindow *window, int *width, int *height, int *bytesPerValue, void **buffer)
Retrieves the depth buffer associated with the specified window.
Display * glfwGetX11Display(void)
Returns the Display used by GLFW.
id glfwGetCocoaView(GLFWwindow *window)
Returns the NSView of the specified window.
Window glfwGetX11Window(GLFWwindow *window)
Returns the Window of the specified window.
OSMesaContext glfwGetOSMesaContext(GLFWwindow *window)
Returns the OSMesaContext of the specified window.
RROutput glfwGetX11Monitor(GLFWmonitor *monitor)
Returns the RROutput of the specified monitor.
id glfwGetCocoaWindow(GLFWwindow *window)
Returns the NSWindow of the specified window.
const char * glfwGetWin32Monitor(GLFWmonitor *monitor)
Returns the display device name of the specified monitor.
struct wl_display * glfwGetWaylandDisplay(void)
Returns the struct wl_display* used by GLFW.
const char * glfwGetWin32Adapter(GLFWmonitor *monitor)
Returns the adapter device name of the specified monitor.
HGLRC glfwGetWGLContext(GLFWwindow *window)
Returns the HGLRC of the specified window.
const char * glfwGetX11SelectionString(void)
Returns the contents of the current primary selection as a string.
CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor *monitor)
Returns the CGDirectDisplayID of the specified monitor.
HWND glfwGetWin32Window(GLFWwindow *window)
Returns the HWND of the specified window.
struct GLFWwindow GLFWwindow
Opaque window object.
Definition glfw3.h:1403