open_fli(3)
π NAME π
open_fli, open_memory_fli β bestie, these make a FLI file open and ready for playing β¨
Like, it's the Allegro game programming library, and these two are the little doorway into your animations π
πΈ SYNOPSIS πΈ
#include <allegro.h>
int open_fli(const char *filename);
int open_memory_fli(const void *fli_data);
π¦ DESCRIPTION π¦
Okay so picture this: you got a FLI and you wanna play it. That's literally it, that's the whole vibe π
These functions open FLI files and get them ready for playing β open_fli reads the data from disk, and open_memory_fli reads it from memory. Respectively. Pick your fighter π«Ά
The info about the current FLI lives in the global variables fli_bitmap and fli_palette, and you can absolutely use those if this function succeeds. Iconic, honestly π
But bestie, hear me: you can only have one animation open at a time. One. Monogamy but for FLI files π
Example, because examples ate:
if (open_fli("intro.fli") == FLI_ERROR)
abort_on_error("Error playing intro");
β RETURN VALUE β
FLI_OKβ slay, it worked πFLI_ERRORβ something went wrong π like, say, trying to open another FLI file without closing the previous one first. The audacity fr fr.
π SEE ALSO π
That's the whole page, no cap π§ this was the Allegro manual, version 4.4.3, and the page is open_fli(3). Go open a FLI, bestie, you got this πβ¨
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms