include/SDL_pixels.h
branchSDL-1.3
changeset 1676 e136f3ffdc1b
parent 1675 d33dcfc3fde7
child 1681 80a5e6a4e1e2
equal deleted inserted replaced
1675:d33dcfc3fde7 1676:e136f3ffdc1b
   105 #define SDL_PIXELTYPE(X)	(((X) >> 24) & 0x0F)
   105 #define SDL_PIXELTYPE(X)	(((X) >> 24) & 0x0F)
   106 #define SDL_PIXELORDER(X)	(((X) >> 20) & 0x0F)
   106 #define SDL_PIXELORDER(X)	(((X) >> 20) & 0x0F)
   107 #define SDL_PIXELLAYOUT(X)	(((X) >> 16) & 0x0F)
   107 #define SDL_PIXELLAYOUT(X)	(((X) >> 16) & 0x0F)
   108 #define SDL_BITSPERPIXEL(X)	(((X) >> 8) & 0xFF)
   108 #define SDL_BITSPERPIXEL(X)	(((X) >> 8) & 0xFF)
   109 #define SDL_BYTESPERPIXEL(X)	(((X) >> 0) & 0xFF)
   109 #define SDL_BYTESPERPIXEL(X)	(((X) >> 0) & 0xFF)
       
   110 
       
   111 #define SDL_ISPIXELFORMAT_FOURCC(format)    (((format) & 0x8000000) != 0)
   110 
   112 
   111 enum
   113 enum
   112 {
   114 {
   113     SDL_PixelFormat_Unknown,
   115     SDL_PixelFormat_Unknown,
   114     SDL_PixelFormat_Index1LSB =
   116     SDL_PixelFormat_Index1LSB =