summaryrefslogtreecommitdiff
path: root/include/scenefx/render/pass.h
diff options
context:
space:
mode:
authorWilliam McKinnon <[email protected]>2024-10-25 11:14:37 -0400
committerGitHub <[email protected]>2024-10-25 11:14:37 -0400
commitd998099612f0397234910ce753859ee127ec5b45 (patch)
treee60d699901f14054ea44718b1be8fcaf7dc9f244 /include/scenefx/render/pass.h
parentbe5a78ac298f3b23c9955022ad35a18180a5894a (diff)
feat: add shadow_node (#66)
--------- Co-authored-by: Erik Reider <[email protected]>
Diffstat (limited to 'include/scenefx/render/pass.h')
-rw-r--r--include/scenefx/render/pass.h9
1 files changed, 5 insertions, 4 deletions
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 <stdbool.h>
#include <wlr/render/pass.h>
#include <wlr/render/interface.h>
-#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 {