HRESULT GetVertices(D3DRMGROUPINDEX id, DWORD index,
DWORD count, D3DRMVERTEX *returnPtr);
Retrieves 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 of D3DRMVERTEX structures at which to begin returning vertex positions.
count
Number of D3DRMVERTEX structures (vertices) to retrieve following the index given in the index parameter. This parameter cannot be NULL.
returnPtr
Array of D3DRMVERTEX structures that will contain the vertex positions when the method returns. If this parameter is NULL, the method returns the required number of D3DRMVERTEX structures in the count parameter.