31.10.2012, 20:03
If any one can explain to me what happen in this?
And according to this (encode_lights) how will look opposite (decode_lights) ?
If you can explain will be nice.
Quote:
encode_lights(light1, light2, light3, light4) { return light1 | (light2 << 1) | (light3 << 2) | (light4 << 3); } |
If you can explain will be nice.