From: mdkris AT alpha DOT delta DOT edu Newsgroups: comp.os.msdos.djgpp Subject: bitmap problem Date: Thu, 31 Dec 1998 21:16:17 -0500 Organization: Delta College Lines: 94 Message-ID: <368C2FF1.6A91E119@alpha.delta.edu> NNTP-Posting-Host: pm504-40.dialip.mich.net Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------41A61D364E5FF8F7684A513D" X-Mailer: Mozilla 4.04 [en] (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com --------------41A61D364E5FF8F7684A513D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am trying to add some a simple bitmap to a simple game I wrote. I am using Allegro but it doesn't seem to work. The function works fine if I compile it as it's own program but when my program calls it it says the bmp isn't found. int pcx() { BITMAP *the_image; PALLETE the_pallete; allegro_init(); /* Read the bitmap */ the_image = load_bitmap("1.bmp", the_pallete); if(!the_image) { printf("1.bmp not found!"); exit(1); } set_gfx_mode(GFX_VGA, 320, 200, 0, 0); /* Select the bitmap pallete */ set_pallete(the_pallete); /* blit the image onto the screen */ blit(the_image, screen, 0, 0, 0, 0, 320, 200); delay(100); destroy_bitmap(the_image); } Any suggestions would help. Also if you have a function you know works lemme in on it. Thanks --------------41A61D364E5FF8F7684A513D Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
I am trying to add some a simple bitmap to a simple game I wrote.
I am using Allegro but it doesn't seem to work. The function works
fine if I compile it as it's own program but when my program calls
it it
says the bmp isn't found.
int pcx()
{
BITMAP *the_image;
PALLETE the_pallete;
allegro_init();
/* Read the bitmap */
the_image = load_bitmap("1.bmp", the_pallete);
if(!the_image)
set_gfx_mode(GFX_VGA, 320, 200, 0, 0);
/* Select the bitmap pallete */
set_pallete(the_pallete);
/* blit the image onto the screen */
blit(the_image, screen, 0, 0, 0, 0, 320, 200);
delay(100);
destroy_bitmap(the_image);
}
Any suggestions would help. Also if you have a function you know
works lemme in on it. Thanks
--------------41A61D364E5FF8F7684A513D--