home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / Blitting Class Library / Blitting Headers / PixelTypes.h < prev   
Encoding:
Text File  |  1995-10-14  |  581 b   |  26 lines  |  [TEXT/CWIE]

  1. // PixelTypes.h, types used for manipulating pixels instead of using primitives,
  2. //    biased in favor of 256 colors.
  3.  
  4. // copyright © 1995, Macneil Shonle. All rights reserved.
  5.  
  6. #ifndef __PIXELTYPES__
  7. #define __PIXELTYPES__
  8.  
  9. typedef unsigned char Pixel, *PixelPtr;
  10. typedef unsigned short TwoPixels, *TwoPixelsPtr;
  11. typedef unsigned long FourPixels, *FourPixelsPtr;
  12. typedef unsigned long RowBytes;
  13. typedef short PixelCord;
  14.  
  15.         // enum BitDepth
  16. enum BitDepth {
  17.     kOneBit = 1,
  18.     kTwoBit = 2,
  19.     kFourBit = 4,
  20.     kEightBit = 8,
  21.     kSixteenBit = 16,
  22.     kThirtyTwoBit = 32,
  23.     kGreatestBit = 0
  24. };
  25.  
  26. #endif