From 2c104d7936193bb19eb52b3e4d47657ffb18a9d7 Mon Sep 17 00:00:00 2001 From: Tengu712 Date: Thu, 1 Oct 2026 01:53:23 +0900 Subject: render text --- src/main.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 879e010..7a8df1d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -115,7 +115,20 @@ impl ApplicationHandler for App { AcquireSurfaceTextureResult::Lost => panic!("fatal: device or surface lost."), }; - renderer.render(window, current_texture); + // DEBUG: + renderer.render( + window, + current_texture, + &[graphics::command::RenderCommand::Text( + graphics::command::Text { + text: "君は呪われている!".to_string(), + origin: glam::Vec2::new(240.0, 120.0), + scale: 48, + v_align: graphics::command::VerticalAlign::Top, + h_align: graphics::command::HorizontalAlign::Left, + }, + )], + ); if !renderer.is_presentation_mode_fifo() { sync_60fps(start); -- cgit v1.3.1