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

NAME

6       next_fli_frame  -  Reads  the next frame of the current animation file.
7       Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int next_fli_frame(int loop);
14

DESCRIPTION

16       Reads the next frame of the current animation file. If  `loop'  is  not
17       zero, the player will cycle when it reaches the end of the file, other‐
18       wise it will return FLI_EOF. The frame is read into  the  global  vari‐
19       ables fli_bitmap and fli_palette. Example:
20
21          while (next_fli_frame(0) == FLI_OK) {
22             /* Do stuff, like play audio stream
23                or check keys to skip animation. */
24             /* Rest some time until next frame... */
25          }
26

RETURN VALUE

28       Returns  FLI_OK  on  success,  FLI_ERROR  or FLI_NOT_OPEN on error, and
29       FLI_EOF on reaching the end of the file.
30
31

SEE ALSO

33       open_fli(3), fli_bitmap(3), fli_palette(3), fli_timer(3), fli_frame(3)
34
35
36
37Allegro                          version 4.2.2               next_fli_frame(3)
Impressum