Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetIndices

Retrieves index data.

object.GetIndices( _ 
    RetIndexData As Direct3DIndexBuffer8, _ 
    RetBaseVertexIndex As Long)

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
RetIndexData
A Direct3DIndexBuffer8 object, representing the returned index data.
RetBaseVertexIndex
A variable holding the returned base value for vertex indices. This value is added to all indices prior to referencing vertex data, defining a starting position in the vertex streams.

Error Codes

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.

Remarks

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.

See Also

Direct3DDevice8.SetIndices