Original Post
Here''s a stupid question, so pardon me if I should know!
Writing out 16 bit data (WORD) and 32 bit data (DWORD) to a surface is easy. But what do I use for 24 bit data? Do I need to use a DWORD, but bust it up into 3 bytes?
Here''s what I do for 16 bits:
*(WORD*) bDes = (WORD)color;
Here''s what I do for 32 bits:
*(DWORD*) bDes = (DWORD)color;
For 24 bits:
????
Thanks for any tips you guys can provide... and again sorry if I''m just being retarded!