diff options
| author | Tengu712 <genreihoutengu@gmail.com> | 2026-10-01 01:53:23 +0900 |
|---|---|---|
| committer | Tengu712 <genreihoutengu@gmail.com> | 2026-10-01 01:53:23 +0900 |
| commit | 2c104d7936193bb19eb52b3e4d47657ffb18a9d7 (patch) | |
| tree | 6f90ea406a1506bbb37ee3aea52a29278524074a /src/main.rs | |
| parent | e3835c956011c217e498b272490005dca457d402 (diff) | |
render text
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 15 |
1 files changed, 14 insertions, 1 deletions
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); |
