PDA

View Full Version : What display modes are available?



Polymorph
03-11-2001, 08:47 AM
Heya ppl!
I am coding a OpenGL framework that I want to use to test various OpenGL stuff with and I want it to display a dialog first that lets the user pick a resolution and other stuff. My only problem is how I would determine what display modes (display dimensions and color depth) are available on the gfx-card. For now I try and set all video modes after each other and save what video modes worked. This sucks and might damage gfx-card and/or monitor. So is there a way to determine what modes are available for OpenGL access like display enumeration in DirectX?

n3r0nix
03-11-2001, 11:55 AM
try EnumDisplaySettings(...)

Polymorph
03-12-2001, 05:58 AM
Thanks a lot.