39#ifndef GLAD_PLATFORM_H_
40#define GLAD_PLATFORM_H_
42#ifndef GLAD_PLATFORM_WIN32
43 #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) || defined(__MINGW32__)
44 #define GLAD_PLATFORM_WIN32 1
46 #define GLAD_PLATFORM_WIN32 0
50#ifndef GLAD_PLATFORM_APPLE
52 #define GLAD_PLATFORM_APPLE 1
54 #define GLAD_PLATFORM_APPLE 0
58#ifndef GLAD_PLATFORM_EMSCRIPTEN
60 #define GLAD_PLATFORM_EMSCRIPTEN 1
62 #define GLAD_PLATFORM_EMSCRIPTEN 0
66#ifndef GLAD_PLATFORM_UWP
67 #if defined(_MSC_VER) && !defined(GLAD_INTERNAL_HAVE_WINAPIFAMILY)
69 #if __has_include(<winapifamily.h>)
70 #define GLAD_INTERNAL_HAVE_WINAPIFAMILY 1
72 #elif _MSC_VER >= 1700 && !_USING_V110_SDK71_
73 #define GLAD_INTERNAL_HAVE_WINAPIFAMILY 1
77 #ifdef GLAD_INTERNAL_HAVE_WINAPIFAMILY
78 #include <winapifamily.h>
79 #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
80 #define GLAD_PLATFORM_UWP 1
84 #ifndef GLAD_PLATFORM_UWP
85 #define GLAD_PLATFORM_UWP 0
90 #define GLAD_GNUC_EXTENSION __extension__
92 #define GLAD_GNUC_EXTENSION
95#define GLAD_UNUSED(x) (void)(x)
98 #if defined(GLAD_API_CALL_EXPORT)
99 #if GLAD_PLATFORM_WIN32 || defined(__CYGWIN__)
100 #if defined(GLAD_API_CALL_EXPORT_BUILD)
101 #if defined(__GNUC__)
102 #define GLAD_API_CALL __attribute__ ((dllexport)) extern
104 #define GLAD_API_CALL __declspec(dllexport) extern
107 #if defined(__GNUC__)
108 #define GLAD_API_CALL __attribute__ ((dllimport)) extern
110 #define GLAD_API_CALL __declspec(dllimport) extern
113 #elif defined(__GNUC__) && defined(GLAD_API_CALL_EXPORT_BUILD)
114 #define GLAD_API_CALL __attribute__ ((visibility ("default"))) extern
116 #define GLAD_API_CALL extern
119 #define GLAD_API_CALL extern
124 #define GLAD_API_PTR APIENTRY
125#elif GLAD_PLATFORM_WIN32
126 #define GLAD_API_PTR __stdcall
132#define GLAPI GLAD_API_CALL
136#define GLAPIENTRY GLAD_API_PTR
139#define GLAD_MAKE_VERSION(major, minor) (major * 10000 + minor)
140#define GLAD_VERSION_MAJOR(version) (version / 10000)
141#define GLAD_VERSION_MINOR(version) (version % 10000)
143#define GLAD_GENERATOR_VERSION "2.0.7"
155#define EGL_ALPHA_FORMAT 0x3088
156#define EGL_ALPHA_FORMAT_NONPRE 0x308B
157#define EGL_ALPHA_FORMAT_PRE 0x308C
158#define EGL_ALPHA_MASK_SIZE 0x303E
159#define EGL_ALPHA_SIZE 0x3021
160#define EGL_BACK_BUFFER 0x3084
161#define EGL_BAD_ACCESS 0x3002
162#define EGL_BAD_ALLOC 0x3003
163#define EGL_BAD_ATTRIBUTE 0x3004
164#define EGL_BAD_CONFIG 0x3005
165#define EGL_BAD_CONTEXT 0x3006
166#define EGL_BAD_CURRENT_SURFACE 0x3007
167#define EGL_BAD_DISPLAY 0x3008
168#define EGL_BAD_MATCH 0x3009
169#define EGL_BAD_NATIVE_PIXMAP 0x300A
170#define EGL_BAD_NATIVE_WINDOW 0x300B
171#define EGL_BAD_PARAMETER 0x300C
172#define EGL_BAD_SURFACE 0x300D
173#define EGL_BIND_TO_TEXTURE_RGB 0x3039
174#define EGL_BIND_TO_TEXTURE_RGBA 0x303A
175#define EGL_BLUE_SIZE 0x3022
176#define EGL_BUFFER_DESTROYED 0x3095
177#define EGL_BUFFER_PRESERVED 0x3094
178#define EGL_BUFFER_SIZE 0x3020
179#define EGL_CLIENT_APIS 0x308D
180#define EGL_CL_EVENT_HANDLE 0x309C
181#define EGL_COLORSPACE 0x3087
182#define EGL_COLORSPACE_LINEAR 0x308A
183#define EGL_COLORSPACE_sRGB 0x3089
184#define EGL_COLOR_BUFFER_TYPE 0x303F
185#define EGL_CONDITION_SATISFIED 0x30F6
186#define EGL_CONFIG_CAVEAT 0x3027
187#define EGL_CONFIG_ID 0x3028
188#define EGL_CONFORMANT 0x3042
189#define EGL_CONTEXT_CLIENT_TYPE 0x3097
190#define EGL_CONTEXT_CLIENT_VERSION 0x3098
191#define EGL_CONTEXT_LOST 0x300E
192#define EGL_CONTEXT_MAJOR_VERSION 0x3098
193#define EGL_CONTEXT_MINOR_VERSION 0x30FB
194#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002
195#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001
196#define EGL_CONTEXT_OPENGL_DEBUG 0x31B0
197#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1
198#define EGL_CONTEXT_OPENGL_PROFILE_MASK 0x30FD
199#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
200#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2
201#define EGL_CORE_NATIVE_ENGINE 0x305B
202#define EGL_DEFAULT_DISPLAY EGL_CAST(EGLNativeDisplayType,0)
203#define EGL_DEPTH_SIZE 0x3025
204#define EGL_DISPLAY_SCALING 10000
205#define EGL_DONT_CARE EGL_CAST(EGLint,-1)
206#define EGL_DRAW 0x3059
207#define EGL_EXTENSIONS 0x3055
209#define EGL_FOREVER 0xFFFFFFFFFFFFFFFF
210#define EGL_GL_COLORSPACE 0x309D
211#define EGL_GL_COLORSPACE_LINEAR 0x308A
212#define EGL_GL_COLORSPACE_SRGB 0x3089
213#define EGL_GL_RENDERBUFFER 0x30B9
214#define EGL_GL_TEXTURE_2D 0x30B1
215#define EGL_GL_TEXTURE_3D 0x30B2
216#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4
217#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6
218#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8
219#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3
220#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5
221#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7
222#define EGL_GL_TEXTURE_LEVEL 0x30BC
223#define EGL_GL_TEXTURE_ZOFFSET 0x30BD
224#define EGL_GREEN_SIZE 0x3023
225#define EGL_HEIGHT 0x3056
226#define EGL_HORIZONTAL_RESOLUTION 0x3090
227#define EGL_IMAGE_PRESERVED 0x30D2
228#define EGL_LARGEST_PBUFFER 0x3058
229#define EGL_LEVEL 0x3029
230#define EGL_LOSE_CONTEXT_ON_RESET 0x31BF
231#define EGL_LUMINANCE_BUFFER 0x308F
232#define EGL_LUMINANCE_SIZE 0x303D
233#define EGL_MATCH_NATIVE_PIXMAP 0x3041
234#define EGL_MAX_PBUFFER_HEIGHT 0x302A
235#define EGL_MAX_PBUFFER_PIXELS 0x302B
236#define EGL_MAX_PBUFFER_WIDTH 0x302C
237#define EGL_MAX_SWAP_INTERVAL 0x303C
238#define EGL_MIN_SWAP_INTERVAL 0x303B
239#define EGL_MIPMAP_LEVEL 0x3083
240#define EGL_MIPMAP_TEXTURE 0x3082
241#define EGL_MULTISAMPLE_RESOLVE 0x3099
242#define EGL_MULTISAMPLE_RESOLVE_BOX 0x309B
243#define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200
244#define EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A
245#define EGL_NATIVE_RENDERABLE 0x302D
246#define EGL_NATIVE_VISUAL_ID 0x302E
247#define EGL_NATIVE_VISUAL_TYPE 0x302F
248#define EGL_NONE 0x3038
249#define EGL_NON_CONFORMANT_CONFIG 0x3051
250#define EGL_NOT_INITIALIZED 0x3001
251#define EGL_NO_CONTEXT EGL_CAST(EGLContext,0)
252#define EGL_NO_DISPLAY EGL_CAST(EGLDisplay,0)
253#define EGL_NO_IMAGE EGL_CAST(EGLImage,0)
254#define EGL_NO_RESET_NOTIFICATION 0x31BE
255#define EGL_NO_SURFACE EGL_CAST(EGLSurface,0)
256#define EGL_NO_SYNC EGL_CAST(EGLSync,0)
257#define EGL_NO_TEXTURE 0x305C
258#define EGL_OPENGL_API 0x30A2
259#define EGL_OPENGL_BIT 0x0008
260#define EGL_OPENGL_ES2_BIT 0x0004
261#define EGL_OPENGL_ES3_BIT 0x00000040
262#define EGL_OPENGL_ES_API 0x30A0
263#define EGL_OPENGL_ES_BIT 0x0001
264#define EGL_OPENVG_API 0x30A1
265#define EGL_OPENVG_BIT 0x0002
266#define EGL_OPENVG_IMAGE 0x3096
267#define EGL_PBUFFER_BIT 0x0001
268#define EGL_PIXEL_ASPECT_RATIO 0x3092
269#define EGL_PIXMAP_BIT 0x0002
270#define EGL_READ 0x305A
271#define EGL_RED_SIZE 0x3024
272#define EGL_RENDERABLE_TYPE 0x3040
273#define EGL_RENDER_BUFFER 0x3086
274#define EGL_RGB_BUFFER 0x308E
275#define EGL_SAMPLES 0x3031
276#define EGL_SAMPLE_BUFFERS 0x3032
277#define EGL_SIGNALED 0x30F2
278#define EGL_SINGLE_BUFFER 0x3085
279#define EGL_SLOW_CONFIG 0x3050
280#define EGL_STENCIL_SIZE 0x3026
281#define EGL_SUCCESS 0x3000
282#define EGL_SURFACE_TYPE 0x3033
283#define EGL_SWAP_BEHAVIOR 0x3093
284#define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400
285#define EGL_SYNC_CL_EVENT 0x30FE
286#define EGL_SYNC_CL_EVENT_COMPLETE 0x30FF
287#define EGL_SYNC_CONDITION 0x30F8
288#define EGL_SYNC_FENCE 0x30F9
289#define EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001
290#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0
291#define EGL_SYNC_STATUS 0x30F1
292#define EGL_SYNC_TYPE 0x30F7
293#define EGL_TEXTURE_2D 0x305F
294#define EGL_TEXTURE_FORMAT 0x3080
295#define EGL_TEXTURE_RGB 0x305D
296#define EGL_TEXTURE_RGBA 0x305E
297#define EGL_TEXTURE_TARGET 0x3081
298#define EGL_TIMEOUT_EXPIRED 0x30F5
299#define EGL_TRANSPARENT_BLUE_VALUE 0x3035
300#define EGL_TRANSPARENT_GREEN_VALUE 0x3036
301#define EGL_TRANSPARENT_RED_VALUE 0x3037
302#define EGL_TRANSPARENT_RGB 0x3052
303#define EGL_TRANSPARENT_TYPE 0x3034
305#define EGL_UNKNOWN EGL_CAST(EGLint,-1)
306#define EGL_UNSIGNALED 0x30F3
307#define EGL_VENDOR 0x3053
308#define EGL_VERSION 0x3054
309#define EGL_VERTICAL_RESOLUTION 0x3091
310#define EGL_VG_ALPHA_FORMAT 0x3088
311#define EGL_VG_ALPHA_FORMAT_NONPRE 0x308B
312#define EGL_VG_ALPHA_FORMAT_PRE 0x308C
313#define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040
314#define EGL_VG_COLORSPACE 0x3087
315#define EGL_VG_COLORSPACE_LINEAR 0x308A
316#define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020
317#define EGL_VG_COLORSPACE_sRGB 0x3089
318#define EGL_WIDTH 0x3057
319#define EGL_WINDOW_BIT 0x0004
335struct AHardwareBuffer;
378#define PFNEGLBINDWAYLANDDISPLAYWL PFNEGLBINDWAYLANDDISPLAYWLPROC
379#define PFNEGLUNBINDWAYLANDDISPLAYWL PFNEGLUNBINDWAYLANDDISPLAYWLPROC
380#define PFNEGLQUERYWAYLANDBUFFERWL PFNEGLQUERYWAYLANDBUFFERWLPROC
381#define PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC
384#define EGL_VERSION_1_0 1
386#define EGL_VERSION_1_1 1
388#define EGL_VERSION_1_2 1
390#define EGL_VERSION_1_3 1
392#define EGL_VERSION_1_4 1
394#define EGL_VERSION_1_5 1
444#define eglBindAPI glad_eglBindAPI
446#define eglBindTexImage glad_eglBindTexImage
448#define eglChooseConfig glad_eglChooseConfig
450#define eglClientWaitSync glad_eglClientWaitSync
452#define eglCopyBuffers glad_eglCopyBuffers
454#define eglCreateContext glad_eglCreateContext
456#define eglCreateImage glad_eglCreateImage
458#define eglCreatePbufferFromClientBuffer glad_eglCreatePbufferFromClientBuffer
460#define eglCreatePbufferSurface glad_eglCreatePbufferSurface
462#define eglCreatePixmapSurface glad_eglCreatePixmapSurface
464#define eglCreatePlatformPixmapSurface glad_eglCreatePlatformPixmapSurface
466#define eglCreatePlatformWindowSurface glad_eglCreatePlatformWindowSurface
468#define eglCreateSync glad_eglCreateSync
470#define eglCreateWindowSurface glad_eglCreateWindowSurface
472#define eglDestroyContext glad_eglDestroyContext
474#define eglDestroyImage glad_eglDestroyImage
476#define eglDestroySurface glad_eglDestroySurface
478#define eglDestroySync glad_eglDestroySync
480#define eglGetConfigAttrib glad_eglGetConfigAttrib
482#define eglGetConfigs glad_eglGetConfigs
484#define eglGetCurrentContext glad_eglGetCurrentContext
486#define eglGetCurrentDisplay glad_eglGetCurrentDisplay
488#define eglGetCurrentSurface glad_eglGetCurrentSurface
490#define eglGetDisplay glad_eglGetDisplay
492#define eglGetError glad_eglGetError
494#define eglGetPlatformDisplay glad_eglGetPlatformDisplay
496#define eglGetProcAddress glad_eglGetProcAddress
498#define eglGetSyncAttrib glad_eglGetSyncAttrib
500#define eglInitialize glad_eglInitialize
502#define eglMakeCurrent glad_eglMakeCurrent
504#define eglQueryAPI glad_eglQueryAPI
506#define eglQueryContext glad_eglQueryContext
508#define eglQueryString glad_eglQueryString
510#define eglQuerySurface glad_eglQuerySurface
512#define eglReleaseTexImage glad_eglReleaseTexImage
514#define eglReleaseThread glad_eglReleaseThread
516#define eglSurfaceAttrib glad_eglSurfaceAttrib
518#define eglSwapBuffers glad_eglSwapBuffers
520#define eglSwapInterval glad_eglSwapInterval
522#define eglTerminate glad_eglTerminate
524#define eglWaitClient glad_eglWaitClient
526#define eglWaitGL glad_eglWaitGL
528#define eglWaitNative glad_eglWaitNative
530#define eglWaitSync glad_eglWaitSync
EGLBoolean(GLAD_API_PTR * PFNEGLDESTROYSURFACEPROC)(EGLDisplay dpy, EGLSurface surface)
Definition: egl.h:414
GLAD_API_CALL PFNEGLWAITGLPROC glad_eglWaitGL
Definition: egl.h:525
void(* __eglMustCastToProperFunctionPointerType)(void)
Definition: egl.h:360
GLADapiproc(* GLADuserptrloadfunc)(void *userptr, const char *name)
Definition: egl.h:148
GLAD_API_CALL PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC glad_eglCreatePbufferFromClientBuffer
Definition: egl.h:457
GLAD_API_CALL PFNEGLDESTROYSYNCPROC glad_eglDestroySync
Definition: egl.h:477
EGLSurface(GLAD_API_PTR * PFNEGLGETCURRENTSURFACEPROC)(EGLint readdraw)
Definition: egl.h:420
void * EGLImage
Definition: egl.h:349
EGLBoolean(GLAD_API_PTR * PFNEGLRELEASETEXIMAGEPROC)(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
Definition: egl.h:432
GLAD_API_CALL PFNEGLWAITCLIENTPROC glad_eglWaitClient
Definition: egl.h:523
EGLImage(GLAD_API_PTR * PFNEGLCREATEIMAGEPROC)(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list)
Definition: egl.h:404
int EGLNativeFileDescriptorKHR
Definition: egl.h:367
GLAD_API_CALL PFNEGLQUERYSTRINGPROC glad_eglQueryString
Definition: egl.h:507
GLAD_API_CALL int GLAD_EGL_VERSION_1_1
Definition: egl.h:387
EGLenum(GLAD_API_PTR * PFNEGLQUERYAPIPROC)(void)
Definition: egl.h:428
void * EGLSurface
Definition: egl.h:356
GLAD_API_CALL PFNEGLDESTROYCONTEXTPROC glad_eglDestroyContext
Definition: egl.h:471
GLAD_API_CALL PFNEGLCLIENTWAITSYNCPROC glad_eglClientWaitSync
Definition: egl.h:449
GLAD_API_CALL int GLAD_EGL_VERSION_1_4
Definition: egl.h:393
EGLDisplay(GLAD_API_PTR * PFNEGLGETDISPLAYPROC)(EGLNativeDisplayType display_id)
Definition: egl.h:421
GLAD_API_CALL PFNEGLCREATEPBUFFERSURFACEPROC glad_eglCreatePbufferSurface
Definition: egl.h:459
EGLBoolean(GLAD_API_PTR * PFNEGLQUERYSURFACEPROC)(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value)
Definition: egl.h:431
EGLBoolean(GLAD_API_PTR * PFNEGLDESTROYIMAGEPROC)(EGLDisplay dpy, EGLImage image)
Definition: egl.h:413
GLAD_API_CALL PFNEGLCREATESYNCPROC glad_eglCreateSync
Definition: egl.h:467
EGLDisplay(GLAD_API_PTR * PFNEGLGETPLATFORMDISPLAYPROC)(EGLenum platform, void *native_display, const EGLAttrib *attrib_list)
Definition: egl.h:423
GLAD_API_CALL PFNEGLCREATEPLATFORMWINDOWSURFACEPROC glad_eglCreatePlatformWindowSurface
Definition: egl.h:465
khronos_utime_nanoseconds_t EGLuint64NV
Definition: egl.h:364
EGLint(GLAD_API_PTR * PFNEGLGETERRORPROC)(void)
Definition: egl.h:422
void(* GLADpostcallback)(void *ret, const char *name, GLADapiproc apiproc, int len_args,...)
Definition: egl.h:151
GLAD_API_CALL int gladLoadEGLUserPtr(EGLDisplay display, GLADuserptrloadfunc load, void *userptr)
Definition: egl.cpp:223
void(* GLADapiproc)(void)
Definition: egl.h:145
GLAD_API_CALL PFNEGLDESTROYIMAGEPROC glad_eglDestroyImage
Definition: egl.h:473
void(* EGLSetBlobFuncANDROID)(const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize)
Definition: egl.h:369
unsigned int EGLenum
Definition: egl.h:341
khronos_uint64_t EGLuint64KHR
Definition: egl.h:365
EGLBoolean(GLAD_API_PTR * PFNEGLWAITSYNCPROC)(EGLDisplay dpy, EGLSync sync, EGLint flags)
Definition: egl.h:441
EGLBoolean(GLAD_API_PTR * PFNEGLCHOOSECONFIGPROC)(EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config)
Definition: egl.h:400
khronos_utime_nanoseconds_t EGLTime
Definition: egl.h:362
GLAD_API_CALL PFNEGLGETCONFIGATTRIBPROC glad_eglGetConfigAttrib
Definition: egl.h:479
void * EGLOutputLayerEXT
Definition: egl.h:353
void * EGLClientBuffer
Definition: egl.h:344
GLAD_API_CALL PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC glad_eglCreatePlatformPixmapSurface
Definition: egl.h:463
GLAD_API_CALL PFNEGLSWAPINTERVALPROC glad_eglSwapInterval
Definition: egl.h:519
void * EGLContext
Definition: egl.h:346
GLAD_API_CALL PFNEGLGETCURRENTSURFACEPROC glad_eglGetCurrentSurface
Definition: egl.h:487
khronos_utime_nanoseconds_t EGLTimeNV
Definition: egl.h:363
EGLBoolean(GLAD_API_PTR * PFNEGLBINDTEXIMAGEPROC)(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
Definition: egl.h:399
intptr_t EGLAttrib
Definition: egl.h:343
khronos_stime_nanoseconds_t EGLnsecsANDROID
Definition: egl.h:366
GLAD_API_CALL PFNEGLRELEASETEXIMAGEPROC glad_eglReleaseTexImage
Definition: egl.h:511
GLAD_API_CALL PFNEGLDESTROYSURFACEPROC glad_eglDestroySurface
Definition: egl.h:475
GLAD_API_CALL PFNEGLWAITSYNCPROC glad_eglWaitSync
Definition: egl.h:529
EGLBoolean(GLAD_API_PTR * PFNEGLDESTROYCONTEXTPROC)(EGLDisplay dpy, EGLContext ctx)
Definition: egl.h:412
GLAD_API_CALL PFNEGLGETPLATFORMDISPLAYPROC glad_eglGetPlatformDisplay
Definition: egl.h:493
GLAD_API_CALL PFNEGLCREATECONTEXTPROC glad_eglCreateContext
Definition: egl.h:453
void * EGLConfig
Definition: egl.h:345
intptr_t EGLAttribKHR
Definition: egl.h:342
GLAD_API_CALL PFNEGLTERMINATEPROC glad_eglTerminate
Definition: egl.h:521
EGLint(GLAD_API_PTR * PFNEGLCLIENTWAITSYNCPROC)(EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout)
Definition: egl.h:401
EGLBoolean(GLAD_API_PTR * PFNEGLMAKECURRENTPROC)(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx)
Definition: egl.h:427
GLAD_API_CALL PFNEGLGETCURRENTCONTEXTPROC glad_eglGetCurrentContext
Definition: egl.h:483
GLAD_API_CALL PFNEGLGETERRORPROC glad_eglGetError
Definition: egl.h:491
void * EGLDeviceEXT
Definition: egl.h:347
GLAD_API_CALL PFNEGLGETPROCADDRESSPROC glad_eglGetProcAddress
Definition: egl.h:495
EGLBoolean(GLAD_API_PTR * PFNEGLDESTROYSYNCPROC)(EGLDisplay dpy, EGLSync sync)
Definition: egl.h:415
GLAD_API_CALL PFNEGLINITIALIZEPROC glad_eglInitialize
Definition: egl.h:499
EGLSurface(GLAD_API_PTR * PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC)(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list)
Definition: egl.h:405
GLAD_API_CALL PFNEGLGETCONFIGSPROC glad_eglGetConfigs
Definition: egl.h:481
__eglMustCastToProperFunctionPointerType(GLAD_API_PTR * PFNEGLGETPROCADDRESSPROC)(const char *procname)
Definition: egl.h:424
GLAD_API_CALL PFNEGLCHOOSECONFIGPROC glad_eglChooseConfig
Definition: egl.h:447
GLAD_API_CALL int GLAD_EGL_VERSION_1_5
Definition: egl.h:395
void * EGLDisplay
Definition: egl.h:348
EGLBoolean(GLAD_API_PTR * PFNEGLWAITCLIENTPROC)(void)
Definition: egl.h:438
EGLBoolean(GLAD_API_PTR * PFNEGLBINDAPIPROC)(EGLenum api)
Definition: egl.h:398
EGLsizeiANDROID(* EGLGetBlobFuncANDROID)(const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize)
Definition: egl.h:370
GLAD_API_CALL int GLAD_EGL_VERSION_1_2
Definition: egl.h:389
#define GLAD_API_CALL
Definition: egl.h:119
void * EGLSyncKHR
Definition: egl.h:358
GLAD_API_CALL PFNEGLRELEASETHREADPROC glad_eglReleaseThread
Definition: egl.h:513
EGLBoolean(GLAD_API_PTR * PFNEGLCOPYBUFFERSPROC)(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target)
Definition: egl.h:402
void(GLAD_API_PTR * EGLDEBUGPROCKHR)(EGLenum error, const char *command, EGLint messageType, EGLLabelKHR threadLabel, EGLLabelKHR objectLabel, const char *message)
Definition: egl.h:377
void * EGLObjectKHR
Definition: egl.h:352
GLAD_API_CALL PFNEGLGETSYNCATTRIBPROC glad_eglGetSyncAttrib
Definition: egl.h:497
void * EGLOutputPortEXT
Definition: egl.h:354
GLAD_API_CALL PFNEGLCREATEPIXMAPSURFACEPROC glad_eglCreatePixmapSurface
Definition: egl.h:461
EGLSurface(GLAD_API_PTR * PFNEGLCREATEWINDOWSURFACEPROC)(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list)
Definition: egl.h:411
unsigned int EGLBoolean
Definition: egl.h:340
EGLBoolean(GLAD_API_PTR * PFNEGLWAITGLPROC)(void)
Definition: egl.h:439
GLAD_API_CALL PFNEGLQUERYCONTEXTPROC glad_eglQueryContext
Definition: egl.h:505
EGLContext(GLAD_API_PTR * PFNEGLGETCURRENTCONTEXTPROC)(void)
Definition: egl.h:418
void * EGLLabelKHR
Definition: egl.h:351
khronos_ssize_t EGLsizeiANDROID
Definition: egl.h:368
GLAD_API_CALL int GLAD_EGL_VERSION_1_0
Definition: egl.h:385
EGLContext(GLAD_API_PTR * PFNEGLCREATECONTEXTPROC)(EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list)
Definition: egl.h:403
GLAD_API_CALL PFNEGLCREATEWINDOWSURFACEPROC glad_eglCreateWindowSurface
Definition: egl.h:469
GLAD_API_CALL PFNEGLQUERYSURFACEPROC glad_eglQuerySurface
Definition: egl.h:509
GLAD_API_CALL int gladLoadEGL(EGLDisplay display, GLADloadfunc load)
Definition: egl.cpp:245
void * EGLImageKHR
Definition: egl.h:350
GLAD_API_CALL PFNEGLGETCURRENTDISPLAYPROC glad_eglGetCurrentDisplay
Definition: egl.h:485
GLAD_API_CALL PFNEGLQUERYAPIPROC glad_eglQueryAPI
Definition: egl.h:503
void(* GLADprecallback)(const char *name, GLADapiproc apiproc, int len_args,...)
Definition: egl.h:150
GLAD_API_CALL PFNEGLBINDTEXIMAGEPROC glad_eglBindTexImage
Definition: egl.h:445
EGLBoolean(GLAD_API_PTR * PFNEGLQUERYCONTEXTPROC)(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value)
Definition: egl.h:429
EGLBoolean(GLAD_API_PTR * PFNEGLRELEASETHREADPROC)(void)
Definition: egl.h:433
void * EGLSyncNV
Definition: egl.h:359
GLAD_API_CALL PFNEGLCREATEIMAGEPROC glad_eglCreateImage
Definition: egl.h:455
EGLBoolean(GLAD_API_PTR * PFNEGLINITIALIZEPROC)(EGLDisplay dpy, EGLint *major, EGLint *minor)
Definition: egl.h:426
GLADapiproc(* GLADloadfunc)(const char *name)
Definition: egl.h:147
EGLBoolean(GLAD_API_PTR * PFNEGLGETSYNCATTRIBPROC)(EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value)
Definition: egl.h:425
EGLDisplay(GLAD_API_PTR * PFNEGLGETCURRENTDISPLAYPROC)(void)
Definition: egl.h:419
GLAD_API_CALL PFNEGLGETDISPLAYPROC glad_eglGetDisplay
Definition: egl.h:489
GLAD_API_CALL PFNEGLMAKECURRENTPROC glad_eglMakeCurrent
Definition: egl.h:501
GLAD_API_CALL PFNEGLSURFACEATTRIBPROC glad_eglSurfaceAttrib
Definition: egl.h:515
EGLSurface(GLAD_API_PTR * PFNEGLCREATEPIXMAPSURFACEPROC)(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list)
Definition: egl.h:407
const char *(GLAD_API_PTR * PFNEGLQUERYSTRINGPROC)(EGLDisplay dpy, EGLint name)
Definition: egl.h:430
#define GLAD_API_PTR
Definition: egl.h:128
EGLSync(GLAD_API_PTR * PFNEGLCREATESYNCPROC)(EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list)
Definition: egl.h:410
void * EGLStreamKHR
Definition: egl.h:355
GLAD_API_CALL PFNEGLCOPYBUFFERSPROC glad_eglCopyBuffers
Definition: egl.h:451
EGLBoolean(GLAD_API_PTR * PFNEGLGETCONFIGATTRIBPROC)(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value)
Definition: egl.h:416
EGLBoolean(GLAD_API_PTR * PFNEGLSWAPINTERVALPROC)(EGLDisplay dpy, EGLint interval)
Definition: egl.h:436
EGLSurface(GLAD_API_PTR * PFNEGLCREATEPLATFORMWINDOWSURFACEPROC)(EGLDisplay dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list)
Definition: egl.h:409
EGLBoolean(GLAD_API_PTR * PFNEGLSURFACEATTRIBPROC)(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value)
Definition: egl.h:434
GLAD_API_CALL PFNEGLWAITNATIVEPROC glad_eglWaitNative
Definition: egl.h:527
EGLSurface(GLAD_API_PTR * PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC)(EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list)
Definition: egl.h:408
EGLBoolean(GLAD_API_PTR * PFNEGLTERMINATEPROC)(EGLDisplay dpy)
Definition: egl.h:437
void * EGLSync
Definition: egl.h:357
EGLBoolean(GLAD_API_PTR * PFNEGLSWAPBUFFERSPROC)(EGLDisplay dpy, EGLSurface surface)
Definition: egl.h:435
EGLBoolean(GLAD_API_PTR * PFNEGLGETCONFIGSPROC)(EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config)
Definition: egl.h:417
EGLSurface(GLAD_API_PTR * PFNEGLCREATEPBUFFERSURFACEPROC)(EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list)
Definition: egl.h:406
khronos_utime_nanoseconds_t EGLTimeKHR
Definition: egl.h:361
GLAD_API_CALL PFNEGLSWAPBUFFERSPROC glad_eglSwapBuffers
Definition: egl.h:517
GLAD_API_CALL PFNEGLBINDAPIPROC glad_eglBindAPI
Definition: egl.h:443
GLAD_API_CALL int GLAD_EGL_VERSION_1_3
Definition: egl.h:391
EGLBoolean(GLAD_API_PTR * PFNEGLWAITNATIVEPROC)(EGLint engine)
Definition: egl.h:440
bool error(JSContext *cx, uint argc, JS::Value *vp)
Definition: ScriptInterface.cpp:173
void * pData
Definition: egl.h:372
EGLint iWidth
Definition: egl.h:373
EGLint iHeight
Definition: egl.h:374
EGLint iStride
Definition: egl.h:375
int read(int fd, void *buf, size_t nbytes)
Definition: wfilesystem.cpp:273
pthread_key_t key
Definition: wpthread.cpp:149