This commit is contained in:
Kapendev 2024-09-03 21:53:35 +03:00
parent 00e4939fd4
commit 3578950fb0

View file

@ -1408,6 +1408,10 @@ Vec2 measureTextSize(Font font, IStr text, DrawOptions options = DrawOptions())
return result;
}
Vec2 measureTextSize(FontId font, IStr text, DrawOptions options = DrawOptions()) {
return measureTextSize(font.getOr(), text, options);
}
@trusted
bool isPressed(char key) {
return rl.IsKeyPressed(toUpper(key));