delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/20/20:10:28

From: Tudor <tudor AT cam DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Allegro: Problem? HELP
Date: Sat, 19 Apr 1997 22:36:40 -0400
Organization: Communications Accesibles Montreal
Lines: 18
Message-ID: <33598138.28A8@cam.org>
References: <01bc4d11$eb03aa40$LocalHost AT stachowiak>
Reply-To: tudor AT cam DOT org
NNTP-Posting-Host: dynamicppp-176.hip.cam.org
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Helix wrote:
> 
> What code would I use to in the source file to display a bitmap or play a
> wav file?
#include "helix.h"
DATAFILE *my_data=load_datafile("helix.dat"); 
draw_sprite(screen,my_data[BITMAP].dat,x,y);
or something like that. You would do the same with the midi.
I don't know exactely how the midi function works but it should be
play_midi(my_data[INTRO].dat,other parameters?)


> anyways, THANKS in advance.

-- 
tudor 'at' cam 'dot' org
http://www.cam.org/~tudor
'This is Scott Nudds of the Borg. C is irrelevant.'

- Raw text -


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