From 78bb68168b296c3d7d00b2e5b0714510b5ba3999 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Tue, 10 Feb 2026 15:19:08 +0100 Subject: link against egl --- Makefile | 2 +- src/graphics.h | 9 ++++++++- 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 +#include + 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); -- cgit v1.2.3