fli_frame3alleg
Stores the current frame number of the animation. allegro game programming library.
Usage
#include <allegro.h>
extern int fli_frame;
Overview
Global variable containing the current frame number in the FLI file. This is useful for synchronising other events with the animation, for instance you could check it in a play_fli() callback function and use it to trigger a sample at a particular point. Example:
while (next_fli_frame(0) == FLI_OK) {
if (fli_frame == 345)
play_sample(trumpet_sound, 255, 128, 1000, 0);
/* Rest some time until next frame... */
}
Releases
4 releases since Debian 3.1 (Sarge); the text changed 2 times.