Sharplike.Core.Rendering.RegionTile.AddGlyph C# (CSharp) Méthode

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
        public void AddGlyph(Int32 glyphIndex, Color glyphColor, Color backColor)
        {
            this.glyphList.Add(new RawGlyphProvider(new Glyph(glyphIndex, glyphColor), backColor));
            if (displaytile != null)
                displaytile.MakeRenderDirty();
        }