hxn

TextEngine

A CPU text engine with independent glyph atlases. It never draws or owns a GPU resource.

Constructor

function new()

Static methods

function hxnAdopt(hxnRaw:Handle):TextEngine

An object for a value the library returned.

Properties

var hxnRaw:Handle

Methods

function prepare(font:Font, text:String, options:TextOptions):PreparedText
function atlas(kind:AtlasKind, seenRevision:UInt):AtlasUpdate

Pass each texture consumer's last revision, or zero for a complete snapshot.

function generation():UInt
function clear():Void

Invalidates prepared atlas coordinates while retaining registered fonts.

function clearFonts():Void

Releases retained fonts and caches, and invalidates prepared atlas coordinates.

function close():Void

Releases the native value now. The collector does it otherwise. Using this object afterwards throws.