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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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