# NNS_G2dSetAnimCtrlCallBackFunctor

## C Specification

      #include <nnsys/g2d/g2d_Animation.h>

      void NNS_G2dSetAnimCtrlCallBackFunctor(
      NNSG2dAnimController*     pAnimCtrl,
      NNSG2dAnmCallbackType   type,
      u32                     param,
      NNSG2dAnmCallBackPtr    pFunc );

## Arguments

pAnimCtrl | [OUT] NNSG2dAnimController entity
`type` | [IN] Type of callback call
param | [IN] u32 data used as a callback function argument
pFunc | [IN] Pointer to callback function

## Return Values

None.

## Description

Sets the callback to the animation controller. The callback can register only one type to each controller entity.
Do not set this function's type argument to `NNS_G2D_ANMCALLBACKTYPE_SPEC_FRM`. If necessary, use the `NNS_G2dSetAnimCtrlCallBackFunctorAtAnimFrame()` type argument instead.

This is the renamed version of `NNS_G2dSetCallBackFunctor`. The previous function name remains as a separate name.

## See Also

`NNS_G2dSetCallBackFunctor`, `NNS_G2dSetAnimCtrlCallBackFunctorAtAnimFrame`

## Revision History

08/02/2004 Renamed function.
05/28/2004 Initial version.