hxn

Layer

A CAMetalLayer on a window's view, whose drawables a render pass targets.

Static methods

function hxnAdopt(hxnRaw:Handle):Layer

An object for a value the library returned.

function attach(device:Device, view:Int64, format:PixelFormat):Layer

A layer drawing with device into the view view: an NSView on macOS (hxn-window's raw(0) on AppKit) or a UIView on iOS (raw(0) on UIKit). Only on the main thread.

Properties

var hxnRaw:Handle

Methods

function setDrawableSize(width:Float, height:Float):Void

Sets the size, in pixels, of the drawables the layer gives.

function nextDrawable():Null<Drawable>

The next drawable to render into, or null when none is free in time.

function close():Void

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