I know the macro RGB(r, g, b) creates a COLORREF from r,g,b values. But I need the inverse of the macro. I need to extract the red, green, and blue values from the COLORREF. I am working on texturing and lighting in my 3D engine and I cannot get a good working model using the COLORREFs. But if I use the RGB values I get better results.
Is it something similar to this:
Red = (int)(COLORREF