summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-02-10 15:19:08 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-02-10 15:19:08 +0100
commit78bb68168b296c3d7d00b2e5b0714510b5ba3999 (patch)
treefa799ed713013214783d041660d00c2b96959f08
parente213eae8ad44fe93d446ca70d4cf020f0c46f560 (diff)
link against egl
-rw-r--r--Makefile2
-rw-r--r--src/graphics.h9
2 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c6c0dda..4bc6cfa 100644
--- a/Makefile
+++ b/Makefile
@@ -61,7 +61,7 @@ OBJECTS += $(MI_OBJECT)
DEPS = $(OBJECTS:.o=.d)
-LIBRARIES = -lwayland-client
+LIBRARIES = -lwayland-client -lEGL -lwayland-egl
all: $(WAYCLOCK)
diff --git a/src/graphics.h b/src/graphics.h
index 20544de..8c998f5 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -1,10 +1,17 @@
#pragma once
+#include <EGL/egl.h>
+#include <wayland-egl.h>
+
enum graphics_error_e {
GRAPHICS_ERROR_NONE = 0,
};
-struct graphics_s {};
+struct graphics_s {
+ EGLDisplay display;
+ EGLContext context;
+ EGLConfig config;
+};
enum graphics_error_e wayc_graphics_init(struct graphics_s* graphics);
void wayc_graphics_deinit(struct graphics_s* graphics);