C# Класс WaveEngine.Components.Graphics2D.SpriteAtlas

A collection of images.
Наследование: Component, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
SourceRectangle Rectangle

Защищенные свойства (Protected)

Свойство Тип Описание
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