aboutsummaryrefslogtreecommitdiff
path: root/include/color_conversion.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-02-10 02:47:01 +0100
committerdec05eba <dec05eba@protonmail.com>2024-02-10 03:48:43 +0100
commitb8843395acd03520b7630b6a1dc19f151f42382d (patch)
treef8da6cf22229ba44916de608c9bb46bfddcd8e79 /include/color_conversion.h
parentac73d9cb13ea7e4694b6b013de426cefddae4ca7 (diff)
Add screen rotation support (tested on amd/intel)
screen rotation in wayland is best effort, wayland doesn't give the necessary information to make it robust.
Diffstat (limited to 'include/color_conversion.h')
-rw-r--r--include/color_conversion.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/color_conversion.h b/include/color_conversion.h
index 07b29f6..8bfe599 100644
--- a/include/color_conversion.h
+++ b/include/color_conversion.h
@@ -20,6 +20,11 @@ typedef enum {
} gsr_destination_color;
typedef struct {
+ int offset;
+ int rotation;
+} gsr_color_uniforms;
+
+typedef struct {
gsr_egl *egl;
gsr_source_color source_color;
@@ -33,7 +38,7 @@ typedef struct {
typedef struct {
gsr_color_conversion_params params;
- int rotation_uniforms[2];
+ gsr_color_uniforms uniforms[2];
gsr_shader shaders[2];
unsigned int framebuffers[2];