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/core | |
| parent | 7ae22084c74cbe0c127e0ea1c96ec22a1f47d221 (diff) | |
[feat]: work on render path exporting
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/application.cpp | 2 | ||||
| -rw-r--r-- | src/core/application.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/core/application.cpp b/src/core/application.cpp index 3a21cac..c24e029 100644 --- a/src/core/application.cpp +++ b/src/core/application.cpp @@ -145,6 +145,8 @@ namespace Donut auto Application::set_vsync(bool on) -> void { if (m_device) m_device->set_vsync(on); } auto Application::set_ui_scale(float scale) -> void { ImGui::GetIO().FontGlobalScale = scale; } + auto Application::export_frame(const ExportConfig& cfg) -> int + { return (m_render_path && m_scene) ? m_render_path->export_frame(*m_scene, cfg) : 0; } auto Application::is_fullscreen() const -> bool { return m_window && glfwGetWindowMonitor((GLFWwindow*)m_window->get_native_window()) != nullptr; } auto Application::get_window_size(int& w, int& h) const -> void diff --git a/src/core/application.h b/src/core/application.h index 10a375f..f1e40c8 100644 --- a/src/core/application.h +++ b/src/core/application.h @@ -39,6 +39,7 @@ namespace Donut auto set_ui_scale(float scale) -> void override; auto get_window_size(int& w, int& h) const -> void override; auto is_fullscreen() const -> bool override; + auto export_frame(const ExportConfig& cfg) -> int override; private: auto on_init() -> void; |
