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 | f71276fec04c317d07bfe768ebfbe1b28ddd60e7 (patch) | |
| tree | a188e6cc7ac46f993438fb900655ccbfeb805de8 /src/core/application.cpp | |
| parent | 9968e5a8682aabe5711842a34d3ee6f6716fc2b0 (diff) | |
feat: work on render path exporting
Diffstat (limited to 'src/core/application.cpp')
| -rw-r--r-- | src/core/application.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/application.cpp b/src/core/application.cpp index 1cb0be6..df0f38f 100644 --- a/src/core/application.cpp +++ b/src/core/application.cpp @@ -138,6 +138,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 |
