.\" Generated by the Allegro makedoc utility .TH open_fli 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME open_fli, open_memory_fli \- Makes a FLI file open and ready for playing. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B int open_fli(const char *filename); .B int open_memory_fli(const void *fli_data); .SH DESCRIPTION Open FLI files ready for playing, reading the data from disk or memory respectively. Information about the current FLI is held in the global variables fli_bitmap and fli_palette, which you can use if this function succeeds. However, you can only have one animation open at a time. Example: .nf if (open_fli("intro.fli") == FLI_ERROR) abort_on_error("Error playing intro"); .fi .SH "RETURN VALUE" Returns FLI_OK on success, FLI_ERROR if something went wrong, like trying to open another FLI file without closing the previous one. .SH SEE ALSO .BR close_fli (3alleg4), .BR next_fli_frame (3alleg4), .BR fli_bitmap (3alleg4), .BR fli_palette (3alleg4)