Skip to content

cf_animation_add_frame

Category: custom_sprite
GitHub: cute_custom_sprite.h


Adds a frame to an animation.

void cf_animation_add_frame(CF_Animation* animation, CF_Frame frame) { CF_ASSERT(animation); apush(animation->frames, frame); }
Parameters Description
animation The animation.
frame The frame.

Remarks

You can use this function to build your own animations in a custom manner. It's recommend to just use cf_make_sprite, which loads a full sprite out of a .ase file. But, this function provides another low-level option if desired.

CF_Animation
CF_Frame
cf_make_custom_sprite_animation