diff options
author | NeKit <nekit1000@gmail.com> | 2018-06-13 13:43:01 +0300 |
---|---|---|
committer | NeKit <nekit1000@gmail.com> | 2018-06-13 13:43:01 +0300 |
commit | 6f29db10446662ac6741e4a63bac74380f01199e (patch) | |
tree | 723b0bbdeae45c4a6abdaa5a630018d8363c11a0 /include | |
parent | de91c55ea9da1b4c22bc377a7013efdcc71fff06 (diff) |
gles2 renderer: introduce struct wlr_gles2_tex_shader
Diffstat (limited to 'include')
-rw-r--r-- | include/render/gles2.h | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/include/render/gles2.h b/include/render/gles2.h index c47751d1..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; @@ -42,27 +50,9 @@ struct wlr_gles2_renderer { GLint proj; GLint color; } ellipse; - struct { - GLuint program; - GLint proj; - GLint invert_y; - GLint tex; - GLint alpha; - } tex_rgba; - struct { - GLuint program; - GLint proj; - GLint invert_y; - GLint tex; - GLint alpha; - } tex_rgbx; - struct { - GLuint program; - GLint proj; - GLint invert_y; - GLint tex; - GLint alpha; - } tex_ext; + 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; |