egl.c 1.5.0 → 1.5.2

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