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
00008 #define PL_PIXEL_RGBA_ORDER
00009
00010 #ifdef PL_PIXEL_RGBA_ORDER
00011
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
00026
00027
00028 #endif
00029