diff options
| -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); |
