diff options
Diffstat (limited to 'recipes/opengldummy/files/headers/EGL')
-rw-r--r-- | recipes/opengldummy/files/headers/EGL/egl.h | 329 | ||||
-rw-r--r-- | recipes/opengldummy/files/headers/EGL/eglext.h | 628 | ||||
-rw-r--r-- | recipes/opengldummy/files/headers/EGL/eglplatform.h | 143 |
3 files changed, 1100 insertions, 0 deletions
diff --git a/recipes/opengldummy/files/headers/EGL/egl.h b/recipes/opengldummy/files/headers/EGL/egl.h new file mode 100644 index 0000000..99ea342 --- /dev/null +++ b/recipes/opengldummy/files/headers/EGL/egl.h | |||
@@ -0,0 +1,329 @@ | |||
1 | /* -*- mode: c; tab-width: 8; -*- */ | ||
2 | /* vi: set sw=4 ts=8: */ | ||
3 | /* Reference version of egl.h for EGL 1.4. | ||
4 | * $Revision: 9356 $ on $Date: 2009-10-21 02:52:25 -0700 (Wed, 21 Oct 2009) $ | ||
5 | */ | ||
6 | |||
7 | /* | ||
8 | ** Copyright (c) 2007-2009 The Khronos Group Inc. | ||
9 | ** | ||
10 | ** Permission is hereby granted, free of charge, to any person obtaining a | ||
11 | ** copy of this software and/or associated documentation files (the | ||
12 | ** "Materials"), to deal in the Materials without restriction, including | ||
13 | ** without limitation the rights to use, copy, modify, merge, publish, | ||
14 | ** distribute, sublicense, and/or sell copies of the Materials, and to | ||
15 | ** permit persons to whom the Materials are furnished to do so, subject to | ||
16 | ** the following conditions: | ||
17 | ** | ||
18 | ** The above copyright notice and this permission notice shall be included | ||
19 | ** in all copies or substantial portions of the Materials. | ||
20 | ** | ||
21 | ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
22 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
23 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
24 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
25 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
26 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
27 | ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. | ||
28 | */ | ||
29 | |||
30 | #ifndef __egl_h_ | ||
31 | #define __egl_h_ | ||
32 | |||
33 | /* All platform-dependent types and macro boilerplate (such as EGLAPI | ||
34 | * and EGLAPIENTRY) should go in eglplatform.h. | ||
35 | */ | ||
36 | #include <EGL/eglplatform.h> | ||
37 | |||
38 | #ifdef __cplusplus | ||
39 | extern "C" { | ||
40 | #endif | ||
41 | |||
42 | /* EGL Types */ | ||
43 | /* EGLint is defined in eglplatform.h */ | ||
44 | typedef unsigned int EGLBoolean; | ||
45 | typedef unsigned int EGLenum; | ||
46 | typedef void *EGLConfig; | ||
47 | typedef void *EGLContext; | ||
48 | typedef void *EGLDisplay; | ||
49 | typedef void *EGLSurface; | ||
50 | typedef void *EGLClientBuffer; | ||
51 | |||
52 | /* EGL Versioning */ | ||
53 | #define EGL_VERSION_1_0 1 | ||
54 | #define EGL_VERSION_1_1 1 | ||
55 | #define EGL_VERSION_1_2 1 | ||
56 | #define EGL_VERSION_1_3 1 | ||
57 | #define EGL_VERSION_1_4 1 | ||
58 | |||
59 | /* EGL Enumerants. Bitmasks and other exceptional cases aside, most | ||
60 | * enums are assigned unique values starting at 0x3000. | ||
61 | */ | ||
62 | |||
63 | /* EGL aliases */ | ||
64 | #define EGL_FALSE 0 | ||
65 | #define EGL_TRUE 1 | ||
66 | |||
67 | /* Out-of-band handle values */ | ||
68 | #define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType)0) | ||
69 | #define EGL_NO_CONTEXT ((EGLContext)0) | ||
70 | #define EGL_NO_DISPLAY ((EGLDisplay)0) | ||
71 | #define EGL_NO_SURFACE ((EGLSurface)0) | ||
72 | |||
73 | /* Out-of-band attribute value */ | ||
74 | #define EGL_DONT_CARE ((EGLint)-1) | ||
75 | |||
76 | /* Errors / GetError return values */ | ||
77 | #define EGL_SUCCESS 0x3000 | ||
78 | #define EGL_NOT_INITIALIZED 0x3001 | ||
79 | #define EGL_BAD_ACCESS 0x3002 | ||
80 | #define EGL_BAD_ALLOC 0x3003 | ||
81 | #define EGL_BAD_ATTRIBUTE 0x3004 | ||
82 | #define EGL_BAD_CONFIG 0x3005 | ||
83 | #define EGL_BAD_CONTEXT 0x3006 | ||
84 | #define EGL_BAD_CURRENT_SURFACE 0x3007 | ||
85 | #define EGL_BAD_DISPLAY 0x3008 | ||
86 | #define EGL_BAD_MATCH 0x3009 | ||
87 | #define EGL_BAD_NATIVE_PIXMAP 0x300A | ||
88 | #define EGL_BAD_NATIVE_WINDOW 0x300B | ||
89 | #define EGL_BAD_PARAMETER 0x300C | ||
90 | #define EGL_BAD_SURFACE 0x300D | ||
91 | #define EGL_CONTEXT_LOST 0x300E /* EGL 1.1 - IMG_power_management */ | ||
92 | |||
93 | /* Reserved 0x300F-0x301F for additional errors */ | ||
94 | |||
95 | /* Config attributes */ | ||
96 | #define EGL_BUFFER_SIZE 0x3020 | ||
97 | #define EGL_ALPHA_SIZE 0x3021 | ||
98 | #define EGL_BLUE_SIZE 0x3022 | ||
99 | #define EGL_GREEN_SIZE 0x3023 | ||
100 | #define EGL_RED_SIZE 0x3024 | ||
101 | #define EGL_DEPTH_SIZE 0x3025 | ||
102 | #define EGL_STENCIL_SIZE 0x3026 | ||
103 | #define EGL_CONFIG_CAVEAT 0x3027 | ||
104 | #define EGL_CONFIG_ID 0x3028 | ||
105 | #define EGL_LEVEL 0x3029 | ||
106 | #define EGL_MAX_PBUFFER_HEIGHT 0x302A | ||
107 | #define EGL_MAX_PBUFFER_PIXELS 0x302B | ||
108 | #define EGL_MAX_PBUFFER_WIDTH 0x302C | ||
109 | #define EGL_NATIVE_RENDERABLE 0x302D | ||
110 | #define EGL_NATIVE_VISUAL_ID 0x302E | ||
111 | #define EGL_NATIVE_VISUAL_TYPE 0x302F | ||
112 | #define EGL_SAMPLES 0x3031 | ||
113 | #define EGL_SAMPLE_BUFFERS 0x3032 | ||
114 | #define EGL_SURFACE_TYPE 0x3033 | ||
115 | #define EGL_TRANSPARENT_TYPE 0x3034 | ||
116 | #define EGL_TRANSPARENT_BLUE_VALUE 0x3035 | ||
117 | #define EGL_TRANSPARENT_GREEN_VALUE 0x3036 | ||
118 | #define EGL_TRANSPARENT_RED_VALUE 0x3037 | ||
119 | #define EGL_NONE 0x3038 /* Attrib list terminator */ | ||
120 | #define EGL_BIND_TO_TEXTURE_RGB 0x3039 | ||
121 | #define EGL_BIND_TO_TEXTURE_RGBA 0x303A | ||
122 | #define EGL_MIN_SWAP_INTERVAL 0x303B | ||
123 | #define EGL_MAX_SWAP_INTERVAL 0x303C | ||
124 | #define EGL_LUMINANCE_SIZE 0x303D | ||
125 | #define EGL_ALPHA_MASK_SIZE 0x303E | ||
126 | #define EGL_COLOR_BUFFER_TYPE 0x303F | ||
127 | #define EGL_RENDERABLE_TYPE 0x3040 | ||
128 | #define EGL_MATCH_NATIVE_PIXMAP 0x3041 /* Pseudo-attribute (not queryable) */ | ||
129 | #define EGL_CONFORMANT 0x3042 | ||
130 | |||
131 | /* Reserved 0x3041-0x304F for additional config attributes */ | ||
132 | |||
133 | /* Config attribute values */ | ||
134 | #define EGL_SLOW_CONFIG 0x3050 /* EGL_CONFIG_CAVEAT value */ | ||
135 | #define EGL_NON_CONFORMANT_CONFIG 0x3051 /* EGL_CONFIG_CAVEAT value */ | ||
136 | #define EGL_TRANSPARENT_RGB 0x3052 /* EGL_TRANSPARENT_TYPE value */ | ||
137 | #define EGL_RGB_BUFFER 0x308E /* EGL_COLOR_BUFFER_TYPE value */ | ||
138 | #define EGL_LUMINANCE_BUFFER 0x308F /* EGL_COLOR_BUFFER_TYPE value */ | ||
139 | |||
140 | /* More config attribute values, for EGL_TEXTURE_FORMAT */ | ||
141 | #define EGL_NO_TEXTURE 0x305C | ||
142 | #define EGL_TEXTURE_RGB 0x305D | ||
143 | #define EGL_TEXTURE_RGBA 0x305E | ||
144 | #define EGL_TEXTURE_2D 0x305F | ||
145 | |||
146 | /* Config attribute mask bits */ | ||
147 | #define EGL_PBUFFER_BIT 0x0001 /* EGL_SURFACE_TYPE mask bits */ | ||
148 | #define EGL_PIXMAP_BIT 0x0002 /* EGL_SURFACE_TYPE mask bits */ | ||
149 | #define EGL_WINDOW_BIT 0x0004 /* EGL_SURFACE_TYPE mask bits */ | ||
150 | #define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020 /* EGL_SURFACE_TYPE mask bits */ | ||
151 | #define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040 /* EGL_SURFACE_TYPE mask bits */ | ||
152 | #define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200 /* EGL_SURFACE_TYPE mask bits */ | ||
153 | #define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400 /* EGL_SURFACE_TYPE mask bits */ | ||
154 | |||
155 | #define EGL_OPENGL_ES_BIT 0x0001 /* EGL_RENDERABLE_TYPE mask bits */ | ||
156 | #define EGL_OPENVG_BIT 0x0002 /* EGL_RENDERABLE_TYPE mask bits */ | ||
157 | #define EGL_OPENGL_ES2_BIT 0x0004 /* EGL_RENDERABLE_TYPE mask bits */ | ||
158 | #define EGL_OPENGL_BIT 0x0008 /* EGL_RENDERABLE_TYPE mask bits */ | ||
159 | |||
160 | /* QueryString targets */ | ||
161 | #define EGL_VENDOR 0x3053 | ||
162 | #define EGL_VERSION 0x3054 | ||
163 | #define EGL_EXTENSIONS 0x3055 | ||
164 | #define EGL_CLIENT_APIS 0x308D | ||
165 | |||
166 | /* QuerySurface / SurfaceAttrib / CreatePbufferSurface targets */ | ||
167 | #define EGL_HEIGHT 0x3056 | ||
168 | #define EGL_WIDTH 0x3057 | ||
169 | #define EGL_LARGEST_PBUFFER 0x3058 | ||
170 | #define EGL_TEXTURE_FORMAT 0x3080 | ||
171 | #define EGL_TEXTURE_TARGET 0x3081 | ||
172 | #define EGL_MIPMAP_TEXTURE 0x3082 | ||
173 | #define EGL_MIPMAP_LEVEL 0x3083 | ||
174 | #define EGL_RENDER_BUFFER 0x3086 | ||
175 | #define EGL_VG_COLORSPACE 0x3087 | ||
176 | #define EGL_VG_ALPHA_FORMAT 0x3088 | ||
177 | #define EGL_HORIZONTAL_RESOLUTION 0x3090 | ||
178 | #define EGL_VERTICAL_RESOLUTION 0x3091 | ||
179 | #define EGL_PIXEL_ASPECT_RATIO 0x3092 | ||
180 | #define EGL_SWAP_BEHAVIOR 0x3093 | ||
181 | #define EGL_MULTISAMPLE_RESOLVE 0x3099 | ||
182 | |||
183 | /* EGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targets */ | ||
184 | #define EGL_BACK_BUFFER 0x3084 | ||
185 | #define EGL_SINGLE_BUFFER 0x3085 | ||
186 | |||
187 | /* OpenVG color spaces */ | ||
188 | #define EGL_VG_COLORSPACE_sRGB 0x3089 /* EGL_VG_COLORSPACE value */ | ||
189 | #define EGL_VG_COLORSPACE_LINEAR 0x308A /* EGL_VG_COLORSPACE value */ | ||
190 | |||
191 | /* OpenVG alpha formats */ | ||
192 | #define EGL_VG_ALPHA_FORMAT_NONPRE 0x308B /* EGL_ALPHA_FORMAT value */ | ||
193 | #define EGL_VG_ALPHA_FORMAT_PRE 0x308C /* EGL_ALPHA_FORMAT value */ | ||
194 | |||
195 | /* Constant scale factor by which fractional display resolutions & | ||
196 | * aspect ratio are scaled when queried as integer values. | ||
197 | */ | ||
198 | #define EGL_DISPLAY_SCALING 10000 | ||
199 | |||
200 | /* Unknown display resolution/aspect ratio */ | ||
201 | #define EGL_UNKNOWN ((EGLint)-1) | ||
202 | |||
203 | /* Back buffer swap behaviors */ | ||
204 | #define EGL_BUFFER_PRESERVED 0x3094 /* EGL_SWAP_BEHAVIOR value */ | ||
205 | #define EGL_BUFFER_DESTROYED 0x3095 /* EGL_SWAP_BEHAVIOR value */ | ||
206 | |||
207 | /* CreatePbufferFromClientBuffer buffer types */ | ||
208 | #define EGL_OPENVG_IMAGE 0x3096 | ||
209 | |||
210 | /* QueryContext targets */ | ||
211 | #define EGL_CONTEXT_CLIENT_TYPE 0x3097 | ||
212 | |||
213 | /* CreateContext attributes */ | ||
214 | #define EGL_CONTEXT_CLIENT_VERSION 0x3098 | ||
215 | |||
216 | /* Multisample resolution behaviors */ | ||
217 | #define EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A /* EGL_MULTISAMPLE_RESOLVE value */ | ||
218 | #define EGL_MULTISAMPLE_RESOLVE_BOX 0x309B /* EGL_MULTISAMPLE_RESOLVE value */ | ||
219 | |||
220 | /* BindAPI/QueryAPI targets */ | ||
221 | #define EGL_OPENGL_ES_API 0x30A0 | ||
222 | #define EGL_OPENVG_API 0x30A1 | ||
223 | #define EGL_OPENGL_API 0x30A2 | ||
224 | |||
225 | /* GetCurrentSurface targets */ | ||
226 | #define EGL_DRAW 0x3059 | ||
227 | #define EGL_READ 0x305A | ||
228 | |||
229 | /* WaitNative engines */ | ||
230 | #define EGL_CORE_NATIVE_ENGINE 0x305B | ||
231 | |||
232 | /* EGL 1.2 tokens renamed for consistency in EGL 1.3 */ | ||
233 | #define EGL_COLORSPACE EGL_VG_COLORSPACE | ||
234 | #define EGL_ALPHA_FORMAT EGL_VG_ALPHA_FORMAT | ||
235 | #define EGL_COLORSPACE_sRGB EGL_VG_COLORSPACE_sRGB | ||
236 | #define EGL_COLORSPACE_LINEAR EGL_VG_COLORSPACE_LINEAR | ||
237 | #define EGL_ALPHA_FORMAT_NONPRE EGL_VG_ALPHA_FORMAT_NONPRE | ||
238 | #define EGL_ALPHA_FORMAT_PRE EGL_VG_ALPHA_FORMAT_PRE | ||
239 | |||
240 | /* EGL extensions must request enum blocks from the Khronos | ||
241 | * API Registrar, who maintains the enumerant registry. Submit | ||
242 | * a bug in Khronos Bugzilla against task "Registry". | ||
243 | */ | ||
244 | |||
245 | |||
246 | |||
247 | /* EGL Functions */ | ||
248 | |||
249 | EGLAPI EGLint EGLAPIENTRY eglGetError(void); | ||
250 | |||
251 | EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay(EGLNativeDisplayType display_id); | ||
252 | EGLAPI EGLBoolean EGLAPIENTRY eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor); | ||
253 | EGLAPI EGLBoolean EGLAPIENTRY eglTerminate(EGLDisplay dpy); | ||
254 | |||
255 | EGLAPI const char * EGLAPIENTRY eglQueryString(EGLDisplay dpy, EGLint name); | ||
256 | |||
257 | EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, | ||
258 | EGLint config_size, EGLint *num_config); | ||
259 | EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, | ||
260 | EGLConfig *configs, EGLint config_size, | ||
261 | EGLint *num_config); | ||
262 | EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, | ||
263 | EGLint attribute, EGLint *value); | ||
264 | |||
265 | EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, | ||
266 | EGLNativeWindowType win, | ||
267 | const EGLint *attrib_list); | ||
268 | EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, | ||
269 | const EGLint *attrib_list); | ||
270 | EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, | ||
271 | EGLNativePixmapType pixmap, | ||
272 | const EGLint *attrib_list); | ||
273 | EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surface); | ||
274 | EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface(EGLDisplay dpy, EGLSurface surface, | ||
275 | EGLint attribute, EGLint *value); | ||
276 | |||
277 | EGLAPI EGLBoolean EGLAPIENTRY eglBindAPI(EGLenum api); | ||
278 | EGLAPI EGLenum EGLAPIENTRY eglQueryAPI(void); | ||
279 | |||
280 | EGLAPI EGLBoolean EGLAPIENTRY eglWaitClient(void); | ||
281 | |||
282 | EGLAPI EGLBoolean EGLAPIENTRY eglReleaseThread(void); | ||
283 | |||
284 | EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer( | ||
285 | EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, | ||
286 | EGLConfig config, const EGLint *attrib_list); | ||
287 | |||
288 | EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, | ||
289 | EGLint attribute, EGLint value); | ||
290 | EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); | ||
291 | EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); | ||
292 | |||
293 | |||
294 | EGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval(EGLDisplay dpy, EGLint interval); | ||
295 | |||
296 | |||
297 | EGLAPI EGLContext EGLAPIENTRY eglCreateContext(EGLDisplay dpy, EGLConfig config, | ||
298 | EGLContext share_context, | ||
299 | const EGLint *attrib_list); | ||
300 | EGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext(EGLDisplay dpy, EGLContext ctx); | ||
301 | EGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, | ||
302 | EGLSurface read, EGLContext ctx); | ||
303 | |||
304 | EGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext(void); | ||
305 | EGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface(EGLint readdraw); | ||
306 | EGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay(void); | ||
307 | EGLAPI EGLBoolean EGLAPIENTRY eglQueryContext(EGLDisplay dpy, EGLContext ctx, | ||
308 | EGLint attribute, EGLint *value); | ||
309 | |||
310 | EGLAPI EGLBoolean EGLAPIENTRY eglWaitGL(void); | ||
311 | EGLAPI EGLBoolean EGLAPIENTRY eglWaitNative(EGLint engine); | ||
312 | EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surface); | ||
313 | EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, | ||
314 | EGLNativePixmapType target); | ||
315 | |||
316 | /* This is a generic function pointer type, whose name indicates it must | ||
317 | * be cast to the proper type *and calling convention* before use. | ||
318 | */ | ||
319 | typedef void (*__eglMustCastToProperFunctionPointerType)(void); | ||
320 | |||
321 | /* Now, define eglGetProcAddress using the generic function ptr. type */ | ||
322 | EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY | ||
323 | eglGetProcAddress(const char *procname); | ||
324 | |||
325 | #ifdef __cplusplus | ||
326 | } | ||
327 | #endif | ||
328 | |||
329 | #endif /* __egl_h_ */ | ||
diff --git a/recipes/opengldummy/files/headers/EGL/eglext.h b/recipes/opengldummy/files/headers/EGL/eglext.h new file mode 100644 index 0000000..a392b31 --- /dev/null +++ b/recipes/opengldummy/files/headers/EGL/eglext.h | |||
@@ -0,0 +1,628 @@ | |||
1 | #ifndef __eglext_h_ | ||
2 | #define __eglext_h_ 1 | ||
3 | |||
4 | #ifdef __cplusplus | ||
5 | extern "C" { | ||
6 | #endif | ||
7 | |||
8 | /* | ||
9 | ** Copyright (c) 2013 The Khronos Group Inc. | ||
10 | ** | ||
11 | ** Permission is hereby granted, free of charge, to any person obtaining a | ||
12 | ** copy of this software and/or associated documentation files (the | ||
13 | ** "Materials"), to deal in the Materials without restriction, including | ||
14 | ** without limitation the rights to use, copy, modify, merge, publish, | ||
15 | ** distribute, sublicense, and/or sell copies of the Materials, and to | ||
16 | ** permit persons to whom the Materials are furnished to do so, subject to | ||
17 | ** the following conditions: | ||
18 | ** | ||
19 | ** The above copyright notice and this permission notice shall be included | ||
20 | ** in all copies or substantial portions of the Materials. | ||
21 | ** | ||
22 | ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
23 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
24 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
25 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
26 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
27 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
28 | ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. | ||
29 | */ | ||
30 | /* | ||
31 | ** This header is generated from the Khronos OpenGL / OpenGL ES XML | ||
32 | ** API Registry. The current version of the Registry, generator scripts | ||
33 | ** used to make the header, and the header can be found at | ||
34 | ** http://www.opengl.org/registry/ | ||
35 | ** | ||
36 | ** Khronos $Revision: 23535 $ on $Date: 2013-10-16 10:29:40 -0700 (Wed, 16 Oct 2013) $ | ||
37 | */ | ||
38 | |||
39 | #include <EGL/eglplatform.h> | ||
40 | |||
41 | #define EGL_EGLEXT_VERSION 20131016 | ||
42 | |||
43 | /* Generated C header for: | ||
44 | * API: egl | ||
45 | * Versions considered: .* | ||
46 | * Versions emitted: _nomatch_^ | ||
47 | * Default extensions included: egl | ||
48 | * Additional extensions included: _nomatch_^ | ||
49 | * Extensions removed: _nomatch_^ | ||
50 | */ | ||
51 | |||
52 | #ifndef EGL_KHR_cl_event | ||
53 | #define EGL_KHR_cl_event 1 | ||
54 | #define EGL_CL_EVENT_HANDLE_KHR 0x309C | ||
55 | #define EGL_SYNC_CL_EVENT_KHR 0x30FE | ||
56 | #define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF | ||
57 | #endif /* EGL_KHR_cl_event */ | ||
58 | |||
59 | #ifndef EGL_KHR_client_get_all_proc_addresses | ||
60 | #define EGL_KHR_client_get_all_proc_addresses 1 | ||
61 | #endif /* EGL_KHR_client_get_all_proc_addresses */ | ||
62 | |||
63 | #ifndef EGL_KHR_config_attribs | ||
64 | #define EGL_KHR_config_attribs 1 | ||
65 | #define EGL_CONFORMANT_KHR 0x3042 | ||
66 | #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020 | ||
67 | #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040 | ||
68 | #endif /* EGL_KHR_config_attribs */ | ||
69 | |||
70 | #ifndef EGL_KHR_create_context | ||
71 | #define EGL_KHR_create_context 1 | ||
72 | #define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098 | ||
73 | #define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB | ||
74 | #define EGL_CONTEXT_FLAGS_KHR 0x30FC | ||
75 | #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD | ||
76 | #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD | ||
77 | #define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE | ||
78 | #define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF | ||
79 | #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001 | ||
80 | #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002 | ||
81 | #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004 | ||
82 | #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001 | ||
83 | #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002 | ||
84 | #define EGL_OPENGL_ES3_BIT_KHR 0x00000040 | ||
85 | #endif /* EGL_KHR_create_context */ | ||
86 | |||
87 | #ifndef EGL_KHR_fence_sync | ||
88 | #define EGL_KHR_fence_sync 1 | ||
89 | #ifdef KHRONOS_SUPPORT_INT64 | ||
90 | #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0 | ||
91 | #define EGL_SYNC_CONDITION_KHR 0x30F8 | ||
92 | #define EGL_SYNC_FENCE_KHR 0x30F9 | ||
93 | #endif /* KHRONOS_SUPPORT_INT64 */ | ||
94 | #endif /* EGL_KHR_fence_sync */ | ||
95 | |||
96 | #ifndef EGL_KHR_get_all_proc_addresses | ||
97 | #define EGL_KHR_get_all_proc_addresses 1 | ||
98 | #endif /* EGL_KHR_get_all_proc_addresses */ | ||
99 | |||
100 | #ifndef EGL_KHR_gl_renderbuffer_image | ||
101 | #define EGL_KHR_gl_renderbuffer_image 1 | ||
102 | #define EGL_GL_RENDERBUFFER_KHR 0x30B9 | ||
103 | #endif /* EGL_KHR_gl_renderbuffer_image */ | ||
104 | |||
105 | #ifndef EGL_KHR_gl_texture_2D_image | ||
106 | #define EGL_KHR_gl_texture_2D_image 1 | ||
107 | #define EGL_GL_TEXTURE_2D_KHR 0x30B1 | ||
108 | #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC | ||
109 | #endif /* EGL_KHR_gl_texture_2D_image */ | ||
110 | |||
111 | #ifndef EGL_KHR_gl_texture_3D_image | ||
112 | #define EGL_KHR_gl_texture_3D_image 1 | ||
113 | #define EGL_GL_TEXTURE_3D_KHR 0x30B2 | ||
114 | #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD | ||
115 | #endif /* EGL_KHR_gl_texture_3D_image */ | ||
116 | |||
117 | #ifndef EGL_KHR_gl_texture_cubemap_image | ||
118 | #define EGL_KHR_gl_texture_cubemap_image 1 | ||
119 | #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3 | ||
120 | #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4 | ||
121 | #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5 | ||
122 | #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6 | ||
123 | #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7 | ||
124 | #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8 | ||
125 | #endif /* EGL_KHR_gl_texture_cubemap_image */ | ||
126 | |||
127 | #ifndef EGL_KHR_image | ||
128 | #define EGL_KHR_image 1 | ||
129 | typedef void *EGLImageKHR; | ||
130 | #define EGL_NATIVE_PIXMAP_KHR 0x30B0 | ||
131 | #define EGL_NO_IMAGE_KHR ((EGLImageKHR)0) | ||
132 | typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list); | ||
133 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image); | ||
134 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
135 | EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list); | ||
136 | EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image); | ||
137 | #endif | ||
138 | #endif /* EGL_KHR_image */ | ||
139 | |||
140 | #ifndef EGL_KHR_image_base | ||
141 | #define EGL_KHR_image_base 1 | ||
142 | #define EGL_IMAGE_PRESERVED_KHR 0x30D2 | ||
143 | #endif /* EGL_KHR_image_base */ | ||
144 | |||
145 | #ifndef EGL_KHR_image_pixmap | ||
146 | #define EGL_KHR_image_pixmap 1 | ||
147 | #endif /* EGL_KHR_image_pixmap */ | ||
148 | |||
149 | #ifndef EGL_KHR_lock_surface | ||
150 | #define EGL_KHR_lock_surface 1 | ||
151 | #define EGL_READ_SURFACE_BIT_KHR 0x0001 | ||
152 | #define EGL_WRITE_SURFACE_BIT_KHR 0x0002 | ||
153 | #define EGL_LOCK_SURFACE_BIT_KHR 0x0080 | ||
154 | #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100 | ||
155 | #define EGL_MATCH_FORMAT_KHR 0x3043 | ||
156 | #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0 | ||
157 | #define EGL_FORMAT_RGB_565_KHR 0x30C1 | ||
158 | #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2 | ||
159 | #define EGL_FORMAT_RGBA_8888_KHR 0x30C3 | ||
160 | #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4 | ||
161 | #define EGL_LOCK_USAGE_HINT_KHR 0x30C5 | ||
162 | #define EGL_BITMAP_POINTER_KHR 0x30C6 | ||
163 | #define EGL_BITMAP_PITCH_KHR 0x30C7 | ||
164 | #define EGL_BITMAP_ORIGIN_KHR 0x30C8 | ||
165 | #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9 | ||
166 | #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA | ||
167 | #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB | ||
168 | #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC | ||
169 | #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD | ||
170 | #define EGL_LOWER_LEFT_KHR 0x30CE | ||
171 | #define EGL_UPPER_LEFT_KHR 0x30CF | ||
172 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list); | ||
173 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface); | ||
174 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
175 | EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list); | ||
176 | EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay display, EGLSurface surface); | ||
177 | #endif | ||
178 | #endif /* EGL_KHR_lock_surface */ | ||
179 | |||
180 | #ifndef EGL_KHR_lock_surface2 | ||
181 | #define EGL_KHR_lock_surface2 1 | ||
182 | #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110 | ||
183 | #endif /* EGL_KHR_lock_surface2 */ | ||
184 | |||
185 | #ifndef EGL_KHR_reusable_sync | ||
186 | #define EGL_KHR_reusable_sync 1 | ||
187 | typedef void *EGLSyncKHR; | ||
188 | typedef khronos_utime_nanoseconds_t EGLTimeKHR; | ||
189 | #ifdef KHRONOS_SUPPORT_INT64 | ||
190 | #define EGL_SYNC_STATUS_KHR 0x30F1 | ||
191 | #define EGL_SIGNALED_KHR 0x30F2 | ||
192 | #define EGL_UNSIGNALED_KHR 0x30F3 | ||
193 | #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5 | ||
194 | #define EGL_CONDITION_SATISFIED_KHR 0x30F6 | ||
195 | #define EGL_SYNC_TYPE_KHR 0x30F7 | ||
196 | #define EGL_SYNC_REUSABLE_KHR 0x30FA | ||
197 | #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001 | ||
198 | #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull | ||
199 | #define EGL_NO_SYNC_KHR ((EGLSyncKHR)0) | ||
200 | typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list); | ||
201 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync); | ||
202 | typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout); | ||
203 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode); | ||
204 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value); | ||
205 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
206 | EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list); | ||
207 | EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync); | ||
208 | EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout); | ||
209 | EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode); | ||
210 | EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value); | ||
211 | #endif | ||
212 | #endif /* KHRONOS_SUPPORT_INT64 */ | ||
213 | #endif /* EGL_KHR_reusable_sync */ | ||
214 | |||
215 | #ifndef EGL_KHR_stream | ||
216 | #define EGL_KHR_stream 1 | ||
217 | typedef void *EGLStreamKHR; | ||
218 | typedef khronos_uint64_t EGLuint64KHR; | ||
219 | #ifdef KHRONOS_SUPPORT_INT64 | ||
220 | #define EGL_NO_STREAM_KHR ((EGLStreamKHR)0) | ||
221 | #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210 | ||
222 | #define EGL_PRODUCER_FRAME_KHR 0x3212 | ||
223 | #define EGL_CONSUMER_FRAME_KHR 0x3213 | ||
224 | #define EGL_STREAM_STATE_KHR 0x3214 | ||
225 | #define EGL_STREAM_STATE_CREATED_KHR 0x3215 | ||
226 | #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216 | ||
227 | #define EGL_STREAM_STATE_EMPTY_KHR 0x3217 | ||
228 | #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218 | ||
229 | #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219 | ||
230 | #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A | ||
231 | #define EGL_BAD_STREAM_KHR 0x321B | ||
232 | #define EGL_BAD_STATE_KHR 0x321C | ||
233 | typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint *attrib_list); | ||
234 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream); | ||
235 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value); | ||
236 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value); | ||
237 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value); | ||
238 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
239 | EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list); | ||
240 | EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream); | ||
241 | EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value); | ||
242 | EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value); | ||
243 | EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value); | ||
244 | #endif | ||
245 | #endif /* KHRONOS_SUPPORT_INT64 */ | ||
246 | #endif /* EGL_KHR_stream */ | ||
247 | |||
248 | #ifndef EGL_KHR_stream_consumer_gltexture | ||
249 | #define EGL_KHR_stream_consumer_gltexture 1 | ||
250 | #ifdef EGL_KHR_stream | ||
251 | #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E | ||
252 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream); | ||
253 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream); | ||
254 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream); | ||
255 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
256 | EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream); | ||
257 | EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLStreamKHR stream); | ||
258 | EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLStreamKHR stream); | ||
259 | #endif | ||
260 | #endif /* EGL_KHR_stream */ | ||
261 | #endif /* EGL_KHR_stream_consumer_gltexture */ | ||
262 | |||
263 | #ifndef EGL_KHR_stream_cross_process_fd | ||
264 | #define EGL_KHR_stream_cross_process_fd 1 | ||
265 | typedef int EGLNativeFileDescriptorKHR; | ||
266 | #ifdef EGL_KHR_stream | ||
267 | #define EGL_NO_FILE_DESCRIPTOR_KHR ((EGLNativeFileDescriptorKHR)(-1)) | ||
268 | typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream); | ||
269 | typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor); | ||
270 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
271 | EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGLDisplay dpy, EGLStreamKHR stream); | ||
272 | EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor); | ||
273 | #endif | ||
274 | #endif /* EGL_KHR_stream */ | ||
275 | #endif /* EGL_KHR_stream_cross_process_fd */ | ||
276 | |||
277 | #ifndef EGL_KHR_stream_fifo | ||
278 | #define EGL_KHR_stream_fifo 1 | ||
279 | #ifdef EGL_KHR_stream | ||
280 | #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC | ||
281 | #define EGL_STREAM_TIME_NOW_KHR 0x31FD | ||
282 | #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE | ||
283 | #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF | ||
284 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value); | ||
285 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
286 | EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value); | ||
287 | #endif | ||
288 | #endif /* EGL_KHR_stream */ | ||
289 | #endif /* EGL_KHR_stream_fifo */ | ||
290 | |||
291 | #ifndef EGL_KHR_stream_producer_aldatalocator | ||
292 | #define EGL_KHR_stream_producer_aldatalocator 1 | ||
293 | #ifdef EGL_KHR_stream | ||
294 | #endif /* EGL_KHR_stream */ | ||
295 | #endif /* EGL_KHR_stream_producer_aldatalocator */ | ||
296 | |||
297 | #ifndef EGL_KHR_stream_producer_eglsurface | ||
298 | #define EGL_KHR_stream_producer_eglsurface 1 | ||
299 | #ifdef EGL_KHR_stream | ||
300 | #define EGL_STREAM_BIT_KHR 0x0800 | ||
301 | typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list); | ||
302 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
303 | EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list); | ||
304 | #endif | ||
305 | #endif /* EGL_KHR_stream */ | ||
306 | #endif /* EGL_KHR_stream_producer_eglsurface */ | ||
307 | |||
308 | #ifndef EGL_KHR_surfaceless_context | ||
309 | #define EGL_KHR_surfaceless_context 1 | ||
310 | #endif /* EGL_KHR_surfaceless_context */ | ||
311 | |||
312 | #ifndef EGL_KHR_vg_parent_image | ||
313 | #define EGL_KHR_vg_parent_image 1 | ||
314 | #define EGL_VG_PARENT_IMAGE_KHR 0x30BA | ||
315 | #endif /* EGL_KHR_vg_parent_image */ | ||
316 | |||
317 | #ifndef EGL_KHR_wait_sync | ||
318 | #define EGL_KHR_wait_sync 1 | ||
319 | typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags); | ||
320 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
321 | EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags); | ||
322 | #endif | ||
323 | #endif /* EGL_KHR_wait_sync */ | ||
324 | |||
325 | #ifndef EGL_ANDROID_blob_cache | ||
326 | #define EGL_ANDROID_blob_cache 1 | ||
327 | typedef khronos_ssize_t EGLsizeiANDROID; | ||
328 | typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize); | ||
329 | typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize); | ||
330 | typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get); | ||
331 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
332 | EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get); | ||
333 | #endif | ||
334 | #endif /* EGL_ANDROID_blob_cache */ | ||
335 | |||
336 | #ifndef EGL_ANDROID_framebuffer_target | ||
337 | #define EGL_ANDROID_framebuffer_target 1 | ||
338 | #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147 | ||
339 | #endif /* EGL_ANDROID_framebuffer_target */ | ||
340 | |||
341 | #ifndef EGL_ANDROID_image_native_buffer | ||
342 | #define EGL_ANDROID_image_native_buffer 1 | ||
343 | #define EGL_NATIVE_BUFFER_ANDROID 0x3140 | ||
344 | #endif /* EGL_ANDROID_image_native_buffer */ | ||
345 | |||
346 | #ifndef EGL_ANDROID_native_fence_sync | ||
347 | #define EGL_ANDROID_native_fence_sync 1 | ||
348 | #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144 | ||
349 | #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145 | ||
350 | #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146 | ||
351 | #define EGL_NO_NATIVE_FENCE_FD_ANDROID -1 | ||
352 | typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync); | ||
353 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
354 | EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync); | ||
355 | #endif | ||
356 | #endif /* EGL_ANDROID_native_fence_sync */ | ||
357 | |||
358 | #ifndef EGL_ANDROID_recordable | ||
359 | #define EGL_ANDROID_recordable 1 | ||
360 | #define EGL_RECORDABLE_ANDROID 0x3142 | ||
361 | #endif /* EGL_ANDROID_recordable */ | ||
362 | |||
363 | #ifndef EGL_ANGLE_d3d_share_handle_client_buffer | ||
364 | #define EGL_ANGLE_d3d_share_handle_client_buffer 1 | ||
365 | #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200 | ||
366 | #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */ | ||
367 | |||
368 | #ifndef EGL_ANGLE_query_surface_pointer | ||
369 | #define EGL_ANGLE_query_surface_pointer 1 | ||
370 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value); | ||
371 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
372 | EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value); | ||
373 | #endif | ||
374 | #endif /* EGL_ANGLE_query_surface_pointer */ | ||
375 | |||
376 | #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle | ||
377 | #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1 | ||
378 | #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */ | ||
379 | |||
380 | #ifndef EGL_ARM_pixmap_multisample_discard | ||
381 | #define EGL_ARM_pixmap_multisample_discard 1 | ||
382 | #define EGL_DISCARD_SAMPLES_ARM 0x3286 | ||
383 | #endif /* EGL_ARM_pixmap_multisample_discard */ | ||
384 | |||
385 | #ifndef EGL_EXT_buffer_age | ||
386 | #define EGL_EXT_buffer_age 1 | ||
387 | #define EGL_BUFFER_AGE_EXT 0x313D | ||
388 | #endif /* EGL_EXT_buffer_age */ | ||
389 | |||
390 | #ifndef EGL_EXT_client_extensions | ||
391 | #define EGL_EXT_client_extensions 1 | ||
392 | #endif /* EGL_EXT_client_extensions */ | ||
393 | |||
394 | #ifndef EGL_EXT_create_context_robustness | ||
395 | #define EGL_EXT_create_context_robustness 1 | ||
396 | #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF | ||
397 | #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138 | ||
398 | #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE | ||
399 | #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF | ||
400 | #endif /* EGL_EXT_create_context_robustness */ | ||
401 | |||
402 | #ifndef EGL_EXT_image_dma_buf_import | ||
403 | #define EGL_EXT_image_dma_buf_import 1 | ||
404 | #define EGL_LINUX_DMA_BUF_EXT 0x3270 | ||
405 | #define EGL_LINUX_DRM_FOURCC_EXT 0x3271 | ||
406 | #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272 | ||
407 | #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273 | ||
408 | #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274 | ||
409 | #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275 | ||
410 | #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276 | ||
411 | #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277 | ||
412 | #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278 | ||
413 | #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279 | ||
414 | #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A | ||
415 | #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B | ||
416 | #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C | ||
417 | #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D | ||
418 | #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E | ||
419 | #define EGL_ITU_REC601_EXT 0x327F | ||
420 | #define EGL_ITU_REC709_EXT 0x3280 | ||
421 | #define EGL_ITU_REC2020_EXT 0x3281 | ||
422 | #define EGL_YUV_FULL_RANGE_EXT 0x3282 | ||
423 | #define EGL_YUV_NARROW_RANGE_EXT 0x3283 | ||
424 | #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284 | ||
425 | #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285 | ||
426 | #endif /* EGL_EXT_image_dma_buf_import */ | ||
427 | |||
428 | #ifndef EGL_EXT_multiview_window | ||
429 | #define EGL_EXT_multiview_window 1 | ||
430 | #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134 | ||
431 | #endif /* EGL_EXT_multiview_window */ | ||
432 | |||
433 | #ifndef EGL_EXT_platform_base | ||
434 | #define EGL_EXT_platform_base 1 | ||
435 | typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list); | ||
436 | typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list); | ||
437 | typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list); | ||
438 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
439 | EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list); | ||
440 | EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list); | ||
441 | EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list); | ||
442 | #endif | ||
443 | #endif /* EGL_EXT_platform_base */ | ||
444 | |||
445 | #ifndef EGL_EXT_platform_wayland | ||
446 | #define EGL_EXT_platform_wayland 1 | ||
447 | #define EGL_PLATFORM_WAYLAND_EXT 0x31D8 | ||
448 | #endif /* EGL_EXT_platform_wayland */ | ||
449 | |||
450 | #ifndef EGL_EXT_platform_x11 | ||
451 | #define EGL_EXT_platform_x11 1 | ||
452 | #define EGL_PLATFORM_X11_EXT 0x31D5 | ||
453 | #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6 | ||
454 | #endif /* EGL_EXT_platform_x11 */ | ||
455 | |||
456 | #ifndef EGL_EXT_swap_buffers_with_damage | ||
457 | #define EGL_EXT_swap_buffers_with_damage 1 | ||
458 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); | ||
459 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
460 | EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects); | ||
461 | #endif | ||
462 | #endif /* EGL_EXT_swap_buffers_with_damage */ | ||
463 | |||
464 | #ifndef EGL_HI_clientpixmap | ||
465 | #define EGL_HI_clientpixmap 1 | ||
466 | struct EGLClientPixmapHI { | ||
467 | void *pData; | ||
468 | EGLint iWidth; | ||
469 | EGLint iHeight; | ||
470 | EGLint iStride; | ||
471 | }; | ||
472 | #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74 | ||
473 | typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap); | ||
474 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
475 | EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap); | ||
476 | #endif | ||
477 | #endif /* EGL_HI_clientpixmap */ | ||
478 | |||
479 | #ifndef EGL_HI_colorformats | ||
480 | #define EGL_HI_colorformats 1 | ||
481 | #define EGL_COLOR_FORMAT_HI 0x8F70 | ||
482 | #define EGL_COLOR_RGB_HI 0x8F71 | ||
483 | #define EGL_COLOR_RGBA_HI 0x8F72 | ||
484 | #define EGL_COLOR_ARGB_HI 0x8F73 | ||
485 | #endif /* EGL_HI_colorformats */ | ||
486 | |||
487 | #ifndef EGL_IMG_context_priority | ||
488 | #define EGL_IMG_context_priority 1 | ||
489 | #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100 | ||
490 | #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101 | ||
491 | #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102 | ||
492 | #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103 | ||
493 | #endif /* EGL_IMG_context_priority */ | ||
494 | |||
495 | #ifndef EGL_MESA_drm_image | ||
496 | #define EGL_MESA_drm_image 1 | ||
497 | #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0 | ||
498 | #define EGL_DRM_BUFFER_USE_MESA 0x31D1 | ||
499 | #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2 | ||
500 | #define EGL_DRM_BUFFER_MESA 0x31D3 | ||
501 | #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4 | ||
502 | #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001 | ||
503 | #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002 | ||
504 | typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list); | ||
505 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride); | ||
506 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
507 | EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list); | ||
508 | EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride); | ||
509 | #endif | ||
510 | #endif /* EGL_MESA_drm_image */ | ||
511 | |||
512 | #ifndef EGL_MESA_platform_gbm | ||
513 | #define EGL_MESA_platform_gbm 1 | ||
514 | #define EGL_PLATFORM_GBM_MESA 0x31D7 | ||
515 | #endif /* EGL_MESA_platform_gbm */ | ||
516 | |||
517 | #ifndef EGL_NV_3dvision_surface | ||
518 | #define EGL_NV_3dvision_surface 1 | ||
519 | #define EGL_AUTO_STEREO_NV 0x3136 | ||
520 | #endif /* EGL_NV_3dvision_surface */ | ||
521 | |||
522 | #ifndef EGL_NV_coverage_sample | ||
523 | #define EGL_NV_coverage_sample 1 | ||
524 | #define EGL_COVERAGE_BUFFERS_NV 0x30E0 | ||
525 | #define EGL_COVERAGE_SAMPLES_NV 0x30E1 | ||
526 | #endif /* EGL_NV_coverage_sample */ | ||
527 | |||
528 | #ifndef EGL_NV_coverage_sample_resolve | ||
529 | #define EGL_NV_coverage_sample_resolve 1 | ||
530 | #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131 | ||
531 | #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132 | ||
532 | #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133 | ||
533 | #endif /* EGL_NV_coverage_sample_resolve */ | ||
534 | |||
535 | #ifndef EGL_NV_depth_nonlinear | ||
536 | #define EGL_NV_depth_nonlinear 1 | ||
537 | #define EGL_DEPTH_ENCODING_NV 0x30E2 | ||
538 | #define EGL_DEPTH_ENCODING_NONE_NV 0 | ||
539 | #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3 | ||
540 | #endif /* EGL_NV_depth_nonlinear */ | ||
541 | |||
542 | #ifndef EGL_NV_native_query | ||
543 | #define EGL_NV_native_query 1 | ||
544 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id); | ||
545 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window); | ||
546 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap); | ||
547 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
548 | EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id); | ||
549 | EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window); | ||
550 | EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap); | ||
551 | #endif | ||
552 | #endif /* EGL_NV_native_query */ | ||
553 | |||
554 | #ifndef EGL_NV_post_convert_rounding | ||
555 | #define EGL_NV_post_convert_rounding 1 | ||
556 | #endif /* EGL_NV_post_convert_rounding */ | ||
557 | |||
558 | #ifndef EGL_NV_post_sub_buffer | ||
559 | #define EGL_NV_post_sub_buffer 1 | ||
560 | #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE | ||
561 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height); | ||
562 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
563 | EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height); | ||
564 | #endif | ||
565 | #endif /* EGL_NV_post_sub_buffer */ | ||
566 | |||
567 | #ifndef EGL_NV_stream_sync | ||
568 | #define EGL_NV_stream_sync 1 | ||
569 | #define EGL_SYNC_NEW_FRAME_NV 0x321F | ||
570 | typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list); | ||
571 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
572 | EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list); | ||
573 | #endif | ||
574 | #endif /* EGL_NV_stream_sync */ | ||
575 | |||
576 | #ifndef EGL_NV_sync | ||
577 | #define EGL_NV_sync 1 | ||
578 | typedef void *EGLSyncNV; | ||
579 | typedef khronos_utime_nanoseconds_t EGLTimeNV; | ||
580 | #ifdef KHRONOS_SUPPORT_INT64 | ||
581 | #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6 | ||
582 | #define EGL_SYNC_STATUS_NV 0x30E7 | ||
583 | #define EGL_SIGNALED_NV 0x30E8 | ||
584 | #define EGL_UNSIGNALED_NV 0x30E9 | ||
585 | #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001 | ||
586 | #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull | ||
587 | #define EGL_ALREADY_SIGNALED_NV 0x30EA | ||
588 | #define EGL_TIMEOUT_EXPIRED_NV 0x30EB | ||
589 | #define EGL_CONDITION_SATISFIED_NV 0x30EC | ||
590 | #define EGL_SYNC_TYPE_NV 0x30ED | ||
591 | #define EGL_SYNC_CONDITION_NV 0x30EE | ||
592 | #define EGL_SYNC_FENCE_NV 0x30EF | ||
593 | #define EGL_NO_SYNC_NV ((EGLSyncNV)0) | ||
594 | typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list); | ||
595 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync); | ||
596 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync); | ||
597 | typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout); | ||
598 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode); | ||
599 | typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value); | ||
600 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
601 | EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list); | ||
602 | EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync); | ||
603 | EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync); | ||
604 | EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout); | ||
605 | EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode); | ||
606 | EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value); | ||
607 | #endif | ||
608 | #endif /* KHRONOS_SUPPORT_INT64 */ | ||
609 | #endif /* EGL_NV_sync */ | ||
610 | |||
611 | #ifndef EGL_NV_system_time | ||
612 | #define EGL_NV_system_time 1 | ||
613 | typedef khronos_utime_nanoseconds_t EGLuint64NV; | ||
614 | #ifdef KHRONOS_SUPPORT_INT64 | ||
615 | typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void); | ||
616 | typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void); | ||
617 | #ifdef EGL_EGLEXT_PROTOTYPES | ||
618 | EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void); | ||
619 | EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void); | ||
620 | #endif | ||
621 | #endif /* KHRONOS_SUPPORT_INT64 */ | ||
622 | #endif /* EGL_NV_system_time */ | ||
623 | |||
624 | #ifdef __cplusplus | ||
625 | } | ||
626 | #endif | ||
627 | |||
628 | #endif | ||
diff --git a/recipes/opengldummy/files/headers/EGL/eglplatform.h b/recipes/opengldummy/files/headers/EGL/eglplatform.h new file mode 100644 index 0000000..bcbda98 --- /dev/null +++ b/recipes/opengldummy/files/headers/EGL/eglplatform.h | |||
@@ -0,0 +1,143 @@ | |||
1 | #ifndef __eglplatform_h_ | ||
2 | #define __eglplatform_h_ | ||
3 | |||
4 | /* | ||
5 | ** Copyright (c) 2007-2013 The Khronos Group Inc. | ||
6 | ** | ||
7 | ** Permission is hereby granted, free of charge, to any person obtaining a | ||
8 | ** copy of this software and/or associated documentation files (the | ||
9 | ** "Materials"), to deal in the Materials without restriction, including | ||
10 | ** without limitation the rights to use, copy, modify, merge, publish, | ||
11 | ** distribute, sublicense, and/or sell copies of the Materials, and to | ||
12 | ** permit persons to whom the Materials are furnished to do so, subject to | ||
13 | ** the following conditions: | ||
14 | ** | ||
15 | ** The above copyright notice and this permission notice shall be included | ||
16 | ** in all copies or substantial portions of the Materials. | ||
17 | ** | ||
18 | ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
19 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
20 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
21 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
22 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
23 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
24 | ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. | ||
25 | */ | ||
26 | |||
27 | /* Platform-specific types and definitions for egl.h | ||
28 | * $Revision: 23432 $ on $Date: 2013-10-09 00:57:24 -0700 (Wed, 09 Oct 2013) $ | ||
29 | * | ||
30 | * Adopters may modify khrplatform.h and this file to suit their platform. | ||
31 | * You are encouraged to submit all modifications to the Khronos group so that | ||
32 | * they can be included in future versions of this file. Please submit changes | ||
33 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) | ||
34 | * by filing a bug against product "EGL" component "Registry". | ||
35 | */ | ||
36 | |||
37 | #include <KHR/khrplatform.h> | ||
38 | |||
39 | /* Macros used in EGL function prototype declarations. | ||
40 | * | ||
41 | * EGL functions should be prototyped as: | ||
42 | * | ||
43 | * EGLAPI return-type EGLAPIENTRY eglFunction(arguments); | ||
44 | * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments); | ||
45 | * | ||
46 | * KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h | ||
47 | */ | ||
48 | |||
49 | #ifndef EGLAPI | ||
50 | #define EGLAPI KHRONOS_APICALL | ||
51 | #endif | ||
52 | |||
53 | #ifndef EGLAPIENTRY | ||
54 | #define EGLAPIENTRY KHRONOS_APIENTRY | ||
55 | #endif | ||
56 | #define EGLAPIENTRYP EGLAPIENTRY* | ||
57 | |||
58 | /* The types NativeDisplayType, NativeWindowType, and NativePixmapType | ||
59 | * are aliases of window-system-dependent types, such as X Display * or | ||
60 | * Windows Device Context. They must be defined in platform-specific | ||
61 | * code below. The EGL-prefixed versions of Native*Type are the same | ||
62 | * types, renamed in EGL 1.3 so all types in the API start with "EGL". | ||
63 | * | ||
64 | * Khronos STRONGLY RECOMMENDS that you use the default definitions | ||
65 | * provided below, since these changes affect both binary and source | ||
66 | * portability of applications using EGL running on different EGL | ||
67 | * implementations. | ||
68 | */ | ||
69 | |||
70 | #if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */ | ||
71 | |||
72 | #if 1 | ||
73 | /* QtGlesStream */ | ||
74 | typedef unsigned int EGLNativeDisplayType; | ||
75 | typedef unsigned int EGLNativeWindowType; | ||
76 | typedef unsigned int EGLNativePixmapType; | ||
77 | #else | ||
78 | #ifndef WIN32_LEAN_AND_MEAN | ||
79 | #define WIN32_LEAN_AND_MEAN 1 | ||
80 | #endif | ||
81 | #include <windows.h> | ||
82 | |||
83 | typedef HDC EGLNativeDisplayType; | ||
84 | typedef HBITMAP EGLNativePixmapType; | ||
85 | typedef HWND EGLNativeWindowType; | ||
86 | #endif | ||
87 | |||
88 | #elif defined(__WINSCW__) || defined(__SYMBIAN32__) /* Symbian */ | ||
89 | |||
90 | typedef int EGLNativeDisplayType; | ||
91 | typedef void *EGLNativeWindowType; | ||
92 | typedef void *EGLNativePixmapType; | ||
93 | |||
94 | #elif defined(__ANDROID__) || defined(ANDROID) | ||
95 | |||
96 | #include <android/native_window.h> | ||
97 | |||
98 | struct egl_native_pixmap_t; | ||
99 | |||
100 | typedef struct ANativeWindow* EGLNativeWindowType; | ||
101 | typedef struct egl_native_pixmap_t* EGLNativePixmapType; | ||
102 | typedef void* EGLNativeDisplayType; | ||
103 | |||
104 | #elif defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) | ||
105 | #if 1 | ||
106 | |||
107 | /* QtGlesStream */ | ||
108 | typedef unsigned int EGLNativeDisplayType; | ||
109 | typedef unsigned int EGLNativeWindowType; | ||
110 | typedef unsigned int EGLNativePixmapType; | ||
111 | |||
112 | #else | ||
113 | |||
114 | /* X11 (tentative) */ | ||
115 | #include <X11/Xlib.h> | ||
116 | #include <X11/Xutil.h> | ||
117 | |||
118 | typedef Display *EGLNativeDisplayType; | ||
119 | typedef Pixmap EGLNativePixmapType; | ||
120 | typedef Window EGLNativeWindowType; | ||
121 | |||
122 | #endif | ||
123 | |||
124 | #else | ||
125 | #error "Platform not recognized" | ||
126 | #endif | ||
127 | |||
128 | /* EGL 1.2 types, renamed for consistency in EGL 1.3 */ | ||
129 | typedef EGLNativeDisplayType NativeDisplayType; | ||
130 | typedef EGLNativePixmapType NativePixmapType; | ||
131 | typedef EGLNativeWindowType NativeWindowType; | ||
132 | |||
133 | |||
134 | /* Define EGLint. This must be a signed integral type large enough to contain | ||
135 | * all legal attribute names and values passed into and out of EGL, whether | ||
136 | * their type is boolean, bitmask, enumerant (symbolic constant), integer, | ||
137 | * handle, or other. While in general a 32-bit integer will suffice, if | ||
138 | * handles are 64 bit types, then EGLint should be defined as a signed 64-bit | ||
139 | * integer type. | ||
140 | */ | ||
141 | typedef khronos_int32_t EGLint; | ||
142 | |||
143 | #endif /* __eglplatform_h */ | ||