Applications use the methods of the IDirect3DRMFaceArray interface to organize faces in a mesh. For more information about faces, see IDirect3DRMFace2.
The IDirect3DRMFaceArray interface supports the following methods:
GetElement |
GetSize |
The IDirect3DRMFaceArray interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:
AddRef |
QueryInterface |
Release |
The Direct3DRMFaceArray object is obtained by calling the IDirect3DRMMeshBuilder3::GetFaces method.
Retrieves a specified element in a Direct3DRMFaceArray object.
Syntax
HRESULT GetElement(
DWORD index,
LPDIRECT3DRMFACE *lplpD3DRMFace
);
Parameters
- index
- Element in the array.
- lplpD3DRMFace
- Address that will be filled with a pointer to an IDirect3DRMFace interface.
Return Value
Returns D3DRM_OK if successful, or an error otherwise. For a list of possible errors, see Direct3D Retained Mode Return Values.
Retrieves the number of elements contained in a Direct3DRMFaceArray object.
Syntax
DWORD GetSize( );
Return Value
Returns the number of elements.
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.