summaryrefslogtreecommitdiff
path: root/pixel-client/src/tilemap.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-21 18:45:11 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-21 22:17:54 +0200
commit64e00aad013da92d29851d3e8109a006b4dff8c5 (patch)
tree081e9a2829f3c247d48bf6468030f35c85b2db4f /pixel-client/src/tilemap.rs
parentb1eba76afaf7a506ff912634da6220db15d0023e (diff)
downloadhurrycurry-64e00aad013da92d29851d3e8109a006b4dff8c5.tar
hurrycurry-64e00aad013da92d29851d3e8109a006b4dff8c5.tar.bz2
hurrycurry-64e00aad013da92d29851d3e8109a006b4dff8c5.tar.zst
pc: draw text
Diffstat (limited to 'pixel-client/src/tilemap.rs')
-rw-r--r--pixel-client/src/tilemap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/pixel-client/src/tilemap.rs b/pixel-client/src/tilemap.rs
index 05f33b4b..f52ffc1c 100644
--- a/pixel-client/src/tilemap.rs
+++ b/pixel-client/src/tilemap.rs
@@ -22,7 +22,7 @@ use std::collections::{HashMap, HashSet};
use crate::render::{
sprite::{Sprite, SpriteDraw},
- SpriteRenderer,
+ Renderer,
};
#[derive(Default)]
@@ -109,7 +109,7 @@ impl Tilemap {
.insert(pos, Sprite::new_tile(src).at(pos.as_vec2()));
}
- pub fn draw(&self, ctx: &mut SpriteRenderer) {
+ pub fn draw(&self, ctx: &mut Renderer) {
for &sprite in self.tiles.values() {
ctx.draw_world(sprite);
}