public SpriteCharacter(uint unicode, SpriteGlyph glyph)
 {
     this.m_ElementType = TextElementType.Sprite;
     base.unicode       = unicode;
     base.glyphIndex    = glyph.index;
     base.glyph         = glyph;
     base.scale         = 1f;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor for new sprite character.
        /// </summary>
        /// <param name="unicode">Unicode value of the sprite character.</param>
        /// <param name="glyph">Glyph used by the sprite character.</param>
        public SpriteCharacter(uint unicode, SpriteGlyph glyph)
        {
            m_ElementType = TextElementType.Sprite;

            this.unicode    = unicode;
            this.glyphIndex = glyph.index;
            this.glyph      = glyph;
            this.scale      = 1.0f;
        }