Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

play_fli(3alleg4) [debian man page]

play_fli(3alleg4)						  Allegro manual						 play_fli(3alleg4)

NAME
play_fli - Plays a FLI or FLC animation from disk. Allegro game programming library. SYNOPSIS
#include <allegro.h> int play_fli(const char *filename, BITMAP *bmp, int loop, int (*callback)()); DESCRIPTION
Plays an Autodesk Animator FLI or FLC animation file on the specified BITMAP, reading the data from disk as it is required. If `loop' is not zero, the player will cycle when it reaches the end of the file, otherwise it will play through the animation once and then return. Read the beginning of chapter "FLIC routines" for a description of the callback parameter. Example: /* Let users skip looped animations. */ int check_escape_key(void) { if (key[KEY_ESC]) return 1; else return 0; } ... int ret = play_fli("animlogo.fli", screen, 1, check_escape_key); if (ret == FLI_ERROR) abort_on_error("Error playing intro!"); RETURN VALUE
The FLI player returns FLI_OK if it reached the end of the file, FLI_ERROR if something went wrong, and the value returned by the callback function if that was what stopped it. SEE ALSO
play_memory_fli(3alleg4), install_timer(3alleg4), fli_frame(3alleg4) Allegro version 4.4.2 play_fli(3alleg4)

Check Out this Related Man Page

ex3buf(3alleg4) 						  Allegro manual						   ex3buf(3alleg4)

NAME
ex3buf - Mode-X triple buffering and retrace interrupt simulation. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example ex3buf DESCRIPTION
This program demonstrates the use of triple buffering. Several triangles are displayed rotating and bouncing on the screen until you press a key. Note that on some platforms you can't get real hardware triple buffering. The Allegro code remains the same, but most likely the graphic driver will emulate it. Unfortunately, in these cases you can't expect the animation to be completely smooth and flicker free. SEE ALSO
BITMAP(3alleg4), END_OF_MAIN(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), acquire_bitmap(3alleg4), allegro_error(3alleg4), alle- gro_init(3alleg4), allegro_message(3alleg4), clear_bitmap(3alleg4), clear_keybuf(3alleg4), create_video_bitmap(3alleg4), desktop_pal- ette(3alleg4), destroy_bitmap(3alleg4), enable_triple_buffer(3alleg4), fixcos(3alleg4), fixed(3alleg4), fixmul(3alleg4), fixsin(3alleg4), fixtoi(3alleg4), font(3alleg4), gfx_capabilities(3alleg4), install_keyboard(3alleg4), install_mouse(3alleg4), install_timer(3alleg4), itofix(3alleg4), keypressed(3alleg4), poll_scroll(3alleg4), release_bitmap(3alleg4), request_video_bitmap(3alleg4), screen(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), textout_ex(3alleg4), triangle(3alleg4), ustrzcpy(3alleg4) Allegro version 4.4.2 ex3buf(3alleg4)
Man Page