diff options
| author | hachem <im@hachem.wtf> | 2026-08-24 03:57:40 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-24 03:57:40 +0200 |
| commit | 59b7c407550d63e997ed1e7bed286be5c332c285 (patch) | |
| tree | 95f168df75d33326dde486b401c1abf62608ff7c /src/ui/workspace.h | |
| parent | 7ae22084c74cbe0c127e0ea1c96ec22a1f47d221 (diff) | |
[feat]: work on render path exporting
Diffstat (limited to 'src/ui/workspace.h')
| -rw-r--r-- | src/ui/workspace.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <string> 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 — |
