Cut workspace panel factory out of windowing
This commit is contained in:
@@ -150,14 +150,17 @@ bool Application::Initialize(HINSTANCE hInstance, int nCmdShow) {
|
||||
m_editorContext->GetShellAsset().captureRootPath);
|
||||
m_renderRuntimeFactory =
|
||||
std::make_unique<Host::D3D12EditorWindowRenderRuntimeFactory>();
|
||||
App::EditorWorkspaceShellRuntimeFactory workspaceShellRuntimeFactory = []() {
|
||||
return App::CreateEditorWorkspaceShellRuntime(
|
||||
App::CreateEditorWorkspacePanelRuntimeSet());
|
||||
};
|
||||
m_windowManager = std::make_unique<App::EditorWindowManager>(
|
||||
*m_editorContext,
|
||||
*m_windowSystem,
|
||||
*m_renderRuntimeFactory,
|
||||
*m_resourceService,
|
||||
*m_windowHostRuntime,
|
||||
App::CreateEditorWorkspacePanelRuntimeSet,
|
||||
App::CreateEditorWorkspaceShellRuntime,
|
||||
std::move(workspaceShellRuntimeFactory),
|
||||
App::CreateEditorUtilityWindowPanel);
|
||||
|
||||
m_editorContext->SetExitRequestHandler([this]() {
|
||||
|
||||
Reference in New Issue
Block a user