refactor(core): 重构资源销毁流程,改为集中式管理

将各模块的析构函数中自动调用shutdown()的逻辑移除,改为在Application::shutdown()中统一手动调用
调整SDL初始化和退出流程,避免重复调用
添加测试用的1秒定时退出逻辑
清理主程序中的示例代码
This commit is contained in:
2026-03-25 20:00:13 +08:00
parent 9a5b36392c
commit 0171c9d22a
11 changed files with 182 additions and 157 deletions

View File

@@ -43,7 +43,7 @@ public:
private:
Renderer();
~Renderer();
// ~Renderer() 在 shutdown() 中手动调用销毁
void setupBlendMode(BlendMode mode);
void updateUniforms();