Mail Archives: djgpp/1997/06/08/23:48:24
Mike McLean wrote:
> Thanks again for the help, but i have another problem. I don't know
> how to pass the name of a file to be viewed in besides at the command
> line. I'd like to be able to set it up so I can load them from with
> in the program. Sorry if this is a simple question.
That is very easy (pseudo allegro code follows)
BITMAP *mybitmap;
PALETTE pal;
mybitmap=load_bitmap("foopcx.pcx",pal); <-- put your bmp name here
set_palette(pal);
draw_sprite(screen,mybitmap,0,0);
> Mike.
--
http://www.cam.org/~tudor
"I INSERTED THE DISK INTO THE COMPUTER, AND TURNED IT ON. LET THERE BE
DOS,I SAID! AND THERE WAS DOS." -- Bill Gates, 1977
- Raw text -