summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h4
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);