include/SDL_pixels.h
changeset 3054 8d93bfecb9dc
parent 2859 99210400e8b9
child 3163 a252014ce27d
     1.1 --- a/include/SDL_pixels.h	Fri Jan 30 06:40:16 2009 +0000
     1.2 +++ b/include/SDL_pixels.h	Sat Feb 07 17:56:08 2009 +0000
     1.3 @@ -117,6 +117,12 @@
     1.4       (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX4) || \
     1.5       (SDL_PIXELTYPE(format) == SDL_PIXELTYPE_INDEX8))
     1.6  
     1.7 +#define SDL_ISPIXELFORMAT_ALPHA(format)   \
     1.8 +    ((SDL_PIXELORDER(format) == SDL_PACKEDORDER_ARGB) || \
     1.9 +     (SDL_PIXELORDER(format) == SDL_PACKEDORDER_RGBA) || \
    1.10 +     (SDL_PIXELORDER(format) == SDL_PACKEDORDER_ABGR) || \
    1.11 +     (SDL_PIXELORDER(format) == SDL_PACKEDORDER_BGRA))
    1.12 +
    1.13  #define SDL_ISPIXELFORMAT_FOURCC(format)    \
    1.14      ((format) && !((format) & 0x80000000))
    1.15