IDirect3DRMMesh::GetGroupMaterial
Retrieves a pointer to the material associated with a group in a Direct3DRMMesh object.
HRESULT GetGroupMaterial(
D3DRMGROUPINDEX id,
LPDIRECT3DRMMATERIAL *returnPtr
);
Parameters
id
Identifier of the group. This identifier must have been produced by using the IDirect3DRMMesh::AddGroup method.
returnPtr
Address of a pointer to a variable that will contain the IDirect3DRMMaterial interface for the group when the method returns.
Return Values
Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.
See Also