feat(字体渲染): 添加字体管理和文本渲染功能
- 新增FontManager类用于管理字体资源 - 添加TextSprite类实现文本渲染功能 - 更新构建配置添加SDL2_ttf依赖 - 添加多种字体资源文件 - 修改窗口和相机初始化逻辑 - 更新Switch平台构建配置
This commit is contained in:
@@ -4,6 +4,7 @@ set_toolchains("mingw")
|
||||
add_requires("libsdl2", {configs = {shared = true}})
|
||||
add_requires("libsdl2_image", {configs = {shared = true}})
|
||||
add_requires("libsdl2_mixer", {configs = {shared = true}})
|
||||
add_requires("libsdl2_ttf", {configs = {shared = true}})
|
||||
add_requires("glm")
|
||||
add_requires("zlib")
|
||||
|
||||
@@ -19,6 +20,7 @@ target("Frostbite2D")
|
||||
add_packages("libsdl2")
|
||||
add_packages("libsdl2_image")
|
||||
add_packages("libsdl2_mixer")
|
||||
add_packages("libsdl2_ttf")
|
||||
add_packages("glm")
|
||||
add_packages("zlib")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user