blob: a446c71e59357ee205d121db3dab0d2fab15dba3 [file] [log] [blame]
Pyry Haulosca801e72016-11-17 15:26:29 -08001/* WARNING: This is auto-generated file. Do not modify, since changes will
2 * be lost! Modify the generating script instead.
3 *
Peiyong Linbf221502018-12-27 15:53:39 -08004 * Generated from Khronos EGL API description (egl.xml) revision 3338ed0db494d6a4db7f76627b38f0b1892db096.
Pyry Haulosca801e72016-11-17 15:26:29 -08005 */
6
7EGLint eglwClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout)
8{
Pyry Hauloscc5411b2017-03-30 16:42:23 -07009 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
Pyry Haulosca801e72016-11-17 15:26:29 -080010 if (!egl)
11 return (EGLint)0;
Pyry Hauloscc5411b2017-03-30 16:42:23 -070012 return egl->clientWaitSyncKHR(dpy, sync, flags, timeout);
Pyry Haulosca801e72016-11-17 15:26:29 -080013}
14
15EGLImageKHR eglwCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list)
16{
17 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
18 if (!egl)
19 return (EGLImageKHR)0;
20 return egl->createImageKHR(dpy, ctx, target, buffer, attrib_list);
21}
22
23EGLSurface eglwCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list)
24{
25 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
26 if (!egl)
27 return (EGLSurface)0;
28 return egl->createPlatformPixmapSurfaceEXT(dpy, config, native_pixmap, attrib_list);
29}
30
31EGLSurface eglwCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list)
32{
33 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
34 if (!egl)
35 return (EGLSurface)0;
36 return egl->createPlatformWindowSurfaceEXT(dpy, config, native_window, attrib_list);
37}
38
39EGLSyncKHR eglwCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list)
40{
Pyry Hauloscc5411b2017-03-30 16:42:23 -070041 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
Pyry Haulosca801e72016-11-17 15:26:29 -080042 if (!egl)
43 return (EGLSyncKHR)0;
44 return egl->createSyncKHR(dpy, type, attrib_list);
45}
46
47EGLBoolean eglwDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image)
48{
Pyry Hauloscc5411b2017-03-30 16:42:23 -070049 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
Pyry Haulosca801e72016-11-17 15:26:29 -080050 if (!egl)
51 return (EGLBoolean)0;
52 return egl->destroyImageKHR(dpy, image);
53}
54
55EGLBoolean eglwDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync)
56{
Pyry Hauloscc5411b2017-03-30 16:42:23 -070057 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
Pyry Haulosca801e72016-11-17 15:26:29 -080058 if (!egl)
59 return (EGLBoolean)0;
60 return egl->destroySyncKHR(dpy, sync);
61}
62
63EGLDisplay eglwGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list)
64{
Pyry Hauloscc5411b2017-03-30 16:42:23 -070065 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
Pyry Haulosca801e72016-11-17 15:26:29 -080066 if (!egl)
67 return (EGLDisplay)0;
68 return egl->getPlatformDisplayEXT(platform, native_display, attrib_list);
69}
70
71EGLBoolean eglwGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value)
72{
Pyry Hauloscc5411b2017-03-30 16:42:23 -070073 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
Pyry Haulosca801e72016-11-17 15:26:29 -080074 if (!egl)
75 return (EGLBoolean)0;
76 return egl->getSyncAttribKHR(dpy, sync, attribute, value);
77}
78
79EGLBoolean eglwLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list)
80{
Pyry Hauloscc5411b2017-03-30 16:42:23 -070081 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
Pyry Haulosca801e72016-11-17 15:26:29 -080082 if (!egl)
83 return (EGLBoolean)0;
84 return egl->lockSurfaceKHR(dpy, surface, attrib_list);
85}
86
87EGLBoolean eglwSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects)
88{
Pyry Hauloscc5411b2017-03-30 16:42:23 -070089 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
Pyry Haulosca801e72016-11-17 15:26:29 -080090 if (!egl)
91 return (EGLBoolean)0;
92 return egl->setDamageRegionKHR(dpy, surface, rects, n_rects);
93}
94
95EGLBoolean eglwSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode)
96{
Pyry Hauloscc5411b2017-03-30 16:42:23 -070097 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
Pyry Haulosca801e72016-11-17 15:26:29 -080098 if (!egl)
99 return (EGLBoolean)0;
100 return egl->signalSyncKHR(dpy, sync, mode);
101}
102
103EGLBoolean eglwSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects)
104{
Pyry Hauloscc5411b2017-03-30 16:42:23 -0700105 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
Pyry Haulosca801e72016-11-17 15:26:29 -0800106 if (!egl)
107 return (EGLBoolean)0;
108 return egl->swapBuffersWithDamageKHR(dpy, surface, rects, n_rects);
109}
110
111EGLBoolean eglwUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface)
112{
Pyry Hauloscc5411b2017-03-30 16:42:23 -0700113 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
Pyry Haulosca801e72016-11-17 15:26:29 -0800114 if (!egl)
115 return (EGLBoolean)0;
116 return egl->unlockSurfaceKHR(dpy, surface);
117}
118
119EGLint eglwWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags)
120{
Pyry Hauloscc5411b2017-03-30 16:42:23 -0700121 const eglw::Library* egl = eglw::getCurrentThreadLibrary();
Pyry Haulosca801e72016-11-17 15:26:29 -0800122 if (!egl)
123 return (EGLint)0;
Pyry Hauloscc5411b2017-03-30 16:42:23 -0700124 return egl->waitSyncKHR(dpy, sync, flags);
Pyry Haulosca801e72016-11-17 15:26:29 -0800125}