logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

fli_timer - Global variable for timing FLI playback. Allegro game programming library.

Description

       Global  variable for timing FLI playback. When you open an FLI file, a timer interrupt is installed which
       increments this variable every time a new frame should be displayed. Calling next_fli_frame()  decrements
       it,  so  you  can  test  it  and  know that it is time to display a new frame if it is greater than zero.
       Example:

          while (next_fli_frame(0) == FLI_OK) {
             /* Do stuff, like play audio stream
                or check keys to skip animation. */
             /* Rest some time until next frame... */
             while (fli_timer <= 0)
                rest(0);
          }

Name

       fli_timer - Global variable for timing FLI playback. Allegro game programming library.

See Also

install_timer(3alleg4), next_fli_frame(3alleg4)

Allegro                                           version 4.4.3                               fli_timer(3alleg4)

Synopsis

#include<allegro.h>externvolatileintfli_timer;

See Also