#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <glad/egl.h>
#ifndef GLAD_IMPL_UTIL_C_
#define GLAD_IMPL_UTIL_C_
#ifdef _MSC_VER
#define GLAD_IMPL_UTIL_SSCANF …
#else
#define GLAD_IMPL_UTIL_SSCANF …
#endif
#endif
#ifdef __cplusplus
extern "C" {
#endif
int GLAD_EGL_VERSION_1_0 = …;
int GLAD_EGL_VERSION_1_1 = …;
int GLAD_EGL_VERSION_1_2 = …;
int GLAD_EGL_VERSION_1_3 = …;
int GLAD_EGL_VERSION_1_4 = …;
int GLAD_EGL_VERSION_1_5 = …;
int GLAD_EGL_ANDROID_blob_cache = …;
int GLAD_EGL_EXT_platform_base = …;
int GLAD_EGL_KHR_platform_wayland = …;
int GLAD_EGL_KHR_platform_x11 = …;
PFNEGLBINDAPIPROC glad_eglBindAPI = …;
PFNEGLBINDTEXIMAGEPROC glad_eglBindTexImage = …;
PFNEGLCHOOSECONFIGPROC glad_eglChooseConfig = …;
PFNEGLCLIENTWAITSYNCPROC glad_eglClientWaitSync = …;
PFNEGLCOPYBUFFERSPROC glad_eglCopyBuffers = …;
PFNEGLCREATECONTEXTPROC glad_eglCreateContext = …;
PFNEGLCREATEIMAGEPROC glad_eglCreateImage = …;
PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC glad_eglCreatePbufferFromClientBuffer = …;
PFNEGLCREATEPBUFFERSURFACEPROC glad_eglCreatePbufferSurface = …;
PFNEGLCREATEPIXMAPSURFACEPROC glad_eglCreatePixmapSurface = …;
PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC glad_eglCreatePlatformPixmapSurface = …;
PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC glad_eglCreatePlatformPixmapSurfaceEXT = …;
PFNEGLCREATEPLATFORMWINDOWSURFACEPROC glad_eglCreatePlatformWindowSurface = …;
PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC glad_eglCreatePlatformWindowSurfaceEXT = …;
PFNEGLCREATESYNCPROC glad_eglCreateSync = …;
PFNEGLCREATEWINDOWSURFACEPROC glad_eglCreateWindowSurface = …;
PFNEGLDESTROYCONTEXTPROC glad_eglDestroyContext = …;
PFNEGLDESTROYIMAGEPROC glad_eglDestroyImage = …;
PFNEGLDESTROYSURFACEPROC glad_eglDestroySurface = …;
PFNEGLDESTROYSYNCPROC glad_eglDestroySync = …;
PFNEGLGETCONFIGATTRIBPROC glad_eglGetConfigAttrib = …;
PFNEGLGETCONFIGSPROC glad_eglGetConfigs = …;
PFNEGLGETCURRENTCONTEXTPROC glad_eglGetCurrentContext = …;
PFNEGLGETCURRENTDISPLAYPROC glad_eglGetCurrentDisplay = …;
PFNEGLGETCURRENTSURFACEPROC glad_eglGetCurrentSurface = …;
PFNEGLGETDISPLAYPROC glad_eglGetDisplay = …;
PFNEGLGETERRORPROC glad_eglGetError = …;
PFNEGLGETPLATFORMDISPLAYPROC glad_eglGetPlatformDisplay = …;
PFNEGLGETPLATFORMDISPLAYEXTPROC glad_eglGetPlatformDisplayEXT = …;
PFNEGLGETPROCADDRESSPROC glad_eglGetProcAddress = …;
PFNEGLGETSYNCATTRIBPROC glad_eglGetSyncAttrib = …;
PFNEGLINITIALIZEPROC glad_eglInitialize = …;
PFNEGLMAKECURRENTPROC glad_eglMakeCurrent = …;
PFNEGLQUERYAPIPROC glad_eglQueryAPI = …;
PFNEGLQUERYCONTEXTPROC glad_eglQueryContext = …;
PFNEGLQUERYSTRINGPROC glad_eglQueryString = …;
PFNEGLQUERYSURFACEPROC glad_eglQuerySurface = …;
PFNEGLRELEASETEXIMAGEPROC glad_eglReleaseTexImage = …;
PFNEGLRELEASETHREADPROC glad_eglReleaseThread = …;
PFNEGLSETBLOBCACHEFUNCSANDROIDPROC glad_eglSetBlobCacheFuncsANDROID = …;
PFNEGLSURFACEATTRIBPROC glad_eglSurfaceAttrib = …;
PFNEGLSWAPBUFFERSPROC glad_eglSwapBuffers = …;
PFNEGLSWAPINTERVALPROC glad_eglSwapInterval = …;
PFNEGLTERMINATEPROC glad_eglTerminate = …;
PFNEGLWAITCLIENTPROC glad_eglWaitClient = …;
PFNEGLWAITGLPROC glad_eglWaitGL = …;
PFNEGLWAITNATIVEPROC glad_eglWaitNative = …;
PFNEGLWAITSYNCPROC glad_eglWaitSync = …;
static void glad_egl_load_EGL_VERSION_1_0( GLADuserptrloadfunc load, void* userptr) { … }
static void glad_egl_load_EGL_VERSION_1_1( GLADuserptrloadfunc load, void* userptr) { … }
static void glad_egl_load_EGL_VERSION_1_2( GLADuserptrloadfunc load, void* userptr) { … }
static void glad_egl_load_EGL_VERSION_1_4( GLADuserptrloadfunc load, void* userptr) { … }
static void glad_egl_load_EGL_VERSION_1_5( GLADuserptrloadfunc load, void* userptr) { … }
static void glad_egl_load_EGL_ANDROID_blob_cache( GLADuserptrloadfunc load, void* userptr) { … }
static void glad_egl_load_EGL_EXT_platform_base( GLADuserptrloadfunc load, void* userptr) { … }
static int glad_egl_get_extensions(EGLDisplay display, const char **extensions) { … }
static int glad_egl_has_extension(const char *extensions, const char *ext) { … }
static GLADapiproc glad_egl_get_proc_from_userptr(void *userptr, const char *name) { … }
static int glad_egl_find_extensions_egl(EGLDisplay display) { … }
static int glad_egl_find_core_egl(EGLDisplay display) { … }
int gladLoadEGLUserPtr(EGLDisplay display, GLADuserptrloadfunc load, void* userptr) { … }
int gladLoadEGL(EGLDisplay display, GLADloadfunc load) { … }
#ifdef GLAD_EGL
#ifndef GLAD_LOADER_LIBRARY_C_
#define GLAD_LOADER_LIBRARY_C_
#include <stddef.h>
#include <stdlib.h>
#if GLAD_PLATFORM_WIN32
#include <windows.h>
#else
#include <dlfcn.h>
#endif
static void* glad_get_dlopen_handle(const char *lib_names[], int length) { … }
static void glad_close_dlopen_handle(void* handle) { … }
static GLADapiproc glad_dlsym_handle(void* handle, const char *name) { … }
#endif
struct _glad_egl_userptr { … };
static GLADapiproc glad_egl_get_proc(void *vuserptr, const char* name) { … }
static void* _egl_handle = …;
static void* glad_egl_dlopen_handle(void) { … }
static struct _glad_egl_userptr glad_egl_build_userptr(void *handle) { … }
int gladLoaderLoadEGL(EGLDisplay display) { … }
void gladLoaderUnloadEGL() { … }
#endif
#ifdef __cplusplus
}
#endif