C# Class WaveEngine.Components.Graphics2D.Billboard

Inheritance: Component
Datei anzeigen Open project: WaveEngine/Components

Protected Properties

Property Type Description
disposed bool
size System.Vector2
texture Texture

Private Properties

Property Type Description
RefreshTexture void
UpdateSize void

Public Methods

Method Description
Billboard ( ) : System

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

Billboard ( Texture texture ) : System

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

Billboard ( string texturePath ) : System

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

Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

Protected Methods

Method Description
DefaultValues ( ) : void

The default values

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

Initialize ( ) : void

Performs further custom initialization for this instance.

Private Methods

Method Description
RefreshTexture ( ) : void

Reload the billboard texture

UpdateSize ( ) : void

The update source rectangle.

Method Details

Billboard() public method

Initializes a new instance of the Billboard class based on a content file.
public Billboard ( ) : System
return System

Billboard() public method

Initializes a new instance of the Billboard class based on a texture. See Texture for more information.
Texture can not be null.
public Billboard ( Texture texture ) : System
texture Texture The texture.
return System

Billboard() public method

Initializes a new instance of the Billboard class based on a content file.
TexturePath can not be null.
public Billboard ( string texturePath ) : System
texturePath string The texture path to the content file.
return System

DefaultValues() protected method

The default values
protected DefaultValues ( ) : void
return void

Dispose() public method

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
return void

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

Initialize() protected method

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

Property Details

disposed protected_oe property

The disposed
protected bool disposed
return bool

size protected_oe property

The final size
protected Vector2,System size
return System.Vector2

texture protected_oe property

The billboard texture
protected Texture texture
return Texture