open_memory_fli(3alleg4)

open_memory_fli3alleg4

Makes a fli file open and ready for playing. allegro game programming library.

Part of open_fli(3alleg4).

Usage

#include <allegro.h>

int open_fli(const char *filename);

int open_memory_fli(const void *fli_data);

Overview

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");

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.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.