Mesh:getIndexBuffer

Edit

Returns the Buffer object that holds the data for the vertex indices in the Mesh.

This can be nil if the Mesh doesn't have any indices.

If a Mesh uses the cpu storage mode, the index buffer is internal to the Mesh and this function will return nil. This ensures that the CPU data for the Mesh does not get out of sync with the GPU data in the Buffer.

buffer = Mesh:getIndexBuffer()

Arguments

None

Returns

NameTypeDescription
bufferBuffer The index buffer.

See also