C# 클래스 FlatRedBall.Graphics.PostProcessing.PostProcessingEffectBase

Base class for post-processing effects
파일 보기 프로젝트 열기: vchelaru/FlatRedBall 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
mTexture Microsoft.Xna.Framework.Graphics.Texture2D

보호된 프로퍼티들

프로퍼티 타입 설명
mEffect Microsoft.Xna.Framework.Graphics.Effect
mEnabled bool
mRenderTargetFormat SurfaceFormat
mScreenRectangle Microsoft.Xna.Framework.Rectangle

공개 메소드들

메소드 설명
Draw ( Camera camera, Microsoft.Xna.Framework.Graphics.Texture2D &screenTexture, Rectangle &baseRectangle, Color clearColor ) : void

Draws the effect using the drawn screen texture Base method draws screen texture with current effect to current screen rectangle

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

Draws this effect if it is enabled (helper method)

InitializeEffect ( ) : void

Loads the effect and initializes values in the shader Base method sets the screen rectangle to full-screen

PostProcessingEffectBase ( ) : System

Creates a basic post-processing effect

PostProcessingEffectBase ( Effect effect ) : System

Uses the specified effect as a default post-processing effect

PostProcessingEffectBase ( String effectPath ) : System

Loads the specified effect as a default post-processing effect

PostProcessingEffectBase ( String effectPath, String contentManagerName ) : System

Loads the specified effect as a default post-processing effect

ToString ( ) : string

Reports this effect's name as a string

Update ( ) : void

Update the post processing effect

보호된 메소드들

메소드 설명
DrawToTexture ( Camera camera, Microsoft.Xna.Framework.Graphics.Texture2D &destinationTexture, Color clearColor, Microsoft.Xna.Framework.Graphics.Texture2D &screenTexture, Rectangle &sourceRectangle ) : void
SetEffectParameters ( Camera camera ) : void

Sets the effect's parameters before drawing (override and implement this in your own effects)

비공개 메소드들

메소드 설명
DrawToCameraRenderTarget ( Camera camera, Microsoft.Xna.Framework.Graphics.Texture2D &texture, Color clearColor, Rectangle &sourceRectangle ) : void

This function MUST be overridden for any effects that make passes with multiple techniques.

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

메소드 상세

Draw() 공개 메소드

Draws the effect using the drawn screen texture Base method draws screen texture with current effect to current screen rectangle
public Draw ( Camera camera, Microsoft.Xna.Framework.Graphics.Texture2D &screenTexture, Rectangle &baseRectangle, Color clearColor ) : void
camera Camera The camera to use when drawing.
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

DrawIfEnabled() 공개 메소드

Draws this effect if it is enabled (helper method)
public DrawIfEnabled ( Camera camera, Microsoft.Xna.Framework.Graphics.Texture2D &screenTexture, Rectangle &baseRectangle, Color clearColor ) : void
camera Camera The camera to use when drawing
screenTexture Microsoft.Xna.Framework.Graphics.Texture2D The screen texture
baseRectangle Microsoft.Xna.Framework.Rectangle The rectangle to draw to
clearColor Color The color to use as transparent
리턴 void

DrawToTexture() 보호된 메소드

protected DrawToTexture ( Camera camera, Microsoft.Xna.Framework.Graphics.Texture2D &destinationTexture, Color clearColor, Microsoft.Xna.Framework.Graphics.Texture2D &screenTexture, Rectangle &sourceRectangle ) : void
camera Camera
destinationTexture Microsoft.Xna.Framework.Graphics.Texture2D
clearColor Color
screenTexture Microsoft.Xna.Framework.Graphics.Texture2D
sourceRectangle Microsoft.Xna.Framework.Rectangle
리턴 void

InitializeEffect() 공개 메소드

Loads the effect and initializes values in the shader Base method sets the screen rectangle to full-screen
public InitializeEffect ( ) : void
리턴 void

PostProcessingEffectBase() 공개 메소드

Creates a basic post-processing effect
public PostProcessingEffectBase ( ) : System
리턴 System

PostProcessingEffectBase() 공개 메소드

Uses the specified effect as a default post-processing effect
public PostProcessingEffectBase ( Effect effect ) : System
effect Microsoft.Xna.Framework.Graphics.Effect
리턴 System

PostProcessingEffectBase() 공개 메소드

Loads the specified effect as a default post-processing effect
public PostProcessingEffectBase ( String effectPath ) : System
effectPath String
리턴 System

PostProcessingEffectBase() 공개 메소드

Loads the specified effect as a default post-processing effect
public PostProcessingEffectBase ( String effectPath, String contentManagerName ) : System
effectPath String
contentManagerName String
리턴 System

SetEffectParameters() 보호된 메소드

Sets the effect's parameters before drawing (override and implement this in your own effects)
protected SetEffectParameters ( Camera camera ) : void
camera Camera
리턴 void

ToString() 공개 메소드

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

Update() 공개 메소드

Update the post processing effect
public Update ( ) : void
리턴 void

프로퍼티 상세

mEffect 보호되어 있는 프로퍼티

The effect for this post processing effect
protected Effect,Microsoft.Xna.Framework.Graphics mEffect
리턴 Microsoft.Xna.Framework.Graphics.Effect

mEnabled 보호되어 있는 프로퍼티

Whether or not this effect is enabled
protected bool mEnabled
리턴 bool

mRenderTargetFormat 보호되어 있는 프로퍼티

The surface format for the render target for this effect (default is SurfaceFormat.Color)
protected SurfaceFormat mRenderTargetFormat
리턴 SurfaceFormat

mScreenRectangle 보호되어 있는 프로퍼티

The screen rectangle
protected Rectangle,Microsoft.Xna.Framework mScreenRectangle
리턴 Microsoft.Xna.Framework.Rectangle

mTexture 공개적으로 프로퍼티

The texture that was rendered by the render target
public Texture2D,Microsoft.Xna.Framework.Graphics mTexture
리턴 Microsoft.Xna.Framework.Graphics.Texture2D