Свойство | Type | Description | |
---|---|---|---|
spriteEffects | SpriteEffects |
Свойство | Type | Description | |
---|---|---|---|
_origin | |||
_subtexture |
Méthode | 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 | ||
Résultat | Nez.Textures |
public Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Nez.Textures | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
Résultat | 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 | |
Résultat | void |
public drawOutline ( Graphics graphics, Camera camera, int offset = 1 ) : void | ||
graphics | Graphics | Graphics. |
camera | Camera | Camera. |
offset | int | Offset. |
Résultat | void |
public render ( Graphics graphics, Camera camera ) : void | ||
graphics | Graphics | |
camera | Camera | |
Résultat | void |
public setOrigin ( |
||
origin | Origin. | |
Résultat | Sprite |
public setOriginNormalized ( |
||
value | ||
Résultat | Sprite |
public setSubtexture ( |
||
subtexture | Subtexture. | |
Résultat | Sprite |
protected Vector2,Microsoft.Xna.Framework _origin | ||
Résultat |
protected Subtexture,Nez.Textures _subtexture | ||
Résultat |