From b8843395acd03520b7630b6a1dc19f151f42382d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 10 Feb 2024 02:47:01 +0100 Subject: 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. --- include/egl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/egl.h') 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); -- cgit v1.2.3