summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context_rpi.h
blob: 60bd9c72d205a5bcab09ae446341a42bb687ef04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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;
    EGLConfig egl_config;
    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);