Mail Archives: djgpp/1997/06/09/15:04:28
On Tue, 03 Jun 1997 12:06:20 -0700, Alan Reed <#areed AT popd DOT ix DOT netcom DOT com> wrote:
>essentially I am just trying to figure out how to make global palletes
>and just define them once.
Easy. Make a separate PCX file for each palette you want to use. Go into
Grabber and create a palette type for each palette you want to use. For each
PCX file, load it using the load bitmap function from within Grabber, highlight
the palette entry that you want to store the colors in, the grab the palette
from the PCX file. Save the palette file to disk and you now have a single file
with all the palettes you want.
From within your program, define a global DATAFILE * variable and load the
Grabber file into it.
This is especially useful if you have several programs that use the same
palettes. That way you only have to go through the Grabber procedure once.
- Raw text -