diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-12 12:21:40 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-12 12:21:40 +0100 |
| commit | fdf875cfe284108249ea180577187e3adf93ec13 (patch) | |
| tree | ae413184cda8b2bd2c193f49eb35fcabca65f221 /src/graphics.h | |
| parent | 6e6a000b28880d0163ee5769dd571e3287f35b14 (diff) | |
wokring on integrating sokol
Diffstat (limited to 'src/graphics.h')
| -rw-r--r-- | src/graphics.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graphics.h b/src/graphics.h index 315a879..f8398a2 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -4,6 +4,7 @@ #include <sokol_gfx.h> #include <wayland-egl.h> +#include "cglm/types.h" #include "glad.h" #include "utils.h" #include "window.h" @@ -39,12 +40,13 @@ struct renderer_s { EGLSurface esurface; i32 width, height; + vec4 ccolor; }; enum renderer_error_e wayc_renderer_init(struct renderer_s* renderer, struct window_s* window, struct graphics_s* graphics, i32 width, - i32 height); + i32 height, vec4 ccolor); static inline void wayc_renderer_resize(struct renderer_s* renderer, i32 width, i32 height) { wayc_notnull(renderer); |
