VertexPackage

VertexPackage

A vertex package to assist in interleaving vertex data and building the associated vertex attribute pointers.

Constructor

new VertexPackage(attributes)

Instantiates a VertexPackage object.
Source:
Parameters:
Name Type Description
attributes Object The attributes to interleave keyed by index.

Methods

set(attributes) → {VertexPackage}

Set the data to be interleaved inside the package. This clears any previously existing data.
Source:
Parameters:
Name Type Description
attributes Object The attributes to interleaved, keyed by index.
Returns:
Type:
VertexPackage
The vertex package object, for chaining.