question regarding a strange decision in the engine...

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
damocles
Posts: 5
Joined: Tue Feb 10, 2004 12:38 am

question regarding a strange decision in the engine...

Post 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?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post 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..
Post Reply