mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-13 04:27:56 -05:00
scene: add wlr_scene_node_snapshot()
This commit is contained in:
parent
22178451f7
commit
f9becb31e1
2 changed files with 89 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue