diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-08-07 08:30:11 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-08-07 08:30:23 +0200 |
commit | 81050e426bbd7e5cd53820ebd3c2a4a42cc18c6f (patch) | |
tree | b76626e4c40389224518f04d80fb954448f750ab /include | |
parent | fb73de12aecca5d14bf73326a977c87ac6c47949 (diff) |
load eglGetProcAddress
Diffstat (limited to 'include')
-rw-r--r-- | include/mgl/gl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mgl/gl.h b/include/mgl/gl.h index dace8ef..3a96241 100644 --- a/include/mgl/gl.h +++ b/include/mgl/gl.h @@ -22,6 +22,7 @@ typedef uintptr_t EGLNativeWindowType; typedef void* EGLConfig; typedef void* EGLSurface; typedef void* EGLContext; +typedef void (*__eglMustCastToProperFunctionPointerType)(void); typedef struct { void *gl_library; @@ -36,6 +37,7 @@ typedef struct { GLXFBConfig* (*glXChooseFBConfig)(Display *dpy, int screen, const int *attribList, int *nitems); _XVisualInfo* (*glXGetVisualFromFBConfig)(Display *dpy, GLXFBConfig config); + __eglMustCastToProperFunctionPointerType (*eglGetProcAddress)(const char *procname); EGLDisplay (*eglGetDisplay)(EGLNativeDisplayType display_id); unsigned int (*eglInitialize)(EGLDisplay dpy, int32_t *major, int32_t *minor); unsigned int (*eglTerminate)(EGLDisplay dpy); |