2024-11-27 22:33:09 +08:00
|
|
|
|
#include "editor/editor.h"
|
2024-12-07 18:10:01 +08:00
|
|
|
|
#include "data/global.h"
|
2024-11-27 22:33:09 +08:00
|
|
|
|
#include "imgui.h"
|
|
|
|
|
|
namespace api {
|
|
|
|
|
|
void EditorModule::OnLoad(int argc, char** argv)
|
|
|
|
|
|
{
|
2024-12-07 18:10:01 +08:00
|
|
|
|
|
2024-11-27 22:33:09 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void EditorModule::OnUnload()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
2024-12-07 18:10:01 +08:00
|
|
|
|
void EditorModule::Initialize(void)
|
|
|
|
|
|
{
|
|
|
|
|
|
IDynamicModule::Initialize();
|
|
|
|
|
|
IMGUI_CHECKVERSION();
|
|
|
|
|
|
ImGui::CreateContext();
|
|
|
|
|
|
ImGui::StyleColorsDark();
|
|
|
|
|
|
ImGuiIO& io = ImGui::GetIO();
|
|
|
|
|
|
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // 可选:启用键盘导航
|
|
|
|
|
|
io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // 可选:启用Docking
|
|
|
|
|
|
io.ConfigFlags |= ImGuiConfigFlags_ViewportsEnable; // 可选:启用多视口
|
|
|
|
|
|
if (gEngineConfig.API == GraphicsAPI::Vulkan) {
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2024-11-27 22:33:09 +08:00
|
|
|
|
}
|