33 #error GLX header already included (API: glx), remove previous include!
50#ifndef GLAD_PLATFORM_H_
51#define GLAD_PLATFORM_H_
53#ifndef GLAD_PLATFORM_WIN32
54 #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__)
55 #define GLAD_PLATFORM_WIN32 1
57 #define GLAD_PLATFORM_WIN32 0
61#ifndef GLAD_PLATFORM_APPLE
63 #define GLAD_PLATFORM_APPLE 1
65 #define GLAD_PLATFORM_APPLE 0
69#ifndef GLAD_PLATFORM_EMSCRIPTEN
71 #define GLAD_PLATFORM_EMSCRIPTEN 1
73 #define GLAD_PLATFORM_EMSCRIPTEN 0
77#ifndef GLAD_PLATFORM_UWP
78 #if defined(_MSC_VER) && !defined(GLAD_INTERNAL_HAVE_WINAPIFAMILY)
80 #if __has_include(<winapifamily.h>)
81 #define GLAD_INTERNAL_HAVE_WINAPIFAMILY 1
83 #elif _MSC_VER >= 1700 && !_USING_V110_SDK71_
84 #define GLAD_INTERNAL_HAVE_WINAPIFAMILY 1
88 #ifdef GLAD_INTERNAL_HAVE_WINAPIFAMILY
89 #include <winapifamily.h>
90 #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
91 #define GLAD_PLATFORM_UWP 1
95 #ifndef GLAD_PLATFORM_UWP
96 #define GLAD_PLATFORM_UWP 0
101 #define GLAD_GNUC_EXTENSION __extension__
103 #define GLAD_GNUC_EXTENSION
106#define GLAD_UNUSED(x) (void)(x)
109 #if defined(GLAD_API_CALL_EXPORT)
110 #if GLAD_PLATFORM_WIN32 || defined(__CYGWIN__)
111 #if defined(GLAD_API_CALL_EXPORT_BUILD)
112 #if defined(__GNUC__)
113 #define GLAD_API_CALL __attribute__ ((dllexport)) extern
115 #define GLAD_API_CALL __declspec(dllexport) extern
118 #if defined(__GNUC__)
119 #define GLAD_API_CALL __attribute__ ((dllimport)) extern
121 #define GLAD_API_CALL __declspec(dllimport) extern
124 #elif defined(__GNUC__) && defined(GLAD_API_CALL_EXPORT_BUILD)
125 #define GLAD_API_CALL __attribute__ ((visibility ("default"))) extern
127 #define GLAD_API_CALL extern
130 #define GLAD_API_CALL extern
135 #define GLAD_API_PTR APIENTRY
136#elif GLAD_PLATFORM_WIN32
137 #define GLAD_API_PTR __stdcall
143#define GLAPI GLAD_API_CALL
147#define GLAPIENTRY GLAD_API_PTR
150#define GLAD_MAKE_VERSION(major, minor) (major * 10000 + minor)
151#define GLAD_VERSION_MAJOR(version) (version / 10000)
152#define GLAD_VERSION_MINOR(version) (version % 10000)
154#define GLAD_GENERATOR_VERSION "2.0.7"
166#define GLX_ACCUM_ALPHA_SIZE 17
167#define GLX_ACCUM_BLUE_SIZE 16
168#define GLX_ACCUM_BUFFER_BIT 0x00000080
169#define GLX_ACCUM_GREEN_SIZE 15
170#define GLX_ACCUM_RED_SIZE 14
171#define GLX_ALPHA_SIZE 11
172#define GLX_AUX_BUFFERS 7
173#define GLX_AUX_BUFFERS_BIT 0x00000010
174#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
175#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
176#define GLX_BAD_ATTRIBUTE 2
177#define GLX_BAD_CONTEXT 5
178#define GLX_BAD_ENUM 7
179#define GLX_BAD_SCREEN 1
180#define GLX_BAD_VALUE 6
181#define GLX_BAD_VISUAL 4
182#define GLX_BLUE_SIZE 10
183#define GLX_BUFFER_SIZE 2
184#define GLX_BufferSwapComplete 1
185#define GLX_COLOR_INDEX_BIT 0x00000002
186#define GLX_COLOR_INDEX_TYPE 0x8015
187#define GLX_CONFIG_CAVEAT 0x20
188#define GLX_DAMAGED 0x8020
189#define GLX_DEPTH_BUFFER_BIT 0x00000020
190#define GLX_DEPTH_SIZE 12
191#define GLX_DIRECT_COLOR 0x8003
192#define GLX_DONT_CARE 0xFFFFFFFF
193#define GLX_DOUBLEBUFFER 5
194#define GLX_DRAWABLE_TYPE 0x8010
195#define GLX_EVENT_MASK 0x801F
196#define GLX_EXTENSIONS 0x3
197#define GLX_EXTENSION_NAME "GLX"
198#define GLX_FBCONFIG_ID 0x8013
199#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
200#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
201#define GLX_GRAY_SCALE 0x8006
202#define GLX_GREEN_SIZE 9
203#define GLX_HEIGHT 0x801E
204#define GLX_LARGEST_PBUFFER 0x801C
206#define GLX_MAX_PBUFFER_HEIGHT 0x8017
207#define GLX_MAX_PBUFFER_PIXELS 0x8018
208#define GLX_MAX_PBUFFER_WIDTH 0x8016
209#define GLX_NONE 0x8000
210#define GLX_NON_CONFORMANT_CONFIG 0x800D
211#define GLX_NO_EXTENSION 3
212#define GLX_PBUFFER 0x8023
213#define GLX_PBUFFER_BIT 0x00000004
214#define GLX_PBUFFER_CLOBBER_MASK 0x08000000
215#define GLX_PBUFFER_HEIGHT 0x8040
216#define GLX_PBUFFER_WIDTH 0x8041
217#define GLX_PIXMAP_BIT 0x00000002
218#define GLX_PRESERVED_CONTENTS 0x801B
219#define GLX_PSEUDO_COLOR 0x8004
220#define GLX_PbufferClobber 0
221#define GLX_RED_SIZE 8
222#define GLX_RENDERER_ACCELERATED_MESA 0x8186
223#define GLX_RENDERER_DEVICE_ID_MESA 0x8184
224#define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B
225#define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A
226#define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D
227#define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C
228#define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189
229#define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188
230#define GLX_RENDERER_VENDOR_ID_MESA 0x8183
231#define GLX_RENDERER_VERSION_MESA 0x8185
232#define GLX_RENDERER_VIDEO_MEMORY_MESA 0x8187
233#define GLX_RENDER_TYPE 0x8011
235#define GLX_RGBA_BIT 0x00000001
236#define GLX_RGBA_TYPE 0x8014
237#define GLX_SAMPLES 100001
238#define GLX_SAMPLE_BUFFERS 100000
239#define GLX_SAVED 0x8021
240#define GLX_SCREEN 0x800C
241#define GLX_SLOW_CONFIG 0x8001
242#define GLX_STATIC_COLOR 0x8005
243#define GLX_STATIC_GRAY 0x8007
244#define GLX_STENCIL_BUFFER_BIT 0x00000040
245#define GLX_STENCIL_SIZE 13
247#define GLX_TRANSPARENT_ALPHA_VALUE 0x28
248#define GLX_TRANSPARENT_BLUE_VALUE 0x27
249#define GLX_TRANSPARENT_GREEN_VALUE 0x26
250#define GLX_TRANSPARENT_INDEX 0x8009
251#define GLX_TRANSPARENT_INDEX_VALUE 0x24
252#define GLX_TRANSPARENT_RED_VALUE 0x25
253#define GLX_TRANSPARENT_RGB 0x8008
254#define GLX_TRANSPARENT_TYPE 0x23
255#define GLX_TRUE_COLOR 0x8002
257#define GLX_VENDOR 0x1
258#define GLX_VERSION 0x2
259#define GLX_VISUAL_ID 0x800B
260#define GLX_WIDTH 0x801D
261#define GLX_WINDOW 0x8022
262#define GLX_WINDOW_BIT 0x00000001
263#define GLX_X_RENDERABLE 0x8012
264#define GLX_X_VISUAL_TYPE 0x22
265#define __GLX_NUMBER_EVENTS 17
268#ifndef GLEXT_64_TYPES_DEFINED
270#define GLEXT_64_TYPES_DEFINED
273#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
275#elif defined(__sun__) || defined(__digital__)
278#if defined(__arch64__) || defined(_LP64)
283typedef unsigned long long int uint64_t;
286#elif defined( __VMS ) || defined(__sgi)
288#elif defined(__SCO__) || defined(__USLC__)
290#elif defined(__UNIXOS2__) || defined(__SOL64__)
291typedef long int int32_t;
293typedef unsigned long long int uint64_t;
294#elif defined(_WIN32) && defined(__GNUC__)
297typedef __int32 int32_t;
322#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060)
328#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ > 1060)
428#define GLX_VERSION_1_0 1
430#define GLX_VERSION_1_1 1
432#define GLX_VERSION_1_2 1
434#define GLX_VERSION_1_3 1
436#define GLX_VERSION_1_4 1
438#define GLX_MESA_query_renderer 1
440#define GLX_SGI_swap_control 1
490#define glXChooseFBConfig glad_glXChooseFBConfig
492#define glXChooseVisual glad_glXChooseVisual
494#define glXCopyContext glad_glXCopyContext
496#define glXCreateContext glad_glXCreateContext
498#define glXCreateGLXPixmap glad_glXCreateGLXPixmap
500#define glXCreateNewContext glad_glXCreateNewContext
502#define glXCreatePbuffer glad_glXCreatePbuffer
504#define glXCreatePixmap glad_glXCreatePixmap
506#define glXCreateWindow glad_glXCreateWindow
508#define glXDestroyContext glad_glXDestroyContext
510#define glXDestroyGLXPixmap glad_glXDestroyGLXPixmap
512#define glXDestroyPbuffer glad_glXDestroyPbuffer
514#define glXDestroyPixmap glad_glXDestroyPixmap
516#define glXDestroyWindow glad_glXDestroyWindow
518#define glXGetClientString glad_glXGetClientString
520#define glXGetConfig glad_glXGetConfig
522#define glXGetCurrentContext glad_glXGetCurrentContext
524#define glXGetCurrentDisplay glad_glXGetCurrentDisplay
526#define glXGetCurrentDrawable glad_glXGetCurrentDrawable
528#define glXGetCurrentReadDrawable glad_glXGetCurrentReadDrawable
530#define glXGetFBConfigAttrib glad_glXGetFBConfigAttrib
532#define glXGetFBConfigs glad_glXGetFBConfigs
534#define glXGetProcAddress glad_glXGetProcAddress
536#define glXGetSelectedEvent glad_glXGetSelectedEvent
538#define glXGetVisualFromFBConfig glad_glXGetVisualFromFBConfig
540#define glXIsDirect glad_glXIsDirect
542#define glXMakeContextCurrent glad_glXMakeContextCurrent
544#define glXMakeCurrent glad_glXMakeCurrent
546#define glXQueryContext glad_glXQueryContext
548#define glXQueryCurrentRendererIntegerMESA glad_glXQueryCurrentRendererIntegerMESA
550#define glXQueryCurrentRendererStringMESA glad_glXQueryCurrentRendererStringMESA
552#define glXQueryDrawable glad_glXQueryDrawable
554#define glXQueryExtension glad_glXQueryExtension
556#define glXQueryExtensionsString glad_glXQueryExtensionsString
558#define glXQueryRendererIntegerMESA glad_glXQueryRendererIntegerMESA
560#define glXQueryRendererStringMESA glad_glXQueryRendererStringMESA
562#define glXQueryServerString glad_glXQueryServerString
564#define glXQueryVersion glad_glXQueryVersion
566#define glXSelectEvent glad_glXSelectEvent
568#define glXSwapBuffers glad_glXSwapBuffers
570#define glXSwapIntervalSGI glad_glXSwapIntervalSGI
572#define glXUseXFont glad_glXUseXFont
574#define glXWaitGL glad_glXWaitGL
576#define glXWaitX glad_glXWaitX
khronos_uint8_t GLubyte
Definition: gl.h:1750
const char *(GLAD_API_PTR * PFNGLXGETCLIENTSTRINGPROC)(Display *dpy, int name)
Definition: glx.h:458
GLAD_API_CALL PFNGLXUSEXFONTPROC glad_glXUseXFont
Definition: glx.h:571
GLADapiproc(* GLADuserptrloadfunc)(void *userptr, const char *name)
Definition: glx.h:159
GLAD_API_CALL PFNGLXGETFBCONFIGATTRIBPROC glad_glXGetFBConfigAttrib
Definition: glx.h:529
GLXFBConfig *(GLAD_API_PTR * PFNGLXGETFBCONFIGSPROC)(Display *dpy, int screen, int *nelements)
Definition: glx.h:465
GLAD_API_CALL PFNGLXCREATENEWCONTEXTPROC glad_glXCreateNewContext
Definition: glx.h:499
GLXFBConfig *(GLAD_API_PTR * PFNGLXCHOOSEFBCONFIGPROC)(Display *dpy, int screen, const int *attrib_list, int *nelements)
Definition: glx.h:444
XID GLXPbuffer
Definition: glx.h:347
GLXDrawable(GLAD_API_PTR * PFNGLXGETCURRENTREADDRAWABLEPROC)(void)
Definition: glx.h:463
int(GLAD_API_PTR * PFNGLXQUERYCONTEXTPROC)(Display *dpy, GLXContext ctx, int attribute, int *value)
Definition: glx.h:472
int(GLAD_API_PTR * PFNGLXGETFBCONFIGATTRIBPROC)(Display *dpy, GLXFBConfig config, int attribute, int *value)
Definition: glx.h:464
struct __GLXFBConfigRec * GLXFBConfig
Definition: glx.h:341
GLAD_API_CALL PFNGLXQUERYRENDERERSTRINGMESAPROC glad_glXQueryRendererStringMESA
Definition: glx.h:559
GLAD_API_CALL PFNGLXGETCURRENTREADDRAWABLEPROC glad_glXGetCurrentReadDrawable
Definition: glx.h:527
XID GLXContextID
Definition: glx.h:342
GLAD_API_CALL PFNGLXCHOOSEFBCONFIGPROC glad_glXChooseFBConfig
Definition: glx.h:489
Bool(GLAD_API_PTR * PFNGLXQUERYEXTENSIONPROC)(Display *dpy, int *errorb, int *event)
Definition: glx.h:476
GLAD_API_CALL PFNGLXMAKECONTEXTCURRENTPROC glad_glXMakeContextCurrent
Definition: glx.h:541
GLAD_API_CALL PFNGLXCREATEPBUFFERPROC glad_glXCreatePbuffer
Definition: glx.h:501
void(GLAD_API_PTR * PFNGLXDESTROYCONTEXTPROC)(Display *dpy, GLXContext ctx)
Definition: glx.h:453
Bool(GLAD_API_PTR * PFNGLXMAKECURRENTPROC)(Display *dpy, GLXDrawable drawable, GLXContext ctx)
Definition: glx.h:471
GLAD_API_CALL PFNGLXGETCURRENTDRAWABLEPROC glad_glXGetCurrentDrawable
Definition: glx.h:525
Bool(GLAD_API_PTR * PFNGLXQUERYRENDERERINTEGERMESAPROC)(Display *dpy, int screen, int renderer, int attribute, unsigned int *value)
Definition: glx.h:478
GLAD_API_CALL PFNGLXGETFBCONFIGSPROC glad_glXGetFBConfigs
Definition: glx.h:531
void(GLAD_API_PTR * PFNGLXDESTROYGLXPIXMAPPROC)(Display *dpy, GLXPixmap pixmap)
Definition: glx.h:454
GLAD_API_CALL int GLAD_GLX_VERSION_1_2
Definition: glx.h:433
XID GLXVideoCaptureDeviceNV
Definition: glx.h:349
GLAD_API_CALL PFNGLXWAITXPROC glad_glXWaitX
Definition: glx.h:575
void(* GLADpostcallback)(void *ret, const char *name, GLADapiproc apiproc, int len_args,...)
Definition: glx.h:162
void(GLAD_API_PTR * PFNGLXWAITGLPROC)(void)
Definition: glx.h:486
GLAD_API_CALL PFNGLXDESTROYGLXPIXMAPPROC glad_glXDestroyGLXPixmap
Definition: glx.h:509
void(GLAD_API_PTR * PFNGLXSWAPBUFFERSPROC)(Display *dpy, GLXDrawable drawable)
Definition: glx.h:483
void(* GLADapiproc)(void)
Definition: glx.h:156
XID GLXFBConfigID
Definition: glx.h:340
void(GLAD_API_PTR * PFNGLXSELECTEVENTPROC)(Display *dpy, GLXDrawable draw, unsigned long event_mask)
Definition: glx.h:482
GLAD_API_CALL int GLAD_GLX_VERSION_1_3
Definition: glx.h:435
__GLXextFuncPtr(GLAD_API_PTR * PFNGLXGETPROCADDRESSPROC)(const GLubyte *procName)
Definition: glx.h:466
GLAD_API_CALL PFNGLXGETCURRENTCONTEXTPROC glad_glXGetCurrentContext
Definition: glx.h:521
void(GLAD_API_PTR * PFNGLXWAITXPROC)(void)
Definition: glx.h:487
XVisualInfo *(GLAD_API_PTR * PFNGLXCHOOSEVISUALPROC)(Display *dpy, int screen, int *attribList)
Definition: glx.h:445
GLAD_API_CALL PFNGLXCREATEPIXMAPPROC glad_glXCreatePixmap
Definition: glx.h:503
GLAD_API_CALL PFNGLXDESTROYWINDOWPROC glad_glXDestroyWindow
Definition: glx.h:515
XID GLXFBConfigIDSGIX
Definition: glx.h:352
GLAD_API_CALL PFNGLXDESTROYPIXMAPPROC glad_glXDestroyPixmap
Definition: glx.h:513
GLAD_API_CALL PFNGLXSELECTEVENTPROC glad_glXSelectEvent
Definition: glx.h:565
void(GLAD_API_PTR * __GLXextFuncPtr)(void)
Definition: glx.h:348
XVisualInfo *(GLAD_API_PTR * PFNGLXGETVISUALFROMFBCONFIGPROC)(Display *dpy, GLXFBConfig config)
Definition: glx.h:468
GLAD_API_CALL PFNGLXQUERYVERSIONPROC glad_glXQueryVersion
Definition: glx.h:563
const char *(GLAD_API_PTR * PFNGLXQUERYEXTENSIONSSTRINGPROC)(Display *dpy, int screen)
Definition: glx.h:477
GLAD_API_CALL PFNGLXQUERYSERVERSTRINGPROC glad_glXQueryServerString
Definition: glx.h:561
GLAD_API_CALL PFNGLXDESTROYCONTEXTPROC glad_glXDestroyContext
Definition: glx.h:507
GLAD_API_CALL PFNGLXGETCURRENTDISPLAYPROC glad_glXGetCurrentDisplay
Definition: glx.h:523
XID GLXPixmap
Definition: glx.h:344
void(GLAD_API_PTR * PFNGLXDESTROYWINDOWPROC)(Display *dpy, GLXWindow win)
Definition: glx.h:457
GLAD_API_CALL PFNGLXWAITGLPROC glad_glXWaitGL
Definition: glx.h:573
GLAD_API_CALL int GLAD_GLX_VERSION_1_1
Definition: glx.h:431
GLXContext(GLAD_API_PTR * PFNGLXGETCURRENTCONTEXTPROC)(void)
Definition: glx.h:460
void(GLAD_API_PTR * PFNGLXUSEXFONTPROC)(Font font, int first, int count, int list)
Definition: glx.h:485
void(GLAD_API_PTR * PFNGLXQUERYDRAWABLEPROC)(Display *dpy, GLXDrawable draw, int attribute, unsigned int *value)
Definition: glx.h:475
GLAD_API_CALL PFNGLXCOPYCONTEXTPROC glad_glXCopyContext
Definition: glx.h:493
GLAD_API_CALL PFNGLXQUERYCONTEXTPROC glad_glXQueryContext
Definition: glx.h:545
GLAD_API_CALL PFNGLXCHOOSEVISUALPROC glad_glXChooseVisual
Definition: glx.h:491
XID GLXWindow
Definition: glx.h:346
int(GLAD_API_PTR * PFNGLXSWAPINTERVALSGIPROC)(int interval)
Definition: glx.h:484
GLAD_API_CALL int GLAD_GLX_SGI_swap_control
Definition: glx.h:441
GLXDrawable(GLAD_API_PTR * PFNGLXGETCURRENTDRAWABLEPROC)(void)
Definition: glx.h:462
GLAD_API_CALL PFNGLXCREATEWINDOWPROC glad_glXCreateWindow
Definition: glx.h:505
GLXWindow(GLAD_API_PTR * PFNGLXCREATEWINDOWPROC)(Display *dpy, GLXFBConfig config, Window win, const int *attrib_list)
Definition: glx.h:452
int(GLAD_API_PTR * PFNGLXGETCONFIGPROC)(Display *dpy, XVisualInfo *visual, int attrib, int *value)
Definition: glx.h:459
XID GLXDrawable
Definition: glx.h:345
GLAD_API_CALL PFNGLXQUERYEXTENSIONPROC glad_glXQueryExtension
Definition: glx.h:553
GLAD_API_CALL int gladLoadGLX(Display *display, int screen, GLADloadfunc load)
Definition: glx.cpp:240
Display *(GLAD_API_PTR * PFNGLXGETCURRENTDISPLAYPROC)(void)
Definition: glx.h:461
XID GLXVideoSourceSGIX
Definition: glx.h:351
GLAD_API_CALL PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC glad_glXQueryCurrentRendererIntegerMESA
Definition: glx.h:547
void(GLAD_API_PTR * PFNGLXCOPYCONTEXTPROC)(Display *dpy, GLXContext src, GLXContext dst, unsigned long mask)
Definition: glx.h:446
GLAD_API_CALL int GLAD_GLX_MESA_query_renderer
Definition: glx.h:439
#define GLAD_API_CALL
Definition: glx.h:130
void(GLAD_API_PTR * PFNGLXDESTROYPBUFFERPROC)(Display *dpy, GLXPbuffer pbuf)
Definition: glx.h:455
GLAD_API_CALL PFNGLXDESTROYPBUFFERPROC glad_glXDestroyPbuffer
Definition: glx.h:511
union __GLXEvent GLXEvent
Bool(GLAD_API_PTR * PFNGLXISDIRECTPROC)(Display *dpy, GLXContext ctx)
Definition: glx.h:469
GLAD_API_CALL int gladLoadGLXUserPtr(Display *display, int screen, GLADuserptrloadfunc load, void *userptr)
Definition: glx.cpp:220
GLXContext(GLAD_API_PTR * PFNGLXCREATECONTEXTPROC)(Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct)
Definition: glx.h:447
Bool(GLAD_API_PTR * PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC)(int attribute, unsigned int *value)
Definition: glx.h:473
GLAD_API_CALL PFNGLXSWAPINTERVALSGIPROC glad_glXSwapIntervalSGI
Definition: glx.h:569
void(GLAD_API_PTR * PFNGLXGETSELECTEDEVENTPROC)(Display *dpy, GLXDrawable draw, unsigned long *event_mask)
Definition: glx.h:467
GLAD_API_CALL PFNGLXQUERYEXTENSIONSSTRINGPROC glad_glXQueryExtensionsString
Definition: glx.h:555
const char *(GLAD_API_PTR * PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC)(int attribute)
Definition: glx.h:474
Bool(GLAD_API_PTR * PFNGLXMAKECONTEXTCURRENTPROC)(Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx)
Definition: glx.h:470
XID GLXPbufferSGIX
Definition: glx.h:354
struct __GLXcontextRec * GLXContext
Definition: glx.h:343
GLAD_API_CALL PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC glad_glXQueryCurrentRendererStringMESA
Definition: glx.h:549
const char *(GLAD_API_PTR * PFNGLXQUERYSERVERSTRINGPROC)(Display *dpy, int screen, int name)
Definition: glx.h:480
GLAD_API_CALL PFNGLXGETCONFIGPROC glad_glXGetConfig
Definition: glx.h:519
GLAD_API_CALL PFNGLXMAKECURRENTPROC glad_glXMakeCurrent
Definition: glx.h:543
GLAD_API_CALL PFNGLXGETPROCADDRESSPROC glad_glXGetProcAddress
Definition: glx.h:533
GLAD_API_CALL PFNGLXCREATEGLXPIXMAPPROC glad_glXCreateGLXPixmap
Definition: glx.h:497
GLAD_API_CALL PFNGLXSWAPBUFFERSPROC glad_glXSwapBuffers
Definition: glx.h:567
GLAD_API_CALL PFNGLXCREATECONTEXTPROC glad_glXCreateContext
Definition: glx.h:495
void(* GLADprecallback)(const char *name, GLADapiproc apiproc, int len_args,...)
Definition: glx.h:161
GLXPixmap(GLAD_API_PTR * PFNGLXCREATEPIXMAPPROC)(Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list)
Definition: glx.h:451
const char *(GLAD_API_PTR * PFNGLXQUERYRENDERERSTRINGMESAPROC)(Display *dpy, int screen, int renderer, int attribute)
Definition: glx.h:479
GLAD_API_CALL PFNGLXGETSELECTEDEVENTPROC glad_glXGetSelectedEvent
Definition: glx.h:535
GLXPbuffer(GLAD_API_PTR * PFNGLXCREATEPBUFFERPROC)(Display *dpy, GLXFBConfig config, const int *attrib_list)
Definition: glx.h:450
GLAD_API_CALL PFNGLXISDIRECTPROC glad_glXIsDirect
Definition: glx.h:539
GLAD_API_CALL int GLAD_GLX_VERSION_1_4
Definition: glx.h:437
GLADapiproc(* GLADloadfunc)(const char *name)
Definition: glx.h:158
Bool(GLAD_API_PTR * PFNGLXQUERYVERSIONPROC)(Display *dpy, int *maj, int *min)
Definition: glx.h:481
GLXPixmap(GLAD_API_PTR * PFNGLXCREATEGLXPIXMAPPROC)(Display *dpy, XVisualInfo *visual, Pixmap pixmap)
Definition: glx.h:448
GLAD_API_CALL PFNGLXGETVISUALFROMFBCONFIGPROC glad_glXGetVisualFromFBConfig
Definition: glx.h:537
void(GLAD_API_PTR * PFNGLXDESTROYPIXMAPPROC)(Display *dpy, GLXPixmap pixmap)
Definition: glx.h:456
GLXContext(GLAD_API_PTR * PFNGLXCREATENEWCONTEXTPROC)(Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct)
Definition: glx.h:449
#define GLAD_API_PTR
Definition: glx.h:139
GLAD_API_CALL int GLAD_GLX_VERSION_1_0
Definition: glx.h:429
GLAD_API_CALL PFNGLXQUERYRENDERERINTEGERMESAPROC glad_glXQueryRendererIntegerMESA
Definition: glx.h:557
struct __GLXFBConfigRec * GLXFBConfigSGIX
Definition: glx.h:353
GLAD_API_CALL PFNGLXQUERYDRAWABLEPROC glad_glXQueryDrawable
Definition: glx.h:551
unsigned int GLXVideoDeviceNV
Definition: glx.h:350
GLAD_API_CALL PFNGLXGETCLIENTSTRINGPROC glad_glXGetClientString
Definition: glx.h:517
int event_type
Definition: glx.h:400
int draw_type
Definition: glx.h:401
int type
Definition: glx.h:395
int x
Definition: glx.h:403
unsigned int mask
Definition: glx.h:402
int height
Definition: glx.h:404
GLXDrawable drawable
Definition: glx.h:399
unsigned long serial
Definition: glx.h:396
int count
Definition: glx.h:405
Bool send_event
Definition: glx.h:397
Display * display
Definition: glx.h:398
int64_t sbc
Definition: glx.h:377
int type
Definition: glx.h:369
int event_type
Definition: glx.h:374
GLXDrawable drawable
Definition: glx.h:373
Bool send_event
Definition: glx.h:371
int64_t ust
Definition: glx.h:375
unsigned long serial
Definition: glx.h:370
Display * display
Definition: glx.h:372
int64_t msc
Definition: glx.h:376
unsigned int participationType
Definition: glx.h:414
int channel
Definition: glx.h:413
int timeSlice
Definition: glx.h:415
int networkId
Definition: glx.h:409
unsigned int aux_buffer
Definition: glx.h:363
int draw_type
Definition: glx.h:357
int event_type
Definition: glx.h:356
GLXDrawable drawable
Definition: glx.h:361
int count
Definition: glx.h:366
unsigned long serial
Definition: glx.h:358
int x
Definition: glx.h:364
Bool send_event
Definition: glx.h:359
Display * display
Definition: glx.h:360
int height
Definition: glx.h:365
unsigned int buffer_mask
Definition: glx.h:362
int maxHeight
Definition: glx.h:424
int srcHeight
Definition: glx.h:419
int destHeight
Definition: glx.h:420
int type
Definition: glx.h:385
int extension
Definition: glx.h:389
Display * display
Definition: glx.h:388
Bool send_event
Definition: glx.h:387
int evtype
Definition: glx.h:390
GLXDrawable window
Definition: glx.h:391
Bool stereo_tree
Definition: glx.h:392
unsigned long serial
Definition: glx.h:386
long pad[24]
Definition: glx.h:382
GLXBufferSwapComplete glxbufferswapcomplete
Definition: glx.h:381
GLXPbufferClobberEvent glxpbufferclobber
Definition: glx.h:380
int read(int fd, void *buf, size_t nbytes)
Definition: wfilesystem.cpp:273
long long int64_t
Definition: wposix_types.h:48
unsigned long long uint64_t
Definition: wposix_types.h:57