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

@@ -11,15 +11,15 @@
#define OPENGL_RETRIEVE_DRIVER_DATA_AS(handle, cast) ((cast)handle->driver_data)
#include "EGL/EGLInstance.h"
#include "OpenGLEnums.h"
typedef struct OpenGLDriverData
{
union
{
EGLInstance egl_instance;
};
} OpenGLDriverData;
#define GL_GLES_PROTOTYPES 0
#include <GLES3/gl31.h>
#define GL_STACK_UNDERFLOW 0x0504
#define GL_STACK_OVERFLOW 0x0503
typedef void(*GLFunction)(void);
PulseBackendFlags OpenGLCheckSupport(PulseBackendFlags candidates, PulseShaderFormatsFlags shader_formats_used); // Return PULSE_BACKEND_OPENGL in case of success and PULSE_BACKEND_INVALID otherwise
PulseBackendFlags OpenGLESCheckSupport(PulseBackendFlags candidates, PulseShaderFormatsFlags shader_formats_used); // Return PULSE_BACKEND_OPENGL_ES in case of success and PULSE_BACKEND_INVALID otherwise