Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/graphics/GameView.cpp
Show First 20 Lines • Show All 227 Lines • ▼ Show 20 Lines | if (m->LockCullCamera == false) | ||||
// Set up cull camera | // Set up cull camera | ||||
m->CullCamera = m->ViewCamera; | m->CullCamera = m->ViewCamera; | ||||
} | } | ||||
g_Renderer.GetSceneRenderer().SetSceneCamera(m->ViewCamera, m->CullCamera); | g_Renderer.GetSceneRenderer().SetSceneCamera(m->ViewCamera, m->CullCamera); | ||||
m->Game->CachePlayerColors(); | m->Game->CachePlayerColors(); | ||||
} | } | ||||
void CGameView::Render() | void CGameView::Prepare( | ||||
Renderer::Backend::IDeviceCommandContext* deviceCommandContext) | |||||
{ | { | ||||
g_Renderer.GetSceneRenderer().RenderScene(g_Renderer.GetDeviceCommandContext(), *this); | 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 | // This callback is part of the Scene interface | ||||
// Submit all objects visible in the given frustum | // Submit all objects visible in the given frustum | ||||
void CGameView::EnumerateObjects(const CFrustum& frustum, SceneCollector* c) | void CGameView::EnumerateObjects(const CFrustum& frustum, SceneCollector* c) | ||||
{ | { | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator