summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
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;
+};