Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef _glfw3_native_h_
00030 #define _glfw3_native_h_
00031
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035
00036
00037
00038
00039
00040
00069
00070
00071
00072
00073 #if defined(GLFW_EXPOSE_NATIVE_WIN32)
00074
00075
00076
00077 #undef APIENTRY
00078 #include <windows.h>
00079 #elif defined(GLFW_EXPOSE_NATIVE_COCOA)
00080 #include <ApplicationServices/ApplicationServices.h>
00081 #if defined(__OBJC__)
00082 #import <Cocoa/Cocoa.h>
00083 #else
00084 typedef void* id;
00085 #endif
00086 #elif defined(GLFW_EXPOSE_NATIVE_X11)
00087 #include <X11/Xlib.h>
00088 #include <X11/extensions/Xrandr.h>
00089 #else
00090 #error "No window API selected"
00091 #endif
00092
00093 #if defined(GLFW_EXPOSE_NATIVE_WGL)
00094
00095 #elif defined(GLFW_EXPOSE_NATIVE_NSGL)
00096
00097 #elif defined(GLFW_EXPOSE_NATIVE_GLX)
00098 #include <GL/glx.h>
00099 #elif defined(GLFW_EXPOSE_NATIVE_EGL)
00100 #include <EGL/egl.h>
00101 #else
00102 #error "No context API selected"
00103 #endif
00104
00105
00106
00107
00108
00109
00110 #if defined(GLFW_EXPOSE_NATIVE_WIN32)
00111
00125 GLFWAPI const char* glfwGetWin32Adapter(GLFWmonitor* monitor);
00126
00141 GLFWAPI const char* glfwGetWin32Monitor(GLFWmonitor* monitor);
00142
00156 GLFWAPI HWND glfwGetWin32Window(GLFWwindow* window);
00157 #endif
00158
00159 #if defined(GLFW_EXPOSE_NATIVE_WGL)
00160
00173 GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* window);
00174 #endif
00175
00176 #if defined(GLFW_EXPOSE_NATIVE_COCOA)
00177
00190 GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* monitor);
00191
00205 GLFWAPI id glfwGetCocoaWindow(GLFWwindow* window);
00206 #endif
00207
00208 #if defined(GLFW_EXPOSE_NATIVE_NSGL)
00209
00222 GLFWAPI id glfwGetNSGLContext(GLFWwindow* window);
00223 #endif
00224
00225 #if defined(GLFW_EXPOSE_NATIVE_X11)
00226
00239 GLFWAPI Display* glfwGetX11Display(void);
00240
00254 GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* monitor);
00255
00269 GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* monitor);
00270
00284 GLFWAPI Window glfwGetX11Window(GLFWwindow* window);
00285 #endif
00286
00287 #if defined(GLFW_EXPOSE_NATIVE_GLX)
00288
00301 GLFWAPI GLXContext glfwGetGLXContext(GLFWwindow* window);
00302 #endif
00303
00304 #if defined(GLFW_EXPOSE_NATIVE_EGL)
00305
00318 GLFWAPI EGLDisplay glfwGetEGLDisplay(void);
00319
00333 GLFWAPI EGLContext glfwGetEGLContext(GLFWwindow* window);
00334
00348 GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* window);
00349 #endif
00350
00351 #ifdef __cplusplus
00352 }
00353 #endif
00354
00355 #endif
00356