feat: ttf fonts are now loadable

This commit is contained in:
lisk77 2025-03-16 20:07:05 +01:00
parent 9e16179df3
commit 0507703284
4 changed files with 136 additions and 54 deletions

View file

@ -166,8 +166,8 @@ impl TextureAtlas {
}
pub fn from_textures(
textures: Vec<DynamicImage>,
names: Vec<String>,
textures: Vec<DynamicImage>,
) -> Self {
let mut regions: HashMap<String, TextureRegion> = HashMap::new();