logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

open_fli, open_memory_fli - Makes a FLI file open and ready for playing. Allegro game programming

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:

          if (open_fli("intro.fli") == FLI_ERROR)
             abort_on_error("Error playing intro");

Name

       open_fli,  open_memory_fli  -  Makes  a  FLI  file  open  and ready for playing. Allegro game programming
       library.

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.

See Also

close_fli(3alleg4), next_fli_frame(3alleg4), fli_bitmap(3alleg4), fli_palette(3alleg4)

Allegro                                           version 4.4.3                                open_fli(3alleg4)

Synopsis

#include<allegro.h>intopen_fli(constchar*filename);intopen_memory_fli(constvoid*fli_data);

See Also