From e3aa33fc9a99d8b817bda42a567a4c347e18ab32 Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 23 Aug 2026 05:53:33 +0200 Subject: [add]: unified interface --- src/core/application.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/application.h') 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 m_state_manager; Scope m_window; Scope m_engine; - Scope m_vulkan_renderer; // non-null only when the Vulkan API is selected + Scope m_renderer; // active backend (non-null once a backend runs the app) bool m_running; bool m_minimized; -- cgit v1.3