|
"L. Spiro Engine"
|
A vertical blur filter with the option to downsample at the same time. More...
#include <LSGPostProcessVertBlur.h>
Public Member Functions | |
| LSBOOL LSE_CALL | GetBlurV (CColorRenderTarget &_crtSrc, LSBOOL _bDownSample=true) |
| LSE_INLINE CColorRenderTarget &LSE_CALL | GetBlurTarget () |
Protected Member Functions | |
| LSBOOL LSE_CALL | Init (LSUINT32 _ui32Width, LSUINT32 _ui32Height, LSBOOL _bFourthSize) |
Static Protected Member Functions | |
| static LSFLOAT LSE_CALL | ComputeGaussian (LSFLOAT _fX, LSFLOAT _fMean, LSFLOAT _fStdDev) |
Protected Attributes | |
| CColorRenderTarget | m_crtBlur |
Static Protected Attributes | |
| static CShader * | m_psBlur |
| static CCriticalSection | m_csCrit |
| static LSUINT32 | m_ui32RefCount |
| static CShaderBase::LSG_HANDLE | m_hOffsets |
| static CShaderBase::LSG_HANDLE | m_hWeights |
A vertical blur filter with the option to downsample at the same time.
Class CPostProcessVertBlur Description: A vertical blur filter with the option to downsample at the same time.
| static LSFLOAT LSE_CALL lsg::CPostProcessVertBlur::ComputeGaussian | ( | LSFLOAT | _fX, |
| LSFLOAT | _fMean, | ||
| LSFLOAT | _fStdDev | ||
| ) | [static, protected] |
Computes the gaussian distribution for a set of inputs.
| _fX | The X value in the set. |
| _fMean | The mean. |
| _fStdDev | The standard deviation. |
| LSE_INLINE CColorRenderTarget &LSE_CALL lsg::CPostProcessVertBlur::GetBlurTarget | ( | ) |
Gets the blur result.
| LSBOOL LSE_CALL lsg::CPostProcessVertBlur::GetBlurV | ( | CColorRenderTarget & | _crtSrc, |
| LSBOOL | _bDownSample = true |
||
| ) |
Generates the bright-pass result of the image.
| _crtSrc | The source render target whose bright-pass image is to be created. |
| _bDownSample | If true, the result will be one-fourth the size of the given image. |
| LSBOOL LSE_CALL lsg::CPostProcessVertBlur::Init | ( | LSUINT32 | _ui32Width, |
| LSUINT32 | _ui32Height, | ||
| LSBOOL | _bFourthSize | ||
| ) | [protected] |
Initializes the shaders and render targets.
| _ui32Width | New width. |
| _ui32Height | New height. |
| _bFourthSize | If true, the fourth-size of the image is used. |
The result of the blur.
CCriticalSection lsg::CPostProcessVertBlur::m_csCrit [static, protected] |
Critical section for thread safety.
CShaderBase::LSG_HANDLE lsg::CPostProcessVertBlur::m_hOffsets [static, protected] |
Handle to the offsets in the shader.
CShaderBase::LSG_HANDLE lsg::CPostProcessVertBlur::m_hWeights [static, protected] |
Handle to the weights in the shader.
CShader* lsg::CPostProcessVertBlur::m_psBlur [static, protected] |
The shader for the blue.
LSUINT32 lsg::CPostProcessVertBlur::m_ui32RefCount [static, protected] |
Reference count on the shaders.
1.7.3