C# Класс FlatRedBall.Graphics.PostProcessing.Blur

Post processing effect which can be used to blur the screen.
Наследование: PostProcessingEffectBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
SetEffectParameters ( Camera camera ) : void

Приватные методы

Метод Описание
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

Описание методов

Draw() публичный Метод

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
Результат void

InitializeEffect() публичный Метод

Loads the effect
public InitializeEffect ( ) : void
Результат void

SetEffectParameters() защищенный Метод

protected SetEffectParameters ( Camera camera ) : void
camera Camera
Результат void

ToString() публичный Метод

Reports this effect's name as a string
public ToString ( ) : string
Результат string