www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/28/22:17:02

Message-ID: <351DA44B.A4657197@primary.net>
Date: Sat, 28 Mar 1998 19:30:52 -0600
From: * benz <benz AT primary DOT net>
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Learning Allegro
References: <6fk4i9$8ll AT bgtnsc03 DOT worldnet DOT att DOT net>
NNTP-Posting-Host: pn9-ppp-212.primary.net
Organization: Primary Network. http://www.primary.net
Lines: 21
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019