Add BMF loading support

- Add ability to make textures not unloadable
This commit is contained in:
2025-12-14 22:59:16 +01:00
parent 38a1cad76a
commit 38a2b21ba0
5 changed files with 60 additions and 13 deletions

View File

@@ -11,8 +11,11 @@ class Example : public Amy::App {
Top = C3D::CreateScreen(GFX_TOP);
Mgr = new Amy::AssetMgr();
Iron::Init();
auto fnt = Iron::Font::New();
fnt->LoadBMF("romfs:/ComicNeue.png");
Mgr->AutoLoad("icon", "romfs:/icon.png");
Mgr->AutoLoad("font", "romfs:/ComicNeue.ttf");
Mgr->Add("font", fnt);
// Mgr->AutoLoad("font", "romfs:/ComicNeue.ttf");
dl = new Iron::Drawlist();
dl->SetFont(Mgr->Get<Iron::Font>("font"));
}