Archived

This topic is now archived and is closed to further replies.

Bit Masks in DX8

This topic is 5376 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know how to obtain ARGB bit masks from DirectGraphics (DX8) surfaces? In DirectDraw (DX7) i could obtain them from the DDSURFACEDESC structure but in DX8, this structure doesn't contain any info on bit masks... [edited by - spider907 on March 25, 2003 5:54:06 AM]

Share this post


Link to post
Share on other sites
The layout of the bits is implied by the name of the format.

For example D3DFMT_X1G6R5B5 tells you the layout would be: xggggggrrrrrbbbbb

As for how to convert, I use a lookup table which contains the formats our engine will be using along with relevent information for individual component manipulation.



--
Simon O''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites