Plays a FLI or FLC animation from disk.
int play_fli(const char *
filename, BITMAP *
loop, int (*
Plays an Autodesk Animator FLI or FLC animation file on the specified
BITMAP, reading the data from disk as it is required. If `loop' is not
zero, the player will cycle when it reaches the end of the file, otherwise
it will play through the animation once and then return. Read the beginning
of chapter "FLIC routines" for a description of the callback parameter.
/* Let users skip looped animations. */
int ret = play_fli("animlogo.fli", screen, 1,
if (ret == FLI_ERROR)
abort_on_error("Error playing intro!");
The FLI player returns FLI_OK if it reached the end of the file, FLI_ERROR
if something went wrong, and the value returned by the callback function if
that was what stopped it.
The following threads each have code containing this keyword:
Note: You can click on the numbers to jump directly to the posts that reference this page.
The following projects include source code containing this keyword: