Advertisement

Enumeration of display modes

Started by April 30, 2001 03:20 PM
8 comments, last by QWERTY 23 years, 6 months ago
Currently I am working on the configuration utility for my 3D rendering engine. It''s a part of my diploma thesis project. Now I am wondering how to enumerate all display drivers available in the system and then enumerate all display modes that are supported by given display driver and support OpenGL hardware acceleration. I know how to do it in DirectX. Now I want to do the exact thing for OpenGL renderer but I don''t know how. I tried EnumDisplayDrivers API function but it''s unsupported on Windows 9x (only NT platform). So, if anybody knows how to solve this task, please let me know. Any help would be appreciated.
I think you''re out of luck unless EnumDisplaySettings does what you want, or you want to go digging through the registry...

Resist Windows XP''s Invasive Production Activation Technology!
http://druidgames.cjb.net/
Advertisement
What EnumDisplaySettings does is only enumerates all the available video modes. This is ok but now I want to select only those supporting OpenGL hardware acceleration. Any suggestions?
Now I am trying to set every video mode and then cycle through every available pixel format and when it support OGL then I add it to combo box. Is there better solution? And what about enumerating all the available display devices?

>>I tried EnumDisplayDrivers API function but it''s unsupported on Windows 9x<<

where do u read this?

http://members.xoom.com/myBollux
I read this in MSDN and also try it myself but it didn''t work on Win9x.

Look at the functions for PixelFormat.
Advertisement
Sorry, I have mistyped the function name. It''s EnumDisplayDevices rather than EnumDisplayDrivers.

I did not see that you already used the PixelFormat functions but
what is wrong with them?

I also checked EnumDisplayDevices and it is available in win98 but not win95. Why do you want to use that function?
I want to enumerate all available video drivers and let the user to chose one. There are some standalone 3D-only cards that doesn''t support the official ICD interface for OpenGL (eg. 3dfx Voodoo). So I want be able to dynamically link these drivers by the application.
I was surfing the net for awhile and found the solution. There is a very good library called GLS that provides an API for dynamically loading OpenGL drivers on Win32 platforms. For anybody who is interesting go to
http://www.glsetup.com/dev/gls.htm
and grab your copy now!


nice code this is actually what i used as a basis for my program

http://members.xoom.com/myBollux

This topic is closed to new replies.

Advertisement