aboutsummaryrefslogtreecommitdiff
path: root/include/egl.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/egl.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/egl.h')
-rw-r--r--include/egl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/egl.h b/include/egl.h
index b8513fd..4705742 100644
--- a/include/egl.h
+++ b/include/egl.h
@@ -119,6 +119,7 @@ typedef struct {
void *output;
vec2i pos;
vec2i size;
+ int32_t transform;
char *name;
} gsr_wayland_output;
@@ -215,6 +216,7 @@ typedef struct {
void (*glBlendFunc)(unsigned int sfactor, unsigned int dfactor);
int (*glGetUniformLocation)(unsigned int program, const char *name);
void (*glUniform1f)(int location, float v0);
+ void (*glUniform2f)(int location, float v0, float v1);
} gsr_egl;
bool gsr_egl_load(gsr_egl *self, Display *dpy, bool wayland);