Mail Archives: djgpp/1998/03/28/22:17:02
memnoch wrote:
> What does *calback point to :
> int play_fli(char *filename, BITMAP *bmp, int loop, int
> (*callback)());
>
> *filename = flic filename
> *bmp = screen or sub-bitmap
> loop = how many times to loop
> *callback = ????
int *callback() wants a function as an argument. You pass it a function
that you made and it will execute it I believe once per frame (don't
hold me to that number, tho). This is useful for getting sound in-sync
with the flic, doing other processing while the flic is playing
(although it will slow it down), and anything else that you can think
of.
Andy
- Raw text -