1 ##########################################################################
3 # Copyright 2011 LunarG, Inc.
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:
13 # The above copyright notice and this permission notice shall be included in
14 # all copies or substantial portions of the Software.
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
24 ##########################################################################/
26 """EGL API description."""
32 EGLNativeDisplayType = Opaque("EGLNativeDisplayType")
33 EGLNativeWindowType = Opaque("EGLNativeWindowType")
34 EGLNativePixmapType = Opaque("EGLNativePixmapType")
36 EGLDisplay = Opaque("EGLDisplay")
37 EGLConfig = Opaque("EGLConfig")
38 EGLContext = Opaque("EGLContext")
39 EGLSurface = Opaque("EGLSurface")
41 EGLClientBuffer = Opaque("EGLClientBuffer")
43 EGLBoolean = Enum("EGLBoolean", [
48 EGLint = Alias("EGLint", Int32)
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 */
68 EGLName = FakeEnum(EGLint, [
69 "EGL_VENDOR", # 0x3053
70 "EGL_VERSION", # 0x3054
71 "EGL_EXTENSIONS", # 0x3055
72 "EGL_CLIENT_APIS", # 0x308D
75 # collection of all other enum values
76 EGLenum = Enum("EGLenum", [
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
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
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 */
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
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 */
152 "EGL_CONTEXT_CLIENT_TYPE", # 0x3097
153 "EGL_CONTEXT_CLIENT_VERSION", # 0x3098
158 "EGL_CORE_NATIVE_ENGINE", # 0x305B
159 "EGL_BACK_BUFFER", # 0x3084
160 "EGL_SINGLE_BUFFER", # 0x3085
161 "EGL_OPENVG_IMAGE", # 0x3096
162 "EGL_OPENGL_ES_API", # 0x30A0
163 "EGL_OPENVG_API", # 0x30A1
164 "EGL_OPENGL_API", # 0x30A2
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
177 "EGL_VG_PARENT_IMAGE_KHR", # 0x30BA
180 "EGL_GL_TEXTURE_LEVEL_KHR", # 0x30BC
181 "EGL_GL_TEXTURE_ZOFFSET_KHR", # 0x30BD
182 "EGL_IMAGE_PRESERVED_KHR", # 0x30D2
185 "EGL_SYNC_FENCE_KHR", # 0x30F9
186 "EGL_SYNC_REUSABLE_KHR", # 0x30FA
189 "EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR", # 0x30F0
190 "EGL_SYNC_STATUS_KHR", # 0x30F1
191 "EGL_SIGNALED_KHR", # 0x30F2
192 "EGL_UNSIGNALED_KHR", # 0x30F3
193 "EGL_TIMEOUT_EXPIRED_KHR", # 0x30F5
194 "EGL_CONDITION_SATISFIED_KHR", # 0x30F6
195 "EGL_SYNC_TYPE_KHR", # 0x30F7
196 "EGL_SYNC_CONDITION_KHR", # 0x30F8
198 # EGL_KHR_lock_surface / EGL_KHR_lock_surface2
199 "EGL_MATCH_FORMAT_KHR", # 0x3043
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 */
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
214 "EGL_LOWER_LEFT_KHR", # 0x30CE /* EGL_BITMAP_ORIGIN_KHR value */
215 "EGL_UPPER_LEFT_KHR", # 0x30CF /* EGL_BITMAP_ORIGIN_KHR value */
216 "EGL_BITMAP_PIXEL_SIZE_KHR", # 0x3110
218 # EGL_ANGLE_surface_d3d_texture_2d_share_handle
219 "EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE", # 0x3200
221 # EGL_HI_clientpixmap / EGL_HI_colorformats
222 "EGL_CLIENT_PIXMAP_POINTER_HI", # 0x8F74
223 "EGL_COLOR_FORMAT_HI", # 0x8F70
224 "EGL_COLOR_RGB_HI", # 0x8F71
225 "EGL_COLOR_RGBA_HI", # 0x8F72
226 "EGL_COLOR_ARGB_HI", # 0x8F73
228 # EGL_IMG_context_priority
229 "EGL_CONTEXT_PRIORITY_LEVEL_IMG", # 0x3100
230 "EGL_CONTEXT_PRIORITY_HIGH_IMG", # 0x3101
231 "EGL_CONTEXT_PRIORITY_MEDIUM_IMG", # 0x3102
232 "EGL_CONTEXT_PRIORITY_LOW_IMG", # 0x3103
235 "EGL_DRM_BUFFER_MESA", # 0x31D3
236 "EGL_DRM_BUFFER_FORMAT_MESA", # 0x31D1
237 "EGL_DRM_BUFFER_USE_MESA", # 0x31D2
238 "EGL_DRM_BUFFER_STRIDE_MESA", # 0x31D4
240 # EGL_NV_coverage_sample
241 "EGL_COVERAGE_BUFFERS_NV", # 0x30E0
242 "EGL_COVERAGE_SAMPLES_NV", # 0x30E1
244 # EGL_NV_coverage_sample_resolve
245 "EGL_COVERAGE_SAMPLE_RESOLVE_NV", # 0x3131
247 # EGL_NV_depth_nonlinear
248 "EGL_DEPTH_ENCODING_NV", # 0x30E2
249 "EGL_DEPTH_ENCODING_NONLINEAR_NV", # 0x30E3
251 # EGL_NV_post_sub_buffer
252 "EGL_POST_SUB_BUFFER_SUPPORTED_NV", # 0x30BE
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
267 # an alias of EGLenum
268 EGLattrib = Alias("EGLint", EGLenum)
271 EGLImageKHR = Opaque("EGLImageKHR")
273 # EGL_KHR_reusable_sync
274 EGLSyncKHR = Opaque("EGLSyncKHR")
275 EGLTimeKHR = Alias("EGLTimeKHR", UInt64)
278 EGLSyncNV = Alias("EGLSyncNV", EGLSyncKHR)
279 EGLTimeNV = Alias("EGLTimeNV", EGLTimeKHR)
281 # EGL_HI_clientpixmap
282 EGLClientPixmapHI = Struct("struct EGLClientPixmapHI", [
283 (OpaquePointer(Void), "pData"),
290 EGLuint64NV = Alias("EGLuint64NV", UInt64)
292 eglapi = Module("EGL")
294 EGLAttribList = Array(Const(EGLattrib), "_AttribPairList_size(attrib_list, EGL_NONE)")
296 EGLProc = Opaque("__eglMustCastToProperFunctionPointerType")
298 def GlFunction(*args, **kwargs):
299 kwargs.setdefault('call', 'GL_APIENTRY')
300 return Function(*args, **kwargs)
302 eglapi.addFunctions([
304 Function(EGLError, "eglGetError", [], sideeffects=False),
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")]),
310 Function(ConstCString, "eglQueryString", [(EGLDisplay, "dpy"), (EGLName, "name")], sideeffects=False),
312 Function(EGLBoolean, "eglGetConfigs", [(EGLDisplay, "dpy"), (Array(EGLConfig, "config_size"), "configs"), (EGLint, "config_size"), Out(Pointer(EGLint), "num_config")]),
313 Function(EGLBoolean, "eglChooseConfig", [(EGLDisplay, "dpy"), (EGLAttribList, "attrib_list"), (Array(EGLConfig, "config_size"), "configs"), (EGLint, "config_size"), Out(Pointer(EGLint), "num_config")]),
314 Function(EGLBoolean, "eglGetConfigAttrib", [(EGLDisplay, "dpy"), (EGLConfig, "config"), (EGLattrib, "attribute"), Out(Pointer(EGLint), "value")], sideeffects=False),
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")]),
319 Function(EGLBoolean, "eglDestroySurface", [(EGLDisplay, "dpy"), (EGLSurface, "surface")]),
320 Function(EGLBoolean, "eglQuerySurface", [(EGLDisplay, "dpy"), (EGLSurface, "surface"), (EGLattrib, "attribute"), Out(Pointer(EGLint), "value")], sideeffects=False),
322 Function(EGLBoolean, "eglBindAPI", [(EGLenum, "api")]),
323 Function(EGLenum, "eglQueryAPI", [], sideeffects=False),
325 Function(EGLBoolean, "eglWaitClient", []),
327 Function(EGLBoolean, "eglReleaseThread", []),
329 Function(EGLSurface, "eglCreatePbufferFromClientBuffer", [(EGLDisplay, "dpy"), (EGLenum, "buftype"), (EGLClientBuffer, "buffer"), (EGLConfig, "config"), (EGLAttribList, "attrib_list")]),
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")]),
335 Function(EGLBoolean, "eglSwapInterval", [(EGLDisplay, "dpy"), (EGLint, "interval")]),
337 Function(EGLContext, "eglCreateContext", [(EGLDisplay, "dpy"), (EGLConfig, "config"), (EGLContext, "share_context"), (EGLAttribList, "attrib_list")]),
338 Function(EGLBoolean, "eglDestroyContext", [(EGLDisplay, "dpy"), (EGLContext, "ctx")]),
339 Function(EGLBoolean, "eglMakeCurrent", [(EGLDisplay, "dpy"), (EGLSurface, "draw"), (EGLSurface, "read"), (EGLContext, "ctx")]),
341 Function(EGLContext, "eglGetCurrentContext", [], sideeffects=False),
342 Function(EGLSurface, "eglGetCurrentSurface", [(EGLattrib, "readdraw")], sideeffects=False),
343 Function(EGLDisplay, "eglGetCurrentDisplay", [], sideeffects=False),
345 Function(EGLBoolean, "eglQueryContext", [(EGLDisplay, "dpy"), (EGLContext, "ctx"), (EGLattrib, "attribute"), Out(Pointer(EGLint), "value")], sideeffects=False),
347 Function(EGLBoolean, "eglWaitGL", []),
348 Function(EGLBoolean, "eglWaitNative", [(EGLattrib, "engine")]),
349 Function(EGLBoolean, "eglSwapBuffers", [(EGLDisplay, "dpy"), (EGLSurface, "surface")]),
350 Function(EGLBoolean, "eglCopyBuffers", [(EGLDisplay, "dpy"), (EGLSurface, "surface"), (EGLNativePixmapType, "target")]),
352 Function(EGLProc, "eglGetProcAddress", [(ConstCString, "procname")]),
354 # EGL_KHR_lock_surface
355 Function(EGLBoolean, "eglLockSurfaceKHR", [(EGLDisplay, "display"), (EGLSurface, "surface"), (EGLAttribList, "attrib_list")]),
356 Function(EGLBoolean, "eglUnlockSurfaceKHR", [(EGLDisplay, "display"), (EGLSurface, "surface")]),
359 Function(EGLImageKHR, "eglCreateImageKHR", [(EGLDisplay, "dpy"), (EGLContext, "ctx"), (EGLenum, "target"), (EGLClientBuffer, "buffer"), (EGLAttribList, "attrib_list")]),
360 Function(EGLBoolean, "eglDestroyImageKHR", [(EGLDisplay, "dpy"), (EGLImageKHR, "image")]),
362 # EGL_KHR_reusable_sync
363 Function(EGLSyncKHR, "eglCreateSyncKHR", [(EGLDisplay, "dpy"), (EGLenum, "type"), (EGLAttribList, "attrib_list")]),
364 Function(EGLBoolean, "eglDestroySyncKHR", [(EGLDisplay, "dpy"), (EGLSyncKHR, "sync")]),
365 Function(EGLint, "eglClientWaitSyncKHR", [(EGLDisplay, "dpy"), (EGLSyncKHR, "sync"), (EGLint, "flags"), (EGLTimeKHR, "timeout")]),
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),
370 Function(EGLSyncNV, "eglCreateFenceSyncNV", [(EGLDisplay, "dpy"), (EGLenum, "condition"), (EGLAttribList, "attrib_list")]),
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")]),
375 Function(EGLBoolean, "eglGetSyncAttribNV", [(EGLSyncNV, "sync"), (EGLattrib, "attribute"), Out(Pointer(EGLint), "value")], sideeffects=False),
377 # EGL_HI_clientpixmap
378 Function(EGLSurface, "eglCreatePixmapSurfaceHI", [(EGLDisplay, "dpy"), (EGLConfig, "config"), (Pointer(EGLClientPixmapHI), "pixmap")]),
381 Function(EGLImageKHR, "eglCreateDRMImageMESA", [(EGLDisplay, "dpy"), (EGLAttribList, "attrib_list")]),
382 Function(EGLBoolean, "eglExportDRMImageMESA", [(EGLDisplay, "dpy"), (EGLImageKHR, "image"), Out(Pointer(EGLint), "name"), Out(Pointer(EGLint), "handle"), Out(Pointer(EGLint), "stride")]),
384 # EGL_NV_post_sub_buffer
385 Function(EGLBoolean, "eglPostSubBufferNV", [(EGLDisplay, "dpy"), (EGLSurface, "surface"), (EGLint, "x"), (EGLint, "y"), (EGLint, "width"), (EGLint, "height")]),
387 # EGL_ANGLE_query_surface_pointer
388 Function(EGLBoolean, "eglQuerySurfacePointerANGLE", [(EGLDisplay, "dpy"), (EGLSurface, "surface"), (EGLattrib, "attribute"), Out(Pointer(OpaquePointer(Void)), "value")], sideeffects=False),
391 Function(EGLuint64NV, "eglGetSystemTimeFrequencyNV", [], sideeffects=False),
392 Function(EGLuint64NV, "eglGetSystemTimeNV", [], sideeffects=False),
395 GlFunction(Void, "glEGLImageTargetTexture2DOES", [(GLenum, "target"), (EGLImageKHR, "image")]),
396 GlFunction(Void, "glEGLImageTargetRenderbufferStorageOES", [(GLenum, "target"), (EGLImageKHR, "image")]),