C# Class Glare.Assets.IndexedTextureAsset

A texture that is indexed by a palette.
Inheritance: TextureAsset
Show file Open project: Burton-Radons/Alexandria Class Usage Examples

Public Methods

Method Description
IndexedTextureAsset ( AssetLoader loader, PaletteAsset palette, int width, int height, int indices, int pitch = -1 ) : System

Initialise the texture.

IndexedTextureAsset ( AssetManager manager, string name, PaletteAsset palette, int width, int height, int indices, int pitch = -1 ) : System

Initialise the texture.

Protected Methods

Method Description
IndexedTextureAsset ( AssetLoader loader ) : System

Initialise the texture.

IndexedTextureAsset ( AssetManager manager, string name ) : System

Initialise the texture.

IndexedTextureAsset ( FolderAsset parent, AssetLoader loader ) : System

Initialise the texture.

Setup ( PaletteAsset palette, int width, int height, int indices, int pitch = -1 ) : void

Setup the texture.

Update ( int width, int height ) : void

Update the texture.

Private Methods

Method Description
ConvertColor ( Color color ) : int

Method Details

IndexedTextureAsset() protected method

Initialise the texture.
protected IndexedTextureAsset ( AssetLoader loader ) : System
loader AssetLoader
return System

IndexedTextureAsset() public method

Initialise the texture.
public IndexedTextureAsset ( AssetLoader loader, PaletteAsset palette, int width, int height, int indices, int pitch = -1 ) : System
loader AssetLoader The asset loader state.
palette PaletteAsset
width int
height int
indices int
pitch int
return System

IndexedTextureAsset() protected method

Initialise the texture.
protected IndexedTextureAsset ( AssetManager manager, string name ) : System
manager AssetManager
name string
return System

IndexedTextureAsset() public method

Initialise the texture.
public IndexedTextureAsset ( AssetManager manager, string name, PaletteAsset palette, int width, int height, int indices, int pitch = -1 ) : System
manager AssetManager
name string
palette PaletteAsset
width int
height int
indices int
pitch int
return System

IndexedTextureAsset() protected method

Initialise the texture.
protected IndexedTextureAsset ( FolderAsset parent, AssetLoader loader ) : System
parent FolderAsset
loader AssetLoader
return System

Setup() protected method

Setup the texture.
protected Setup ( PaletteAsset palette, int width, int height, int indices, int pitch = -1 ) : void
palette PaletteAsset
width int
height int
indices int
pitch int
return void

Update() protected method

Update the texture.
protected Update ( int width, int height ) : void
width int
height int
return void