diff options
| author | Tengu712 <genreihoutengu@gmail.com> | 2026-10-07 00:57:01 +0900 |
|---|---|---|
| committer | Tengu712 <genreihoutengu@gmail.com> | 2026-10-07 00:57:01 +0900 |
| commit | 3bbe5ebcdb2a5aa6810dd05576c6ec031efdc1c7 (patch) | |
| tree | 844e4ba5efc755dabf091a51178937a93e1d47ed /src/main.rs | |
| parent | 503486e2ce889858aac619985516374bddeb7a8f (diff) | |
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs index 7a8df1d..95457ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -119,15 +119,23 @@ impl ApplicationHandler for App { renderer.render( window, current_texture, - &[graphics::command::RenderCommand::Text( - graphics::command::Text { + &[ + graphics::command::RenderCommand::Image(graphics::command::Image { + id: graphics::image::ImageId::Image, + origin: glam::Vec2::new(900.0, 400.0), + rotation: 0.2, + scale: glam::Vec2::new(0.25, 0.25), + uv_offset: glam::Vec2::new(0.0, 0.0), + uv_size: glam::Vec2::new(1.0, 1.0), + }), + 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() { |
