C# Class Nez.Sprites.SpriteMime

this component will draw the same frame of of spriteToMime every frame. The only difference in rendering is that SpriteMime uses its own localPosition and color. This allows you to use it for the purpose of shadows (by offsetting via localPosition) or silhouettes (with a Material that has a stencil read).
Inheritance: RenderableComponent
Mostra file Open project: prime31/Nez

Public Methods

Method Description
SpriteMime ( Sprite spriteToMime )
render ( Graphics graphics, Camera camera ) : void

Method Details

SpriteMime() public method

public SpriteMime ( Sprite spriteToMime )
spriteToMime Sprite

render() public method

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
return void