hxn

VertexArray

A vertex array: attribute layouts and the buffers they read, and an element buffer.

Static methods

function hxnAdopt(hxnRaw:Handle):VertexArray

An object for a value the library returned.

Properties

var hxnRaw:Handle

Methods

function attribute(location:Int, buffer:Buffer, size:Int, kind:ComponentType, normalized:Bool, stride:Int, offset:Int):Void

Attribute location reads size components of kind from buffer, stride bytes apart from offset, as floats; integer components become floats, scaled to 0-1 or -1-1 when normalized.

function integerAttribute(location:Int, buffer:Buffer, size:Int, kind:ComponentType, stride:Int, offset:Int):Void

Attribute location reads size integer components of kind, for an int or uint input.

function divisor(location:Int, divisor:Int):Void

Attribute location advances once per divisor instances; 0 advances per vertex.

function elementBuffer(buffer:Buffer):Void

The buffer drawElements reads indices from.

function close():Void

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