"L. Spiro Engine"
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes

lsg::CPostProcessVertBlur Class Reference

A vertical blur filter with the option to downsample at the same time. More...

#include <LSGPostProcessVertBlur.h>

List of all members.

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 CShaderm_psBlur
static CCriticalSection m_csCrit
static LSUINT32 m_ui32RefCount
static CShaderBase::LSG_HANDLE m_hOffsets
static CShaderBase::LSG_HANDLE m_hWeights

Detailed Description

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.


Member Function Documentation

static LSFLOAT LSE_CALL lsg::CPostProcessVertBlur::ComputeGaussian ( LSFLOAT  _fX,
LSFLOAT  _fMean,
LSFLOAT  _fStdDev 
) [static, protected]

Computes the gaussian distribution for a set of inputs.

Parameters:
_fXThe X value in the set.
_fMeanThe mean.
_fStdDevThe standard deviation.
Returns:
Returns the computed gaussian distribution value for X.
LSE_INLINE CColorRenderTarget &LSE_CALL lsg::CPostProcessVertBlur::GetBlurTarget ( )

Gets the blur result.

Returns:
Returns the result of the blur.
LSBOOL LSE_CALL lsg::CPostProcessVertBlur::GetBlurV ( CColorRenderTarget _crtSrc,
LSBOOL  _bDownSample = true 
)

Generates the bright-pass result of the image.

Parameters:
_crtSrcThe source render target whose bright-pass image is to be created.
_bDownSampleIf 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.

Parameters:
_ui32WidthNew width.
_ui32HeightNew height.
_bFourthSizeIf true, the fourth-size of the image is used.
Returns:
Returns true if the shaders and render targets were initialized.

Member Data Documentation

The result of the blur.

CCriticalSection lsg::CPostProcessVertBlur::m_csCrit [static, protected]

Critical section for thread safety.

Handle to the offsets in the shader.

Handle to the weights in the shader.

The shader for the blue.

LSUINT32 lsg::CPostProcessVertBlur::m_ui32RefCount [static, protected]

Reference count on the shaders.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator