Mail Archives: djgpp/1997/01/11/17:02:30
Try using Grabber, that comes with allegro. You can add pcx, files (and
many different ones too). It creates data file which you can use in your
program.
example:
DATAFILE *file;
file = load_datafile("filename.dat");
//and when you have files stored in data file you can use
draw_sprite(screen, (BITMAP*)file[1].dat, 10, 10);
//to put a bitmap on the screen
instead of using one you can use defines generated by grabber.
Look at the allegro.txt to find more info about this. I think it is
somewhere by the end of the file (before GUI)
On 10 Jan 1997, Joyce Osagie wrote:
> Does anyone know if allegro come with a function to extract bitmaps
> out of a pcx file. I have looked through the text file that comes
> with allegro but I can't figure out which function I would have to
> use. Any help would be greatly appreciatied.
>
> Joyce.
>
>
- Raw text -