Download Tutorial C Files H Files

dg_animator_free

This function is used to destroy an animator.

Usage

void dg_animator_free(dg_animator_t *animator);

Example

dg_animator_free(animator);

Source code

void dg_animator_free(dg_animator_t *animator)
{
    if (animator->length > 0) {
        free(animator->animations);
        free(animator->keys);
    }
    free(animator);
}