/* Web64 SDK header printout: web64/animation.h * Generated by scripts/copy-web64-ide-source.mjs. * The IDE resolves this header as a read-only virtual SDK document. */ #ifndef WEB64_ANIMATION_H #define WEB64_ANIMATION_H #include #define WEB64_ANIMATION_LOOP 1 #define WEB64_ANIMATION_ONCE 2 #define WEB64_ANIMATION_PINGPONG 4 #define WEB64_ANIMATION_HOLD 8 #define WEB64_ANIMATION_HIDE 16 #define WEB64_ANIMATION_PLAY_IF_CHANGED 1 #define WEB64_ANIMATION_PLAY_RESTART 2 #define WEB64_ANIMATION_STATUS_COMPLETE 1 #define WEB64_ANIMATION_STATUS_HIDDEN 2 typedef struct { uint8_t frame; uint8_t duration; uint8_t event; uint8_t overlay_frame; } Web64AnimationStep; typedef struct { uint16_t steps; uint8_t count; uint8_t flags; } Web64AnimationSequence; typedef struct { uint16_t sequences; uint8_t count; } Web64AnimationBank; typedef struct { uint16_t bank; uint8_t sequence; uint8_t queued; uint8_t step; uint8_t ticks; uint8_t frame; uint8_t overlay_frame; uint8_t events; uint8_t status; int8_t direction; } Web64AnimationPlayer; _web64_rt void web64_animation_init(Web64AnimationPlayer *player, uint16_t bank); _web64_rt void web64_animation_play(Web64AnimationPlayer *player, uint8_t sequence, uint8_t policy); _web64_rt void web64_animation_queue(Web64AnimationPlayer *player, uint8_t sequence); _web64_rt uint8_t web64_animation_tick(Web64AnimationPlayer *player); _web64_rt uint8_t web64_animation_take_events(Web64AnimationPlayer *player); #endif