Diligent Engine API Reference: D:/GitHub/DiligentEngine/DiligentCore/External/glew/include/GL/eglew.h Source File

Diligent Engine API Reference

eglew.h
1 /*
2 ** The OpenGL Extension Wrangler Library
3 ** Copyright (C) 2008-2017, Nigel Stewart <nigels[]users sourceforge net>
4 ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
5 ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
6 ** Copyright (C) 2002, Lev Povalahev
7 ** All rights reserved.
8 **
9 ** Redistribution and use in source and binary forms, with or without
10 ** modification, are permitted provided that the following conditions are met:
11 **
12 ** * Redistributions of source code must retain the above copyright notice,
13 ** this list of conditions and the following disclaimer.
14 ** * Redistributions in binary form must reproduce the above copyright notice,
15 ** this list of conditions and the following disclaimer in the documentation
16 ** and/or other materials provided with the distribution.
17 ** * The name of the author may be used to endorse or promote products
18 ** derived from this software without specific prior written permission.
19 **
20 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24 ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 ** THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33 /*
34 * Mesa 3-D graphics library
35 * Version: 7.0
36 *
37 * Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
38 *
39 * Permission is hereby granted, free of charge, to any person obtaining a
40 * copy of this software and associated documentation files (the "Software"),
41 * to deal in the Software without restriction, including without limitation
42 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
43 * and/or sell copies of the Software, and to permit persons to whom the
44 * Software is furnished to do so, subject to the following conditions:
45 *
46 * The above copyright notice and this permission notice shall be included
47 * in all copies or substantial portions of the Software.
48 *
49 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
50 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
51 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
52 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
53 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
54 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
55 */
56
57 /*
58 ** Copyright (c) 2007 The Khronos Group Inc.
59 **
60 ** Permission is hereby granted, free of charge, to any person obtaining a
61 ** copy of this software and/or associated documentation files (the
62 ** "Materials"), to deal in the Materials without restriction, including
63 ** without limitation the rights to use, copy, modify, merge, publish,
64 ** distribute, sublicense, and/or sell copies of the Materials, and to
65 ** permit persons to whom the Materials are furnished to do so, subject to
66 ** the following conditions:
67 **
68 ** The above copyright notice and this permission notice shall be included
69 ** in all copies or substantial portions of the Materials.
70 **
71 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
72 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
73 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
74 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
75 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
76 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
77 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
78 */
79
80 #ifndef __eglew_h__
81 #define __eglew_h__
82 #define __EGLEW_H__
83
84 #ifdef __eglext_h_
85 #error eglext.h included before eglew.h
86 #endif
87
88 #if defined(__egl_h_)
89 #error egl.h included before eglew.h
90 #endif
91
92 #define __eglext_h_
93
94 #define __egl_h_
95
96 #ifndef EGLAPIENTRY
97 #define EGLAPIENTRY
98 #endif
99 #ifndef EGLAPI
100 #define EGLAPI extern
101 #endif
102
103 /* EGL Types */
104 #include <sys/types.h>
105
106 #include <KHR/khrplatform.h>
107 #include <EGL/eglplatform.h>
108
109 #include <GL/glew.h>
110
111 #ifdef __cplusplus
112 extern "C" {
113 #endif
114
115 typedef int32_t EGLint;
116
117 typedef unsigned int EGLBoolean;
118 typedef void *EGLDisplay;
119 typedef void *EGLConfig;
120 typedef void *EGLSurface;
121 typedef void *EGLContext;
122 typedef void (*__eglMustCastToProperFunctionPointerType)(void);
123
124 typedef unsigned int EGLenum;
125 typedef void *EGLClientBuffer;
126
127 typedef void *EGLSync;
128 typedef intptr_t EGLAttrib;
129 typedef khronos_utime_nanoseconds_t EGLTime;
130 typedef void *EGLImage;
131
132 typedef void *EGLSyncKHR;
133 typedef intptr_t EGLAttribKHR;
134 typedef void *EGLLabelKHR;
135 typedef void *EGLObjectKHR;
136 typedef void (EGLAPIENTRY *EGLDEBUGPROCKHR)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message);
137 typedef khronos_utime_nanoseconds_t EGLTimeKHR;
138 typedef void *EGLImageKHR;
139 typedef void *EGLStreamKHR;
140 typedef khronos_uint64_t EGLuint64KHR;
141 typedef int EGLNativeFileDescriptorKHR;
142 typedef khronos_ssize_t EGLsizeiANDROID;
143 typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
144 typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
145 typedef void *EGLDeviceEXT;
146 typedef void *EGLOutputLayerEXT;
147 typedef void *EGLOutputPortEXT;
148 typedef void *EGLSyncNV;
149 typedef khronos_utime_nanoseconds_t EGLTimeNV;
150 typedef khronos_utime_nanoseconds_t EGLuint64NV;
151 typedef khronos_stime_nanoseconds_t EGLnsecsANDROID;
152
153 struct EGLClientPixmapHI;
154
155 #define EGL_DONT_CARE ((EGLint)-1)
156
157 #define EGL_NO_CONTEXT ((EGLContext)0)
158 #define EGL_NO_DISPLAY ((EGLDisplay)0)
159 #define EGL_NO_IMAGE ((EGLImage)0)
160 #define EGL_NO_SURFACE ((EGLSurface)0)
161 #define EGL_NO_SYNC ((EGLSync)0)
162
163 #define EGL_UNKNOWN ((EGLint)-1)
164
165 #define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType)0)
166
167 EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress (const char *procname);
168 /* ---------------------------- EGL_VERSION_1_0 ---------------------------- */
169
170 #ifndef EGL_VERSION_1_0
171 #define EGL_VERSION_1_0 1
172
173 #define EGL_FALSE 0
174 #define EGL_PBUFFER_BIT 0x0001
175 #define EGL_TRUE 1
176 #define EGL_PIXMAP_BIT 0x0002
177 #define EGL_WINDOW_BIT 0x0004
178 #define EGL_SUCCESS 0x3000
179 #define EGL_NOT_INITIALIZED 0x3001
180 #define EGL_BAD_ACCESS 0x3002
181 #define EGL_BAD_ALLOC 0x3003
182 #define EGL_BAD_ATTRIBUTE 0x3004
183 #define EGL_BAD_CONFIG 0x3005
184 #define EGL_BAD_CONTEXT 0x3006
185 #define EGL_BAD_CURRENT_SURFACE 0x3007
186 #define EGL_BAD_DISPLAY 0x3008
187 #define EGL_BAD_MATCH 0x3009
188 #define EGL_BAD_NATIVE_PIXMAP 0x300A
189 #define EGL_BAD_NATIVE_WINDOW 0x300B
190 #define EGL_BAD_PARAMETER 0x300C
191 #define EGL_BAD_SURFACE 0x300D
192 #define EGL_BUFFER_SIZE 0x3020
193 #define EGL_ALPHA_SIZE 0x3021
194 #define EGL_BLUE_SIZE 0x3022
195 #define EGL_GREEN_SIZE 0x3023
196 #define EGL_RED_SIZE 0x3024
197 #define EGL_DEPTH_SIZE 0x3025
198 #define EGL_STENCIL_SIZE 0x3026
199 #define EGL_CONFIG_CAVEAT 0x3027
200 #define EGL_CONFIG_ID 0x3028
201 #define EGL_LEVEL 0x3029
202 #define EGL_MAX_PBUFFER_HEIGHT 0x302A
203 #define EGL_MAX_PBUFFER_PIXELS 0x302B
204 #define EGL_MAX_PBUFFER_WIDTH 0x302C
205 #define EGL_NATIVE_RENDERABLE 0x302D
206 #define EGL_NATIVE_VISUAL_ID 0x302E
207 #define EGL_NATIVE_VISUAL_TYPE 0x302F
208 #define EGL_SAMPLES 0x3031
209 #define EGL_SAMPLE_BUFFERS 0x3032
210 #define EGL_SURFACE_TYPE 0x3033
211 #define EGL_TRANSPARENT_TYPE 0x3034
212 #define EGL_TRANSPARENT_BLUE_VALUE 0x3035
213 #define EGL_TRANSPARENT_GREEN_VALUE 0x3036
214 #define EGL_TRANSPARENT_RED_VALUE 0x3037
215 #define EGL_NONE 0x3038
216 #define EGL_SLOW_CONFIG 0x3050
217 #define EGL_NON_CONFORMANT_CONFIG 0x3051
218 #define EGL_TRANSPARENT_RGB 0x3052
219 #define EGL_VENDOR 0x3053
220 #define EGL_VERSION 0x3054
221 #define EGL_EXTENSIONS 0x3055
222 #define EGL_HEIGHT 0x3056
223 #define EGL_WIDTH 0x3057
224 #define EGL_LARGEST_PBUFFER 0x3058
225 #define EGL_DRAW 0x3059
226 #define EGL_READ 0x305A
227 #define EGL_CORE_NATIVE_ENGINE 0x305B
228
229 typedef EGLBoolean ( * PFNEGLCHOOSECONFIGPROC) (EGLDisplay dpy, const EGLint * attrib_list, EGLConfig * configs, EGLint config_size, EGLint * num_config);
230 typedef EGLBoolean ( * PFNEGLCOPYBUFFERSPROC) (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
231 typedef EGLContext ( * PFNEGLCREATECONTEXTPROC) (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint * attrib_list);
232 typedef EGLSurface ( * PFNEGLCREATEPBUFFERSURFACEPROC) (EGLDisplay dpy, EGLConfig config, const EGLint * attrib_list);
233 typedef EGLSurface ( * PFNEGLCREATEPIXMAPSURFACEPROC) (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint * attrib_list);
234 typedef EGLSurface ( * PFNEGLCREATEWINDOWSURFACEPROC) (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint * attrib_list);
235 typedef EGLBoolean ( * PFNEGLDESTROYCONTEXTPROC) (EGLDisplay dpy, EGLContext ctx);
236 typedef EGLBoolean ( * PFNEGLDESTROYSURFACEPROC) (EGLDisplay dpy, EGLSurface surface);
237 typedef EGLBoolean ( * PFNEGLGETCONFIGATTRIBPROC) (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint * value);
238 typedef EGLBoolean ( * PFNEGLGETCONFIGSPROC) (EGLDisplay dpy, EGLConfig * configs, EGLint config_size, EGLint * num_config);
239 typedef EGLDisplay ( * PFNEGLGETCURRENTDISPLAYPROC) ( void );
240 typedef EGLSurface ( * PFNEGLGETCURRENTSURFACEPROC) (EGLint readdraw);
241 typedef EGLDisplay ( * PFNEGLGETDISPLAYPROC) (EGLNativeDisplayType display_id);
242 typedef EGLint ( * PFNEGLGETERRORPROC) ( void );
243 typedef EGLBoolean ( * PFNEGLINITIALIZEPROC) (EGLDisplay dpy, EGLint * major, EGLint * minor);
244 typedef EGLBoolean ( * PFNEGLMAKECURRENTPROC) (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
245 typedef EGLBoolean ( * PFNEGLQUERYCONTEXTPROC) (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint * value);
246 typedef const char * ( * PFNEGLQUERYSTRINGPROC) (EGLDisplay dpy, EGLint name);
247 typedef EGLBoolean ( * PFNEGLQUERYSURFACEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint * value);
248 typedef EGLBoolean ( * PFNEGLSWAPBUFFERSPROC) (EGLDisplay dpy, EGLSurface surface);
249 typedef EGLBoolean ( * PFNEGLTERMINATEPROC) (EGLDisplay dpy);
250 typedef EGLBoolean ( * PFNEGLWAITGLPROC) ( void );
251 typedef EGLBoolean ( * PFNEGLWAITNATIVEPROC) (EGLint engine);
252
253 #define eglChooseConfig EGLEW_GET_FUN(__eglewChooseConfig)
254 #define eglCopyBuffers EGLEW_GET_FUN(__eglewCopyBuffers)
255 #define eglCreateContext EGLEW_GET_FUN(__eglewCreateContext)
256 #define eglCreatePbufferSurface EGLEW_GET_FUN(__eglewCreatePbufferSurface)
257 #define eglCreatePixmapSurface EGLEW_GET_FUN(__eglewCreatePixmapSurface)
258 #define eglCreateWindowSurface EGLEW_GET_FUN(__eglewCreateWindowSurface)
259 #define eglDestroyContext EGLEW_GET_FUN(__eglewDestroyContext)
260 #define eglDestroySurface EGLEW_GET_FUN(__eglewDestroySurface)
261 #define eglGetConfigAttrib EGLEW_GET_FUN(__eglewGetConfigAttrib)
262 #define eglGetConfigs EGLEW_GET_FUN(__eglewGetConfigs)
263 #define eglGetCurrentDisplay EGLEW_GET_FUN(__eglewGetCurrentDisplay)
264 #define eglGetCurrentSurface EGLEW_GET_FUN(__eglewGetCurrentSurface)
265 #define eglGetDisplay EGLEW_GET_FUN(__eglewGetDisplay)
266 #define eglGetError EGLEW_GET_FUN(__eglewGetError)
267 #define eglInitialize EGLEW_GET_FUN(__eglewInitialize)
268 #define eglMakeCurrent EGLEW_GET_FUN(__eglewMakeCurrent)
269 #define eglQueryContext EGLEW_GET_FUN(__eglewQueryContext)
270 #define eglQueryString EGLEW_GET_FUN(__eglewQueryString)
271 #define eglQuerySurface EGLEW_GET_FUN(__eglewQuerySurface)
272 #define eglSwapBuffers EGLEW_GET_FUN(__eglewSwapBuffers)
273 #define eglTerminate EGLEW_GET_FUN(__eglewTerminate)
274 #define eglWaitGL EGLEW_GET_FUN(__eglewWaitGL)
275 #define eglWaitNative EGLEW_GET_FUN(__eglewWaitNative)
276
277 #define EGLEW_VERSION_1_0 EGLEW_GET_VAR(__EGLEW_VERSION_1_0)
278
279 #endif /* EGL_VERSION_1_0 */
280
281 /* ---------------------------- EGL_VERSION_1_1 ---------------------------- */
282
283 #ifndef EGL_VERSION_1_1
284 #define EGL_VERSION_1_1 1
285
286 #define EGL_CONTEXT_LOST 0x300E
287 #define EGL_BIND_TO_TEXTURE_RGB 0x3039
288 #define EGL_BIND_TO_TEXTURE_RGBA 0x303A
289 #define EGL_MIN_SWAP_INTERVAL 0x303B
290 #define EGL_MAX_SWAP_INTERVAL 0x303C
291 #define EGL_NO_TEXTURE 0x305C
292 #define EGL_TEXTURE_RGB 0x305D
293 #define EGL_TEXTURE_RGBA 0x305E
294 #define EGL_TEXTURE_2D 0x305F
295 #define EGL_TEXTURE_FORMAT 0x3080
296 #define EGL_TEXTURE_TARGET 0x3081
297 #define EGL_MIPMAP_TEXTURE 0x3082
298 #define EGL_MIPMAP_LEVEL 0x3083
299 #define EGL_BACK_BUFFER 0x3084
300
301 typedef EGLBoolean ( * PFNEGLBINDTEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
302 typedef EGLBoolean ( * PFNEGLRELEASETEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
303 typedef EGLBoolean ( * PFNEGLSURFACEATTRIBPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
304 typedef EGLBoolean ( * PFNEGLSWAPINTERVALPROC) (EGLDisplay dpy, EGLint interval);
305
306 #define eglBindTexImage EGLEW_GET_FUN(__eglewBindTexImage)
307 #define eglReleaseTexImage EGLEW_GET_FUN(__eglewReleaseTexImage)
308 #define eglSurfaceAttrib EGLEW_GET_FUN(__eglewSurfaceAttrib)
309 #define eglSwapInterval EGLEW_GET_FUN(__eglewSwapInterval)
310
311 #define EGLEW_VERSION_1_1 EGLEW_GET_VAR(__EGLEW_VERSION_1_1)
312
313 #endif /* EGL_VERSION_1_1 */
314
315 /* ---------------------------- EGL_VERSION_1_2 ---------------------------- */
316
317 #ifndef EGL_VERSION_1_2
318 #define EGL_VERSION_1_2 1
319
320 #define EGL_OPENGL_ES_BIT 0x0001
321 #define EGL_OPENVG_BIT 0x0002
322 #define EGL_LUMINANCE_SIZE 0x303D
323 #define EGL_ALPHA_MASK_SIZE 0x303E
324 #define EGL_COLOR_BUFFER_TYPE 0x303F
325 #define EGL_RENDERABLE_TYPE 0x3040
326 #define EGL_SINGLE_BUFFER 0x3085
327 #define EGL_RENDER_BUFFER 0x3086
328 #define EGL_COLORSPACE 0x3087
329 #define EGL_ALPHA_FORMAT 0x3088
330 #define EGL_COLORSPACE_LINEAR 0x308A
331 #define EGL_ALPHA_FORMAT_NONPRE 0x308B
332 #define EGL_ALPHA_FORMAT_PRE 0x308C
333 #define EGL_CLIENT_APIS 0x308D
334 #define EGL_RGB_BUFFER 0x308E
335 #define EGL_LUMINANCE_BUFFER 0x308F
336 #define EGL_HORIZONTAL_RESOLUTION 0x3090
337 #define EGL_VERTICAL_RESOLUTION 0x3091
338 #define EGL_PIXEL_ASPECT_RATIO 0x3092
339 #define EGL_SWAP_BEHAVIOR 0x3093
340 #define EGL_BUFFER_PRESERVED 0x3094
341 #define EGL_BUFFER_DESTROYED 0x3095
342 #define EGL_OPENVG_IMAGE 0x3096
343 #define EGL_CONTEXT_CLIENT_TYPE 0x3097
344 #define EGL_OPENGL_ES_API 0x30A0
345 #define EGL_OPENVG_API 0x30A1
346 #define EGL_DISPLAY_SCALING 10000
347
348 typedef EGLBoolean ( * PFNEGLBINDAPIPROC) (EGLenum api);
349 typedef EGLSurface ( * PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC) (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint * attrib_list);
350 typedef EGLenum ( * PFNEGLQUERYAPIPROC) ( void );
351 typedef EGLBoolean ( * PFNEGLRELEASETHREADPROC) ( void );
352 typedef EGLBoolean ( * PFNEGLWAITCLIENTPROC) ( void );
353
354 #define eglBindAPI EGLEW_GET_FUN(__eglewBindAPI)
355 #define eglCreatePbufferFromClientBuffer EGLEW_GET_FUN(__eglewCreatePbufferFromClientBuffer)
356 #define eglQueryAPI EGLEW_GET_FUN(__eglewQueryAPI)
357 #define eglReleaseThread EGLEW_GET_FUN(__eglewReleaseThread)
358 #define eglWaitClient EGLEW_GET_FUN(__eglewWaitClient)
359
360 #define EGLEW_VERSION_1_2 EGLEW_GET_VAR(__EGLEW_VERSION_1_2)
361
362 #endif /* EGL_VERSION_1_2 */
363
364 /* ---------------------------- EGL_VERSION_1_3 ---------------------------- */
365
366 #ifndef EGL_VERSION_1_3
367 #define EGL_VERSION_1_3 1
368
369 #define EGL_OPENGL_ES2_BIT 0x0004
370 #define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020
371 #define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040
372 #define EGL_MATCH_NATIVE_PIXMAP 0x3041
373 #define EGL_CONFORMANT 0x3042
374 #define EGL_VG_COLORSPACE 0x3087
375 #define EGL_VG_ALPHA_FORMAT 0x3088
376 #define EGL_VG_COLORSPACE_LINEAR 0x308A
377 #define EGL_VG_ALPHA_FORMAT_NONPRE 0x308B
378 #define EGL_VG_ALPHA_FORMAT_PRE 0x308C
379 #define EGL_CONTEXT_CLIENT_VERSION 0x3098
380
381 #define EGLEW_VERSION_1_3 EGLEW_GET_VAR(__EGLEW_VERSION_1_3)
382
383 #endif /* EGL_VERSION_1_3 */
384
385 /* ---------------------------- EGL_VERSION_1_4 ---------------------------- */
386
387 #ifndef EGL_VERSION_1_4
388 #define EGL_VERSION_1_4 1
389
390 #define EGL_OPENGL_BIT 0x0008
391 #define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200
392 #define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400
393 #define EGL_MULTISAMPLE_RESOLVE 0x3099
394 #define EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A
395 #define EGL_MULTISAMPLE_RESOLVE_BOX 0x309B
396 #define EGL_OPENGL_API 0x30A2
397
398 typedef EGLContext ( * PFNEGLGETCURRENTCONTEXTPROC) ( void );
399
400 #define eglGetCurrentContext EGLEW_GET_FUN(__eglewGetCurrentContext)
401
402 #define EGLEW_VERSION_1_4 EGLEW_GET_VAR(__EGLEW_VERSION_1_4)
403
404 #endif /* EGL_VERSION_1_4 */
405
406 /* ---------------------------- EGL_VERSION_1_5 ---------------------------- */
407
408 #ifndef EGL_VERSION_1_5
409 #define EGL_VERSION_1_5 1
410
411 #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001
412 #define EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001
413 #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002
414 #define EGL_OPENGL_ES3_BIT 0x00000040
415 #define EGL_GL_COLORSPACE_SRGB 0x3089
416 #define EGL_GL_COLORSPACE_LINEAR 0x308A
417 #define EGL_CONTEXT_MAJOR_VERSION 0x3098
418 #define EGL_CL_EVENT_HANDLE 0x309C
419 #define EGL_GL_COLORSPACE 0x309D
420 #define EGL_GL_TEXTURE_2D 0x30B1
421 #define EGL_GL_TEXTURE_3D 0x30B2
422 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3
423 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4
424 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5
425 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6
426 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7
427 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8
428 #define EGL_GL_RENDERBUFFER 0x30B9
429 #define EGL_GL_TEXTURE_LEVEL 0x30BC
430 #define EGL_GL_TEXTURE_ZOFFSET 0x30BD
431 #define EGL_IMAGE_PRESERVED 0x30D2
432 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0
433 #define EGL_SYNC_STATUS 0x30F1
434 #define EGL_SIGNALED 0x30F2
435 #define EGL_UNSIGNALED 0x30F3
436 #define EGL_TIMEOUT_EXPIRED 0x30F5
437 #define EGL_CONDITION_SATISFIED 0x30F6
438 #define EGL_SYNC_TYPE 0x30F7
439 #define EGL_SYNC_CONDITION 0x30F8
440 #define EGL_SYNC_FENCE 0x30F9
441 #define EGL_CONTEXT_MINOR_VERSION 0x30FB
442 #define EGL_CONTEXT_OPENGL_PROFILE_MASK 0x30FD
443 #define EGL_SYNC_CL_EVENT 0x30FE
444 #define EGL_SYNC_CL_EVENT_COMPLETE 0x30FF
445 #define EGL_CONTEXT_OPENGL_DEBUG 0x31B0
446 #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1
447 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2
448 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
449 #define EGL_NO_RESET_NOTIFICATION 0x31BE
450 #define EGL_LOSE_CONTEXT_ON_RESET 0x31BF
451 #define EGL_FOREVER 0xFFFFFFFFFFFFFFFF
452
453 typedef EGLint ( * PFNEGLCLIENTWAITSYNCPROC) (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout);
454 typedef EGLImage ( * PFNEGLCREATEIMAGEPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib * attrib_list);
455 typedef EGLSurface ( * PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC) (EGLDisplay dpy, EGLConfig config, void * native_pixmap, const EGLAttrib * attrib_list);
456 typedef EGLSurface ( * PFNEGLCREATEPLATFORMWINDOWSURFACEPROC) (EGLDisplay dpy, EGLConfig config, void * native_window, const EGLAttrib * attrib_list);
457 typedef EGLSync ( * PFNEGLCREATESYNCPROC) (EGLDisplay dpy, EGLenum type, const EGLAttrib * attrib_list);
458 typedef EGLBoolean ( * PFNEGLDESTROYIMAGEPROC) (EGLDisplay dpy, EGLImage image);
459 typedef EGLBoolean ( * PFNEGLDESTROYSYNCPROC) (EGLDisplay dpy, EGLSync sync);
460 typedef EGLDisplay ( * PFNEGLGETPLATFORMDISPLAYPROC) (EGLenum platform, void * native_display, const EGLAttrib * attrib_list);
461 typedef EGLBoolean ( * PFNEGLGETSYNCATTRIBPROC) (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib * value);
462 typedef EGLBoolean ( * PFNEGLWAITSYNCPROC) (EGLDisplay dpy, EGLSync sync, EGLint flags);
463
464 #define eglClientWaitSync EGLEW_GET_FUN(__eglewClientWaitSync)
465 #define eglCreateImage EGLEW_GET_FUN(__eglewCreateImage)
466 #define eglCreatePlatformPixmapSurface EGLEW_GET_FUN(__eglewCreatePlatformPixmapSurface)
467 #define eglCreatePlatformWindowSurface EGLEW_GET_FUN(__eglewCreatePlatformWindowSurface)
468 #define eglCreateSync EGLEW_GET_FUN(__eglewCreateSync)
469 #define eglDestroyImage EGLEW_GET_FUN(__eglewDestroyImage)
470 #define eglDestroySync EGLEW_GET_FUN(__eglewDestroySync)
471 #define eglGetPlatformDisplay EGLEW_GET_FUN(__eglewGetPlatformDisplay)
472 #define eglGetSyncAttrib EGLEW_GET_FUN(__eglewGetSyncAttrib)
473 #define eglWaitSync EGLEW_GET_FUN(__eglewWaitSync)
474
475 #define EGLEW_VERSION_1_5 EGLEW_GET_VAR(__EGLEW_VERSION_1_5)
476
477 #endif /* EGL_VERSION_1_5 */
478
479 /* ------------------------- EGL_ANDROID_blob_cache ------------------------ */
480
481 #ifndef EGL_ANDROID_blob_cache
482 #define EGL_ANDROID_blob_cache 1
483
484 typedef void ( * PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
485
486 #define eglSetBlobCacheFuncsANDROID EGLEW_GET_FUN(__eglewSetBlobCacheFuncsANDROID)
487
488 #define EGLEW_ANDROID_blob_cache EGLEW_GET_VAR(__EGLEW_ANDROID_blob_cache)
489
490 #endif /* EGL_ANDROID_blob_cache */
491
492 /* ---------------- EGL_ANDROID_create_native_client_buffer ---------------- */
493
494 #ifndef EGL_ANDROID_create_native_client_buffer
495 #define EGL_ANDROID_create_native_client_buffer 1
496
497 #define EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID 0x00000001
498 #define EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID 0x00000002
499 #define EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID 0x00000004
500 #define EGL_NATIVE_BUFFER_USAGE_ANDROID 0x3143
501
502 typedef EGLClientBuffer ( * PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC) (const EGLint * attrib_list);
503
504 #define eglCreateNativeClientBufferANDROID EGLEW_GET_FUN(__eglewCreateNativeClientBufferANDROID)
505
506 #define EGLEW_ANDROID_create_native_client_buffer EGLEW_GET_VAR(__EGLEW_ANDROID_create_native_client_buffer)
507
508 #endif /* EGL_ANDROID_create_native_client_buffer */
509
510 /* --------------------- EGL_ANDROID_framebuffer_target -------------------- */
511
512 #ifndef EGL_ANDROID_framebuffer_target
513 #define EGL_ANDROID_framebuffer_target 1
514
515 #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
516
517 #define EGLEW_ANDROID_framebuffer_target EGLEW_GET_VAR(__EGLEW_ANDROID_framebuffer_target)
518
519 #endif /* EGL_ANDROID_framebuffer_target */
520
521 /* ----------------- EGL_ANDROID_front_buffer_auto_refresh ----------------- */
522
523 #ifndef EGL_ANDROID_front_buffer_auto_refresh
524 #define EGL_ANDROID_front_buffer_auto_refresh 1
525
526 #define EGL_FRONT_BUFFER_AUTO_REFRESH_ANDROID 0x314C
527
528 #define EGLEW_ANDROID_front_buffer_auto_refresh EGLEW_GET_VAR(__EGLEW_ANDROID_front_buffer_auto_refresh)
529
530 #endif /* EGL_ANDROID_front_buffer_auto_refresh */
531
532 /* -------------------- EGL_ANDROID_image_native_buffer -------------------- */
533
534 #ifndef EGL_ANDROID_image_native_buffer
535 #define EGL_ANDROID_image_native_buffer 1
536
537 #define EGL_NATIVE_BUFFER_ANDROID 0x3140
538
539 #define EGLEW_ANDROID_image_native_buffer EGLEW_GET_VAR(__EGLEW_ANDROID_image_native_buffer)
540
541 #endif /* EGL_ANDROID_image_native_buffer */
542
543 /* --------------------- EGL_ANDROID_native_fence_sync --------------------- */
544
545 #ifndef EGL_ANDROID_native_fence_sync
546 #define EGL_ANDROID_native_fence_sync 1
547
548 #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
549 #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
550 #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
551
552 typedef EGLint ( * PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
553
554 #define eglDupNativeFenceFDANDROID EGLEW_GET_FUN(__eglewDupNativeFenceFDANDROID)
555
556 #define EGLEW_ANDROID_native_fence_sync EGLEW_GET_VAR(__EGLEW_ANDROID_native_fence_sync)
557
558 #endif /* EGL_ANDROID_native_fence_sync */
559
560 /* --------------------- EGL_ANDROID_presentation_time --------------------- */
561
562 #ifndef EGL_ANDROID_presentation_time
563 #define EGL_ANDROID_presentation_time 1
564
565 typedef EGLBoolean ( * PFNEGLPRESENTATIONTIMEANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time);
566
567 #define eglPresentationTimeANDROID EGLEW_GET_FUN(__eglewPresentationTimeANDROID)
568
569 #define EGLEW_ANDROID_presentation_time EGLEW_GET_VAR(__EGLEW_ANDROID_presentation_time)
570
571 #endif /* EGL_ANDROID_presentation_time */
572
573 /* ------------------------- EGL_ANDROID_recordable ------------------------ */
574
575 #ifndef EGL_ANDROID_recordable
576 #define EGL_ANDROID_recordable 1
577
578 #define EGL_RECORDABLE_ANDROID 0x3142
579
580 #define EGLEW_ANDROID_recordable EGLEW_GET_VAR(__EGLEW_ANDROID_recordable)
581
582 #endif /* EGL_ANDROID_recordable */
583
584 /* ---------------- EGL_ANGLE_d3d_share_handle_client_buffer --------------- */
585
586 #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
587 #define EGL_ANGLE_d3d_share_handle_client_buffer 1
588
589 #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
590
591 #define EGLEW_ANGLE_d3d_share_handle_client_buffer EGLEW_GET_VAR(__EGLEW_ANGLE_d3d_share_handle_client_buffer)
592
593 #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
594
595 /* -------------------------- EGL_ANGLE_device_d3d ------------------------- */
596
597 #ifndef EGL_ANGLE_device_d3d
598 #define EGL_ANGLE_device_d3d 1
599
600 #define EGL_D3D9_DEVICE_ANGLE 0x33A0
601 #define EGL_D3D11_DEVICE_ANGLE 0x33A1
602
603 #define EGLEW_ANGLE_device_d3d EGLEW_GET_VAR(__EGLEW_ANGLE_device_d3d)
604
605 #endif /* EGL_ANGLE_device_d3d */
606
607 /* -------------------- EGL_ANGLE_query_surface_pointer -------------------- */
608
609 #ifndef EGL_ANGLE_query_surface_pointer
610 #define EGL_ANGLE_query_surface_pointer 1
611
612 typedef EGLBoolean ( * PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void ** value);
613
614 #define eglQuerySurfacePointerANGLE EGLEW_GET_FUN(__eglewQuerySurfacePointerANGLE)
615
616 #define EGLEW_ANGLE_query_surface_pointer EGLEW_GET_VAR(__EGLEW_ANGLE_query_surface_pointer)
617
618 #endif /* EGL_ANGLE_query_surface_pointer */
619
620 /* ------------- EGL_ANGLE_surface_d3d_texture_2d_share_handle ------------- */
621
622 #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
623 #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
624
625 #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
626
627 #define EGLEW_ANGLE_surface_d3d_texture_2d_share_handle EGLEW_GET_VAR(__EGLEW_ANGLE_surface_d3d_texture_2d_share_handle)
628
629 #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
630
631 /* ---------------------- EGL_ANGLE_window_fixed_size ---------------------- */
632
633 #ifndef EGL_ANGLE_window_fixed_size
634 #define EGL_ANGLE_window_fixed_size 1
635
636 #define EGL_FIXED_SIZE_ANGLE 0x3201
637
638 #define EGLEW_ANGLE_window_fixed_size EGLEW_GET_VAR(__EGLEW_ANGLE_window_fixed_size)
639
640 #endif /* EGL_ANGLE_window_fixed_size */
641
642 /* --------------------- EGL_ARM_implicit_external_sync -------------------- */
643
644 #ifndef EGL_ARM_implicit_external_sync
645 #define EGL_ARM_implicit_external_sync 1
646
647 #define EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM 0x328A
648
649 #define EGLEW_ARM_implicit_external_sync EGLEW_GET_VAR(__EGLEW_ARM_implicit_external_sync)
650
651 #endif /* EGL_ARM_implicit_external_sync */
652
653 /* ------------------- EGL_ARM_pixmap_multisample_discard ------------------ */
654
655 #ifndef EGL_ARM_pixmap_multisample_discard
656 #define EGL_ARM_pixmap_multisample_discard 1
657
658 #define EGL_DISCARD_SAMPLES_ARM 0x3286
659
660 #define EGLEW_ARM_pixmap_multisample_discard EGLEW_GET_VAR(__EGLEW_ARM_pixmap_multisample_discard)
661
662 #endif /* EGL_ARM_pixmap_multisample_discard */
663
664 /* --------------------------- EGL_EXT_buffer_age -------------------------- */
665
666 #ifndef EGL_EXT_buffer_age
667 #define EGL_EXT_buffer_age 1
668
669 #define EGL_BUFFER_AGE_EXT 0x313D
670
671 #define EGLEW_EXT_buffer_age EGLEW_GET_VAR(__EGLEW_EXT_buffer_age)
672
673 #endif /* EGL_EXT_buffer_age */
674
675 /* ----------------------- EGL_EXT_client_extensions ----------------------- */
676
677 #ifndef EGL_EXT_client_extensions
678 #define EGL_EXT_client_extensions 1
679
680 #define EGLEW_EXT_client_extensions EGLEW_GET_VAR(__EGLEW_EXT_client_extensions)
681
682 #endif /* EGL_EXT_client_extensions */
683
684 /* ------------------- EGL_EXT_create_context_robustness ------------------- */
685
686 #ifndef EGL_EXT_create_context_robustness
687 #define EGL_EXT_create_context_robustness 1
688
689 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
690 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
691 #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
692 #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
693
694 #define EGLEW_EXT_create_context_robustness EGLEW_GET_VAR(__EGLEW_EXT_create_context_robustness)
695
696 #endif /* EGL_EXT_create_context_robustness */
697
698 /* -------------------------- EGL_EXT_device_base -------------------------- */
699
700 #ifndef EGL_EXT_device_base
701 #define EGL_EXT_device_base 1
702
703 #define EGL_BAD_DEVICE_EXT 0x322B
704 #define EGL_DEVICE_EXT 0x322C
705
706 #define EGLEW_EXT_device_base EGLEW_GET_VAR(__EGLEW_EXT_device_base)
707
708 #endif /* EGL_EXT_device_base */
709
710 /* --------------------------- EGL_EXT_device_drm -------------------------- */
711
712 #ifndef EGL_EXT_device_drm
713 #define EGL_EXT_device_drm 1
714
715 #define EGL_DRM_DEVICE_FILE_EXT 0x3233
716
717 #define EGLEW_EXT_device_drm EGLEW_GET_VAR(__EGLEW_EXT_device_drm)
718
719 #endif /* EGL_EXT_device_drm */
720
721 /* ----------------------- EGL_EXT_device_enumeration ---------------------- */
722
723 #ifndef EGL_EXT_device_enumeration
724 #define EGL_EXT_device_enumeration 1
725
726 typedef EGLBoolean ( * PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT * devices, EGLint * num_devices);
727
728 #define eglQueryDevicesEXT EGLEW_GET_FUN(__eglewQueryDevicesEXT)
729
730 #define EGLEW_EXT_device_enumeration EGLEW_GET_VAR(__EGLEW_EXT_device_enumeration)
731
732 #endif /* EGL_EXT_device_enumeration */
733
734 /* ------------------------- EGL_EXT_device_openwf ------------------------- */
735
736 #ifndef EGL_EXT_device_openwf
737 #define EGL_EXT_device_openwf 1
738
739 #define EGL_OPENWF_DEVICE_ID_EXT 0x3237
740
741 #define EGLEW_EXT_device_openwf EGLEW_GET_VAR(__EGLEW_EXT_device_openwf)
742
743 #endif /* EGL_EXT_device_openwf */
744
745 /* -------------------------- EGL_EXT_device_query ------------------------- */
746
747 #ifndef EGL_EXT_device_query
748 #define EGL_EXT_device_query 1
749
750 #define EGL_BAD_DEVICE_EXT 0x322B
751 #define EGL_DEVICE_EXT 0x322C
752
753 typedef EGLBoolean ( * PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib * value);
754 typedef const char * ( * PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
755 typedef EGLBoolean ( * PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib * value);
756
757 #define eglQueryDeviceAttribEXT EGLEW_GET_FUN(__eglewQueryDeviceAttribEXT)
758 #define eglQueryDeviceStringEXT EGLEW_GET_FUN(__eglewQueryDeviceStringEXT)
759 #define eglQueryDisplayAttribEXT EGLEW_GET_FUN(__eglewQueryDisplayAttribEXT)
760
761 #define EGLEW_EXT_device_query EGLEW_GET_VAR(__EGLEW_EXT_device_query)
762
763 #endif /* EGL_EXT_device_query */
764
765 /* ------------------ EGL_EXT_gl_colorspace_bt2020_linear ------------------ */
766
767 #ifndef EGL_EXT_gl_colorspace_bt2020_linear
768 #define EGL_EXT_gl_colorspace_bt2020_linear 1
769
770 #define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F
771
772 #define EGLEW_EXT_gl_colorspace_bt2020_linear EGLEW_GET_VAR(__EGLEW_EXT_gl_colorspace_bt2020_linear)
773
774 #endif /* EGL_EXT_gl_colorspace_bt2020_linear */
775
776 /* -------------------- EGL_EXT_gl_colorspace_bt2020_pq -------------------- */
777
778 #ifndef EGL_EXT_gl_colorspace_bt2020_pq
779 #define EGL_EXT_gl_colorspace_bt2020_pq 1
780
781 #define EGL_GL_COLORSPACE_BT2020_PQ_EXT 0x3340
782
783 #define EGLEW_EXT_gl_colorspace_bt2020_pq EGLEW_GET_VAR(__EGLEW_EXT_gl_colorspace_bt2020_pq)
784
785 #endif /* EGL_EXT_gl_colorspace_bt2020_pq */
786
787 /* ------------------- EGL_EXT_gl_colorspace_scrgb_linear ------------------ */
788
789 #ifndef EGL_EXT_gl_colorspace_scrgb_linear
790 #define EGL_EXT_gl_colorspace_scrgb_linear 1
791
792 #define EGL_GL_COLORSPACE_SCRGB_LINEAR_EXT 0x3350
793
794 #define EGLEW_EXT_gl_colorspace_scrgb_linear EGLEW_GET_VAR(__EGLEW_EXT_gl_colorspace_scrgb_linear)
795
796 #endif /* EGL_EXT_gl_colorspace_scrgb_linear */
797
798 /* ---------------------- EGL_EXT_image_dma_buf_import --------------------- */
799
800 #ifndef EGL_EXT_image_dma_buf_import
801 #define EGL_EXT_image_dma_buf_import 1
802
803 #define EGL_LINUX_DMA_BUF_EXT 0x3270
804 #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
805 #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
806 #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
807 #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
808 #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
809 #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
810 #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
811 #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
812 #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
813 #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
814 #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
815 #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
816 #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
817 #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
818 #define EGL_ITU_REC601_EXT 0x327F
819 #define EGL_ITU_REC709_EXT 0x3280
820 #define EGL_ITU_REC2020_EXT 0x3281
821 #define EGL_YUV_FULL_RANGE_EXT 0x3282
822 #define EGL_YUV_NARROW_RANGE_EXT 0x3283
823 #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
824 #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
825
826 #define EGLEW_EXT_image_dma_buf_import EGLEW_GET_VAR(__EGLEW_EXT_image_dma_buf_import)
827
828 #endif /* EGL_EXT_image_dma_buf_import */
829
830 /* ----------------- EGL_EXT_image_dma_buf_import_modifiers ---------------- */
831
832 #ifndef EGL_EXT_image_dma_buf_import_modifiers
833 #define EGL_EXT_image_dma_buf_import_modifiers 1
834
835 #define EGL_DMA_BUF_PLANE3_FD_EXT 0x3440
836 #define EGL_DMA_BUF_PLANE3_OFFSET_EXT 0x3441
837 #define EGL_DMA_BUF_PLANE3_PITCH_EXT 0x3442
838 #define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
839 #define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
840 #define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445
841 #define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446
842 #define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447
843 #define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448
844 #define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449
845 #define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A
846
847 typedef EGLBoolean ( * PFNEGLQUERYDMABUFFORMATSEXTPROC) (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
848 typedef EGLBoolean ( * PFNEGLQUERYDMABUFMODIFIERSEXTPROC) (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
849
850 #define eglQueryDmaBufFormatsEXT EGLEW_GET_FUN(__eglewQueryDmaBufFormatsEXT)
851 #define eglQueryDmaBufModifiersEXT EGLEW_GET_FUN(__eglewQueryDmaBufModifiersEXT)
852
853 #define EGLEW_EXT_image_dma_buf_import_modifiers EGLEW_GET_VAR(__EGLEW_EXT_image_dma_buf_import_modifiers)
854
855 #endif /* EGL_EXT_image_dma_buf_import_modifiers */
856
857 /* ------------------------ EGL_EXT_multiview_window ----------------------- */
858
859 #ifndef EGL_EXT_multiview_window
860 #define EGL_EXT_multiview_window 1
861
862 #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
863
864 #define EGLEW_EXT_multiview_window EGLEW_GET_VAR(__EGLEW_EXT_multiview_window)
865
866 #endif /* EGL_EXT_multiview_window */
867
868 /* -------------------------- EGL_EXT_output_base -------------------------- */
869
870 #ifndef EGL_EXT_output_base
871 #define EGL_EXT_output_base 1
872
873 #define EGL_BAD_OUTPUT_LAYER_EXT 0x322D
874 #define EGL_BAD_OUTPUT_PORT_EXT 0x322E
875 #define EGL_SWAP_INTERVAL_EXT 0x322F
876
877 typedef EGLBoolean ( * PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib * attrib_list, EGLOutputLayerEXT * layers, EGLint max_layers, EGLint * num_layers);
878 typedef EGLBoolean ( * PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib * attrib_list, EGLOutputPortEXT * ports, EGLint max_ports, EGLint * num_ports);
879 typedef EGLBoolean ( * PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
880 typedef EGLBoolean ( * PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
881 typedef EGLBoolean ( * PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib * value);
882 typedef const char * ( * PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
883 typedef EGLBoolean ( * PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib * value);
884 typedef const char * ( * PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
885
886 #define eglGetOutputLayersEXT EGLEW_GET_FUN(__eglewGetOutputLayersEXT)
887 #define eglGetOutputPortsEXT EGLEW_GET_FUN(__eglewGetOutputPortsEXT)
888 #define eglOutputLayerAttribEXT EGLEW_GET_FUN(__eglewOutputLayerAttribEXT)
889 #define eglOutputPortAttribEXT EGLEW_GET_FUN(__eglewOutputPortAttribEXT)
890 #define eglQueryOutputLayerAttribEXT EGLEW_GET_FUN(__eglewQueryOutputLayerAttribEXT)
891 #define eglQueryOutputLayerStringEXT EGLEW_GET_FUN(__eglewQueryOutputLayerStringEXT)
892 #define eglQueryOutputPortAttribEXT EGLEW_GET_FUN(__eglewQueryOutputPortAttribEXT)
893 #define eglQueryOutputPortStringEXT EGLEW_GET_FUN(__eglewQueryOutputPortStringEXT)
894
895 #define EGLEW_EXT_output_base EGLEW_GET_VAR(__EGLEW_EXT_output_base)
896
897 #endif /* EGL_EXT_output_base */
898
899 /* --------------------------- EGL_EXT_output_drm -------------------------- */
900
901 #ifndef EGL_EXT_output_drm
902 #define EGL_EXT_output_drm 1
903
904 #define EGL_DRM_CRTC_EXT 0x3234
905 #define EGL_DRM_PLANE_EXT 0x3235
906 #define EGL_DRM_CONNECTOR_EXT 0x3236
907
908 #define EGLEW_EXT_output_drm EGLEW_GET_VAR(__EGLEW_EXT_output_drm)
909
910 #endif /* EGL_EXT_output_drm */
911
912 /* ------------------------- EGL_EXT_output_openwf ------------------------- */
913
914 #ifndef EGL_EXT_output_openwf
915 #define EGL_EXT_output_openwf 1
916
917 #define EGL_OPENWF_PIPELINE_ID_EXT 0x3238
918 #define EGL_OPENWF_PORT_ID_EXT 0x3239
919
920 #define EGLEW_EXT_output_openwf EGLEW_GET_VAR(__EGLEW_EXT_output_openwf)
921
922 #endif /* EGL_EXT_output_openwf */
923
924 /* ----------------------- EGL_EXT_pixel_format_float ---------------------- */
925
926 #ifndef EGL_EXT_pixel_format_float
927 #define EGL_EXT_pixel_format_float 1
928
929 #define EGL_COLOR_COMPONENT_TYPE_EXT 0x3339
930 #define EGL_COLOR_COMPONENT_TYPE_FIXED_EXT 0x333A
931 #define EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT 0x333B
932
933 #define EGLEW_EXT_pixel_format_float EGLEW_GET_VAR(__EGLEW_EXT_pixel_format_float)
934
935 #endif /* EGL_EXT_pixel_format_float */
936
937 /* ------------------------- EGL_EXT_platform_base ------------------------- */
938
939 #ifndef EGL_EXT_platform_base
940 #define EGL_EXT_platform_base 1
941
942 typedef EGLSurface ( * PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void * native_pixmap, const EGLint * attrib_list);
943 typedef EGLSurface ( * PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void * native_window, const EGLint * attrib_list);
944 typedef EGLDisplay ( * PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void * native_display, const EGLint * attrib_list);
945
946 #define eglCreatePlatformPixmapSurfaceEXT EGLEW_GET_FUN(__eglewCreatePlatformPixmapSurfaceEXT)
947 #define eglCreatePlatformWindowSurfaceEXT EGLEW_GET_FUN(__eglewCreatePlatformWindowSurfaceEXT)
948 #define eglGetPlatformDisplayEXT EGLEW_GET_FUN(__eglewGetPlatformDisplayEXT)
949
950 #define EGLEW_EXT_platform_base EGLEW_GET_VAR(__EGLEW_EXT_platform_base)
951
952 #endif /* EGL_EXT_platform_base */
953
954 /* ------------------------ EGL_EXT_platform_device ------------------------ */
955
956 #ifndef EGL_EXT_platform_device
957 #define EGL_EXT_platform_device 1
958
959 #define EGL_PLATFORM_DEVICE_EXT 0x313F
960
961 #define EGLEW_EXT_platform_device EGLEW_GET_VAR(__EGLEW_EXT_platform_device)
962
963 #endif /* EGL_EXT_platform_device */
964
965 /* ------------------------ EGL_EXT_platform_wayland ----------------------- */
966
967 #ifndef EGL_EXT_platform_wayland
968 #define EGL_EXT_platform_wayland 1
969
970 #define EGL_PLATFORM_WAYLAND_EXT 0x31D8
971
972 #define EGLEW_EXT_platform_wayland EGLEW_GET_VAR(__EGLEW_EXT_platform_wayland)
973
974 #endif /* EGL_EXT_platform_wayland */
975
976 /* -------------------------- EGL_EXT_platform_x11 ------------------------- */
977
978 #ifndef EGL_EXT_platform_x11
979 #define EGL_EXT_platform_x11 1
980
981 #define EGL_PLATFORM_X11_EXT 0x31D5
982 #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
983
984 #define EGLEW_EXT_platform_x11 EGLEW_GET_VAR(__EGLEW_EXT_platform_x11)
985
986 #endif /* EGL_EXT_platform_x11 */
987
988 /* ----------------------- EGL_EXT_protected_content ----------------------- */
989
990 #ifndef EGL_EXT_protected_content
991 #define EGL_EXT_protected_content 1
992
993 #define EGL_PROTECTED_CONTENT_EXT 0x32C0
994
995 #define EGLEW_EXT_protected_content EGLEW_GET_VAR(__EGLEW_EXT_protected_content)
996
997 #endif /* EGL_EXT_protected_content */
998
999 /* ----------------------- EGL_EXT_protected_surface ----------------------- */
1000
1001 #ifndef EGL_EXT_protected_surface
1002 #define EGL_EXT_protected_surface 1
1003
1004 #define EGL_PROTECTED_CONTENT_EXT 0x32C0
1005
1006 #define EGLEW_EXT_protected_surface EGLEW_GET_VAR(__EGLEW_EXT_protected_surface)
1007
1008 #endif /* EGL_EXT_protected_surface */
1009
1010 /* ------------------- EGL_EXT_stream_consumer_egloutput ------------------- */
1011
1012 #ifndef EGL_EXT_stream_consumer_egloutput
1013 #define EGL_EXT_stream_consumer_egloutput 1
1014
1015 typedef EGLBoolean ( * PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
1016
1017 #define eglStreamConsumerOutputEXT EGLEW_GET_FUN(__eglewStreamConsumerOutputEXT)
1018
1019 #define EGLEW_EXT_stream_consumer_egloutput EGLEW_GET_VAR(__EGLEW_EXT_stream_consumer_egloutput)
1020
1021 #endif /* EGL_EXT_stream_consumer_egloutput */
1022
1023 /* ------------------- EGL_EXT_surface_SMPTE2086_metadata ------------------ */
1024
1025 #ifndef EGL_EXT_surface_SMPTE2086_metadata
1026 #define EGL_EXT_surface_SMPTE2086_metadata 1
1027
1028 #define EGL_SMPTE2086_DISPLAY_PRIMARY_RX_EXT 0x3341
1029 #define EGL_SMPTE2086_DISPLAY_PRIMARY_RY_EXT 0x3342
1030 #define EGL_SMPTE2086_DISPLAY_PRIMARY_GX_EXT 0x3343
1031 #define EGL_SMPTE2086_DISPLAY_PRIMARY_GY_EXT 0x3344
1032 #define EGL_SMPTE2086_DISPLAY_PRIMARY_BX_EXT 0x3345
1033 #define EGL_SMPTE2086_DISPLAY_PRIMARY_BY_EXT 0x3346
1034 #define EGL_SMPTE2086_WHITE_POINT_X_EXT 0x3347
1035 #define EGL_SMPTE2086_WHITE_POINT_Y_EXT 0x3348
1036 #define EGL_SMPTE2086_MAX_LUMINANCE_EXT 0x3349
1037 #define EGL_SMPTE2086_MIN_LUMINANCE_EXT 0x334A
1038
1039 #define EGLEW_EXT_surface_SMPTE2086_metadata EGLEW_GET_VAR(__EGLEW_EXT_surface_SMPTE2086_metadata)
1040
1041 #endif /* EGL_EXT_surface_SMPTE2086_metadata */
1042
1043 /* -------------------- EGL_EXT_swap_buffers_with_damage ------------------- */
1044
1045 #ifndef EGL_EXT_swap_buffers_with_damage
1046 #define EGL_EXT_swap_buffers_with_damage 1
1047
1048 typedef EGLBoolean ( * PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint * rects, EGLint n_rects);
1049
1050 #define eglSwapBuffersWithDamageEXT EGLEW_GET_FUN(__eglewSwapBuffersWithDamageEXT)
1051
1052 #define EGLEW_EXT_swap_buffers_with_damage EGLEW_GET_VAR(__EGLEW_EXT_swap_buffers_with_damage)
1053
1054 #endif /* EGL_EXT_swap_buffers_with_damage */
1055
1056 /* -------------------------- EGL_EXT_yuv_surface -------------------------- */
1057
1058 #ifndef EGL_EXT_yuv_surface
1059 #define EGL_EXT_yuv_surface 1
1060
1061 #define EGL_YUV_BUFFER_EXT 0x3300
1062 #define EGL_YUV_ORDER_EXT 0x3301
1063 #define EGL_YUV_ORDER_YUV_EXT 0x3302
1064 #define EGL_YUV_ORDER_YVU_EXT 0x3303
1065 #define EGL_YUV_ORDER_YUYV_EXT 0x3304
1066 #define EGL_YUV_ORDER_UYVY_EXT 0x3305
1067 #define EGL_YUV_ORDER_YVYU_EXT 0x3306
1068 #define EGL_YUV_ORDER_VYUY_EXT 0x3307
1069 #define EGL_YUV_ORDER_AYUV_EXT 0x3308
1070 #define EGL_YUV_CSC_STANDARD_EXT 0x330A
1071 #define EGL_YUV_CSC_STANDARD_601_EXT 0x330B
1072 #define EGL_YUV_CSC_STANDARD_709_EXT 0x330C
1073 #define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D
1074 #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
1075 #define EGL_YUV_SUBSAMPLE_EXT 0x3312
1076 #define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313
1077 #define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314
1078 #define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315
1079 #define EGL_YUV_DEPTH_RANGE_EXT 0x3317
1080 #define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318
1081 #define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319
1082 #define EGL_YUV_PLANE_BPP_EXT 0x331A
1083 #define EGL_YUV_PLANE_BPP_0_EXT 0x331B
1084 #define EGL_YUV_PLANE_BPP_8_EXT 0x331C
1085 #define EGL_YUV_PLANE_BPP_10_EXT 0x331D
1086
1087 #define EGLEW_EXT_yuv_surface EGLEW_GET_VAR(__EGLEW_EXT_yuv_surface)
1088
1089 #endif /* EGL_EXT_yuv_surface */
1090
1091 /* -------------------------- EGL_HI_clientpixmap -------------------------- */
1092
1093 #ifndef EGL_HI_clientpixmap
1094 #define EGL_HI_clientpixmap 1
1095
1096 #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
1097
1098 typedef EGLSurface ( * PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI * pixmap);
1099
1100 #define eglCreatePixmapSurfaceHI EGLEW_GET_FUN(__eglewCreatePixmapSurfaceHI)
1101
1102 #define EGLEW_HI_clientpixmap EGLEW_GET_VAR(__EGLEW_HI_clientpixmap)
1103
1104 #endif /* EGL_HI_clientpixmap */
1105
1106 /* -------------------------- EGL_HI_colorformats -------------------------- */
1107
1108 #ifndef EGL_HI_colorformats
1109 #define EGL_HI_colorformats 1
1110
1111 #define EGL_COLOR_FORMAT_HI 0x8F70
1112 #define EGL_COLOR_RGB_HI 0x8F71
1113 #define EGL_COLOR_RGBA_HI 0x8F72
1114 #define EGL_COLOR_ARGB_HI 0x8F73
1115
1116 #define EGLEW_HI_colorformats EGLEW_GET_VAR(__EGLEW_HI_colorformats)
1117
1118 #endif /* EGL_HI_colorformats */
1119
1120 /* ------------------------ EGL_IMG_context_priority ----------------------- */
1121
1122 #ifndef EGL_IMG_context_priority
1123 #define EGL_IMG_context_priority 1
1124
1125 #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
1126 #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
1127 #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
1128 #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
1129
1130 #define EGLEW_IMG_context_priority EGLEW_GET_VAR(__EGLEW_IMG_context_priority)
1131
1132 #endif /* EGL_IMG_context_priority */
1133
1134 /* ---------------------- EGL_IMG_image_plane_attribs ---------------------- */
1135
1136 #ifndef EGL_IMG_image_plane_attribs
1137 #define EGL_IMG_image_plane_attribs 1
1138
1139 #define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105
1140 #define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106
1141
1142 #define EGLEW_IMG_image_plane_attribs EGLEW_GET_VAR(__EGLEW_IMG_image_plane_attribs)
1143
1144 #endif /* EGL_IMG_image_plane_attribs */
1145
1146 /* ---------------------------- EGL_KHR_cl_event --------------------------- */
1147
1148 #ifndef EGL_KHR_cl_event
1149 #define EGL_KHR_cl_event 1
1150
1151 #define EGL_CL_EVENT_HANDLE_KHR 0x309C
1152 #define EGL_SYNC_CL_EVENT_KHR 0x30FE
1153 #define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF
1154
1155 #define EGLEW_KHR_cl_event EGLEW_GET_VAR(__EGLEW_KHR_cl_event)
1156
1157 #endif /* EGL_KHR_cl_event */
1158
1159 /* --------------------------- EGL_KHR_cl_event2 --------------------------- */
1160
1161 #ifndef EGL_KHR_cl_event2
1162 #define EGL_KHR_cl_event2 1
1163
1164 #define EGL_CL_EVENT_HANDLE_KHR 0x309C
1165 #define EGL_SYNC_CL_EVENT_KHR 0x30FE
1166 #define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF
1167
1168 typedef EGLSyncKHR ( * PFNEGLCREATESYNC64KHRPROC) (EGLDisplay dpy, EGLenum type, const EGLAttribKHR * attrib_list);
1169
1170 #define eglCreateSync64KHR EGLEW_GET_FUN(__eglewCreateSync64KHR)
1171
1172 #define EGLEW_KHR_cl_event2 EGLEW_GET_VAR(__EGLEW_KHR_cl_event2)
1173
1174 #endif /* EGL_KHR_cl_event2 */
1175
1176 /* ----------------- EGL_KHR_client_get_all_proc_addresses ----------------- */
1177
1178 #ifndef EGL_KHR_client_get_all_proc_addresses
1179 #define EGL_KHR_client_get_all_proc_addresses 1
1180
1181 #define EGLEW_KHR_client_get_all_proc_addresses EGLEW_GET_VAR(__EGLEW_KHR_client_get_all_proc_addresses)
1182
1183 #endif /* EGL_KHR_client_get_all_proc_addresses */
1184
1185 /* ------------------------- EGL_KHR_config_attribs ------------------------ */
1186
1187 #ifndef EGL_KHR_config_attribs
1188 #define EGL_KHR_config_attribs 1
1189
1190 #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020
1191 #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040
1192 #define EGL_CONFORMANT_KHR 0x3042
1193
1194 #define EGLEW_KHR_config_attribs EGLEW_GET_VAR(__EGLEW_KHR_config_attribs)
1195
1196 #endif /* EGL_KHR_config_attribs */
1197
1198 /* --------------------- EGL_KHR_context_flush_control --------------------- */
1199
1200 #ifndef EGL_KHR_context_flush_control
1201 #define EGL_KHR_context_flush_control 1
1202
1203 #define EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR 0
1204 #define EGL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x2097
1205 #define EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x2098
1206
1207 #define EGLEW_KHR_context_flush_control EGLEW_GET_VAR(__EGLEW_KHR_context_flush_control)
1208
1209 #endif /* EGL_KHR_context_flush_control */
1210
1211 /* ------------------------- EGL_KHR_create_context ------------------------ */
1212
1213 #ifndef EGL_KHR_create_context
1214 #define EGL_KHR_create_context 1
1215
1216 #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
1217 #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001
1218 #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
1219 #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
1220 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
1221 #define EGL_OPENGL_ES3_BIT 0x00000040
1222 #define EGL_OPENGL_ES3_BIT_KHR 0x00000040
1223 #define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098
1224 #define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB
1225 #define EGL_CONTEXT_FLAGS_KHR 0x30FC
1226 #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
1227 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
1228 #define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE
1229 #define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF
1230
1231 #define EGLEW_KHR_create_context EGLEW_GET_VAR(__EGLEW_KHR_create_context)
1232
1233 #endif /* EGL_KHR_create_context */
1234
1235 /* -------------------- EGL_KHR_create_context_no_error -------------------- */
1236
1237 #ifndef EGL_KHR_create_context_no_error
1238 #define EGL_KHR_create_context_no_error 1
1239
1240 #define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31B3
1241
1242 #define EGLEW_KHR_create_context_no_error EGLEW_GET_VAR(__EGLEW_KHR_create_context_no_error)
1243
1244 #endif /* EGL_KHR_create_context_no_error */
1245
1246 /* ----------------------------- EGL_KHR_debug ----------------------------- */
1247
1248 #ifndef EGL_KHR_debug
1249 #define EGL_KHR_debug 1
1250
1251 #define EGL_OBJECT_THREAD_KHR 0x33B0
1252 #define EGL_OBJECT_DISPLAY_KHR 0x33B1
1253 #define EGL_OBJECT_CONTEXT_KHR 0x33B2
1254 #define EGL_OBJECT_SURFACE_KHR 0x33B3
1255 #define EGL_OBJECT_IMAGE_KHR 0x33B4
1256 #define EGL_OBJECT_SYNC_KHR 0x33B5
1257 #define EGL_OBJECT_STREAM_KHR 0x33B6
1258 #define EGL_DEBUG_CALLBACK_KHR 0x33B8
1259 #define EGL_DEBUG_MSG_CRITICAL_KHR 0x33B9
1260 #define EGL_DEBUG_MSG_ERROR_KHR 0x33BA
1261 #define EGL_DEBUG_MSG_WARN_KHR 0x33BB
1262 #define EGL_DEBUG_MSG_INFO_KHR 0x33BC
1263
1264 typedef EGLint ( * PFNEGLDEBUGMESSAGECONTROLKHRPROC) (EGLDEBUGPROCKHR callback, const EGLAttrib * attrib_list);
1265 typedef EGLint ( * PFNEGLLABELOBJECTKHRPROC) (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
1266 typedef EGLBoolean ( * PFNEGLQUERYDEBUGKHRPROC) (EGLint attribute, EGLAttrib * value);
1267
1268 #define eglDebugMessageControlKHR EGLEW_GET_FUN(__eglewDebugMessageControlKHR)
1269 #define eglLabelObjectKHR EGLEW_GET_FUN(__eglewLabelObjectKHR)
1270 #define eglQueryDebugKHR EGLEW_GET_FUN(__eglewQueryDebugKHR)
1271
1272 #define EGLEW_KHR_debug EGLEW_GET_VAR(__EGLEW_KHR_debug)
1273
1274 #endif /* EGL_KHR_debug */
1275
1276 /* --------------------------- EGL_KHR_fence_sync -------------------------- */
1277
1278 #ifndef EGL_KHR_fence_sync
1279 #define EGL_KHR_fence_sync 1
1280
1281 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
1282 #define EGL_SYNC_CONDITION_KHR 0x30F8
1283 #define EGL_SYNC_FENCE_KHR 0x30F9
1284
1285 #define EGLEW_KHR_fence_sync EGLEW_GET_VAR(__EGLEW_KHR_fence_sync)
1286
1287 #endif /* EGL_KHR_fence_sync */
1288
1289 /* --------------------- EGL_KHR_get_all_proc_addresses -------------------- */
1290
1291 #ifndef EGL_KHR_get_all_proc_addresses
1292 #define EGL_KHR_get_all_proc_addresses 1
1293
1294 #define EGLEW_KHR_get_all_proc_addresses EGLEW_GET_VAR(__EGLEW_KHR_get_all_proc_addresses)
1295
1296 #endif /* EGL_KHR_get_all_proc_addresses */
1297
1298 /* ------------------------- EGL_KHR_gl_colorspace ------------------------- */
1299
1300 #ifndef EGL_KHR_gl_colorspace
1301 #define EGL_KHR_gl_colorspace 1
1302
1303 #define EGL_GL_COLORSPACE_SRGB_KHR 0x3089
1304 #define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A
1305 #define EGL_GL_COLORSPACE_KHR 0x309D
1306
1307 #define EGLEW_KHR_gl_colorspace EGLEW_GET_VAR(__EGLEW_KHR_gl_colorspace)
1308
1309 #endif /* EGL_KHR_gl_colorspace */
1310
1311 /* --------------------- EGL_KHR_gl_renderbuffer_image --------------------- */
1312
1313 #ifndef EGL_KHR_gl_renderbuffer_image
1314 #define EGL_KHR_gl_renderbuffer_image 1
1315
1316 #define EGL_GL_RENDERBUFFER_KHR 0x30B9
1317
1318 #define EGLEW_KHR_gl_renderbuffer_image EGLEW_GET_VAR(__EGLEW_KHR_gl_renderbuffer_image)
1319
1320 #endif /* EGL_KHR_gl_renderbuffer_image */
1321
1322 /* ---------------------- EGL_KHR_gl_texture_2D_image ---------------------- */
1323
1324 #ifndef EGL_KHR_gl_texture_2D_image
1325 #define EGL_KHR_gl_texture_2D_image 1
1326
1327 #define EGL_GL_TEXTURE_2D_KHR 0x30B1
1328 #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
1329
1330 #define EGLEW_KHR_gl_texture_2D_image EGLEW_GET_VAR(__EGLEW_KHR_gl_texture_2D_image)
1331
1332 #endif /* EGL_KHR_gl_texture_2D_image */
1333
1334 /* ---------------------- EGL_KHR_gl_texture_3D_image ---------------------- */
1335
1336 #ifndef EGL_KHR_gl_texture_3D_image
1337 #define EGL_KHR_gl_texture_3D_image 1
1338
1339 #define EGL_GL_TEXTURE_3D_KHR 0x30B2
1340 #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
1341
1342 #define EGLEW_KHR_gl_texture_3D_image EGLEW_GET_VAR(__EGLEW_KHR_gl_texture_3D_image)
1343
1344 #endif /* EGL_KHR_gl_texture_3D_image */
1345
1346 /* -------------------- EGL_KHR_gl_texture_cubemap_image ------------------- */
1347
1348 #ifndef EGL_KHR_gl_texture_cubemap_image
1349 #define EGL_KHR_gl_texture_cubemap_image 1
1350
1351 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
1352 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
1353 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
1354 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
1355 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
1356 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
1357
1358 #define EGLEW_KHR_gl_texture_cubemap_image EGLEW_GET_VAR(__EGLEW_KHR_gl_texture_cubemap_image)
1359
1360 #endif /* EGL_KHR_gl_texture_cubemap_image */
1361
1362 /* ----------------------------- EGL_KHR_image ----------------------------- */
1363
1364 #ifndef EGL_KHR_image
1365 #define EGL_KHR_image 1
1366
1367 #define EGL_NATIVE_PIXMAP_KHR 0x30B0
1368
1369 typedef EGLImageKHR ( * PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint * attrib_list);
1370 typedef EGLBoolean ( * PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
1371
1372 #define eglCreateImageKHR EGLEW_GET_FUN(__eglewCreateImageKHR)
1373 #define eglDestroyImageKHR EGLEW_GET_FUN(__eglewDestroyImageKHR)
1374
1375 #define EGLEW_KHR_image EGLEW_GET_VAR(__EGLEW_KHR_image)
1376
1377 #endif /* EGL_KHR_image */
1378
1379 /* --------------------------- EGL_KHR_image_base -------------------------- */
1380
1381 #ifndef EGL_KHR_image_base
1382 #define EGL_KHR_image_base 1
1383
1384 #define EGL_IMAGE_PRESERVED_KHR 0x30D2
1385
1386 #define EGLEW_KHR_image_base EGLEW_GET_VAR(__EGLEW_KHR_image_base)
1387
1388 #endif /* EGL_KHR_image_base */
1389
1390 /* -------------------------- EGL_KHR_image_pixmap ------------------------- */
1391
1392 #ifndef EGL_KHR_image_pixmap
1393 #define EGL_KHR_image_pixmap 1
1394
1395 #define EGL_NATIVE_PIXMAP_KHR 0x30B0
1396
1397 #define EGLEW_KHR_image_pixmap EGLEW_GET_VAR(__EGLEW_KHR_image_pixmap)
1398
1399 #endif /* EGL_KHR_image_pixmap */
1400
1401 /* -------------------------- EGL_KHR_lock_surface ------------------------- */
1402
1403 #ifndef EGL_KHR_lock_surface
1404 #define EGL_KHR_lock_surface 1
1405
1406 #define EGL_READ_SURFACE_BIT_KHR 0x0001
1407 #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
1408 #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
1409 #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
1410 #define EGL_MATCH_FORMAT_KHR 0x3043
1411 #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
1412 #define EGL_FORMAT_RGB_565_KHR 0x30C1
1413 #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
1414 #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
1415 #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
1416 #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
1417 #define EGL_BITMAP_POINTER_KHR 0x30C6
1418 #define EGL_BITMAP_PITCH_KHR 0x30C7
1419 #define EGL_BITMAP_ORIGIN_KHR 0x30C8
1420 #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
1421 #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
1422 #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
1423 #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
1424 #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
1425 #define EGL_LOWER_LEFT_KHR 0x30CE
1426 #define EGL_UPPER_LEFT_KHR 0x30CF
1427
1428 typedef EGLBoolean ( * PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint * attrib_list);
1429 typedef EGLBoolean ( * PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
1430
1431 #define eglLockSurfaceKHR EGLEW_GET_FUN(__eglewLockSurfaceKHR)
1432 #define eglUnlockSurfaceKHR EGLEW_GET_FUN(__eglewUnlockSurfaceKHR)
1433
1434 #define EGLEW_KHR_lock_surface EGLEW_GET_VAR(__EGLEW_KHR_lock_surface)
1435
1436 #endif /* EGL_KHR_lock_surface */
1437
1438 /* ------------------------- EGL_KHR_lock_surface2 ------------------------- */
1439
1440 #ifndef EGL_KHR_lock_surface2
1441 #define EGL_KHR_lock_surface2 1
1442
1443 #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
1444
1445 #define EGLEW_KHR_lock_surface2 EGLEW_GET_VAR(__EGLEW_KHR_lock_surface2)
1446
1447 #endif /* EGL_KHR_lock_surface2 */
1448
1449 /* ------------------------- EGL_KHR_lock_surface3 ------------------------- */
1450
1451 #ifndef EGL_KHR_lock_surface3
1452 #define EGL_KHR_lock_surface3 1
1453
1454 #define EGL_READ_SURFACE_BIT_KHR 0x0001
1455 #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
1456 #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
1457 #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
1458 #define EGL_MATCH_FORMAT_KHR 0x3043
1459 #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
1460 #define EGL_FORMAT_RGB_565_KHR 0x30C1
1461 #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
1462 #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
1463 #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
1464 #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
1465 #define EGL_BITMAP_POINTER_KHR 0x30C6
1466 #define EGL_BITMAP_PITCH_KHR 0x30C7
1467 #define EGL_BITMAP_ORIGIN_KHR 0x30C8
1468 #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
1469 #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
1470 #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
1471 #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
1472 #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
1473 #define EGL_LOWER_LEFT_KHR 0x30CE
1474 #define EGL_UPPER_LEFT_KHR 0x30CF
1475 #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
1476
1477 typedef EGLBoolean ( * PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR * value);
1478
1479 #define eglQuerySurface64KHR EGLEW_GET_FUN(__eglewQuerySurface64KHR)
1480
1481 #define EGLEW_KHR_lock_surface3 EGLEW_GET_VAR(__EGLEW_KHR_lock_surface3)
1482
1483 #endif /* EGL_KHR_lock_surface3 */
1484
1485 /* --------------------- EGL_KHR_mutable_render_buffer --------------------- */
1486
1487 #ifndef EGL_KHR_mutable_render_buffer
1488 #define EGL_KHR_mutable_render_buffer 1
1489
1490 #define EGL_MUTABLE_RENDER_BUFFER_BIT_KHR 0x1000
1491
1492 #define EGLEW_KHR_mutable_render_buffer EGLEW_GET_VAR(__EGLEW_KHR_mutable_render_buffer)
1493
1494 #endif /* EGL_KHR_mutable_render_buffer */
1495
1496 /* ----------------------- EGL_KHR_no_config_context ----------------------- */
1497
1498 #ifndef EGL_KHR_no_config_context
1499 #define EGL_KHR_no_config_context 1
1500
1501 #define EGLEW_KHR_no_config_context EGLEW_GET_VAR(__EGLEW_KHR_no_config_context)
1502
1503 #endif /* EGL_KHR_no_config_context */
1504
1505 /* ------------------------- EGL_KHR_partial_update ------------------------ */
1506
1507 #ifndef EGL_KHR_partial_update
1508 #define EGL_KHR_partial_update 1
1509
1510 #define EGL_BUFFER_AGE_KHR 0x313D
1511
1512 typedef EGLBoolean ( * PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint * rects, EGLint n_rects);
1513
1514 #define eglSetDamageRegionKHR EGLEW_GET_FUN(__eglewSetDamageRegionKHR)
1515
1516 #define EGLEW_KHR_partial_update EGLEW_GET_VAR(__EGLEW_KHR_partial_update)
1517
1518 #endif /* EGL_KHR_partial_update */
1519
1520 /* ------------------------ EGL_KHR_platform_android ----------------------- */
1521
1522 #ifndef EGL_KHR_platform_android
1523 #define EGL_KHR_platform_android 1
1524
1525 #define EGL_PLATFORM_ANDROID_KHR 0x3141
1526
1527 #define EGLEW_KHR_platform_android EGLEW_GET_VAR(__EGLEW_KHR_platform_android)
1528
1529 #endif /* EGL_KHR_platform_android */
1530
1531 /* -------------------------- EGL_KHR_platform_gbm ------------------------- */
1532
1533 #ifndef EGL_KHR_platform_gbm
1534 #define EGL_KHR_platform_gbm 1
1535
1536 #define EGL_PLATFORM_GBM_KHR 0x31D7
1537
1538 #define EGLEW_KHR_platform_gbm EGLEW_GET_VAR(__EGLEW_KHR_platform_gbm)
1539
1540 #endif /* EGL_KHR_platform_gbm */
1541
1542 /* ------------------------ EGL_KHR_platform_wayland ----------------------- */
1543
1544 #ifndef EGL_KHR_platform_wayland
1545 #define EGL_KHR_platform_wayland 1
1546
1547 #define EGL_PLATFORM_WAYLAND_KHR 0x31D8
1548
1549 #define EGLEW_KHR_platform_wayland EGLEW_GET_VAR(__EGLEW_KHR_platform_wayland)
1550
1551 #endif /* EGL_KHR_platform_wayland */
1552
1553 /* -------------------------- EGL_KHR_platform_x11 ------------------------- */
1554
1555 #ifndef EGL_KHR_platform_x11
1556 #define EGL_KHR_platform_x11 1
1557
1558 #define EGL_PLATFORM_X11_KHR 0x31D5
1559 #define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6
1560
1561 #define EGLEW_KHR_platform_x11 EGLEW_GET_VAR(__EGLEW_KHR_platform_x11)
1562
1563 #endif /* EGL_KHR_platform_x11 */
1564
1565 /* ------------------------- EGL_KHR_reusable_sync ------------------------- */
1566
1567 #ifndef EGL_KHR_reusable_sync
1568 #define EGL_KHR_reusable_sync 1
1569
1570 #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001
1571 #define EGL_SYNC_STATUS_KHR 0x30F1
1572 #define EGL_SIGNALED_KHR 0x30F2
1573 #define EGL_UNSIGNALED_KHR 0x30F3
1574 #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
1575 #define EGL_CONDITION_SATISFIED_KHR 0x30F6
1576 #define EGL_SYNC_TYPE_KHR 0x30F7
1577 #define EGL_SYNC_REUSABLE_KHR 0x30FA
1578 #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFF
1579
1580 typedef EGLint ( * PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
1581 typedef EGLSyncKHR ( * PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint * attrib_list);
1582 typedef EGLBoolean ( * PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
1583 typedef EGLBoolean ( * PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint * value);
1584 typedef EGLBoolean ( * PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
1585
1586 #define eglClientWaitSyncKHR EGLEW_GET_FUN(__eglewClientWaitSyncKHR)
1587 #define eglCreateSyncKHR EGLEW_GET_FUN(__eglewCreateSyncKHR)
1588 #define eglDestroySyncKHR EGLEW_GET_FUN(__eglewDestroySyncKHR)
1589 #define eglGetSyncAttribKHR EGLEW_GET_FUN(__eglewGetSyncAttribKHR)
1590 #define eglSignalSyncKHR EGLEW_GET_FUN(__eglewSignalSyncKHR)
1591
1592 #define EGLEW_KHR_reusable_sync EGLEW_GET_VAR(__EGLEW_KHR_reusable_sync)
1593
1594 #endif /* EGL_KHR_reusable_sync */
1595
1596 /* ----------------------------- EGL_KHR_stream ---------------------------- */
1597
1598 #ifndef EGL_KHR_stream
1599 #define EGL_KHR_stream 1
1600
1601 #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
1602 #define EGL_PRODUCER_FRAME_KHR 0x3212
1603 #define EGL_CONSUMER_FRAME_KHR 0x3213
1604 #define EGL_STREAM_STATE_KHR 0x3214
1605 #define EGL_STREAM_STATE_CREATED_KHR 0x3215
1606 #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
1607 #define EGL_STREAM_STATE_EMPTY_KHR 0x3217
1608 #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
1609 #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
1610 #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
1611 #define EGL_BAD_STREAM_KHR 0x321B
1612 #define EGL_BAD_STATE_KHR 0x321C
1613
1614 typedef EGLStreamKHR ( * PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint * attrib_list);
1615 typedef EGLBoolean ( * PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
1616 typedef EGLBoolean ( * PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint * value);
1617 typedef EGLBoolean ( * PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR * value);
1618 typedef EGLBoolean ( * PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
1619
1620 #define eglCreateStreamKHR EGLEW_GET_FUN(__eglewCreateStreamKHR)
1621 #define eglDestroyStreamKHR EGLEW_GET_FUN(__eglewDestroyStreamKHR)
1622 #define eglQueryStreamKHR EGLEW_GET_FUN(__eglewQueryStreamKHR)
1623 #define eglQueryStreamu64KHR EGLEW_GET_FUN(__eglewQueryStreamu64KHR)
1624 #define eglStreamAttribKHR EGLEW_GET_FUN(__eglewStreamAttribKHR)
1625
1626 #define EGLEW_KHR_stream EGLEW_GET_VAR(__EGLEW_KHR_stream)
1627
1628 #endif /* EGL_KHR_stream */
1629
1630 /* ------------------------- EGL_KHR_stream_attrib ------------------------- */
1631
1632 #ifndef EGL_KHR_stream_attrib
1633 #define EGL_KHR_stream_attrib 1
1634
1635 #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
1636 #define EGL_STREAM_STATE_KHR 0x3214
1637 #define EGL_STREAM_STATE_CREATED_KHR 0x3215
1638 #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
1639
1640 typedef EGLStreamKHR ( * PFNEGLCREATESTREAMATTRIBKHRPROC) (EGLDisplay dpy, const EGLAttrib * attrib_list);
1641 typedef EGLBoolean ( * PFNEGLQUERYSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib * value);
1642 typedef EGLBoolean ( * PFNEGLSETSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);
1643 typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib * attrib_list);
1644 typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib * attrib_list);
1645
1646 #define eglCreateStreamAttribKHR EGLEW_GET_FUN(__eglewCreateStreamAttribKHR)
1647 #define eglQueryStreamAttribKHR EGLEW_GET_FUN(__eglewQueryStreamAttribKHR)
1648 #define eglSetStreamAttribKHR EGLEW_GET_FUN(__eglewSetStreamAttribKHR)
1649 #define eglStreamConsumerAcquireAttribKHR EGLEW_GET_FUN(__eglewStreamConsumerAcquireAttribKHR)
1650 #define eglStreamConsumerReleaseAttribKHR EGLEW_GET_FUN(__eglewStreamConsumerReleaseAttribKHR)
1651
1652 #define EGLEW_KHR_stream_attrib EGLEW_GET_VAR(__EGLEW_KHR_stream_attrib)
1653
1654 #endif /* EGL_KHR_stream_attrib */
1655
1656 /* ------------------- EGL_KHR_stream_consumer_gltexture ------------------- */
1657
1658 #ifndef EGL_KHR_stream_consumer_gltexture
1659 #define EGL_KHR_stream_consumer_gltexture 1
1660
1661 #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
1662
1663 typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
1664 typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
1665 typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
1666
1667 #define eglStreamConsumerAcquireKHR EGLEW_GET_FUN(__eglewStreamConsumerAcquireKHR)
1668 #define eglStreamConsumerGLTextureExternalKHR EGLEW_GET_FUN(__eglewStreamConsumerGLTextureExternalKHR)
1669 #define eglStreamConsumerReleaseKHR EGLEW_GET_FUN(__eglewStreamConsumerReleaseKHR)
1670
1671 #define EGLEW_KHR_stream_consumer_gltexture EGLEW_GET_VAR(__EGLEW_KHR_stream_consumer_gltexture)
1672
1673 #endif /* EGL_KHR_stream_consumer_gltexture */
1674
1675 /* -------------------- EGL_KHR_stream_cross_process_fd -------------------- */
1676
1677 #ifndef EGL_KHR_stream_cross_process_fd
1678 #define EGL_KHR_stream_cross_process_fd 1
1679
1680 typedef EGLStreamKHR ( * PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
1681 typedef EGLNativeFileDescriptorKHR ( * PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
1682
1683 #define eglCreateStreamFromFileDescriptorKHR EGLEW_GET_FUN(__eglewCreateStreamFromFileDescriptorKHR)
1684 #define eglGetStreamFileDescriptorKHR EGLEW_GET_FUN(__eglewGetStreamFileDescriptorKHR)
1685
1686 #define EGLEW_KHR_stream_cross_process_fd EGLEW_GET_VAR(__EGLEW_KHR_stream_cross_process_fd)
1687
1688 #endif /* EGL_KHR_stream_cross_process_fd */
1689
1690 /* -------------------------- EGL_KHR_stream_fifo -------------------------- */
1691
1692 #ifndef EGL_KHR_stream_fifo
1693 #define EGL_KHR_stream_fifo 1
1694
1695 #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
1696 #define EGL_STREAM_TIME_NOW_KHR 0x31FD
1697 #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
1698 #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
1699
1700 typedef EGLBoolean ( * PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR * value);
1701
1702 #define eglQueryStreamTimeKHR EGLEW_GET_FUN(__eglewQueryStreamTimeKHR)
1703
1704 #define EGLEW_KHR_stream_fifo EGLEW_GET_VAR(__EGLEW_KHR_stream_fifo)
1705
1706 #endif /* EGL_KHR_stream_fifo */
1707
1708 /* ----------------- EGL_KHR_stream_producer_aldatalocator ----------------- */
1709
1710 #ifndef EGL_KHR_stream_producer_aldatalocator
1711 #define EGL_KHR_stream_producer_aldatalocator 1
1712
1713 #define EGLEW_KHR_stream_producer_aldatalocator EGLEW_GET_VAR(__EGLEW_KHR_stream_producer_aldatalocator)
1714
1715 #endif /* EGL_KHR_stream_producer_aldatalocator */
1716
1717 /* ------------------- EGL_KHR_stream_producer_eglsurface ------------------ */
1718
1719 #ifndef EGL_KHR_stream_producer_eglsurface
1720 #define EGL_KHR_stream_producer_eglsurface 1
1721
1722 #define EGL_STREAM_BIT_KHR 0x0800
1723
1724 typedef EGLSurface ( * PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint * attrib_list);
1725
1726 #define eglCreateStreamProducerSurfaceKHR EGLEW_GET_FUN(__eglewCreateStreamProducerSurfaceKHR)
1727
1728 #define EGLEW_KHR_stream_producer_eglsurface EGLEW_GET_VAR(__EGLEW_KHR_stream_producer_eglsurface)
1729
1730 #endif /* EGL_KHR_stream_producer_eglsurface */
1731
1732 /* ---------------------- EGL_KHR_surfaceless_context ---------------------- */
1733
1734 #ifndef EGL_KHR_surfaceless_context
1735 #define EGL_KHR_surfaceless_context 1
1736
1737 #define EGLEW_KHR_surfaceless_context EGLEW_GET_VAR(__EGLEW_KHR_surfaceless_context)
1738
1739 #endif /* EGL_KHR_surfaceless_context */
1740
1741 /* -------------------- EGL_KHR_swap_buffers_with_damage ------------------- */
1742
1743 #ifndef EGL_KHR_swap_buffers_with_damage
1744 #define EGL_KHR_swap_buffers_with_damage 1
1745
1746 typedef EGLBoolean ( * PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint * rects, EGLint n_rects);
1747
1748 #define eglSwapBuffersWithDamageKHR EGLEW_GET_FUN(__eglewSwapBuffersWithDamageKHR)
1749
1750 #define EGLEW_KHR_swap_buffers_with_damage EGLEW_GET_VAR(__EGLEW_KHR_swap_buffers_with_damage)
1751
1752 #endif /* EGL_KHR_swap_buffers_with_damage */
1753
1754 /* ------------------------ EGL_KHR_vg_parent_image ------------------------ */
1755
1756 #ifndef EGL_KHR_vg_parent_image
1757 #define EGL_KHR_vg_parent_image 1
1758
1759 #define EGL_VG_PARENT_IMAGE_KHR 0x30BA
1760
1761 #define EGLEW_KHR_vg_parent_image EGLEW_GET_VAR(__EGLEW_KHR_vg_parent_image)
1762
1763 #endif /* EGL_KHR_vg_parent_image */
1764
1765 /* --------------------------- EGL_KHR_wait_sync --------------------------- */
1766
1767 #ifndef EGL_KHR_wait_sync
1768 #define EGL_KHR_wait_sync 1
1769
1770 typedef EGLint ( * PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
1771
1772 #define eglWaitSyncKHR EGLEW_GET_FUN(__eglewWaitSyncKHR)
1773
1774 #define EGLEW_KHR_wait_sync EGLEW_GET_VAR(__EGLEW_KHR_wait_sync)
1775
1776 #endif /* EGL_KHR_wait_sync */
1777
1778 /* --------------------------- EGL_MESA_drm_image -------------------------- */
1779
1780 #ifndef EGL_MESA_drm_image
1781 #define EGL_MESA_drm_image 1
1782
1783 #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
1784 #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
1785 #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
1786 #define EGL_DRM_BUFFER_USE_MESA 0x31D1
1787 #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
1788 #define EGL_DRM_BUFFER_MESA 0x31D3
1789 #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
1790
1791 typedef EGLImageKHR ( * PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint * attrib_list);
1792 typedef EGLBoolean ( * PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint * name, EGLint * handle, EGLint * stride);
1793
1794 #define eglCreateDRMImageMESA EGLEW_GET_FUN(__eglewCreateDRMImageMESA)
1795 #define eglExportDRMImageMESA EGLEW_GET_FUN(__eglewExportDRMImageMESA)
1796
1797 #define EGLEW_MESA_drm_image EGLEW_GET_VAR(__EGLEW_MESA_drm_image)
1798
1799 #endif /* EGL_MESA_drm_image */
1800
1801 /* --------------------- EGL_MESA_image_dma_buf_export --------------------- */
1802
1803 #ifndef EGL_MESA_image_dma_buf_export
1804 #define EGL_MESA_image_dma_buf_export 1
1805
1806 typedef EGLBoolean ( * PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int * fds, EGLint * strides, EGLint * offsets);
1807 typedef EGLBoolean ( * PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int * fourcc, int * num_planes, EGLuint64KHR * modifiers);
1808
1809 #define eglExportDMABUFImageMESA EGLEW_GET_FUN(__eglewExportDMABUFImageMESA)
1810 #define eglExportDMABUFImageQueryMESA EGLEW_GET_FUN(__eglewExportDMABUFImageQueryMESA)
1811
1812 #define EGLEW_MESA_image_dma_buf_export EGLEW_GET_VAR(__EGLEW_MESA_image_dma_buf_export)
1813
1814 #endif /* EGL_MESA_image_dma_buf_export */
1815
1816 /* ------------------------- EGL_MESA_platform_gbm ------------------------- */
1817
1818 #ifndef EGL_MESA_platform_gbm
1819 #define EGL_MESA_platform_gbm 1
1820
1821 #define EGL_PLATFORM_GBM_MESA 0x31D7
1822
1823 #define EGLEW_MESA_platform_gbm EGLEW_GET_VAR(__EGLEW_MESA_platform_gbm)
1824
1825 #endif /* EGL_MESA_platform_gbm */
1826
1827 /* --------------------- EGL_MESA_platform_surfaceless --------------------- */
1828
1829 #ifndef EGL_MESA_platform_surfaceless
1830 #define EGL_MESA_platform_surfaceless 1
1831
1832 #define EGL_PLATFORM_SURFACELESS_MESA 0x31DD
1833
1834 #define EGLEW_MESA_platform_surfaceless EGLEW_GET_VAR(__EGLEW_MESA_platform_surfaceless)
1835
1836 #endif /* EGL_MESA_platform_surfaceless */
1837
1838 /* -------------------------- EGL_NOK_swap_region -------------------------- */
1839
1840 #ifndef EGL_NOK_swap_region
1841 #define EGL_NOK_swap_region 1
1842
1843 typedef EGLBoolean ( * PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint * rects);
1844
1845 #define eglSwapBuffersRegionNOK EGLEW_GET_FUN(__eglewSwapBuffersRegionNOK)
1846
1847 #define EGLEW_NOK_swap_region EGLEW_GET_VAR(__EGLEW_NOK_swap_region)
1848
1849 #endif /* EGL_NOK_swap_region */
1850
1851 /* -------------------------- EGL_NOK_swap_region2 ------------------------- */
1852
1853 #ifndef EGL_NOK_swap_region2
1854 #define EGL_NOK_swap_region2 1
1855
1856 typedef EGLBoolean ( * PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint * rects);
1857
1858 #define eglSwapBuffersRegion2NOK EGLEW_GET_FUN(__eglewSwapBuffersRegion2NOK)
1859
1860 #define EGLEW_NOK_swap_region2 EGLEW_GET_VAR(__EGLEW_NOK_swap_region2)
1861
1862 #endif /* EGL_NOK_swap_region2 */
1863
1864 /* ---------------------- EGL_NOK_texture_from_pixmap ---------------------- */
1865
1866 #ifndef EGL_NOK_texture_from_pixmap
1867 #define EGL_NOK_texture_from_pixmap 1
1868
1869 #define EGL_Y_INVERTED_NOK 0x307F
1870
1871 #define EGLEW_NOK_texture_from_pixmap EGLEW_GET_VAR(__EGLEW_NOK_texture_from_pixmap)
1872
1873 #endif /* EGL_NOK_texture_from_pixmap */
1874
1875 /* ------------------------ EGL_NV_3dvision_surface ------------------------ */
1876
1877 #ifndef EGL_NV_3dvision_surface
1878 #define EGL_NV_3dvision_surface 1
1879
1880 #define EGL_AUTO_STEREO_NV 0x3136
1881
1882 #define EGLEW_NV_3dvision_surface EGLEW_GET_VAR(__EGLEW_NV_3dvision_surface)
1883
1884 #endif /* EGL_NV_3dvision_surface */
1885
1886 /* ------------------------- EGL_NV_coverage_sample ------------------------ */
1887
1888 #ifndef EGL_NV_coverage_sample
1889 #define EGL_NV_coverage_sample 1
1890
1891 #define EGL_COVERAGE_BUFFERS_NV 0x30E0
1892 #define EGL_COVERAGE_SAMPLES_NV 0x30E1
1893
1894 #define EGLEW_NV_coverage_sample EGLEW_GET_VAR(__EGLEW_NV_coverage_sample)
1895
1896 #endif /* EGL_NV_coverage_sample */
1897
1898 /* --------------------- EGL_NV_coverage_sample_resolve -------------------- */
1899
1900 #ifndef EGL_NV_coverage_sample_resolve
1901 #define EGL_NV_coverage_sample_resolve 1
1902
1903 #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
1904 #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
1905 #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
1906
1907 #define EGLEW_NV_coverage_sample_resolve EGLEW_GET_VAR(__EGLEW_NV_coverage_sample_resolve)
1908
1909 #endif /* EGL_NV_coverage_sample_resolve */
1910
1911 /* --------------------------- EGL_NV_cuda_event --------------------------- */
1912
1913 #ifndef EGL_NV_cuda_event
1914 #define EGL_NV_cuda_event 1
1915
1916 #define EGL_CUDA_EVENT_HANDLE_NV 0x323B
1917 #define EGL_SYNC_CUDA_EVENT_NV 0x323C
1918 #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D
1919
1920 #define EGLEW_NV_cuda_event EGLEW_GET_VAR(__EGLEW_NV_cuda_event)
1921
1922 #endif /* EGL_NV_cuda_event */
1923
1924 /* ------------------------- EGL_NV_depth_nonlinear ------------------------ */
1925
1926 #ifndef EGL_NV_depth_nonlinear
1927 #define EGL_NV_depth_nonlinear 1
1928
1929 #define EGL_DEPTH_ENCODING_NONE_NV 0
1930 #define EGL_DEPTH_ENCODING_NV 0x30E2
1931 #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
1932
1933 #define EGLEW_NV_depth_nonlinear EGLEW_GET_VAR(__EGLEW_NV_depth_nonlinear)
1934
1935 #endif /* EGL_NV_depth_nonlinear */
1936
1937 /* --------------------------- EGL_NV_device_cuda -------------------------- */
1938
1939 #ifndef EGL_NV_device_cuda
1940 #define EGL_NV_device_cuda 1
1941
1942 #define EGL_CUDA_DEVICE_NV 0x323A
1943
1944 #define EGLEW_NV_device_cuda EGLEW_GET_VAR(__EGLEW_NV_device_cuda)
1945
1946 #endif /* EGL_NV_device_cuda */
1947
1948 /* -------------------------- EGL_NV_native_query -------------------------- */
1949
1950 #ifndef EGL_NV_native_query
1951 #define EGL_NV_native_query 1
1952
1953 typedef EGLBoolean ( * PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType * display_id);
1954 typedef EGLBoolean ( * PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType * pixmap);
1955 typedef EGLBoolean ( * PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType * window);
1956
1957 #define eglQueryNativeDisplayNV EGLEW_GET_FUN(__eglewQueryNativeDisplayNV)
1958 #define eglQueryNativePixmapNV EGLEW_GET_FUN(__eglewQueryNativePixmapNV)
1959 #define eglQueryNativeWindowNV EGLEW_GET_FUN(__eglewQueryNativeWindowNV)
1960
1961 #define EGLEW_NV_native_query EGLEW_GET_VAR(__EGLEW_NV_native_query)
1962
1963 #endif /* EGL_NV_native_query */
1964
1965 /* ---------------------- EGL_NV_post_convert_rounding --------------------- */
1966
1967 #ifndef EGL_NV_post_convert_rounding
1968 #define EGL_NV_post_convert_rounding 1
1969
1970 #define EGLEW_NV_post_convert_rounding EGLEW_GET_VAR(__EGLEW_NV_post_convert_rounding)
1971
1972 #endif /* EGL_NV_post_convert_rounding */
1973
1974 /* ------------------------- EGL_NV_post_sub_buffer ------------------------ */
1975
1976 #ifndef EGL_NV_post_sub_buffer
1977 #define EGL_NV_post_sub_buffer 1
1978
1979 #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
1980
1981 typedef EGLBoolean ( * PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
1982
1983 #define eglPostSubBufferNV EGLEW_GET_FUN(__eglewPostSubBufferNV)
1984
1985 #define EGLEW_NV_post_sub_buffer EGLEW_GET_VAR(__EGLEW_NV_post_sub_buffer)
1986
1987 #endif /* EGL_NV_post_sub_buffer */
1988
1989 /* ------------------ EGL_NV_robustness_video_memory_purge ----------------- */
1990
1991 #ifndef EGL_NV_robustness_video_memory_purge
1992 #define EGL_NV_robustness_video_memory_purge 1
1993
1994 #define EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x334C
1995
1996 #define EGLEW_NV_robustness_video_memory_purge EGLEW_GET_VAR(__EGLEW_NV_robustness_video_memory_purge)
1997
1998 #endif /* EGL_NV_robustness_video_memory_purge */
1999
2000 /* ------------------ EGL_NV_stream_consumer_gltexture_yuv ----------------- */
2001
2002 #ifndef EGL_NV_stream_consumer_gltexture_yuv
2003 #define EGL_NV_stream_consumer_gltexture_yuv 1
2004
2005 #define EGL_YUV_BUFFER_EXT 0x3300
2006 #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
2007 #define EGL_YUV_PLANE0_TEXTURE_UNIT_NV 0x332C
2008 #define EGL_YUV_PLANE1_TEXTURE_UNIT_NV 0x332D
2009 #define EGL_YUV_PLANE2_TEXTURE_UNIT_NV 0x332E
2010
2011 typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
2012
2013 #define eglStreamConsumerGLTextureExternalAttribsNV EGLEW_GET_FUN(__eglewStreamConsumerGLTextureExternalAttribsNV)
2014
2015 #define EGLEW_NV_stream_consumer_gltexture_yuv EGLEW_GET_VAR(__EGLEW_NV_stream_consumer_gltexture_yuv)
2016
2017 #endif /* EGL_NV_stream_consumer_gltexture_yuv */
2018
2019 /* ---------------------- EGL_NV_stream_cross_display ---------------------- */
2020
2021 #ifndef EGL_NV_stream_cross_display
2022 #define EGL_NV_stream_cross_display 1
2023
2024 #define EGL_STREAM_CROSS_DISPLAY_NV 0x334E
2025
2026 #define EGLEW_NV_stream_cross_display EGLEW_GET_VAR(__EGLEW_NV_stream_cross_display)
2027
2028 #endif /* EGL_NV_stream_cross_display */
2029
2030 /* ----------------------- EGL_NV_stream_cross_object ---------------------- */
2031
2032 #ifndef EGL_NV_stream_cross_object
2033 #define EGL_NV_stream_cross_object 1
2034
2035 #define EGL_STREAM_CROSS_OBJECT_NV 0x334D
2036
2037 #define EGLEW_NV_stream_cross_object EGLEW_GET_VAR(__EGLEW_NV_stream_cross_object)
2038
2039 #endif /* EGL_NV_stream_cross_object */
2040
2041 /* --------------------- EGL_NV_stream_cross_partition --------------------- */
2042
2043 #ifndef EGL_NV_stream_cross_partition
2044 #define EGL_NV_stream_cross_partition 1
2045
2046 #define EGL_STREAM_CROSS_PARTITION_NV 0x323F
2047
2048 #define EGLEW_NV_stream_cross_partition EGLEW_GET_VAR(__EGLEW_NV_stream_cross_partition)
2049
2050 #endif /* EGL_NV_stream_cross_partition */
2051
2052 /* ---------------------- EGL_NV_stream_cross_process ---------------------- */
2053
2054 #ifndef EGL_NV_stream_cross_process
2055 #define EGL_NV_stream_cross_process 1
2056
2057 #define EGL_STREAM_CROSS_PROCESS_NV 0x3245
2058
2059 #define EGLEW_NV_stream_cross_process EGLEW_GET_VAR(__EGLEW_NV_stream_cross_process)
2060
2061 #endif /* EGL_NV_stream_cross_process */
2062
2063 /* ----------------------- EGL_NV_stream_cross_system ---------------------- */
2064
2065 #ifndef EGL_NV_stream_cross_system
2066 #define EGL_NV_stream_cross_system 1
2067
2068 #define EGL_STREAM_CROSS_SYSTEM_NV 0x334F
2069
2070 #define EGLEW_NV_stream_cross_system EGLEW_GET_VAR(__EGLEW_NV_stream_cross_system)
2071
2072 #endif /* EGL_NV_stream_cross_system */
2073
2074 /* ------------------------ EGL_NV_stream_fifo_next ------------------------ */
2075
2076 #ifndef EGL_NV_stream_fifo_next
2077 #define EGL_NV_stream_fifo_next 1
2078
2079 #define EGL_PENDING_FRAME_NV 0x3329
2080 #define EGL_STREAM_TIME_PENDING_NV 0x332A
2081
2082 #define EGLEW_NV_stream_fifo_next EGLEW_GET_VAR(__EGLEW_NV_stream_fifo_next)
2083
2084 #endif /* EGL_NV_stream_fifo_next */
2085
2086 /* --------------------- EGL_NV_stream_fifo_synchronous -------------------- */
2087
2088 #ifndef EGL_NV_stream_fifo_synchronous
2089 #define EGL_NV_stream_fifo_synchronous 1
2090
2091 #define EGL_STREAM_FIFO_SYNCHRONOUS_NV 0x3336
2092
2093 #define EGLEW_NV_stream_fifo_synchronous EGLEW_GET_VAR(__EGLEW_NV_stream_fifo_synchronous)
2094
2095 #endif /* EGL_NV_stream_fifo_synchronous */
2096
2097 /* ----------------------- EGL_NV_stream_frame_limits ---------------------- */
2098
2099 #ifndef EGL_NV_stream_frame_limits
2100 #define EGL_NV_stream_frame_limits 1
2101
2102 #define EGL_PRODUCER_MAX_FRAME_HINT_NV 0x3337
2103 #define EGL_CONSUMER_MAX_FRAME_HINT_NV 0x3338
2104
2105 #define EGLEW_NV_stream_frame_limits EGLEW_GET_VAR(__EGLEW_NV_stream_frame_limits)
2106
2107 #endif /* EGL_NV_stream_frame_limits */
2108
2109 /* ------------------------- EGL_NV_stream_metadata ------------------------ */
2110
2111 #ifndef EGL_NV_stream_metadata
2112 #define EGL_NV_stream_metadata 1
2113
2114 #define EGL_MAX_STREAM_METADATA_BLOCKS_NV 0x3250
2115 #define EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV 0x3251
2116 #define EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV 0x3252
2117 #define EGL_PRODUCER_METADATA_NV 0x3253
2118 #define EGL_CONSUMER_METADATA_NV 0x3254
2119 #define EGL_METADATA0_SIZE_NV 0x3255
2120 #define EGL_METADATA1_SIZE_NV 0x3256
2121 #define EGL_METADATA2_SIZE_NV 0x3257
2122 #define EGL_METADATA3_SIZE_NV 0x3258
2123 #define EGL_METADATA0_TYPE_NV 0x3259
2124 #define EGL_METADATA1_TYPE_NV 0x325A
2125 #define EGL_METADATA2_TYPE_NV 0x325B
2126 #define EGL_METADATA3_TYPE_NV 0x325C
2127 #define EGL_PENDING_METADATA_NV 0x3328
2128
2129 typedef EGLBoolean ( * PFNEGLQUERYDISPLAYATTRIBNVPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib * value);
2130 typedef EGLBoolean ( * PFNEGLQUERYSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void * data);
2131 typedef EGLBoolean ( * PFNEGLSETSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void * data);
2132
2133 #define eglQueryDisplayAttribNV EGLEW_GET_FUN(__eglewQueryDisplayAttribNV)
2134 #define eglQueryStreamMetadataNV EGLEW_GET_FUN(__eglewQueryStreamMetadataNV)
2135 #define eglSetStreamMetadataNV EGLEW_GET_FUN(__eglewSetStreamMetadataNV)
2136
2137 #define EGLEW_NV_stream_metadata EGLEW_GET_VAR(__EGLEW_NV_stream_metadata)
2138
2139 #endif /* EGL_NV_stream_metadata */
2140
2141 /* -------------------------- EGL_NV_stream_remote ------------------------- */
2142
2143 #ifndef EGL_NV_stream_remote
2144 #define EGL_NV_stream_remote 1
2145
2146 #define EGL_STREAM_STATE_INITIALIZING_NV 0x3240
2147 #define EGL_STREAM_TYPE_NV 0x3241
2148 #define EGL_STREAM_PROTOCOL_NV 0x3242
2149 #define EGL_STREAM_ENDPOINT_NV 0x3243
2150 #define EGL_STREAM_LOCAL_NV 0x3244
2151 #define EGL_STREAM_PROTOCOL_FD_NV 0x3246
2152 #define EGL_STREAM_PRODUCER_NV 0x3247
2153 #define EGL_STREAM_CONSUMER_NV 0x3248
2154
2155 #define EGLEW_NV_stream_remote EGLEW_GET_VAR(__EGLEW_NV_stream_remote)
2156
2157 #endif /* EGL_NV_stream_remote */
2158
2159 /* -------------------------- EGL_NV_stream_reset -------------------------- */
2160
2161 #ifndef EGL_NV_stream_reset
2162 #define EGL_NV_stream_reset 1
2163
2164 #define EGL_SUPPORT_RESET_NV 0x3334
2165 #define EGL_SUPPORT_REUSE_NV 0x3335
2166
2167 typedef EGLBoolean ( * PFNEGLRESETSTREAMNVPROC) (EGLDisplay dpy, EGLStreamKHR stream);
2168
2169 #define eglResetStreamNV EGLEW_GET_FUN(__eglewResetStreamNV)
2170
2171 #define EGLEW_NV_stream_reset EGLEW_GET_VAR(__EGLEW_NV_stream_reset)
2172
2173 #endif /* EGL_NV_stream_reset */
2174
2175 /* -------------------------- EGL_NV_stream_socket ------------------------- */
2176
2177 #ifndef EGL_NV_stream_socket
2178 #define EGL_NV_stream_socket 1
2179
2180 #define EGL_STREAM_PROTOCOL_SOCKET_NV 0x324B
2181 #define EGL_SOCKET_HANDLE_NV 0x324C
2182 #define EGL_SOCKET_TYPE_NV 0x324D
2183
2184 #define EGLEW_NV_stream_socket EGLEW_GET_VAR(__EGLEW_NV_stream_socket)
2185
2186 #endif /* EGL_NV_stream_socket */
2187
2188 /* ----------------------- EGL_NV_stream_socket_inet ----------------------- */
2189
2190 #ifndef EGL_NV_stream_socket_inet
2191 #define EGL_NV_stream_socket_inet 1
2192
2193 #define EGL_SOCKET_TYPE_INET_NV 0x324F
2194
2195 #define EGLEW_NV_stream_socket_inet EGLEW_GET_VAR(__EGLEW_NV_stream_socket_inet)
2196
2197 #endif /* EGL_NV_stream_socket_inet */
2198
2199 /* ----------------------- EGL_NV_stream_socket_unix ----------------------- */
2200
2201 #ifndef EGL_NV_stream_socket_unix
2202 #define EGL_NV_stream_socket_unix 1
2203
2204 #define EGL_SOCKET_TYPE_UNIX_NV 0x324E
2205
2206 #define EGLEW_NV_stream_socket_unix EGLEW_GET_VAR(__EGLEW_NV_stream_socket_unix)
2207
2208 #endif /* EGL_NV_stream_socket_unix */
2209
2210 /* --------------------------- EGL_NV_stream_sync -------------------------- */
2211
2212 #ifndef EGL_NV_stream_sync
2213 #define EGL_NV_stream_sync 1
2214
2215 #define EGL_SYNC_TYPE_KHR 0x30F7
2216 #define EGL_SYNC_NEW_FRAME_NV 0x321F
2217
2218 typedef EGLSyncKHR ( * PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint * attrib_list);
2219
2220 #define eglCreateStreamSyncNV EGLEW_GET_FUN(__eglewCreateStreamSyncNV)
2221
2222 #define EGLEW_NV_stream_sync EGLEW_GET_VAR(__EGLEW_NV_stream_sync)
2223
2224 #endif /* EGL_NV_stream_sync */
2225
2226 /* ------------------------------ EGL_NV_sync ------------------------------ */
2227
2228 #ifndef EGL_NV_sync
2229 #define EGL_NV_sync 1
2230
2231 #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
2232 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
2233 #define EGL_SYNC_STATUS_NV 0x30E7
2234 #define EGL_SIGNALED_NV 0x30E8
2235 #define EGL_UNSIGNALED_NV 0x30E9
2236 #define EGL_ALREADY_SIGNALED_NV 0x30EA
2237 #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
2238 #define EGL_CONDITION_SATISFIED_NV 0x30EC
2239 #define EGL_SYNC_TYPE_NV 0x30ED
2240 #define EGL_SYNC_CONDITION_NV 0x30EE
2241 #define EGL_SYNC_FENCE_NV 0x30EF
2242 #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFF
2243
2244 typedef EGLint ( * PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
2245 typedef EGLSyncNV ( * PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint * attrib_list);
2246 typedef EGLBoolean ( * PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
2247 typedef EGLBoolean ( * PFNEGLFENCENVPROC) (EGLSyncNV sync);
2248 typedef EGLBoolean ( * PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint * value);
2249 typedef EGLBoolean ( * PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
2250
2251 #define eglClientWaitSyncNV EGLEW_GET_FUN(__eglewClientWaitSyncNV)
2252 #define eglCreateFenceSyncNV EGLEW_GET_FUN(__eglewCreateFenceSyncNV)
2253 #define eglDestroySyncNV EGLEW_GET_FUN(__eglewDestroySyncNV)
2254 #define eglFenceNV EGLEW_GET_FUN(__eglewFenceNV)
2255 #define eglGetSyncAttribNV EGLEW_GET_FUN(__eglewGetSyncAttribNV)
2256 #define eglSignalSyncNV EGLEW_GET_FUN(__eglewSignalSyncNV)
2257
2258 #define EGLEW_NV_sync EGLEW_GET_VAR(__EGLEW_NV_sync)
2259
2260 #endif /* EGL_NV_sync */
2261
2262 /* --------------------------- EGL_NV_system_time -------------------------- */
2263
2264 #ifndef EGL_NV_system_time
2265 #define EGL_NV_system_time 1
2266
2267 typedef EGLuint64NV ( * PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) ( void );
2268 typedef EGLuint64NV ( * PFNEGLGETSYSTEMTIMENVPROC) ( void );
2269
2270 #define eglGetSystemTimeFrequencyNV EGLEW_GET_FUN(__eglewGetSystemTimeFrequencyNV)
2271 #define eglGetSystemTimeNV EGLEW_GET_FUN(__eglewGetSystemTimeNV)
2272
2273 #define EGLEW_NV_system_time EGLEW_GET_VAR(__EGLEW_NV_system_time)
2274
2275 #endif /* EGL_NV_system_time */
2276
2277 /* --------------------- EGL_TIZEN_image_native_buffer --------------------- */
2278
2279 #ifndef EGL_TIZEN_image_native_buffer
2280 #define EGL_TIZEN_image_native_buffer 1
2281
2282 #define EGL_NATIVE_BUFFER_TIZEN 0x32A0
2283
2284 #define EGLEW_TIZEN_image_native_buffer EGLEW_GET_VAR(__EGLEW_TIZEN_image_native_buffer)
2285
2286 #endif /* EGL_TIZEN_image_native_buffer */
2287
2288 /* --------------------- EGL_TIZEN_image_native_surface -------------------- */
2289
2290 #ifndef EGL_TIZEN_image_native_surface
2291 #define EGL_TIZEN_image_native_surface 1
2292
2293 #define EGL_NATIVE_SURFACE_TIZEN 0x32A1
2294
2295 #define EGLEW_TIZEN_image_native_surface EGLEW_GET_VAR(__EGLEW_TIZEN_image_native_surface)
2296
2297 #endif /* EGL_TIZEN_image_native_surface */
2298
2299 /* ------------------------------------------------------------------------- */
2300
2301 #define EGLEW_FUN_EXPORT GLEW_FUN_EXPORT
2302 #define EGLEW_VAR_EXPORT GLEW_VAR_EXPORT
2303
2304 EGLEW_FUN_EXPORT PFNEGLCHOOSECONFIGPROC __eglewChooseConfig;
2305 EGLEW_FUN_EXPORT PFNEGLCOPYBUFFERSPROC __eglewCopyBuffers;
2306 EGLEW_FUN_EXPORT PFNEGLCREATECONTEXTPROC __eglewCreateContext;
2307 EGLEW_FUN_EXPORT PFNEGLCREATEPBUFFERSURFACEPROC __eglewCreatePbufferSurface;
2308 EGLEW_FUN_EXPORT PFNEGLCREATEPIXMAPSURFACEPROC __eglewCreatePixmapSurface;
2309 EGLEW_FUN_EXPORT PFNEGLCREATEWINDOWSURFACEPROC __eglewCreateWindowSurface;
2310 EGLEW_FUN_EXPORT PFNEGLDESTROYCONTEXTPROC __eglewDestroyContext;
2311 EGLEW_FUN_EXPORT PFNEGLDESTROYSURFACEPROC __eglewDestroySurface;
2312 EGLEW_FUN_EXPORT PFNEGLGETCONFIGATTRIBPROC __eglewGetConfigAttrib;
2313 EGLEW_FUN_EXPORT PFNEGLGETCONFIGSPROC __eglewGetConfigs;
2314 EGLEW_FUN_EXPORT PFNEGLGETCURRENTDISPLAYPROC __eglewGetCurrentDisplay;
2315 EGLEW_FUN_EXPORT PFNEGLGETCURRENTSURFACEPROC __eglewGetCurrentSurface;
2316 EGLEW_FUN_EXPORT PFNEGLGETDISPLAYPROC __eglewGetDisplay;
2317 EGLEW_FUN_EXPORT PFNEGLGETERRORPROC __eglewGetError;
2318 EGLEW_FUN_EXPORT PFNEGLINITIALIZEPROC __eglewInitialize;
2319 EGLEW_FUN_EXPORT PFNEGLMAKECURRENTPROC __eglewMakeCurrent;
2320 EGLEW_FUN_EXPORT PFNEGLQUERYCONTEXTPROC __eglewQueryContext;
2321 EGLEW_FUN_EXPORT PFNEGLQUERYSTRINGPROC __eglewQueryString;
2322 EGLEW_FUN_EXPORT PFNEGLQUERYSURFACEPROC __eglewQuerySurface;
2323 EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSPROC __eglewSwapBuffers;
2324 EGLEW_FUN_EXPORT PFNEGLTERMINATEPROC __eglewTerminate;
2325 EGLEW_FUN_EXPORT PFNEGLWAITGLPROC __eglewWaitGL;
2326 EGLEW_FUN_EXPORT PFNEGLWAITNATIVEPROC __eglewWaitNative;
2327
2328 EGLEW_FUN_EXPORT PFNEGLBINDTEXIMAGEPROC __eglewBindTexImage;
2329 EGLEW_FUN_EXPORT PFNEGLRELEASETEXIMAGEPROC __eglewReleaseTexImage;
2330 EGLEW_FUN_EXPORT PFNEGLSURFACEATTRIBPROC __eglewSurfaceAttrib;
2331 EGLEW_FUN_EXPORT PFNEGLSWAPINTERVALPROC __eglewSwapInterval;
2332
2333 EGLEW_FUN_EXPORT PFNEGLBINDAPIPROC __eglewBindAPI;
2334 EGLEW_FUN_EXPORT PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC __eglewCreatePbufferFromClientBuffer;
2335 EGLEW_FUN_EXPORT PFNEGLQUERYAPIPROC __eglewQueryAPI;
2336 EGLEW_FUN_EXPORT PFNEGLRELEASETHREADPROC __eglewReleaseThread;
2337 EGLEW_FUN_EXPORT PFNEGLWAITCLIENTPROC __eglewWaitClient;
2338
2339 EGLEW_FUN_EXPORT PFNEGLGETCURRENTCONTEXTPROC __eglewGetCurrentContext;
2340
2341 EGLEW_FUN_EXPORT PFNEGLCLIENTWAITSYNCPROC __eglewClientWaitSync;
2342 EGLEW_FUN_EXPORT PFNEGLCREATEIMAGEPROC __eglewCreateImage;
2343 EGLEW_FUN_EXPORT PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC __eglewCreatePlatformPixmapSurface;
2344 EGLEW_FUN_EXPORT PFNEGLCREATEPLATFORMWINDOWSURFACEPROC __eglewCreatePlatformWindowSurface;
2345 EGLEW_FUN_EXPORT PFNEGLCREATESYNCPROC __eglewCreateSync;
2346 EGLEW_FUN_EXPORT PFNEGLDESTROYIMAGEPROC __eglewDestroyImage;
2347 EGLEW_FUN_EXPORT PFNEGLDESTROYSYNCPROC __eglewDestroySync;
2348 EGLEW_FUN_EXPORT PFNEGLGETPLATFORMDISPLAYPROC __eglewGetPlatformDisplay;
2349 EGLEW_FUN_EXPORT PFNEGLGETSYNCATTRIBPROC __eglewGetSyncAttrib;
2350 EGLEW_FUN_EXPORT PFNEGLWAITSYNCPROC __eglewWaitSync;
2351
2352 EGLEW_FUN_EXPORT PFNEGLSETBLOBCACHEFUNCSANDROIDPROC __eglewSetBlobCacheFuncsANDROID;
2353
2354 EGLEW_FUN_EXPORT PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC __eglewCreateNativeClientBufferANDROID;
2355
2356 EGLEW_FUN_EXPORT PFNEGLDUPNATIVEFENCEFDANDROIDPROC __eglewDupNativeFenceFDANDROID;
2357
2358 EGLEW_FUN_EXPORT PFNEGLPRESENTATIONTIMEANDROIDPROC __eglewPresentationTimeANDROID;
2359
2360 EGLEW_FUN_EXPORT PFNEGLQUERYSURFACEPOINTERANGLEPROC __eglewQuerySurfacePointerANGLE;
2361
2362 EGLEW_FUN_EXPORT PFNEGLQUERYDEVICESEXTPROC __eglewQueryDevicesEXT;
2363
2364 EGLEW_FUN_EXPORT PFNEGLQUERYDEVICEATTRIBEXTPROC __eglewQueryDeviceAttribEXT;
2365 EGLEW_FUN_EXPORT PFNEGLQUERYDEVICESTRINGEXTPROC __eglewQueryDeviceStringEXT;
2366 EGLEW_FUN_EXPORT PFNEGLQUERYDISPLAYATTRIBEXTPROC __eglewQueryDisplayAttribEXT;
2367
2368 EGLEW_FUN_EXPORT PFNEGLQUERYDMABUFFORMATSEXTPROC __eglewQueryDmaBufFormatsEXT;
2369 EGLEW_FUN_EXPORT PFNEGLQUERYDMABUFMODIFIERSEXTPROC __eglewQueryDmaBufModifiersEXT;
2370
2371 EGLEW_FUN_EXPORT PFNEGLGETOUTPUTLAYERSEXTPROC __eglewGetOutputLayersEXT;
2372 EGLEW_FUN_EXPORT PFNEGLGETOUTPUTPORTSEXTPROC __eglewGetOutputPortsEXT;
2373 EGLEW_FUN_EXPORT PFNEGLOUTPUTLAYERATTRIBEXTPROC __eglewOutputLayerAttribEXT;
2374 EGLEW_FUN_EXPORT PFNEGLOUTPUTPORTATTRIBEXTPROC __eglewOutputPortAttribEXT;
2375 EGLEW_FUN_EXPORT PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC __eglewQueryOutputLayerAttribEXT;
2376 EGLEW_FUN_EXPORT PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC __eglewQueryOutputLayerStringEXT;
2377 EGLEW_FUN_EXPORT PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC __eglewQueryOutputPortAttribEXT;
2378 EGLEW_FUN_EXPORT PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC __eglewQueryOutputPortStringEXT;
2379
2380 EGLEW_FUN_EXPORT PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC __eglewCreatePlatformPixmapSurfaceEXT;
2381 EGLEW_FUN_EXPORT PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC __eglewCreatePlatformWindowSurfaceEXT;
2382 EGLEW_FUN_EXPORT PFNEGLGETPLATFORMDISPLAYEXTPROC __eglewGetPlatformDisplayEXT;
2383
2384 EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMEROUTPUTEXTPROC __eglewStreamConsumerOutputEXT;
2385
2386 EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC __eglewSwapBuffersWithDamageEXT;
2387
2388 EGLEW_FUN_EXPORT PFNEGLCREATEPIXMAPSURFACEHIPROC __eglewCreatePixmapSurfaceHI;
2389
2390 EGLEW_FUN_EXPORT PFNEGLCREATESYNC64KHRPROC __eglewCreateSync64KHR;
2391
2392 EGLEW_FUN_EXPORT PFNEGLDEBUGMESSAGECONTROLKHRPROC __eglewDebugMessageControlKHR;
2393 EGLEW_FUN_EXPORT PFNEGLLABELOBJECTKHRPROC __eglewLabelObjectKHR;
2394 EGLEW_FUN_EXPORT PFNEGLQUERYDEBUGKHRPROC __eglewQueryDebugKHR;
2395
2396 EGLEW_FUN_EXPORT PFNEGLCREATEIMAGEKHRPROC __eglewCreateImageKHR;
2397 EGLEW_FUN_EXPORT PFNEGLDESTROYIMAGEKHRPROC __eglewDestroyImageKHR;
2398
2399 EGLEW_FUN_EXPORT PFNEGLLOCKSURFACEKHRPROC __eglewLockSurfaceKHR;
2400 EGLEW_FUN_EXPORT PFNEGLUNLOCKSURFACEKHRPROC __eglewUnlockSurfaceKHR;
2401
2402 EGLEW_FUN_EXPORT PFNEGLQUERYSURFACE64KHRPROC __eglewQuerySurface64KHR;
2403
2404 EGLEW_FUN_EXPORT PFNEGLSETDAMAGEREGIONKHRPROC __eglewSetDamageRegionKHR;
2405
2406 EGLEW_FUN_EXPORT PFNEGLCLIENTWAITSYNCKHRPROC __eglewClientWaitSyncKHR;
2407 EGLEW_FUN_EXPORT PFNEGLCREATESYNCKHRPROC __eglewCreateSyncKHR;
2408 EGLEW_FUN_EXPORT PFNEGLDESTROYSYNCKHRPROC __eglewDestroySyncKHR;
2409 EGLEW_FUN_EXPORT PFNEGLGETSYNCATTRIBKHRPROC __eglewGetSyncAttribKHR;
2410 EGLEW_FUN_EXPORT PFNEGLSIGNALSYNCKHRPROC __eglewSignalSyncKHR;
2411
2412 EGLEW_FUN_EXPORT PFNEGLCREATESTREAMKHRPROC __eglewCreateStreamKHR;
2413 EGLEW_FUN_EXPORT PFNEGLDESTROYSTREAMKHRPROC __eglewDestroyStreamKHR;
2414 EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMKHRPROC __eglewQueryStreamKHR;
2415 EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMU64KHRPROC __eglewQueryStreamu64KHR;
2416 EGLEW_FUN_EXPORT PFNEGLSTREAMATTRIBKHRPROC __eglewStreamAttribKHR;
2417
2418 EGLEW_FUN_EXPORT PFNEGLCREATESTREAMATTRIBKHRPROC __eglewCreateStreamAttribKHR;
2419 EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMATTRIBKHRPROC __eglewQueryStreamAttribKHR;
2420 EGLEW_FUN_EXPORT PFNEGLSETSTREAMATTRIBKHRPROC __eglewSetStreamAttribKHR;
2421 EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC __eglewStreamConsumerAcquireAttribKHR;
2422 EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC __eglewStreamConsumerReleaseAttribKHR;
2423
2424 EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERACQUIREKHRPROC __eglewStreamConsumerAcquireKHR;
2425 EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC __eglewStreamConsumerGLTextureExternalKHR;
2426 EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERRELEASEKHRPROC __eglewStreamConsumerReleaseKHR;
2427
2428 EGLEW_FUN_EXPORT PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC __eglewCreateStreamFromFileDescriptorKHR;
2429 EGLEW_FUN_EXPORT PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC __eglewGetStreamFileDescriptorKHR;
2430
2431 EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMTIMEKHRPROC __eglewQueryStreamTimeKHR;
2432
2433 EGLEW_FUN_EXPORT PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC __eglewCreateStreamProducerSurfaceKHR;
2434
2435 EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC __eglewSwapBuffersWithDamageKHR;
2436
2437 EGLEW_FUN_EXPORT PFNEGLWAITSYNCKHRPROC __eglewWaitSyncKHR;
2438
2439 EGLEW_FUN_EXPORT PFNEGLCREATEDRMIMAGEMESAPROC __eglewCreateDRMImageMESA;
2440 EGLEW_FUN_EXPORT PFNEGLEXPORTDRMIMAGEMESAPROC __eglewExportDRMImageMESA;
2441
2442 EGLEW_FUN_EXPORT PFNEGLEXPORTDMABUFIMAGEMESAPROC __eglewExportDMABUFImageMESA;
2443 EGLEW_FUN_EXPORT PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC __eglewExportDMABUFImageQueryMESA;
2444
2445 EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSREGIONNOKPROC __eglewSwapBuffersRegionNOK;
2446
2447 EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSREGION2NOKPROC __eglewSwapBuffersRegion2NOK;
2448
2449 EGLEW_FUN_EXPORT PFNEGLQUERYNATIVEDISPLAYNVPROC __eglewQueryNativeDisplayNV;
2450 EGLEW_FUN_EXPORT PFNEGLQUERYNATIVEPIXMAPNVPROC __eglewQueryNativePixmapNV;
2451 EGLEW_FUN_EXPORT PFNEGLQUERYNATIVEWINDOWNVPROC __eglewQueryNativeWindowNV;
2452
2453 EGLEW_FUN_EXPORT PFNEGLPOSTSUBBUFFERNVPROC __eglewPostSubBufferNV;
2454
2455 EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC __eglewStreamConsumerGLTextureExternalAttribsNV;
2456
2457 EGLEW_FUN_EXPORT PFNEGLQUERYDISPLAYATTRIBNVPROC __eglewQueryDisplayAttribNV;
2458 EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMMETADATANVPROC __eglewQueryStreamMetadataNV;
2459 EGLEW_FUN_EXPORT PFNEGLSETSTREAMMETADATANVPROC __eglewSetStreamMetadataNV;
2460
2461 EGLEW_FUN_EXPORT PFNEGLRESETSTREAMNVPROC __eglewResetStreamNV;
2462
2463 EGLEW_FUN_EXPORT PFNEGLCREATESTREAMSYNCNVPROC __eglewCreateStreamSyncNV;
2464
2465 EGLEW_FUN_EXPORT PFNEGLCLIENTWAITSYNCNVPROC __eglewClientWaitSyncNV;
2466 EGLEW_FUN_EXPORT PFNEGLCREATEFENCESYNCNVPROC __eglewCreateFenceSyncNV;
2467 EGLEW_FUN_EXPORT PFNEGLDESTROYSYNCNVPROC __eglewDestroySyncNV;
2468 EGLEW_FUN_EXPORT PFNEGLFENCENVPROC __eglewFenceNV;
2469 EGLEW_FUN_EXPORT PFNEGLGETSYNCATTRIBNVPROC __eglewGetSyncAttribNV;
2470 EGLEW_FUN_EXPORT PFNEGLSIGNALSYNCNVPROC __eglewSignalSyncNV;
2471
2472 EGLEW_FUN_EXPORT PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC __eglewGetSystemTimeFrequencyNV;
2473 EGLEW_FUN_EXPORT PFNEGLGETSYSTEMTIMENVPROC __eglewGetSystemTimeNV;
2474 EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_0;
2475 EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_1;
2476 EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_2;
2477 EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_3;
2478 EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_4;
2479 EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_5;
2480 EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_blob_cache;
2481 EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_create_native_client_buffer;
2482 EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_framebuffer_target;
2483 EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_front_buffer_auto_refresh;
2484 EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_image_native_buffer;
2485 EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_native_fence_sync;
2486 EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_presentation_time;
2487 EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_recordable;
2488 EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_d3d_share_handle_client_buffer;
2489 EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_device_d3d;
2490 EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_query_surface_pointer;
2491 EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_surface_d3d_texture_2d_share_handle;
2492 EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_window_fixed_size;
2493 EGLEW_VAR_EXPORT GLboolean __EGLEW_ARM_implicit_external_sync;
2494 EGLEW_VAR_EXPORT GLboolean __EGLEW_ARM_pixmap_multisample_discard;
2495 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_buffer_age;
2496 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_client_extensions;
2497 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_create_context_robustness;
2498 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_base;
2499 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_drm;
2500 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_enumeration;
2501 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_openwf;
2502 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_query;
2503 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_gl_colorspace_bt2020_linear;
2504 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_gl_colorspace_bt2020_pq;
2505 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_gl_colorspace_scrgb_linear;
2506 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_image_dma_buf_import;
2507 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_image_dma_buf_import_modifiers;
2508 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_multiview_window;
2509 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_output_base;
2510 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_output_drm;
2511 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_output_openwf;
2512 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_pixel_format_float;
2513 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_base;
2514 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_device;
2515 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_wayland;
2516 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_x11;
2517 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_protected_content;
2518 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_protected_surface;
2519 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_stream_consumer_egloutput;
2520 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_surface_SMPTE2086_metadata;
2521 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_swap_buffers_with_damage;
2522 EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_yuv_surface;
2523 EGLEW_VAR_EXPORT GLboolean __EGLEW_HI_clientpixmap;
2524 EGLEW_VAR_EXPORT GLboolean __EGLEW_HI_colorformats;
2525 EGLEW_VAR_EXPORT GLboolean __EGLEW_IMG_context_priority;
2526 EGLEW_VAR_EXPORT GLboolean __EGLEW_IMG_image_plane_attribs;
2527 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_cl_event;
2528 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_cl_event2;
2529 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_client_get_all_proc_addresses;
2530 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_config_attribs;
2531 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_context_flush_control;
2532 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_create_context;
2533 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_create_context_no_error;
2534 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_debug;
2535 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_fence_sync;
2536 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_get_all_proc_addresses;
2537 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_colorspace;
2538 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_renderbuffer_image;
2539 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_texture_2D_image;
2540 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_texture_3D_image;
2541 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_texture_cubemap_image;
2542 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_image;
2543 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_image_base;
2544 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_image_pixmap;
2545 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_lock_surface;
2546 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_lock_surface2;
2547 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_lock_surface3;
2548 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_mutable_render_buffer;
2549 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_no_config_context;
2550 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_partial_update;
2551 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_platform_android;
2552 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_platform_gbm;
2553 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_platform_wayland;
2554 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_platform_x11;
2555 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_reusable_sync;
2556 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream;
2557 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_attrib;
2558 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_consumer_gltexture;
2559 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_cross_process_fd;
2560 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_fifo;
2561 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_producer_aldatalocator;
2562 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_producer_eglsurface;
2563 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_surfaceless_context;
2564 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_swap_buffers_with_damage;
2565 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_vg_parent_image;
2566 EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_wait_sync;
2567 EGLEW_VAR_EXPORT GLboolean __EGLEW_MESA_drm_image;
2568 EGLEW_VAR_EXPORT GLboolean __EGLEW_MESA_image_dma_buf_export;
2569 EGLEW_VAR_EXPORT GLboolean __EGLEW_MESA_platform_gbm;
2570 EGLEW_VAR_EXPORT GLboolean __EGLEW_MESA_platform_surfaceless;
2571 EGLEW_VAR_EXPORT GLboolean __EGLEW_NOK_swap_region;
2572 EGLEW_VAR_EXPORT GLboolean __EGLEW_NOK_swap_region2;
2573 EGLEW_VAR_EXPORT GLboolean __EGLEW_NOK_texture_from_pixmap;
2574 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_3dvision_surface;
2575 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_coverage_sample;
2576 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_coverage_sample_resolve;
2577 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_cuda_event;
2578 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_depth_nonlinear;
2579 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_device_cuda;
2580 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_native_query;
2581 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_post_convert_rounding;
2582 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_post_sub_buffer;
2583 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_robustness_video_memory_purge;
2584 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_consumer_gltexture_yuv;
2585 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_cross_display;
2586 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_cross_object;
2587 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_cross_partition;
2588 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_cross_process;
2589 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_cross_system;
2590 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_fifo_next;
2591 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_fifo_synchronous;
2592 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_frame_limits;
2593 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_metadata;
2594 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_remote;
2595 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_reset;
2596 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_socket;
2597 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_socket_inet;
2598 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_socket_unix;
2599 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_sync;
2600 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_sync;
2601 EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_system_time;
2602 EGLEW_VAR_EXPORT GLboolean __EGLEW_TIZEN_image_native_buffer;
2603 EGLEW_VAR_EXPORT GLboolean __EGLEW_TIZEN_image_native_surface;
2604 /* ------------------------------------------------------------------------ */
2605
2606 GLEWAPI GLenum GLEWAPIENTRY eglewInit (EGLDisplay display);
2607 GLEWAPI GLboolean GLEWAPIENTRY eglewIsSupported (const char *name);
2608
2609 #define EGLEW_GET_VAR(x) (*(const GLboolean*)&x)
2610 #define EGLEW_GET_FUN(x) x
2611
2612 GLEWAPI GLboolean GLEWAPIENTRY eglewGetExtension (const char *name);
2613
2614 #ifdef __cplusplus
2615 }
2616 #endif
2617
2618 #endif /* __eglew_h__ */