hxn

Texture

A 2D texture of one level.

Static methods

function hxnAdopt(hxnRaw:Handle):Texture

An object for a value the library returned.

Properties

var hxnRaw:Handle

Methods

function width():Int
function height():Int
function write(x:Int, y:Int, width:Int, height:Int, pixels:Bytes):Void

Writes a rectangle of pixels, rows tightly packed, bottom row first.

function close():Void

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