Jump to content
  • Advertisement

Archived

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

cyberg

555 or 565 in 16 bits?

This topic is 6735 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

hello, i need to know how to determine if the 16 bits mode used by the video card is represented in 555 or 565 bit mode with directx7, and i cant find it, someone can help me please??? cyberg

Share this post


Link to post
Share on other sites
Advertisement
Sorry can''t help much. I''m still learning 8bit mode (slowly going to 16bit). But I''ve seen doc/help/code uses pixelformat (obtain from surface description) to determine it with masking & shifting bits.

Happy trying.

Share this post


Link to post
Share on other sites
The directX SDK documentation has some info on it...But you can d/l the code to the 3D iso engine in 2d and it has a code snippet within the DirectDraw startup code.

"When people tell you to tell the truth, you know that their lying."

Share this post


Link to post
Share on other sites
If you had your RGB values as 5,5,5 then it would be 15 bit colour, not 16 bit. I''ve never used 15 bit, but I think DirectX can inadvertently use 5,5,5 as "16 bit" (which is, needless to say, incorrect). I''ve found the mask values and so on in the DirectX 7.0 documentation - so they are there. Look up DDPIXELFORMAT, and navigate the links in the See Also section until you find the list.

Even when you do find the different layouts, they vary between computers (a fact that is quite annoying), so you''ll end up having to use the DDPIXELFORMAT structure and determining the masks anyway - you can''t rely completely upon 5,5,5 or 5,6,5.

----------

C++ is the language of the not-so-ancients.
Learn to speak it well.

BeamMeUp

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!