specify texture id in the sprite command
This commit is contained in:
parent
7b7aac8df4
commit
3a7655a3f0
3 changed files with 27 additions and 13 deletions
|
|
@ -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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue