C# 클래스 Nez.TextureAtlases.TextureAtlas

runtime component of the TextureAtlasGenerator. Stores the main Texture2D and all relevant metadata
파일 보기 프로젝트 열기: prime31/Nez

공개 프로퍼티들

프로퍼티 타입 설명
regionNames string[]
subtextures Nez.Textures.Subtexture[]

공개 메소드들

메소드 설명
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

메소드 상세

TextureAtlas() 공개 메소드

public TextureAtlas ( string regionNames, Subtexture subtextures ) : Nez.Textures
regionNames string
subtextures Nez.Textures.Subtexture
리턴 Nez.Textures

TextureAtlas() 공개 메소드

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
리턴 Nez.Textures

containsSubtexture() 공개 메소드

checks whether the subtexture is contained in this atlas.
public containsSubtexture ( string name ) : bool
name string the image name
리턴 bool

getSpriteAnimation() 공개 메소드

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.
리턴 Nez.Sprites.SpriteAnimation

getSubtexture() 공개 메소드

gets the Subtexture for the passed in image name
public getSubtexture ( string name ) : Subtexture
name string Name.
리턴 Nez.Textures.Subtexture

this() 공개 메소드

public this ( string name ) : Subtexture
name string
리턴 Nez.Textures.Subtexture

프로퍼티 상세

regionNames 공개적으로 프로퍼티

image names for the subtextures. maps directly to the subtextures array
public string[] regionNames
리턴 string[]

subtextures 공개적으로 프로퍼티

array of all subtextures from the atlas
public Subtexture[],Nez.Textures subtextures
리턴 Nez.Textures.Subtexture[]