#ifndef GLAD_GLX_H_
#define GLAD_GLX_H_
#ifdef GLX_H
#error GLX header already included (API: glx), remove previous include!
#endif
#define GLX_H …
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <glad/gl.h>
#define GLAD_GLX
#define GLAD_OPTION_GLX_LOADER
#ifdef __cplusplus
extern "C" {
#endif
#ifndef GLAD_PLATFORM_H_
#define GLAD_PLATFORM_H_
#ifndef GLAD_PLATFORM_WIN32
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__)
#define GLAD_PLATFORM_WIN32 …
#else
#define GLAD_PLATFORM_WIN32 …
#endif
#endif
#ifndef GLAD_PLATFORM_APPLE
#ifdef __APPLE__
#define GLAD_PLATFORM_APPLE …
#else
#define GLAD_PLATFORM_APPLE …
#endif
#endif
#ifndef GLAD_PLATFORM_EMSCRIPTEN
#ifdef __EMSCRIPTEN__
#define GLAD_PLATFORM_EMSCRIPTEN …
#else
#define GLAD_PLATFORM_EMSCRIPTEN …
#endif
#endif
#ifndef GLAD_PLATFORM_UWP
#if defined(_MSC_VER) && !defined(GLAD_INTERNAL_HAVE_WINAPIFAMILY)
#ifdef __has_include
#if __has_include(<winapifamily.h>)
#define GLAD_INTERNAL_HAVE_WINAPIFAMILY …
#endif
#elif _MSC_VER >= 1700 && !_USING_V110_SDK71_
#define GLAD_INTERNAL_HAVE_WINAPIFAMILY …
#endif
#endif
#ifdef GLAD_INTERNAL_HAVE_WINAPIFAMILY
#include <winapifamily.h>
#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
#define GLAD_PLATFORM_UWP …
#endif
#endif
#ifndef GLAD_PLATFORM_UWP
#define GLAD_PLATFORM_UWP …
#endif
#endif
#ifdef __GNUC__
#define GLAD_GNUC_EXTENSION …
#else
#define GLAD_GNUC_EXTENSION
#endif
#define GLAD_UNUSED …
#ifndef GLAD_API_CALL
#if defined(GLAD_API_CALL_EXPORT)
#if GLAD_PLATFORM_WIN32 || defined(__CYGWIN__)
#if defined(GLAD_API_CALL_EXPORT_BUILD)
#if defined(__GNUC__)
#define GLAD_API_CALL …
#else
#define GLAD_API_CALL …
#endif
#else
#if defined(__GNUC__)
#define GLAD_API_CALL …
#else
#define GLAD_API_CALL …
#endif
#endif
#elif defined(__GNUC__) && defined(GLAD_API_CALL_EXPORT_BUILD)
#define GLAD_API_CALL …
#else
#define GLAD_API_CALL …
#endif
#else
#define GLAD_API_CALL …
#endif
#endif
#ifdef APIENTRY
#define GLAD_API_PTR …
#elif GLAD_PLATFORM_WIN32
#define GLAD_API_PTR …
#else
#define GLAD_API_PTR
#endif
#ifndef GLAPI
#define GLAPI …
#endif
#ifndef GLAPIENTRY
#define GLAPIENTRY …
#endif
#define GLAD_MAKE_VERSION …
#define GLAD_VERSION_MAJOR …
#define GLAD_VERSION_MINOR …
#define GLAD_GENERATOR_VERSION …
typedef void (*GLADapiproc)(void);
typedef GLADapiproc (*GLADloadfunc)(const char *name);
typedef GLADapiproc (*GLADuserptrloadfunc)(void *userptr, const char *name);
typedef void (*GLADprecallback)(const char *name, GLADapiproc apiproc, int len_args, ...);
typedef void (*GLADpostcallback)(void *ret, const char *name, GLADapiproc apiproc, int len_args, ...);
#endif
#define GLX_ACCUM_ALPHA_SIZE …
#define GLX_ACCUM_BLUE_SIZE …
#define GLX_ACCUM_BUFFER_BIT …
#define GLX_ACCUM_GREEN_SIZE …
#define GLX_ACCUM_RED_SIZE …
#define GLX_ALPHA_SIZE …
#define GLX_AUX_BUFFERS …
#define GLX_AUX_BUFFERS_BIT …
#define GLX_BACK_LEFT_BUFFER_BIT …
#define GLX_BACK_RIGHT_BUFFER_BIT …
#define GLX_BAD_ATTRIBUTE …
#define GLX_BAD_CONTEXT …
#define GLX_BAD_ENUM …
#define GLX_BAD_SCREEN …
#define GLX_BAD_VALUE …
#define GLX_BAD_VISUAL …
#define GLX_BLUE_SIZE …
#define GLX_BUFFER_SIZE …
#define GLX_BufferSwapComplete …
#define GLX_COLOR_INDEX_BIT …
#define GLX_COLOR_INDEX_TYPE …
#define GLX_CONFIG_CAVEAT …
#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB …
#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB …
#define GLX_CONTEXT_DEBUG_BIT_ARB …
#define GLX_CONTEXT_FLAGS_ARB …
#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB …
#define GLX_CONTEXT_MAJOR_VERSION_ARB …
#define GLX_CONTEXT_MINOR_VERSION_ARB …
#define GLX_CONTEXT_PROFILE_MASK_ARB …
#define GLX_DAMAGED …
#define GLX_DEPTH_BUFFER_BIT …
#define GLX_DEPTH_SIZE …
#define GLX_DIRECT_COLOR …
#define GLX_DONT_CARE …
#define GLX_DOUBLEBUFFER …
#define GLX_DRAWABLE_TYPE …
#define GLX_EVENT_MASK …
#define GLX_EXTENSIONS …
#define GLX_EXTENSION_NAME …
#define GLX_FBCONFIG_ID …
#define GLX_FRONT_LEFT_BUFFER_BIT …
#define GLX_FRONT_RIGHT_BUFFER_BIT …
#define GLX_GRAY_SCALE …
#define GLX_GREEN_SIZE …
#define GLX_HEIGHT …
#define GLX_LARGEST_PBUFFER …
#define GLX_LEVEL …
#define GLX_MAX_PBUFFER_HEIGHT …
#define GLX_MAX_PBUFFER_PIXELS …
#define GLX_MAX_PBUFFER_WIDTH …
#define GLX_MAX_SWAP_INTERVAL_EXT …
#define GLX_NONE …
#define GLX_NON_CONFORMANT_CONFIG …
#define GLX_NO_EXTENSION …
#define GLX_PBUFFER …
#define GLX_PBUFFER_BIT …
#define GLX_PBUFFER_CLOBBER_MASK …
#define GLX_PBUFFER_HEIGHT …
#define GLX_PBUFFER_WIDTH …
#define GLX_PIXMAP_BIT …
#define GLX_PRESERVED_CONTENTS …
#define GLX_PSEUDO_COLOR …
#define GLX_PbufferClobber …
#define GLX_RED_SIZE …
#define GLX_RENDER_TYPE …
#define GLX_RGBA …
#define GLX_RGBA_BIT …
#define GLX_RGBA_TYPE …
#define GLX_SAMPLES …
#define GLX_SAMPLE_BUFFERS …
#define GLX_SAVED …
#define GLX_SCREEN …
#define GLX_SLOW_CONFIG …
#define GLX_STATIC_COLOR …
#define GLX_STATIC_GRAY …
#define GLX_STENCIL_BUFFER_BIT …
#define GLX_STENCIL_SIZE …
#define GLX_STEREO …
#define GLX_SWAP_INTERVAL_EXT …
#define GLX_TRANSPARENT_ALPHA_VALUE …
#define GLX_TRANSPARENT_BLUE_VALUE …
#define GLX_TRANSPARENT_GREEN_VALUE …
#define GLX_TRANSPARENT_INDEX …
#define GLX_TRANSPARENT_INDEX_VALUE …
#define GLX_TRANSPARENT_RED_VALUE …
#define GLX_TRANSPARENT_RGB …
#define GLX_TRANSPARENT_TYPE …
#define GLX_TRUE_COLOR …
#define GLX_USE_GL …
#define GLX_VENDOR …
#define GLX_VERSION …
#define GLX_VISUAL_ID …
#define GLX_WIDTH …
#define GLX_WINDOW …
#define GLX_WINDOW_BIT …
#define GLX_X_RENDERABLE …
#define GLX_X_VISUAL_TYPE …
#define __GLX_NUMBER_EVENTS …
#ifndef GLEXT_64_TYPES_DEFINED
#define GLEXT_64_TYPES_DEFINED
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#include <inttypes.h>
#elif defined(__sun__) || defined(__digital__)
#include <inttypes.h>
#if defined(__STDC__)
#if defined(__arch64__) || defined(_LP64)
typedef long int int64_t;
typedef unsigned long int uint64_t;
#else
typedef long long int int64_t;
typedef unsigned long long int uint64_t;
#endif
#endif
#elif defined( __VMS ) || defined(__sgi)
#include <inttypes.h>
#elif defined(__SCO__) || defined(__USLC__)
#include <stdint.h>
#elif defined(__UNIXOS2__) || defined(__SOL64__)
typedef long int int32_t;
typedef long long int int64_t;
typedef unsigned long long int uint64_t;
#elif defined(_WIN32) && defined(__GNUC__)
#include <stdint.h>
#elif defined(_WIN32)
typedef __int32 int32_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else
#include <inttypes.h>
#endif
#endif
#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060)
#else
#endif
#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060)
#else
#endif
GLXFBConfigID;
GLXFBConfig;
GLXContextID;
GLXContext;
GLXPixmap;
GLXDrawable;
GLXWindow;
GLXPbuffer;
__GLXextFuncPtr;
GLXVideoCaptureDeviceNV;
GLXVideoDeviceNV;
GLXVideoSourceSGIX;
GLXFBConfigIDSGIX;
GLXFBConfigSGIX;
GLXPbufferSGIX;
GLXPbufferClobberEvent;
GLXBufferSwapComplete;
GLXEvent;
GLXStereoNotifyEventEXT;
GLXBufferClobberEventSGIX;
GLXHyperpipeNetworkSGIX;
GLXHyperpipeConfigSGIX;
GLXPipeRect;
GLXPipeRectLimits;
#define GLX_VERSION_1_0 …
GLAD_API_CALL int GLAD_GLX_VERSION_1_0;
#define GLX_VERSION_1_1 …
GLAD_API_CALL int GLAD_GLX_VERSION_1_1;
#define GLX_VERSION_1_2 …
GLAD_API_CALL int GLAD_GLX_VERSION_1_2;
#define GLX_VERSION_1_3 …
GLAD_API_CALL int GLAD_GLX_VERSION_1_3;
#define GLX_VERSION_1_4 …
GLAD_API_CALL int GLAD_GLX_VERSION_1_4;
#define GLX_ARB_create_context …
GLAD_API_CALL int GLAD_GLX_ARB_create_context;
#define GLX_ARB_create_context_profile …
GLAD_API_CALL int GLAD_GLX_ARB_create_context_profile;
#define GLX_ARB_get_proc_address …
GLAD_API_CALL int GLAD_GLX_ARB_get_proc_address;
#define GLX_EXT_swap_control …
GLAD_API_CALL int GLAD_GLX_EXT_swap_control;
#define GLX_MESA_swap_control …
GLAD_API_CALL int GLAD_GLX_MESA_swap_control;
#define GLX_SGI_swap_control …
GLAD_API_CALL int GLAD_GLX_SGI_swap_control;
PFNGLXCHOOSEFBCONFIGPROC;
PFNGLXCHOOSEVISUALPROC;
PFNGLXCOPYCONTEXTPROC;
PFNGLXCREATECONTEXTPROC;
PFNGLXCREATECONTEXTATTRIBSARBPROC;
PFNGLXCREATEGLXPIXMAPPROC;
PFNGLXCREATENEWCONTEXTPROC;
PFNGLXCREATEPBUFFERPROC;
PFNGLXCREATEPIXMAPPROC;
PFNGLXCREATEWINDOWPROC;
PFNGLXDESTROYCONTEXTPROC;
PFNGLXDESTROYGLXPIXMAPPROC;
PFNGLXDESTROYPBUFFERPROC;
PFNGLXDESTROYPIXMAPPROC;
PFNGLXDESTROYWINDOWPROC;
PFNGLXGETCLIENTSTRINGPROC;
PFNGLXGETCONFIGPROC;
PFNGLXGETCURRENTCONTEXTPROC;
PFNGLXGETCURRENTDISPLAYPROC;
PFNGLXGETCURRENTDRAWABLEPROC;
PFNGLXGETCURRENTREADDRAWABLEPROC;
PFNGLXGETFBCONFIGATTRIBPROC;
PFNGLXGETFBCONFIGSPROC;
PFNGLXGETPROCADDRESSPROC;
PFNGLXGETPROCADDRESSARBPROC;
PFNGLXGETSELECTEDEVENTPROC;
PFNGLXGETSWAPINTERVALMESAPROC;
PFNGLXGETVISUALFROMFBCONFIGPROC;
PFNGLXISDIRECTPROC;
PFNGLXMAKECONTEXTCURRENTPROC;
PFNGLXMAKECURRENTPROC;
PFNGLXQUERYCONTEXTPROC;
PFNGLXQUERYDRAWABLEPROC;
PFNGLXQUERYEXTENSIONPROC;
PFNGLXQUERYEXTENSIONSSTRINGPROC;
PFNGLXQUERYSERVERSTRINGPROC;
PFNGLXQUERYVERSIONPROC;
PFNGLXSELECTEVENTPROC;
PFNGLXSWAPBUFFERSPROC;
PFNGLXSWAPINTERVALEXTPROC;
PFNGLXSWAPINTERVALMESAPROC;
PFNGLXSWAPINTERVALSGIPROC;
PFNGLXUSEXFONTPROC;
PFNGLXWAITGLPROC;
PFNGLXWAITXPROC;
GLAD_API_CALL PFNGLXCHOOSEFBCONFIGPROC glad_glXChooseFBConfig;
#define glXChooseFBConfig …
GLAD_API_CALL PFNGLXCHOOSEVISUALPROC glad_glXChooseVisual;
#define glXChooseVisual …
GLAD_API_CALL PFNGLXCOPYCONTEXTPROC glad_glXCopyContext;
#define glXCopyContext …
GLAD_API_CALL PFNGLXCREATECONTEXTPROC glad_glXCreateContext;
#define glXCreateContext …
GLAD_API_CALL PFNGLXCREATECONTEXTATTRIBSARBPROC glad_glXCreateContextAttribsARB;
#define glXCreateContextAttribsARB …
GLAD_API_CALL PFNGLXCREATEGLXPIXMAPPROC glad_glXCreateGLXPixmap;
#define glXCreateGLXPixmap …
GLAD_API_CALL PFNGLXCREATENEWCONTEXTPROC glad_glXCreateNewContext;
#define glXCreateNewContext …
GLAD_API_CALL PFNGLXCREATEPBUFFERPROC glad_glXCreatePbuffer;
#define glXCreatePbuffer …
GLAD_API_CALL PFNGLXCREATEPIXMAPPROC glad_glXCreatePixmap;
#define glXCreatePixmap …
GLAD_API_CALL PFNGLXCREATEWINDOWPROC glad_glXCreateWindow;
#define glXCreateWindow …
GLAD_API_CALL PFNGLXDESTROYCONTEXTPROC glad_glXDestroyContext;
#define glXDestroyContext …
GLAD_API_CALL PFNGLXDESTROYGLXPIXMAPPROC glad_glXDestroyGLXPixmap;
#define glXDestroyGLXPixmap …
GLAD_API_CALL PFNGLXDESTROYPBUFFERPROC glad_glXDestroyPbuffer;
#define glXDestroyPbuffer …
GLAD_API_CALL PFNGLXDESTROYPIXMAPPROC glad_glXDestroyPixmap;
#define glXDestroyPixmap …
GLAD_API_CALL PFNGLXDESTROYWINDOWPROC glad_glXDestroyWindow;
#define glXDestroyWindow …
GLAD_API_CALL PFNGLXGETCLIENTSTRINGPROC glad_glXGetClientString;
#define glXGetClientString …
GLAD_API_CALL PFNGLXGETCONFIGPROC glad_glXGetConfig;
#define glXGetConfig …
GLAD_API_CALL PFNGLXGETCURRENTCONTEXTPROC glad_glXGetCurrentContext;
#define glXGetCurrentContext …
GLAD_API_CALL PFNGLXGETCURRENTDISPLAYPROC glad_glXGetCurrentDisplay;
#define glXGetCurrentDisplay …
GLAD_API_CALL PFNGLXGETCURRENTDRAWABLEPROC glad_glXGetCurrentDrawable;
#define glXGetCurrentDrawable …
GLAD_API_CALL PFNGLXGETCURRENTREADDRAWABLEPROC glad_glXGetCurrentReadDrawable;
#define glXGetCurrentReadDrawable …
GLAD_API_CALL PFNGLXGETFBCONFIGATTRIBPROC glad_glXGetFBConfigAttrib;
#define glXGetFBConfigAttrib …
GLAD_API_CALL PFNGLXGETFBCONFIGSPROC glad_glXGetFBConfigs;
#define glXGetFBConfigs …
GLAD_API_CALL PFNGLXGETPROCADDRESSPROC glad_glXGetProcAddress;
#define glXGetProcAddress …
GLAD_API_CALL PFNGLXGETPROCADDRESSARBPROC glad_glXGetProcAddressARB;
#define glXGetProcAddressARB …
GLAD_API_CALL PFNGLXGETSELECTEDEVENTPROC glad_glXGetSelectedEvent;
#define glXGetSelectedEvent …
GLAD_API_CALL PFNGLXGETSWAPINTERVALMESAPROC glad_glXGetSwapIntervalMESA;
#define glXGetSwapIntervalMESA …
GLAD_API_CALL PFNGLXGETVISUALFROMFBCONFIGPROC glad_glXGetVisualFromFBConfig;
#define glXGetVisualFromFBConfig …
GLAD_API_CALL PFNGLXISDIRECTPROC glad_glXIsDirect;
#define glXIsDirect …
GLAD_API_CALL PFNGLXMAKECONTEXTCURRENTPROC glad_glXMakeContextCurrent;
#define glXMakeContextCurrent …
GLAD_API_CALL PFNGLXMAKECURRENTPROC glad_glXMakeCurrent;
#define glXMakeCurrent …
GLAD_API_CALL PFNGLXQUERYCONTEXTPROC glad_glXQueryContext;
#define glXQueryContext …
GLAD_API_CALL PFNGLXQUERYDRAWABLEPROC glad_glXQueryDrawable;
#define glXQueryDrawable …
GLAD_API_CALL PFNGLXQUERYEXTENSIONPROC glad_glXQueryExtension;
#define glXQueryExtension …
GLAD_API_CALL PFNGLXQUERYEXTENSIONSSTRINGPROC glad_glXQueryExtensionsString;
#define glXQueryExtensionsString …
GLAD_API_CALL PFNGLXQUERYSERVERSTRINGPROC glad_glXQueryServerString;
#define glXQueryServerString …
GLAD_API_CALL PFNGLXQUERYVERSIONPROC glad_glXQueryVersion;
#define glXQueryVersion …
GLAD_API_CALL PFNGLXSELECTEVENTPROC glad_glXSelectEvent;
#define glXSelectEvent …
GLAD_API_CALL PFNGLXSWAPBUFFERSPROC glad_glXSwapBuffers;
#define glXSwapBuffers …
GLAD_API_CALL PFNGLXSWAPINTERVALEXTPROC glad_glXSwapIntervalEXT;
#define glXSwapIntervalEXT …
GLAD_API_CALL PFNGLXSWAPINTERVALMESAPROC glad_glXSwapIntervalMESA;
#define glXSwapIntervalMESA …
GLAD_API_CALL PFNGLXSWAPINTERVALSGIPROC glad_glXSwapIntervalSGI;
#define glXSwapIntervalSGI …
GLAD_API_CALL PFNGLXUSEXFONTPROC glad_glXUseXFont;
#define glXUseXFont …
GLAD_API_CALL PFNGLXWAITGLPROC glad_glXWaitGL;
#define glXWaitGL …
GLAD_API_CALL PFNGLXWAITXPROC glad_glXWaitX;
#define glXWaitX …
GLAD_API_CALL int gladLoadGLXUserPtr(Display *display, int screen, GLADuserptrloadfunc load, void *userptr);
GLAD_API_CALL int gladLoadGLX(Display *display, int screen, GLADloadfunc load);
#ifdef GLAD_GLX
GLAD_API_CALL int gladLoaderLoadGLX(Display *display, int screen);
GLAD_API_CALL void gladLoaderUnloadGLX(void);
#endif
#ifdef __cplusplus
}
#endif
#endif