Refactor editor rendering contracts

This commit is contained in:
2026-04-28 02:57:49 +08:00
parent 3bc0cfcf08
commit b1ae6c462d
47 changed files with 798 additions and 377 deletions

View File

@@ -6,7 +6,9 @@
#include "EditorUtilityWindowRegistry.h"
#include "EditorWorkspacePanelRegistry.h"
#include "EditorWindowManager.h"
#include "Assets/EditorIconServiceFactory.h"
#include "Diagnostics/Win32CrashTrace.h"
#include "Viewport/EditorViewportRuntimeServicesFactory.h"
#include "System/Win32SystemInteractionHost.h"
#include "Resources/Win32EditorResourceService.h"
#include "Windowing/EditorWindow.h"
@@ -153,7 +155,9 @@ bool Application::Initialize(HINSTANCE hInstance, int nCmdShow) {
std::make_unique<Host::D3D12EditorWindowRenderRuntimeFactory>();
App::EditorWorkspaceShellRuntimeFactory workspaceShellRuntimeFactory = []() {
return App::CreateEditorWorkspaceShellRuntime(
App::CreateEditorWorkspacePanelRuntimeSet());
App::CreateEditorWorkspacePanelRuntimeSet(),
App::CreateEditorIconService(),
App::CreateEditorViewportRuntimeServices());
};
m_windowManager = std::make_unique<App::EditorWindowManager>(
*m_editorContext,

View File

@@ -14,3 +14,13 @@ IDR_PNG_LOGO_ICON PNG "../resources/Icons/logo_icon.png"
IDR_PNG_PLAY_BUTTON_ICON PNG "../resources/Icons/play_button.png"
IDR_PNG_PAUSE_BUTTON_ICON PNG "../resources/Icons/pause_button.png"
IDR_PNG_STEP_BUTTON_ICON PNG "../resources/Icons/step_button.png"
IDR_PNG_VIEW_MOVE_TOOL_ICON PNG "../resources/Icons/view_move_tool.png"
IDR_PNG_VIEW_MOVE_TOOL_ACTIVE_ICON PNG "../resources/Icons/view_move_tool_on.png"
IDR_PNG_MOVE_TOOL_ICON PNG "../resources/Icons/move_tool.png"
IDR_PNG_MOVE_TOOL_ACTIVE_ICON PNG "../resources/Icons/move_tool_on.png"
IDR_PNG_ROTATE_TOOL_ICON PNG "../resources/Icons/rotate_tool.png"
IDR_PNG_ROTATE_TOOL_ACTIVE_ICON PNG "../resources/Icons/rotate_tool_on.png"
IDR_PNG_SCALE_TOOL_ICON PNG "../resources/Icons/scale_tool.png"
IDR_PNG_SCALE_TOOL_ACTIVE_ICON PNG "../resources/Icons/scale_tool_on.png"
IDR_PNG_TRANSFORM_TOOL_ICON PNG "../resources/Icons/transform_tool.png"
IDR_PNG_TRANSFORM_TOOL_ACTIVE_ICON PNG "../resources/Icons/transform_tool_on.png"

View File

@@ -14,3 +14,13 @@
#define IDR_PNG_PLAY_BUTTON_ICON 210
#define IDR_PNG_PAUSE_BUTTON_ICON 211
#define IDR_PNG_STEP_BUTTON_ICON 212
#define IDR_PNG_VIEW_MOVE_TOOL_ICON 213
#define IDR_PNG_VIEW_MOVE_TOOL_ACTIVE_ICON 214
#define IDR_PNG_MOVE_TOOL_ICON 215
#define IDR_PNG_MOVE_TOOL_ACTIVE_ICON 216
#define IDR_PNG_ROTATE_TOOL_ICON 217
#define IDR_PNG_ROTATE_TOOL_ACTIVE_ICON 218
#define IDR_PNG_SCALE_TOOL_ICON 219
#define IDR_PNG_SCALE_TOOL_ACTIVE_ICON 220
#define IDR_PNG_TRANSFORM_TOOL_ICON 221
#define IDR_PNG_TRANSFORM_TOOL_ACTIVE_ICON 222