D3DXFRAMEDestroy

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

HRESULT D3DXFRAMEDestroy(
  LPD3DXFRAME pFrameRoot,
  LPD3DXALLOCATEHIERARCHY pAlloc
);

Parameters

pFrameRoot
[in] Pointer to the root node.
pAlloc
[in] Allocation interface used to deallocate nodes of the frame hierarchy.

Return Values

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

Header: Declared in D3dx9anim.h.