diff options
author | wm4 <wm4@nowhere> | 2016-09-13 15:38:51 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-13 18:03:43 +0200 |
commit | 6dc9280b580835d37fa8a8664b6bc142254ce1a1 (patch) | |
tree | d778fa0999b0654f9e4263c5ece43aa44863c9e0 /video/out/opengl/egl_helpers.h | |
parent | 3905c46f9a0f86b7e5fc40e7408cda1f695d4b57 (diff) | |
download | mpv-6dc9280b580835d37fa8a8664b6bc142254ce1a1.tar.bz2 mpv-6dc9280b580835d37fa8a8664b6bc142254ce1a1.tar.xz |
vo_opengl: factor some EGL context creation code
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.
Diffstat (limited to 'video/out/opengl/egl_helpers.h')
-rw-r--r-- | video/out/opengl/egl_helpers.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/video/out/opengl/egl_helpers.h b/video/out/opengl/egl_helpers.h index 3806ef1d35..04197493f3 100644 --- a/video/out/opengl/egl_helpers.h +++ b/video/out/opengl/egl_helpers.h @@ -1,7 +1,14 @@ #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 |