Class GlyphLayout.GlyphRun

All Implemented Interfaces:
Enclosing class:

public static class GlyphLayout.GlyphRun extends Object implements com.badlogic.gdx.utils.Pool.Poolable
Stores glyphs and positions for a piece of text which is a single color and does not span multiple lines.
  • Field Details

    • glyphs

      public com.badlogic.gdx.utils.Array<BitmapFont.Glyph> glyphs
    • xAdvances

      public com.badlogic.gdx.utils.FloatArray xAdvances
      Contains glyphs.size+1 entries: First entry is X offset relative to the drawing position. Subsequent entries are the X advance relative to previous glyph position. Last entry is the width of the last glyph.
    • x

      public float x
    • y

      public float y
    • width

      public float width
    • color

      public final color
  • Constructor Details

    • GlyphRun

      public GlyphRun()
  • Method Details

    • reset

      public void reset()
      Specified by:
      reset in interface com.badlogic.gdx.utils.Pool.Poolable
    • toString

      public String toString()
      toString in class Object