diff options
author | Simon Ser <contact@emersion.fr> | 2021-09-20 18:19:05 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-09-22 10:45:39 -0600 |
commit | 3c26244340fe09fb99368a1c2326335db86fbf5f (patch) | |
tree | e9f4b01b5091a5c6741272887e269b6549255747 /include/wlr | |
parent | 43833fba642bd7c63c6010965f1009a72dbe3e74 (diff) |
scene: add wlr_scene_buffer_set_transform
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_scene.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 */ @@ -233,6 +234,12 @@ 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. * * An output can only be added once to the scene-graph. |