Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/khronos/EGL/egl.h

Issue 1900043002: Update third_party/khronos egl.h to version 1.5 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/khronos/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* -*- mode: c; tab-width: 8; -*- */ 1 #ifndef __egl_h_
2 /* vi: set sw=4 ts=8: */ 2 #define __egl_h_ 1
3 /* Reference version of egl.h for EGL 1.4. 3
4 * $Revision: 9356 $ on $Date: 2009-10-21 02:52:25 -0700 (Wed, 21 Oct 2009) $ 4 #ifdef __cplusplus
5 */ 5 extern "C" {
6 #endif
6 7
7 /* 8 /*
8 ** Copyright (c) 2007-2009 The Khronos Group Inc. 9 ** Copyright (c) 2013-2016 The Khronos Group Inc.
9 ** 10 **
10 ** Permission is hereby granted, free of charge, to any person obtaining a 11 ** Permission is hereby granted, free of charge, to any person obtaining a
11 ** copy of this software and/or associated documentation files (the 12 ** copy of this software and/or associated documentation files (the
12 ** "Materials"), to deal in the Materials without restriction, including 13 ** "Materials"), to deal in the Materials without restriction, including
13 ** without limitation the rights to use, copy, modify, merge, publish, 14 ** without limitation the rights to use, copy, modify, merge, publish,
14 ** distribute, sublicense, and/or sell copies of the Materials, and to 15 ** 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 ** permit persons to whom the Materials are furnished to do so, subject to
16 ** the following conditions: 17 ** the following conditions:
17 ** 18 **
18 ** The above copyright notice and this permission notice shall be included 19 ** The above copyright notice and this permission notice shall be included
19 ** in all copies or substantial portions of the Materials. 20 ** in all copies or substantial portions of the Materials.
20 ** 21 **
21 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 22 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 23 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 24 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 25 ** 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 ** 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 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 28 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
28 */ 29 */
29 30 /*
30 #ifndef __egl_h_ 31 ** This header is generated from the Khronos OpenGL / OpenGL ES XML
31 #define __egl_h_ 32 ** API Registry. The current version of the Registry, generator scripts
32 33 ** used to make the header, and the header can be found at
33 /* All platform-dependent types and macro boilerplate (such as EGLAPI 34 ** http://www.opengl.org/registry/
34 * and EGLAPIENTRY) should go in eglplatform.h. 35 **
36 ** Khronos $Revision: 32543 $ on $Date: 2016-03-16 19:41:06 -0700 (Wed, 16 Mar 2 016) $
37 */
38
39 #include <EGL/eglplatform.h>
40
41 /* Generated on date 20160316 */
42
43 /* Generated C header for:
44 * API: egl
45 * Versions considered: .*
46 * Versions emitted: .*
47 * Default extensions included: None
48 * Additional extensions included: _nomatch_^
49 * Extensions removed: _nomatch_^
35 */ 50 */
51
52 #ifndef EGL_VERSION_1_0
53 #define EGL_VERSION_1_0 1
54 typedef unsigned int EGLBoolean;
55 typedef void *EGLDisplay;
56 #include <KHR/khrplatform.h>
36 #include <EGL/eglplatform.h> 57 #include <EGL/eglplatform.h>
37 58 typedef void *EGLConfig;
38 #ifdef __cplusplus 59 typedef void *EGLSurface;
39 extern "C" { 60 typedef void *EGLContext;
40 #endif 61 typedef void (*__eglMustCastToProperFunctionPointerType)(void);
41 62 #define EGL_ALPHA_SIZE 0x3021
42 /* EGL Types */ 63 #define EGL_BAD_ACCESS 0x3002
43 /* EGLint is defined in eglplatform.h */ 64 #define EGL_BAD_ALLOC 0x3003
44 typedef unsigned int EGLBoolean; 65 #define EGL_BAD_ATTRIBUTE 0x3004
66 #define EGL_BAD_CONFIG 0x3005
67 #define EGL_BAD_CONTEXT 0x3006
68 #define EGL_BAD_CURRENT_SURFACE 0x3007
69 #define EGL_BAD_DISPLAY 0x3008
70 #define EGL_BAD_MATCH 0x3009
71 #define EGL_BAD_NATIVE_PIXMAP 0x300A
72 #define EGL_BAD_NATIVE_WINDOW 0x300B
73 #define EGL_BAD_PARAMETER 0x300C
74 #define EGL_BAD_SURFACE 0x300D
75 #define EGL_BLUE_SIZE 0x3022
76 #define EGL_BUFFER_SIZE 0x3020
77 #define EGL_CONFIG_CAVEAT 0x3027
78 #define EGL_CONFIG_ID 0x3028
79 #define EGL_CORE_NATIVE_ENGINE 0x305B
80 #define EGL_DEPTH_SIZE 0x3025
81 #define EGL_DONT_CARE ((EGLint)-1)
82 #define EGL_DRAW 0x3059
83 #define EGL_EXTENSIONS 0x3055
84 #define EGL_FALSE 0
85 #define EGL_GREEN_SIZE 0x3023
86 #define EGL_HEIGHT 0x3056
87 #define EGL_LARGEST_PBUFFER 0x3058
88 #define EGL_LEVEL 0x3029
89 #define EGL_MAX_PBUFFER_HEIGHT 0x302A
90 #define EGL_MAX_PBUFFER_PIXELS 0x302B
91 #define EGL_MAX_PBUFFER_WIDTH 0x302C
92 #define EGL_NATIVE_RENDERABLE 0x302D
93 #define EGL_NATIVE_VISUAL_ID 0x302E
94 #define EGL_NATIVE_VISUAL_TYPE 0x302F
95 #define EGL_NONE 0x3038
96 #define EGL_NON_CONFORMANT_CONFIG 0x3051
97 #define EGL_NOT_INITIALIZED 0x3001
98 #define EGL_NO_CONTEXT ((EGLContext)0)
99 #define EGL_NO_DISPLAY ((EGLDisplay)0)
100 #define EGL_NO_SURFACE ((EGLSurface)0)
101 #define EGL_PBUFFER_BIT 0x0001
102 #define EGL_PIXMAP_BIT 0x0002
103 #define EGL_READ 0x305A
104 #define EGL_RED_SIZE 0x3024
105 #define EGL_SAMPLES 0x3031
106 #define EGL_SAMPLE_BUFFERS 0x3032
107 #define EGL_SLOW_CONFIG 0x3050
108 #define EGL_STENCIL_SIZE 0x3026
109 #define EGL_SUCCESS 0x3000
110 #define EGL_SURFACE_TYPE 0x3033
111 #define EGL_TRANSPARENT_BLUE_VALUE 0x3035
112 #define EGL_TRANSPARENT_GREEN_VALUE 0x3036
113 #define EGL_TRANSPARENT_RED_VALUE 0x3037
114 #define EGL_TRANSPARENT_RGB 0x3052
115 #define EGL_TRANSPARENT_TYPE 0x3034
116 #define EGL_TRUE 1
117 #define EGL_VENDOR 0x3053
118 #define EGL_VERSION 0x3054
119 #define EGL_WIDTH 0x3057
120 #define EGL_WINDOW_BIT 0x0004
121 EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig (EGLDisplay dpy, const EGLint *att rib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
122 EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers (EGLDisplay dpy, EGLSurface surface , EGLNativePixmapType target);
123 EGLAPI EGLContext EGLAPIENTRY eglCreateContext (EGLDisplay dpy, EGLConfig config , EGLContext share_context, const EGLint *attrib_list);
124 EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
125 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list);
126 EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
127 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext (EGLDisplay dpy, EGLContext ctx) ;
128 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface (EGLDisplay dpy, EGLSurface surf ace);
129 EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib (EGLDisplay dpy, EGLConfig conf ig, EGLint attribute, EGLint *value);
130 EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
131 EGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay (void);
132 EGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface (EGLint readdraw);
133 EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay (EGLNativeDisplayType display_id);
134 EGLAPI EGLint EGLAPIENTRY eglGetError (void);
135 EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress (c onst char *procname);
136 EGLAPI EGLBoolean EGLAPIENTRY eglInitialize (EGLDisplay dpy, EGLint *major, EGLi nt *minor);
137 EGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent (EGLDisplay dpy, EGLSurface draw, E GLSurface read, EGLContext ctx);
138 EGLAPI EGLBoolean EGLAPIENTRY eglQueryContext (EGLDisplay dpy, EGLContext ctx, E GLint attribute, EGLint *value);
139 EGLAPI const char *EGLAPIENTRY eglQueryString (EGLDisplay dpy, EGLint name);
140 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface (EGLDisplay dpy, EGLSurface surfac e, EGLint attribute, EGLint *value);
141 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers (EGLDisplay dpy, EGLSurface surface );
142 EGLAPI EGLBoolean EGLAPIENTRY eglTerminate (EGLDisplay dpy);
143 EGLAPI EGLBoolean EGLAPIENTRY eglWaitGL (void);
144 EGLAPI EGLBoolean EGLAPIENTRY eglWaitNative (EGLint engine);
145 #endif /* EGL_VERSION_1_0 */
146
147 #ifndef EGL_VERSION_1_1
148 #define EGL_VERSION_1_1 1
149 #define EGL_BACK_BUFFER 0x3084
150 #define EGL_BIND_TO_TEXTURE_RGB 0x3039
151 #define EGL_BIND_TO_TEXTURE_RGBA 0x303A
152 #define EGL_CONTEXT_LOST 0x300E
153 #define EGL_MIN_SWAP_INTERVAL 0x303B
154 #define EGL_MAX_SWAP_INTERVAL 0x303C
155 #define EGL_MIPMAP_TEXTURE 0x3082
156 #define EGL_MIPMAP_LEVEL 0x3083
157 #define EGL_NO_TEXTURE 0x305C
158 #define EGL_TEXTURE_2D 0x305F
159 #define EGL_TEXTURE_FORMAT 0x3080
160 #define EGL_TEXTURE_RGB 0x305D
161 #define EGL_TEXTURE_RGBA 0x305E
162 #define EGL_TEXTURE_TARGET 0x3081
163 EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage (EGLDisplay dpy, EGLSurface surfac e, EGLint buffer);
164 EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage (EGLDisplay dpy, EGLSurface sur face, EGLint buffer);
165 EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib (EGLDisplay dpy, EGLSurface surfa ce, EGLint attribute, EGLint value);
166 EGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval (EGLDisplay dpy, EGLint interval);
167 #endif /* EGL_VERSION_1_1 */
168
169 #ifndef EGL_VERSION_1_2
170 #define EGL_VERSION_1_2 1
45 typedef unsigned int EGLenum; 171 typedef unsigned int EGLenum;
46 typedef void *EGLConfig;
47 typedef void *EGLContext;
48 typedef void *EGLDisplay;
49 typedef void *EGLSurface;
50 typedef void *EGLClientBuffer; 172 typedef void *EGLClientBuffer;
51 173 #define EGL_ALPHA_FORMAT 0x3088
52 /* EGL Versioning */ 174 #define EGL_ALPHA_FORMAT_NONPRE 0x308B
53 #define EGL_VERSION_1_0 1 175 #define EGL_ALPHA_FORMAT_PRE 0x308C
54 #define EGL_VERSION_1_1 1 176 #define EGL_ALPHA_MASK_SIZE 0x303E
55 #define EGL_VERSION_1_2 1 177 #define EGL_BUFFER_PRESERVED 0x3094
56 #define EGL_VERSION_1_3 1 178 #define EGL_BUFFER_DESTROYED 0x3095
57 #define EGL_VERSION_1_4 1 179 #define EGL_CLIENT_APIS 0x308D
58 180 #define EGL_COLORSPACE 0x3087
59 /* EGL Enumerants. Bitmasks and other exceptional cases aside, most 181 #define EGL_COLORSPACE_sRGB 0x3089
60 * enums are assigned unique values starting at 0x3000. 182 #define EGL_COLORSPACE_LINEAR 0x308A
61 */ 183 #define EGL_COLOR_BUFFER_TYPE 0x303F
62 184 #define EGL_CONTEXT_CLIENT_TYPE 0x3097
63 /* EGL aliases */ 185 #define EGL_DISPLAY_SCALING 10000
64 #define EGL_FALSE 0 186 #define EGL_HORIZONTAL_RESOLUTION 0x3090
65 #define EGL_TRUE 1 187 #define EGL_LUMINANCE_BUFFER 0x308F
66 188 #define EGL_LUMINANCE_SIZE 0x303D
67 /* Out-of-band handle values */ 189 #define EGL_OPENGL_ES_BIT 0x0001
68 #define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType)0) 190 #define EGL_OPENVG_BIT 0x0002
69 #define EGL_NO_CONTEXT ((EGLContext)0) 191 #define EGL_OPENGL_ES_API 0x30A0
70 #define EGL_NO_DISPLAY ((EGLDisplay)0) 192 #define EGL_OPENVG_API 0x30A1
71 #define EGL_NO_SURFACE ((EGLSurface)0) 193 #define EGL_OPENVG_IMAGE 0x3096
72 194 #define EGL_PIXEL_ASPECT_RATIO 0x3092
73 /* Out-of-band attribute value */ 195 #define EGL_RENDERABLE_TYPE 0x3040
74 #define EGL_DONT_CARE ((EGLint)-1) 196 #define EGL_RENDER_BUFFER 0x3086
75 197 #define EGL_RGB_BUFFER 0x308E
76 /* Errors / GetError return values */ 198 #define EGL_SINGLE_BUFFER 0x3085
77 #define EGL_SUCCESS 0x3000 199 #define EGL_SWAP_BEHAVIOR 0x3093
78 #define EGL_NOT_INITIALIZED 0x3001 200 #define EGL_UNKNOWN ((EGLint)-1)
79 #define EGL_BAD_ACCESS 0x3002 201 #define EGL_VERTICAL_RESOLUTION 0x3091
80 #define EGL_BAD_ALLOC 0x3003 202 EGLAPI EGLBoolean EGLAPIENTRY eglBindAPI (EGLenum api);
81 #define EGL_BAD_ATTRIBUTE 0x3004 203 EGLAPI EGLenum EGLAPIENTRY eglQueryAPI (void);
82 #define EGL_BAD_CONFIG 0x3005 204 EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_ list);
83 #define EGL_BAD_CONTEXT 0x3006 205 EGLAPI EGLBoolean EGLAPIENTRY eglReleaseThread (void);
84 #define EGL_BAD_CURRENT_SURFACE 0x3007 206 EGLAPI EGLBoolean EGLAPIENTRY eglWaitClient (void);
85 #define EGL_BAD_DISPLAY 0x3008 207 #endif /* EGL_VERSION_1_2 */
86 #define EGL_BAD_MATCH 0x3009 208
87 #define EGL_BAD_NATIVE_PIXMAP 0x300A 209 #ifndef EGL_VERSION_1_3
88 #define EGL_BAD_NATIVE_WINDOW 0x300B 210 #define EGL_VERSION_1_3 1
89 #define EGL_BAD_PARAMETER 0x300C 211 #define EGL_CONFORMANT 0x3042
90 #define EGL_BAD_SURFACE 0x300D 212 #define EGL_CONTEXT_CLIENT_VERSION 0x3098
91 #define EGL_CONTEXT_LOST 0x300E /* EGL 1.1 - IMG_power_managemen t */ 213 #define EGL_MATCH_NATIVE_PIXMAP 0x3041
92 214 #define EGL_OPENGL_ES2_BIT 0x0004
93 /* Reserved 0x300F-0x301F for additional errors */ 215 #define EGL_VG_ALPHA_FORMAT 0x3088
94 216 #define EGL_VG_ALPHA_FORMAT_NONPRE 0x308B
95 /* Config attributes */ 217 #define EGL_VG_ALPHA_FORMAT_PRE 0x308C
96 #define EGL_BUFFER_SIZE 0x3020 218 #define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040
97 #define EGL_ALPHA_SIZE 0x3021 219 #define EGL_VG_COLORSPACE 0x3087
98 #define EGL_BLUE_SIZE 0x3022 220 #define EGL_VG_COLORSPACE_sRGB 0x3089
99 #define EGL_GREEN_SIZE 0x3023 221 #define EGL_VG_COLORSPACE_LINEAR 0x308A
100 #define EGL_RED_SIZE 0x3024 222 #define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020
101 #define EGL_DEPTH_SIZE 0x3025 223 #endif /* EGL_VERSION_1_3 */
102 #define EGL_STENCIL_SIZE 0x3026 224
103 #define EGL_CONFIG_CAVEAT 0x3027 225 #ifndef EGL_VERSION_1_4
104 #define EGL_CONFIG_ID 0x3028 226 #define EGL_VERSION_1_4 1
105 #define EGL_LEVEL 0x3029 227 #define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType)0)
106 #define EGL_MAX_PBUFFER_HEIGHT 0x302A 228 #define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200
107 #define EGL_MAX_PBUFFER_PIXELS 0x302B 229 #define EGL_MULTISAMPLE_RESOLVE 0x3099
108 #define EGL_MAX_PBUFFER_WIDTH 0x302C 230 #define EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A
109 #define EGL_NATIVE_RENDERABLE 0x302D 231 #define EGL_MULTISAMPLE_RESOLVE_BOX 0x309B
110 #define EGL_NATIVE_VISUAL_ID 0x302E 232 #define EGL_OPENGL_API 0x30A2
111 #define EGL_NATIVE_VISUAL_TYPE 0x302F 233 #define EGL_OPENGL_BIT 0x0008
112 #define EGL_SAMPLES 0x3031 234 #define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400
113 #define EGL_SAMPLE_BUFFERS 0x3032 235 EGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext (void);
114 #define EGL_SURFACE_TYPE 0x3033 236 #endif /* EGL_VERSION_1_4 */
115 #define EGL_TRANSPARENT_TYPE 0x3034 237
116 #define EGL_TRANSPARENT_BLUE_VALUE 0x3035 238 #ifndef EGL_VERSION_1_5
117 #define EGL_TRANSPARENT_GREEN_VALUE 0x3036 239 #define EGL_VERSION_1_5 1
118 #define EGL_TRANSPARENT_RED_VALUE 0x3037 240 typedef void *EGLSync;
119 #define EGL_NONE 0x3038 /* Attrib list terminator */ 241 typedef intptr_t EGLAttrib;
120 #define EGL_BIND_TO_TEXTURE_RGB 0x3039 242 typedef khronos_utime_nanoseconds_t EGLTime;
121 #define EGL_BIND_TO_TEXTURE_RGBA 0x303A 243 typedef void *EGLImage;
122 #define EGL_MIN_SWAP_INTERVAL 0x303B 244 #define EGL_CONTEXT_MAJOR_VERSION 0x3098
123 #define EGL_MAX_SWAP_INTERVAL 0x303C 245 #define EGL_CONTEXT_MINOR_VERSION 0x30FB
124 #define EGL_LUMINANCE_SIZE 0x303D 246 #define EGL_CONTEXT_OPENGL_PROFILE_MASK 0x30FD
125 #define EGL_ALPHA_MASK_SIZE 0x303E 247 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
126 #define EGL_COLOR_BUFFER_TYPE 0x303F 248 #define EGL_NO_RESET_NOTIFICATION 0x31BE
127 #define EGL_RENDERABLE_TYPE 0x3040 249 #define EGL_LOSE_CONTEXT_ON_RESET 0x31BF
128 #define EGL_MATCH_NATIVE_PIXMAP 0x3041 /* Pseudo-attribute (not queryab le) */ 250 #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001
129 #define EGL_CONFORMANT 0x3042 251 #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002
130 252 #define EGL_CONTEXT_OPENGL_DEBUG 0x31B0
131 /* Reserved 0x3041-0x304F for additional config attributes */ 253 #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1
132 254 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2
133 /* Config attribute values */ 255 #define EGL_OPENGL_ES3_BIT 0x00000040
134 #define EGL_SLOW_CONFIG 0x3050 /* EGL_CONFIG_CAVEAT value */ 256 #define EGL_CL_EVENT_HANDLE 0x309C
135 #define EGL_NON_CONFORMANT_CONFIG 0x3051 /* EGL_CONFIG_CAVEAT value */ 257 #define EGL_SYNC_CL_EVENT 0x30FE
136 #define EGL_TRANSPARENT_RGB 0x3052 /* EGL_TRANSPARENT_TYPE value */ 258 #define EGL_SYNC_CL_EVENT_COMPLETE 0x30FF
137 #define EGL_RGB_BUFFER 0x308E /* EGL_COLOR_BUFFER_TYPE value * / 259 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0
138 #define EGL_LUMINANCE_BUFFER 0x308F /* EGL_COLOR_BUFFER_TYPE value * / 260 #define EGL_SYNC_TYPE 0x30F7
139 261 #define EGL_SYNC_STATUS 0x30F1
140 /* More config attribute values, for EGL_TEXTURE_FORMAT */ 262 #define EGL_SYNC_CONDITION 0x30F8
141 #define EGL_NO_TEXTURE 0x305C 263 #define EGL_SIGNALED 0x30F2
142 #define EGL_TEXTURE_RGB 0x305D 264 #define EGL_UNSIGNALED 0x30F3
143 #define EGL_TEXTURE_RGBA 0x305E 265 #define EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001
144 #define EGL_TEXTURE_2D 0x305F 266 #define EGL_FOREVER 0xFFFFFFFFFFFFFFFFull
145 267 #define EGL_TIMEOUT_EXPIRED 0x30F5
146 /* Config attribute mask bits */ 268 #define EGL_CONDITION_SATISFIED 0x30F6
147 #define EGL_PBUFFER_BIT 0x0001 /* EGL_SURFACE_TYPE mask bits */ 269 #define EGL_NO_SYNC ((EGLSync)0)
148 #define EGL_PIXMAP_BIT 0x0002 /* EGL_SURFACE_TYPE mask bits */ 270 #define EGL_SYNC_FENCE 0x30F9
149 #define EGL_WINDOW_BIT 0x0004 /* EGL_SURFACE_TYPE mask bits */ 271 #define EGL_GL_COLORSPACE 0x309D
150 #define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020 /* EGL_SURFACE_TYPE mask bits */ 272 #define EGL_GL_COLORSPACE_SRGB 0x3089
151 #define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040 /* EGL_SURFACE_TYPE mask bits */ 273 #define EGL_GL_COLORSPACE_LINEAR 0x308A
152 #define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200 /* EGL_SURFACE_TYPE mask bits */ 274 #define EGL_GL_RENDERBUFFER 0x30B9
153 #define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400 /* EGL_SURFACE_TYPE mask bits */ 275 #define EGL_GL_TEXTURE_2D 0x30B1
154 276 #define EGL_GL_TEXTURE_LEVEL 0x30BC
155 #define EGL_OPENGL_ES_BIT 0x0001 /* EGL_RENDERABLE_TYPE mask bits */ 277 #define EGL_GL_TEXTURE_3D 0x30B2
156 #define EGL_OPENVG_BIT 0x0002 /* EGL_RENDERABLE_TYPE mask bits */ 278 #define EGL_GL_TEXTURE_ZOFFSET 0x30BD
157 #define EGL_OPENGL_ES2_BIT 0x0004 /* EGL_RENDERABLE_TYPE mask bits */ 279 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3
158 #define EGL_OPENGL_BIT 0x0008 /* EGL_RENDERABLE_TYPE mask bits */ 280 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4
159 281 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5
160 /* QueryString targets */ 282 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6
161 #define EGL_VENDOR 0x3053 283 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7
162 #define EGL_VERSION 0x3054 284 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8
163 #define EGL_EXTENSIONS 0x3055 285 #define EGL_IMAGE_PRESERVED 0x30D2
164 #define EGL_CLIENT_APIS 0x308D 286 #define EGL_NO_IMAGE ((EGLImage)0)
165 287 EGLAPI EGLSync EGLAPIENTRY eglCreateSync (EGLDisplay dpy, EGLenum type, const EG LAttrib *attrib_list);
166 /* QuerySurface / SurfaceAttrib / CreatePbufferSurface targets */ 288 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySync (EGLDisplay dpy, EGLSync sync);
167 #define EGL_HEIGHT 0x3056 289 EGLAPI EGLint EGLAPIENTRY eglClientWaitSync (EGLDisplay dpy, EGLSync sync, EGLin t flags, EGLTime timeout);
168 #define EGL_WIDTH 0x3057 290 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttrib (EGLDisplay dpy, EGLSync sync, EG Lint attribute, EGLAttrib *value);
169 #define EGL_LARGEST_PBUFFER 0x3058 291 EGLAPI EGLImage EGLAPIENTRY eglCreateImage (EGLDisplay dpy, EGLContext ctx, EGLe num target, EGLClientBuffer buffer, const EGLAttrib *attrib_list);
170 #define EGL_TEXTURE_FORMAT 0x3080 292 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImage (EGLDisplay dpy, EGLImage image);
171 #define EGL_TEXTURE_TARGET 0x3081 293 EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplay (EGLenum platform, void *nat ive_display, const EGLAttrib *attrib_list);
172 #define EGL_MIPMAP_TEXTURE 0x3082 294 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurface (EGLDisplay dpy, EG LConfig config, void *native_window, const EGLAttrib *attrib_list);
173 #define EGL_MIPMAP_LEVEL 0x3083 295 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurface (EGLDisplay dpy, EG LConfig config, void *native_pixmap, const EGLAttrib *attrib_list);
174 #define EGL_RENDER_BUFFER 0x3086 296 EGLAPI EGLBoolean EGLAPIENTRY eglWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags);
175 #define EGL_VG_COLORSPACE 0x3087 297 #endif /* EGL_VERSION_1_5 */
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, EGLin t *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 *attr ib_list,
260 EGLConfig *configs, EGLint config_size,
261 EGLint *num_config);
262 EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib(EGLDisplay dpy, EGLConfig confi g,
263 EGLint attribute, EGLint *value);
264
265 EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig c onfig,
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 c onfig,
271 EGLNativePixmapType pixmap,
272 const EGLint *attrib_list);
273 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surfa ce);
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 surfac e,
289 EGLint attribute, EGLint value);
290 EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage(EGLDisplay dpy, EGLSurface surface , EGLint buffer);
291 EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage(EGLDisplay dpy, EGLSurface surf ace, 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 298
325 #ifdef __cplusplus 299 #ifdef __cplusplus
326 } 300 }
327 #endif 301 #endif
328 302
329 #endif /* __egl_h_ */ 303 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/khronos/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698