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
301 * @remarks Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
303 EGLint eglGetError(void);
306 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
312 EGLDisplay eglGetDisplay(EGLNativeDisplayType display_id);
315 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
321 EGLBoolean eglInitialize(EGLDisplay dpy, EGLint* major, EGLint* minor);
324 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
330 EGLBoolean eglTerminate(EGLDisplay dpy);
333 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
339 const char* eglQueryString(EGLDisplay dpy, EGLint name);
342 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
348 EGLBoolean eglGetConfigs(EGLDisplay dpy, EGLConfig* configs, EGLint config_size, EGLint* num_config);
351 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
357 EGLBoolean eglChooseConfig(EGLDisplay dpy, const EGLint* attrib_list, EGLConfig* configs, EGLint config_size, EGLint* num_config);
360 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
366 EGLBoolean eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint* value);
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
373 * @remarks Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
375 EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint* attrib_list);
378 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
384 EGLSurface eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const EGLint* attrib_list);
387 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
393 EGLSurface eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint* attrib_list);
396 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
402 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface);
405 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
411 EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint* value);
414 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
420 EGLBoolean eglBindAPI(EGLenum api);
423 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
429 EGLenum eglQueryAPI(void);
432 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
438 EGLBoolean eglWaitClient(void);
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
445 * @remarks Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
447 EGLBoolean eglReleaseThread(void);
450 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
456 EGLSurface eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint* attrib_list);
459 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
465 EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
468 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
474 EGLBoolean eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
477 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
483 EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer);
486 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
492 EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval);
495 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
501 EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint* attrib_list);
504 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
510 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx);
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
517 * @remarks Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
519 EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
522 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
528 EGLContext eglGetCurrentContext(void);
531 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
537 EGLSurface eglGetCurrentSurface(EGLint readdraw);
540 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
546 EGLDisplay eglGetCurrentDisplay(void);
549 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
555 EGLBoolean eglQueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint* value);
558 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
564 EGLBoolean eglWaitGL(void);
567 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
573 EGLBoolean eglWaitNative(EGLint engine);
576 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
582 EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface);
585 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
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&).
591 EGLBoolean eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
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.
596 /*! \var typedef void (*__eglMustCastToProperFunctionPointerType)(void)
597 \brief A type definition for __eglMustCastToProperFunctionPointerType.
599 typedef void (*__eglMustCastToProperFunctionPointerType)(void);
601 /* Now, define eglGetProcAddress using the generic function ptr. type */
604 * @page EGLeglGetProcAddress Compatibility for eglGetProcAddress.
605 * @section CompClassNameMethodNamePageIssueSection Issues
606 * Implementation of this method in API versions prior to 1.2 has the following issue: @n
608 * -# This method does not work as expected in API versions prior to 1.2.
610 * @section CompClassNameMethodNamePageSolutionSection Resolutions
611 * The issue mentioned above is resolved in API version 1.2, and it is recommended to use API version 1.2 or above. @n
616 * Returns function pointer of a GL or an EGL extension function.
617 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
620 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
621 * @remarks Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
624 EGLAPI __eglMustCastToProperFunctionPointerType eglGetProcAddress(const char* procname);
627 * You can find more details at the Khronos Group site: http://www.khronos.org/registry/egl
630 * @feature %http://tizen.org/feature/opengles, %http://tizen.org/feature/opengles.version.1_1, or %http://tizen.org/feature/opengles.version.2_0
631 * @remarks Before calling this method, check whether the feature is supported by Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
633 EGLBoolean eglUpdateBufferOSP(EGLDisplay dpy, EGLSurface surface);
643 #endif /* __egl_h_ */