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