C# 클래스 WarTornLands.Infrastructure.Systems.DrawSystem.DrawManager

파일 보기 프로젝트 열기: floAr/WarTornLands

공개 메소드들

메소드 설명
Bake ( IDrawProvider drawProvider ) : void

Bakes the specified IDrawProvider by calling its Draw(GameTime).

Bake ( RenderTarget2D drawProvider ) : void

Bakes the specified RenderTarget2D.

Bake ( Microsoft.Xna.Framework.Graphics.Texture2D drawProvider ) : void
BakeBeginEffect ( BaseEffect effect ) : void
BakeBeginEffect ( Effect effect ) : void

Starts the excecution of a Effect.\n Note that SpriteSortMode MUST be 'Immediate'.

BakeEndEffect ( ) : void

Removes an applied effect from the bake process.

BakeFill ( Color c ) : void

Fills the whole current RenderTarget2D with one color.

BeginBake ( GameTime gameTime, RenderTarget2D plate, SpriteSortMode customSortMode = SpriteSortMode.Deferred, BlendState customBlendState = null ) : void

Starts the bake process and uses a predefined RenderTarget2D.

BeginBake ( GameTime gameTime, SpriteSortMode customSortMode = SpriteSortMode.Deferred, BlendState customBlendState = null ) : void

Starts the bake process and prepares a fresh RenderTarget2D.

Draw ( RenderTarget2D source, GameTime gameTime ) : void

Draws the specified RenderTarget2D.

DrawManager ( ) : WarTornLands.DEBUG

Manager who handles all the drawing and effect applying.

EndBake ( ) : RenderTarget2D

Ends the baking process and return the well done RenderTarget2D.

FireAndForget ( BaseEffect effect ) : void
Update ( GameTime gameTime ) : void

비공개 메소드들

메소드 설명
createRT ( ) : RenderTarget2D

Creates a new RenderTarget2D.

메소드 상세

Bake() 공개 메소드

Bakes the specified IDrawProvider by calling its Draw(GameTime).
BeginBake must be called before Bake
public Bake ( IDrawProvider drawProvider ) : void
drawProvider IDrawProvider The draw provider implementing Draw(GameTime).
리턴 void

Bake() 공개 메소드

Bakes the specified RenderTarget2D.
BeginBake must be called before Bake
public Bake ( RenderTarget2D drawProvider ) : void
drawProvider Microsoft.Xna.Framework.Graphics.RenderTarget2D The RenderTarget to draw.
리턴 void

Bake() 공개 메소드

public Bake ( Microsoft.Xna.Framework.Graphics.Texture2D drawProvider ) : void
drawProvider Microsoft.Xna.Framework.Graphics.Texture2D
리턴 void

BakeBeginEffect() 공개 메소드

public BakeBeginEffect ( BaseEffect effect ) : void
effect BaseEffect
리턴 void

BakeBeginEffect() 공개 메소드

Starts the excecution of a Effect.\n Note that SpriteSortMode MUST be 'Immediate'.
BeginBake must be called before BakeBeginEffect When using Effect stick to SpriteSortMode.Immediate.\nEffects won´t affect Sprite when deferred drawing is used
public BakeBeginEffect ( Effect effect ) : void
effect Microsoft.Xna.Framework.Graphics.Effect Effect to be startet
리턴 void

BakeEndEffect() 공개 메소드

Removes an applied effect from the bake process.
BeginBake must be called before BakeBeginEffect
public BakeEndEffect ( ) : void
리턴 void

BakeFill() 공개 메소드

Fills the whole current RenderTarget2D with one color.
public BakeFill ( Color c ) : void
c Color Color to apply on the whole RenderTarget2D
리턴 void

BeginBake() 공개 메소드

Starts the bake process and uses a predefined RenderTarget2D.
public BeginBake ( GameTime gameTime, RenderTarget2D plate, SpriteSortMode customSortMode = SpriteSortMode.Deferred, BlendState customBlendState = null ) : void
gameTime Microsoft.Xna.Framework.GameTime Time since last update
plate Microsoft.Xna.Framework.Graphics.RenderTarget2D The RenderTarget2D which is used to bake on
customSortMode SpriteSortMode If needed specify SpriteSortMode for this bake process
customBlendState Microsoft.Xna.Framework.Graphics.BlendState If needed specify BlendState for this bake process
리턴 void

BeginBake() 공개 메소드

Starts the bake process and prepares a fresh RenderTarget2D.
public BeginBake ( GameTime gameTime, SpriteSortMode customSortMode = SpriteSortMode.Deferred, BlendState customBlendState = null ) : void
gameTime Microsoft.Xna.Framework.GameTime Time since last update
customSortMode SpriteSortMode If needed specify SpriteSortMode for this bake process
customBlendState Microsoft.Xna.Framework.Graphics.BlendState If needed specify BlendState for this bake process
리턴 void

Draw() 공개 메소드

Draws the specified RenderTarget2D.
public Draw ( RenderTarget2D source, GameTime gameTime ) : void
source Microsoft.Xna.Framework.Graphics.RenderTarget2D The RenderTarget2D to put on the screen.
gameTime Microsoft.Xna.Framework.GameTime The game time since last Update.
리턴 void

DrawManager() 공개 메소드

Manager who handles all the drawing and effect applying.
public DrawManager ( ) : WarTornLands.DEBUG
리턴 WarTornLands.DEBUG

EndBake() 공개 메소드

Ends the baking process and return the well done RenderTarget2D.
BeginBake must be called before EndBake
public EndBake ( ) : RenderTarget2D
리턴 Microsoft.Xna.Framework.Graphics.RenderTarget2D

FireAndForget() 공개 메소드

public FireAndForget ( BaseEffect effect ) : void
effect BaseEffect
리턴 void

Update() 공개 메소드

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void