diff options
author | William McKinnon <[email protected]> | 2022-08-21 17:12:54 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2022-08-21 17:12:54 -0400 |
commit | 5c0086b94422a63587508c34bbac9bde6b313ca3 (patch) | |
tree | 71ff3071045542fddce6c69e0804c9690b24bfef /include/sway/desktop/fx_renderer.h | |
parent | c5d08f608553f4d12607ab4aa52320e89de50d95 (diff) |
Add rounded corners (#9)
Diffstat (limited to 'include/sway/desktop/fx_renderer.h')
-rw-r--r-- | include/sway/desktop/fx_renderer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/sway/desktop/fx_renderer.h b/include/sway/desktop/fx_renderer.h index f2ed0cbc..5ed3bc7d 100644 --- a/include/sway/desktop/fx_renderer.h +++ b/include/sway/desktop/fx_renderer.h @@ -8,6 +8,7 @@ struct gles2_tex_shader { GLint proj; GLint tex; GLint alpha; + GLint discardOpaque; GLint pos_attrib; GLint tex_attrib; }; @@ -43,10 +44,10 @@ void fx_renderer_scissor(struct wlr_box *box); bool fx_render_subtexture_with_matrix(struct fx_renderer *renderer, struct wlr_texture *wlr_texture, const struct wlr_fbox *box, - const float matrix[static 9], float alpha); + const float matrix[static 9], float alpha, int radius); bool fx_render_texture_with_matrix(struct fx_renderer *renderer, - struct wlr_texture *wlr_texture, const float matrix[static 9], float alpha); + struct wlr_texture *wlr_texture, const float matrix[static 9], float alpha, int radius); void fx_render_rect(struct fx_renderer *renderer, const struct wlr_box *box, const float color[static 4], const float projection[static 9]); |