Class VAO

Vertex Array Object


See also:

Methods

vao:Delete
vao:AttachVertexBuffer
Attachs a VBO to be used as a vertex buffer
vao:AttachInstanceBuffer
Attachs a VBO to be used as an instance buffer
vao:AttachIndexBuffer
Attachs a VBO to be used as an index buffer
vao:DrawArrays
vao:DrawElements
vao:AddUnitsToSubmission
vao:AddFeaturesToSubmission
vao:AddUnitDefsToSubmission
vao:AddFeatureDefsToSubmission
vao:RemoveFromSubmission
vao:Submit

Methods

vao:Delete()

Returns:

  1. nil

vao:AttachVertexBuffer(vbo)

Attachs a VBO to be used as a vertex buffer

Parameters:

  1. vbo VBO

Returns:

  1. nil

vao:AttachInstanceBuffer(vbo)

Attachs a VBO to be used as an instance buffer

Parameters:

  1. vbo VBO

Returns:

  1. nil

vao:AttachIndexBuffer(vbo)

Attachs a VBO to be used as an index buffer

Parameters:

  1. vbo VBO

Returns:

  1. nil

vao:DrawArrays(glEnum[, vertexCount[, vertexFirst[, instanceCount[, instanceFirst]]]])

Parameters:

  1. glEnum number primitivesMode
  2. vertexCount number (optional)
  3. vertexFirst number (optional)
  4. instanceCount number (optional)
  5. instanceFirst number (optional)

Returns:

  1. nil

vao:DrawElements(glEnum[, drawCount[, baseIndex[, instanceCount[, baseVertex[, baseInstance]]]]])

Parameters:

  1. glEnum number primitivesMode
  2. drawCount number (optional)
  3. baseIndex number (optional)
  4. instanceCount number (optional)
  5. baseVertex number (optional)
  6. baseInstance number (optional)

Returns:

  1. nil

vao:AddUnitsToSubmission(unitIDs)

Parameters:

  1. unitIDs number or {number,...}

Returns:

  1. number submittedCount

vao:AddFeaturesToSubmission(featureIDs)

Parameters:

  1. featureIDs number or {number,...}

Returns:

  1. number submittedCount

vao:AddUnitDefsToSubmission(unitDefIDs)

Parameters:

  1. unitDefIDs number or {number,...}

Returns:

  1. number submittedCount

vao:AddFeatureDefsToSubmission(featureDefIDs)

Parameters:

  1. featureDefIDs number or {number,...}

Returns:

  1. number submittedCount

vao:RemoveFromSubmission(index)

Parameters:

  1. index number

Returns:

  1. nil

vao:Submit()

Returns:

  1. nil