comparison include/SDL_endian.h @ 1985:8055185ae4ed

Added source color and alpha modulation support. Added perl script to generate optimized render copy functions.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 28 Aug 2006 03:17:39 +0000
parents b910bcabec26
children e1da92da346c 99210400e8b9
comparison
equal deleted inserted replaced
1984:b910bcabec26 1985:8055185ae4ed
193 193
194 194
195 static __inline__ float 195 static __inline__ float
196 SDL_SwapFloat(float x) 196 SDL_SwapFloat(float x)
197 { 197 {
198 union { float f; Uint32 ui32; } swapper; 198 union
199 {
200 float f;
201 Uint32 ui32;
202 } swapper;
199 swapper.f = x; 203 swapper.f = x;
200 swapper.ui32 = SDL_Swap32(swapper.ui32); 204 swapper.ui32 = SDL_Swap32(swapper.ui32);
201 return swapper.f; 205 return swapper.f;
202 } 206 }
203 207