After writing the Game Programming Genesis series, I got a lot of E-mail from people asking me to clarify the bitwise operations I used in the sample programs. I use them all over the place in my code ...
So the function I'll be using to parse integers to each color value will be: void IntToRGB(int &r, int &g, int &b, int &rgb){ r = (rgb << 16) & 255; g = (rgb << 8) & 255; b = rgb & 255;} I haven't ...