From 4a72c63f74bc055c29f397f54fca8e9613f4474d Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 23 Aug 2026 22:39:47 +0200 Subject: feat: wire the scene into the simulation engine --- src/ui/workspace.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/ui/workspace.h') diff --git a/src/ui/workspace.h b/src/ui/workspace.h index 7806f5c..04cc5db 100644 --- a/src/ui/workspace.h +++ b/src/ui/workspace.h @@ -7,10 +7,22 @@ namespace Donut { class Scene; + struct AppActions + { + virtual ~AppActions() = default; + virtual auto set_resolution(int w, int h) -> void = 0; + virtual auto set_fullscreen(bool on) -> void = 0; + virtual auto set_vsync(bool on) -> void = 0; + virtual auto set_ui_scale(float scale) -> void = 0; + virtual auto get_window_size(int& w, int& h) const -> void = 0; + virtual auto is_fullscreen() const -> bool = 0; + }; + struct UIContext { Scene& scene; std::string device_name; + AppActions& actions; }; class Workspace -- cgit v1.3