diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 15:19:08 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 15:19:08 +0100 |
| commit | 78bb68168b296c3d7d00b2e5b0714510b5ba3999 (patch) | |
| tree | fa799ed713013214783d041660d00c2b96959f08 | |
| parent | e213eae8ad44fe93d446ca70d4cf020f0c46f560 (diff) | |
link against egl
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | src/graphics.h | 9 |
2 files changed, 9 insertions, 2 deletions
@@ -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); |
