include/SDL_pixels.h
changeset 4492 bff93336121e
parent 3697 f7b03b6838cb
child 4982 660d3a432102
equal deleted inserted replaced
4491:2cd7bb613a83 4492:bff93336121e
   110     SDL_PACKEDLAYOUT_8888,
   110     SDL_PACKEDLAYOUT_8888,
   111     SDL_PACKEDLAYOUT_2101010,
   111     SDL_PACKEDLAYOUT_2101010,
   112     SDL_PACKEDLAYOUT_1010102
   112     SDL_PACKEDLAYOUT_1010102
   113 };
   113 };
   114 
   114 
   115 #define SDL_DEFINE_PIXELFOURCC(A, B, C, D) \
   115 #define SDL_DEFINE_PIXELFOURCC(A, B, C, D) SDL_FOURCC(A, B, C, D)
   116     ((A) | ((B) << 8) | ((C) << 16) | ((D) << 24))
       
   117 
   116 
   118 #define SDL_DEFINE_PIXELFORMAT(type, order, layout, bits, bytes) \
   117 #define SDL_DEFINE_PIXELFORMAT(type, order, layout, bits, bytes) \
   119     ((1 << 31) | ((type) << 24) | ((order) << 20) | ((layout) << 16) | \
   118     ((1 << 31) | ((type) << 24) | ((order) << 20) | ((layout) << 16) | \
   120      ((bits) << 8) | ((bytes) << 0))
   119      ((bits) << 8) | ((bytes) << 0))
   121 
   120