C# Class Glare.Assets.IndexedTextureAsset

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
ConvertColor ( Color color ) : int

Method Details

IndexedTextureAsset() protected méthode

Initialise the texture.
protected IndexedTextureAsset ( AssetLoader loader ) : System
loader AssetLoader
Résultat System

IndexedTextureAsset() public méthode

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
Résultat System

IndexedTextureAsset() protected méthode

Initialise the texture.
protected IndexedTextureAsset ( AssetManager manager, string name ) : System
manager AssetManager
name string
Résultat System

IndexedTextureAsset() public méthode

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
Résultat System

IndexedTextureAsset() protected méthode

Initialise the texture.
protected IndexedTextureAsset ( FolderAsset parent, AssetLoader loader ) : System
parent FolderAsset
loader AssetLoader
Résultat System

Setup() protected méthode

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
Résultat void

Update() protected méthode

Update the texture.
protected Update ( int width, int height ) : void
width int
height int
Résultat void