summaryrefslogtreecommitdiff
path: root/include/render/pass.h
diff options
context:
space:
mode:
authorErik Reider <[email protected]>2024-01-02 01:19:48 +0100
committerErik Reider <[email protected]>2024-01-04 02:11:25 +0100
commitc15af4a182314d8384fc6b28e7c3fc58c0352b83 (patch)
tree841c17acede5ead7b8c08c9668d0b148ad5c26e4 /include/render/pass.h
parent1a6918f948be034e65c50af8969d090b5e762dc1 (diff)
Added back shadow effect
Diffstat (limited to 'include/render/pass.h')
-rw-r--r--include/render/pass.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/render/pass.h b/include/render/pass.h
index 9551f81..ec38a73 100644
--- a/include/render/pass.h
+++ b/include/render/pass.h
@@ -5,6 +5,7 @@
#include <wlr/render/pass.h>
#include <wlr/util/box.h>
#include <wlr/render/interface.h>
+#include "types/fx/shadow_data.h"
struct fx_gles_render_pass {
struct wlr_render_pass base;
@@ -24,6 +25,7 @@ struct fx_gles_render_pass *fx_renderer_begin_buffer_pass(struct wlr_renderer *r
struct fx_render_texture_options {
struct wlr_render_texture_options base;
+ struct wlr_box *clip_box; // Used to clip csd. Ignored if NULL
int corner_radius;
};
@@ -49,4 +51,17 @@ void fx_render_pass_add_texture(struct fx_gles_render_pass *render_pass,
void fx_render_pass_add_rect(struct fx_gles_render_pass *render_pass,
const struct fx_render_rect_options *options);
+/**
+ * Render a stencil mask.
+ */
+void fx_render_pass_add_stencil_mask(struct fx_gles_render_pass *pass,
+ const struct fx_render_rect_options *fx_options, int corner_radius);
+
+/**
+ * Render a box shadow.
+ */
+void fx_render_pass_add_box_shadow(struct fx_gles_render_pass *pass,
+ const struct fx_render_rect_options *fx_options,
+ int corner_radius, struct shadow_data *shadow_data);
+
#endif