diff options
| author | hachem <im@hachem.wtf> | 2026-08-23 05:53:33 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-23 05:53:33 +0200 |
| commit | e3aa33fc9a99d8b817bda42a567a4c347e18ab32 (patch) | |
| tree | da0e7ba3ce97a3e545d95d49e366be128c6d2112 /src/core/application.h | |
| parent | 43cee69e40be3cb8b0341c3fc94171fe01712b8c (diff) | |
[add]: unified interface
Diffstat (limited to 'src/core/application.h')
| -rw-r--r-- | src/core/application.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/application.h b/src/core/application.h index 06c4e94..4c377f0 100644 --- a/src/core/application.h +++ b/src/core/application.h @@ -7,11 +7,10 @@ #include "log.h" #include "engine/engine.h" +#include "rendering/renderer_backend.h" namespace Donut { - class VulkanRenderer; // live-window Vulkan backend (platform/vulkan) - class Application { public: @@ -34,13 +33,14 @@ namespace Donut auto on_render() -> void; auto on_event(Event& event) -> void; auto setup_docking_layout() -> void; - auto build_vulkan_ui() -> void; // ImGui UI built each frame on the Vulkan path + auto build_ui() -> void; // shared ImGui panel, drives the active RendererBackend + auto build_scene_ui() -> void; // scene-view (object list) section of the UI private: Scope<StateManager> m_state_manager; Scope<Window> m_window; Scope<Engine> m_engine; - Scope<VulkanRenderer> m_vulkan_renderer; // non-null only when the Vulkan API is selected + Scope<RendererBackend> m_renderer; // active backend (non-null once a backend runs the app) bool m_running; bool m_minimized; |
