scene: add wlr_scene_buffer_set_transform

This commit is contained in:
Simon Ser 2021-09-20 18:19:05 +02:00 committed by Simon Zeni
parent 43833fba64
commit 3c26244340
2 changed files with 29 additions and 5 deletions

View file

@ -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.
*