diff options
| author | LLLL Colonq <llll@colonq> | 2026-06-04 18:49:58 -0400 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2026-06-04 18:50:57 -0400 |
| commit | 2a8b8e6392d87247a5e7b73773daeece98fa0a73 (patch) | |
| tree | 60ba094d9e3d47c9695af32aa4b7ce9f9a8695c3 /crates/renderer/src/terminal.rs | |
| parent | 5bdcffbe94fdc3ce9a12b3ae61e7bff3bcb2f17a (diff) | |
Update
Diffstat (limited to 'crates/renderer/src/terminal.rs')
| -rw-r--r-- | crates/renderer/src/terminal.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/renderer/src/terminal.rs b/crates/renderer/src/terminal.rs index cca2de6..9f7187b 100644 --- a/crates/renderer/src/terminal.rs +++ b/crates/renderer/src/terminal.rs @@ -194,7 +194,7 @@ impl Terminal { } return (CharPair { first: ' ', second: Some(' ') }, glam::Vec3::new(0.0, 0.0, 0.0)); } - pub fn render(&self, ctx: &context::Context, st: &state::State, pos: &glam::Vec2) { + pub fn render(&self, ctx: &context::Context, st: &mut state::State, pos: &glam::Vec2) { let mut s = String::new(); let mut colors = Vec::new(); for row in 0..self.height { @@ -207,7 +207,11 @@ impl Terminal { s += "\n"; colors.push(glam::Vec3::new(1.0, 1.0, 1.0)); } - self.font.render_text_helper(ctx, st, pos, &s, &colors); + self.font.render_text_at(ctx, st, *pos, &s, font::BitmapParams { + color: &colors, + scale: glam::Vec2::ONE, + offset: glam::Vec2::ZERO, + }); } pub fn write_tty<W>(&self, out: &mut W) where W: Write { |
