summaryrefslogtreecommitdiff
path: root/types/fx
diff options
context:
space:
mode:
authoramy <[email protected]>2024-10-27 19:14:24 -0500
committerGitHub <[email protected]>2024-10-27 19:14:24 -0500
commit5eaf99e89af029623297f08d684cd98449c81eb3 (patch)
tree6d139a90abffb3a706fdc40126c0701abfb8cd79 /types/fx
parent042ed3a4c2667d04613fe6800700e9b1943fdb70 (diff)
parentd998099612f0397234910ce753859ee127ec5b45 (diff)
Merge branch 'wlrfx:main' into mainHEADmain
Diffstat (limited to 'types/fx')
-rw-r--r--types/fx/meson.build1
-rw-r--r--types/fx/shadow_data.c15
2 files changed, 0 insertions, 16 deletions
diff --git a/types/fx/meson.build b/types/fx/meson.build
index 3932965..d8bef8c 100644
--- a/types/fx/meson.build
+++ b/types/fx/meson.build
@@ -1,4 +1,3 @@
scenefx_files += files(
- 'shadow_data.c',
'blur_data.c',
)
diff --git a/types/fx/shadow_data.c b/types/fx/shadow_data.c
deleted file mode 100644
index d74cadc..0000000
--- a/types/fx/shadow_data.c
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "scenefx/types/fx/shadow_data.h"
-
-struct shadow_data shadow_data_get_default(void) {
- return (struct shadow_data) {
- .blur_sigma = 20,
- .color = {0.0f, 0.0f, 0.0f, 0.5f},
- .enabled = false,
- .offset_x = 0.0f,
- .offset_y = 0.0f,
- };
-}
-
-bool scene_buffer_has_shadow(struct shadow_data *data) {
- return data->enabled && data->blur_sigma > 0 && data->color.a > 0.0;
-}