Route editor actions by active target

This commit is contained in:
2026-03-26 22:10:43 +08:00
parent 5c8042775c
commit 5735e769b0
21 changed files with 609 additions and 104 deletions

View File

@@ -1,5 +1,8 @@
#pragma once
#include "UI/ImGuiBackendBridge.h"
#include "UI/ImGuiSession.h"
#include <memory>
#include <string>
#include <imgui.h>
@@ -8,8 +11,6 @@
#include <XCEngine/Core/LayerStack.h>
#include "Theme.h"
namespace XCEngine {
namespace Editor {
@@ -32,9 +33,6 @@ private:
Application() = default;
~Application() = default;
void ConfigureImGui(const std::string& projectPath);
void ConfigureImGuiIniFile(const std::string& projectPath, ImGuiIO& io);
void SaveImGuiSettings();
bool CreateDevice();
bool CreateRenderTarget();
void CleanupRenderTarget();
@@ -60,8 +58,9 @@ private:
Core::LayerStack m_layerStack;
EditorLayer* m_editorLayer = nullptr;
std::shared_ptr<IEditorContext> m_editorContext;
UI::ImGuiBackendBridge m_imguiBackend;
UI::ImGuiSession m_imguiSession;
uint64_t m_exitRequestedHandlerId = 0;
std::string m_imguiIniPath;
std::wstring m_lastWindowTitle;
};