glfw3native.h
Go to the documentation of this file.
00001 /*************************************************************************
00002  * GLFW 3.1 - www.glfw.org
00003  * A library for OpenGL, window and input
00004  *------------------------------------------------------------------------
00005  * Copyright (c) 2002-2006 Marcus Geelnard
00006  * Copyright (c) 2006-2010 Camilla Berglund <elmindreda@elmindreda.org>
00007  *
00008  * This software is provided 'as-is', without any express or implied
00009  * warranty. In no event will the authors be held liable for any damages
00010  * arising from the use of this software.
00011  *
00012  * Permission is granted to anyone to use this software for any purpose,
00013  * including commercial applications, and to alter it and redistribute it
00014  * freely, subject to the following restrictions:
00015  *
00016  * 1. The origin of this software must not be misrepresented; you must not
00017  *    claim that you wrote the original software. If you use this software
00018  *    in a product, an acknowledgment in the product documentation would
00019  *    be appreciated but is not required.
00020  *
00021  * 2. Altered source versions must be plainly marked as such, and must not
00022  *    be misrepresented as being the original software.
00023  *
00024  * 3. This notice may not be removed or altered from any source
00025  *    distribution.
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  * Doxygen documentation
00039  *************************************************************************/
00040 
00069 /*************************************************************************
00070  * System headers and types
00071  *************************************************************************/
00072 
00073 #if defined(GLFW_EXPOSE_NATIVE_WIN32)
00074  // This is a workaround for the fact that glfw3.h needs to export APIENTRY (for
00075  // example to allow applications to correctly declare a GL_ARB_debug_output
00076  // callback) but windows.h assumes no one will define APIENTRY before it does
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  /* WGL is declared by windows.h */
00095 #elif defined(GLFW_EXPOSE_NATIVE_NSGL)
00096  /* NSGL is declared by Cocoa.h */
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  * Functions
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 /* _glfw3_native_h_ */
00356 


librealsense
Author(s): Sergey Dorodnicov , Mark Horn , Reagan Lopez
autogenerated on Tue Jun 25 2019 19:54:39