Some functions I've been using require me to input colors in 0xAABBGGRR format [UINT32]
It would be a much more user-friendly interface if this could be accomplished with RGBA float values, ranged from 0 to 1 as they normally are.
Is there a simple way to accomplish this?
To make my question more clear,
UINT32 ColorValue(float r, float g, float b, float a) {
// ???
}
Example: ColorValue(1,0,0,1) == 0xFF0000FF