Implement Text Rendering

Added STB truetype
Switched AssetMgr to use Shared Ptr
This commit is contained in:
2025-12-07 23:20:15 +01:00
parent 28d2e291b3
commit 88e367a299
17 changed files with 5504 additions and 44 deletions

View File

@@ -6,11 +6,11 @@ namespace Amy {
void AssetMgr::AutoLoad(const ID& id, ksr path) {
if (path.ends_with(".png") || path.ends_with(".jpg") ||
path.ends_with(".bmp")) {
Texture* tex = new Texture();
auto tex = Texture::New();
tex->Load(path);
Add(id, tex);
} else if (path.ends_with(".shbin")) {
C3D::Shader* shader = new C3D::Shader();
auto shader = C3D::Shader::New();
shader->Load(path);
Add(id, shader);
} else {