vertexAttribute

vgl. vertexAttribute

new vertexAttribute(name) → {vgl.vertexAttribute}

Description:
  • Create a new instance of vertexAttribute.

Source:
Parameters:
Name Type Description
name string

Name of attribute.

Returns:
Type
vgl.vertexAttribute

Methods

bindVertexData(renderState, key)

Description:
  • Bind vertex data to the given render state.

Source:
Parameters:
Name Type Description
renderState vgl.renderState
key vgl.vertexAttributeKeys

name() → {string}

Description:
  • Get name of the vertex attribute.

Source:
Returns:
Type
string

undoBindVertexData(renderState, key)

Description:
  • Undo bind vertex data for a given render state.

Source:
Parameters:
Name Type Description
renderState vgl.renderState
key vgl.vertexAttributeKeys