From 67369173aaafd763a6369a84917ae457c7095a72 Mon Sep 17 00:00:00 2001 From: nyorain Date: Wed, 9 Aug 2017 21:25:34 +0200 Subject: Implement drm (egl) buffer attaching --- include/render/gles2.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/render') diff --git a/include/render/gles2.h b/include/render/gles2.h index 41af0593..7ad4ad2e 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -4,9 +4,14 @@ #include #include #include +#include +#include +#include #include #include +extern PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glEGLImageTargetTexture2DOES; + struct pixel_format { uint32_t wl_format; GLint gl_format, gl_type; @@ -18,6 +23,7 @@ struct wlr_texture_state { struct wlr_texture *wlr_texture; GLuint tex_id; const struct pixel_format *pixel_format; + EGLImageKHR image; }; struct shaders { @@ -25,6 +31,7 @@ struct shaders { GLuint rgba, rgbx; GLuint quad; GLuint ellipse; + Gluint external; }; extern struct shaders shaders; @@ -39,6 +46,7 @@ extern const GLchar ellipse_fragment_src[]; extern const GLchar vertex_src[]; extern const GLchar fragment_src_rgba[]; extern const GLchar fragment_src_rgbx[]; +extern const GLchar fragment_src_external[]; bool _gles2_flush_errors(const char *file, int line); #define gles2_flush_errors(...) \ -- cgit v1.2.3