new feature, font loading

This commit is contained in:
Kbz-8
2023-11-23 14:37:42 +01:00
parent c125dde951
commit d6b6dd955c
12 changed files with 127 additions and 15 deletions

View File

@@ -67,6 +67,11 @@ namespace mlx::core
_graphics[*static_cast<int*>(win)]->stringPut(x, y, color, str);
}
void Application::loadFont(void* win, const std::filesystem::path& filepath, float scale)
{
_graphics[*static_cast<int*>(win)]->loadFont(filepath, scale);
}
void Application::texturePut(void* win, void* img, int x, int y)
{
Texture* texture = static_cast<Texture*>(img);