hxn

TextGlyph

Constructor

function new(x:Float, y:Float, width:Float, height:Float, atlasX:UInt, atlasY:UInt, atlasWidth:UInt, atlasHeight:UInt, kind:AtlasKind)

Parameter: atlasX Atlas pixel coordinates. Normalize against the texture's current dimensions when drawing. @param x Logical pixel bounds, relative to the text origin.

Static methods

function hxnRead(input:BytesInput):TextGlyph

Reads what the library wrote.

Properties

var x:Float

Logical pixel bounds, relative to the text origin.

var y:Float
var width:Float
var height:Float
var atlasX:UInt

Atlas pixel coordinates. Normalize against the texture's current dimensions when drawing.

var atlasY:UInt
var atlasWidth:UInt
var atlasHeight:UInt
var kind:AtlasKind

Methods

function hxnWrite(out:BytesBuffer):Void

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