Explain to me this?
#1

If any one can explain to me what happen in this?

Quote:

encode_lights(light1, light2, light3, light4)
{
return light1 | (light2 << 1) | (light3 << 2) | (light4 << 3);
}

And according to this (encode_lights) how will look opposite (decode_lights) ?

If you can explain will be nice.
Reply


Messages In This Thread
Explain to me this? - by Azazelo - 31.10.2012, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)