This function is used to initialize an animator.
dg_animator_t *dg_animator_create();
dg_animator_t *animator = dg_animator_create();
dg_animator_t *dg_animator_create()
{
dg_animator_t *animator = malloc(sizeof(dg_animator_t));
if (!animator)
return 0;
animator->current = 0;
animator->length = 0;
animator->animations = 0;
animator->keys = 0;
return animator;
}