HRESULT SetVertices(D3DRMGROUPINDEX id, unsigned index,
unsigned count, D3DRMVERTEX *values);
Sets the vertex positions for a specified group in a Direct3DRMMesh object.
·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.
id
Identifier of the group. This identifier must have been produced by using the IDirect3DRMMesh::AddGroup method.
index
Index into the array specified in the values parameter at which to begin setting vertex positions.
count
Number of vertices to set following the index given in the index parameter.
values
Array of D3DRMVERTEX structures specifying the vertex positions to be set.
Vertices are local to the group. If an application needs to share vertices between two different groups (for example, if neighboring faces in a mesh are different colors), the vertices must be duplicated in both groups.