hxn

AtlasUpdate

Constructor

function new(kind:AtlasKind, revision:UInt, generation:UInt, width:UInt, height:UInt, x:UInt, y:UInt, patchWidth:UInt, patchHeight:UInt, stride:UInt, full:Bool, pixels:Bytes)

Parameter: stride Tightly packed rows: patch_width for coverage, four times it for straight RGBA.

Static methods

function hxnRead(input:BytesInput):AtlasUpdate

Reads what the library wrote.

Properties

var kind:AtlasKind
var revision:UInt
var generation:UInt
var width:UInt
var height:UInt
var x:UInt
var y:UInt
var patchWidth:UInt
var patchHeight:UInt
var stride:UInt

Tightly packed rows: patch_width for coverage, four times it for straight RGBA.

var full:Bool
var pixels:Bytes

Methods

function hxnWrite(out:BytesBuffer):Void

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