Свойство | Тип | Описание | |
---|---|---|---|
spriteEffects | SpriteEffects |
Свойство | Тип | Описание | |
---|---|---|---|
_origin | |||
_subtexture |
Метод | Описание | |
---|---|---|
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 | ||
Результат | Nez.Textures |
public Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : Nez.Textures | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
Результат | 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 | |
Результат | void |
public drawOutline ( Graphics graphics, Camera camera, int offset = 1 ) : void | ||
graphics | Graphics | Graphics. |
camera | Camera | Camera. |
offset | int | Offset. |
Результат | void |
public render ( Graphics graphics, Camera camera ) : void | ||
graphics | Graphics | |
camera | Camera | |
Результат | void |
public setOrigin ( |
||
origin | Origin. | |
Результат | Sprite |
public setOriginNormalized ( |
||
value | ||
Результат | Sprite |
public setSubtexture ( |
||
subtexture | Subtexture. | |
Результат | Sprite |
protected Vector2,Microsoft.Xna.Framework _origin | ||
Результат |
protected Subtexture,Nez.Textures _subtexture | ||
Результат |