Added source color and alpha modulation support.
Added perl script to generate optimized render copy functions. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402032
This commit is contained in:
parent
aebbf8cb6e
commit
fdafca64b3
25 changed files with 6938 additions and 288 deletions
|
@ -195,7 +195,11 @@ SDL_Swap64(Uint64 x)
|
|||
static __inline__ float
|
||||
SDL_SwapFloat(float x)
|
||||
{
|
||||
union { float f; Uint32 ui32; } swapper;
|
||||
union
|
||||
{
|
||||
float f;
|
||||
Uint32 ui32;
|
||||
} swapper;
|
||||
swapper.f = x;
|
||||
swapper.ui32 = SDL_Swap32(swapper.ui32);
|
||||
return swapper.f;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue