Page 1 of 1

question regarding a strange decision in the engine...

Posted: Wed Feb 25, 2004 3:30 pm
by damocles
Why is it that for interger colors, you have

SColor (s32 a, s32 r, s32 g, s32 b)

but for float colours, the RGBA order is different and is

SColorf (f32 r, f32 g, f32 b, f32 a)

The RGBA of the float system is what I'm used to and is (I belive)( the standard format for 32-bit image storage these days. I was just wondering why the integer color should be in a different order?

Posted: Wed Feb 25, 2004 4:10 pm
by niko
Ah, I never thought about it, I did not even know that I changed the order. If I change the order now, I bet lots of projects would get in trouble, but it would be nice to have it consistently. Hm..