next_fli_frame(3alleg4) Allegro manual next_fli_frame(3alleg4)NAME
next_fli_frame - Reads the next frame of the current animation file. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int next_fli_frame(int loop);
DESCRIPTION
Reads the next frame of the current animation file. If `loop' is not zero, the player will cycle when it reaches the end of the file, oth-
erwise it will return FLI_EOF. The frame is read into the global variables fli_bitmap and fli_palette. Example:
while (next_fli_frame(0) == FLI_OK) {
/* Do stuff, like play audio stream
or check keys to skip animation. */
/* Rest some time until next frame... */
}
RETURN VALUE
Returns FLI_OK on success, FLI_ERROR or FLI_NOT_OPEN on error, and FLI_EOF on reaching the end of the file.
SEE ALSO open_fli(3alleg4), fli_bitmap(3alleg4), fli_palette(3alleg4), fli_timer(3alleg4), fli_frame(3alleg4)Allegro version 4.4.2 next_fli_frame(3alleg4)
Check Out this Related 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)
What are the benefits to using UNIX for 3d animation. I am looking into the field, and most places require a strong background in UNIX. Why is this? (3 Replies)
I realy Love the look of the Flash animation at top of the forum, very sweet.
But it uses all of my cpu power :( even winamp starts getting little skips.
Then i have to scroll down and hide the nice animation :(
Maybe someone could try to tune it a little bit.
Thats on a 1,6 Ghz... (0 Replies)
I have read hundreds of the postings and cannot find the answer to my question...so I hope that someone is able to answer it for me.
I am writing a script in bash, and would like to add animation. I have a gif file that I would like to open and have displayed on the screen. Can this be done? Of... (0 Replies)
Hi,
I want to write a shell script which can do some animation
The animation is as follows
it is like a progress barwhich hould gone on inresing with time & at the end of the line there should be the progess
Eg
== - 10%... (2 Replies)
Hello everybody,
I have a problem with a program i'm coding, the thing is that i need the program to check quickly if it receives a response, if not, just go ahead.
My program sends the frame successfully, but it keeps waiting for the response until it receives something. That's what i need to... (2 Replies)
Hi all,
I have one host i need to run in loop to check the capacity from different frame and get the output to one file and sum it and convert to TB
this is Code
#!/bin/ksh
DATE=`date '+%d%m%y'`
for f in `cat /home/esx-capacity/esx-host.txt`
do
for g in `cat /home/esx-capacity/frame`... (10 Replies)