C# 클래스 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.
상속: ILoadable
파일 보기 프로젝트 열기: MichaelAquilina/Some-2D-RPG 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

ApplyShader() 공개 메소드

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
리턴 void

LoadContent() 공개 메소드

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

PostGameShader() 공개 메소드

public PostGameShader ( GraphicsDevice graphicsDevice ) : System
graphicsDevice GraphicsDevice
리턴 System

SetResolution() 공개 메소드

public SetResolution ( int width, int height ) : void
width int
height int
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string