Jump to content
  • Advertisement

Archived

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

Lord Chaos

Win32 pixelformat enumeration

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

How can I enumerate pixelformats that have different color depths than the current colordepth for the DC I''m currently working with? Basically, I''m trying to mimic the functionality offered by D3D in the methods EnumAdapterModes, CheckDeviceFormat and CheckDepthStencilMatch. I need to be able to enumerate all the color depths and matching depth/stencil depths for an adapter. To do this, I currently need to loop and change the display settings of the device to the color depths I want to query (16, 24 and 32 bit), create a temporary dummy window, get the DC and setup the rendering context and use wglGetPixelFormatAttribivARB method. However, the step to change the display mode is quite annoying, since it makes the monitors for the user go all changy Just enumerating for the current color depth and assuming the same depth/stencil combinations are available for other color depths does not work, since they''re typically not. / Mattias

Share this post


Link to post
Share on other sites
Advertisement

  • 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!