feat(资源管理): 添加NPK文件格式支持及精灵创建功能
实现NPK文件格式的解析和缓存管理,支持从NPK文件中加载精灵图像 添加Sprite::createFromNpk方法用于从NPK创建精灵 修改Texture和Sprite相关方法以支持const数据 添加zlib依赖用于NPK文件解压 优化Asset::listFilesWithExtension的扩展名匹配逻辑
This commit is contained in:
@@ -3,6 +3,7 @@ add_requires("libsdl2", {configs = {shared = true,wayland = true}})
|
||||
add_requires("libsdl2_image")
|
||||
add_requires("libsdl2_mixer")
|
||||
add_requires("glm")
|
||||
add_requires("zlib")
|
||||
|
||||
target("Frostbite2D")
|
||||
set_kind("binary")
|
||||
@@ -17,6 +18,7 @@ target("Frostbite2D")
|
||||
add_packages("libsdl2_image")
|
||||
add_packages("libsdl2_mixer")
|
||||
add_packages("glm")
|
||||
add_packages("zlib")
|
||||
|
||||
-- 复制着色器文件到输出目录
|
||||
after_build(function (target)
|
||||
|
||||
@@ -5,6 +5,7 @@ add_requires("libsdl2", {configs = {shared = true}})
|
||||
add_requires("libsdl2_image", {configs = {shared = true}})
|
||||
add_requires("libsdl2_mixer", {configs = {shared = true}})
|
||||
add_requires("glm")
|
||||
add_requires("zlib")
|
||||
|
||||
target("Frostbite2D")
|
||||
set_kind("binary")
|
||||
@@ -19,6 +20,7 @@ target("Frostbite2D")
|
||||
add_packages("libsdl2_image")
|
||||
add_packages("libsdl2_mixer")
|
||||
add_packages("glm")
|
||||
add_packages("zlib")
|
||||
|
||||
-- 复制 assets 目录到输出目录
|
||||
after_build(function (target)
|
||||
|
||||
Reference in New Issue
Block a user