1open_fli(3)                     Allegro manual                     open_fli(3)
2
3
4

NAME

6       open_fli,  open_memory_fli  - Makes a FLI file open and ready for play‐
7       ing. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int open_fli(const char *filename);
14
15       int open_memory_fli(const void *fli_data);
16

DESCRIPTION

18       Open FLI files ready for playing, reading the data from disk or  memory
19       respectively.  Information  about the current FLI is held in the global
20       variables fli_bitmap and fli_palette, which you can use if  this  func‐
21       tion succeeds. However, you can only have one animation open at a time.
22       Example:
23
24          if (open_fli("intro.fli") == FLI_ERROR)
25             abort_on_error("Error playing intro");
26

RETURN VALUE

28       Returns FLI_OK on success, FLI_ERROR if something went wrong, like try‐
29       ing to open another FLI file without closing the previous one.
30
31

SEE ALSO

33       close_fli(3), next_fli_frame(3), fli_bitmap(3), fli_palette(3)
34
35
36
37Allegro                          version 4.4.2                     open_fli(3)
Impressum