Mercurial > sdl-ios-xcode
comparison include/SDL_pixels.h @ 4492:bff93336121e
Added SDL_FOURCC()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 07 Jul 2010 21:36:09 -0700 |
parents | f7b03b6838cb |
children | 660d3a432102 |
comparison
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 |