summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-02-10 16:49:20 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-02-10 16:49:20 +0100
commitabf083124e1e71d7f3ca4e74f57a272234516656 (patch)
tree2614f0fc0575aee1eb4b6664d182f97a7ad9aa9e /src/graphics.h
parent6e037ccc63cfc83ddda71824700ffa91ab9daab9 (diff)
rename errors
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h20
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;
+};