hxn

PreparedText

Constructor

function new(glyphs:Array<TextGlyph>, width:Float, height:Float, ascent:Float, descent:Float, generation:UInt)

Parameter: generation Compare with TextEngine.generation before reusing atlas coordinates.

Static methods

function hxnRead(input:BytesInput):PreparedText

Reads what the library wrote.

Properties

var glyphs:Array<TextGlyph>
var width:Float
var height:Float
var ascent:Float
var descent:Float
var generation:UInt

Compare with TextEngine.generation before reusing atlas coordinates.

Methods

function hxnWrite(out:BytesBuffer):Void

Writes the fields in order, as the library reads them.