xref: /interface/sdk_c/third_party/egl/EGL/egl.h (revision 7777dab0)
17777dab0Sopenharmony_ci#ifndef __egl_h_
27777dab0Sopenharmony_ci#define __egl_h_ 1
37777dab0Sopenharmony_ci
47777dab0Sopenharmony_ci#ifdef __cplusplus
57777dab0Sopenharmony_ciextern "C" {
67777dab0Sopenharmony_ci#endif
77777dab0Sopenharmony_ci
87777dab0Sopenharmony_ci/*
97777dab0Sopenharmony_ci** Copyright 2013-2020 The Khronos Group Inc.
107777dab0Sopenharmony_ci** SPDX-License-Identifier: Apache-2.0
117777dab0Sopenharmony_ci**
127777dab0Sopenharmony_ci** This header is generated from the Khronos EGL XML API Registry.
137777dab0Sopenharmony_ci** The current version of the Registry, generator scripts
147777dab0Sopenharmony_ci** used to make the header, and the header can be found at
157777dab0Sopenharmony_ci**   http://www.khronos.org/registry/egl
167777dab0Sopenharmony_ci**
177777dab0Sopenharmony_ci** Khronos $Git commit SHA1: 76c9410321 $ on $Git commit date: 2022-01-04 20:51:44 +0800 $
187777dab0Sopenharmony_ci*/
197777dab0Sopenharmony_ci
207777dab0Sopenharmony_ci#include <EGL/eglplatform.h>
217777dab0Sopenharmony_ci
227777dab0Sopenharmony_ci#ifndef EGL_EGL_PROTOTYPES
237777dab0Sopenharmony_ci#define EGL_EGL_PROTOTYPES 1
247777dab0Sopenharmony_ci#endif
257777dab0Sopenharmony_ci
267777dab0Sopenharmony_ci/* Generated on date 20220105 */
277777dab0Sopenharmony_ci
287777dab0Sopenharmony_ci/* Generated C header for:
297777dab0Sopenharmony_ci * API: egl
307777dab0Sopenharmony_ci * Versions considered: .*
317777dab0Sopenharmony_ci * Versions emitted: .*
327777dab0Sopenharmony_ci * Default extensions included: None
337777dab0Sopenharmony_ci * Additional extensions included: _nomatch_^
347777dab0Sopenharmony_ci * Extensions removed: _nomatch_^
357777dab0Sopenharmony_ci */
367777dab0Sopenharmony_ci
377777dab0Sopenharmony_ci#ifndef EGL_VERSION_1_0
387777dab0Sopenharmony_ci#define EGL_VERSION_1_0 1
397777dab0Sopenharmony_citypedef unsigned int EGLBoolean;
407777dab0Sopenharmony_citypedef void *EGLDisplay;
417777dab0Sopenharmony_ci#include <KHR/khrplatform.h>
427777dab0Sopenharmony_ci#include <EGL/eglplatform.h>
437777dab0Sopenharmony_citypedef void *EGLConfig;
447777dab0Sopenharmony_citypedef void *EGLSurface;
457777dab0Sopenharmony_citypedef void *EGLContext;
467777dab0Sopenharmony_citypedef void (*__eglMustCastToProperFunctionPointerType)(void);
477777dab0Sopenharmony_ci#define EGL_ALPHA_SIZE                    0x3021
487777dab0Sopenharmony_ci#define EGL_BAD_ACCESS                    0x3002
497777dab0Sopenharmony_ci#define EGL_BAD_ALLOC                     0x3003
507777dab0Sopenharmony_ci#define EGL_BAD_ATTRIBUTE                 0x3004
517777dab0Sopenharmony_ci#define EGL_BAD_CONFIG                    0x3005
527777dab0Sopenharmony_ci#define EGL_BAD_CONTEXT                   0x3006
537777dab0Sopenharmony_ci#define EGL_BAD_CURRENT_SURFACE           0x3007
547777dab0Sopenharmony_ci#define EGL_BAD_DISPLAY                   0x3008
557777dab0Sopenharmony_ci#define EGL_BAD_MATCH                     0x3009
567777dab0Sopenharmony_ci#define EGL_BAD_NATIVE_PIXMAP             0x300A
577777dab0Sopenharmony_ci#define EGL_BAD_NATIVE_WINDOW             0x300B
587777dab0Sopenharmony_ci#define EGL_BAD_PARAMETER                 0x300C
597777dab0Sopenharmony_ci#define EGL_BAD_SURFACE                   0x300D
607777dab0Sopenharmony_ci#define EGL_BLUE_SIZE                     0x3022
617777dab0Sopenharmony_ci#define EGL_BUFFER_SIZE                   0x3020
627777dab0Sopenharmony_ci#define EGL_CONFIG_CAVEAT                 0x3027
637777dab0Sopenharmony_ci#define EGL_CONFIG_ID                     0x3028
647777dab0Sopenharmony_ci#define EGL_CORE_NATIVE_ENGINE            0x305B
657777dab0Sopenharmony_ci#define EGL_DEPTH_SIZE                    0x3025
667777dab0Sopenharmony_ci#define EGL_DONT_CARE                     EGL_CAST(EGLint,-1)
677777dab0Sopenharmony_ci#define EGL_DRAW                          0x3059
687777dab0Sopenharmony_ci#define EGL_EXTENSIONS                    0x3055
697777dab0Sopenharmony_ci#define EGL_FALSE                         0
707777dab0Sopenharmony_ci#define EGL_GREEN_SIZE                    0x3023
717777dab0Sopenharmony_ci#define EGL_HEIGHT                        0x3056
727777dab0Sopenharmony_ci#define EGL_LARGEST_PBUFFER               0x3058
737777dab0Sopenharmony_ci#define EGL_LEVEL                         0x3029
747777dab0Sopenharmony_ci#define EGL_MAX_PBUFFER_HEIGHT            0x302A
757777dab0Sopenharmony_ci#define EGL_MAX_PBUFFER_PIXELS            0x302B
767777dab0Sopenharmony_ci#define EGL_MAX_PBUFFER_WIDTH             0x302C
777777dab0Sopenharmony_ci#define EGL_NATIVE_RENDERABLE             0x302D
787777dab0Sopenharmony_ci#define EGL_NATIVE_VISUAL_ID              0x302E
797777dab0Sopenharmony_ci#define EGL_NATIVE_VISUAL_TYPE            0x302F
807777dab0Sopenharmony_ci#define EGL_NONE                          0x3038
817777dab0Sopenharmony_ci#define EGL_NON_CONFORMANT_CONFIG         0x3051
827777dab0Sopenharmony_ci#define EGL_NOT_INITIALIZED               0x3001
837777dab0Sopenharmony_ci#define EGL_NO_CONTEXT                    EGL_CAST(EGLContext,0)
847777dab0Sopenharmony_ci#define EGL_NO_DISPLAY                    EGL_CAST(EGLDisplay,0)
857777dab0Sopenharmony_ci#define EGL_NO_SURFACE                    EGL_CAST(EGLSurface,0)
867777dab0Sopenharmony_ci#define EGL_PBUFFER_BIT                   0x0001
877777dab0Sopenharmony_ci#define EGL_PIXMAP_BIT                    0x0002
887777dab0Sopenharmony_ci#define EGL_READ                          0x305A
897777dab0Sopenharmony_ci#define EGL_RED_SIZE                      0x3024
907777dab0Sopenharmony_ci#define EGL_SAMPLES                       0x3031
917777dab0Sopenharmony_ci#define EGL_SAMPLE_BUFFERS                0x3032
927777dab0Sopenharmony_ci#define EGL_SLOW_CONFIG                   0x3050
937777dab0Sopenharmony_ci#define EGL_STENCIL_SIZE                  0x3026
947777dab0Sopenharmony_ci#define EGL_SUCCESS                       0x3000
957777dab0Sopenharmony_ci#define EGL_SURFACE_TYPE                  0x3033
967777dab0Sopenharmony_ci#define EGL_TRANSPARENT_BLUE_VALUE        0x3035
977777dab0Sopenharmony_ci#define EGL_TRANSPARENT_GREEN_VALUE       0x3036
987777dab0Sopenharmony_ci#define EGL_TRANSPARENT_RED_VALUE         0x3037
997777dab0Sopenharmony_ci#define EGL_TRANSPARENT_RGB               0x3052
1007777dab0Sopenharmony_ci#define EGL_TRANSPARENT_TYPE              0x3034
1017777dab0Sopenharmony_ci#define EGL_TRUE                          1
1027777dab0Sopenharmony_ci#define EGL_VENDOR                        0x3053
1037777dab0Sopenharmony_ci#define EGL_VERSION                       0x3054
1047777dab0Sopenharmony_ci#define EGL_WIDTH                         0x3057
1057777dab0Sopenharmony_ci#define EGL_WINDOW_BIT                    0x0004
1067777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLCHOOSECONFIGPROC) (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
1077777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLCOPYBUFFERSPROC) (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
1087777dab0Sopenharmony_citypedef EGLContext (EGLAPIENTRYP PFNEGLCREATECONTEXTPROC) (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list);
1097777dab0Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPBUFFERSURFACEPROC) (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
1107777dab0Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEPROC) (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list);
1117777dab0Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEWINDOWSURFACEPROC) (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
1127777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYCONTEXTPROC) (EGLDisplay dpy, EGLContext ctx);
1137777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSURFACEPROC) (EGLDisplay dpy, EGLSurface surface);
1147777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETCONFIGATTRIBPROC) (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
1157777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETCONFIGSPROC) (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
1167777dab0Sopenharmony_citypedef EGLDisplay (EGLAPIENTRYP PFNEGLGETCURRENTDISPLAYPROC) (void);
1177777dab0Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLGETCURRENTSURFACEPROC) (EGLint readdraw);
1187777dab0Sopenharmony_citypedef EGLDisplay (EGLAPIENTRYP PFNEGLGETDISPLAYPROC) (EGLNativeDisplayType display_id);
1197777dab0Sopenharmony_citypedef EGLint (EGLAPIENTRYP PFNEGLGETERRORPROC) (void);
1207777dab0Sopenharmony_citypedef __eglMustCastToProperFunctionPointerType (EGLAPIENTRYP PFNEGLGETPROCADDRESSPROC) (const char *procname);
1217777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLINITIALIZEPROC) (EGLDisplay dpy, EGLint *major, EGLint *minor);
1227777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLMAKECURRENTPROC) (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
1237777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYCONTEXTPROC) (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value);
1247777dab0Sopenharmony_citypedef const char *(EGLAPIENTRYP PFNEGLQUERYSTRINGPROC) (EGLDisplay dpy, EGLint name);
1257777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value);
1267777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSPROC) (EGLDisplay dpy, EGLSurface surface);
1277777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLTERMINATEPROC) (EGLDisplay dpy);
1287777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLWAITGLPROC) (void);
1297777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLWAITNATIVEPROC) (EGLint engine);
1307777dab0Sopenharmony_ci#if EGL_EGL_PROTOTYPES
1317777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
1327777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
1337777dab0Sopenharmony_ciEGLAPI EGLContext EGLAPIENTRY eglCreateContext (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list);
1347777dab0Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
1357777dab0Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list);
1367777dab0Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
1377777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext (EGLDisplay dpy, EGLContext ctx);
1387777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface (EGLDisplay dpy, EGLSurface surface);
1397777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
1407777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
1417777dab0Sopenharmony_ciEGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay (void);
1427777dab0Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface (EGLint readdraw);
1437777dab0Sopenharmony_ciEGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay (EGLNativeDisplayType display_id);
1447777dab0Sopenharmony_ciEGLAPI EGLint EGLAPIENTRY eglGetError (void);
1457777dab0Sopenharmony_ciEGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress (const char *procname);
1467777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglInitialize (EGLDisplay dpy, EGLint *major, EGLint *minor);
1477777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
1487777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglQueryContext (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value);
1497777dab0Sopenharmony_ciEGLAPI const char *EGLAPIENTRY eglQueryString (EGLDisplay dpy, EGLint name);
1507777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value);
1517777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers (EGLDisplay dpy, EGLSurface surface);
1527777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglTerminate (EGLDisplay dpy);
1537777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglWaitGL (void);
1547777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglWaitNative (EGLint engine);
1557777dab0Sopenharmony_ci#endif
1567777dab0Sopenharmony_ci#endif /* EGL_VERSION_1_0 */
1577777dab0Sopenharmony_ci
1587777dab0Sopenharmony_ci#ifndef EGL_VERSION_1_1
1597777dab0Sopenharmony_ci#define EGL_VERSION_1_1 1
1607777dab0Sopenharmony_ci#define EGL_BACK_BUFFER                   0x3084
1617777dab0Sopenharmony_ci#define EGL_BIND_TO_TEXTURE_RGB           0x3039
1627777dab0Sopenharmony_ci#define EGL_BIND_TO_TEXTURE_RGBA          0x303A
1637777dab0Sopenharmony_ci#define EGL_CONTEXT_LOST                  0x300E
1647777dab0Sopenharmony_ci#define EGL_MIN_SWAP_INTERVAL             0x303B
1657777dab0Sopenharmony_ci#define EGL_MAX_SWAP_INTERVAL             0x303C
1667777dab0Sopenharmony_ci#define EGL_MIPMAP_TEXTURE                0x3082
1677777dab0Sopenharmony_ci#define EGL_MIPMAP_LEVEL                  0x3083
1687777dab0Sopenharmony_ci#define EGL_NO_TEXTURE                    0x305C
1697777dab0Sopenharmony_ci#define EGL_TEXTURE_2D                    0x305F
1707777dab0Sopenharmony_ci#define EGL_TEXTURE_FORMAT                0x3080
1717777dab0Sopenharmony_ci#define EGL_TEXTURE_RGB                   0x305D
1727777dab0Sopenharmony_ci#define EGL_TEXTURE_RGBA                  0x305E
1737777dab0Sopenharmony_ci#define EGL_TEXTURE_TARGET                0x3081
1747777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDTEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
1757777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLRELEASETEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
1767777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLSURFACEATTRIBPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
1777777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPINTERVALPROC) (EGLDisplay dpy, EGLint interval);
1787777dab0Sopenharmony_ci#if EGL_EGL_PROTOTYPES
1797777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
1807777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
1817777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
1827777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval (EGLDisplay dpy, EGLint interval);
1837777dab0Sopenharmony_ci#endif
1847777dab0Sopenharmony_ci#endif /* EGL_VERSION_1_1 */
1857777dab0Sopenharmony_ci
1867777dab0Sopenharmony_ci#ifndef EGL_VERSION_1_2
1877777dab0Sopenharmony_ci#define EGL_VERSION_1_2 1
1887777dab0Sopenharmony_citypedef unsigned int EGLenum;
1897777dab0Sopenharmony_citypedef void *EGLClientBuffer;
1907777dab0Sopenharmony_ci#define EGL_ALPHA_FORMAT                  0x3088
1917777dab0Sopenharmony_ci#define EGL_ALPHA_FORMAT_NONPRE           0x308B
1927777dab0Sopenharmony_ci#define EGL_ALPHA_FORMAT_PRE              0x308C
1937777dab0Sopenharmony_ci#define EGL_ALPHA_MASK_SIZE               0x303E
1947777dab0Sopenharmony_ci#define EGL_BUFFER_PRESERVED              0x3094
1957777dab0Sopenharmony_ci#define EGL_BUFFER_DESTROYED              0x3095
1967777dab0Sopenharmony_ci#define EGL_CLIENT_APIS                   0x308D
1977777dab0Sopenharmony_ci#define EGL_COLORSPACE                    0x3087
1987777dab0Sopenharmony_ci#define EGL_COLORSPACE_sRGB               0x3089
1997777dab0Sopenharmony_ci#define EGL_COLORSPACE_LINEAR             0x308A
2007777dab0Sopenharmony_ci#define EGL_COLOR_BUFFER_TYPE             0x303F
2017777dab0Sopenharmony_ci#define EGL_CONTEXT_CLIENT_TYPE           0x3097
2027777dab0Sopenharmony_ci#define EGL_DISPLAY_SCALING               10000
2037777dab0Sopenharmony_ci#define EGL_HORIZONTAL_RESOLUTION         0x3090
2047777dab0Sopenharmony_ci#define EGL_LUMINANCE_BUFFER              0x308F
2057777dab0Sopenharmony_ci#define EGL_LUMINANCE_SIZE                0x303D
2067777dab0Sopenharmony_ci#define EGL_OPENGL_ES_BIT                 0x0001
2077777dab0Sopenharmony_ci#define EGL_OPENVG_BIT                    0x0002
2087777dab0Sopenharmony_ci#define EGL_OPENGL_ES_API                 0x30A0
2097777dab0Sopenharmony_ci#define EGL_OPENVG_API                    0x30A1
2107777dab0Sopenharmony_ci#define EGL_OPENVG_IMAGE                  0x3096
2117777dab0Sopenharmony_ci#define EGL_PIXEL_ASPECT_RATIO            0x3092
2127777dab0Sopenharmony_ci#define EGL_RENDERABLE_TYPE               0x3040
2137777dab0Sopenharmony_ci#define EGL_RENDER_BUFFER                 0x3086
2147777dab0Sopenharmony_ci#define EGL_RGB_BUFFER                    0x308E
2157777dab0Sopenharmony_ci#define EGL_SINGLE_BUFFER                 0x3085
2167777dab0Sopenharmony_ci#define EGL_SWAP_BEHAVIOR                 0x3093
2177777dab0Sopenharmony_ci#define EGL_UNKNOWN                       EGL_CAST(EGLint,-1)
2187777dab0Sopenharmony_ci#define EGL_VERTICAL_RESOLUTION           0x3091
2197777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDAPIPROC) (EGLenum api);
2207777dab0Sopenharmony_citypedef EGLenum (EGLAPIENTRYP PFNEGLQUERYAPIPROC) (void);
2217777dab0Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC) (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list);
2227777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLRELEASETHREADPROC) (void);
2237777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLWAITCLIENTPROC) (void);
2247777dab0Sopenharmony_ci#if EGL_EGL_PROTOTYPES
2257777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglBindAPI (EGLenum api);
2267777dab0Sopenharmony_ciEGLAPI EGLenum EGLAPIENTRY eglQueryAPI (void);
2277777dab0Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list);
2287777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglReleaseThread (void);
2297777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglWaitClient (void);
2307777dab0Sopenharmony_ci#endif
2317777dab0Sopenharmony_ci#endif /* EGL_VERSION_1_2 */
2327777dab0Sopenharmony_ci
2337777dab0Sopenharmony_ci#ifndef EGL_VERSION_1_3
2347777dab0Sopenharmony_ci#define EGL_VERSION_1_3 1
2357777dab0Sopenharmony_ci#define EGL_CONFORMANT                    0x3042
2367777dab0Sopenharmony_ci#define EGL_CONTEXT_CLIENT_VERSION        0x3098
2377777dab0Sopenharmony_ci#define EGL_MATCH_NATIVE_PIXMAP           0x3041
2387777dab0Sopenharmony_ci#define EGL_OPENGL_ES2_BIT                0x0004
2397777dab0Sopenharmony_ci#define EGL_VG_ALPHA_FORMAT               0x3088
2407777dab0Sopenharmony_ci#define EGL_VG_ALPHA_FORMAT_NONPRE        0x308B
2417777dab0Sopenharmony_ci#define EGL_VG_ALPHA_FORMAT_PRE           0x308C
2427777dab0Sopenharmony_ci#define EGL_VG_ALPHA_FORMAT_PRE_BIT       0x0040
2437777dab0Sopenharmony_ci#define EGL_VG_COLORSPACE                 0x3087
2447777dab0Sopenharmony_ci#define EGL_VG_COLORSPACE_sRGB            0x3089
2457777dab0Sopenharmony_ci#define EGL_VG_COLORSPACE_LINEAR          0x308A
2467777dab0Sopenharmony_ci#define EGL_VG_COLORSPACE_LINEAR_BIT      0x0020
2477777dab0Sopenharmony_ci#endif /* EGL_VERSION_1_3 */
2487777dab0Sopenharmony_ci
2497777dab0Sopenharmony_ci#ifndef EGL_VERSION_1_4
2507777dab0Sopenharmony_ci#define EGL_VERSION_1_4 1
2517777dab0Sopenharmony_ci#define EGL_DEFAULT_DISPLAY               EGL_CAST(EGLNativeDisplayType,0)
2527777dab0Sopenharmony_ci#define EGL_MULTISAMPLE_RESOLVE_BOX_BIT   0x0200
2537777dab0Sopenharmony_ci#define EGL_MULTISAMPLE_RESOLVE           0x3099
2547777dab0Sopenharmony_ci#define EGL_MULTISAMPLE_RESOLVE_DEFAULT   0x309A
2557777dab0Sopenharmony_ci#define EGL_MULTISAMPLE_RESOLVE_BOX       0x309B
2567777dab0Sopenharmony_ci#define EGL_OPENGL_API                    0x30A2
2577777dab0Sopenharmony_ci#define EGL_OPENGL_BIT                    0x0008
2587777dab0Sopenharmony_ci#define EGL_SWAP_BEHAVIOR_PRESERVED_BIT   0x0400
2597777dab0Sopenharmony_citypedef EGLContext (EGLAPIENTRYP PFNEGLGETCURRENTCONTEXTPROC) (void);
2607777dab0Sopenharmony_ci#if EGL_EGL_PROTOTYPES
2617777dab0Sopenharmony_ciEGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext (void);
2627777dab0Sopenharmony_ci#endif
2637777dab0Sopenharmony_ci#endif /* EGL_VERSION_1_4 */
2647777dab0Sopenharmony_ci
2657777dab0Sopenharmony_ci#ifndef EGL_VERSION_1_5
2667777dab0Sopenharmony_ci#define EGL_VERSION_1_5 1
2677777dab0Sopenharmony_citypedef void *EGLSync;
2687777dab0Sopenharmony_citypedef intptr_t EGLAttrib;
2697777dab0Sopenharmony_citypedef khronos_utime_nanoseconds_t EGLTime;
2707777dab0Sopenharmony_citypedef void *EGLImage;
2717777dab0Sopenharmony_ci#define EGL_CONTEXT_MAJOR_VERSION         0x3098
2727777dab0Sopenharmony_ci#define EGL_CONTEXT_MINOR_VERSION         0x30FB
2737777dab0Sopenharmony_ci#define EGL_CONTEXT_OPENGL_PROFILE_MASK   0x30FD
2747777dab0Sopenharmony_ci#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
2757777dab0Sopenharmony_ci#define EGL_NO_RESET_NOTIFICATION         0x31BE
2767777dab0Sopenharmony_ci#define EGL_LOSE_CONTEXT_ON_RESET         0x31BF
2777777dab0Sopenharmony_ci#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001
2787777dab0Sopenharmony_ci#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002
2797777dab0Sopenharmony_ci#define EGL_CONTEXT_OPENGL_DEBUG          0x31B0
2807777dab0Sopenharmony_ci#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1
2817777dab0Sopenharmony_ci#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS  0x31B2
2827777dab0Sopenharmony_ci#define EGL_OPENGL_ES3_BIT                0x00000040
2837777dab0Sopenharmony_ci#define EGL_CL_EVENT_HANDLE               0x309C
2847777dab0Sopenharmony_ci#define EGL_SYNC_CL_EVENT                 0x30FE
2857777dab0Sopenharmony_ci#define EGL_SYNC_CL_EVENT_COMPLETE        0x30FF
2867777dab0Sopenharmony_ci#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE  0x30F0
2877777dab0Sopenharmony_ci#define EGL_SYNC_TYPE                     0x30F7
2887777dab0Sopenharmony_ci#define EGL_SYNC_STATUS                   0x30F1
2897777dab0Sopenharmony_ci#define EGL_SYNC_CONDITION                0x30F8
2907777dab0Sopenharmony_ci#define EGL_SIGNALED                      0x30F2
2917777dab0Sopenharmony_ci#define EGL_UNSIGNALED                    0x30F3
2927777dab0Sopenharmony_ci#define EGL_SYNC_FLUSH_COMMANDS_BIT       0x0001
2937777dab0Sopenharmony_ci#define EGL_FOREVER                       0xFFFFFFFFFFFFFFFFull
2947777dab0Sopenharmony_ci#define EGL_TIMEOUT_EXPIRED               0x30F5
2957777dab0Sopenharmony_ci#define EGL_CONDITION_SATISFIED           0x30F6
2967777dab0Sopenharmony_ci#define EGL_NO_SYNC                       EGL_CAST(EGLSync,0)
2977777dab0Sopenharmony_ci#define EGL_SYNC_FENCE                    0x30F9
2987777dab0Sopenharmony_ci#define EGL_GL_COLORSPACE                 0x309D
2997777dab0Sopenharmony_ci#define EGL_GL_COLORSPACE_SRGB            0x3089
3007777dab0Sopenharmony_ci#define EGL_GL_COLORSPACE_LINEAR          0x308A
3017777dab0Sopenharmony_ci#define EGL_GL_RENDERBUFFER               0x30B9
3027777dab0Sopenharmony_ci#define EGL_GL_TEXTURE_2D                 0x30B1
3037777dab0Sopenharmony_ci#define EGL_GL_TEXTURE_LEVEL              0x30BC
3047777dab0Sopenharmony_ci#define EGL_GL_TEXTURE_3D                 0x30B2
3057777dab0Sopenharmony_ci#define EGL_GL_TEXTURE_ZOFFSET            0x30BD
3067777dab0Sopenharmony_ci#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3
3077777dab0Sopenharmony_ci#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4
3087777dab0Sopenharmony_ci#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5
3097777dab0Sopenharmony_ci#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6
3107777dab0Sopenharmony_ci#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7
3117777dab0Sopenharmony_ci#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8
3127777dab0Sopenharmony_ci#define EGL_IMAGE_PRESERVED               0x30D2
3137777dab0Sopenharmony_ci#define EGL_NO_IMAGE                      EGL_CAST(EGLImage,0)
3147777dab0Sopenharmony_citypedef EGLSync (EGLAPIENTRYP PFNEGLCREATESYNCPROC) (EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list);
3157777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCPROC) (EGLDisplay dpy, EGLSync sync);
3167777dab0Sopenharmony_citypedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCPROC) (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout);
3177777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBPROC) (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value);
3187777dab0Sopenharmony_citypedef EGLImage (EGLAPIENTRYP PFNEGLCREATEIMAGEPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list);
3197777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEPROC) (EGLDisplay dpy, EGLImage image);
3207777dab0Sopenharmony_citypedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYPROC) (EGLenum platform, void *native_display, const EGLAttrib *attrib_list);
3217777dab0Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list);
3227777dab0Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list);
3237777dab0Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLWAITSYNCPROC) (EGLDisplay dpy, EGLSync sync, EGLint flags);
3247777dab0Sopenharmony_ci#if EGL_EGL_PROTOTYPES
3257777dab0Sopenharmony_ciEGLAPI EGLSync EGLAPIENTRY eglCreateSync (EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list);
3267777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglDestroySync (EGLDisplay dpy, EGLSync sync);
3277777dab0Sopenharmony_ciEGLAPI EGLint EGLAPIENTRY eglClientWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout);
3287777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttrib (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value);
3297777dab0Sopenharmony_ciEGLAPI EGLImage EGLAPIENTRY eglCreateImage (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list);
3307777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglDestroyImage (EGLDisplay dpy, EGLImage image);
3317777dab0Sopenharmony_ciEGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplay (EGLenum platform, void *native_display, const EGLAttrib *attrib_list);
3327777dab0Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurface (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list);
3337777dab0Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurface (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list);
3347777dab0Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags);
3357777dab0Sopenharmony_ci#endif
3367777dab0Sopenharmony_ci#endif /* EGL_VERSION_1_5 */
3377777dab0Sopenharmony_ci
3387777dab0Sopenharmony_ci#ifdef __cplusplus
3397777dab0Sopenharmony_ci}
3407777dab0Sopenharmony_ci#endif
3417777dab0Sopenharmony_ci
3427777dab0Sopenharmony_ci#endif
343