Platform SDK: DirectX

Direct3DVertexBuffer7.SetVertices

The Direct3DVertexBuffer7.SetVertices method sets the vertices in a locked vertex buffer.

object.SetVertices(startIndex As Long, _
    count As Long, _ 
    verts As Any)

Parameters

object
Object expression that resolves to a Direct3DVertexBuffer7 object.
startIndex
Zero-based index within the vertex buffer at which the vertices will be set.
count
Number of vertices contained in the verts array.
verts
First element of the buffer containing the vertex data.

Error Codes

If the method fails, an error is raised and Err.Number will be set to an error code. For a complete list of Direct3D Immediate Mode error values and descriptions, see Error Codes.

Remarks

You must lock a vertex buffer by calling the Direct3DVertexBuffer7.Lock method before manipulating the vertices it contains.

See Also

Direct3DVertexBuffer7.GetVertices, Direct3DVertexBuffer7.Lock