Merge branch 'scene-snapshot' into 'master'

scene: add wlr_scene_node_snapshot()

See merge request wlroots/wlroots!4558
This commit is contained in:
Simon Ser 2026-01-21 15:03:53 +00:00
commit 0b5b4f85f8
2 changed files with 89 additions and 0 deletions

View file

@ -348,6 +348,15 @@ void wlr_scene_node_for_each_buffer(struct wlr_scene_node *node,
*/
struct wlr_scene_node *wlr_scene_node_at(struct wlr_scene_node *node,
double lx, double ly, double *nx, double *ny);
/**
* Create a new scene node which represents a snapshot of another node.
*
* The snapshot displays the same contents as the source node at the time of
* its creation. The snapshot is completely independent from the source node:
* when the source node is updated, the snapshot will stay as-is.
*/
struct wlr_scene_node *wlr_scene_node_snapshot(struct wlr_scene_node *node,
struct wlr_scene_tree *parent);
/**
* Create a new scene-graph.