Skip to content

Commit

Permalink
Zephyr: Renderer: rename RenderEngine::RenderScene() to RenderEngine:…
Browse files Browse the repository at this point in the history
…:SubmitFrame()
  • Loading branch information
fleroviux committed Jun 8, 2024
1 parent db6ef97 commit ccfe67c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/next/src/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down
4 changes: 2 additions & 2 deletions zephyr/renderer/include/zephyr/renderer/render_engine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace zephyr {
~RenderEngine();

void SetSceneGraph(std::shared_ptr<SceneGraph> scene_graph);
void RenderScene();
void SubmitFrame();

private:
void CreateRenderThread();
Expand All @@ -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<RenderObject> m_render_objects{};
RenderCamera m_render_camera{};
Expand Down
2 changes: 1 addition & 1 deletion zephyr/renderer/src/render_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit ccfe67c

Please sign in to comment.