D3DXFrameDestroy function

Destroys the subtree of frames under the root, including the root.

Syntax

HRESULT D3DXFrameDestroy(
  _In_ LPD3DXFRAME             pFrameRoot,
  _In_ LPD3DXALLOCATEHIERARCHY pAlloc
);

Parameters

pFrameRoot [in]

Type: LPD3DXFRAME

Pointer to the root node.

pAlloc [in]

Type: LPD3DXALLOCATEHIERARCHY

Allocation interface used to deallocate nodes of the frame hierarchy.

Return value

Type: HRESULT

If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be one of the following values: D3DERR_INVALIDCALL, E_OUTOFMEMORY.

Requirements

Requirement Value
Header
D3dx9anim.h
Library
D3dx9.lib

See also

Animation Functions