diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-10 22:15:37 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-08-10 22:15:37 -0400 |
commit | c24351681f672a2ce561b9cb6d73172dfc36c45c (patch) | |
tree | 5b39ee3fd871e90cfbf0f0a057d11debc15caf97 /include/render | |
parent | 4aaf76cb66865efb8ea902a45596cd12d0f73b8e (diff) |
Refactor EGL handling
Diffstat (limited to 'include/render')
-rw-r--r-- | include/render/gles2.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/render/gles2.h b/include/render/gles2.h index cb78a181..3006872c 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -7,6 +7,8 @@ #include <GLES2/gl2ext.h> #include <EGL/egl.h> #include <EGL/eglext.h> +#include <wlr/egl.h> +#include <wlr/backend.h> #include <wlr/render.h> #include <wlr/util/log.h> @@ -19,8 +21,14 @@ struct pixel_format { GLuint *shader; }; +struct wlr_renderer_state { + struct wlr_renderer *renderer; + struct wlr_egl *egl; +}; + struct wlr_texture_state { struct wlr_texture *wlr_texture; + struct wlr_egl *egl; GLuint tex_id; const struct pixel_format *pixel_format; EGLImageKHR image; |