DearTs Framework 开发技能。基于 SDL3 + ImGui 的 C++20 现代应用框架,提供完整的应用生命周期管理、类型安全事件系统、Content Registry 和插件架构。适用于 DearTs Framework 相关的所有开发任务,包括应用程序开发、事件驱动架构、插件系统、多视图应用等。
DearTs 是一个基于 SDL3 + ImGui 的现代 C++20 应用程序框架,参考 ImHex 设计理念,提供完整的模块化架构。
核心特性:
DearTs/
├── core/ # 核心系统
│ ├── app/ # 应用生命周期
│ ├── events/ # 事件总线
│ ├── ui/ # ImGui 集成、视图
│ ├── content/ # Content Registry
│ ├── tasks/ # 任务管理
│ ├── plugin/ # 插件系统
│ └── config/ # 配置管理
├── plugins/ # 插件实现
│ └── builtin/ # 内置插件
└── main/gui/ # 入口
#include "core/app/application.h"
class MyApp : public DearTs::Core::Application {
bool on_initialize() override {
LOG_INFO("Application starting");
return true;
}
void on_render() override {
ImGui::Begin("Hello");
ImGui::Text("Hello DearTs!");
ImGui::End();
}
};
int main() {
MyApp app;
return app.run();
}
#include "core/plugin/plugin.h"
class MyPlugin : public IPlugin {