Mercurial > sdl-ios-xcode
comparison include/SDL_stdinc.h @ 4492:bff93336121e
Added SDL_FOURCC()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 07 Jul 2010 21:36:09 -0700 |
parents | f7b03b6838cb |
children | 1f7ad083fd3c 436183eb30c8 |
comparison
equal
deleted
inserted
replaced
4491:2cd7bb613a83 | 4492:bff93336121e |
---|---|
98 #else | 98 #else |
99 #define SDL_reinterpret_cast(type, expression) ((type)(expression)) | 99 #define SDL_reinterpret_cast(type, expression) ((type)(expression)) |
100 #define SDL_static_cast(type, expression) ((type)(expression)) | 100 #define SDL_static_cast(type, expression) ((type)(expression)) |
101 #endif | 101 #endif |
102 /*@}*//*Cast operators*/ | 102 /*@}*//*Cast operators*/ |
103 | |
104 /* Define a four character code as a Uint32 */ | |
105 #define SDL_FOURCC(A, B, C, D) \ | |
106 ((SDL_static_cast(Uint32, SDL_static_cast(Uint8, (A))) << 0) | \ | |
107 (SDL_static_cast(Uint32, SDL_static_cast(Uint8, (B))) << 8) | \ | |
108 (SDL_static_cast(Uint32, SDL_static_cast(Uint8, (C))) << 16) | \ | |
109 (SDL_static_cast(Uint32, SDL_static_cast(Uint8, (D))) << 24)) | |
103 | 110 |
104 /** | 111 /** |
105 * \name Basic data types | 112 * \name Basic data types |
106 */ | 113 */ |
107 /*@{*/ | 114 /*@{*/ |