xref: /third_party/mesa3d/include/EGL/egl.h (revision bf215546)
1bf215546Sopenharmony_ci#ifndef __egl_h_
2bf215546Sopenharmony_ci#define __egl_h_ 1
3bf215546Sopenharmony_ci
4bf215546Sopenharmony_ci#ifdef __cplusplus
5bf215546Sopenharmony_ciextern "C" {
6bf215546Sopenharmony_ci#endif
7bf215546Sopenharmony_ci
8bf215546Sopenharmony_ci/*
9bf215546Sopenharmony_ci** Copyright 2013-2020 The Khronos Group Inc.
10bf215546Sopenharmony_ci** SPDX-License-Identifier: Apache-2.0
11bf215546Sopenharmony_ci**
12bf215546Sopenharmony_ci** This header is generated from the Khronos EGL XML API Registry.
13bf215546Sopenharmony_ci** The current version of the Registry, generator scripts
14bf215546Sopenharmony_ci** used to make the header, and the header can be found at
15bf215546Sopenharmony_ci**   http://www.khronos.org/registry/egl
16bf215546Sopenharmony_ci**
17bf215546Sopenharmony_ci** Khronos $Git commit SHA1: e8baa0bf39 $ on $Git commit date: 2021-04-26 17:56:26 -0600 $
18bf215546Sopenharmony_ci*/
19bf215546Sopenharmony_ci
20bf215546Sopenharmony_ci#include <EGL/eglplatform.h>
21bf215546Sopenharmony_ci
22bf215546Sopenharmony_ci#ifndef EGL_EGL_PROTOTYPES
23bf215546Sopenharmony_ci#define EGL_EGL_PROTOTYPES 1
24bf215546Sopenharmony_ci#endif
25bf215546Sopenharmony_ci
26bf215546Sopenharmony_ci/* Generated on date 20210604 */
27bf215546Sopenharmony_ci
28bf215546Sopenharmony_ci/* Generated C header for:
29bf215546Sopenharmony_ci * API: egl
30bf215546Sopenharmony_ci * Versions considered: .*
31bf215546Sopenharmony_ci * Versions emitted: .*
32bf215546Sopenharmony_ci * Default extensions included: None
33bf215546Sopenharmony_ci * Additional extensions included: _nomatch_^
34bf215546Sopenharmony_ci * Extensions removed: _nomatch_^
35bf215546Sopenharmony_ci */
36bf215546Sopenharmony_ci
37bf215546Sopenharmony_ci#ifndef EGL_VERSION_1_0
38bf215546Sopenharmony_ci#define EGL_VERSION_1_0 1
39bf215546Sopenharmony_citypedef unsigned int EGLBoolean;
40bf215546Sopenharmony_citypedef void *EGLDisplay;
41bf215546Sopenharmony_ci#include <KHR/khrplatform.h>
42bf215546Sopenharmony_ci#include <EGL/eglplatform.h>
43bf215546Sopenharmony_citypedef void *EGLConfig;
44bf215546Sopenharmony_citypedef void *EGLSurface;
45bf215546Sopenharmony_citypedef void *EGLContext;
46bf215546Sopenharmony_citypedef void (*__eglMustCastToProperFunctionPointerType)(void);
47bf215546Sopenharmony_ci#define EGL_ALPHA_SIZE                    0x3021
48bf215546Sopenharmony_ci#define EGL_BAD_ACCESS                    0x3002
49bf215546Sopenharmony_ci#define EGL_BAD_ALLOC                     0x3003
50bf215546Sopenharmony_ci#define EGL_BAD_ATTRIBUTE                 0x3004
51bf215546Sopenharmony_ci#define EGL_BAD_CONFIG                    0x3005
52bf215546Sopenharmony_ci#define EGL_BAD_CONTEXT                   0x3006
53bf215546Sopenharmony_ci#define EGL_BAD_CURRENT_SURFACE           0x3007
54bf215546Sopenharmony_ci#define EGL_BAD_DISPLAY                   0x3008
55bf215546Sopenharmony_ci#define EGL_BAD_MATCH                     0x3009
56bf215546Sopenharmony_ci#define EGL_BAD_NATIVE_PIXMAP             0x300A
57bf215546Sopenharmony_ci#define EGL_BAD_NATIVE_WINDOW             0x300B
58bf215546Sopenharmony_ci#define EGL_BAD_PARAMETER                 0x300C
59bf215546Sopenharmony_ci#define EGL_BAD_SURFACE                   0x300D
60bf215546Sopenharmony_ci#define EGL_BLUE_SIZE                     0x3022
61bf215546Sopenharmony_ci#define EGL_BUFFER_SIZE                   0x3020
62bf215546Sopenharmony_ci#define EGL_CONFIG_CAVEAT                 0x3027
63bf215546Sopenharmony_ci#define EGL_CONFIG_ID                     0x3028
64bf215546Sopenharmony_ci#define EGL_CORE_NATIVE_ENGINE            0x305B
65bf215546Sopenharmony_ci#define EGL_DEPTH_SIZE                    0x3025
66bf215546Sopenharmony_ci#define EGL_DONT_CARE                     EGL_CAST(EGLint,-1)
67bf215546Sopenharmony_ci#define EGL_DRAW                          0x3059
68bf215546Sopenharmony_ci#define EGL_EXTENSIONS                    0x3055
69bf215546Sopenharmony_ci#define EGL_FALSE                         0
70bf215546Sopenharmony_ci#define EGL_GREEN_SIZE                    0x3023
71bf215546Sopenharmony_ci#define EGL_HEIGHT                        0x3056
72bf215546Sopenharmony_ci#define EGL_LARGEST_PBUFFER               0x3058
73bf215546Sopenharmony_ci#define EGL_LEVEL                         0x3029
74bf215546Sopenharmony_ci#define EGL_MAX_PBUFFER_HEIGHT            0x302A
75bf215546Sopenharmony_ci#define EGL_MAX_PBUFFER_PIXELS            0x302B
76bf215546Sopenharmony_ci#define EGL_MAX_PBUFFER_WIDTH             0x302C
77bf215546Sopenharmony_ci#define EGL_NATIVE_RENDERABLE             0x302D
78bf215546Sopenharmony_ci#define EGL_NATIVE_VISUAL_ID              0x302E
79bf215546Sopenharmony_ci#define EGL_NATIVE_VISUAL_TYPE            0x302F
80bf215546Sopenharmony_ci#define EGL_NONE                          0x3038
81bf215546Sopenharmony_ci#define EGL_NON_CONFORMANT_CONFIG         0x3051
82bf215546Sopenharmony_ci#define EGL_NOT_INITIALIZED               0x3001
83bf215546Sopenharmony_ci#define EGL_NO_CONTEXT                    EGL_CAST(EGLContext,0)
84bf215546Sopenharmony_ci#define EGL_NO_DISPLAY                    EGL_CAST(EGLDisplay,0)
85bf215546Sopenharmony_ci#define EGL_NO_SURFACE                    EGL_CAST(EGLSurface,0)
86bf215546Sopenharmony_ci#define EGL_PBUFFER_BIT                   0x0001
87bf215546Sopenharmony_ci#define EGL_PIXMAP_BIT                    0x0002
88bf215546Sopenharmony_ci#define EGL_READ                          0x305A
89bf215546Sopenharmony_ci#define EGL_RED_SIZE                      0x3024
90bf215546Sopenharmony_ci#define EGL_SAMPLES                       0x3031
91bf215546Sopenharmony_ci#define EGL_SAMPLE_BUFFERS                0x3032
92bf215546Sopenharmony_ci#define EGL_SLOW_CONFIG                   0x3050
93bf215546Sopenharmony_ci#define EGL_STENCIL_SIZE                  0x3026
94bf215546Sopenharmony_ci#define EGL_SUCCESS                       0x3000
95bf215546Sopenharmony_ci#define EGL_SURFACE_TYPE                  0x3033
96bf215546Sopenharmony_ci#define EGL_TRANSPARENT_BLUE_VALUE        0x3035
97bf215546Sopenharmony_ci#define EGL_TRANSPARENT_GREEN_VALUE       0x3036
98bf215546Sopenharmony_ci#define EGL_TRANSPARENT_RED_VALUE         0x3037
99bf215546Sopenharmony_ci#define EGL_TRANSPARENT_RGB               0x3052
100bf215546Sopenharmony_ci#define EGL_TRANSPARENT_TYPE              0x3034
101bf215546Sopenharmony_ci#define EGL_TRUE                          1
102bf215546Sopenharmony_ci#define EGL_VENDOR                        0x3053
103bf215546Sopenharmony_ci#define EGL_VERSION                       0x3054
104bf215546Sopenharmony_ci#define EGL_WIDTH                         0x3057
105bf215546Sopenharmony_ci#define EGL_WINDOW_BIT                    0x0004
106bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLCHOOSECONFIGPROC) (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
107bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLCOPYBUFFERSPROC) (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
108bf215546Sopenharmony_citypedef EGLContext (EGLAPIENTRYP PFNEGLCREATECONTEXTPROC) (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list);
109bf215546Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPBUFFERSURFACEPROC) (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
110bf215546Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEPROC) (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list);
111bf215546Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEWINDOWSURFACEPROC) (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
112bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYCONTEXTPROC) (EGLDisplay dpy, EGLContext ctx);
113bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSURFACEPROC) (EGLDisplay dpy, EGLSurface surface);
114bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETCONFIGATTRIBPROC) (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
115bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETCONFIGSPROC) (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
116bf215546Sopenharmony_citypedef EGLDisplay (EGLAPIENTRYP PFNEGLGETCURRENTDISPLAYPROC) (void);
117bf215546Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLGETCURRENTSURFACEPROC) (EGLint readdraw);
118bf215546Sopenharmony_citypedef EGLDisplay (EGLAPIENTRYP PFNEGLGETDISPLAYPROC) (EGLNativeDisplayType display_id);
119bf215546Sopenharmony_citypedef EGLint (EGLAPIENTRYP PFNEGLGETERRORPROC) (void);
120bf215546Sopenharmony_citypedef __eglMustCastToProperFunctionPointerType (EGLAPIENTRYP PFNEGLGETPROCADDRESSPROC) (const char *procname);
121bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLINITIALIZEPROC) (EGLDisplay dpy, EGLint *major, EGLint *minor);
122bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLMAKECURRENTPROC) (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
123bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYCONTEXTPROC) (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value);
124bf215546Sopenharmony_citypedef const char *(EGLAPIENTRYP PFNEGLQUERYSTRINGPROC) (EGLDisplay dpy, EGLint name);
125bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value);
126bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSPROC) (EGLDisplay dpy, EGLSurface surface);
127bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLTERMINATEPROC) (EGLDisplay dpy);
128bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLWAITGLPROC) (void);
129bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLWAITNATIVEPROC) (EGLint engine);
130bf215546Sopenharmony_ci#if EGL_EGL_PROTOTYPES
131bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
132bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
133bf215546Sopenharmony_ciEGLAPI EGLContext EGLAPIENTRY eglCreateContext (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list);
134bf215546Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
135bf215546Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list);
136bf215546Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
137bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext (EGLDisplay dpy, EGLContext ctx);
138bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface (EGLDisplay dpy, EGLSurface surface);
139bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
140bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
141bf215546Sopenharmony_ciEGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay (void);
142bf215546Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface (EGLint readdraw);
143bf215546Sopenharmony_ciEGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay (EGLNativeDisplayType display_id);
144bf215546Sopenharmony_ciEGLAPI EGLint EGLAPIENTRY eglGetError (void);
145bf215546Sopenharmony_ciEGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress (const char *procname);
146bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglInitialize (EGLDisplay dpy, EGLint *major, EGLint *minor);
147bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
148bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglQueryContext (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value);
149bf215546Sopenharmony_ciEGLAPI const char *EGLAPIENTRY eglQueryString (EGLDisplay dpy, EGLint name);
150bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value);
151bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers (EGLDisplay dpy, EGLSurface surface);
152bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglTerminate (EGLDisplay dpy);
153bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglWaitGL (void);
154bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglWaitNative (EGLint engine);
155bf215546Sopenharmony_ci#endif
156bf215546Sopenharmony_ci#endif /* EGL_VERSION_1_0 */
157bf215546Sopenharmony_ci
158bf215546Sopenharmony_ci#ifndef EGL_VERSION_1_1
159bf215546Sopenharmony_ci#define EGL_VERSION_1_1 1
160bf215546Sopenharmony_ci#define EGL_BACK_BUFFER                   0x3084
161bf215546Sopenharmony_ci#define EGL_BIND_TO_TEXTURE_RGB           0x3039
162bf215546Sopenharmony_ci#define EGL_BIND_TO_TEXTURE_RGBA          0x303A
163bf215546Sopenharmony_ci#define EGL_CONTEXT_LOST                  0x300E
164bf215546Sopenharmony_ci#define EGL_MIN_SWAP_INTERVAL             0x303B
165bf215546Sopenharmony_ci#define EGL_MAX_SWAP_INTERVAL             0x303C
166bf215546Sopenharmony_ci#define EGL_MIPMAP_TEXTURE                0x3082
167bf215546Sopenharmony_ci#define EGL_MIPMAP_LEVEL                  0x3083
168bf215546Sopenharmony_ci#define EGL_NO_TEXTURE                    0x305C
169bf215546Sopenharmony_ci#define EGL_TEXTURE_2D                    0x305F
170bf215546Sopenharmony_ci#define EGL_TEXTURE_FORMAT                0x3080
171bf215546Sopenharmony_ci#define EGL_TEXTURE_RGB                   0x305D
172bf215546Sopenharmony_ci#define EGL_TEXTURE_RGBA                  0x305E
173bf215546Sopenharmony_ci#define EGL_TEXTURE_TARGET                0x3081
174bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDTEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
175bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLRELEASETEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
176bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLSURFACEATTRIBPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
177bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPINTERVALPROC) (EGLDisplay dpy, EGLint interval);
178bf215546Sopenharmony_ci#if EGL_EGL_PROTOTYPES
179bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
180bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
181bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
182bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval (EGLDisplay dpy, EGLint interval);
183bf215546Sopenharmony_ci#endif
184bf215546Sopenharmony_ci#endif /* EGL_VERSION_1_1 */
185bf215546Sopenharmony_ci
186bf215546Sopenharmony_ci#ifndef EGL_VERSION_1_2
187bf215546Sopenharmony_ci#define EGL_VERSION_1_2 1
188bf215546Sopenharmony_citypedef unsigned int EGLenum;
189bf215546Sopenharmony_citypedef void *EGLClientBuffer;
190bf215546Sopenharmony_ci#define EGL_ALPHA_FORMAT                  0x3088
191bf215546Sopenharmony_ci#define EGL_ALPHA_FORMAT_NONPRE           0x308B
192bf215546Sopenharmony_ci#define EGL_ALPHA_FORMAT_PRE              0x308C
193bf215546Sopenharmony_ci#define EGL_ALPHA_MASK_SIZE               0x303E
194bf215546Sopenharmony_ci#define EGL_BUFFER_PRESERVED              0x3094
195bf215546Sopenharmony_ci#define EGL_BUFFER_DESTROYED              0x3095
196bf215546Sopenharmony_ci#define EGL_CLIENT_APIS                   0x308D
197bf215546Sopenharmony_ci#define EGL_COLORSPACE                    0x3087
198bf215546Sopenharmony_ci#define EGL_COLORSPACE_sRGB               0x3089
199bf215546Sopenharmony_ci#define EGL_COLORSPACE_LINEAR             0x308A
200bf215546Sopenharmony_ci#define EGL_COLOR_BUFFER_TYPE             0x303F
201bf215546Sopenharmony_ci#define EGL_CONTEXT_CLIENT_TYPE           0x3097
202bf215546Sopenharmony_ci#define EGL_DISPLAY_SCALING               10000
203bf215546Sopenharmony_ci#define EGL_HORIZONTAL_RESOLUTION         0x3090
204bf215546Sopenharmony_ci#define EGL_LUMINANCE_BUFFER              0x308F
205bf215546Sopenharmony_ci#define EGL_LUMINANCE_SIZE                0x303D
206bf215546Sopenharmony_ci#define EGL_OPENGL_ES_BIT                 0x0001
207bf215546Sopenharmony_ci#define EGL_OPENVG_BIT                    0x0002
208bf215546Sopenharmony_ci#define EGL_OPENGL_ES_API                 0x30A0
209bf215546Sopenharmony_ci#define EGL_OPENVG_API                    0x30A1
210bf215546Sopenharmony_ci#define EGL_OPENVG_IMAGE                  0x3096
211bf215546Sopenharmony_ci#define EGL_PIXEL_ASPECT_RATIO            0x3092
212bf215546Sopenharmony_ci#define EGL_RENDERABLE_TYPE               0x3040
213bf215546Sopenharmony_ci#define EGL_RENDER_BUFFER                 0x3086
214bf215546Sopenharmony_ci#define EGL_RGB_BUFFER                    0x308E
215bf215546Sopenharmony_ci#define EGL_SINGLE_BUFFER                 0x3085
216bf215546Sopenharmony_ci#define EGL_SWAP_BEHAVIOR                 0x3093
217bf215546Sopenharmony_ci#define EGL_UNKNOWN                       EGL_CAST(EGLint,-1)
218bf215546Sopenharmony_ci#define EGL_VERTICAL_RESOLUTION           0x3091
219bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDAPIPROC) (EGLenum api);
220bf215546Sopenharmony_citypedef EGLenum (EGLAPIENTRYP PFNEGLQUERYAPIPROC) (void);
221bf215546Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC) (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list);
222bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLRELEASETHREADPROC) (void);
223bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLWAITCLIENTPROC) (void);
224bf215546Sopenharmony_ci#if EGL_EGL_PROTOTYPES
225bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglBindAPI (EGLenum api);
226bf215546Sopenharmony_ciEGLAPI EGLenum EGLAPIENTRY eglQueryAPI (void);
227bf215546Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list);
228bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglReleaseThread (void);
229bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglWaitClient (void);
230bf215546Sopenharmony_ci#endif
231bf215546Sopenharmony_ci#endif /* EGL_VERSION_1_2 */
232bf215546Sopenharmony_ci
233bf215546Sopenharmony_ci#ifndef EGL_VERSION_1_3
234bf215546Sopenharmony_ci#define EGL_VERSION_1_3 1
235bf215546Sopenharmony_ci#define EGL_CONFORMANT                    0x3042
236bf215546Sopenharmony_ci#define EGL_CONTEXT_CLIENT_VERSION        0x3098
237bf215546Sopenharmony_ci#define EGL_MATCH_NATIVE_PIXMAP           0x3041
238bf215546Sopenharmony_ci#define EGL_OPENGL_ES2_BIT                0x0004
239bf215546Sopenharmony_ci#define EGL_VG_ALPHA_FORMAT               0x3088
240bf215546Sopenharmony_ci#define EGL_VG_ALPHA_FORMAT_NONPRE        0x308B
241bf215546Sopenharmony_ci#define EGL_VG_ALPHA_FORMAT_PRE           0x308C
242bf215546Sopenharmony_ci#define EGL_VG_ALPHA_FORMAT_PRE_BIT       0x0040
243bf215546Sopenharmony_ci#define EGL_VG_COLORSPACE                 0x3087
244bf215546Sopenharmony_ci#define EGL_VG_COLORSPACE_sRGB            0x3089
245bf215546Sopenharmony_ci#define EGL_VG_COLORSPACE_LINEAR          0x308A
246bf215546Sopenharmony_ci#define EGL_VG_COLORSPACE_LINEAR_BIT      0x0020
247bf215546Sopenharmony_ci#endif /* EGL_VERSION_1_3 */
248bf215546Sopenharmony_ci
249bf215546Sopenharmony_ci#ifndef EGL_VERSION_1_4
250bf215546Sopenharmony_ci#define EGL_VERSION_1_4 1
251bf215546Sopenharmony_ci#define EGL_DEFAULT_DISPLAY               EGL_CAST(EGLNativeDisplayType,0)
252bf215546Sopenharmony_ci#define EGL_MULTISAMPLE_RESOLVE_BOX_BIT   0x0200
253bf215546Sopenharmony_ci#define EGL_MULTISAMPLE_RESOLVE           0x3099
254bf215546Sopenharmony_ci#define EGL_MULTISAMPLE_RESOLVE_DEFAULT   0x309A
255bf215546Sopenharmony_ci#define EGL_MULTISAMPLE_RESOLVE_BOX       0x309B
256bf215546Sopenharmony_ci#define EGL_OPENGL_API                    0x30A2
257bf215546Sopenharmony_ci#define EGL_OPENGL_BIT                    0x0008
258bf215546Sopenharmony_ci#define EGL_SWAP_BEHAVIOR_PRESERVED_BIT   0x0400
259bf215546Sopenharmony_citypedef EGLContext (EGLAPIENTRYP PFNEGLGETCURRENTCONTEXTPROC) (void);
260bf215546Sopenharmony_ci#if EGL_EGL_PROTOTYPES
261bf215546Sopenharmony_ciEGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext (void);
262bf215546Sopenharmony_ci#endif
263bf215546Sopenharmony_ci#endif /* EGL_VERSION_1_4 */
264bf215546Sopenharmony_ci
265bf215546Sopenharmony_ci#ifndef EGL_VERSION_1_5
266bf215546Sopenharmony_ci#define EGL_VERSION_1_5 1
267bf215546Sopenharmony_citypedef void *EGLSync;
268bf215546Sopenharmony_citypedef intptr_t EGLAttrib;
269bf215546Sopenharmony_citypedef khronos_utime_nanoseconds_t EGLTime;
270bf215546Sopenharmony_citypedef void *EGLImage;
271bf215546Sopenharmony_ci#define EGL_CONTEXT_MAJOR_VERSION         0x3098
272bf215546Sopenharmony_ci#define EGL_CONTEXT_MINOR_VERSION         0x30FB
273bf215546Sopenharmony_ci#define EGL_CONTEXT_OPENGL_PROFILE_MASK   0x30FD
274bf215546Sopenharmony_ci#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
275bf215546Sopenharmony_ci#define EGL_NO_RESET_NOTIFICATION         0x31BE
276bf215546Sopenharmony_ci#define EGL_LOSE_CONTEXT_ON_RESET         0x31BF
277bf215546Sopenharmony_ci#define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001
278bf215546Sopenharmony_ci#define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002
279bf215546Sopenharmony_ci#define EGL_CONTEXT_OPENGL_DEBUG          0x31B0
280bf215546Sopenharmony_ci#define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1
281bf215546Sopenharmony_ci#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS  0x31B2
282bf215546Sopenharmony_ci#define EGL_OPENGL_ES3_BIT                0x00000040
283bf215546Sopenharmony_ci#define EGL_CL_EVENT_HANDLE               0x309C
284bf215546Sopenharmony_ci#define EGL_SYNC_CL_EVENT                 0x30FE
285bf215546Sopenharmony_ci#define EGL_SYNC_CL_EVENT_COMPLETE        0x30FF
286bf215546Sopenharmony_ci#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE  0x30F0
287bf215546Sopenharmony_ci#define EGL_SYNC_TYPE                     0x30F7
288bf215546Sopenharmony_ci#define EGL_SYNC_STATUS                   0x30F1
289bf215546Sopenharmony_ci#define EGL_SYNC_CONDITION                0x30F8
290bf215546Sopenharmony_ci#define EGL_SIGNALED                      0x30F2
291bf215546Sopenharmony_ci#define EGL_UNSIGNALED                    0x30F3
292bf215546Sopenharmony_ci#define EGL_SYNC_FLUSH_COMMANDS_BIT       0x0001
293bf215546Sopenharmony_ci#define EGL_FOREVER                       0xFFFFFFFFFFFFFFFFull
294bf215546Sopenharmony_ci#define EGL_TIMEOUT_EXPIRED               0x30F5
295bf215546Sopenharmony_ci#define EGL_CONDITION_SATISFIED           0x30F6
296bf215546Sopenharmony_ci#define EGL_NO_SYNC                       EGL_CAST(EGLSync,0)
297bf215546Sopenharmony_ci#define EGL_SYNC_FENCE                    0x30F9
298bf215546Sopenharmony_ci#define EGL_GL_COLORSPACE                 0x309D
299bf215546Sopenharmony_ci#define EGL_GL_COLORSPACE_SRGB            0x3089
300bf215546Sopenharmony_ci#define EGL_GL_COLORSPACE_LINEAR          0x308A
301bf215546Sopenharmony_ci#define EGL_GL_RENDERBUFFER               0x30B9
302bf215546Sopenharmony_ci#define EGL_GL_TEXTURE_2D                 0x30B1
303bf215546Sopenharmony_ci#define EGL_GL_TEXTURE_LEVEL              0x30BC
304bf215546Sopenharmony_ci#define EGL_GL_TEXTURE_3D                 0x30B2
305bf215546Sopenharmony_ci#define EGL_GL_TEXTURE_ZOFFSET            0x30BD
306bf215546Sopenharmony_ci#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3
307bf215546Sopenharmony_ci#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4
308bf215546Sopenharmony_ci#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5
309bf215546Sopenharmony_ci#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6
310bf215546Sopenharmony_ci#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7
311bf215546Sopenharmony_ci#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8
312bf215546Sopenharmony_ci#define EGL_IMAGE_PRESERVED               0x30D2
313bf215546Sopenharmony_ci#define EGL_NO_IMAGE                      EGL_CAST(EGLImage,0)
314bf215546Sopenharmony_citypedef EGLSync (EGLAPIENTRYP PFNEGLCREATESYNCPROC) (EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list);
315bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCPROC) (EGLDisplay dpy, EGLSync sync);
316bf215546Sopenharmony_citypedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCPROC) (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout);
317bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBPROC) (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value);
318bf215546Sopenharmony_citypedef EGLImage (EGLAPIENTRYP PFNEGLCREATEIMAGEPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list);
319bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEPROC) (EGLDisplay dpy, EGLImage image);
320bf215546Sopenharmony_citypedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYPROC) (EGLenum platform, void *native_display, const EGLAttrib *attrib_list);
321bf215546Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list);
322bf215546Sopenharmony_citypedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list);
323bf215546Sopenharmony_citypedef EGLBoolean (EGLAPIENTRYP PFNEGLWAITSYNCPROC) (EGLDisplay dpy, EGLSync sync, EGLint flags);
324bf215546Sopenharmony_ci#if EGL_EGL_PROTOTYPES
325bf215546Sopenharmony_ciEGLAPI EGLSync EGLAPIENTRY eglCreateSync (EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list);
326bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglDestroySync (EGLDisplay dpy, EGLSync sync);
327bf215546Sopenharmony_ciEGLAPI EGLint EGLAPIENTRY eglClientWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout);
328bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttrib (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value);
329bf215546Sopenharmony_ciEGLAPI EGLImage EGLAPIENTRY eglCreateImage (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list);
330bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglDestroyImage (EGLDisplay dpy, EGLImage image);
331bf215546Sopenharmony_ciEGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplay (EGLenum platform, void *native_display, const EGLAttrib *attrib_list);
332bf215546Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurface (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list);
333bf215546Sopenharmony_ciEGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurface (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list);
334bf215546Sopenharmony_ciEGLAPI EGLBoolean EGLAPIENTRY eglWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags);
335bf215546Sopenharmony_ci#endif
336bf215546Sopenharmony_ci#endif /* EGL_VERSION_1_5 */
337bf215546Sopenharmony_ci
338bf215546Sopenharmony_ci#ifdef __cplusplus
339bf215546Sopenharmony_ci}
340bf215546Sopenharmony_ci#endif
341bf215546Sopenharmony_ci
342bf215546Sopenharmony_ci#endif
343