Text rendering

Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
2025-10-07 02:25:02 +03:00
parent 596f24becd
commit c377baf3c9
2 changed files with 18 additions and 13 deletions

View File

@@ -36,8 +36,8 @@ auto App::tick() -> void
if (m_tr) {
Color const fg = theme().foreground;
Vector2 const pos { 40.0f, 60.0f };
auto text = std::string_view("Hello from Waylight");
auto size = 48;
auto text = std::string_view("Hello from Waylight! 日本人ですか?");
auto size = sin(GetTime()) * 12 + 32;
m_tr->draw_text(m_font, text, pos, size, fg);
}