From c5d08f608553f4d12607ab4aa52320e89de50d95 Mon Sep 17 00:00:00 2001 From: William McKinnon Date: Sun, 21 Aug 2022 16:30:00 -0400 Subject: Render rect with fx_renderer (#14) * initial fx_render_rect work * fixed rect rendering --- include/sway/desktop/fx_renderer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/sway') diff --git a/include/sway/desktop/fx_renderer.h b/include/sway/desktop/fx_renderer.h index bf8cd3d1..f2ed0cbc 100644 --- a/include/sway/desktop/fx_renderer.h +++ b/include/sway/desktop/fx_renderer.h @@ -48,4 +48,6 @@ bool fx_render_subtexture_with_matrix(struct fx_renderer *renderer, bool fx_render_texture_with_matrix(struct fx_renderer *renderer, struct wlr_texture *wlr_texture, const float matrix[static 9], float alpha); +void fx_render_rect(struct fx_renderer *renderer, const struct wlr_box *box, const float color[static 4], const float projection[static 9]); + #endif -- cgit v1.2.3