www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/21/01:15:28

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Graphics with allegro on dos (palette problems)
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <6e81qs4gh0i09cqo1ghapslvrbjdj9qtf1@4ax.com>
References: <GKhn5.51897$qS3 DOT 102191 AT tor-nn1 DOT netcom DOT ca> <8no4me$eur$1 AT newsg1 DOT svr DOT pol DOT co DOT uk>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 24
X-Trace: /K0ZEE9WGC6lDeixH9I6KjfZOH/pW0veOde7+h0y0canLqHK9PvDJaxpGuwLJNHCvcJ+AodFOnzJ!5K2+C/TT9xZSpspwIe8VkAlfqukqrfsgqvaEdy5IvhsxBDIzNl4O4T/op836XUaja6iTOqODQcE3!/qZc
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Mon, 21 Aug 2000 03:28:57 GMT
Distribution: world
Date: Mon, 21 Aug 2000 03:28:57 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Sun, 20 Aug 2000 09:25:23 +0100, "Richard  Gould"
<RichGould77 AT hotmail DOT com> wrote:

>I am new to this newsgroup (and graphics)
>Simple question:-
>how do you load a bitemap using allegro?

BITMAP *foo;
PALETTE pal;

/* allegro is by default configured to use pcx, bmp, tga
 * there are addons for png, jpg, and gif */
foo = load_bitmap("preciousmoments.pcx", pal);
/* a 256 color mode can have only one palette on screen */
set_palette(pal);

-- 
MS (n)  1. A debilitating and surprisingly widespread
  affliction that renders the sufferer barely able to
  perform the simplest task.  2. A disease, multiple
  sclerosis (see).

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


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