C# Class Some2DRPG.Shaders.LightShader

Inheritance: GameEngine.Shaders.PostGameShader
Show file 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
LightShader ( GraphicsDevice graphicsDevice, int circlePointAccuracy ) : System
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content ) : void
SetResolution ( int width, int height ) : void

Private Methods

Method Description
SetUpCircle ( float radiusX, float radiusY, Vector3 center, Color color, int points, Vector2 range ) : Microsoft.Xna.Framework.Graphics.VertexPositionColor[]

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

LightShader() public method

public LightShader ( GraphicsDevice graphicsDevice, int circlePointAccuracy ) : System
graphicsDevice GraphicsDevice
circlePointAccuracy int
return System

LoadContent() public method

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

SetResolution() public method

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