Microsoft DirectX 8.1 (Visual Basic) |
object.GetIndices( _ RetIndexData As Direct3DIndexBuffer8, _ RetBaseVertexIndex As Long)
If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
The values in the index list are used to index into a vertex list when creating geometry to render.
The value returned in the RetBaseVertexIndex parameter specifies the base value for indices. This base value is added to all indices prior to referencing into the vertex data streams, which results in setting a starting position in the vertex data streams. The base vertex index enables multiple indexed primitives to be packed into a single set of vertex data without requiring the indices to be recomputed based on where the corresponding primitive is placed in the vertex data.