C# Class Some2DRPG.Shaders.LightShader

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

Private Methods

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

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

LightShader() public méthode

public LightShader ( GraphicsDevice graphicsDevice, int circlePointAccuracy ) : System
graphicsDevice GraphicsDevice
circlePointAccuracy int
Résultat System

LoadContent() public méthode

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

SetResolution() public méthode

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