C# 클래스 Nez.SpriteOutlineRenderer

renders a sprite with an outline in a very inefficient (but simple) way. The sprite is rendered multiple times offset/colored then it is rendered normally on top of that.
상속: RenderableComponent
파일 보기 프로젝트 열기: prime31/Nez

공개 프로퍼티들

프로퍼티 타입 설명
outlineColor Microsoft.Xna.Framework.Color
outlineWidth int

공개 메소드들

메소드 설명
SpriteOutlineRenderer ( Sprite sprite ) : Nez.Sprites

the Sprite passed in will be disabled. The SpriteOutlineRenderer will handle manually calling its render method.

onEntityTransformChanged ( Transform comp ) : void
render ( Graphics graphics, Camera camera ) : void

메소드 상세

SpriteOutlineRenderer() 공개 메소드

the Sprite passed in will be disabled. The SpriteOutlineRenderer will handle manually calling its render method.
public SpriteOutlineRenderer ( Sprite sprite ) : Nez.Sprites
sprite Nez.Sprites.Sprite Sprite.
리턴 Nez.Sprites

onEntityTransformChanged() 공개 메소드

public onEntityTransformChanged ( Transform comp ) : void
comp Transform
리턴 void

render() 공개 메소드

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
리턴 void

프로퍼티 상세

outlineColor 공개적으로 프로퍼티

the color the sprite will be tinted when it is rendered
public Color,Microsoft.Xna.Framework outlineColor
리턴 Microsoft.Xna.Framework.Color

outlineWidth 공개적으로 프로퍼티

the width of the outline
public int outlineWidth
리턴 int