IDirect3DRMFaceArray
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.
IDirect3DRMFaceArray::GetElement
IDirect3DRMFaceArrayRetrieves 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.
IDirect3DRMFaceArray::GetSize
IDirect3DRMFaceArrayRetrieves the number of elements contained in a Direct3DRMFaceArray object.
Syntax
DWORD GetSize( );Return Value
Returns the number of elements.
Top of Page
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.