2015-08-18 20:00:40 +00:00
|
|
|
#include <bcm_host.h>
|
2015-09-25 14:02:15 +00:00
|
|
|
|
2015-09-27 14:10:22 +00:00
|
|
|
#include <EGL/egl.h>
|
|
|
|
#include <EGL/eglext.h>
|
|
|
|
|
2015-09-25 14:02:15 +00:00
|
|
|
#include "common.h"
|
2015-08-18 20:00:40 +00:00
|
|
|
|
|
|
|
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);
|