Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 398 lines (331 sloc) 19.534 kB
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
1 ##########################################################################
2 #
3 # Copyright 2011 LunarG, Inc.
4 # All Rights Reserved.
5 #
6 # Permission is hereby granted, free of charge, to any person obtaining a copy
7 # of this software and associated documentation files (the "Software"), to deal
8 # in the Software without restriction, including without limitation the rights
9 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 # copies of the Software, and to permit persons to whom the Software is
11 # furnished to do so, subject to the following conditions:
12 #
13 # The above copyright notice and this permission notice shall be included in
14 # all copies or substantial portions of the Software.
15 #
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 # THE SOFTWARE.
23 #
24 ##########################################################################/
25
26 """EGL API description."""
27
28
29 from stdapi import *
fe93afd @rawoul Add missing OpenGL ES extensions
rawoul authored
30 from gltypes import *
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
31
32 EGLNativeDisplayType = Opaque("EGLNativeDisplayType")
33 EGLNativeWindowType = Opaque("EGLNativeWindowType")
34 EGLNativePixmapType = Opaque("EGLNativePixmapType")
35
36 EGLDisplay = Opaque("EGLDisplay")
37 EGLConfig = Opaque("EGLConfig")
38 EGLContext = Opaque("EGLContext")
39 EGLSurface = Opaque("EGLSurface")
40
41 EGLClientBuffer = Opaque("EGLClientBuffer")
42
9b4e6d3 @olvaffe egl: Remove unneeded _EGLBoolean
olvaffe authored
43 EGLBoolean = Enum("EGLBoolean", [
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
44 "EGL_FALSE",
45 "EGL_TRUE",
46 ])
47
48 EGLint = Alias("EGLint", Int32)
49
50 EGLError = FakeEnum(EGLint, [
51 "EGL_SUCCESS", # 0x3000
52 "EGL_NOT_INITIALIZED", # 0x3001
53 "EGL_BAD_ACCESS", # 0x3002
54 "EGL_BAD_ALLOC", # 0x3003
55 "EGL_BAD_ATTRIBUTE", # 0x3004
56 "EGL_BAD_CONFIG", # 0x3005
57 "EGL_BAD_CONTEXT", # 0x3006
58 "EGL_BAD_CURRENT_SURFACE", # 0x3007
59 "EGL_BAD_DISPLAY", # 0x3008
60 "EGL_BAD_MATCH", # 0x3009
61 "EGL_BAD_NATIVE_PIXMAP", # 0x300A
62 "EGL_BAD_NATIVE_WINDOW", # 0x300B
63 "EGL_BAD_PARAMETER", # 0x300C
64 "EGL_BAD_SURFACE", # 0x300D
65 "EGL_CONTEXT_LOST", # 0x300E /* EGL 1.1 - IMG_power_management */
66 ])
67
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
68 EGLName = FakeEnum(EGLint, [
69 "EGL_VENDOR", # 0x3053
70 "EGL_VERSION", # 0x3054
71 "EGL_EXTENSIONS", # 0x3055
72 "EGL_CLIENT_APIS", # 0x308D
73 ])
74
75 # collection of all other enum values
76 EGLenum = Enum("EGLenum", [
77 # config attributes
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
78 "EGL_BUFFER_SIZE", # 0x3020
79 "EGL_ALPHA_SIZE", # 0x3021
80 "EGL_BLUE_SIZE", # 0x3022
81 "EGL_GREEN_SIZE", # 0x3023
82 "EGL_RED_SIZE", # 0x3024
83 "EGL_DEPTH_SIZE", # 0x3025
84 "EGL_STENCIL_SIZE", # 0x3026
85 "EGL_CONFIG_CAVEAT", # 0x3027
86 "EGL_CONFIG_ID", # 0x3028
87 "EGL_LEVEL", # 0x3029
88 "EGL_MAX_PBUFFER_HEIGHT", # 0x302A
89 "EGL_MAX_PBUFFER_PIXELS", # 0x302B
90 "EGL_MAX_PBUFFER_WIDTH", # 0x302C
91 "EGL_NATIVE_RENDERABLE", # 0x302D
92 "EGL_NATIVE_VISUAL_ID", # 0x302E
93 "EGL_NATIVE_VISUAL_TYPE", # 0x302F
94 "EGL_SAMPLES", # 0x3031
95 "EGL_SAMPLE_BUFFERS", # 0x3032
96 "EGL_SURFACE_TYPE", # 0x3033
97 "EGL_TRANSPARENT_TYPE", # 0x3034
98 "EGL_TRANSPARENT_BLUE_VALUE", # 0x3035
99 "EGL_TRANSPARENT_GREEN_VALUE", # 0x3036
100 "EGL_TRANSPARENT_RED_VALUE", # 0x3037
101 "EGL_NONE", # 0x3038 /* Attrib list terminator */
102 "EGL_BIND_TO_TEXTURE_RGB", # 0x3039
103 "EGL_BIND_TO_TEXTURE_RGBA", # 0x303A
104 "EGL_MIN_SWAP_INTERVAL", # 0x303B
105 "EGL_MAX_SWAP_INTERVAL", # 0x303C
106 "EGL_LUMINANCE_SIZE", # 0x303D
107 "EGL_ALPHA_MASK_SIZE", # 0x303E
108 "EGL_COLOR_BUFFER_TYPE", # 0x303F
109 "EGL_RENDERABLE_TYPE", # 0x3040
110 "EGL_MATCH_NATIVE_PIXMAP", # 0x3041 /* Pseudo-attribute (not queryable) */
111 "EGL_CONFORMANT", # 0x3042
7fbacb7 @olvaffe egl: trace EGL_KHR_lock_surface and EGL_KHR_lock_surface2
olvaffe authored
112
127cc23 @olvaffe egl: Add missing enum values
olvaffe authored
113 # config attribute values
114 "EGL_SLOW_CONFIG", # 0x3050 /* EGL_CONFIG_CAVEAT value */
115 "EGL_NON_CONFORMANT_CONFIG", # 0x3051 /* EGL_CONFIG_CAVEAT value */
116 "EGL_TRANSPARENT_RGB", # 0x3052 /* EGL_TRANSPARENT_TYPE value */
117 "EGL_RGB_BUFFER", # 0x308E /* EGL_COLOR_BUFFER_TYPE value */
118 "EGL_LUMINANCE_BUFFER", # 0x308F /* EGL_COLOR_BUFFER_TYPE value */
119
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
120 # surface attributes
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
121 "EGL_HEIGHT", # 0x3056
122 "EGL_WIDTH", # 0x3057
123 "EGL_LARGEST_PBUFFER", # 0x3058
124 "EGL_TEXTURE_FORMAT", # 0x3080
125 "EGL_TEXTURE_TARGET", # 0x3081
126 "EGL_MIPMAP_TEXTURE", # 0x3082
127 "EGL_MIPMAP_LEVEL", # 0x3083
128 "EGL_RENDER_BUFFER", # 0x3086
129 "EGL_VG_COLORSPACE", # 0x3087
130 "EGL_VG_ALPHA_FORMAT", # 0x3088
131 "EGL_HORIZONTAL_RESOLUTION", # 0x3090
132 "EGL_VERTICAL_RESOLUTION", # 0x3091
133 "EGL_PIXEL_ASPECT_RATIO", # 0x3092
134 "EGL_SWAP_BEHAVIOR", # 0x3093
135 "EGL_MULTISAMPLE_RESOLVE", # 0x3099
7fbacb7 @olvaffe egl: trace EGL_KHR_lock_surface and EGL_KHR_lock_surface2
olvaffe authored
136
127cc23 @olvaffe egl: Add missing enum values
olvaffe authored
137 # surface attribute values
138 "EGL_NO_TEXTURE", # 0x305C
139 "EGL_TEXTURE_RGB", # 0x305D
140 "EGL_TEXTURE_RGBA", # 0x305E
141 "EGL_TEXTURE_2D", # 0x305F
142 "EGL_VG_COLORSPACE_sRGB", # 0x3089 /* EGL_VG_COLORSPACE value */
143 "EGL_VG_COLORSPACE_LINEAR", # 0x308A /* EGL_VG_COLORSPACE value */
144 "EGL_VG_ALPHA_FORMAT_NONPRE", # 0x308B /* EGL_ALPHA_FORMAT value */
145 "EGL_VG_ALPHA_FORMAT_PRE", # 0x308C /* EGL_ALPHA_FORMAT value */
146 "EGL_BUFFER_PRESERVED", # 0x3094 /* EGL_SWAP_BEHAVIOR value */
147 "EGL_BUFFER_DESTROYED", # 0x3095 /* EGL_SWAP_BEHAVIOR value */
148 "EGL_MULTISAMPLE_RESOLVE_DEFAULT", # 0x309A /* EGL_MULTISAMPLE_RESOLVE value */
149 "EGL_MULTISAMPLE_RESOLVE_BOX", # 0x309B /* EGL_MULTISAMPLE_RESOLVE value */
150
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
151 # context attributes
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
152 "EGL_CONTEXT_CLIENT_TYPE", # 0x3097
153 "EGL_CONTEXT_CLIENT_VERSION", # 0x3098
058193e @olvaffe egl: trace EGL_IMG_context_priority
olvaffe authored
154
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
155 # misc
127cc23 @olvaffe egl: Add missing enum values
olvaffe authored
156 "EGL_DRAW", # 0x3059
157 "EGL_READ", # 0x305A
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
158 "EGL_CORE_NATIVE_ENGINE", # 0x305B
159 "EGL_BACK_BUFFER", # 0x3084
160 "EGL_SINGLE_BUFFER", # 0x3085
161 "EGL_OPENVG_IMAGE", # 0x3096
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
162 "EGL_OPENGL_ES_API", # 0x30A0
163 "EGL_OPENVG_API", # 0x30A1
164 "EGL_OPENGL_API", # 0x30A2
165
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
166 # image targets
bc61ec3 @olvaffe egl: trace EGL_KHR_image_base and family
olvaffe authored
167 "EGL_NATIVE_PIXMAP_KHR", # 0x30B0
168 "EGL_GL_TEXTURE_2D_KHR", # 0x30B1
169 "EGL_GL_TEXTURE_3D_KHR", # 0x30B2
170 "EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR", # 0x30B3
171 "EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR", # 0x30B4
172 "EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR", # 0x30B5
173 "EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR", # 0x30B6
174 "EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR", # 0x30B7
175 "EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR", # 0x30B8
176 "EGL_GL_RENDERBUFFER_KHR", # 0x30B9
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
177 "EGL_VG_PARENT_IMAGE_KHR", # 0x30BA
178
179 # image attributes
180 "EGL_GL_TEXTURE_LEVEL_KHR", # 0x30BC
181 "EGL_GL_TEXTURE_ZOFFSET_KHR", # 0x30BD
182 "EGL_IMAGE_PRESERVED_KHR", # 0x30D2
183
184 # sync types
185 "EGL_SYNC_FENCE_KHR", # 0x30F9
186 "EGL_SYNC_REUSABLE_KHR", # 0x30FA
187
188 # sync attributes
127cc23 @olvaffe egl: Add missing enum values
olvaffe authored
189 "EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR", # 0x30F0
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
190 "EGL_SYNC_STATUS_KHR", # 0x30F1
191 "EGL_SIGNALED_KHR", # 0x30F2
192 "EGL_UNSIGNALED_KHR", # 0x30F3
127cc23 @olvaffe egl: Add missing enum values
olvaffe authored
193 "EGL_TIMEOUT_EXPIRED_KHR", # 0x30F5
194 "EGL_CONDITION_SATISFIED_KHR", # 0x30F6
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
195 "EGL_SYNC_TYPE_KHR", # 0x30F7
196 "EGL_SYNC_CONDITION_KHR", # 0x30F8
197
198 # EGL_KHR_lock_surface / EGL_KHR_lock_surface2
199 "EGL_MATCH_FORMAT_KHR", # 0x3043
127cc23 @olvaffe egl: Add missing enum values
olvaffe authored
200 "EGL_FORMAT_RGB_565_EXACT_KHR", # 0x30C0 /* EGL_MATCH_FORMAT_KHR value */
201 "EGL_FORMAT_RGB_565_KHR", # 0x30C1 /* EGL_MATCH_FORMAT_KHR value */
202 "EGL_FORMAT_RGBA_8888_EXACT_KHR", # 0x30C2 /* EGL_MATCH_FORMAT_KHR value */
203 "EGL_FORMAT_RGBA_8888_KHR", # 0x30C3 /* EGL_MATCH_FORMAT_KHR value */
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
204 "EGL_MAP_PRESERVE_PIXELS_KHR", # 0x30C4
205 "EGL_LOCK_USAGE_HINT_KHR", # 0x30C5
206 "EGL_BITMAP_POINTER_KHR", # 0x30C6
207 "EGL_BITMAP_PITCH_KHR", # 0x30C7
208 "EGL_BITMAP_ORIGIN_KHR", # 0x30C8
209 "EGL_BITMAP_PIXEL_RED_OFFSET_KHR", # 0x30C9
210 "EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR", # 0x30CA
211 "EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR", # 0x30CB
212 "EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR", # 0x30CC
213 "EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR", # 0x30CD
127cc23 @olvaffe egl: Add missing enum values
olvaffe authored
214 "EGL_LOWER_LEFT_KHR", # 0x30CE /* EGL_BITMAP_ORIGIN_KHR value */
215 "EGL_UPPER_LEFT_KHR", # 0x30CF /* EGL_BITMAP_ORIGIN_KHR value */
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
216 "EGL_BITMAP_PIXEL_SIZE_KHR", # 0x3110
217
218 # EGL_ANGLE_surface_d3d_texture_2d_share_handle
219 "EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE", # 0x3200
220
221 # EGL_HI_clientpixmap / EGL_HI_colorformats
222 "EGL_CLIENT_PIXMAP_POINTER_HI", # 0x8F74
223 "EGL_COLOR_FORMAT_HI", # 0x8F70
127cc23 @olvaffe egl: Add missing enum values
olvaffe authored
224 "EGL_COLOR_RGB_HI", # 0x8F71
225 "EGL_COLOR_RGBA_HI", # 0x8F72
226 "EGL_COLOR_ARGB_HI", # 0x8F73
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
227
228 # EGL_IMG_context_priority
229 "EGL_CONTEXT_PRIORITY_LEVEL_IMG", # 0x3100
127cc23 @olvaffe egl: Add missing enum values
olvaffe authored
230 "EGL_CONTEXT_PRIORITY_HIGH_IMG", # 0x3101
231 "EGL_CONTEXT_PRIORITY_MEDIUM_IMG", # 0x3102
232 "EGL_CONTEXT_PRIORITY_LOW_IMG", # 0x3103
f45b647 @olvaffe egl: trace EGL_MESA_drm_image
olvaffe authored
233
234 # EGL_MESA_drm_image
235 "EGL_DRM_BUFFER_MESA", # 0x31D3
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
236 "EGL_DRM_BUFFER_FORMAT_MESA", # 0x31D1
237 "EGL_DRM_BUFFER_USE_MESA", # 0x31D2
238 "EGL_DRM_BUFFER_STRIDE_MESA", # 0x31D4
bc61ec3 @olvaffe egl: trace EGL_KHR_image_base and family
olvaffe authored
239
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
240 # EGL_NV_coverage_sample
241 "EGL_COVERAGE_BUFFERS_NV", # 0x30E0
242 "EGL_COVERAGE_SAMPLES_NV", # 0x30E1
d674932 @olvaffe egl: trace EGL_KHR_reusable_sync and EGL_KHR_fence_sync
olvaffe authored
243
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
244 # EGL_NV_coverage_sample_resolve
245 "EGL_COVERAGE_SAMPLE_RESOLVE_NV", # 0x3131
d674932 @olvaffe egl: trace EGL_KHR_reusable_sync and EGL_KHR_fence_sync
olvaffe authored
246
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
247 # EGL_NV_depth_nonlinear
248 "EGL_DEPTH_ENCODING_NV", # 0x30E2
127cc23 @olvaffe egl: Add missing enum values
olvaffe authored
249 "EGL_DEPTH_ENCODING_NONLINEAR_NV", # 0x30E3
d674932 @olvaffe egl: trace EGL_KHR_reusable_sync and EGL_KHR_fence_sync
olvaffe authored
250
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
251 # EGL_NV_post_sub_buffer
252 "EGL_POST_SUB_BUFFER_SUPPORTED_NV", # 0x30BE
127cc23 @olvaffe egl: Add missing enum values
olvaffe authored
253
254 # EGL_NV_sync
255 "EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV", # 0x30E6
256 "EGL_SYNC_STATUS_NV", # 0x30E7
257 "EGL_SIGNALED_NV", # 0x30E8
258 "EGL_UNSIGNALED_NV", # 0x30E9
259 "EGL_ALREADY_SIGNALED_NV", # 0x30EA
260 "EGL_TIMEOUT_EXPIRED_NV", # 0x30EB
261 "EGL_CONDITION_SATISFIED_NV", # 0x30EC
262 "EGL_SYNC_TYPE_NV", # 0x30ED
263 "EGL_SYNC_CONDITION_NV", # 0x30EE
264 "EGL_SYNC_FENCE_NV", # 0x30EF
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
265 ])
d674932 @olvaffe egl: trace EGL_KHR_reusable_sync and EGL_KHR_fence_sync
olvaffe authored
266
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
267 # an alias of EGLenum
268 EGLattrib = Alias("EGLint", EGLenum)
d674932 @olvaffe egl: trace EGL_KHR_reusable_sync and EGL_KHR_fence_sync
olvaffe authored
269
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
270 # EGL_KHR_image_base
271 EGLImageKHR = Opaque("EGLImageKHR")
d674932 @olvaffe egl: trace EGL_KHR_reusable_sync and EGL_KHR_fence_sync
olvaffe authored
272
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
273 # EGL_KHR_reusable_sync
274 EGLSyncKHR = Opaque("EGLSyncKHR")
275 EGLTimeKHR = Alias("EGLTimeKHR", UInt64)
d674932 @olvaffe egl: trace EGL_KHR_reusable_sync and EGL_KHR_fence_sync
olvaffe authored
276
4b1c825 @olvaffe egl: trace EGL_NV_sync
olvaffe authored
277 # EGL_NV_sync
278 EGLSyncNV = Alias("EGLSyncNV", EGLSyncKHR)
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
279 EGLTimeNV = Alias("EGLTimeNV", EGLTimeKHR)
4b1c825 @olvaffe egl: trace EGL_NV_sync
olvaffe authored
280
cba1890 @olvaffe egl: trace EGL_HI_clientpixmap and EGL_HI_colorformats
olvaffe authored
281 # EGL_HI_clientpixmap
282 EGLClientPixmapHI = Struct("struct EGLClientPixmapHI", [
283 (OpaquePointer(Void), "pData"),
284 (EGLint, "iWidth"),
285 (EGLint, "iHeight"),
286 (EGLint, "iStride"),
287 ])
288
eb7f1bd @olvaffe egl: trace EGL_NV_system_time
olvaffe authored
289 # EGL_NV_system_time
290 EGLuint64NV = Alias("EGLuint64NV", UInt64)
291
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
292 eglapi = API("EGL")
293
632a78d @jrfonseca Don't abuse double-underscore prefix.
jrfonseca authored
294 EGLAttribList = Array(Const(EGLattrib), "_AttribPairList_size(attrib_list, EGL_NONE)")
daa4313 @olvaffe egl: Add EGLAttribList for attribute lists
olvaffe authored
295
d93791e @jrfonseca Minor tweaks to the spec.
jrfonseca authored
296 EGLProc = Opaque("__eglMustCastToProperFunctionPointerType")
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
297
fe93afd @rawoul Add missing OpenGL ES extensions
rawoul authored
298 def GlFunction(*args, **kwargs):
299 kwargs.setdefault('call', 'GL_APIENTRY')
300 return Function(*args, **kwargs)
301
54f304a @jrfonseca Cleanup/comment/format code.
jrfonseca authored
302 eglapi.addFunctions([
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
303 # EGL 1.4
304 Function(EGLError, "eglGetError", [], sideeffects=False),
305
306 Function(EGLDisplay, "eglGetDisplay", [(EGLNativeDisplayType, "display_id")]),
307 Function(EGLBoolean, "eglInitialize", [(EGLDisplay, "dpy"), Out(Pointer(EGLint), "major"), Out(Pointer(EGLint), "minor")]),
308 Function(EGLBoolean, "eglTerminate", [(EGLDisplay, "dpy")]),
309
bcfc81b @jrfonseca Cleanup strings constness.
jrfonseca authored
310 Function(ConstCString, "eglQueryString", [(EGLDisplay, "dpy"), (EGLName, "name")], sideeffects=False),
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
311
312 Function(EGLBoolean, "eglGetConfigs", [(EGLDisplay, "dpy"), (Array(EGLConfig, "config_size"), "configs"), (EGLint, "config_size"), Out(Pointer(EGLint), "num_config")]),
daa4313 @olvaffe egl: Add EGLAttribList for attribute lists
olvaffe authored
313 Function(EGLBoolean, "eglChooseConfig", [(EGLDisplay, "dpy"), (EGLAttribList, "attrib_list"), (Array(EGLConfig, "config_size"), "configs"), (EGLint, "config_size"), Out(Pointer(EGLint), "num_config")]),
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
314 Function(EGLBoolean, "eglGetConfigAttrib", [(EGLDisplay, "dpy"), (EGLConfig, "config"), (EGLattrib, "attribute"), Out(Pointer(EGLint), "value")], sideeffects=False),
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
315
daa4313 @olvaffe egl: Add EGLAttribList for attribute lists
olvaffe authored
316 Function(EGLSurface, "eglCreateWindowSurface", [(EGLDisplay, "dpy"), (EGLConfig, "config"), (EGLNativeWindowType, "win"), (EGLAttribList, "attrib_list")]),
317 Function(EGLSurface, "eglCreatePbufferSurface", [(EGLDisplay, "dpy"), (EGLConfig, "config"), (EGLAttribList, "attrib_list")]),
318 Function(EGLSurface, "eglCreatePixmapSurface", [(EGLDisplay, "dpy"), (EGLConfig, "config"), (EGLNativePixmapType, "pixmap"), (EGLAttribList, "attrib_list")]),
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
319 Function(EGLBoolean, "eglDestroySurface", [(EGLDisplay, "dpy"), (EGLSurface, "surface")]),
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
320 Function(EGLBoolean, "eglQuerySurface", [(EGLDisplay, "dpy"), (EGLSurface, "surface"), (EGLattrib, "attribute"), Out(Pointer(EGLint), "value")], sideeffects=False),
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
321
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
322 Function(EGLBoolean, "eglBindAPI", [(EGLenum, "api")]),
323 Function(EGLenum, "eglQueryAPI", [], sideeffects=False),
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
324
325 Function(EGLBoolean, "eglWaitClient", []),
326
327 Function(EGLBoolean, "eglReleaseThread", []),
328
daa4313 @olvaffe egl: Add EGLAttribList for attribute lists
olvaffe authored
329 Function(EGLSurface, "eglCreatePbufferFromClientBuffer", [(EGLDisplay, "dpy"), (EGLenum, "buftype"), (EGLClientBuffer, "buffer"), (EGLConfig, "config"), (EGLAttribList, "attrib_list")]),
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
330
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
331 Function(EGLBoolean, "eglSurfaceAttrib", [(EGLDisplay, "dpy"), (EGLSurface, "surface"), (EGLattrib, "attribute"), (EGLint, "value")]),
332 Function(EGLBoolean, "eglBindTexImage", [(EGLDisplay, "dpy"), (EGLSurface, "surface"), (EGLattrib, "buffer")]),
333 Function(EGLBoolean, "eglReleaseTexImage", [(EGLDisplay, "dpy"), (EGLSurface, "surface"), (EGLattrib, "buffer")]),
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
334
335 Function(EGLBoolean, "eglSwapInterval", [(EGLDisplay, "dpy"), (EGLint, "interval")]),
336
daa4313 @olvaffe egl: Add EGLAttribList for attribute lists
olvaffe authored
337 Function(EGLContext, "eglCreateContext", [(EGLDisplay, "dpy"), (EGLConfig, "config"), (EGLContext, "share_context"), (EGLAttribList, "attrib_list")]),
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
338 Function(EGLBoolean, "eglDestroyContext", [(EGLDisplay, "dpy"), (EGLContext, "ctx")]),
339 Function(EGLBoolean, "eglMakeCurrent", [(EGLDisplay, "dpy"), (EGLSurface, "draw"), (EGLSurface, "read"), (EGLContext, "ctx")]),
340
341 Function(EGLContext, "eglGetCurrentContext", [], sideeffects=False),
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
342 Function(EGLSurface, "eglGetCurrentSurface", [(EGLattrib, "readdraw")], sideeffects=False),
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
343 Function(EGLDisplay, "eglGetCurrentDisplay", [], sideeffects=False),
344
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
345 Function(EGLBoolean, "eglQueryContext", [(EGLDisplay, "dpy"), (EGLContext, "ctx"), (EGLattrib, "attribute"), Out(Pointer(EGLint), "value")], sideeffects=False),
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
346
347 Function(EGLBoolean, "eglWaitGL", []),
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
348 Function(EGLBoolean, "eglWaitNative", [(EGLattrib, "engine")]),
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
349 Function(EGLBoolean, "eglSwapBuffers", [(EGLDisplay, "dpy"), (EGLSurface, "surface")]),
350 Function(EGLBoolean, "eglCopyBuffers", [(EGLDisplay, "dpy"), (EGLSurface, "surface"), (EGLNativePixmapType, "target")]),
351
bcfc81b @jrfonseca Cleanup strings constness.
jrfonseca authored
352 Function(EGLProc, "eglGetProcAddress", [(ConstCString, "procname")]),
7fbacb7 @olvaffe egl: trace EGL_KHR_lock_surface and EGL_KHR_lock_surface2
olvaffe authored
353
354 # EGL_KHR_lock_surface
daa4313 @olvaffe egl: Add EGLAttribList for attribute lists
olvaffe authored
355 Function(EGLBoolean, "eglLockSurfaceKHR", [(EGLDisplay, "display"), (EGLSurface, "surface"), (EGLAttribList, "attrib_list")]),
7fbacb7 @olvaffe egl: trace EGL_KHR_lock_surface and EGL_KHR_lock_surface2
olvaffe authored
356 Function(EGLBoolean, "eglUnlockSurfaceKHR", [(EGLDisplay, "display"), (EGLSurface, "surface")]),
bc61ec3 @olvaffe egl: trace EGL_KHR_image_base and family
olvaffe authored
357
358 # EGL_KHR_image_base
daa4313 @olvaffe egl: Add EGLAttribList for attribute lists
olvaffe authored
359 Function(EGLImageKHR, "eglCreateImageKHR", [(EGLDisplay, "dpy"), (EGLContext, "ctx"), (EGLenum, "target"), (EGLClientBuffer, "buffer"), (EGLAttribList, "attrib_list")]),
bc61ec3 @olvaffe egl: trace EGL_KHR_image_base and family
olvaffe authored
360 Function(EGLBoolean, "eglDestroyImageKHR", [(EGLDisplay, "dpy"), (EGLImageKHR, "image")]),
d674932 @olvaffe egl: trace EGL_KHR_reusable_sync and EGL_KHR_fence_sync
olvaffe authored
361
362 # EGL_KHR_reusable_sync
daa4313 @olvaffe egl: Add EGLAttribList for attribute lists
olvaffe authored
363 Function(EGLSyncKHR, "eglCreateSyncKHR", [(EGLDisplay, "dpy"), (EGLenum, "type"), (EGLAttribList, "attrib_list")]),
d674932 @olvaffe egl: trace EGL_KHR_reusable_sync and EGL_KHR_fence_sync
olvaffe authored
364 Function(EGLBoolean, "eglDestroySyncKHR", [(EGLDisplay, "dpy"), (EGLSyncKHR, "sync")]),
365 Function(EGLint, "eglClientWaitSyncKHR", [(EGLDisplay, "dpy"), (EGLSyncKHR, "sync"), (EGLint, "flags"), (EGLTimeKHR, "timeout")]),
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
366 Function(EGLBoolean, "eglSignalSyncKHR", [(EGLDisplay, "dpy"), (EGLSyncKHR, "sync"), (EGLenum, "mode")]),
367 Function(EGLBoolean, "eglGetSyncAttribKHR", [(EGLDisplay, "dpy"), (EGLSyncKHR, "sync"), (EGLattrib, "attribute"), Out(Pointer(EGLint), "value")], sideeffects=False),
4b1c825 @olvaffe egl: trace EGL_NV_sync
olvaffe authored
368
369 # EGL_NV_sync
daa4313 @olvaffe egl: Add EGLAttribList for attribute lists
olvaffe authored
370 Function(EGLSyncNV, "eglCreateFenceSyncNV", [(EGLDisplay, "dpy"), (EGLenum, "condition"), (EGLAttribList, "attrib_list")]),
4b1c825 @olvaffe egl: trace EGL_NV_sync
olvaffe authored
371 Function(EGLBoolean, "eglDestroySyncNV", [(EGLSyncNV, "sync")]),
372 Function(EGLBoolean, "eglFenceNV", [(EGLSyncNV, "sync")]),
373 Function(EGLint, "eglClientWaitSyncNV", [(EGLSyncNV, "sync"), (EGLint, "flags"), (EGLTimeNV, "timeout")]),
374 Function(EGLBoolean, "eglSignalSyncNV", [(EGLSyncNV, "sync"), (EGLenum, "mode")]),
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
375 Function(EGLBoolean, "eglGetSyncAttribNV", [(EGLSyncNV, "sync"), (EGLattrib, "attribute"), Out(Pointer(EGLint), "value")], sideeffects=False),
cba1890 @olvaffe egl: trace EGL_HI_clientpixmap and EGL_HI_colorformats
olvaffe authored
376
377 # EGL_HI_clientpixmap
378 Function(EGLSurface, "eglCreatePixmapSurfaceHI", [(EGLDisplay, "dpy"), (EGLConfig, "config"), (Pointer(EGLClientPixmapHI), "pixmap")]),
f45b647 @olvaffe egl: trace EGL_MESA_drm_image
olvaffe authored
379
380 # EGL_MESA_drm_image
daa4313 @olvaffe egl: Add EGLAttribList for attribute lists
olvaffe authored
381 Function(EGLImageKHR, "eglCreateDRMImageMESA", [(EGLDisplay, "dpy"), (EGLAttribList, "attrib_list")]),
f45b647 @olvaffe egl: trace EGL_MESA_drm_image
olvaffe authored
382 Function(EGLBoolean, "eglExportDRMImageMESA", [(EGLDisplay, "dpy"), (EGLImageKHR, "image"), Out(Pointer(EGLint), "name"), Out(Pointer(EGLint), "handle"), Out(Pointer(EGLint), "stride")]),
67be6f1 @olvaffe egl: trace EGL_NV_post_sub_buffer
olvaffe authored
383
384 # EGL_NV_post_sub_buffer
385 Function(EGLBoolean, "eglPostSubBufferNV", [(EGLDisplay, "dpy"), (EGLSurface, "surface"), (EGLint, "x"), (EGLint, "y"), (EGLint, "width"), (EGLint, "height")]),
991b5f5 @olvaffe egl: trace EGL_ANGLE_query_surface_pointer and family
olvaffe authored
386
387 # EGL_ANGLE_query_surface_pointer
76fe527 @olvaffe egl: Merge various enum types
olvaffe authored
388 Function(EGLBoolean, "eglQuerySurfacePointerANGLE", [(EGLDisplay, "dpy"), (EGLSurface, "surface"), (EGLattrib, "attribute"), Out(Pointer(OpaquePointer(Void)), "value")], sideeffects=False),
eb7f1bd @olvaffe egl: trace EGL_NV_system_time
olvaffe authored
389
390 # EGL_NV_system_time
391 Function(EGLuint64NV, "eglGetSystemTimeFrequencyNV", [], sideeffects=False),
392 Function(EGLuint64NV, "eglGetSystemTimeNV", [], sideeffects=False),
fe93afd @rawoul Add missing OpenGL ES extensions
rawoul authored
393
394 # GL_OES_EGL_image
395 GlFunction(Void, "glEGLImageTargetTexture2DOES", [(GLenum, "target"), (EGLImageKHR, "image")]),
396 GlFunction(Void, "glEGLImageTargetRenderbufferStorageOES", [(GLenum, "target"), (EGLImageKHR, "image")]),
c1d4c4d @olvaffe egl: Add EGL API spec
olvaffe authored
397 ])
Something went wrong with that request. Please try again.