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

Represents a 2D Image.
Наследование: Component
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
disposed bool
texture Texture

Private Properties

Свойство Тип Описание
InitMaterial void
LoadTexture void
RefreshMaterialFromPath void
RefreshTexture void
UnloadTexture void

Открытые методы

Метод Описание
Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

Sprite ( ) : System

Initializes a new instance of the Sprite class based on a content file.

Sprite ( Material material ) : System

Initializes a new instance of the Sprite class based on a content file.

Sprite ( Texture texture ) : System

Initializes a new instance of the Sprite class based on a texture. See Texture for more information.

Sprite ( string texturePath ) : System

Initializes a new instance of the Sprite class based on a content file.

Защищенные методы

Метод Описание
DefaultValues ( ) : void

The default values

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Initialize ( ) : void

Performs further custom initialization for this instance.

UpdateSourceRectangle ( ) : void

The update source rectangle.

Приватные методы

Метод Описание
InitMaterial ( ) : void

Init material

LoadTexture ( ) : void

Load texture

RefreshMaterialFromPath ( ) : void

Init material

RefreshTexture ( ) : void

Refresh the sprite texture

UnloadTexture ( ) : void

Unload texture

Описание методов

DefaultValues() защищенный Метод

The default values
protected DefaultValues ( ) : void
Результат void

Dispose() публичный Метод

Releases unmanaged and - optionally - managed 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

Sprite() публичный Метод

Initializes a new instance of the Sprite class based on a content file.
public Sprite ( ) : System
Результат System

Sprite() публичный Метод

Initializes a new instance of the Sprite class based on a content file.
Material can not be null.
public Sprite ( Material material ) : System
material Material The material used to render the sprite.
Результат System

Sprite() публичный Метод

Initializes a new instance of the Sprite class based on a texture. See Texture for more information.
Texture can not be null.
public Sprite ( Texture texture ) : System
texture Texture The texture.
Результат System

Sprite() публичный Метод

Initializes a new instance of the Sprite class based on a content file.
TexturePath can not be null.
public Sprite ( string texturePath ) : System
texturePath string The texture path to the content file.
Результат System

UpdateSourceRectangle() защищенный Метод

The update source rectangle.
Sprite has been disposed.
protected UpdateSourceRectangle ( ) : void
Результат void

Описание свойств

disposed защищенное свойство

The disposed
protected bool disposed
Результат bool

texture защищенное свойство

The sprite texture
protected Texture texture
Результат Texture