specify texture id in the sprite command

This commit is contained in:
Alessandro Mauri 2024-12-16 17:05:44 +01:00
parent 7b7aac8df4
commit 3a7655a3f0
3 changed files with 27 additions and 13 deletions

View file

@ -210,4 +210,10 @@ fn Rect! Ctx.get_text_bounds(&ctx, String text)
}
return text_bounds;
}
// TODO: check if the font is present in the context
fn Id Ctx.get_font_id(&ctx, String label)
{
return (Id)label.hash();
}