Свойство | Тип | Описание | |
---|---|---|---|
spriteAnimationDetails | List | ||
subtextures | List |
||
texture | Microsoft.Xna.Framework.Graphics.Texture2D |
Метод | Описание | |
---|---|---|
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 | |
Результат | 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 | |
Результат |
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 | |
Результат |
public getSpriteAnimation ( string animationName ) : SpriteAnimation | ||
animationName | string | Animation name. |
Результат | SpriteAnimation |
public getSubtexture ( int index ) : |
||
index | int | |
Результат |
public getSubtexture ( string name ) : |
||
name | string | |
Результат |
public removeSubtexture ( int index ) : void | ||
index | int | |
Результат | void |
public removeSubtexture ( string name ) : void | ||
name | string | |
Результат | void |
public this ( int index ) : |
||
index | int | |
Результат |
public this ( string name ) : |
||
name | string | |
Результат |
public Dictionary |
||
Результат | List |