SwAnimator
From SWWorkshop
Animator api provides image transition with defined rule(mode and elapsed time).
Note: In Animator there is no another execution function for image transition. Image transition executes when getIndex() function call. Animator calculate the next image. So the only displayed images executes Animator and performance utilization occured.
typedef enum { SW_ANIMATOR_EXEC_STOP, SW_ANIMATOR_EXEC_FORWARD, SW_ANIMATOR_EXEC_BACKWARD, SW_ANIMATOR_EXEC_BACKWARD_LOOP, SW_ANIMATOR_EXEC_FORWARD_LOOP, }swAnimatorExecMode; int swAnimatorCreate(int count, float delay); void swAnimatorDestroy(int animatorID); void swAnimatorSetIndex(int animatorID,int imgIndex); int swAnimatorGetIndex(int animatorID); void swAnimatorSetDelay(int animatorID,float delay); void swAnimatorSetExecutionMode(int animatorID, swAnimatorExecMode mode); bool swAnimatorIsLastFrameActive(int animatorID); bool swAnimatorIsFirstFrameActive(int animatorID);
