Changeset View
Changeset View
Standalone View
Standalone View
source/renderer/PostprocManager.h
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | const CStrW& GetPostEffect() const | ||||
return m_PostProcEffect; | return m_PostProcEffect; | ||||
} | } | ||||
// Sets the current effect. | // Sets the current effect. | ||||
void SetPostEffect(const CStrW& name); | void SetPostEffect(const CStrW& name); | ||||
// Triggers update of shaders and FBO if needed. | // Triggers update of shaders and FBO if needed. | ||||
void UpdateAntiAliasingTechnique(); | void UpdateAntiAliasingTechnique(); | ||||
void UpdateSharpeningTechnique(); | |||||
void UpdateSharpnessFactor(); | |||||
void SetDepthBufferClipPlanes(float nearPlane, float farPlane); | void SetDepthBufferClipPlanes(float nearPlane, float farPlane); | ||||
// Clears the two color buffers and depth buffer, and redirects all rendering | // Clears the two color buffers and depth buffer, and redirects all rendering | ||||
// to our textures instead of directly to the system framebuffer. | // to our textures instead of directly to the system framebuffer. | ||||
// @note CPostprocManager must be initialized first | // @note CPostprocManager must be initialized first | ||||
void CaptureRenderOutput(); | void CaptureRenderOutput(); | ||||
Show All 25 Lines | private: | ||||
// Indicates which of the ping-pong buffers is used for reading and which for drawing. | // Indicates which of the ping-pong buffers is used for reading and which for drawing. | ||||
bool m_WhichBuffer; | bool m_WhichBuffer; | ||||
// The name and shader technique we are using. "default" name means no technique is used | // The name and shader technique we are using. "default" name means no technique is used | ||||
// (i.e. while we do allocate the buffers, no effects are rendered). | // (i.e. while we do allocate the buffers, no effects are rendered). | ||||
CStrW m_PostProcEffect; | CStrW m_PostProcEffect; | ||||
CShaderTechniquePtr m_PostProcTech; | CShaderTechniquePtr m_PostProcTech; | ||||
CStr m_SharpName; | |||||
CShaderTechniquePtr m_SharpTech; | |||||
float m_Sharpness; | |||||
vladislavbelov: AFAIK `m_Sharpness` can be not initiliazed after `CFG_GET_VAL("sharpness", m_Sharpness);`, so… | |||||
Done Inline ActionsI initialize it now with the default value. OptimusShepard: I initialize it now with the default value. | |||||
CStr m_AAName; | CStr m_AAName; | ||||
CShaderTechniquePtr m_AATech; | CShaderTechniquePtr m_AATech; | ||||
// The current screen dimensions in pixels. | // The current screen dimensions in pixels. | ||||
int m_Width, m_Height; | int m_Width, m_Height; | ||||
// Is the postproc manager initialized? Buffers created? Default effect loaded? | // Is the postproc manager initialized? Buffers created? Default effect loaded? | ||||
bool m_IsInitialized; | bool m_IsInitialized; | ||||
Show All 28 Lines |
Wildfire Games · Phabricator
AFAIK m_Sharpness can be not initiliazed after CFG_GET_VAL("sharpness", m_Sharpness);, so I'd suggest to initialize in constructor.