1/* WARNING: This is auto-generated file. Do not modify, since changes will 2 * be lost! Modify the generating script instead. 3 * 4 * Generated from Khronos EGL API description (egl.xml) revision 3338ed0db494d6a4db7f76627b38f0b1892db096. 5 */ 6 7EGLBoolean eglwBindAPI (EGLenum api) 8{ 9 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 10 if (!egl) 11 return (EGLBoolean)0; 12 return egl->bindAPI(api); 13} 14 15EGLBoolean eglwBindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer) 16{ 17 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 18 if (!egl) 19 return (EGLBoolean)0; 20 return egl->bindTexImage(dpy, surface, buffer); 21} 22 23EGLBoolean eglwChooseConfig (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config) 24{ 25 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 26 if (!egl) 27 return (EGLBoolean)0; 28 return egl->chooseConfig(dpy, attrib_list, configs, config_size, num_config); 29} 30 31EGLint eglwClientWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout) 32{ 33 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 34 if (!egl) 35 return (EGLint)0; 36 return egl->clientWaitSync(dpy, sync, flags, timeout); 37} 38 39EGLBoolean eglwCopyBuffers (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target) 40{ 41 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 42 if (!egl) 43 return (EGLBoolean)0; 44 return egl->copyBuffers(dpy, surface, (void*)target); 45} 46 47EGLContext eglwCreateContext (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list) 48{ 49 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 50 if (!egl) 51 return (EGLContext)0; 52 return egl->createContext(dpy, config, share_context, attrib_list); 53} 54 55EGLImage eglwCreateImage (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list) 56{ 57 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 58 if (!egl) 59 return (EGLImage)0; 60 return egl->createImage(dpy, ctx, target, buffer, attrib_list); 61} 62 63EGLSurface eglwCreatePbufferFromClientBuffer (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list) 64{ 65 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 66 if (!egl) 67 return (EGLSurface)0; 68 return egl->createPbufferFromClientBuffer(dpy, buftype, buffer, config, attrib_list); 69} 70 71EGLSurface eglwCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list) 72{ 73 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 74 if (!egl) 75 return (EGLSurface)0; 76 return egl->createPbufferSurface(dpy, config, attrib_list); 77} 78 79EGLSurface eglwCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list) 80{ 81 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 82 if (!egl) 83 return (EGLSurface)0; 84 return egl->createPixmapSurface(dpy, config, (void*)pixmap, attrib_list); 85} 86 87EGLSurface eglwCreatePlatformPixmapSurface (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list) 88{ 89 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 90 if (!egl) 91 return (EGLSurface)0; 92 return egl->createPlatformPixmapSurface(dpy, config, native_pixmap, attrib_list); 93} 94 95EGLSurface eglwCreatePlatformWindowSurface (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list) 96{ 97 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 98 if (!egl) 99 return (EGLSurface)0; 100 return egl->createPlatformWindowSurface(dpy, config, native_window, attrib_list); 101} 102 103EGLSync eglwCreateSync (EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list) 104{ 105 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 106 if (!egl) 107 return (EGLSync)0; 108 return egl->createSync(dpy, type, attrib_list); 109} 110 111EGLSurface eglwCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list) 112{ 113 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 114 if (!egl) 115 return (EGLSurface)0; 116 return egl->createWindowSurface(dpy, config, (void*)win, attrib_list); 117} 118 119EGLBoolean eglwDestroyContext (EGLDisplay dpy, EGLContext ctx) 120{ 121 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 122 if (!egl) 123 return (EGLBoolean)0; 124 return egl->destroyContext(dpy, ctx); 125} 126 127EGLBoolean eglwDestroyImage (EGLDisplay dpy, EGLImage image) 128{ 129 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 130 if (!egl) 131 return (EGLBoolean)0; 132 return egl->destroyImage(dpy, image); 133} 134 135EGLBoolean eglwDestroySurface (EGLDisplay dpy, EGLSurface surface) 136{ 137 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 138 if (!egl) 139 return (EGLBoolean)0; 140 return egl->destroySurface(dpy, surface); 141} 142 143EGLBoolean eglwDestroySync (EGLDisplay dpy, EGLSync sync) 144{ 145 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 146 if (!egl) 147 return (EGLBoolean)0; 148 return egl->destroySync(dpy, sync); 149} 150 151EGLBoolean eglwGetConfigAttrib (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value) 152{ 153 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 154 if (!egl) 155 return (EGLBoolean)0; 156 return egl->getConfigAttrib(dpy, config, attribute, value); 157} 158 159EGLBoolean eglwGetConfigs (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config) 160{ 161 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 162 if (!egl) 163 return (EGLBoolean)0; 164 return egl->getConfigs(dpy, configs, config_size, num_config); 165} 166 167EGLContext eglwGetCurrentContext (void) 168{ 169 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 170 if (!egl) 171 return (EGLContext)0; 172 return egl->getCurrentContext(); 173} 174 175EGLDisplay eglwGetCurrentDisplay (void) 176{ 177 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 178 if (!egl) 179 return (EGLDisplay)0; 180 return egl->getCurrentDisplay(); 181} 182 183EGLSurface eglwGetCurrentSurface (EGLint readdraw) 184{ 185 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 186 if (!egl) 187 return (EGLSurface)0; 188 return egl->getCurrentSurface(readdraw); 189} 190 191EGLDisplay eglwGetDisplay (EGLNativeDisplayType display_id) 192{ 193 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 194 if (!egl) 195 return (EGLDisplay)0; 196 return egl->getDisplay((void*)display_id); 197} 198 199EGLint eglwGetError (void) 200{ 201 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 202 if (!egl) 203 return (EGLint)0; 204 return egl->getError(); 205} 206 207EGLDisplay eglwGetPlatformDisplay (EGLenum platform, void *native_display, const EGLAttrib *attrib_list) 208{ 209 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 210 if (!egl) 211 return (EGLDisplay)0; 212 return egl->getPlatformDisplay(platform, native_display, attrib_list); 213} 214 215__eglMustCastToProperFunctionPointerType eglwGetProcAddress (const char *procname) 216{ 217 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 218 if (!egl) 219 return (__eglMustCastToProperFunctionPointerType)0; 220 return egl->getProcAddress(procname); 221} 222 223EGLBoolean eglwGetSyncAttrib (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value) 224{ 225 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 226 if (!egl) 227 return (EGLBoolean)0; 228 return egl->getSyncAttrib(dpy, sync, attribute, value); 229} 230 231EGLBoolean eglwInitialize (EGLDisplay dpy, EGLint *major, EGLint *minor) 232{ 233 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 234 if (!egl) 235 return (EGLBoolean)0; 236 return egl->initialize(dpy, major, minor); 237} 238 239EGLBoolean eglwMakeCurrent (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx) 240{ 241 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 242 if (!egl) 243 return (EGLBoolean)0; 244 return egl->makeCurrent(dpy, draw, read, ctx); 245} 246 247EGLenum eglwQueryAPI (void) 248{ 249 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 250 if (!egl) 251 return (EGLenum)0; 252 return egl->queryAPI(); 253} 254 255EGLBoolean eglwQueryContext (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value) 256{ 257 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 258 if (!egl) 259 return (EGLBoolean)0; 260 return egl->queryContext(dpy, ctx, attribute, value); 261} 262 263const char * eglwQueryString (EGLDisplay dpy, EGLint name) 264{ 265 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 266 if (!egl) 267 return (const char *)0; 268 return egl->queryString(dpy, name); 269} 270 271EGLBoolean eglwQuerySurface (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value) 272{ 273 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 274 if (!egl) 275 return (EGLBoolean)0; 276 return egl->querySurface(dpy, surface, attribute, value); 277} 278 279EGLBoolean eglwReleaseTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer) 280{ 281 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 282 if (!egl) 283 return (EGLBoolean)0; 284 return egl->releaseTexImage(dpy, surface, buffer); 285} 286 287EGLBoolean eglwReleaseThread (void) 288{ 289 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 290 if (!egl) 291 return (EGLBoolean)0; 292 return egl->releaseThread(); 293} 294 295EGLBoolean eglwSurfaceAttrib (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value) 296{ 297 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 298 if (!egl) 299 return (EGLBoolean)0; 300 return egl->surfaceAttrib(dpy, surface, attribute, value); 301} 302 303EGLBoolean eglwSwapBuffers (EGLDisplay dpy, EGLSurface surface) 304{ 305 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 306 if (!egl) 307 return (EGLBoolean)0; 308 return egl->swapBuffers(dpy, surface); 309} 310 311EGLBoolean eglwSwapInterval (EGLDisplay dpy, EGLint interval) 312{ 313 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 314 if (!egl) 315 return (EGLBoolean)0; 316 return egl->swapInterval(dpy, interval); 317} 318 319EGLBoolean eglwTerminate (EGLDisplay dpy) 320{ 321 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 322 if (!egl) 323 return (EGLBoolean)0; 324 return egl->terminate(dpy); 325} 326 327EGLBoolean eglwWaitClient (void) 328{ 329 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 330 if (!egl) 331 return (EGLBoolean)0; 332 return egl->waitClient(); 333} 334 335EGLBoolean eglwWaitGL (void) 336{ 337 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 338 if (!egl) 339 return (EGLBoolean)0; 340 return egl->waitGL(); 341} 342 343EGLBoolean eglwWaitNative (EGLint engine) 344{ 345 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 346 if (!egl) 347 return (EGLBoolean)0; 348 return egl->waitNative(engine); 349} 350 351EGLBoolean eglwWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags) 352{ 353 const eglw::Library* egl = eglw::getCurrentThreadLibrary(); 354 if (!egl) 355 return (EGLBoolean)0; 356 return egl->waitSync(dpy, sync, flags); 357} 358