diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 16:49:20 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 16:49:20 +0100 |
| commit | abf083124e1e71d7f3ca4e74f57a272234516656 (patch) | |
| tree | 2614f0fc0575aee1eb4b6664d182f97a7ad9aa9e /src/graphics.h | |
| parent | 6e037ccc63cfc83ddda71824700ffa91ab9daab9 (diff) | |
rename errors
Diffstat (limited to 'src/graphics.h')
| -rw-r--r-- | src/graphics.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/graphics.h b/src/graphics.h index d2028a7..56d16de 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -5,12 +5,12 @@ #include "utils.h" -enum graphics_error_e { +enum graphics_error_e : u8 { GRAPHICS_ERROR_NONE = 0, - GRAPHICS_ERROR_DISPLAY, - GRAPHICS_ERROR_CONFIG, - GRAPHICS_ERROR_BIND, - GRAPHICS_ERROR_CONTEXT, + GRAPHICS_ERROR_ACQUIRE_DISPLAY, + GRAPHICS_ERROR_SELECT_CONFIG, + GRAPHICS_ERROR_USE_DESKTOP, + GRAPHICS_ERROR_CREATE_CONTEXT, }; struct graphics_s { @@ -23,6 +23,12 @@ enum graphics_error_e wayc_graphics_init(struct graphics_s* graphics, struct wlstate_s* state); void wayc_graphics_deinit(struct graphics_s* graphics); +enum renderer_error_e : u8 { + RENDERER_ERROR_NONE = 0, +}; + struct renderer_s { - wl_egl_surface_t surface; -};
\ No newline at end of file + struct graphics_s* graphics; + wl_egl_window_t window; + EGLSurface surface; +}; |
