feat(平台): 添加Switch平台支持并实现资源管理器
- 新增Switch平台初始化与清理功能 - 实现Asset资源管理器类,提供文件读写、路径处理等功能 - 完善Window类的销毁逻辑,释放SDL资源 - 更新Switch平台编译配置,移除冗余标志 - 在主程序中集成资源管理器功能
This commit is contained in:
18
Fostbite2D/include/fostbite2D/platform/switch.h
Normal file
18
Fostbite2D/include/fostbite2D/platform/switch.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __SWITCH__
|
||||
|
||||
#include <switch.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
namespace frostbite2D {
|
||||
/**
|
||||
* @brief Switch平台相关函数
|
||||
*/
|
||||
|
||||
void switchInit();
|
||||
void switchShutdown();
|
||||
|
||||
} // namespace frostbite2D
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user