From b929a2bbadf467864796ad4ec90882ce86cfebff Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Sun, 6 Aug 2023 20:48:58 +0200 Subject: feat: add box shadows (#16) --- include/types/fx/shadow_data.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/types/fx/shadow_data.h (limited to 'include/types/fx') diff --git a/include/types/fx/shadow_data.h b/include/types/fx/shadow_data.h new file mode 100644 index 0000000..804acfe --- /dev/null +++ b/include/types/fx/shadow_data.h @@ -0,0 +1,17 @@ +#ifndef TYPES_DECORATION_DATA +#define TYPES_DECORATION_DATA + +#include +#include + +struct shadow_data { + bool enabled; + float *color; + float blur_sigma; +}; + +struct shadow_data shadow_data_get_default(void); + +bool scene_buffer_has_shadow(struct shadow_data *data); + +#endif -- cgit v1.2.3