diff options
author | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-05-19 14:17:51 -0400 |
---|---|---|
committer | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-05-19 14:17:51 -0400 |
commit | 61dab42c70fd3e0ee211a8b52f387b0c1018510f (patch) | |
tree | f7e51ff987a38c05fa3ec46df1f9f2d5abd18f40 /include | |
parent | 039a31df9a8708cdc0d054c105b4d078b3817dea (diff) |
wlr_scene: Add setter for buffer of a wlr_scene_buffer
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_scene.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ -276,6 +276,14 @@ 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. * |