scene: add wlr_scene_node_snapshot()

This commit is contained in:
Simon Ser 2024-02-16 13:40:39 +01:00
parent 22178451f7
commit f9becb31e1
2 changed files with 89 additions and 0 deletions

View file

@ -301,6 +301,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.