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.