feat(字体渲染): 添加字体管理和文本渲染功能
- 新增FontManager类用于管理字体资源 - 添加TextSprite类实现文本渲染功能 - 更新构建配置添加SDL2_ttf依赖 - 添加多种字体资源文件 - 修改窗口和相机初始化逻辑 - 更新Switch平台构建配置
This commit is contained in:
@@ -40,9 +40,7 @@ target("Frostbite2D")
|
||||
add_includedirs(path.join(devkitPro, "portlibs/switch/include/SDL2"))
|
||||
add_linkdirs(path.join(devkitPro, "portlibs/switch/lib"))
|
||||
|
||||
add_syslinks("SDL2_mixer", "SDL2_image", "SDL2", "webp", "png", "jpeg", "z", "opusfile", "opus", "vorbisidec", "ogg",
|
||||
"modplug", "mpg123", "FLAC", "GLESv2", "EGL", "glapi", "drm_nouveau",
|
||||
{public = true})
|
||||
add_syslinks("SDL2_mixer", "SDL2_image", "SDL2_ttf", "SDL2", "freetype", "harfbuzz" , "bz2" , "webp", "png", "jpeg", "z", "opusfile", "opus", "vorbisidec", "ogg","modplug", "mpg123", "FLAC", "GLESv2", "EGL", "glapi", "drm_nouveau",{public = true})
|
||||
add_syslinks("nx", "m")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user