cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/11/17:02:30

Date: Sat, 11 Jan 1997 15:39:12 -0600 (CST)
From: Andrew Deren <aderen AT eecs DOT uic DOT edu>
To: Joyce Osagie <joyce AT webgate DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Allegro Bitmap Functions
In-Reply-To: <5b6eqa$r45@nr1.toronto.istar.net>
Message-ID: <Pine.SUN.3.95.970111153008.28183A-100000@bert.eecs.uic.edu>
MIME-Version: 1.0

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 -


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