From 59b7c407550d63e997ed1e7bed286be5c332c285 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 24 Aug 2026 03:57:40 +0200 Subject: [feat]: work on render path exporting --- src/ui/workspace.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ui/workspace.h') diff --git a/src/ui/workspace.h b/src/ui/workspace.h index 804d5a8..d86614a 100644 --- a/src/ui/workspace.h +++ b/src/ui/workspace.h @@ -1,6 +1,7 @@ #pragma once #include "rendering/view.h" +#include "rendering/export_config.h" #include namespace Donut @@ -18,6 +19,9 @@ namespace Donut 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; + // Renders the requested channels off-screen and writes PNGs; returns the + // number of files written (0 on failure). + virtual auto export_frame(const ExportConfig& cfg) -> int = 0; }; // What a workspace gets each frame to build its panels. `scene` is mutable — -- cgit v1.3