mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Removes render methods from GameView
This commit is contained in:
parent
a2798b733f
commit
43dd988ee7
3 changed files with 3 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue