Message-ID: <351DA44B.A4657197@primary.net> Date: Sat, 28 Mar 1998 19:30:52 -0600 From: * benz MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Learning Allegro References: <6fk4i9$8ll AT bgtnsc03 DOT worldnet DOT att DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Precedence: bulk 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