Свойство | Type | Description | |
---|---|---|---|
spriteAnimationDetails | List | ||
subtextures | List |
||
texture | Microsoft.Xna.Framework.Graphics.Texture2D |
Méthode | Description | |
---|---|---|
TexturePackerAtlas ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System.Collections.Generic | ||
create ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int regionWidth, int regionHeight, int maxRegionCount = int.MaxValue, int margin, int spacing ) : |
||
createRegion ( string name, int x, int y, int width, int height, float pivotX = 0.5f, float pivotY = 0.5f ) : |
||
getSpriteAnimation ( string animationName ) : SpriteAnimation |
returns a SpriteAnimation given an animationName where the animationName is the region's "filename" metadata in the TexturePacker atlas minus the framenumbers at the end
|
|
getSubtexture ( int index ) : |
||
getSubtexture ( string name ) : |
||
removeSubtexture ( int index ) : void | ||
removeSubtexture ( string name ) : void | ||
this ( int index ) : |
||
this ( string name ) : |
public TexturePackerAtlas ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System.Collections.Generic | ||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
Résultat | System.Collections.Generic |
public static create ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int regionWidth, int regionHeight, int maxRegionCount = int.MaxValue, int margin, int spacing ) : |
||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | |
regionWidth | int | |
regionHeight | int | |
maxRegionCount | int | |
margin | int | |
spacing | int | |
Résultat |
public createRegion ( string name, int x, int y, int width, int height, float pivotX = 0.5f, float pivotY = 0.5f ) : |
||
name | string | |
x | int | |
y | int | |
width | int | |
height | int | |
pivotX | float | |
pivotY | float | |
Résultat |
public getSpriteAnimation ( string animationName ) : SpriteAnimation | ||
animationName | string | Animation name. |
Résultat | SpriteAnimation |
public getSubtexture ( int index ) : |
||
index | int | |
Résultat |
public getSubtexture ( string name ) : |
||
name | string | |
Résultat |
public removeSubtexture ( int index ) : void | ||
index | int | |
Résultat | void |
public removeSubtexture ( string name ) : void | ||
name | string | |
Résultat | void |
public this ( int index ) : |
||
index | int | |
Résultat |
public this ( string name ) : |
||
name | string | |
Résultat |
public Dictionary |
||
Résultat | List |