mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
6dc9280b58
Add a function to egl_helpers.c for creating an EGL context and make context_x11egl.c use it. This is meant to be generic, and should work with other windowing APIs as well. The other EGL-using code in mpv can be switched to it.
15 lines
304 B
C
15 lines
304 B
C
#ifndef MP_GL_EGL_HELPERS_H
|
|
#define MP_GL_EGL_HELPERS_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <EGL/egl.h>
|
|
#include <EGL/eglext.h>
|
|
|
|
struct mp_log;
|
|
|
|
bool mpegl_create_context(EGLDisplay display, struct mp_log *log, int vo_flags,
|
|
EGLContext *out_context, EGLConfig *out_config);
|
|
|
|
#endif
|