Download Tutorial C Files H Files

dg_animator_create

This function is used to initialize an animator.

Usage

dg_animator_t *dg_animator_create();

Example

dg_animator_t *animator = dg_animator_create();

Source code

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;
}