diff options
author | sfan5 <sfan5@live.de> | 2021-11-15 22:51:33 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-11-17 22:38:34 +0100 |
commit | b69af0abefd7fa78fbc5c233e264c9155b091ad9 (patch) | |
tree | 7b6111f04c918864257ee7967239959411d37ba3 /video/out/opengl/egl_helpers.h | |
parent | c3d78b00173a37f715510761f4cd6d01b1e403a2 (diff) | |
download | mpv-b69af0abefd7fa78fbc5c233e264c9155b091ad9.tar.bz2 mpv-b69af0abefd7fa78fbc5c233e264c9155b091ad9.tar.xz |
egl_helpers: introduce wrapper around eglCreatePlatformWindowSurface
It abstracts EGL 1.5, extension checks and other inconsistencies away.
This can be used in context code as the (preferred) alternative to
eglCreateWindowSurface().
Diffstat (limited to 'video/out/opengl/egl_helpers.h')
-rw-r--r-- | video/out/opengl/egl_helpers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/opengl/egl_helpers.h b/video/out/opengl/egl_helpers.h index bbd274e613..32ec5d12e4 100644 --- a/video/out/opengl/egl_helpers.h +++ b/video/out/opengl/egl_helpers.h @@ -32,4 +32,7 @@ void mpegl_load_functions(struct GL *gl, struct mp_log *log); EGLDisplay mpegl_get_display(EGLenum platform, const char *platform_ext_name, void *native_display); +EGLSurface mpegl_create_window_surface(EGLDisplay dpy, EGLConfig config, + void *native_window); + #endif |