C# Class 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.
Inheritance: RenderableComponent
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Свойство Type Description
outlineColor Microsoft.Xna.Framework.Color
outlineWidth int

Méthodes publiques

Méthode Description
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

Method Details

SpriteOutlineRenderer() public méthode

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.
Résultat Nez.Sprites

onEntityTransformChanged() public méthode

public onEntityTransformChanged ( Transform comp ) : void
comp Transform
Résultat void

render() public méthode

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
Résultat void

Property Details

outlineColor public_oe property

the color the sprite will be tinted when it is rendered
public Color,Microsoft.Xna.Framework outlineColor
Résultat Microsoft.Xna.Framework.Color

outlineWidth public_oe property

the width of the outline
public int outlineWidth
Résultat int