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