C# Class WaveEngine.Components.UI.ImageAtlas

The image atlas.
Inheritance: Control
Mostrar archivo Open project: WaveEngine/Components Class Usage Examples

Public Properties

Property Type Description
SourceRectangle Rectangle

Protected Properties

Property Type Description
disposed bool
isGlobalAsset bool

Public Methods

Method Description
ImageAtlas ( string atlasPath, string textureName ) : System

Initializes a new instance of the ImageAtlas class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Initialize ( ) : void

Performs further custom initialization for this instance.

UpdateSourceRectangle ( ) : void

Updates the source rectangle.

Method Details

Dispose() protected method

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.
return void

ImageAtlas() public method

Initializes a new instance of the ImageAtlas class.
TexturePath can not be null.
public ImageAtlas ( string atlasPath, string textureName ) : System
atlasPath string The atlas path.
textureName string Name of the texture.
return System

Initialize() protected method

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

UpdateSourceRectangle() protected method

Updates the source rectangle.
ImageAtlas has been disposed.
protected UpdateSourceRectangle ( ) : void
return void

Property Details

SourceRectangle public_oe property

The source rectangle.
public Rectangle SourceRectangle
return Rectangle

disposed protected_oe property

The disposed
protected bool disposed
return bool

isGlobalAsset protected_oe property

The is global asset.
protected bool isGlobalAsset
return bool