Merge "Fix Ime Rotation" into tizen_2.1
[platform/framework/native/uifw.git] / inc / egl.h
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 $
6  */
7
8 /*
9 ** Copyright (c) 2007-2009 The Khronos Group Inc.
10 **
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:
18 **
19 ** The above copyright notice and this permission notice shall be included
20 ** in all copies or substantial portions of the Materials.
21 **
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.
29 */
30
31 /**
32  * @file                egl.h
33  * @brief               This is the header file for the EGL.
34  *
35  * This header file contains the declarations of the EGL.
36  */
37
38 #ifndef __egl_h_
39 #define __egl_h_
40
41 /* All platform-dependent types and macro boilerplate (such as EGLAPI
42  * and EGLAPIENTRY) should go in eglplatform.h.
43  */
44 #include "eglplatform.h"
45
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49
50 /**
51  * @addtogroup opengles
52  *
53  * @{
54  */
55
56 /* EGL Types */
57 /* EGLint is defined in eglplatform.h */
58
59 /*! \var typedef unsigned int EGLBoolean
60     \brief A type definition for EGLBoolean.
61 */
62 typedef unsigned int EGLBoolean;
63
64 /*! \var typedef unsigned int EGLenum
65     \brief A type definition for EGLenum.
66 */
67 typedef unsigned int EGLenum;
68
69 /*! \var typedef void *EGLConfig
70     \brief A type definition for EGLConfig.
71 */
72 typedef void* EGLConfig;
73
74 /*! \var typedef void *EGLContext
75     \brief A type definition for EGLContext.
76 */
77 typedef void* EGLContext;
78
79 /*! \var typedef void *EGLDisplay
80     \brief A type definition for EGLDisplay.
81 */
82 typedef void* EGLDisplay;
83
84 /*! \var typedef void *EGLSurface
85     \brief A type definition for EGLSurface.
86 */
87 typedef void* EGLSurface;
88
89 /*! \var typedef void *EGLClientBuffer
90     \brief A type definition for EGLClientBuffer.
91 */
92 typedef void* EGLClientBuffer;
93
94 /* EGL Versioning */
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
100
101 /* EGL Enumerants. Bitmasks and other exceptional cases aside, most
102  * enums are assigned unique values starting at 0x3000.
103  */
104
105 /* EGL aliases */
106 #define EGL_FALSE           0
107 #define EGL_TRUE            1
108
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)
114
115 /* Out-of-band attribute value */
116 #define EGL_DONT_CARE           ((EGLint) - 1)
117
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 */
134
135 /* Reserved 0x300F-0x301F for additional errors */
136
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
173
174 /* Reserved 0x3041-0x304F for additional config attributes */
175
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 */
182
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
188
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 */
197
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 */
202
203 /* QueryString targets */
204 #define EGL_VENDOR          0x3053
205 #define EGL_VERSION         0x3054
206 #define EGL_EXTENSIONS          0x3055
207 #define EGL_CLIENT_APIS         0x308D
208
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
225
226 /* EGL_RENDER_BUFFER values / BindTexImage / ReleaseTexImage buffer targets */
227 #define EGL_BACK_BUFFER         0x3084
228 #define EGL_SINGLE_BUFFER       0x3085
229
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 */
233
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 */
237
238 /* Constant scale factor by which fractional display resolutions &
239  * aspect ratio are scaled when queried as integer values.
240  */
241 #define EGL_DISPLAY_SCALING     10000
242
243 /* Unknown display resolution/aspect ratio */
244 #define EGL_UNKNOWN         ((EGLint) - 1)
245
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 */
249
250 /* CreatePbufferFromClientBuffer buffer types */
251 #define EGL_OPENVG_IMAGE        0x3096
252
253 /* QueryContext targets */
254 #define EGL_CONTEXT_CLIENT_TYPE     0x3097
255
256 /* CreateContext attributes */
257 #define EGL_CONTEXT_CLIENT_VERSION  0x3098
258
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 */
262
263 /* BindAPI/QueryAPI targets */
264 #define EGL_OPENGL_ES_API       0x30A0
265 #define EGL_OPENVG_API          0x30A1
266 #define EGL_OPENGL_API          0x30A2
267
268 /* GetCurrentSurface targets */
269 #define EGL_DRAW            0x3059
270 #define EGL_READ            0x305A
271
272 /* WaitNative engines */
273 #define EGL_CORE_NATIVE_ENGINE      0x305B
274
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
282
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".
286  */
287
288 /*
289 ** FIXME: The EGL_SEQUENCE_ITEM_SYMB token is temporary until an
290 ** official name and value are assigned.
291 */
292 #define EGL_SEQUENCE_ITEM_SYMB      0x6000
293
294 /* EGL Functions */
295
296 /**
297  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
298  *
299  * @since       2.0
300  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
301  */
302 EGLint eglGetError(void);
303
304 /**
305  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
306  *
307  * @since       2.0
308  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
309  */
310 EGLDisplay eglGetDisplay(EGLNativeDisplayType display_id);
311
312 /**
313  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
314  *
315  * @since       2.0
316  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
317  */
318 EGLBoolean eglInitialize(EGLDisplay dpy, EGLint* major, EGLint* minor);
319
320 /**
321  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
322  *
323  * @since       2.0
324  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
325  */
326 EGLBoolean eglTerminate(EGLDisplay dpy);
327
328 /**
329  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
330  *
331  * @since       2.0
332  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
333  */
334 const char* eglQueryString(EGLDisplay dpy, EGLint name);
335
336 /**
337  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
338  *
339  * @since       2.0
340  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
341  */
342 EGLBoolean eglGetConfigs(EGLDisplay dpy, EGLConfig* configs, EGLint config_size, EGLint* num_config);
343
344 /**
345  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
346  *
347  * @since       2.0
348  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
349  */
350 EGLBoolean eglChooseConfig(EGLDisplay dpy, const EGLint* attrib_list, EGLConfig* configs, EGLint config_size, EGLint* num_config);
351
352 /**
353  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
354  *
355  * @since       2.0
356  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
357  */
358 EGLBoolean eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint* value);
359
360 /**
361  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
362  *
363  * @since       2.0
364  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
365  */
366 EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint* attrib_list);
367
368 /**
369  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
370  *
371  * @since       2.0
372  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
373  */
374 EGLSurface eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const EGLint* attrib_list);
375
376 /**
377  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
378  *
379  * @since       2.0
380  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
381  */
382 EGLSurface eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint* attrib_list);
383
384 /**
385  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
386  *
387  * @since       2.0
388  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
389  */
390 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface);
391
392 /**
393  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
394  *
395  * @since       2.0
396  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
397  */
398 EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint* value);
399
400 /**
401  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
402  *
403  * @since       2.0
404  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
405  */
406 EGLBoolean eglBindAPI(EGLenum api);
407
408 /**
409  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
410  *
411  * @since       2.0
412  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
413  */
414 EGLenum eglQueryAPI(void);
415
416 /**
417  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
418  *
419  * @since       2.0
420  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
421  */
422 EGLBoolean eglWaitClient(void);
423
424 /**
425  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
426  *
427  * @since       2.0
428  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
429  */
430 EGLBoolean eglReleaseThread(void);
431
432 /**
433  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
434  *
435  * @since       2.0
436  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
437  */
438 EGLSurface eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint* attrib_list);
439
440 /**
441  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
442  *
443  * @since       2.0
444  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
445  */
446 EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
447
448 /**
449  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
450  *
451  * @since       2.0
452  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
453  */
454 EGLBoolean eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
455
456 /**
457  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
458  *
459  * @since       2.0
460  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
461  */
462 EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
463
464 /**
465  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
466  *
467  * @since       2.0
468  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
469  */
470 EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval);
471
472 /**
473  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
474  *
475  * @since       2.0
476  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
477  */
478 EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint* attrib_list);
479
480 /**
481  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
482  *
483  * @since       2.0
484  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
485  */
486 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx);
487
488 /**
489  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
490  *
491  * @since       2.0
492  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
493  */
494 EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
495
496 /**
497  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
498  *
499  * @since       2.0
500  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
501  */
502 EGLContext eglGetCurrentContext(void);
503
504 /**
505  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
506  *
507  * @since       2.0
508  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
509  */
510 EGLSurface eglGetCurrentSurface(EGLint readdraw);
511
512 /**
513  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
514  *
515  * @since       2.0
516  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
517  */
518 EGLDisplay eglGetCurrentDisplay(void);
519
520 /**
521  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
522  *
523  * @since       2.0
524  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
525  */
526 EGLBoolean eglQueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint* value);
527
528 /**
529  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
530  *
531  * @since       2.0
532  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
533  */
534 EGLBoolean eglWaitGL(void);
535
536 /**
537  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
538  *
539  * @since       2.0
540  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
541  */
542 EGLBoolean eglWaitNative(EGLint engine);
543
544 /**
545  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
546  *
547  * @since       2.0
548  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
549  */
550 EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface);
551
552 /**
553  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
554  *
555  * @since       2.0
556  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
557  */
558 EGLBoolean eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
559
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.
562  */
563 /*! \var typedef void (*__eglMustCastToProperFunctionPointerType)(void)
564     \brief A type definition for __eglMustCastToProperFunctionPointerType.
565 */
566 typedef void (*__eglMustCastToProperFunctionPointerType)(void);
567
568 /* Now, define eglGetProcAddress using the generic function ptr. type */
569 /**
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
573  *
574  * -# This method does not work as expected in API versions prior to 1.2.
575  *
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
578 */
579 /**
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
582  *
583  * @since                                       2.0
584  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
585  *
586 */
587 EGLAPI __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char* procname);
588
589 /**
590  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
591  *
592  * @since       2.0
593  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
594  */
595 EGLBoolean eglUpdateBufferOSP(EGLDisplay dpy, EGLSurface surface);
596
597 /**
598  * @}
599  */
600
601 #ifdef __cplusplus
602 }
603 #endif
604
605 #endif /* __egl_h_ */