Options
All
  • Public
  • Public/Protected
  • All
V1.7
  • V1.6
  • V1.7
Menu

Class TileInfo

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

Hierarchy

  • TileInfo

Index

Constructors

constructor

  • new TileInfo(code: number, texId: number, layer: number, texMin: [number, number] | Float32Array, texMax: [number, number] | Float32Array, size: TextureSize, mt: Metrics): TileInfo

Properties

charCode

charCode: number

Unicode character represented by the glyph.

layerIndex

layerIndex: number

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

metrics

metrics: Metrics

Positioning information for the glyph in a string of text.

texMaxCoord

texMaxCoord: [number, number]

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

texMinCoord

texMinCoord: [number, number]

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

textureId

textureId: number

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

textureSize

textureSize: TextureSize

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

Static NO_TILE

NO_TILE: TileInfo

Represents "no tile", which has a Unicode value of 0 (the NUL character). value = TileInfo(NUL_CHAR,0,0,[],[],TextureSize.kNormal,Metrics())

Generated using TypeDoc