changeset 15286 | 16bd389fc735 |
parent 15190 | e2adb40c7988 |
child 15759 | c929e25a7da2 |
--- a/rust/lib-hedgewars-engine/src/render/atlas.rs Sat Aug 03 00:54:29 2019 +0300 +++ b/rust/lib-hedgewars-engine/src/render/atlas.rs Sat Aug 03 01:13:45 2019 +0300 @@ -250,6 +250,10 @@ } } + pub fn get_rect(&self, index: SpriteIndex) -> Option<(u32, Rect)> { + self.rects.get(index as usize).cloned() + } + pub fn used_space(&self) -> String { self.atlases .iter()