Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ Language Reference - fg_setcolormap http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                              fg_setcolormap

   Usage
   #include <fg.h>
   void far fg_setcolormap(fg_color_t far carray[], int max);

   Description
   Set all the colors for the color map. The color map is not modifiable
   if fg.ncolormap == fg.nsimulcolor.
   Note
   This function was made obsolete with the support of VGA mode 0x13.  It
   still  exists  for the EGA and other modes of the  VGA  for  backwards
   compatibility  but  it may not be supported in  future  releases.  Use
   fg_setpalette for all new programs.

   carray    Array of colors, dimension is fg.nsimulcolor.
             The values are between 0 and fg.ncolormap-1.
   max       Max number of entries to read from color_array[]. The actual
             number  of entries read is the lesser of  fg.nsimulcolor  or
             max).


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson