#pragma once #include #include #include "utils.h" enum graphics_error_e { GRAPHICS_ERROR_NONE = 0, GRAPHICS_ERROR_DISPLAY, GRAPHICS_ERROR_CONFIG, GRAPHICS_ERROR_BIND, GRAPHICS_ERROR_CONTEXT, }; struct graphics_s { EGLDisplay display; EGLContext context; EGLConfig config; }; enum graphics_error_e wayc_graphics_init(struct graphics_s* graphics, struct wlstate_s* state); void wayc_graphics_deinit(struct graphics_s* graphics); struct renderer_s { wl_egl_surface_t surface; };