Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

plpixeldefs.h

00001 #ifndef INCL_PLPIXELDEFS
00002 #define INCL_PLPIXELDEFS
00003 
00004 #undef PL_PIXEL_BGRA_ORDER  // MS Windows ordering
00005 #undef PL_PIXEL_RGBA_ORDER // GNU/Linux (at least)
00006 
00007 // We have this pixel byte ordering
00008 #define PL_PIXEL_RGBA_ORDER
00009 
00010 #ifdef PL_PIXEL_RGBA_ORDER
00011  // To access in RGBA order
00012  #define PL_RGBA_RED    0
00013  #define PL_RGBA_GREEN  1
00014  #define PL_RGBA_BLUE   2
00015  #define PL_RGBA_ALPHA  3
00016 #elif defined(PL_PIXEL_BGRA_ORDER)
00017  #define PL_RGBA_BLUE   0
00018  #define PL_RGBA_GREEN  1
00019  #define PL_RGBA_RED    2
00020  #define PL_RGBA_ALPHA  3
00021 #else
00022   #error Pixel RGB bytes order not selected
00023 #endif
00024 
00025 // Note that the preceeding #defines aren't static const ints because
00026 // this breaks preprocessor tests in several places.
00027 
00028 #endif
00029 

Generated on Sun Jun 6 13:42:22 2004 for paintlib by doxygen 1.3.2