Path: blob/v3_openjdk/app_pojavlauncher/src/main/jni/ctxbridges/egl_loader.h
2128 views
//1// Created by maks on 21.09.2022.2//3#include <EGL/egl.h>4#include <stdbool.h>5#ifndef POJAVLAUNCHER_EGL_LOADER_H6#define POJAVLAUNCHER_EGL_LOADER_H78extern EGLBoolean (*eglMakeCurrent_p) (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);9extern EGLBoolean (*eglDestroyContext_p) (EGLDisplay dpy, EGLContext ctx);10extern EGLBoolean (*eglDestroySurface_p) (EGLDisplay dpy, EGLSurface surface);11extern EGLBoolean (*eglTerminate_p) (EGLDisplay dpy);12extern EGLBoolean (*eglReleaseThread_p) (void);13extern EGLContext (*eglGetCurrentContext_p) (void);14extern EGLDisplay (*eglGetDisplay_p) (NativeDisplayType display);15extern EGLBoolean (*eglInitialize_p) (EGLDisplay dpy, EGLint *major, EGLint *minor);16extern EGLBoolean (*eglChooseConfig_p) (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);17extern EGLBoolean (*eglGetConfigAttrib_p) (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);18extern EGLBoolean (*eglBindAPI_p) (EGLenum api);19extern EGLSurface (*eglCreatePbufferSurface_p) (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);20extern EGLSurface (*eglCreateWindowSurface_p) (EGLDisplay dpy, EGLConfig config, NativeWindowType window, const EGLint *attrib_list);21extern EGLBoolean (*eglSwapBuffers_p) (EGLDisplay dpy, EGLSurface draw);22extern EGLint (*eglGetError_p) (void);23extern EGLContext (*eglCreateContext_p) (EGLDisplay dpy, EGLConfig config, EGLContext share_list, const EGLint *attrib_list);24extern EGLBoolean (*eglSwapInterval_p) (EGLDisplay dpy, EGLint interval);25extern EGLSurface (*eglGetCurrentSurface_p) (EGLint readdraw);26extern EGLBoolean (*eglQuerySurface_p)( EGLDisplay display,27EGLSurface surface,28EGLint attribute,29EGLint * value);30extern __eglMustCastToProperFunctionPointerType (*eglGetProcAddress_p) (const char *procname);3132bool dlsym_EGL();3334#endif //POJAVLAUNCHER_EGL_LOADER_H353637