Refactor editor windowing and update renderer regression

This commit is contained in:
2026-04-26 03:41:58 +08:00
parent 68993c46bb
commit 4fcaac81d6
39 changed files with 1181 additions and 872 deletions

View File

@@ -2,9 +2,8 @@
#include "Bootstrap/EditorResources.h"
#include "System/SystemInteractionService.h"
#include "Composition/EditorContext.h"
#include "Windowing/EditorWindowManager.h"
#include "Windowing/System/EditorWindowSystem.h"
#include "Platform/Win32/Windowing/EditorWindowManager.h"
#include "Platform/Win32/Windowing/EditorWindow.h"
#include "Platform/Win32/System/Win32SystemInteractionHost.h"
#include "Support/EnvironmentFlags.h"
#include "Support/ExecutablePath.h"
@@ -137,15 +136,11 @@ bool Application::Initialize(HINSTANCE hInstance, int nCmdShow) {
return;
}
if (App::EditorWindow* primaryWindow = m_windowManager->FindPrimaryWindow();
primaryWindow != nullptr &&
primaryWindow->GetHwnd() != nullptr) {
PostMessageW(primaryWindow->GetHwnd(), WM_CLOSE, 0, 0);
}
m_windowManager->RequestPrimaryWindowClose();
});
m_editorContext->SetReadyStatus();
App::EditorWindowManager::CreateParams createParams = {};
App::EditorWindowCreateParams createParams = {};
createParams.windowId = "main";
createParams.title = kWindowTitle;
createParams.category = App::EditorWindowCategory::Workspace;
@@ -304,11 +299,7 @@ int Application::Run(HINSTANCE hInstance, int nCmdShow) {
"smoke",
"auto-exit requested after duration/frame limit");
m_smokeTestCloseRequested = true;
if (App::EditorWindow* primaryWindow = m_windowManager->FindPrimaryWindow();
primaryWindow != nullptr &&
primaryWindow->GetHwnd() != nullptr) {
PostMessageW(primaryWindow->GetHwnd(), WM_CLOSE, 0, 0);
} else {
if (!m_windowManager->RequestPrimaryWindowClose()) {
PostQuitMessage(0);
}
}