From c36c596b7bc4700d05eaacdd229e8ebd3e312018 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 18 Aug 2015 22:00:40 +0200 Subject: rpi: factor out context creation To be used by vo_rpi.c. No functional changes. --- video/out/gl_rpi.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 video/out/gl_rpi.h (limited to 'video/out/gl_rpi.h') diff --git a/video/out/gl_rpi.h b/video/out/gl_rpi.h new file mode 100644 index 0000000000..e00762b632 --- /dev/null +++ b/video/out/gl_rpi.h @@ -0,0 +1,17 @@ +#include +#include +#include + +struct mp_egl_rpi { + struct mp_log *log; + struct GL *gl; + EGLDisplay egl_display; + EGLContext egl_context; + EGLSurface egl_surface; + // yep, the API keeps a pointer to it + EGL_DISPMANX_WINDOW_T egl_window; +}; + +int mp_egl_rpi_init(struct mp_egl_rpi *p, DISPMANX_ELEMENT_HANDLE_T window, + int w, int h); +void mp_egl_rpi_destroy(struct mp_egl_rpi *p); -- cgit v1.2.3