diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-25 17:53:48 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-25 17:53:48 +0200 |
commit | 11006f4456a57f2fb8df7431dcb22deeb3797c1f (patch) | |
tree | 540bbe9fde50ffd5bbcc166a631e605dae8f1627 /pixel-client/src/render/mod.rs | |
parent | 5bf5a200ada9ba03ca2a12c1503318a97166d7c7 (diff) | |
download | hurrycurry-11006f4456a57f2fb8df7431dcb22deeb3797c1f.tar hurrycurry-11006f4456a57f2fb8df7431dcb22deeb3797c1f.tar.bz2 hurrycurry-11006f4456a57f2fb8df7431dcb22deeb3797c1f.tar.zst |
Show sprite count
Diffstat (limited to 'pixel-client/src/render/mod.rs')
-rw-r--r-- | pixel-client/src/render/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pixel-client/src/render/mod.rs b/pixel-client/src/render/mod.rs index 74c282f3..7bd063a7 100644 --- a/pixel-client/src/render/mod.rs +++ b/pixel-client/src/render/mod.rs @@ -185,4 +185,8 @@ impl<'a> Renderer<'a> { canvas.copy_f(&self.texture, src, dst).unwrap(); } } + + pub fn num_sprites(&self) -> usize { + self.sprites.len() + } } |