delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/12/05:30:38

Message-ID: <8D53104ECD0CD211AF4000A0C9D60AE3012D84C0@probe-2.acclaim-euro.net>
From: Shawn Hargreaves <ShawnH AT Probe DOT co DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: Allegro: Color map needed, please!
Date: Mon, 12 Apr 1999 10:30:04 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.0.1460.8)
Reply-To: djgpp AT delorie DOT com

bernhardt AT earthlink DOT net writes:
> 1) I REALLY need some info on the colors in Allegro. I have had to 
> get my colors so far by trial and error. There must be an easier way. 
> Is there an equation for it or something?

If you are using a truecolor mode, just call the makecol() function
to specify any color you like. In 256 color modes, you need to set
a palette to say which 256 colors the graphics hardware should use.
You could use the builtin desktop_palette, or load one from a bitmap
file, or generate on in your code. See ex4.c, ex15.c, and ex29.c.

> 2) The file size is ludicrous!

Assuming that you've read the relevant sections of the djgpp and 
Allegro FAQ lists and are still not happy, that's just tough.
Both djgpp and Allegro do a lot of stuff for you, and they can't
do that without taking up space. Much more space than a stupid
16 bit program that doesn't do so many cool things.


	Shawn Hargreaves.

- Raw text -


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