Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/renderer/PostprocManager.cpp
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | std::copy_if( | ||||
std::begin(possibleSampleCounts), std::end(possibleSampleCounts), | std::begin(possibleSampleCounts), std::end(possibleSampleCounts), | ||||
std::back_inserter(m_AllowedSampleCounts), | std::back_inserter(m_AllowedSampleCounts), | ||||
[maxSamples](const GLsizei sampleCount) { return sampleCount <= maxSamples; } ); | [maxSamples](const GLsizei sampleCount) { return sampleCount <= maxSamples; } ); | ||||
// The screen size starts out correct and then must be updated with Resize() | // The screen size starts out correct and then must be updated with Resize() | ||||
m_Width = g_Renderer.GetWidth(); | m_Width = g_Renderer.GetWidth(); | ||||
m_Height = g_Renderer.GetHeight(); | m_Height = g_Renderer.GetHeight(); | ||||
RecreateBuffers(); | |||||
m_IsInitialized = true; | |||||
// Once we have initialised the buffers, we can update the techniques. | |||||
UpdateAntiAliasingTechnique(); | UpdateAntiAliasingTechnique(); | ||||
UpdateSharpeningTechnique(); | UpdateSharpeningTechnique(); | ||||
UpdateSharpnessFactor(); | UpdateSharpnessFactor(); | ||||
RecreateBuffers(); | |||||
m_IsInitialized = true; | |||||
// This might happen after the map is loaded and the effect chosen | // This might happen after the map is loaded and the effect chosen | ||||
SetPostEffect(m_PostProcEffect); | SetPostEffect(m_PostProcEffect); | ||||
} | } | ||||
void CPostprocManager::Resize() | void CPostprocManager::Resize() | ||||
{ | { | ||||
m_Width = g_Renderer.GetWidth(); | m_Width = g_Renderer.GetWidth(); | ||||
▲ Show 20 Lines • Show All 739 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator