C# Class Nez.TextureAtlases.TextureAtlas

runtime component of the TextureAtlasGenerator. Stores the main Texture2D and all relevant metadata
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Свойство Type Description
regionNames string[]
subtextures Nez.Textures.Subtexture[]

Méthodes publiques

Méthode Description
TextureAtlas ( string regionNames, Subtexture subtextures ) : Nez.Textures
TextureAtlas ( string regionNames, Subtexture subtextures, Point>.Dictionary spriteAnimationDetails, int animationFPS = 15 ) : Nez.Textures
containsSubtexture ( string name ) : bool

checks whether the subtexture is contained in this atlas.

getSpriteAnimation ( string animationName ) : SpriteAnimation

returns a SpriteAnimation given an animationName where the animationName is the folder that contains the images

getSubtexture ( string name ) : Subtexture

gets the Subtexture for the passed in image name

this ( string name ) : Subtexture

Method Details

TextureAtlas() public méthode

public TextureAtlas ( string regionNames, Subtexture subtextures ) : Nez.Textures
regionNames string
subtextures Nez.Textures.Subtexture
Résultat Nez.Textures

TextureAtlas() public méthode

public TextureAtlas ( string regionNames, Subtexture subtextures, Point>.Dictionary spriteAnimationDetails, int animationFPS = 15 ) : Nez.Textures
regionNames string
subtextures Nez.Textures.Subtexture
spriteAnimationDetails Point>.Dictionary
animationFPS int
Résultat Nez.Textures

containsSubtexture() public méthode

checks whether the subtexture is contained in this atlas.
public containsSubtexture ( string name ) : bool
name string the image name
Résultat bool

getSpriteAnimation() public méthode

returns a SpriteAnimation given an animationName where the animationName is the folder that contains the images
public getSpriteAnimation ( string animationName ) : SpriteAnimation
animationName string Animation name.
Résultat Nez.Sprites.SpriteAnimation

getSubtexture() public méthode

gets the Subtexture for the passed in image name
public getSubtexture ( string name ) : Subtexture
name string Name.
Résultat Nez.Textures.Subtexture

this() public méthode

public this ( string name ) : Subtexture
name string
Résultat Nez.Textures.Subtexture

Property Details

regionNames public_oe property

image names for the subtextures. maps directly to the subtextures array
public string[] regionNames
Résultat string[]

subtextures public_oe property

array of all subtextures from the atlas
public Subtexture[],Nez.Textures subtextures
Résultat Nez.Textures.Subtexture[]