Mail Archives: djgpp/1999/10/20/20:31:04
frEk <20014670 AT snatch DOT com> wrote:
> What immediately comes to mind is using a palette sort of truecolor
like... ie.
> Instead of for example the hicolor 5-5-5 palette, within 8 bits you use a
3-3-2
> palette which means 3 bits of red, 3 for green, 2 for blue...
I wouldn't. You can't get real grays in a 8 by 8 by 4 cell,
only approximations. Use the "web safe" palette instead.
Copy it from the DOSArena binary:
http://yerricde.tripod.com/binaries/darena1b.zip
It's in the file "dosarena.dat" and called "PCPAL".
To pull it out, load dosarena.dat in Allegro's grabber
(a.k.a. SkinArenaEdit), set the current palette to PCPAL,
and save LOGO_PCX as a PCX or BMP bitmap.
Then grab the bitmap's palette in your Allegro program's
datafile.
Oh, and if you want idiot-proof skinnable graphics, use
Allegro datafiles, but access your datafiles by name.
This way, the program doesn't need to be recompiled
if extraneous files are added to a skin. Check out the
function "GetResource" in dosarena.c in the sources:
http://yerricde.tripod.com/binaries/darena1s.zip
to find out how.
--
Damian Yerrick
CM 398, Rose-Hulman Institute of Technology
5500 Wabash Ave
Terre Haute, IN 47803
http://come.to/yerrick
- Raw text -