C# Class WaveEngine.Components.Graphics2D.SpriteAtlas

A collection of images.
Inheritance: Component, IDisposable
Afficher le fichier Open project: WaveEngine/Components Class Usage Examples

Méthodes publiques

Свойство Type Description
SourceRectangle Rectangle

Protected Properties

Свойство Type Description
disposed bool

Private Properties

Свойство Type Description
RefreshAtlasTexture void
RefreshTextureIndex void

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
RefreshAtlasTexture ( ) : void

Refresh the atlas texture

RefreshTextureIndex ( ) : void

Refresh texture index from its name

Method Details

DefaultValues() protected méthode

Sets default values
protected DefaultValues ( ) : void
Résultat void

Dispose() public méthode

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

Dispose() protected méthode

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. ///
Résultat void

Initialize() protected méthode

Performs further custom initialization for this instance.
protected Initialize ( ) : void
Résultat void

RefreshSourceRectangle() protected méthode

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

SpriteAtlas() public méthode

Initializes a new instance of the SpriteAtlas class.
public SpriteAtlas ( ) : System
Résultat System

SpriteAtlas() public méthode

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.
Résultat System

SpriteAtlas() public méthode

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.
Résultat System

Property Details

SourceRectangle public_oe property

Rectangle for the Image of the atlas that will be rendered.
public Rectangle SourceRectangle
Résultat Rectangle

disposed protected_oe property

The disposed.
protected bool disposed
Résultat bool