xref: /third_party/EGL/api/1.0/egl.h (revision 02f4aeb0)
102f4aeb0Sopenharmony_ci/* Sketchy version of egl.h (really only for reserving
202f4aeb0Sopenharmony_ci * enumerant values to EGL tokens and sanity checking
302f4aeb0Sopenharmony_ci * prototypes).
402f4aeb0Sopenharmony_ci *
502f4aeb0Sopenharmony_ci * Last modified 2006/08/13
602f4aeb0Sopenharmony_ci */
702f4aeb0Sopenharmony_ci
802f4aeb0Sopenharmony_ci#ifndef __egl_h_
902f4aeb0Sopenharmony_ci#define __egl_h_
1002f4aeb0Sopenharmony_ci
1102f4aeb0Sopenharmony_ci/* Windows calling convention boilerplate */
1202f4aeb0Sopenharmony_ci#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
1302f4aeb0Sopenharmony_ci#define WIN32_LEAN_AND_MEAN 1
1402f4aeb0Sopenharmony_ci#include <windows.h>
1502f4aeb0Sopenharmony_ci#endif
1602f4aeb0Sopenharmony_ci
1702f4aeb0Sopenharmony_ci#ifndef APIENTRY
1802f4aeb0Sopenharmony_ci#define APIENTRY
1902f4aeb0Sopenharmony_ci#endif
2002f4aeb0Sopenharmony_ci#ifndef EGLAPI
2102f4aeb0Sopenharmony_ci#define EGLAPI extern
2202f4aeb0Sopenharmony_ci#endif
2302f4aeb0Sopenharmony_ci
2402f4aeb0Sopenharmony_ci
2502f4aeb0Sopenharmony_ci/* EGL Types */
2602f4aeb0Sopenharmony_ci#include <sys/types.h>
2702f4aeb0Sopenharmony_ci
2802f4aeb0Sopenharmony_citypedef int32_t EGLint;
2902f4aeb0Sopenharmony_citypedef unsigned int EGLBoolean;
3002f4aeb0Sopenharmony_citypedef unsigned int EGLenum;
3102f4aeb0Sopenharmony_citypedef void *EGLConfig;
3202f4aeb0Sopenharmony_citypedef void *EGLContext;
3302f4aeb0Sopenharmony_citypedef void *EGLDisplay;
3402f4aeb0Sopenharmony_citypedef void *EGLSurface;
3502f4aeb0Sopenharmony_citypedef void *EGLClientBuffer;
3602f4aeb0Sopenharmony_ci/* NativeDisplayType, NativeWindowType, NativePixmapType TBD */
3702f4aeb0Sopenharmony_ci
3802f4aeb0Sopenharmony_ci/* EGL Versioning */
3902f4aeb0Sopenharmony_ci#define EGL_VERSION_1_0			1
4002f4aeb0Sopenharmony_ci#define EGL_VERSION_1_1			1
4102f4aeb0Sopenharmony_ci#define EGL_VERSION_1_2			1
4202f4aeb0Sopenharmony_ci#define EGL_VERSION_1_3			1
4302f4aeb0Sopenharmony_ci
4402f4aeb0Sopenharmony_ci/* EGL Enumerants. Exceptional cases aside, most
4502f4aeb0Sopenharmony_ci * enums are assigned unique values starting at 0x3000.
4602f4aeb0Sopenharmony_ci */
4702f4aeb0Sopenharmony_ci
4802f4aeb0Sopenharmony_ci/* EGL aliases */
4902f4aeb0Sopenharmony_ci#define EGL_FALSE			0
5002f4aeb0Sopenharmony_ci#define EGL_TRUE			1
5102f4aeb0Sopenharmony_ci
5202f4aeb0Sopenharmony_ci/* Out-of-band handle values */
5302f4aeb0Sopenharmony_ci/* These values may vary depending on semantics of native concepts */
5402f4aeb0Sopenharmony_ci#define EGL_DEFAULT_DISPLAY		((void *)0)
5502f4aeb0Sopenharmony_ci#define EGL_NO_CONTEXT			((EGLContext)0)
5602f4aeb0Sopenharmony_ci#define EGL_NO_DISPLAY			((EGLDisplay)0)
5702f4aeb0Sopenharmony_ci#define EGL_NO_SURFACE			((EGLSurface)0)
5802f4aeb0Sopenharmony_ci
5902f4aeb0Sopenharmony_ci/* Out-of-band attribute value */
6002f4aeb0Sopenharmony_ci#define EGL_DONT_CARE			((EGLint)-1)
6102f4aeb0Sopenharmony_ci
6202f4aeb0Sopenharmony_ci/* Errors / GetError return values */
6302f4aeb0Sopenharmony_ci#define EGL_SUCCESS			0x3000
6402f4aeb0Sopenharmony_ci#define EGL_NOT_INITIALIZED		0x3001
6502f4aeb0Sopenharmony_ci#define EGL_BAD_ACCESS			0x3002
6602f4aeb0Sopenharmony_ci#define EGL_BAD_ALLOC			0x3003
6702f4aeb0Sopenharmony_ci#define EGL_BAD_ATTRIBUTE		0x3004
6802f4aeb0Sopenharmony_ci#define EGL_BAD_CONFIG			0x3005
6902f4aeb0Sopenharmony_ci#define EGL_BAD_CONTEXT			0x3006
7002f4aeb0Sopenharmony_ci#define EGL_BAD_CURRENT_SURFACE		0x3007
7102f4aeb0Sopenharmony_ci#define EGL_BAD_DISPLAY			0x3008
7202f4aeb0Sopenharmony_ci#define EGL_BAD_MATCH			0x3009
7302f4aeb0Sopenharmony_ci#define EGL_BAD_NATIVE_PIXMAP		0x300A
7402f4aeb0Sopenharmony_ci#define EGL_BAD_NATIVE_WINDOW		0x300B
7502f4aeb0Sopenharmony_ci#define EGL_BAD_PARAMETER		0x300C
7602f4aeb0Sopenharmony_ci#define EGL_BAD_SURFACE			0x300D
7702f4aeb0Sopenharmony_ci#define EGL_CONTEXT_LOST		0x300E	/* EGL 1.1 - IMG_power_management */
7802f4aeb0Sopenharmony_ci
7902f4aeb0Sopenharmony_ci/* Reserved 0x300F-0x301F for additional errors */
8002f4aeb0Sopenharmony_ci
8102f4aeb0Sopenharmony_ci/* Config attributes */
8202f4aeb0Sopenharmony_ci#define EGL_BUFFER_SIZE			0x3020
8302f4aeb0Sopenharmony_ci#define EGL_ALPHA_SIZE			0x3021
8402f4aeb0Sopenharmony_ci#define EGL_BLUE_SIZE			0x3022
8502f4aeb0Sopenharmony_ci#define EGL_GREEN_SIZE			0x3023
8602f4aeb0Sopenharmony_ci#define EGL_RED_SIZE			0x3024
8702f4aeb0Sopenharmony_ci#define EGL_DEPTH_SIZE			0x3025
8802f4aeb0Sopenharmony_ci#define EGL_STENCIL_SIZE		0x3026
8902f4aeb0Sopenharmony_ci#define EGL_CONFIG_CAVEAT		0x3027
9002f4aeb0Sopenharmony_ci#define EGL_CONFIG_ID			0x3028
9102f4aeb0Sopenharmony_ci#define EGL_LEVEL			0x3029
9202f4aeb0Sopenharmony_ci#define EGL_MAX_PBUFFER_HEIGHT		0x302A
9302f4aeb0Sopenharmony_ci#define EGL_MAX_PBUFFER_PIXELS		0x302B
9402f4aeb0Sopenharmony_ci#define EGL_MAX_PBUFFER_WIDTH		0x302C
9502f4aeb0Sopenharmony_ci#define EGL_NATIVE_RENDERABLE		0x302D
9602f4aeb0Sopenharmony_ci#define EGL_NATIVE_VISUAL_ID		0x302E
9702f4aeb0Sopenharmony_ci#define EGL_NATIVE_VISUAL_TYPE		0x302F
9802f4aeb0Sopenharmony_ci#define EGL_PRESERVED_RESOURCES		0x3030
9902f4aeb0Sopenharmony_ci#define EGL_SAMPLES			0x3031
10002f4aeb0Sopenharmony_ci#define EGL_SAMPLE_BUFFERS		0x3032
10102f4aeb0Sopenharmony_ci#define EGL_SURFACE_TYPE		0x3033
10202f4aeb0Sopenharmony_ci#define EGL_TRANSPARENT_TYPE		0x3034
10302f4aeb0Sopenharmony_ci#define EGL_TRANSPARENT_BLUE_VALUE	0x3035
10402f4aeb0Sopenharmony_ci#define EGL_TRANSPARENT_GREEN_VALUE	0x3036
10502f4aeb0Sopenharmony_ci#define EGL_TRANSPARENT_RED_VALUE	0x3037
10602f4aeb0Sopenharmony_ci#define EGL_NONE			0x3038	/* Attrib list terminator */
10702f4aeb0Sopenharmony_ci#define EGL_BIND_TO_TEXTURE_RGB		0x3039
10802f4aeb0Sopenharmony_ci#define EGL_BIND_TO_TEXTURE_RGBA	0x303A
10902f4aeb0Sopenharmony_ci#define EGL_MIN_SWAP_INTERVAL		0x303B
11002f4aeb0Sopenharmony_ci#define EGL_MAX_SWAP_INTERVAL		0x303C
11102f4aeb0Sopenharmony_ci#define EGL_LUMINANCE_SIZE		0x303D
11202f4aeb0Sopenharmony_ci#define EGL_ALPHA_MASK_SIZE		0x303E
11302f4aeb0Sopenharmony_ci#define EGL_COLOR_BUFFER_TYPE		0x303F
11402f4aeb0Sopenharmony_ci#define EGL_RENDERABLE_TYPE		0x3040
11502f4aeb0Sopenharmony_ci#define EGL_MATCH_NATIVE_PIXMAP		0x3041	/* Pseudo-attribute (not queryable) */
11602f4aeb0Sopenharmony_ci
11702f4aeb0Sopenharmony_ci/* Reserved 0x3041-0x304F for additional config attributes */
11802f4aeb0Sopenharmony_ci
11902f4aeb0Sopenharmony_ci/* Config attribute values */
12002f4aeb0Sopenharmony_ci#define EGL_SLOW_CONFIG			0x3050	/* EGL_CONFIG_CAVEAT value */
12102f4aeb0Sopenharmony_ci#define EGL_NON_CONFORMANT_CONFIG	0x3051	/* EGL_CONFIG_CAVEAT value */
12202f4aeb0Sopenharmony_ci#define EGL_TRANSPARENT_RGB		0x3052	/* EGL_TRANSPARENT_TYPE value */
12302f4aeb0Sopenharmony_ci#define EGL_RGB_BUFFER			0x308E	/* EGL_COLOR_BUFFER_TYPE value */
12402f4aeb0Sopenharmony_ci#define EGL_LUMINANCE_BUFFER		0x308F	/* EGL_COLOR_BUFFER_TYPE value */
12502f4aeb0Sopenharmony_ci
12602f4aeb0Sopenharmony_ci/* More config attribute values, for EGL_TEXTURE_FORMAT */
12702f4aeb0Sopenharmony_ci#define EGL_NO_TEXTURE			0x305C
12802f4aeb0Sopenharmony_ci#define EGL_TEXTURE_RGB			0x305D
12902f4aeb0Sopenharmony_ci#define EGL_TEXTURE_RGBA		0x305E
13002f4aeb0Sopenharmony_ci#define EGL_TEXTURE_2D			0x305F
13102f4aeb0Sopenharmony_ci
13202f4aeb0Sopenharmony_ci/* Config attribute mask bits */
13302f4aeb0Sopenharmony_ci#define EGL_PBUFFER_BIT			0x01	/* EGL_SURFACE_TYPE mask bits */
13402f4aeb0Sopenharmony_ci#define EGL_PIXMAP_BIT			0x02	/* EGL_SURFACE_TYPE mask bits */
13502f4aeb0Sopenharmony_ci#define EGL_WINDOW_BIT			0x04	/* EGL_SURFACE_TYPE mask bits */
13602f4aeb0Sopenharmony_ci#define EGL_OPENGL_ES_BIT		0x01	/* EGL_RENDERABLE_TYPE mask bits */
13702f4aeb0Sopenharmony_ci#define EGL_OPENVG_BIT			0x02	/* EGL_RENDERABLE_TYPE mask bits */
13802f4aeb0Sopenharmony_ci#define EGL_OPENGL_ES2_BIT		0x04	/* EGL_RENDERABLE_TYPE mask bits */
13902f4aeb0Sopenharmony_ci
14002f4aeb0Sopenharmony_ci/* QueryString targets */
14102f4aeb0Sopenharmony_ci#define EGL_VENDOR			0x3053
14202f4aeb0Sopenharmony_ci#define EGL_VERSION			0x3054
14302f4aeb0Sopenharmony_ci#define EGL_EXTENSIONS			0x3055
14402f4aeb0Sopenharmony_ci#define EGL_CLIENT_APIS			0x308D
14502f4aeb0Sopenharmony_ci
14602f4aeb0Sopenharmony_ci/* QuerySurface / CreatePbufferSurface targets */
14702f4aeb0Sopenharmony_ci#define EGL_HEIGHT			0x3056
14802f4aeb0Sopenharmony_ci#define EGL_WIDTH			0x3057
14902f4aeb0Sopenharmony_ci#define EGL_LARGEST_PBUFFER		0x3058
15002f4aeb0Sopenharmony_ci#define EGL_TEXTURE_FORMAT		0x3080
15102f4aeb0Sopenharmony_ci#define EGL_TEXTURE_TARGET		0x3081
15202f4aeb0Sopenharmony_ci#define EGL_MIPMAP_TEXTURE		0x3082
15302f4aeb0Sopenharmony_ci#define EGL_MIPMAP_LEVEL		0x3083
15402f4aeb0Sopenharmony_ci#define EGL_RENDER_BUFFER		0x3086
15502f4aeb0Sopenharmony_ci#define EGL_COLORSPACE			0x3087
15602f4aeb0Sopenharmony_ci#define EGL_ALPHA_FORMAT		0x3088
15702f4aeb0Sopenharmony_ci#define EGL_HORIZONTAL_RESOLUTION	0x3090
15802f4aeb0Sopenharmony_ci#define EGL_VERTICAL_RESOLUTION		0x3091
15902f4aeb0Sopenharmony_ci#define EGL_PIXEL_ASPECT_RATIO		0x3092
16002f4aeb0Sopenharmony_ci#define EGL_SWAP_BEHAVIOR		0x3093
16102f4aeb0Sopenharmony_ci
16202f4aeb0Sopenharmony_ci/* EGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targets */
16302f4aeb0Sopenharmony_ci#define EGL_BACK_BUFFER			0x3084
16402f4aeb0Sopenharmony_ci#define EGL_SINGLE_BUFFER		0x3085
16502f4aeb0Sopenharmony_ci
16602f4aeb0Sopenharmony_ci/* OpenVG color spaces */
16702f4aeb0Sopenharmony_ci#define EGL_COLORSPACE_sRGB		0x3089	/* EGL_COLORSPACE value */
16802f4aeb0Sopenharmony_ci#define EGL_COLORSPACE_LINEAR		0x308A	/* EGL_COLORSPACE value */
16902f4aeb0Sopenharmony_ci
17002f4aeb0Sopenharmony_ci/* OpenVG alpha formats */
17102f4aeb0Sopenharmony_ci#define EGL_ALPHA_FORMAT_NONPRE		0x308B	/* EGL_ALPHA_FORMAT value */
17202f4aeb0Sopenharmony_ci#define EGL_ALPHA_FORMAT_PRE		0x308C	/* EGL_ALPHA_FORMAT value */
17302f4aeb0Sopenharmony_ci
17402f4aeb0Sopenharmony_ci/* Constant scale factor by which fractional display resolutions &
17502f4aeb0Sopenharmony_ci * aspect ratio are scaled when queried as integer values.
17602f4aeb0Sopenharmony_ci */
17702f4aeb0Sopenharmony_ci#define EGL_DISPLAY_SCALING		10000
17802f4aeb0Sopenharmony_ci
17902f4aeb0Sopenharmony_ci/* Unknown display resolution/aspect ratio */
18002f4aeb0Sopenharmony_ci#define EGL_UNKNOWN			((EGLint)-1)
18102f4aeb0Sopenharmony_ci
18202f4aeb0Sopenharmony_ci/* Back buffer swap behaviors */
18302f4aeb0Sopenharmony_ci#define EGL_BUFFER_PRESERVED		0x3094	/* EGL_SWAP_BEHAVIOR value */
18402f4aeb0Sopenharmony_ci#define EGL_BUFFER_DESTROYED		0x3095	/* EGL_SWAP_BEHAVIOR value */
18502f4aeb0Sopenharmony_ci
18602f4aeb0Sopenharmony_ci/* CreatePbufferFromClientBuffer buffer types */
18702f4aeb0Sopenharmony_ci#define EGL_OPENVG_IMAGE		0x3096
18802f4aeb0Sopenharmony_ci
18902f4aeb0Sopenharmony_ci/* QueryContext targets */
19002f4aeb0Sopenharmony_ci#define EGL_CONTEXT_CLIENT_TYPE		0x3097
19102f4aeb0Sopenharmony_ci
19202f4aeb0Sopenharmony_ci/* CreateContext attributes */
19302f4aeb0Sopenharmony_ci#define EGL_CONTEXT_CLIENT_VERSION	0x3098
19402f4aeb0Sopenharmony_ci
19502f4aeb0Sopenharmony_ci/* BindAPI/QueryAPI targets */
19602f4aeb0Sopenharmony_ci#define EGL_OPENGL_ES_API		0x30A0
19702f4aeb0Sopenharmony_ci#define EGL_OPENVG_API			0x30A1
19802f4aeb0Sopenharmony_ci
19902f4aeb0Sopenharmony_ci/* GetCurrentSurface targets */
20002f4aeb0Sopenharmony_ci#define EGL_DRAW			0x3059
20102f4aeb0Sopenharmony_ci#define EGL_READ			0x305A
20202f4aeb0Sopenharmony_ci
20302f4aeb0Sopenharmony_ci/* WaitNative engines */
20402f4aeb0Sopenharmony_ci#define EGL_CORE_NATIVE_ENGINE		0x305B
20502f4aeb0Sopenharmony_ci
20602f4aeb0Sopenharmony_ci/* EGL extensions must request enum blocks from the OpenGL ARB
20702f4aeb0Sopenharmony_ci * Secretary, who maintains the EGL enumerant registry.
20802f4aeb0Sopenharmony_ci */
20902f4aeb0Sopenharmony_ci
21002f4aeb0Sopenharmony_ci
21102f4aeb0Sopenharmony_ci
21202f4aeb0Sopenharmony_ci/* EGL Functions */
21302f4aeb0Sopenharmony_ci
21402f4aeb0Sopenharmony_ciEGLAPI EGLint APIENTRY eglGetError();
21502f4aeb0Sopenharmony_ci
21602f4aeb0Sopenharmony_ciEGLAPI EGLDisplay APIENTRY eglGetDisplay(const char *display_id);
21702f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor);
21802f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglTerminate(EGLDisplay dpy);
21902f4aeb0Sopenharmony_ci
22002f4aeb0Sopenharmony_ciEGLAPI const char * APIENTRY eglQueryString(EGLDisplay dpy, EGLint name);
22102f4aeb0Sopenharmony_ci
22202f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglGetConfigs(EGLDisplay dpy, EGLConfig *configs,
22302f4aeb0Sopenharmony_ci			 EGLint config_size, EGLint *num_config);
22402f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list,
22502f4aeb0Sopenharmony_ci			   EGLConfig *configs, EGLint config_size,
22602f4aeb0Sopenharmony_ci			   EGLint *num_config);
22702f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config,
22802f4aeb0Sopenharmony_ci			      EGLint attribute, EGLint *value);
22902f4aeb0Sopenharmony_ci
23002f4aeb0Sopenharmony_ciEGLAPI EGLSurface APIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config,
23102f4aeb0Sopenharmony_ci				  NativeWindowType win,
23202f4aeb0Sopenharmony_ci				  const EGLint *attrib_list);
23302f4aeb0Sopenharmony_ciEGLAPI EGLSurface APIENTRY eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config,
23402f4aeb0Sopenharmony_ci				   const EGLint *attrib_list);
23502f4aeb0Sopenharmony_ciEGLAPI EGLSurface APIENTRY eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config,
23602f4aeb0Sopenharmony_ci				  NativePixmapType pixmap,
23702f4aeb0Sopenharmony_ci				  const EGLint *attrib_list);
23802f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surface);
23902f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglQuerySurface(EGLDisplay dpy, EGLSurface surface,
24002f4aeb0Sopenharmony_ci			   EGLint attribute, EGLint *value);
24102f4aeb0Sopenharmony_ci
24202f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglBindAPI(EGLenum api);
24302f4aeb0Sopenharmony_ciEGLAPI EGLenum APIENTRY eglQueryAPI(void);
24402f4aeb0Sopenharmony_ci
24502f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglWaitClient(void);
24602f4aeb0Sopenharmony_ci
24702f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglReleaseThread(void);
24802f4aeb0Sopenharmony_ci
24902f4aeb0Sopenharmony_ciEGLAPI EGLSurface APIENTRY eglCreatePbufferFromClientBuffer(
25002f4aeb0Sopenharmony_ci	      EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer,
25102f4aeb0Sopenharmony_ci	      EGLConfig config, const EGLint *attrib_list);
25202f4aeb0Sopenharmony_ci
25302f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface,
25402f4aeb0Sopenharmony_ci			    EGLint attribute, EGLint value);
25502f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
25602f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
25702f4aeb0Sopenharmony_ci
25802f4aeb0Sopenharmony_ci
25902f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglSwapInterval(EGLDisplay dpy, EGLint interval);
26002f4aeb0Sopenharmony_ci
26102f4aeb0Sopenharmony_ci
26202f4aeb0Sopenharmony_ciEGLAPI EGLContext APIENTRY eglCreateContext(EGLDisplay dpy, EGLConfig config,
26302f4aeb0Sopenharmony_ci			    EGLContext share_context,
26402f4aeb0Sopenharmony_ci			    const EGLint *attrib_list);
26502f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglDestroyContext(EGLDisplay dpy, EGLContext ctx);
26602f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglMakeCurrent(EGLDisplay dpy, EGLSurface draw,
26702f4aeb0Sopenharmony_ci			  EGLSurface read, EGLContext ctx);
26802f4aeb0Sopenharmony_ci
26902f4aeb0Sopenharmony_ciEGLAPI EGLContext APIENTRY eglGetCurrentContext(void);
27002f4aeb0Sopenharmony_ciEGLAPI EGLSurface APIENTRY eglGetCurrentSurface(EGLint readdraw);
27102f4aeb0Sopenharmony_ciEGLAPI EGLDisplay APIENTRY eglGetCurrentDisplay(void);
27202f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglQueryContext(EGLDisplay dpy, EGLContext ctx,
27302f4aeb0Sopenharmony_ci			   EGLint attribute, EGLint *value);
27402f4aeb0Sopenharmony_ci
27502f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglWaitGL(void);
27602f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglWaitNative(EGLint engine);
27702f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surface);
27802f4aeb0Sopenharmony_ciEGLAPI EGLBoolean APIENTRY eglCopyBuffers(EGLDisplay dpy, EGLSurface surface,
27902f4aeb0Sopenharmony_ci			  NativePixmapType target);
28002f4aeb0Sopenharmony_ci
28102f4aeb0Sopenharmony_ciEGLAPI void (* APIENTRY eglGetProcAddress(const char *procname))();
28202f4aeb0Sopenharmony_ci
28302f4aeb0Sopenharmony_ci#endif /* __egl_h_ */
284