Removes render methods from GameView

This commit is contained in:
Vladislav Belov 2026-07-13 00:40:34 +02:00
parent a2798b733f
commit 43dd988ee7
No known key found for this signature in database
GPG key ID: 353545E45DB9CCB3
3 changed files with 3 additions and 17 deletions

View file

@ -254,18 +254,6 @@ void CGameView::Prepare(
g_Renderer.GetSceneRenderer().PrepareScene(deviceCommandContext, *this);
}
void CGameView::Render(
Renderer::Backend::IDeviceCommandContext* deviceCommandContext)
{
g_Renderer.GetSceneRenderer().RenderScene(deviceCommandContext);
}
void CGameView::RenderOverlays(
Renderer::Backend::IDeviceCommandContext* deviceCommandContext)
{
g_Renderer.GetSceneRenderer().RenderSceneOverlays(deviceCommandContext);
}
///////////////////////////////////////////////////////////
// This callback is part of the Scene interface
// Submit all objects visible in the given frustum

View file

@ -54,8 +54,6 @@ public:
void BeginFrame();
void Prepare(Renderer::Backend::IDeviceCommandContext* deviceCommandContext);
void Render(Renderer::Backend::IDeviceCommandContext* deviceCommandContext);
void RenderOverlays(Renderer::Backend::IDeviceCommandContext* deviceCommandContext);
CVector3D GetCameraPivot() const;
CVector3D GetCameraPosition() const;

View file

@ -632,7 +632,7 @@ void CRenderer::RenderGameAndGUI(
m->deviceCommandContext->BeginFramebufferPass(framebuffer);
m->deviceCommandContext->SetViewports(1, &viewportRect);
gameView.Render(m->deviceCommandContext.get());
m->sceneRenderer.RenderScene(m->deviceCommandContext.get());
RenderGameOverlays(gameView);
Render2D(renderGUI, renderLogger);
@ -662,7 +662,7 @@ void CRenderer::RenderGameWithPostProcessingAndGUI(
m->deviceCommandContext->BeginFramebufferPass(framebuffer);
m->deviceCommandContext->SetViewports(1, &viewportRect);
gameView.Render(m->deviceCommandContext.get());
m->sceneRenderer.RenderScene(m->deviceCommandContext.get());
m->deviceCommandContext->EndFramebufferPass();
@ -729,7 +729,7 @@ void CRenderer::RenderGUIOnly(
void CRenderer::RenderGameOverlays(CGameView& gameView)
{
gameView.RenderOverlays(m->deviceCommandContext.get());
m->sceneRenderer.RenderSceneOverlays(m->deviceCommandContext.get());
gameView.GetCinema()->Render(*m->deviceCommandContext);