프로퍼티 | 타입 | 설명 | |
---|---|---|---|
mTexture | Microsoft.Xna.Framework.Graphics.Texture2D |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
mEffect | |||
mEnabled | bool | ||
mRenderTargetFormat | SurfaceFormat | ||
mScreenRectangle |
메소드 | 설명 | |
---|---|---|
Draw ( Camera camera, Microsoft.Xna.Framework.Graphics.Texture2D &screenTexture, |
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, |
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 ( |
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, |
||
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, |
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, |
||
UpdateToScreenSize ( ) : void |
public Draw ( Camera camera, Microsoft.Xna.Framework.Graphics.Texture2D &screenTexture, |
||
camera | Camera | The camera to use when drawing. |
screenTexture | Microsoft.Xna.Framework.Graphics.Texture2D | The screen texture. |
baseRectangle | The rectangle to draw to. | |
clearColor | Color | The background color. |
리턴 | void |
public DrawIfEnabled ( Camera camera, Microsoft.Xna.Framework.Graphics.Texture2D &screenTexture, |
||
camera | Camera | The camera to use when drawing |
screenTexture | Microsoft.Xna.Framework.Graphics.Texture2D | The screen texture |
baseRectangle | The rectangle to draw to | |
clearColor | Color | The color to use as transparent |
리턴 | void |
protected DrawToTexture ( Camera camera, Microsoft.Xna.Framework.Graphics.Texture2D &destinationTexture, Color clearColor, Microsoft.Xna.Framework.Graphics.Texture2D &screenTexture, |
||
camera | Camera | |
destinationTexture | Microsoft.Xna.Framework.Graphics.Texture2D | |
clearColor | Color | |
screenTexture | Microsoft.Xna.Framework.Graphics.Texture2D | |
sourceRectangle | ||
리턴 | void |
public PostProcessingEffectBase ( |
||
effect | ||
리턴 | System |
public PostProcessingEffectBase ( String effectPath ) : System | ||
effectPath | String | |
리턴 | System |
public PostProcessingEffectBase ( String effectPath, String contentManagerName ) : System | ||
effectPath | String | |
contentManagerName | String | |
리턴 | System |
protected SetEffectParameters ( Camera camera ) : void | ||
camera | Camera | |
리턴 | void |
protected Effect,Microsoft.Xna.Framework.Graphics mEffect | ||
리턴 |
protected Rectangle,Microsoft.Xna.Framework mScreenRectangle | ||
리턴 |