diff options
author | wm4 <wm4@nowhere> | 2015-12-19 13:05:10 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-12-19 14:14:12 +0100 |
commit | 4cc1861378c3b1e989b5d92ea49e3d02f5e4a65a (patch) | |
tree | 3ae36f802e733d4deae518efc04a0a38e068c3b8 /video/out/opengl/context_rpi.h | |
parent | 6154c1d06d38bd236a0adb57556f7d871b75469b (diff) |
vo_opengl: prefix per-backend source files with context_
Diffstat (limited to 'video/out/opengl/context_rpi.h')
-rw-r--r-- | video/out/opengl/context_rpi.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/video/out/opengl/context_rpi.h b/video/out/opengl/context_rpi.h new file mode 100644 index 0000000000..c2c6dd0dc4 --- /dev/null +++ b/video/out/opengl/context_rpi.h @@ -0,0 +1,20 @@ +#include <bcm_host.h> + +#include <EGL/egl.h> +#include <EGL/eglext.h> + +#include "common.h" + +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); |