Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/PojavLauncher
Path: blob/v3_openjdk/app_pojavlauncher/src/main/jni/ctxbridges/egl_loader.h
2128 views
1
//
2
// Created by maks on 21.09.2022.
3
//
4
#include <EGL/egl.h>
5
#include <stdbool.h>
6
#ifndef POJAVLAUNCHER_EGL_LOADER_H
7
#define POJAVLAUNCHER_EGL_LOADER_H
8
9
extern EGLBoolean (*eglMakeCurrent_p) (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
10
extern EGLBoolean (*eglDestroyContext_p) (EGLDisplay dpy, EGLContext ctx);
11
extern EGLBoolean (*eglDestroySurface_p) (EGLDisplay dpy, EGLSurface surface);
12
extern EGLBoolean (*eglTerminate_p) (EGLDisplay dpy);
13
extern EGLBoolean (*eglReleaseThread_p) (void);
14
extern EGLContext (*eglGetCurrentContext_p) (void);
15
extern EGLDisplay (*eglGetDisplay_p) (NativeDisplayType display);
16
extern EGLBoolean (*eglInitialize_p) (EGLDisplay dpy, EGLint *major, EGLint *minor);
17
extern EGLBoolean (*eglChooseConfig_p) (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
18
extern EGLBoolean (*eglGetConfigAttrib_p) (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
19
extern EGLBoolean (*eglBindAPI_p) (EGLenum api);
20
extern EGLSurface (*eglCreatePbufferSurface_p) (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
21
extern EGLSurface (*eglCreateWindowSurface_p) (EGLDisplay dpy, EGLConfig config, NativeWindowType window, const EGLint *attrib_list);
22
extern EGLBoolean (*eglSwapBuffers_p) (EGLDisplay dpy, EGLSurface draw);
23
extern EGLint (*eglGetError_p) (void);
24
extern EGLContext (*eglCreateContext_p) (EGLDisplay dpy, EGLConfig config, EGLContext share_list, const EGLint *attrib_list);
25
extern EGLBoolean (*eglSwapInterval_p) (EGLDisplay dpy, EGLint interval);
26
extern EGLSurface (*eglGetCurrentSurface_p) (EGLint readdraw);
27
extern EGLBoolean (*eglQuerySurface_p)( EGLDisplay display,
28
EGLSurface surface,
29
EGLint attribute,
30
EGLint * value);
31
extern __eglMustCastToProperFunctionPointerType (*eglGetProcAddress_p) (const char *procname);
32
33
bool dlsym_EGL();
34
35
#endif //POJAVLAUNCHER_EGL_LOADER_H
36
37