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++ 3.0r4 - <b>fg_getcolormap</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
fg_getcolormap

   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.

Usage

   #include <fg.h>
   void far fg_getcolormap(fg_color_t *color_array, int
   max_entries)


Description

   Get values of the current color map (inverse of fg_setcolormap). Input:
   max_entries Max number of entries to write into  color_array[]. The
   actual number of  entries written is the lesser of  fg.nsimulcolor or
   max_entries. Output: color_array    Array of colors. The values are
   between 0  and fg.ncolormap - 1.

Example 

   {
       fg_color_t color_array [16];
       fg_getcolormap(color_array, 16);
   }

See Also

   fg_setcolormap, fg_setpalette




See Also: fg_setcolormap fg_setpalette

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