Okay bit shifting is still a bit weird to me.
I've got a 16bit value. The first 15 bits are colors and the last bit is alpha.
I have done this with 24 and 32 bit colors no problem as they are nice byte size's to deal with, but I cant seem to get this to work with 15/16 bits.
This is what I've done in the past, with 24/32 bit colors
(m_colorValue >> RED_CHANNEL) & 0xFF;
I'm trying to split the value into 4 values. 3 5 bit color values and 1 alpha value. I don't know what mask I should be using.
Thanks.