Property | Type | Description | |
---|---|---|---|
spriteEffects | SpriteEffects |
Property | Type | Description | |
---|---|---|---|
_origin | |||
_subtexture |
Method | Description | |
---|---|---|
Sprite ( ) : Nez.Textures | ||
Sprite ( |
||
Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Nez.Textures | ||
drawOutline ( Graphics graphics, Camera camera, Microsoft.Xna.Framework.Color outlineColor, int offset = 1 ) : void | ||
drawOutline ( Graphics graphics, Camera camera, int offset = 1 ) : void |
Draws the Renderable with an outline. Note that this should be called on disabled Renderables since they shouldnt take part in default rendering if they need an ouline.
|
|
render ( Graphics graphics, Camera camera ) : void | ||
setOrigin ( |
sets the origin for the Renderable
|
|
setOriginNormalized ( |
helper for setting the origin in normalized fashion (0-1 for x and y)
|
|
setSubtexture ( |
sets the Subtexture and updates the origin of the Sprite to match Subtexture.origin. If for whatever reason you need an origin different from the Subtexture either clone it or set the origin AFTER setting the Subtexture here.
|
public Sprite ( |
||
subtexture | ||
return | Nez.Textures |
public Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Nez.Textures | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
return | Nez.Textures |
public drawOutline ( Graphics graphics, Camera camera, Microsoft.Xna.Framework.Color outlineColor, int offset = 1 ) : void | ||
graphics | Graphics | |
camera | Camera | |
outlineColor | Microsoft.Xna.Framework.Color | |
offset | int | |
return | void |
public drawOutline ( Graphics graphics, Camera camera, int offset = 1 ) : void | ||
graphics | Graphics | Graphics. |
camera | Camera | Camera. |
offset | int | Offset. |
return | void |
public render ( Graphics graphics, Camera camera ) : void | ||
graphics | Graphics | |
camera | Camera | |
return | void |
public setOrigin ( |
||
origin | Origin. | |
return | Sprite |
public setOriginNormalized ( |
||
value | ||
return | Sprite |
public setSubtexture ( |
||
subtexture | Subtexture. | |
return | Sprite |
protected Vector2,Microsoft.Xna.Framework _origin | ||
return |
protected Subtexture,Nez.Textures _subtexture | ||
return |