Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/PojavLauncher
Path: blob/v3_openjdk/app_pojavlauncher/src/main/jni/ctxbridges/gl_bridge.h
2128 views
1
//
2
// Created by maks on 17.09.2022.
3
//
4
#include <EGL//egl.h>
5
#include <stdbool.h>
6
#ifndef POJAVLAUNCHER_GL_BRIDGE_H
7
#define POJAVLAUNCHER_GL_BRIDGE_H
8
9
typedef struct {
10
char state;
11
struct ANativeWindow *nativeSurface;
12
struct ANativeWindow *newNativeSurface;
13
EGLConfig config;
14
EGLint format;
15
EGLContext context;
16
EGLSurface surface;
17
} gl_render_window_t;
18
19
bool gl_init();
20
gl_render_window_t* gl_get_current();
21
gl_render_window_t* gl_init_context(gl_render_window_t* share);
22
void gl_make_current(gl_render_window_t* bundle);
23
void gl_swap_buffers();
24
void gl_setup_window();
25
void gl_swap_interval(int swapInterval);
26
27
28
#endif //POJAVLAUNCHER_GL_BRIDGE_H
29
30