starting merge

This commit is contained in:
2025-03-22 03:43:35 +01:00
parent 35d1c0ff7f
commit 3e6aa18fbe
12 changed files with 245 additions and 84 deletions

31
Sources/Backends/OpenGL/EGL/EGLInstance.h git.filemode.normal_file
View File

@@ -0,0 +1,31 @@
// Copyright (C) 2025 kanel
// This file is part of "Pulse"
// For conditions of distribution and use, see copyright notice in LICENSE
#ifdef PULSE_ENABLE_OPENGL_BACKEND
#ifndef PULSE_EGL_CONTEXT_H_
#define PULSE_EGL_CONTEXT_H_
#define EGL_EGL_PROTOTYPES 0
#include <EGL/egl.h>
#include <Pulse.h>
typedef struct EGLInstance
{
EGLDisplay display;
EGLSurface surface;
EGLContext context;
EGLConfig config;
#define PULSE_EGL_FUNCTION(fn, T) T fn;
#include "EGLFunctions.h"
#undef PULSE_EGL_FUNCTION
} EGLInstance;
bool EGLLoadInstance(EGLInstance* instance, bool es_context);
void EGLUnloadInstance(EGLInstance* instance);
#endif // PULSE_EGL_CONTEXT_H_
#endif // PULSE_ENABLE_OPENGL_BACKEND