@ -74,6 +74,16 @@ extern "C" {
* and which platform - specific headers to include . It is then up your ( by
* and which platform - specific headers to include . It is then up your ( by
* definition platform - specific ) code to handle which of these should be
* definition platform - specific ) code to handle which of these should be
* defined .
* defined .
*
* If you do not want the platform - specific headers to be included , define
* ` GLFW_NATIVE_INCLUDE_NONE ` before including the @ ref glfw3native . h header .
*
* @ code
* # define GLFW_EXPOSE_NATIVE_WIN32
* # define GLFW_EXPOSE_NATIVE_WGL
* # define GLFW_NATIVE_INCLUDE_NONE
* # include < GLFW / glfw3native . h >
* @ endcode
*/
*/
@ -81,6 +91,8 @@ extern "C" {
* System headers and types
* System headers and types
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
# if !defined(GLFW_NATIVE_INCLUDE_NONE)
# if defined(GLFW_EXPOSE_NATIVE_WIN32) || defined(GLFW_EXPOSE_NATIVE_WGL)
# if defined(GLFW_EXPOSE_NATIVE_WIN32) || defined(GLFW_EXPOSE_NATIVE_WGL)
/* This is a workaround for the fact that glfw3.h needs to export APIENTRY (for
/* This is a workaround for the fact that glfw3.h needs to export APIENTRY (for
* example to allow applications to correctly declare a GL_KHR_debug callback )
* example to allow applications to correctly declare a GL_KHR_debug callback )
@ -137,6 +149,8 @@ extern "C" {
# include <GL/osmesa.h>
# include <GL/osmesa.h>
# endif
# endif
# endif /*GLFW_NATIVE_INCLUDE_NONE*/
/*************************************************************************
/*************************************************************************
* Functions
* Functions