1 /* $Change: 1028567 $ */
2 /* -*- mode: c; tab-width: 8; -*- */
3 /* vi: set sw=4 ts=8: */
4 /* Reference version of egl.h for EGL 1.4.
5 * $Revision: #1 $ on $Date: 2011/08/12 $
9 ** Copyright (c) 2007-2009 The Khronos Group Inc.
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:
19 ** The above copyright notice and this permission notice shall be included
20 ** in all copies or substantial portions of the Materials.
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.
33 * @brief This is the header file for the EGL.
35 * This header file contains the declarations of the EGL.
41 /* All platform-dependent types and macro boilerplate (such as EGLAPI
42 * and EGLAPIENTRY) should go in eglplatform.h.
44 #include "eglplatform.h"
51 * @addtogroup opengles
57 /* EGLint is defined in eglplatform.h */
59 /*! \var typedef unsigned int EGLBoolean
60 \brief A type definition for EGLBoolean.
62 typedef unsigned int EGLBoolean;
64 /*! \var typedef unsigned int EGLenum
65 \brief A type definition for EGLenum.
67 typedef unsigned int EGLenum;
69 /*! \var typedef void *EGLConfig
70 \brief A type definition for EGLConfig.
72 typedef void* EGLConfig;
74 /*! \var typedef void *EGLContext
75 \brief A type definition for EGLContext.
77 typedef void* EGLContext;
79 /*! \var typedef void *EGLDisplay
80 \brief A type definition for EGLDisplay.
82 typedef void* EGLDisplay;
84 /*! \var typedef void *EGLSurface
85 \brief A type definition for EGLSurface.
87 typedef void* EGLSurface;
89 /*! \var typedef void *EGLClientBuffer
90 \brief A type definition for EGLClientBuffer.
92 typedef void* EGLClientBuffer;
95 #define EGL_VERSION_1_0 1
96 #define EGL_VERSION_1_1 1
97 #define EGL_VERSION_1_2 1
98 #define EGL_VERSION_1_3 1
99 #define EGL_VERSION_1_4 1
101 /* EGL Enumerants. Bitmasks and other exceptional cases aside, most
102 * enums are assigned unique values starting at 0x3000.
109 /* Out-of-band handle values */
110 #define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType) 0)
111 #define EGL_NO_CONTEXT ((EGLContext) 0)
112 #define EGL_NO_DISPLAY ((EGLDisplay) 0)
113 #define EGL_NO_SURFACE ((EGLSurface) 0)
115 /* Out-of-band attribute value */
116 #define EGL_DONT_CARE ((EGLint) - 1)
118 /* Errors / GetError return values */
119 #define EGL_SUCCESS 0x3000
120 #define EGL_NOT_INITIALIZED 0x3001
121 #define EGL_BAD_ACCESS 0x3002
122 #define EGL_BAD_ALLOC 0x3003
123 #define EGL_BAD_ATTRIBUTE 0x3004
124 #define EGL_BAD_CONFIG 0x3005
125 #define EGL_BAD_CONTEXT 0x3006
126 #define EGL_BAD_CURRENT_SURFACE 0x3007
127 #define EGL_BAD_DISPLAY 0x3008
128 #define EGL_BAD_MATCH 0x3009
129 #define EGL_BAD_NATIVE_PIXMAP 0x300A
130 #define EGL_BAD_NATIVE_WINDOW 0x300B
131 #define EGL_BAD_PARAMETER 0x300C
132 #define EGL_BAD_SURFACE 0x300D
133 #define EGL_CONTEXT_LOST 0x300E /* EGL 1.1 - IMG_power_management */
135 /* Reserved 0x300F-0x301F for additional errors */
137 /* Config attributes */
138 #define EGL_BUFFER_SIZE 0x3020
139 #define EGL_ALPHA_SIZE 0x3021
140 #define EGL_BLUE_SIZE 0x3022
141 #define EGL_GREEN_SIZE 0x3023
142 #define EGL_RED_SIZE 0x3024
143 #define EGL_DEPTH_SIZE 0x3025
144 #define EGL_STENCIL_SIZE 0x3026
145 #define EGL_CONFIG_CAVEAT 0x3027
146 #define EGL_CONFIG_ID 0x3028
147 #define EGL_LEVEL 0x3029
148 #define EGL_MAX_PBUFFER_HEIGHT 0x302A
149 #define EGL_MAX_PBUFFER_PIXELS 0x302B
150 #define EGL_MAX_PBUFFER_WIDTH 0x302C
151 #define EGL_NATIVE_RENDERABLE 0x302D
152 #define EGL_NATIVE_VISUAL_ID 0x302E
153 #define EGL_NATIVE_VISUAL_TYPE 0x302F
154 #define EGL_PRESERVED_RESOURCES 0x3030
155 #define EGL_SAMPLES 0x3031
156 #define EGL_SAMPLE_BUFFERS 0x3032
157 #define EGL_SURFACE_TYPE 0x3033
158 #define EGL_TRANSPARENT_TYPE 0x3034
159 #define EGL_TRANSPARENT_BLUE_VALUE 0x3035
160 #define EGL_TRANSPARENT_GREEN_VALUE 0x3036
161 #define EGL_TRANSPARENT_RED_VALUE 0x3037
162 #define EGL_NONE 0x3038 /* Attrib list terminator */
163 #define EGL_BIND_TO_TEXTURE_RGB 0x3039
164 #define EGL_BIND_TO_TEXTURE_RGBA 0x303A
165 #define EGL_MIN_SWAP_INTERVAL 0x303B
166 #define EGL_MAX_SWAP_INTERVAL 0x303C
167 #define EGL_LUMINANCE_SIZE 0x303D
168 #define EGL_ALPHA_MASK_SIZE 0x303E
169 #define EGL_COLOR_BUFFER_TYPE 0x303F
170 #define EGL_RENDERABLE_TYPE 0x3040
171 #define EGL_MATCH_NATIVE_PIXMAP 0x3041 /* Pseudo-attribute (not queryable) */
172 #define EGL_CONFORMANT 0x3042
174 /* Reserved 0x3041-0x304F for additional config attributes */
176 /* Config attribute values */
177 #define EGL_SLOW_CONFIG 0x3050 /* EGL_CONFIG_CAVEAT value */
178 #define EGL_NON_CONFORMANT_CONFIG 0x3051 /* EGL_CONFIG_CAVEAT value */
179 #define EGL_TRANSPARENT_RGB 0x3052 /* EGL_TRANSPARENT_TYPE value */
180 #define EGL_RGB_BUFFER 0x308E /* EGL_COLOR_BUFFER_TYPE value */
181 #define EGL_LUMINANCE_BUFFER 0x308F /* EGL_COLOR_BUFFER_TYPE value */
183 /* More config attribute values, for EGL_TEXTURE_FORMAT */
184 #define EGL_NO_TEXTURE 0x305C
185 #define EGL_TEXTURE_RGB 0x305D
186 #define EGL_TEXTURE_RGBA 0x305E
187 #define EGL_TEXTURE_2D 0x305F
189 /* Config attribute mask bits */
190 #define EGL_PBUFFER_BIT 0x0001 /* EGL_SURFACE_TYPE mask bits */
191 #define EGL_PIXMAP_BIT 0x0002 /* EGL_SURFACE_TYPE mask bits */
192 #define EGL_WINDOW_BIT 0x0004 /* EGL_SURFACE_TYPE mask bits */
193 #define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020 /* EGL_SURFACE_TYPE mask bits */
194 #define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040 /* EGL_SURFACE_TYPE mask bits */
195 #define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200 /* EGL_SURFACE_TYPE mask bits */
196 #define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400 /* EGL_SURFACE_TYPE mask bits */
198 #define EGL_OPENGL_ES_BIT 0x0001 /* EGL_RENDERABLE_TYPE mask bits */
199 #define EGL_OPENVG_BIT 0x0002 /* EGL_RENDERABLE_TYPE mask bits */
200 #define EGL_OPENGL_ES2_BIT 0x0004 /* EGL_RENDERABLE_TYPE mask bits */
201 #define EGL_OPENGL_BIT 0x0008 /* EGL_RENDERABLE_TYPE mask bits */
203 /* QueryString targets */
204 #define EGL_VENDOR 0x3053
205 #define EGL_VERSION 0x3054
206 #define EGL_EXTENSIONS 0x3055
207 #define EGL_CLIENT_APIS 0x308D
209 /* QuerySurface / SurfaceAttrib / CreatePbufferSurface targets */
210 #define EGL_HEIGHT 0x3056
211 #define EGL_WIDTH 0x3057
212 #define EGL_LARGEST_PBUFFER 0x3058
213 #define EGL_TEXTURE_FORMAT 0x3080
214 #define EGL_TEXTURE_TARGET 0x3081
215 #define EGL_MIPMAP_TEXTURE 0x3082
216 #define EGL_MIPMAP_LEVEL 0x3083
217 #define EGL_RENDER_BUFFER 0x3086
218 #define EGL_VG_COLORSPACE 0x3087
219 #define EGL_VG_ALPHA_FORMAT 0x3088
220 #define EGL_HORIZONTAL_RESOLUTION 0x3090
221 #define EGL_VERTICAL_RESOLUTION 0x3091
222 #define EGL_PIXEL_ASPECT_RATIO 0x3092
223 #define EGL_SWAP_BEHAVIOR 0x3093
224 #define EGL_MULTISAMPLE_RESOLVE 0x3099
226 /* EGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targets */
227 #define EGL_BACK_BUFFER 0x3084
228 #define EGL_SINGLE_BUFFER 0x3085
230 /* OpenVG color spaces */
231 #define EGL_VG_COLORSPACE_sRGB 0x3089 /* EGL_VG_COLORSPACE value */
232 #define EGL_VG_COLORSPACE_LINEAR 0x308A /* EGL_VG_COLORSPACE value */
234 /* OpenVG alpha formats */
235 #define EGL_VG_ALPHA_FORMAT_NONPRE 0x308B /* EGL_ALPHA_FORMAT value */
236 #define EGL_VG_ALPHA_FORMAT_PRE 0x308C /* EGL_ALPHA_FORMAT value */
238 /* Constant scale factor by which fractional display resolutions &
239 * aspect ratio are scaled when queried as integer values.
241 #define EGL_DISPLAY_SCALING 10000
243 /* Unknown display resolution/aspect ratio */
244 #define EGL_UNKNOWN ((EGLint) - 1)
246 /* Back buffer swap behaviors */
247 #define EGL_BUFFER_PRESERVED 0x3094 /* EGL_SWAP_BEHAVIOR value */
248 #define EGL_BUFFER_DESTROYED 0x3095 /* EGL_SWAP_BEHAVIOR value */
250 /* CreatePbufferFromClientBuffer buffer types */
251 #define EGL_OPENVG_IMAGE 0x3096
253 /* QueryContext targets */
254 #define EGL_CONTEXT_CLIENT_TYPE 0x3097
256 /* CreateContext attributes */
257 #define EGL_CONTEXT_CLIENT_VERSION 0x3098
259 /* Multisample resolution behaviors */
260 #define EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A /* EGL_MULTISAMPLE_RESOLVE value */
261 #define EGL_MULTISAMPLE_RESOLVE_BOX 0x309B /* EGL_MULTISAMPLE_RESOLVE value */
263 /* BindAPI/QueryAPI targets */
264 #define EGL_OPENGL_ES_API 0x30A0
265 #define EGL_OPENVG_API 0x30A1
266 #define EGL_OPENGL_API 0x30A2
268 /* GetCurrentSurface targets */
269 #define EGL_DRAW 0x3059
270 #define EGL_READ 0x305A
272 /* WaitNative engines */
273 #define EGL_CORE_NATIVE_ENGINE 0x305B
275 /* EGL 1.2 tokens renamed for consistency in EGL 1.3 */
276 #define EGL_COLORSPACE EGL_VG_COLORSPACE
277 #define EGL_ALPHA_FORMAT EGL_VG_ALPHA_FORMAT
278 #define EGL_COLORSPACE_sRGB EGL_VG_COLORSPACE_sRGB
279 #define EGL_COLORSPACE_LINEAR EGL_VG_COLORSPACE_LINEAR
280 #define EGL_ALPHA_FORMAT_NONPRE EGL_VG_ALPHA_FORMAT_NONPRE
281 #define EGL_ALPHA_FORMAT_PRE EGL_VG_ALPHA_FORMAT_PRE
283 /* EGL extensions must request enum blocks from the Khronos
284 * API Registrar, who maintains the enumerant registry. Submit
285 * a bug in Khronos Bugzilla against task "Registry".
289 ** FIXME: The EGL_SEQUENCE_ITEM_SYMB token is temporary until an
290 ** official name and value are assigned.
292 #define EGL_SEQUENCE_ITEM_SYMB 0x6000
297 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
300 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
302 EGLint eglGetError(void);
305 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
308 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
310 EGLDisplay eglGetDisplay(EGLNativeDisplayType display_id);
313 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
316 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
318 EGLBoolean eglInitialize(EGLDisplay dpy, EGLint* major, EGLint* minor);
321 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
324 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
326 EGLBoolean eglTerminate(EGLDisplay dpy);
329 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
332 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
334 const char* eglQueryString(EGLDisplay dpy, EGLint name);
337 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
340 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
342 EGLBoolean eglGetConfigs(EGLDisplay dpy, EGLConfig* configs, EGLint config_size, EGLint* num_config);
345 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
348 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
350 EGLBoolean eglChooseConfig(EGLDisplay dpy, const EGLint* attrib_list, EGLConfig* configs, EGLint config_size, EGLint* num_config);
353 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
356 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
358 EGLBoolean eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint* value);
361 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
364 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
366 EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint* attrib_list);
369 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
372 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
374 EGLSurface eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const EGLint* attrib_list);
377 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
380 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
382 EGLSurface eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint* attrib_list);
385 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
388 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
390 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface);
393 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
396 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
398 EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint* value);
401 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
404 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
406 EGLBoolean eglBindAPI(EGLenum api);
409 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
412 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
414 EGLenum eglQueryAPI(void);
417 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
420 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
422 EGLBoolean eglWaitClient(void);
425 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
428 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
430 EGLBoolean eglReleaseThread(void);
433 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
436 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
438 EGLSurface eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint* attrib_list);
441 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
444 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
446 EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
449 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
452 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
454 EGLBoolean eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
457 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
460 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
462 EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
465 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
468 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
470 EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval);
473 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
476 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
478 EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint* attrib_list);
481 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
484 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
486 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx);
489 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
492 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
494 EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
497 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
500 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
502 EGLContext eglGetCurrentContext(void);
505 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
508 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
510 EGLSurface eglGetCurrentSurface(EGLint readdraw);
513 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
516 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
518 EGLDisplay eglGetCurrentDisplay(void);
521 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
524 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
526 EGLBoolean eglQueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint* value);
529 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
532 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
534 EGLBoolean eglWaitGL(void);
537 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
540 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
542 EGLBoolean eglWaitNative(EGLint engine);
545 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
548 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
550 EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface);
553 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
556 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
558 EGLBoolean eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
560 /* This is a generic function pointer type, whose name indicates it must
561 * be cast to the proper type *and calling convention* before use.
563 /*! \var typedef void (*__eglMustCastToProperFunctionPointerType)(void)
564 \brief A type definition for __eglMustCastToProperFunctionPointerType.
566 typedef void (*__eglMustCastToProperFunctionPointerType)(void);
568 /* Now, define eglGetProcAddress using the generic function ptr. type */
570 * @page EGLeglGetProcAddress Compatibility for eglGetProcAddress.
571 * @section CompClassNameMethodNamePageIssueSection Issues
572 * Implementation of this method in API versions prior to 1.2 has the following issue: @n
574 * -# This method does not work as expected in API versions prior to 1.2.
576 * @section CompClassNameMethodNamePageSolutionSection Resolutions
577 * The issue mentioned above is resolved in API version 1.2, and it is recommended to use API version 1.2 or above. @n
580 * Returns function pointer of a GL or an EGL extension function.
581 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
584 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
587 EGLAPI __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char* procname);
590 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
593 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
595 EGLBoolean eglUpdateBufferOSP(EGLDisplay dpy, EGLSurface surface);
605 #endif /* __egl_h_ */