VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
RE: DX color assignments in 16bpp David Goodlad (2 replies, 0 views) (2000-Jun-20) Actually, that usually doesn't work well either; it seems only to work *properly* in 24 and 32 bit modes.
You see, on some video cards, 16 bit mode is represented by:
RRRRRGGGGGGBBBBB
5 red bits, 6 green bits, 5 blue bits.
This is the most common one. But, sometimes, it's:
RRRRRGGGGGBBBBB
5r,5g,5b
Also, weird things like:
BBBBBGGGGGRRRRR
5b,5g,5r
happen. The order has been inverted. It's quite strange. There's no real 'standard'.
So, you basically have to be able to pick upp the red/green/blue color masks and use them to create your pixels (which can be a real cpu hog sometimes)
David
|