From ccfe67cb0e76d2de79aec45f26a1dd7b54c2ea47 Mon Sep 17 00:00:00 2001 From: fleroviux Date: Sat, 8 Jun 2024 22:45:59 +0200 Subject: [PATCH] Zephyr: Renderer: rename RenderEngine::RenderScene() to RenderEngine::SubmitFrame() --- app/next/src/main_window.cpp | 2 +- zephyr/renderer/include/zephyr/renderer/render_engine.hpp | 4 ++-- zephyr/renderer/src/render_engine.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/next/src/main_window.cpp b/app/next/src/main_window.cpp index 8ebae07..b4759b8 100644 --- a/app/next/src/main_window.cpp +++ b/app/next/src/main_window.cpp @@ -111,7 +111,7 @@ namespace zephyr { void MainWindow::RenderFrame() { m_scene_graph->UpdateTransforms(); - m_render_engine->RenderScene(); + m_render_engine->SubmitFrame(); m_scene_graph->ClearScenePatches(); m_frame++; diff --git a/zephyr/renderer/include/zephyr/renderer/render_engine.hpp b/zephyr/renderer/include/zephyr/renderer/render_engine.hpp index 90c76e0..6204184 100644 --- a/zephyr/renderer/include/zephyr/renderer/render_engine.hpp +++ b/zephyr/renderer/include/zephyr/renderer/render_engine.hpp @@ -24,7 +24,7 @@ namespace zephyr { ~RenderEngine(); void SetSceneGraph(std::shared_ptr scene_graph); - void RenderScene(); + void SubmitFrame(); private: void CreateRenderThread(); @@ -42,7 +42,7 @@ namespace zephyr { GeometryCache m_geometry_cache; - class RenderScene m_render_scene{}; //< Representation of the scene graph that is internal to the render engine. + RenderScene m_render_scene{}; //< Representation of the scene graph that is internal to the render engine. std::vector m_render_objects{}; RenderCamera m_render_camera{}; diff --git a/zephyr/renderer/src/render_engine.cpp b/zephyr/renderer/src/render_engine.cpp index 5f53ecb..10f4539 100644 --- a/zephyr/renderer/src/render_engine.cpp +++ b/zephyr/renderer/src/render_engine.cpp @@ -20,7 +20,7 @@ namespace zephyr { m_render_scene.SetSceneGraph(std::move(scene_graph)); } - void RenderEngine::RenderScene() { + void RenderEngine::SubmitFrame() { // Wait for the render thread to complete reading the internal render structures. m_render_thread_semaphore.acquire();