scene: iterate nodes instead of surfaces when rendering

This will allow us to create node types which are rendered but not
surface-based, such as a solid color or image.
This commit is contained in:
Devin J. Pohly 2021-08-13 15:18:29 -05:00 committed by Simon Ser
parent b0972a94c3
commit 526652a554
2 changed files with 49 additions and 18 deletions

View file

@ -67,6 +67,9 @@ struct wlr_scene_surface {
struct wl_listener surface_destroy;
};
typedef void (*wlr_scene_node_iterator_func_t)(struct wlr_scene_node *node,
int sx, int sy, void *data);
/**
* Immediately destroy the scene-graph node.
*/