diff options
author | emersion <contact@emersion.fr> | 2018-06-17 14:49:18 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-06-17 14:49:18 +0100 |
commit | 57548b557ae9e4f2b03c2d78996706f0990ab9d6 (patch) | |
tree | 85d7ae8d5d3f302d16914690f8e30e40e8ba0969 /include/render | |
parent | bd0c1b794992bf94560bd429f4057c9d09989f06 (diff) | |
parent | fb118ac9966bbb663ddb9964f54c879a0bb88fba (diff) |
Merge branch 'master' into screencontent
Diffstat (limited to 'include/render')
-rw-r--r-- | include/render/gles2.h | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/include/render/gles2.h b/include/render/gles2.h index 99beff29..67d4e9f5 100644 --- a/include/render/gles2.h +++ b/include/render/gles2.h @@ -25,6 +25,14 @@ struct wlr_gles2_pixel_format { bool has_alpha; }; +struct wlr_gles2_tex_shader { + GLuint program; + GLint proj; + GLint invert_y; + GLint tex; + GLint alpha; +}; + struct wlr_gles2_renderer { struct wlr_renderer wlr_renderer; @@ -32,11 +40,19 @@ struct wlr_gles2_renderer { const char *exts_str; struct { - GLuint quad; - GLuint ellipse; - GLuint tex_rgba; - GLuint tex_rgbx; - GLuint tex_ext; + struct { + GLuint program; + GLint proj; + GLint color; + } quad; + struct { + GLuint program; + GLint proj; + GLint color; + } ellipse; + struct wlr_gles2_tex_shader tex_rgba; + struct wlr_gles2_tex_shader tex_rgbx; + struct wlr_gles2_tex_shader tex_ext; } shaders; uint32_t viewport_width, viewport_height; |