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