C# 클래스 geek.GameEngine.Sprites.BlendableSprite

Makes a sprite blended with given color. http://gamedev.stackexchange.com/questions/24825/xna-sprite-flash-effect
상속: SpriteBase
파일 보기 프로젝트 열기: impworks/xna.geek.engine 1 사용 예제들

공개 메소드들

메소드 설명
BlendableSprite ( GameObject parent, SpriteBase sprite, Microsoft.Xna.Framework.Color color ) : Microsoft.Xna.Framework
Draw ( SpriteBatch batch, bool disableLayering = false ) : void

Draw the texture into stencil buffer, and then use the stencil to draw a single-colored texture.

GetTextureRegion ( Rectangle rect ) : Microsoft.Xna.Framework.Color[]
Reset ( ) : void
Update ( ) : void

비공개 메소드들

메소드 설명
BlendableSprite ( ) : Microsoft.Xna.Framework

메소드 상세

BlendableSprite() 공개 메소드

public BlendableSprite ( GameObject parent, SpriteBase sprite, Microsoft.Xna.Framework.Color color ) : Microsoft.Xna.Framework
parent geek.GameEngine.Visuals.GameObject
sprite SpriteBase
color Microsoft.Xna.Framework.Color
리턴 Microsoft.Xna.Framework

Draw() 공개 메소드

Draw the texture into stencil buffer, and then use the stencil to draw a single-colored texture.
public Draw ( SpriteBatch batch, bool disableLayering = false ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch Sprite batch
disableLayering bool Whether to use layer ordering or not.
리턴 void

GetTextureRegion() 공개 메소드

public GetTextureRegion ( Rectangle rect ) : Microsoft.Xna.Framework.Color[]
rect Microsoft.Xna.Framework.Rectangle
리턴 Microsoft.Xna.Framework.Color[]

Reset() 공개 메소드

public Reset ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void