C# Класс Sharplike.Core.Rendering.RegionTile

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AddGlyph() публичный Метод

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
Результат void

AddGlyphProvider() публичный Метод

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.
Результат void

ClearGlyphs() публичный Метод

Clears all glyphs from the tile. Does not reset the background color.
public ClearGlyphs ( ) : void
Результат void

RemoveGlyphProvider() публичный Метод

Removes a single glyph provider from the region tile.
public RemoveGlyphProvider ( IGlyphProvider g ) : void
g IGlyphProvider The glyph provider to remove
Результат void

Reset() публичный Метод

Clears all glyphs and resets the background color to black.
public Reset ( ) : void
Результат void