summaryrefslogtreecommitdiff
path: root/src/wayclock.cc
diff options
context:
space:
mode:
authorFabrice <fabrice@schaub-dev.xyz>2026-02-13 07:09:38 +0100
committerFabrice <fabrice@schaub-dev.xyz>2026-02-13 07:09:38 +0100
commite40037fd7a922132015340a758468cb5dec71096 (patch)
tree5f57004ffc0bed7c0d1b2e3ae5a45df104d9eabd /src/wayclock.cc
parent2600ac4737d0098d650b792a30ccc557f6d76d16 (diff)
rasterizing and caching
Diffstat (limited to 'src/wayclock.cc')
-rw-r--r--src/wayclock.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wayclock.cc b/src/wayclock.cc
index bd8491e..dc52aed 100644
--- a/src/wayclock.cc
+++ b/src/wayclock.cc
@@ -101,6 +101,23 @@ int main() {
wayc_panic("Failed to initialize font");
wayc_defer(wayc_font_deinit(&font));
+ struct glyph_s glyph_A;
+ if (wayc_font_render(&font, (codepoint_t)'A', &glyph_A) != FONT_ERROR_NONE)
+ wayc_panic("Failed to render glyph");
+ glyph_print(&glyph_A);
+
+ struct glyph_s glyph_X;
+ if (wayc_font_render(&font, (codepoint_t)'X', &glyph_X) != FONT_ERROR_NONE)
+ wayc_panic("Failed to render glyph");
+ glyph_print(&glyph_X);
+
+ struct glyph_s glyph_0;
+ if (wayc_font_render(&font, (codepoint_t)'0', &glyph_0) != FONT_ERROR_NONE)
+ wayc_panic("Failed to render glyph");
+ glyph_print(&glyph_0);
+
+ wayc_font_flush(&font);
+
struct app_s app = {&renderer};
while (wayc_eventloop_running(&loop)) {