#pragma once #include "rendering/export_config.h" #include 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; virtual auto export_frame(const ExportConfig& cfg) -> int = 0; }; struct UIContext { Scene& scene; std::string device_name; AppActions& actions; }; }