diff options
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); |
