hxn

Swapchain

A swap chain on a window: its buffers are render targets, presented in turn.

Static methods

function hxnAdopt(hxnRaw:Handle):Swapchain

An object for a value the library returned.

Properties

var hxnRaw:Handle

Methods

function currentIndex():Int

The buffer to render into next.

function buffer(index:Int):Texture

Buffer index as a render target texture. It is in the common (present) state.

function present(interval:Int):Void

Presents the current buffer, after interval vertical blanks (0 presents at once).

function close():Void

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