Свойство | Type | Description | |
---|---|---|---|
mTexture | Microsoft.Xna.Framework.Graphics.Texture2D |
Свойство | Type | Description | |
---|---|---|---|
mEffect | |||
mEnabled | bool | ||
mRenderTargetFormat | SurfaceFormat | ||
mScreenRectangle |
Méthode | Description | |
---|---|---|
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
|
Méthode | Description | |
---|---|---|
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)
|
Méthode | Description | |
---|---|---|
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. |
Résultat | 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 |
Résultat | 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 | ||
Résultat | void |
public PostProcessingEffectBase ( ) : System | ||
Résultat | System |
public PostProcessingEffectBase ( |
||
effect | ||
Résultat | System |
public PostProcessingEffectBase ( String effectPath ) : System | ||
effectPath | String | |
Résultat | System |
public PostProcessingEffectBase ( String effectPath, String contentManagerName ) : System | ||
effectPath | String | |
contentManagerName | String | |
Résultat | System |
protected SetEffectParameters ( Camera camera ) : void | ||
camera | Camera | |
Résultat | void |
protected Effect,Microsoft.Xna.Framework.Graphics mEffect | ||
Résultat |
protected SurfaceFormat mRenderTargetFormat | ||
Résultat | SurfaceFormat |
protected Rectangle,Microsoft.Xna.Framework mScreenRectangle | ||
Résultat |