C# Class GameEngine.Shaders.PostGameShader

Abstract Plugin Shader class that can be applied to a TileEngine. The shader provides an easy way to output a RenderTarget based on some input RenderTarget that would have been rendered by the Engine previously. This allows sequantial application of Game Shaders.
Inheritance: ILoadable
Afficher le fichier Open project: MichaelAquilina/Some-2D-RPG Class Usage Examples

Méthodes publiques

Méthode Description
ApplyShader ( SpriteBatch spriteBatch, ViewPortInfo viewPortInfo, GameTime gameTime, RenderTarget2D inputBuffer, RenderTarget2D outputBuffer ) : void
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
PostGameShader ( GraphicsDevice graphicsDevice ) : System
SetResolution ( int width, int height ) : void
ToString ( ) : string

Method Details

ApplyShader() public méthode

public ApplyShader ( SpriteBatch spriteBatch, ViewPortInfo viewPortInfo, GameTime gameTime, RenderTarget2D inputBuffer, RenderTarget2D outputBuffer ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
viewPortInfo GameEngine.Info.ViewPortInfo
gameTime Microsoft.Xna.Framework.GameTime
inputBuffer Microsoft.Xna.Framework.Graphics.RenderTarget2D
outputBuffer Microsoft.Xna.Framework.Graphics.RenderTarget2D
Résultat void

LoadContent() public méthode

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
Résultat void

PostGameShader() public méthode

public PostGameShader ( GraphicsDevice graphicsDevice ) : System
graphicsDevice GraphicsDevice
Résultat System

SetResolution() public méthode

public SetResolution ( int width, int height ) : void
width int
height int
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string