00001 #ifndef INCL_PLPIXELDEFS
00002 #define INCL_PLPIXELDEFS
00003
00004 #include "config.h"
00005
00006 #ifdef PL_PIXEL_RGBA_ORDER // GNU/Linux (at least)
00007
00008 #define PL_RGBA_RED 0
00009 #define PL_RGBA_GREEN 1
00010 #define PL_RGBA_BLUE 2
00011 #define PL_RGBA_ALPHA 3
00012 #elif defined(PL_PIXEL_BGRA_ORDER) // MS Windows ordering
00013 #define PL_RGBA_BLUE 0
00014 #define PL_RGBA_GREEN 1
00015 #define PL_RGBA_RED 2
00016 #define PL_RGBA_ALPHA 3
00017 #else
00018 #error Pixel RGB bytes order not selected
00019 #endif
00020
00021
00022
00023
00024 #endif
00025