aboutsummaryrefslogtreecommitdiff
path: root/src/core/application.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/application.h')
-rw-r--r--src/core/application.h8
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;