# NNS_G2dSetCallBackFunctor

## C Specification

      #include <nnsys/g2d/g2d_Animation.h>

      void NNS_G2dSetCallBackFunctor(
              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. The name of this function has changed to `NNS_G2dSetAnimCtrlCallBackFunctor`. To maintain compatibility, the previous function was kept under a different name.

## See Also

`NNS_G2dSetAnimCtrlCallBackFunctor`, `NNS_G2dSetAnimCtrlCallBackFunctorAtAnimFrame`

## Revision History

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