working on OpenGL loading

This commit is contained in:
2025-03-23 00:43:40 +01:00
parent 3e6aa18fbe
commit 6c2119d806
28 changed files with 1088 additions and 63 deletions

View File

@@ -9,6 +9,7 @@
#define EGL_EGL_PROTOTYPES 0
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <Pulse.h>
typedef struct EGLInstance
@@ -18,12 +19,16 @@ typedef struct EGLInstance
EGLContext context;
EGLConfig config;
EGLDeviceEXT device;
#define PULSE_EGL_FUNCTION(fn, T) T fn;
#define PULSE_EGL_FUNCTION_EXT(fn, T) T fn;
#include "EGLFunctions.h"
#undef PULSE_EGL_FUNCTION
#undef PULSE_EGL_FUNCTION_EXT
} EGLInstance;
bool EGLLoadInstance(EGLInstance* instance, bool es_context);
bool EGLLoadInstance(EGLInstance* instance, PulseDevice* forbiden_devices, uint32_t forbiden_devices_count, bool es_context);
void EGLUnloadInstance(EGLInstance* instance);
#endif // PULSE_EGL_CONTEXT_H_