C# Class FlatRedBall.Graphics.PostProcessing.Blur

Post processing effect which can be used to blur the screen.
Inheritance: PostProcessingEffectBase
ファイルを表示 Open project: vchelaru/FlatRedBall Class Usage Examples

Public Methods

Method Description
Draw ( Camera camera, Microsoft.Xna.Framework.Graphics.Texture2D &screenTexture, Rectangle &baseRectangle, Color clearColor ) : void

Draws the effect

InitializeEffect ( ) : void

Loads the effect

ToString ( ) : string

Reports this effect's name as a string

Protected Methods

Method Description
SetEffectParameters ( Camera camera ) : void

Private Methods

Method Description
Blur ( ) : System

Internal Constructor (so this class can't be instantiated externally)

DrawToCameraRenderTarget ( Camera camera, Microsoft.Xna.Framework.Graphics.Texture2D &texture, Color clearColor, Rectangle &sourceRectangle ) : void
SetSampleParameters ( ) : void

Calculates and sets the sampling parameters in the shader

Method Details

Draw() public method

Draws the effect
public Draw ( Camera camera, Microsoft.Xna.Framework.Graphics.Texture2D &screenTexture, Rectangle &baseRectangle, Color clearColor ) : void
camera Camera
screenTexture Microsoft.Xna.Framework.Graphics.Texture2D The screen texture
baseRectangle Microsoft.Xna.Framework.Rectangle The rectangle to draw to
clearColor Color The background color
return void

InitializeEffect() public method

Loads the effect
public InitializeEffect ( ) : void
return void

SetEffectParameters() protected method

protected SetEffectParameters ( Camera camera ) : void
camera Camera
return void

ToString() public method

Reports this effect's name as a string
public ToString ( ) : string
return string