NNS_G2dSetCellAnimationCurrentFrame

C Specification

#include <nnsys/g2d/g2d_CellAnimation.h>
void NNS_G2dSetCellAnimationCurrentFrame
                                ( 
        NNSG2dCellAnimation*     pCellAnim,
        u16           frameIndex
                                )
  

Arguments

pCellAnim [OUT] Cell animation
frameIndex [IN] Playback animation frame number

Return Values

None.

Description

Sets the playback animation frame. Does not perform any actions if an invalid number is input.

Note: 
If a STOP-method animation sequence plays to the end, the animation controller is set to the Stop state.
Because of this, you will need to call NNS_G2dStartAnimCtrl() for the animation controller of that cell animation to update the animation again.
To get the animation controller of that cell animation, use the NNS_G2dGetCellAnimationAnimCtrl() function.

To restart the animation from the beginning, use the NNS_G2dRestartCellAnimation() function.

See Also

NNS_G2dRestartCellAnimation
NNS_G2dGetCellAnimationAnimCtrl

Revision History

05/29/2006 Added a warning note.
05/28/2004 Initial version.


CONFIDENTIAL