IDirect3DRMMeshBuilder::GetVertices

HRESULT GetVertices(DWORD *vcount, D3DVECTOR *vertices,

DWORD *ncount, D3DVECTOR *normals, DWORD *face_data_size,

DWORD *face_data);

Retrieves the vertices, normals, and face data for a Direct3DRMMeshBuilder object.

·Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

vcount

Address of a variable that will contain the number of vertices.

vertices

Address of an array of D3DVECTOR structures that will contain the vertices for the Direct3DRMMeshBuilder object.

ncount

Address of a variable that will contain the number of normals.

normals

Array of D3DVECTOR structures that will contain the normals for the Direct3DRMMeshBuilder object.

face_data_size

Address of a variable that specifies the size of the buffer pointed to by the face_data parameter. The size is given in units of DWORD values. This parameter cannot be NULL.

face_data

Address of the face data for the Direct3DRMMeshBuilder object. This data is in the same format as specified in the IDirect3DRMMesh::AddGroup method except that it is null-terminated. If this parameter is NULL, the method returns the required size of the face-data buffer in the face_data_size parameter.