NNS_G2dSetAnimCtrlCallBackFunctorAtAnimFrame

Syntax

#include <nnsys/g2d/g2d_Animation.h>
void NNS_G2dSetAnimCtrlCallBackFunctorAtAnimFrame( 
                      NNSG2dAnimController*   pAnimCtrl, 
                      u32                     param, 
                      NNSG2dAnmCallBackPtr    pFunc 
                      u16                     frameIdx );

Arguments

pAnimCtrl [OUT] NNSG2dAnimController entity
param [IN] u32 data used as a callback function argument
pFunc [IN] Pointer to callback function
frameIdx [IN] Index of AnimFrame that calls the callback

Return Values

None.

Description

Sets the callback to the animation controller. The callback can register only one type to each controller entity. Each time the playback frame changes, the index of the new playback frame is compared with frameIdx. If they are identical, the callback is called.

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

See Also

NNS_G2dSetCallBackFunctorAtAnimFrame
NNS_G2dSetAnimCtrlCallBackFunctor

Revision History

2004/08/02 Renamed function.

2004/05/28 Initial version.


CONFIDENTIAL