# NNS_G3dAllocRecBufferMat

## C Specification

      #include <nnsys/g3d/mem.h>

      NNSG3dMatAnmResult*
      NNS_G3dAllocRecBufferMat(
      NNSFndAllocator* pAlloc,
      const NNSG3dResMdl* pResMdl
      );

## Arguments

pAlloc | Pointer to the memory allocator
pResMdl | 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 record buffer region used to hold the material animation calculation results that can be attached to a rendering object. The size of the region is determined by the number of material animations in the model resource that is indicated by `pResMdl`.

## See Also

`NNS_G3dFreeRecBufferMat`

## Revision History

08/02/2004 Initial version.