summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/rpi.h
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-08-29 04:12:56 +0200
committerwm4 <wm4@nowhere>2015-09-09 18:09:31 +0200
commit44eda2177d8facb1cd064c164b16e9027529d164 (patch)
tree7f3d77dd5aa4757fdd6e062cc6ff5613151afb3d /video/out/opengl/rpi.h
parentdeebc55014074fef121c1df6b117e9c0bf97d516 (diff)
downloadmpv-44eda2177d8facb1cd064c164b16e9027529d164.tar.bz2
mpv-44eda2177d8facb1cd064c164b16e9027529d164.tar.xz
vo_opengl: remove gl_ prefixes from files in video/out/opengl
This is a bit redundant with the name of the directory itself, and not in line with existing naming conventions.
Diffstat (limited to 'video/out/opengl/rpi.h')
-rw-r--r--video/out/opengl/rpi.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/video/out/opengl/rpi.h b/video/out/opengl/rpi.h
new file mode 100644
index 0000000000..e00762b632
--- /dev/null
+++ b/video/out/opengl/rpi.h
@@ -0,0 +1,17 @@
+#include <bcm_host.h>
+#include <EGL/egl.h>
+#include <EGL/eglext.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);