show OverlayRegion when FormActivated
[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  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
302  */
303 EGLint eglGetError(void);
304
305 /**
306  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
307  *
308  * @since       2.0
309  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
310  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
311  */
312 EGLDisplay eglGetDisplay(EGLNativeDisplayType display_id);
313
314 /**
315  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
316  *
317  * @since       2.0
318  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
319  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
320  */
321 EGLBoolean eglInitialize(EGLDisplay dpy, EGLint* major, EGLint* minor);
322
323 /**
324  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
325  *
326  * @since       2.0
327  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
328  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
329  */
330 EGLBoolean eglTerminate(EGLDisplay dpy);
331
332 /**
333  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
334  *
335  * @since       2.0
336  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
337  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
338  */
339 const char* eglQueryString(EGLDisplay dpy, EGLint name);
340
341 /**
342  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
343  *
344  * @since       2.0
345  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
346  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
347  */
348 EGLBoolean eglGetConfigs(EGLDisplay dpy, EGLConfig* configs, EGLint config_size, EGLint* num_config);
349
350 /**
351  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
352  *
353  * @since       2.0
354  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
355  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
356  */
357 EGLBoolean eglChooseConfig(EGLDisplay dpy, const EGLint* attrib_list, EGLConfig* configs, EGLint config_size, EGLint* num_config);
358
359 /**
360  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
361  *
362  * @since       2.0
363  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
364  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
365  */
366 EGLBoolean eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint* value);
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  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
374  */
375 EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint* attrib_list);
376
377 /**
378  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
379  *
380  * @since       2.0
381  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
382  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
383  */
384 EGLSurface eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const EGLint* attrib_list);
385
386 /**
387  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
388  *
389  * @since       2.0
390  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
391  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
392  */
393 EGLSurface eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint* attrib_list);
394
395 /**
396  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
397  *
398  * @since       2.0
399  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
400  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
401  */
402 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface);
403
404 /**
405  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
406  *
407  * @since       2.0
408  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
409  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
410  */
411 EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint* value);
412
413 /**
414  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
415  *
416  * @since       2.0
417  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
418  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
419  */
420 EGLBoolean eglBindAPI(EGLenum api);
421
422 /**
423  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
424  *
425  * @since       2.0
426  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
427  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
428  */
429 EGLenum eglQueryAPI(void);
430
431 /**
432  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
433  *
434  * @since       2.0
435  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
436  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
437  */
438 EGLBoolean eglWaitClient(void);
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  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
446  */
447 EGLBoolean eglReleaseThread(void);
448
449 /**
450  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
451  *
452  * @since       2.0
453  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
454  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
455  */
456 EGLSurface eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint* attrib_list);
457
458 /**
459  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
460  *
461  * @since       2.0
462  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
463  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
464  */
465 EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
466
467 /**
468  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
469  *
470  * @since       2.0
471  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
472  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
473  */
474 EGLBoolean eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
475
476 /**
477  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
478  *
479  * @since       2.0
480  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
481  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
482  */
483 EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
484
485 /**
486  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
487  *
488  * @since       2.0
489  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
490  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
491  */
492 EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval);
493
494 /**
495  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
496  *
497  * @since       2.0
498  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
499  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
500  */
501 EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint* attrib_list);
502
503 /**
504  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
505  *
506  * @since       2.0
507  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
508  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
509  */
510 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx);
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  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
518  */
519 EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
520
521 /**
522  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
523  *
524  * @since       2.0
525  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
526  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
527  */
528 EGLContext eglGetCurrentContext(void);
529
530 /**
531  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
532  *
533  * @since       2.0
534  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
535  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
536  */
537 EGLSurface eglGetCurrentSurface(EGLint readdraw);
538
539 /**
540  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
541  *
542  * @since       2.0
543  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
544  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
545  */
546 EGLDisplay eglGetCurrentDisplay(void);
547
548 /**
549  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
550  *
551  * @since       2.0
552  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
553  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
554  */
555 EGLBoolean eglQueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint* value);
556
557 /**
558  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
559  *
560  * @since       2.0
561  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
562  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
563  */
564 EGLBoolean eglWaitGL(void);
565
566 /**
567  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
568  *
569  * @since       2.0
570  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
571  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
572  */
573 EGLBoolean eglWaitNative(EGLint engine);
574
575 /**
576  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
577  *
578  * @since       2.0
579  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
580  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
581  */
582 EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface);
583
584 /**
585  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
586  *
587  * @since       2.0
588  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
589  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
590  */
591 EGLBoolean eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
592
593 /* This is a generic function pointer type, whose name indicates it must
594  * be cast to the proper type *and calling convention* before use.
595  */
596 /*! \var typedef void (*__eglMustCastToProperFunctionPointerType)(void)
597     \brief A type definition for __eglMustCastToProperFunctionPointerType.
598 */
599 typedef void (*__eglMustCastToProperFunctionPointerType)(void);
600
601 /* Now, define eglGetProcAddress using the generic function ptr. type */
602 /**
603  * Returns function pointer of a GL or an EGL extension function.
604  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
605  *
606  * @since                                       2.0
607  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
608  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
609  *
610 */
611 EGLAPI __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char* procname);
612
613 /**
614  * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
615  *
616  * @since       2.0
617  * @feature     %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
618  * @remarks     Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
619  */
620 EGLBoolean eglUpdateBufferOSP(EGLDisplay dpy, EGLSurface surface);
621
622 /**
623  * @}
624  */
625
626 #ifdef __cplusplus
627 }
628 #endif
629
630 #endif /* __egl_h_ */