C# Class Sharplike.Core.Rendering.RegionTile

Mostra file Open project: eropple/sharplike Class Usage Examples

Public Methods

Method 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 method

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
return void

AddGlyphProvider() public method

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.
return void

ClearGlyphs() public method

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

RemoveGlyphProvider() public method

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

Reset() public method

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