From e55bf8a0b0c70095ad3b290011d19e28684a1c99 Mon Sep 17 00:00:00 2001 From: Fabrice Date: Tue, 10 Feb 2026 21:30:39 +0100 Subject: loading opengl --- src/wayclock.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/wayclock.cc') diff --git a/src/wayclock.cc b/src/wayclock.cc index 27bc7d1..1b79d2c 100644 --- a/src/wayclock.cc +++ b/src/wayclock.cc @@ -1,6 +1,7 @@ #include "events.h" +#include "glad.h" #include "graphics.h" #include "utils.h" #include "window.h" @@ -15,6 +16,9 @@ void wayc_frame(struct renderer_s* renderer, struct window_s* window, wayc_notnull(loop); wayc_notnull(renderer); + glClearColor(0.1f, 0.2f, 0.3f, 1.0f); + glClear(GL_COLOR_BUFFER_BIT); + wayc_renderer_swap(renderer); } -- cgit v1.2.3