# NNS_G3dAllocAnmObj

## Syntax

      #include <nnsys/g3d/mem.h>

      NNSG3dAnmObj*
      NNS_G3dAllocAnmObj(
          NNSFndAllocator*    pAlloc,
          const void*         pAnm,
          const NNSG3dResMdl* pMdl
      );

## Arguments

pAlloc | Pointer to the memory allocator
pAnm | Pointer to the animation resource
pMdl | Pointer to the model resource

## Return Values

Returns the pointer to the allocated heap region. Returns a `NULL` if the region allocation fails.

## Description

Allocates the region for the animation object from the heap region. The region size to reserve is calculated using pAnm and pMdl in `NNS_G3dAnmObjCalcSizeRequired`. Use the separate function `NNS_G3dAnmObjInit` to initialize.

## See Also

`NNS_G3dAnmObjCalcSizeRequired`, `NNS_G3dAnmObjInit`, `NNS_G3dFreeAnmObj`

## Revision History

2004/08/02 Initial version.

CONFIDENTIAL