From 61dab42c70fd3e0ee211a8b52f387b0c1018510f Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Thu, 19 May 2022 14:17:51 -0400 Subject: wlr_scene: Add setter for buffer of a wlr_scene_buffer --- include/wlr/types/wlr_scene.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 6cc842b4..eaa7b07c 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -275,6 +275,14 @@ void wlr_scene_rect_set_color(struct wlr_scene_rect *rect, const float color[sta struct wlr_scene_buffer *wlr_scene_buffer_create(struct wlr_scene_node *parent, struct wlr_buffer *buffer); +/** + * Sets the buffer's backing buffer. + * + * If the buffer is NULL, the buffer node will not be displayed. + */ +void wlr_scene_buffer_set_buffer(struct wlr_scene_buffer *scene_buffer, + struct wlr_buffer *buffer); + /** * Set the source rectangle describing the region of the buffer which will be * sampled to render this node. This allows cropping the buffer. -- cgit v1.2.3