From 3c26244340fe09fb99368a1c2326335db86fbf5f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 20 Sep 2021 18:19:05 +0200 Subject: scene: add wlr_scene_buffer_set_transform --- include/wlr/types/wlr_scene.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 6c5194f8..3b3035d0 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -96,6 +96,7 @@ struct wlr_scene_buffer { struct wlr_texture *texture; struct wlr_fbox src_box; int dst_width, dst_height; + enum wl_output_transform transform; }; /** A viewport for an output in the scene-graph */ @@ -232,6 +233,12 @@ void wlr_scene_buffer_set_source_box(struct wlr_scene_buffer *scene_buffer, void wlr_scene_buffer_set_dest_size(struct wlr_scene_buffer *scene_buffer, int width, int height); +/** + * Set a transform which will be applied to the buffer. + */ +void wlr_scene_buffer_set_transform(struct wlr_scene_buffer *scene_buffer, + enum wl_output_transform transform); + /** * Add a viewport for the specified output to the scene-graph. * -- cgit v1.2.3