TileInfo

lumin.glyph. TileInfo

Information about each glyph for use in rendering. Glyphs occupy tiles,
which can be combined to draw text.

Constructor

new TileInfo(code, texId, layer, texMin, texMax, size, mt)

Parameters:
Name Type Description
code number
texId number
layer number
texMin vec2
texMax vec2
size lumin.glyph.TextureSize
mt lumin.glyph.Metrics

Members

charCode :number

Unicode character represented by the glyph.

Type:
  • number

layerIndex :number

Index of the layer in the 2D texture array containing the glyph.

Type:
  • number

metrics :lumin.glyph.Metrics

Positioning information for the glyph in a string of text.

Type:

(static, constant) NO_TILE :lumin.glyph.TileInfo

Type:

texMaxCoord :vec2

Max texture coordinate (u, v) on the 2D-texture layer.

Type:
  • vec2

texMinCoord :vec2

Min texture coordinate (u, v) on the 2D-texture layer.

Type:
  • vec2

textureId :number

ID of the 2D texture array in which this glyph's tile is drawn.

Type:
  • number

textureSize :lumin.glyph.TextureSize

Identifies the texture size occupied by the glyph's image.

Type: