Platform SDK: DirectX |
The Direct3DVertexBuffer7.SetVertices method sets the vertices in a locked vertex buffer.
object.SetVertices(startIndex As Long, _ count As Long, _ verts As Any)
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.
You must lock a vertex buffer by calling the Direct3DVertexBuffer7.Lock method before manipulating the vertices it contains.
Direct3DVertexBuffer7.GetVertices, Direct3DVertexBuffer7.Lock