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
Exibir arquivo Open project: MichaelAquilina/Some-2D-RPG Class Usage Examples

Public Methods

Method 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 method

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
return void

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
content Microsoft.Xna.Framework.Content.ContentManager
return void

PostGameShader() public method

public PostGameShader ( GraphicsDevice graphicsDevice ) : System
graphicsDevice GraphicsDevice
return System

SetResolution() public method

public SetResolution ( int width, int height ) : void
width int
height int
return void

ToString() public method

public ToString ( ) : string
return string