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:
- nil
vao:AttachVertexBuffer(vbo)
Attachs a VBO to be used as a vertex buffer
vao:AttachInstanceBuffer(vbo)
Attachs a VBO to be used as an instance buffer
vao:AttachIndexBuffer(vbo)
Attachs a VBO to be used as an index buffer
vao:DrawArrays(glEnum[, vertexCount[, vertexFirst[, instanceCount[, instanceFirst]]]])
Parameters:
-
glEnum
number primitivesMode -
vertexCount
number (optional) -
vertexFirst
number (optional) -
instanceCount
number (optional) -
instanceFirst
number (optional)
Returns:
- nil
vao:DrawElements(glEnum[, drawCount[, baseIndex[, instanceCount[, baseVertex[, baseInstance]]]]])
Parameters:
-
glEnum
number primitivesMode -
drawCount
number (optional) -
baseIndex
number (optional) -
instanceCount
number (optional) -
baseVertex
number (optional) -
baseInstance
number (optional)
Returns:
- nil
vao:AddUnitsToSubmission(unitIDs)
Parameters:
-
unitIDs
number or {number,...}
Returns:
- number submittedCount
vao:AddFeaturesToSubmission(featureIDs)
Parameters:
-
featureIDs
number or {number,...}
Returns:
- number submittedCount
vao:AddUnitDefsToSubmission(unitDefIDs)
Parameters:
-
unitDefIDs
number or {number,...}
Returns:
- number submittedCount
vao:AddFeatureDefsToSubmission(featureDefIDs)
Parameters:
-
featureDefIDs
number or {number,...}
Returns:
- number submittedCount
vao:RemoveFromSubmission(index)
Parameters:
-
index
number
Returns:
- nil
vao:Submit()
Returns:
- nil