/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Editor/EditorEngineProcessFramework/EngineProcess/EngineProcessApp.h
45 строк
1 KB
Jan Krassnigg
Cleanup of ezWindow infrastructure (#1685)
14 окт 2025, 19:16
Не верифицирован
14 окт 2025, 19:16
495a1fe
Код
Авторство
О чём код?
#pragma once #include <Core/ResourceManager/ResourceHandle.h> #include <Core/System/Window.h> #include <Core/System/WindowManager.h> #include <EditorEngineProcessFramework/EditorEngineProcessFrameworkDLL.h> #include <Foundation/Configuration/Singleton.h> #include <Foundation/Types/UniquePtr.h> #include <RendererCore/Pipeline/Declarations.h> using ezRenderPipelineResourceHandle = ezTypedResourceHandle<class ezRenderPipelineResource>; enum class ezEditorEngineProcessMode { Primary, Remote, }; class EZ_EDITORENGINEPROCESSFRAMEWORK_DLL ezEditorEngineProcessApp { EZ_DECLARE_SINGLETON(ezEditorEngineProcessApp); public: ezEditorEngineProcessApp(); ~ezEditorEngineProcessApp(); void SetRemoteMode(); bool IsRemoteMode() const { return m_Mode == ezEditorEngineProcessMode::Remote; } virtual ezViewHandle CreateRemoteWindowAndView(ezCamera* pCamera); void DestroyRemoteWindow(); virtual ezRenderPipelineResourceHandle CreateDefaultMainRenderPipeline(); virtual ezRenderPipelineResourceHandle CreateDefaultDebugRenderPipeline(); protected: virtual void CreateRemoteWindow(); ezEditorEngineProcessMode m_Mode = ezEditorEngineProcessMode::Primary; ezRegisteredWndHandle m_hWindow; ezViewHandle m_hRemoteView; };