Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | /* -*- mode: c; tab-width: 8; -*- */ |
michael@0 | 2 | /* vi: set sw=4 ts=8: */ |
michael@0 | 3 | /* Reference version of egl.h for EGL 1.4. |
michael@0 | 4 | * $Revision: 9356 $ on $Date: 2009-10-21 02:52:25 -0700 (Wed, 21 Oct 2009) $ |
michael@0 | 5 | */ |
michael@0 | 6 | |
michael@0 | 7 | /* |
michael@0 | 8 | ** Copyright (c) 2007-2009 The Khronos Group Inc. |
michael@0 | 9 | ** |
michael@0 | 10 | ** Permission is hereby granted, free of charge, to any person obtaining a |
michael@0 | 11 | ** copy of this software and/or associated documentation files (the |
michael@0 | 12 | ** "Materials"), to deal in the Materials without restriction, including |
michael@0 | 13 | ** without limitation the rights to use, copy, modify, merge, publish, |
michael@0 | 14 | ** distribute, sublicense, and/or sell copies of the Materials, and to |
michael@0 | 15 | ** permit persons to whom the Materials are furnished to do so, subject to |
michael@0 | 16 | ** the following conditions: |
michael@0 | 17 | ** |
michael@0 | 18 | ** The above copyright notice and this permission notice shall be included |
michael@0 | 19 | ** in all copies or substantial portions of the Materials. |
michael@0 | 20 | ** |
michael@0 | 21 | ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
michael@0 | 22 | ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
michael@0 | 23 | ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
michael@0 | 24 | ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
michael@0 | 25 | ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
michael@0 | 26 | ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
michael@0 | 27 | ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
michael@0 | 28 | */ |
michael@0 | 29 | |
michael@0 | 30 | #ifndef __egl_h_ |
michael@0 | 31 | #define __egl_h_ |
michael@0 | 32 | |
michael@0 | 33 | /* All platform-dependent types and macro boilerplate (such as EGLAPI |
michael@0 | 34 | * and EGLAPIENTRY) should go in eglplatform.h. |
michael@0 | 35 | */ |
michael@0 | 36 | #include <EGL/eglplatform.h> |
michael@0 | 37 | |
michael@0 | 38 | #ifdef __cplusplus |
michael@0 | 39 | extern "C" { |
michael@0 | 40 | #endif |
michael@0 | 41 | |
michael@0 | 42 | /* EGL Types */ |
michael@0 | 43 | /* EGLint is defined in eglplatform.h */ |
michael@0 | 44 | typedef unsigned int EGLBoolean; |
michael@0 | 45 | typedef unsigned int EGLenum; |
michael@0 | 46 | typedef void *EGLConfig; |
michael@0 | 47 | typedef void *EGLContext; |
michael@0 | 48 | typedef void *EGLDisplay; |
michael@0 | 49 | typedef void *EGLSurface; |
michael@0 | 50 | typedef void *EGLClientBuffer; |
michael@0 | 51 | |
michael@0 | 52 | /* EGL Versioning */ |
michael@0 | 53 | #define EGL_VERSION_1_0 1 |
michael@0 | 54 | #define EGL_VERSION_1_1 1 |
michael@0 | 55 | #define EGL_VERSION_1_2 1 |
michael@0 | 56 | #define EGL_VERSION_1_3 1 |
michael@0 | 57 | #define EGL_VERSION_1_4 1 |
michael@0 | 58 | |
michael@0 | 59 | /* EGL Enumerants. Bitmasks and other exceptional cases aside, most |
michael@0 | 60 | * enums are assigned unique values starting at 0x3000. |
michael@0 | 61 | */ |
michael@0 | 62 | |
michael@0 | 63 | /* EGL aliases */ |
michael@0 | 64 | #define EGL_FALSE 0 |
michael@0 | 65 | #define EGL_TRUE 1 |
michael@0 | 66 | |
michael@0 | 67 | /* Out-of-band handle values */ |
michael@0 | 68 | #define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType)0) |
michael@0 | 69 | #define EGL_NO_CONTEXT ((EGLContext)0) |
michael@0 | 70 | #define EGL_NO_DISPLAY ((EGLDisplay)0) |
michael@0 | 71 | #define EGL_NO_SURFACE ((EGLSurface)0) |
michael@0 | 72 | |
michael@0 | 73 | /* Out-of-band attribute value */ |
michael@0 | 74 | #define EGL_DONT_CARE ((EGLint)-1) |
michael@0 | 75 | |
michael@0 | 76 | /* Errors / GetError return values */ |
michael@0 | 77 | #define EGL_SUCCESS 0x3000 |
michael@0 | 78 | #define EGL_NOT_INITIALIZED 0x3001 |
michael@0 | 79 | #define EGL_BAD_ACCESS 0x3002 |
michael@0 | 80 | #define EGL_BAD_ALLOC 0x3003 |
michael@0 | 81 | #define EGL_BAD_ATTRIBUTE 0x3004 |
michael@0 | 82 | #define EGL_BAD_CONFIG 0x3005 |
michael@0 | 83 | #define EGL_BAD_CONTEXT 0x3006 |
michael@0 | 84 | #define EGL_BAD_CURRENT_SURFACE 0x3007 |
michael@0 | 85 | #define EGL_BAD_DISPLAY 0x3008 |
michael@0 | 86 | #define EGL_BAD_MATCH 0x3009 |
michael@0 | 87 | #define EGL_BAD_NATIVE_PIXMAP 0x300A |
michael@0 | 88 | #define EGL_BAD_NATIVE_WINDOW 0x300B |
michael@0 | 89 | #define EGL_BAD_PARAMETER 0x300C |
michael@0 | 90 | #define EGL_BAD_SURFACE 0x300D |
michael@0 | 91 | #define EGL_CONTEXT_LOST 0x300E /* EGL 1.1 - IMG_power_management */ |
michael@0 | 92 | |
michael@0 | 93 | /* Reserved 0x300F-0x301F for additional errors */ |
michael@0 | 94 | |
michael@0 | 95 | /* Config attributes */ |
michael@0 | 96 | #define EGL_BUFFER_SIZE 0x3020 |
michael@0 | 97 | #define EGL_ALPHA_SIZE 0x3021 |
michael@0 | 98 | #define EGL_BLUE_SIZE 0x3022 |
michael@0 | 99 | #define EGL_GREEN_SIZE 0x3023 |
michael@0 | 100 | #define EGL_RED_SIZE 0x3024 |
michael@0 | 101 | #define EGL_DEPTH_SIZE 0x3025 |
michael@0 | 102 | #define EGL_STENCIL_SIZE 0x3026 |
michael@0 | 103 | #define EGL_CONFIG_CAVEAT 0x3027 |
michael@0 | 104 | #define EGL_CONFIG_ID 0x3028 |
michael@0 | 105 | #define EGL_LEVEL 0x3029 |
michael@0 | 106 | #define EGL_MAX_PBUFFER_HEIGHT 0x302A |
michael@0 | 107 | #define EGL_MAX_PBUFFER_PIXELS 0x302B |
michael@0 | 108 | #define EGL_MAX_PBUFFER_WIDTH 0x302C |
michael@0 | 109 | #define EGL_NATIVE_RENDERABLE 0x302D |
michael@0 | 110 | #define EGL_NATIVE_VISUAL_ID 0x302E |
michael@0 | 111 | #define EGL_NATIVE_VISUAL_TYPE 0x302F |
michael@0 | 112 | #define EGL_SAMPLES 0x3031 |
michael@0 | 113 | #define EGL_SAMPLE_BUFFERS 0x3032 |
michael@0 | 114 | #define EGL_SURFACE_TYPE 0x3033 |
michael@0 | 115 | #define EGL_TRANSPARENT_TYPE 0x3034 |
michael@0 | 116 | #define EGL_TRANSPARENT_BLUE_VALUE 0x3035 |
michael@0 | 117 | #define EGL_TRANSPARENT_GREEN_VALUE 0x3036 |
michael@0 | 118 | #define EGL_TRANSPARENT_RED_VALUE 0x3037 |
michael@0 | 119 | #define EGL_NONE 0x3038 /* Attrib list terminator */ |
michael@0 | 120 | #define EGL_BIND_TO_TEXTURE_RGB 0x3039 |
michael@0 | 121 | #define EGL_BIND_TO_TEXTURE_RGBA 0x303A |
michael@0 | 122 | #define EGL_MIN_SWAP_INTERVAL 0x303B |
michael@0 | 123 | #define EGL_MAX_SWAP_INTERVAL 0x303C |
michael@0 | 124 | #define EGL_LUMINANCE_SIZE 0x303D |
michael@0 | 125 | #define EGL_ALPHA_MASK_SIZE 0x303E |
michael@0 | 126 | #define EGL_COLOR_BUFFER_TYPE 0x303F |
michael@0 | 127 | #define EGL_RENDERABLE_TYPE 0x3040 |
michael@0 | 128 | #define EGL_MATCH_NATIVE_PIXMAP 0x3041 /* Pseudo-attribute (not queryable) */ |
michael@0 | 129 | #define EGL_CONFORMANT 0x3042 |
michael@0 | 130 | |
michael@0 | 131 | /* Reserved 0x3041-0x304F for additional config attributes */ |
michael@0 | 132 | |
michael@0 | 133 | /* Config attribute values */ |
michael@0 | 134 | #define EGL_SLOW_CONFIG 0x3050 /* EGL_CONFIG_CAVEAT value */ |
michael@0 | 135 | #define EGL_NON_CONFORMANT_CONFIG 0x3051 /* EGL_CONFIG_CAVEAT value */ |
michael@0 | 136 | #define EGL_TRANSPARENT_RGB 0x3052 /* EGL_TRANSPARENT_TYPE value */ |
michael@0 | 137 | #define EGL_RGB_BUFFER 0x308E /* EGL_COLOR_BUFFER_TYPE value */ |
michael@0 | 138 | #define EGL_LUMINANCE_BUFFER 0x308F /* EGL_COLOR_BUFFER_TYPE value */ |
michael@0 | 139 | |
michael@0 | 140 | /* More config attribute values, for EGL_TEXTURE_FORMAT */ |
michael@0 | 141 | #define EGL_NO_TEXTURE 0x305C |
michael@0 | 142 | #define EGL_TEXTURE_RGB 0x305D |
michael@0 | 143 | #define EGL_TEXTURE_RGBA 0x305E |
michael@0 | 144 | #define EGL_TEXTURE_2D 0x305F |
michael@0 | 145 | |
michael@0 | 146 | /* Config attribute mask bits */ |
michael@0 | 147 | #define EGL_PBUFFER_BIT 0x0001 /* EGL_SURFACE_TYPE mask bits */ |
michael@0 | 148 | #define EGL_PIXMAP_BIT 0x0002 /* EGL_SURFACE_TYPE mask bits */ |
michael@0 | 149 | #define EGL_WINDOW_BIT 0x0004 /* EGL_SURFACE_TYPE mask bits */ |
michael@0 | 150 | #define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020 /* EGL_SURFACE_TYPE mask bits */ |
michael@0 | 151 | #define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040 /* EGL_SURFACE_TYPE mask bits */ |
michael@0 | 152 | #define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200 /* EGL_SURFACE_TYPE mask bits */ |
michael@0 | 153 | #define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400 /* EGL_SURFACE_TYPE mask bits */ |
michael@0 | 154 | |
michael@0 | 155 | #define EGL_OPENGL_ES_BIT 0x0001 /* EGL_RENDERABLE_TYPE mask bits */ |
michael@0 | 156 | #define EGL_OPENVG_BIT 0x0002 /* EGL_RENDERABLE_TYPE mask bits */ |
michael@0 | 157 | #define EGL_OPENGL_ES2_BIT 0x0004 /* EGL_RENDERABLE_TYPE mask bits */ |
michael@0 | 158 | #define EGL_OPENGL_BIT 0x0008 /* EGL_RENDERABLE_TYPE mask bits */ |
michael@0 | 159 | |
michael@0 | 160 | /* QueryString targets */ |
michael@0 | 161 | #define EGL_VENDOR 0x3053 |
michael@0 | 162 | #define EGL_VERSION 0x3054 |
michael@0 | 163 | #define EGL_EXTENSIONS 0x3055 |
michael@0 | 164 | #define EGL_CLIENT_APIS 0x308D |
michael@0 | 165 | |
michael@0 | 166 | /* QuerySurface / SurfaceAttrib / CreatePbufferSurface targets */ |
michael@0 | 167 | #define EGL_HEIGHT 0x3056 |
michael@0 | 168 | #define EGL_WIDTH 0x3057 |
michael@0 | 169 | #define EGL_LARGEST_PBUFFER 0x3058 |
michael@0 | 170 | #define EGL_TEXTURE_FORMAT 0x3080 |
michael@0 | 171 | #define EGL_TEXTURE_TARGET 0x3081 |
michael@0 | 172 | #define EGL_MIPMAP_TEXTURE 0x3082 |
michael@0 | 173 | #define EGL_MIPMAP_LEVEL 0x3083 |
michael@0 | 174 | #define EGL_RENDER_BUFFER 0x3086 |
michael@0 | 175 | #define EGL_VG_COLORSPACE 0x3087 |
michael@0 | 176 | #define EGL_VG_ALPHA_FORMAT 0x3088 |
michael@0 | 177 | #define EGL_HORIZONTAL_RESOLUTION 0x3090 |
michael@0 | 178 | #define EGL_VERTICAL_RESOLUTION 0x3091 |
michael@0 | 179 | #define EGL_PIXEL_ASPECT_RATIO 0x3092 |
michael@0 | 180 | #define EGL_SWAP_BEHAVIOR 0x3093 |
michael@0 | 181 | #define EGL_MULTISAMPLE_RESOLVE 0x3099 |
michael@0 | 182 | |
michael@0 | 183 | /* EGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targets */ |
michael@0 | 184 | #define EGL_BACK_BUFFER 0x3084 |
michael@0 | 185 | #define EGL_SINGLE_BUFFER 0x3085 |
michael@0 | 186 | |
michael@0 | 187 | /* OpenVG color spaces */ |
michael@0 | 188 | #define EGL_VG_COLORSPACE_sRGB 0x3089 /* EGL_VG_COLORSPACE value */ |
michael@0 | 189 | #define EGL_VG_COLORSPACE_LINEAR 0x308A /* EGL_VG_COLORSPACE value */ |
michael@0 | 190 | |
michael@0 | 191 | /* OpenVG alpha formats */ |
michael@0 | 192 | #define EGL_VG_ALPHA_FORMAT_NONPRE 0x308B /* EGL_ALPHA_FORMAT value */ |
michael@0 | 193 | #define EGL_VG_ALPHA_FORMAT_PRE 0x308C /* EGL_ALPHA_FORMAT value */ |
michael@0 | 194 | |
michael@0 | 195 | /* Constant scale factor by which fractional display resolutions & |
michael@0 | 196 | * aspect ratio are scaled when queried as integer values. |
michael@0 | 197 | */ |
michael@0 | 198 | #define EGL_DISPLAY_SCALING 10000 |
michael@0 | 199 | |
michael@0 | 200 | /* Unknown display resolution/aspect ratio */ |
michael@0 | 201 | #define EGL_UNKNOWN ((EGLint)-1) |
michael@0 | 202 | |
michael@0 | 203 | /* Back buffer swap behaviors */ |
michael@0 | 204 | #define EGL_BUFFER_PRESERVED 0x3094 /* EGL_SWAP_BEHAVIOR value */ |
michael@0 | 205 | #define EGL_BUFFER_DESTROYED 0x3095 /* EGL_SWAP_BEHAVIOR value */ |
michael@0 | 206 | |
michael@0 | 207 | /* CreatePbufferFromClientBuffer buffer types */ |
michael@0 | 208 | #define EGL_OPENVG_IMAGE 0x3096 |
michael@0 | 209 | |
michael@0 | 210 | /* QueryContext targets */ |
michael@0 | 211 | #define EGL_CONTEXT_CLIENT_TYPE 0x3097 |
michael@0 | 212 | |
michael@0 | 213 | /* CreateContext attributes */ |
michael@0 | 214 | #define EGL_CONTEXT_CLIENT_VERSION 0x3098 |
michael@0 | 215 | |
michael@0 | 216 | /* Multisample resolution behaviors */ |
michael@0 | 217 | #define EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A /* EGL_MULTISAMPLE_RESOLVE value */ |
michael@0 | 218 | #define EGL_MULTISAMPLE_RESOLVE_BOX 0x309B /* EGL_MULTISAMPLE_RESOLVE value */ |
michael@0 | 219 | |
michael@0 | 220 | /* BindAPI/QueryAPI targets */ |
michael@0 | 221 | #define EGL_OPENGL_ES_API 0x30A0 |
michael@0 | 222 | #define EGL_OPENVG_API 0x30A1 |
michael@0 | 223 | #define EGL_OPENGL_API 0x30A2 |
michael@0 | 224 | |
michael@0 | 225 | /* GetCurrentSurface targets */ |
michael@0 | 226 | #define EGL_DRAW 0x3059 |
michael@0 | 227 | #define EGL_READ 0x305A |
michael@0 | 228 | |
michael@0 | 229 | /* WaitNative engines */ |
michael@0 | 230 | #define EGL_CORE_NATIVE_ENGINE 0x305B |
michael@0 | 231 | |
michael@0 | 232 | /* EGL 1.2 tokens renamed for consistency in EGL 1.3 */ |
michael@0 | 233 | #define EGL_COLORSPACE EGL_VG_COLORSPACE |
michael@0 | 234 | #define EGL_ALPHA_FORMAT EGL_VG_ALPHA_FORMAT |
michael@0 | 235 | #define EGL_COLORSPACE_sRGB EGL_VG_COLORSPACE_sRGB |
michael@0 | 236 | #define EGL_COLORSPACE_LINEAR EGL_VG_COLORSPACE_LINEAR |
michael@0 | 237 | #define EGL_ALPHA_FORMAT_NONPRE EGL_VG_ALPHA_FORMAT_NONPRE |
michael@0 | 238 | #define EGL_ALPHA_FORMAT_PRE EGL_VG_ALPHA_FORMAT_PRE |
michael@0 | 239 | |
michael@0 | 240 | /* EGL extensions must request enum blocks from the Khronos |
michael@0 | 241 | * API Registrar, who maintains the enumerant registry. Submit |
michael@0 | 242 | * a bug in Khronos Bugzilla against task "Registry". |
michael@0 | 243 | */ |
michael@0 | 244 | |
michael@0 | 245 | |
michael@0 | 246 | |
michael@0 | 247 | /* EGL Functions */ |
michael@0 | 248 | |
michael@0 | 249 | EGLAPI EGLint EGLAPIENTRY eglGetError(void); |
michael@0 | 250 | |
michael@0 | 251 | EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay(EGLNativeDisplayType display_id); |
michael@0 | 252 | EGLAPI EGLBoolean EGLAPIENTRY eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor); |
michael@0 | 253 | EGLAPI EGLBoolean EGLAPIENTRY eglTerminate(EGLDisplay dpy); |
michael@0 | 254 | |
michael@0 | 255 | EGLAPI const char * EGLAPIENTRY eglQueryString(EGLDisplay dpy, EGLint name); |
michael@0 | 256 | |
michael@0 | 257 | EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, |
michael@0 | 258 | EGLint config_size, EGLint *num_config); |
michael@0 | 259 | EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, |
michael@0 | 260 | EGLConfig *configs, EGLint config_size, |
michael@0 | 261 | EGLint *num_config); |
michael@0 | 262 | EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, |
michael@0 | 263 | EGLint attribute, EGLint *value); |
michael@0 | 264 | |
michael@0 | 265 | EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, |
michael@0 | 266 | EGLNativeWindowType win, |
michael@0 | 267 | const EGLint *attrib_list); |
michael@0 | 268 | EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, |
michael@0 | 269 | const EGLint *attrib_list); |
michael@0 | 270 | EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, |
michael@0 | 271 | EGLNativePixmapType pixmap, |
michael@0 | 272 | const EGLint *attrib_list); |
michael@0 | 273 | EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surface); |
michael@0 | 274 | EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface(EGLDisplay dpy, EGLSurface surface, |
michael@0 | 275 | EGLint attribute, EGLint *value); |
michael@0 | 276 | |
michael@0 | 277 | EGLAPI EGLBoolean EGLAPIENTRY eglBindAPI(EGLenum api); |
michael@0 | 278 | EGLAPI EGLenum EGLAPIENTRY eglQueryAPI(void); |
michael@0 | 279 | |
michael@0 | 280 | EGLAPI EGLBoolean EGLAPIENTRY eglWaitClient(void); |
michael@0 | 281 | |
michael@0 | 282 | EGLAPI EGLBoolean EGLAPIENTRY eglReleaseThread(void); |
michael@0 | 283 | |
michael@0 | 284 | EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer( |
michael@0 | 285 | EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, |
michael@0 | 286 | EGLConfig config, const EGLint *attrib_list); |
michael@0 | 287 | |
michael@0 | 288 | EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, |
michael@0 | 289 | EGLint attribute, EGLint value); |
michael@0 | 290 | EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); |
michael@0 | 291 | EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); |
michael@0 | 292 | |
michael@0 | 293 | |
michael@0 | 294 | EGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval(EGLDisplay dpy, EGLint interval); |
michael@0 | 295 | |
michael@0 | 296 | |
michael@0 | 297 | EGLAPI EGLContext EGLAPIENTRY eglCreateContext(EGLDisplay dpy, EGLConfig config, |
michael@0 | 298 | EGLContext share_context, |
michael@0 | 299 | const EGLint *attrib_list); |
michael@0 | 300 | EGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext(EGLDisplay dpy, EGLContext ctx); |
michael@0 | 301 | EGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, |
michael@0 | 302 | EGLSurface read, EGLContext ctx); |
michael@0 | 303 | |
michael@0 | 304 | EGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext(void); |
michael@0 | 305 | EGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface(EGLint readdraw); |
michael@0 | 306 | EGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay(void); |
michael@0 | 307 | EGLAPI EGLBoolean EGLAPIENTRY eglQueryContext(EGLDisplay dpy, EGLContext ctx, |
michael@0 | 308 | EGLint attribute, EGLint *value); |
michael@0 | 309 | |
michael@0 | 310 | EGLAPI EGLBoolean EGLAPIENTRY eglWaitGL(void); |
michael@0 | 311 | EGLAPI EGLBoolean EGLAPIENTRY eglWaitNative(EGLint engine); |
michael@0 | 312 | EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surface); |
michael@0 | 313 | EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, |
michael@0 | 314 | EGLNativePixmapType target); |
michael@0 | 315 | |
michael@0 | 316 | /* This is a generic function pointer type, whose name indicates it must |
michael@0 | 317 | * be cast to the proper type *and calling convention* before use. |
michael@0 | 318 | */ |
michael@0 | 319 | typedef void (*__eglMustCastToProperFunctionPointerType)(void); |
michael@0 | 320 | |
michael@0 | 321 | /* Now, define eglGetProcAddress using the generic function ptr. type */ |
michael@0 | 322 | EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY |
michael@0 | 323 | eglGetProcAddress(const char *procname); |
michael@0 | 324 | |
michael@0 | 325 | #ifdef __cplusplus |
michael@0 | 326 | } |
michael@0 | 327 | #endif |
michael@0 | 328 | |
michael@0 | 329 | #endif /* __egl_h_ */ |