1 !egl 2 3 %#include <EGL/egl.h> 4 5 %// Return types must be single words, see GLDispatch.cpp 6 %typedef const char* EGLconstcharptr; 7 8 EGLBoolean eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config); 9 EGLBoolean eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target); 10 EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list); 11 EGLSurface eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list); 12 EGLSurface eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list); 13 EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list); 14 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx); 15 EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface); 16 EGLBoolean eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value); 17 EGLBoolean eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config); 18 EGLDisplay eglGetCurrentDisplay(void); 19 EGLSurface eglGetCurrentSurface(EGLint readdraw); 20 EGLDisplay eglGetDisplay(EGLNativeDisplayType display_id); 21 EGLint eglGetError(void); 22 void* eglGetProcAddress(const char *procname); 23 EGLBoolean eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor); 24 EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx); 25 EGLBoolean eglQueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value); 26 EGLconstcharptr eglQueryString(EGLDisplay dpy, EGLint name); 27 EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value); 28 EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface surface); 29 EGLBoolean eglTerminate(EGLDisplay dpy); 30 EGLBoolean eglWaitGL(void); 31 EGLBoolean eglWaitNative(EGLint engine); 32 33 EGLBoolean eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); 34 EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer); 35 EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value); 36 EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval); 37 38 EGLBoolean eglBindAPI(EGLenum api); 39 EGLenum eglQueryAPI(void); 40 EGLSurface eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list); 41 EGLBoolean eglReleaseThread(void); 42 EGLBoolean eglWaitClient(void); 43 44 EGLContext eglGetCurrentContext(void); 45