From d998099612f0397234910ce753859ee127ec5b45 Mon Sep 17 00:00:00 2001 From: William McKinnon Date: Fri, 25 Oct 2024 11:14:37 -0400 Subject: feat: add shadow_node (#66) --------- Co-authored-by: Erik Reider <35975961+ErikReider@users.noreply.github.com> --- include/scenefx/render/pass.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include/scenefx/render') diff --git a/include/scenefx/render/pass.h b/include/scenefx/render/pass.h index d005c37..9e92f90 100644 --- a/include/scenefx/render/pass.h +++ b/include/scenefx/render/pass.h @@ -4,7 +4,6 @@ #include #include #include -#include "scenefx/types/fx/shadow_data.h" struct fx_gles_render_pass { struct wlr_render_pass base; @@ -43,13 +42,15 @@ struct fx_render_rect_options { }; struct fx_render_box_shadow_options { - struct wlr_box shadow_box; - struct wlr_box clip_box; + struct wlr_box box; + struct wlr_box window_box; + int window_corner_radius; /* Clip region, leave NULL to disable clipping */ const pixman_region32_t *clip; - struct shadow_data *shadow_data; + float blur_sigma; int corner_radius; + struct wlr_render_color color; }; struct fx_render_rounded_rect_options { -- cgit v1.2.3