next_fli_frame (3) - Linux Manuals
next_fli_frame: Reads the next frame of the current animation file. Allegro game programming library.
NAME
next_fli_frame - Reads the next frame of the current animation file. Allegro game programming library.SYNOPSIS
#include <allegro.h>
DESCRIPTION
Reads the next frame of the current animation file. If `loop' is not zero, the player will cycle when it reaches the end of the file, otherwise it will return FLI_EOF. The frame is read into the global variables fli_bitmap and fli_palette. 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... */ }