home *** CD-ROM | disk | FTP | other *** search
/ Amiga Magazin: Amiga-CD 2000 April & May / AMIGA_2000_04.iso / patches / mesa3.1 / mesa-3_1.lha / src / AOS / palettes / palettes.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-01  |  1016 b   |  38 lines

  1. #if 0
  2.     GLshort i, r, g, b;
  3.  
  4.     i = 0;
  5.     for (r = 0x10; r <= 0xF0; r += 0x20)    /* 0x10, 0x30, 0x50, 0x70, 0x90, 0xB0, 0xD0, 0xF0 */
  6.     for (g = 0x10; g <= 0xF0; g += 0x20)    /* 0x10, 0x30, 0x50, 0x70, 0x90, 0xB0, 0xD0, 0xF0 */
  7.     for (b = 0x20; b <= 0xE0; b += 0x40) {    /* 0x20, 0x60, 0xA0, 0xE0 */
  8.       amesa->Palette[i].orgEntry.r = r;
  9.       amesa->Palette[i].orgEntry.g = g;
  10.       amesa->Palette[i].orgEntry.b = b;
  11.       i++;
  12.     }
  13. #endif
  14. static const struct ColorEntry Palette332[palNumCols332] = {
  15. #include "palettes.inc8"
  16. };
  17.  
  18. #if 0
  19.     GLshort i, j;
  20.  
  21.     for (i = j = 0; i < palNumColsGrey; i++, j += 4) {
  22.       amesa->Palette[i].orgEntry.r = j;
  23.       amesa->Palette[i].orgEntry.g = j;
  24.       amesa->Palette[i].orgEntry.b = j;
  25.     }
  26. #endif
  27. static const struct ColorEntry PaletteGrey[palNumColsGrey] = {
  28. #include "palettes.incg"
  29. };
  30.  
  31. static const struct ColorEntry Palette[palNumCols] = {
  32. #include "palettes.incw"
  33. };
  34.  
  35. static const struct ColorEntry PaletteHPCR[palNumColsHPCR] = {
  36. #include "palettes.inch"
  37. };
  38.