C# Class Sharplike.Core.Rendering.RegionTile

Afficher le fichier Open project: eropple/sharplike Class Usage Examples

Méthodes publiques

Méthode Description
AddGlyph ( Int32 glyphIndex, Color glyphColor, Color backColor ) : void

Adds a glyph to the tile.

Many glyphs can be in a single tile, and they will just overlay each other. Make sure to invoke DisplayTile.ClearGlyphs() or DisplayTile.Reset() if you want to fully replace them.

AddGlyphProvider ( IGlyphProvider g ) : void

Adds a glyph to the tile.

Many glyphs can be in a single tile, and they will just overlay each other. Make sure to invoke DisplayTile.ClearGlyphs() or DisplayTile.Reset() if you want to fully replace them.

ClearGlyphs ( ) : void

Clears all glyphs from the tile. Does not reset the background color.

RemoveGlyphProvider ( IGlyphProvider g ) : void

Removes a single glyph provider from the region tile.

Reset ( ) : void

Clears all glyphs and resets the background color to black.

Method Details

AddGlyph() public méthode

Adds a glyph to the tile.
Many glyphs can be in a single tile, and they will just overlay each other. Make sure to invoke DisplayTile.ClearGlyphs() or DisplayTile.Reset() if you want to fully replace them.
public AddGlyph ( Int32 glyphIndex, Color glyphColor, Color backColor ) : void
glyphIndex System.Int32 The index of the glyph to add.
glyphColor Color The color of the specific glyph.
backColor Color
Résultat void

AddGlyphProvider() public méthode

Adds a glyph to the tile.
Many glyphs can be in a single tile, and they will just overlay each other. Make sure to invoke DisplayTile.ClearGlyphs() or DisplayTile.Reset() if you want to fully replace them.
public AddGlyphProvider ( IGlyphProvider g ) : void
g IGlyphProvider The pre-created glyph to add.
Résultat void

ClearGlyphs() public méthode

Clears all glyphs from the tile. Does not reset the background color.
public ClearGlyphs ( ) : void
Résultat void

RemoveGlyphProvider() public méthode

Removes a single glyph provider from the region tile.
public RemoveGlyphProvider ( IGlyphProvider g ) : void
g IGlyphProvider The glyph provider to remove
Résultat void

Reset() public méthode

Clears all glyphs and resets the background color to black.
public Reset ( ) : void
Résultat void