C# 클래스 WaveEngine.Components.Graphics2D.SpriteAtlas

A collection of images.
상속: Component, IDisposable
파일 보기 프로젝트 열기: WaveEngine/Components 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
SourceRectangle Rectangle

보호된 프로퍼티들

프로퍼티 타입 설명
disposed bool

Private Properties

프로퍼티 타입 설명
RefreshAtlasTexture void
RefreshTextureIndex void

공개 메소드들

메소드 설명
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

SpriteAtlas ( ) : System

Initializes a new instance of the SpriteAtlas class.

SpriteAtlas ( string atlasPath ) : System

Initializes a new instance of the SpriteAtlas class.

SpriteAtlas ( string atlasPath, string textureName ) : System

Initializes a new instance of the SpriteAtlas class.

보호된 메소드들

메소드 설명
DefaultValues ( ) : void

Sets default values

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Initialize ( ) : void

Performs further custom initialization for this instance.

RefreshSourceRectangle ( ) : void

Refresh the source rectangle of the sprite transform 2D.

비공개 메소드들

메소드 설명
RefreshAtlasTexture ( ) : void

Refresh the atlas texture

RefreshTextureIndex ( ) : void

Refresh texture index from its name

메소드 상세

DefaultValues() 보호된 메소드

Sets default values
protected DefaultValues ( ) : void
리턴 void

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool /// true to release both managed and unmanaged resources; false to release only unmanaged resources. ///
리턴 void

Initialize() 보호된 메소드

Performs further custom initialization for this instance.
protected Initialize ( ) : void
리턴 void

RefreshSourceRectangle() 보호된 메소드

Refresh the source rectangle of the sprite transform 2D.
SpriteAtlas has been disposed.
protected RefreshSourceRectangle ( ) : void
리턴 void

SpriteAtlas() 공개 메소드

Initializes a new instance of the SpriteAtlas class.
public SpriteAtlas ( ) : System
리턴 System

SpriteAtlas() 공개 메소드

Initializes a new instance of the SpriteAtlas class.
TexturePath can not be null.
public SpriteAtlas ( string atlasPath ) : System
atlasPath string The path to the atlas.
리턴 System

SpriteAtlas() 공개 메소드

Initializes a new instance of the SpriteAtlas class.
TexturePath can not be null.
public SpriteAtlas ( string atlasPath, string textureName ) : System
atlasPath string The path to the atlas.
textureName string Name of the texture from where this atlas is loaded.
리턴 System

프로퍼티 상세

SourceRectangle 공개적으로 프로퍼티

Rectangle for the Image of the atlas that will be rendered.
public Rectangle SourceRectangle
리턴 Rectangle

disposed 보호되어 있는 프로퍼티

The disposed.
protected bool disposed
리턴 bool