diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 21:30:39 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-10 21:30:39 +0100 |
| commit | e55bf8a0b0c70095ad3b290011d19e28684a1c99 (patch) | |
| tree | 35597984f2d82a74fc6d5c24886dbc0193cbf088 /src/wayclock.cc | |
| parent | a8c2b710f2bbfb40f9035ed946a95e1b60c239e1 (diff) | |
loading opengl
Diffstat (limited to 'src/wayclock.cc')
| -rw-r--r-- | src/wayclock.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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); } |
